Z 1 год назад
Родитель
Сommit
691cec1139
1 измененных файлов с 9 добавлено и 1 удалено
  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) {
           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(
           {},
           {
             contract: this.form,
-            productList: this.$refs.inventoryTable.getTableValue(),
+            productList: [...this.$refs.inventoryTable.getTableValue(),...rawDetailList,...outputDetailList],
             receiptPaymentList: this.$refs.paymentListTable.getTableValue()
           }
         );