|
|
@ -128,6 +128,10 @@ export default { |
|
|
|
if (this.form.companyId) callback() |
|
|
|
if (this.form.companyId) callback() |
|
|
|
else callback('请选择公司') |
|
|
|
else callback('请选择公司') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
let checkZero = (rule, value, callback) => { |
|
|
|
|
|
|
|
if (!+value) callback('请输入交易金额或交易金额不可为0') |
|
|
|
|
|
|
|
else callback() |
|
|
|
|
|
|
|
} |
|
|
|
let validatorRefineryCenterAccountId = (rule, value, callback) => { |
|
|
|
let validatorRefineryCenterAccountId = (rule, value, callback) => { |
|
|
|
if (this.form.refineryCenterAccountId) callback() |
|
|
|
if (this.form.refineryCenterAccountId) callback() |
|
|
|
else callback('请选择油批中心账户') |
|
|
|
else callback('请选择油批中心账户') |
|
|
@ -174,7 +178,7 @@ export default { |
|
|
|
rules: { |
|
|
|
rules: { |
|
|
|
companyId: [{ required: true, validator: validatorcompanyId, trigger: 'change' }], |
|
|
|
companyId: [{ required: true, validator: validatorcompanyId, trigger: 'change' }], |
|
|
|
transactionType: [{ required: true, message: '请选择交易类型', trigger: 'change' }], |
|
|
|
transactionType: [{ required: true, message: '请选择交易类型', trigger: 'change' }], |
|
|
|
transactionAmount: [{ required: true, message: '请输入交易金额', trigger: 'blur' }], |
|
|
|
transactionAmount: [{ required: true, validator: checkZero, trigger: 'blur' }], |
|
|
|
offlinePaymentCompany: [ |
|
|
|
offlinePaymentCompany: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|