Преглед изворни кода

feat: 采购订单金额计算问题

liujt пре 1 месец
родитељ
комит
7f853f82b1
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      src/views/purchasingManage/purchaseOrder/components/addDialogNew.vue

+ 6 - 2
src/views/purchasingManage/purchaseOrder/components/addDialogNew.vue

@@ -2134,8 +2134,8 @@
           if (!this.isUpdate) {
           if (!this.isUpdate) {
             delete this.form.id;
             delete this.form.id;
           }
           }
-    // if (!this.form.contractId) { //如果来源是合同 金额不变这个逻辑有问题 先注释
-          //   this.form.totalAmount = this.allcountAmount;
+          // if (!this.form.contractId) { //如果来源是合同 金额不变这个逻辑有问题 先注释
+            this.form.totalAmount = this.allcountAmount;
           // }
           // }
           const rawDetailList =
           const rawDetailList =
             (this.$refs.rawDetailListRef &&
             (this.$refs.rawDetailListRef &&
@@ -2198,6 +2198,8 @@
             })
             })
           ];
           ];
 
 
+          console.log('提交数据~~~', this.form);  
+
           let commitData = Object.assign({}, this.form, {
           let commitData = Object.assign({}, this.form, {
             productList,
             productList,
             // purchaseTypeName: this.getDictValue(
             // purchaseTypeName: this.getDictValue(
@@ -2239,6 +2241,8 @@
             return;
             return;
           }
           }
 
 
+          console.log('提交数据', commitData);  
+
           if (this.isUpdate) {
           if (this.isUpdate) {
             UpdateInformation(commitData)
             UpdateInformation(commitData)
               .then((res) => {
               .then((res) => {