huang_an %!s(int64=2) %!d(string=hai) anos
pai
achega
c0c58a318f
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/views/warehouseManagement/stockManagement/add.vue

+ 3 - 2
src/views/warehouseManagement/stockManagement/add.vue

@@ -1126,7 +1126,7 @@
   import { tableHeader } from '../common';
   import { getCode } from '@/api/codeManagement/index.js';
   import { number } from 'echarts/core';
-  import { purchaseorderGetById, contactlink } from '@/api/mes';
+  import { purchaseorderGetById, contactlink, oneId } from '@/api/mes';
   export default {
     components: {
       selectUpload,
@@ -1342,8 +1342,9 @@
         this.formData.extInfo.supplierName = row.partbName;
         this.formData.extInfo.supplierId = row.partbId;
         await this.searchContact(row.partbId);
-        const data = await purchaseorderGetById(row.id);
+        const data = await oneId(row.id);
         if (this.warehousingMaterialList.length == 0) {
+          console.log('data===', data);
           let list = data.data.productList.map((item) => {
             return {
               ...item,