update: 修改银行字段可填写,当对公的时候可填可传,对私的时候可传;去掉store_area测试字段;去掉多余的校验代码。
This commit is contained in:
parent
34ea079dc6
commit
147e841696
@ -314,11 +314,6 @@ export default {
|
||||
],
|
||||
],
|
||||
rules: {
|
||||
entity_type: {
|
||||
required: true,
|
||||
trigger: ["change", "blur"],
|
||||
message: "请选择您的许可证类型",
|
||||
},
|
||||
biz_license_company: {
|
||||
required: true,
|
||||
message: "请输入公司名称",
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
uploadIconColor="#4b71ff"
|
||||
width="268"
|
||||
height="125"
|
||||
uploadText="点击上传银行卡正面"
|
||||
uploadText="上传银行卡 免填卡号"
|
||||
>
|
||||
</u-upload>
|
||||
<view
|
||||
@ -30,7 +30,9 @@
|
||||
>
|
||||
</u-form-item>
|
||||
|
||||
<template v-if="bankCardFiles.length && bankCardOcrLoaded">
|
||||
<template
|
||||
v-if="entity_type == 1 || (bankCardFiles.length && bankCardOcrLoaded)"
|
||||
>
|
||||
<u-form-item label="开户名称" required prop="account_holder_name">
|
||||
<u-input
|
||||
v-model="form.account_holder_name"
|
||||
@ -167,6 +169,7 @@ export default {
|
||||
bankCardFiles: [],
|
||||
loading: false,
|
||||
branchSearchText: "",
|
||||
entity_type: "",
|
||||
bankCardOcrLoaded: false,
|
||||
firstBranchBankLoad: false,
|
||||
showBankDialog: false,
|
||||
@ -216,6 +219,7 @@ export default {
|
||||
let auditItem = uni.getStorageSync("auditItem");
|
||||
|
||||
this.form.account_holder_name = auditItem.biz_license_company;
|
||||
this.entity_type = auditItem.entity_type || 1;
|
||||
this.branchBankDebounceFn = debounce(this.getBranchBankList, 500);
|
||||
},
|
||||
methods: {
|
||||
@ -324,7 +328,7 @@ export default {
|
||||
},
|
||||
|
||||
async handleSubmit() {
|
||||
if (!this.bankCardFiles.length) {
|
||||
if (this.entity_type == 2 && !this.bankCardFiles.length) {
|
||||
this.$refs.uToast.show({
|
||||
message: "请上传银行卡正面",
|
||||
type: "error",
|
||||
@ -340,7 +344,6 @@ export default {
|
||||
...this.form,
|
||||
...auditItem,
|
||||
...this.currentBank,
|
||||
store_area: "北京北京市东城区北京动物园",
|
||||
};
|
||||
|
||||
console.log("params", params);
|
||||
@ -384,10 +387,7 @@ export default {
|
||||
},
|
||||
|
||||
onBranchDialogOpen() {
|
||||
if (this.branchSearchText) {
|
||||
this.branchBankDebounceFn(this.branchSearchText || "中国银行");
|
||||
}
|
||||
|
||||
this.branchBankDebounceFn(this.branchSearchText || "广西桂平银行");
|
||||
this.showBankDialog = true;
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user