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

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

liujt 1 месяц назад
Родитель
Сommit
7f853f82b1

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

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