Преглед на файлове

fix: 更新付款信息组件,使用动态标题替代静态标签以增强可维护性

xieyong преди 3 седмици
родител
ревизия
2e273fa2bd

+ 1 - 0
src/views/purchasingManage/purchaseOrder/accountstatement/components/addAccountDialog.vue

@@ -25,6 +25,7 @@
       :dataForm.sync="dataForm"
       :payablesList="payablesList"
       :dialogType="dialogType"
+      statementAdvanceTotalPriceTitle="总对账预付款确付金额"
     ></payables-info>
     <headerTitle title="对账明细" style="margin-top: 30px"> </headerTitle>
     <account-detail-table

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

@@ -3,7 +3,7 @@
     <el-form ref="form" :model="dataForm" :rules="rules" label-width="170px">
       <el-row>
         <el-col :span="8">
-          <el-form-item label="总对账预付款确收金额">
+          <el-form-item :label="statementAdvanceTotalPriceTitle">
             <el-input disabled v-model="statementAdvanceTotalPrice">
               <template slot="append">元</template>
             </el-input>
@@ -152,6 +152,10 @@
       dialogType: {
         type: String,
         default: 'add'
+      },
+      statementAdvanceTotalPriceTitle: {
+        type: String,
+        default: '总对账预付款确收金额'
       }
     },
     data() {
@@ -287,7 +291,7 @@
         return (
           this.localList.reduce(
             (pre, cur) =>
-              pre + Math.round((+cur.nowConfirmedPrepayAmt || 0) * 100),
+              pre + Math.round((+cur.confirmedPrepayAmt || 0) * 100),
             0
           ) / 100
         );