Просмотр исходного кода

核价单状态 出入库单详情 多个单汇总处理

yusheng 1 год назад
Родитель
Сommit
ac5ac3791d

+ 1 - 1
src/views/bpm/handleTask/components/inquiryManage/inventoryTable.vue

@@ -597,7 +597,7 @@
               Math.max(...totalCountS) >= productItem.totalCount ? 2 : 1
               Math.max(...totalCountS) >= productItem.totalCount ? 2 : 1
             );
             );
           } else {
           } else {
-            this.$set(this.form.datasource[index], 'isInquiry', 0);
+            // this.$set(this.form.datasource[index], 'isInquiry', 0);
           }
           }
           console.log(totalCountS, 'codeS');
           console.log(totalCountS, 'codeS');
         });
         });

+ 12 - 7
src/views/bpm/outgoingManagement/details.vue

@@ -666,11 +666,16 @@
           res
           res
         );
         );
         if (this.isIds) {
         if (this.isIds) {
-          this.infoData = resAll[0];
+          this.infoData =JSON.parse(JSON.stringify(resAll[0]));
           this.extInfo = resAll[0].extInfo;
           this.extInfo = resAll[0].extInfo;
-          res=resAll[0]
-          res['bizNo']=resAll.map(item=>item.bizNo)
-          res.outInDetailList=resAll.map(item=>item.outInDetailList[0])
+          this.infoData['outInDetailList']=[]
+          resAll.forEach(item=>{
+            item.outInDetailList.forEach(val=>{
+              val['bizNo']=item.bizNo
+              this.infoData['outInDetailList'].push(val)
+            })
+          })
+       
         } else {
         } else {
           this.infoData = res;
           this.infoData = res;
           this.extInfo = res?.extInfo;
           this.extInfo = res?.extInfo;
@@ -678,9 +683,9 @@
         }
         }
         this.productList = res?.outInDetailList?.map(
         this.productList = res?.outInDetailList?.map(
           (productItem, productIndex) => {
           (productItem, productIndex) => {
-            if(this.isIds){
-              productItem['bizNo']=res.bizNo[productIndex]
-            }
+            // if(this.isIds){
+            //   productItem['bizNo']=res.bizNo[productIndex]
+            // }
             return {
             return {
               ...productItem,
               ...productItem,
               outInDetailRecordRequestList:
               outInDetailRecordRequestList:

+ 12 - 7
src/views/bpm/stockManagement/details.vue

@@ -533,11 +533,16 @@ export default {
         this.isIds
         this.isIds
       );
       );
       if (this.isIds) {
       if (this.isIds) {
-        this.infoData = resAll[0];
+        this.infoData = JSON.parse(JSON.stringify(resAll[0]));
         this.extInfo = resAll[0].extInfo;
         this.extInfo = resAll[0].extInfo;
-        res = resAll[0];
-        res['bizNo'] = resAll.map((item) => item.bizNo);
-        res.outInDetailList = resAll.map((item) => item.outInDetailList[0]);
+        this.infoData['outInDetailList']=[]
+          resAll.forEach(item=>{
+            item.outInDetailList.forEach(val=>{
+              val['bizNo']=item.bizNo
+              this.infoData['outInDetailList'].push(val)
+            })
+          })
+       
         console.log('resAll---------------', resAll);
         console.log('resAll---------------', resAll);
       } else {
       } else {
         this.infoData = res;
         this.infoData = res;
@@ -551,9 +556,9 @@ export default {
 
 
       this.productList = res.outInDetailList.map(
       this.productList = res.outInDetailList.map(
         (productItem, productIndex) => {
         (productItem, productIndex) => {
-          if (this.isIds) {
-            productItem['bizNo'] = res.bizNo[productIndex];
-          }
+          // if (this.isIds) {
+          //   productItem['bizNo'] = res.bizNo[productIndex];
+          // }
           return {
           return {
             ...productItem,
             ...productItem,
             outInDetailRecordRequestList:
             outInDetailRecordRequestList: