把单据中文本框的keyup事件改为change事件

This commit is contained in:
季圣华
2023-01-27 17:31:31 +08:00
parent bfee389629
commit 3d0efac242
12 changed files with 35 additions and 35 deletions

View File

@@ -118,7 +118,7 @@
<a-col :lg="24" :md="6" :sm="6">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol">
<span slot="label" style="font-size: 20px;line-height:20px">付款金额</span>
<a-input v-decorator.trim="[ 'getAmount' ]" :style="{color:'red'}" defaultValue="0" @keyup="onKeyUpGetAmount"/>
<a-input v-decorator.trim="[ 'getAmount' ]" :style="{color:'red'}" defaultValue="0" @change="onChangeGetAmount"/>
</a-form-item>
</a-col>
<a-col :lg="24" :md="6" :sm="6">
@@ -363,7 +363,7 @@
});
},
//改变收款金额
onKeyUpGetAmount(e) {
onChangeGetAmount(e) {
const value = e.target.value
let changeAmount = this.form.getFieldValue('changeAmount')-0
let backAmount = (value - changeAmount).toFixed(2)-0