pull/1/head
xiaozhiyong 2 years ago
parent d7c64b72ba
commit 526c1e9e4c
  1. 23
      src/views/financialCenter/enterpriseRecharge/components/add.vue

@ -55,7 +55,7 @@
</el-form-item> </el-form-item>
<template v-if="form.transactionType === 'RECHARGE'"> <template v-if="form.transactionType === 'RECHARGE'">
<el-form-item label="企业收款账户" prop="companyBankCardArr"> <el-form-item label="企业收款账户">
<el-cascader <el-cascader
:options="cascaderList" :options="cascaderList"
v-model="form.companyBankCardArr" v-model="form.companyBankCardArr"
@ -102,7 +102,6 @@
form.transactionType === 'RECHARGE' form.transactionType === 'RECHARGE'
" "
label="线下交易凭证" label="线下交易凭证"
prop="offlineTransactionProof"
> >
<el-upload <el-upload
:action="uploadUrl" :action="uploadUrl"
@ -120,7 +119,7 @@
</el-dialog> </el-dialog>
</el-form-item> </el-form-item>
<el-form-item label="交易说明" prop="reverseRemark"> <el-form-item label="交易说明">
<el-input <el-input
type="textarea" type="textarea"
:rows="2" :rows="2"
@ -158,10 +157,10 @@ export default {
if (this.form.companyId) callback(); if (this.form.companyId) callback();
else callback("请选择公司"); else callback("请选择公司");
}; };
let validatorofflineTransactionProof = (rule, value, callback) => { // let validatorofflineTransactionProof = (rule, value, callback) => {
if (this.form.offlineTransactionProof) callback(); // if (this.form.offlineTransactionProof) callback();
else callback("请上传凭证"); // else callback("");
}; // };
return { return {
uploadUrl: uploadUrl:
process.env.VUE_APP_ENV === "development" process.env.VUE_APP_ENV === "development"
@ -198,13 +197,6 @@ export default {
transactionAmount: [ transactionAmount: [
{ required: true, message: "请输入交易金额", trigger: "blur" }, { required: true, message: "请输入交易金额", trigger: "blur" },
], ],
offlineTransactionProof: [
{
required: true,
validator: validatorofflineTransactionProof,
trigger: "change",
},
],
offlinePaymentCompany: [ offlinePaymentCompany: [
{ {
required: true, required: true,
@ -233,9 +225,6 @@ export default {
trigger: "change", trigger: "change",
}, },
], ],
reverseRemark: [
{ required: true, message: "请输入交易说明", trigger: "blur" },
],
}, },
}; };
}, },

Loading…
Cancel
Save