【修改】支出合 金额联动

This commit is contained in:
fengachen
2022-10-27 15:15:08 +08:00
parent c2f1d6f535
commit 3be5316803
3 changed files with 27 additions and 2 deletions
+12
View File
@@ -38,6 +38,7 @@
:maxLength='50'
v-bind="$attrs"
@blur="addZero"
@input="changePaidAmount"
@change="(e) => {e.target.value = (e.target.value.replace(/[^0-9.]/g,'')).trim()}"></a-input>
</a-form-item>
</a-col>
@@ -118,6 +119,17 @@ export default {
},
methods: {
addZero,
// 修改
changePaidAmount(){
// 计算分阶段应收 款总和
let money = this.form.getFieldsValue().installmentList.reduce((total,current) => {
return total + Number(current.paidAmount)
},0)
this.$emit('editPaidAmount',money)
// console.log(this.form.getFieldsValue().installmentList,'this.form.getFieldValue()this.form.getFieldValue()')
},
/**
* 初始化分期信息列表
* @param record