【bug】 暂存没有限制 金额的必填

This commit is contained in:
fengachen
2022-11-10 15:29:23 +08:00
parent f8b3e83225
commit 778935053f
2 changed files with 11 additions and 1 deletions
@@ -322,7 +322,7 @@ export default {
dataIndex: 'companyName'
},
{
title: '会员类型s',
title: '会员类型',
align: 'center',
dataIndex: 'paymentType_dictText'
},
@@ -1029,6 +1029,16 @@ export default {
// 触发表单验证
this.form.validateFields((err, values) => {
if (!err) {
// 校验会员缴费与证书缴费 至少填写一种
if(this.validatePayment()){
this.$message.warning('请至少填写会员缴费金额与证书缴费金额中的一种')
return
}
// 校验合计金额 与凭证金额是否一致
if (!this.validateAllMoney()) {
this.$message.warning('合计金额与凭证金额不一致')
return
}
that.confirmLoading = true
let httpurl = ''
let method = ''