【修改】支出合 金额联动
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user