huang_an 2 éve
szülő
commit
d7d744bf6d

+ 5 - 2
src/views/warehouseManagement/outgoingManagement/add.vue

@@ -306,7 +306,7 @@
               <el-table-column
                 label="客户编码"
                 v-if="formData.bizType == 3"
-                prop="assetCode"
+                prop="contactCode"
               >
                 <template slot-scope="{ row }">
                   {{ row.customCode }}
@@ -615,6 +615,8 @@
     methods: {
       eomSuccess(row) {
         this.formData.documentSource = row.orderNo;
+        console.log(row);
+        this.onSelectTableData(row.tableData, 1);
         this.$forceUpdate();
       },
       pickOrderRow(row) {
@@ -996,7 +998,8 @@
             outInNum: '',
             assetCode: next.code,
             assetName: next.name,
-            bizStatus: 2
+            bizStatus: 2,
+            contactCode: next.contactCode
           };
         });
         console.log('sasasasa===>>>', this.warehousingMaterialList);

+ 14 - 3
src/views/warehouseManagement/outgoingManagement/components/eom.vue

@@ -56,7 +56,7 @@
 </template>
 
 <script>
-  import { saleordersendrecordPage } from '@/api/mes';
+  import { saleordersendrecordPage, getById } from '@/api/mes';
   import eomEdit from './eomEdit.vue';
   export default {
     components: { eomEdit },
@@ -128,7 +128,7 @@
       pickOrderEdit(row) {
         this.$refs.eomEditRef.open(row);
       },
-      handleMine() {
+      async handleMine() {
         // const current = this.current.orderInfoList;
         // for (const key in current) {
         //   if (
@@ -139,7 +139,18 @@
         //     return;
         //   }
         // }
-        console.log('sacnmmmmmm=', this.current);
+        const res = await getById(this.current.id);
+        this.current = {
+          ...this.current,
+          tableData: res.data.productList.map((item) => {
+            return {
+              ...item,
+              code: item.productCode,
+              name: item.productName,
+              contactCode: this.current.contactCode
+            };
+          })
+        };
         this.$emit('success', this.current);
         this.dialogVisible = false;
       },