Z 1 year ago
parent
commit
691cec1139
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/views/bpm/handleTask/components/contractBook/addDialog.vue

+ 9 - 1
src/views/bpm/handleTask/components/contractBook/addDialog.vue

@@ -1320,11 +1320,19 @@ export default {
         if (this.form.fileId) {
         if (this.form.fileId) {
           this.form.fileId = JSON.stringify(this.form.fileId);
           this.form.fileId = JSON.stringify(this.form.fileId);
         }
         }
+        const rawDetailList =
+            (this.$refs.rawDetailListRef &&
+              this.$refs.rawDetailListRef.getTableValue()) ||
+            [];
+          const outputDetailList =
+            (this.$refs.outputDetailListRef &&
+              this.$refs.outputDetailListRef.getTableValue()) ||
+            [];
         let commitData = Object.assign(
         let commitData = Object.assign(
           {},
           {},
           {
           {
             contract: this.form,
             contract: this.form,
-            productList: this.$refs.inventoryTable.getTableValue(),
+            productList: [...this.$refs.inventoryTable.getTableValue(),...rawDetailList,...outputDetailList],
             receiptPaymentList: this.$refs.paymentListTable.getTableValue()
             receiptPaymentList: this.$refs.paymentListTable.getTableValue()
           }
           }
         );
         );