给零售增加找零字段

This commit is contained in:
季圣华
2021-12-12 23:19:03 +08:00
parent 19ba6d50fa
commit c2c9a465b6
5 changed files with 45 additions and 15 deletions

View File

@@ -103,8 +103,8 @@
<a-row class="form-row" :gutter="24">
<a-col :lg="24" :md="6" :sm="6"><br/><br/></a-col>
<a-col :lg="24" :md="6" :sm="6">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="实收金额" data-step="5" data-title="实收金额"
data-intro="实收金额等于左侧商品的总金额">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据金额" data-step="5" data-title="单据金额"
data-intro="单据金额等于左侧商品的总金额">
<a-input v-decorator.trim="[ 'changeAmount' ]" :style="{color:'purple'}" :readOnly="true"/>
</a-form-item>
</a-col>
@@ -285,7 +285,11 @@
})
} else {
this.model.operTime = this.model.operTimeStr
this.model.getAmount = this.model.changeAmount
if(this.model.backAmount) {
this.model.getAmount = (this.model.changeAmount + this.model.backAmount).toFixed(2)
} else {
this.model.getAmount = this.model.changeAmount
}
this.fileList = this.model.fileName
if(this.model.payType === '预付款'){
this.payTypeList = []
@@ -294,7 +298,7 @@
}
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model,'organId', 'operTime', 'number', 'payType', 'remark',
'discount','discountMoney','discountLastMoney','otherMoney','accountId','changeAmount','getAmount'))
'discount','discountMoney','discountLastMoney','otherMoney','accountId','changeAmount','getAmount','backAmount'))
});
// 加载子表数据
let params = {