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

fix: 更新应付金额字段名称为“statementAmt”,移除不必要的预付款确收金额逻辑

xieyong 3 недель назад
Родитель
Сommit
2c09d5973b

+ 3 - 10
src/views/purchasingManage/purchaseOrder/accountstatement/components/payablesInfo.vue

@@ -238,13 +238,6 @@
           //   align: 'center',
           //   align: 'center',
           //   showOverflowTooltip: true
           //   showOverflowTooltip: true
           // },
           // },
-          // {
-          //   minWidth: 190,
-          //   prop: 'nowConfirmedPrepayAmt',
-          //   label: '本次对账预付款确收金额',
-          //   align: 'center',
-          //   // slot: 'nowConfirmedPrepayAmt'
-          // },
           {
           {
             minWidth: 190,
             minWidth: 190,
             headerSlot: 'columnRequired',
             headerSlot: 'columnRequired',
@@ -268,7 +261,7 @@
           },
           },
           {
           {
             minWidth: 120,
             minWidth: 120,
-            prop: 'payablePrice',
+            prop: 'statementAmt',
             label: '本次对账应付总金额',
             label: '本次对账应付总金额',
             align: 'center',
             align: 'center',
             showOverflowTooltip: true
             showOverflowTooltip: true
@@ -386,7 +379,7 @@
         const max = this.getMaxConfirmAmount(row);
         const max = this.getMaxConfirmAmount(row);
         if (val > max) {
         if (val > max) {
           val = max;
           val = max;
-          this.$set(row, 'nowConfirmedPrepayAmt', val);
+          // this.$set(row, 'nowConfirmedPrepayAmt', val);
           this.$message.warning(
           this.$message.warning(
             '本次对账预付款确收金额不能超过未对账金额和本次对账金额'
             '本次对账预付款确收金额不能超过未对账金额和本次对账金额'
           );
           );
@@ -402,7 +395,7 @@
         let val = +row.nowConfirmedPrepayAmt || 0;
         let val = +row.nowConfirmedPrepayAmt || 0;
         const max = this.getMaxConfirmAmount(row);
         const max = this.getMaxConfirmAmount(row);
         if (val > max) val = max;
         if (val > max) val = max;
-        this.$set(row, 'nowConfirmedPrepayAmt', val);
+        // this.$set(row, 'nowConfirmedPrepayAmt', val);
         // 本次应付金额 = 本次对账金额 - 确收金额
         // 本次应付金额 = 本次对账金额 - 确收金额
         this.$set(
         this.$set(
           row,
           row,