update: 修改银行字段可填写,当对公的时候可填可传,对私的时候可传;去掉store_area测试字段;去掉多余的校验代码。

This commit is contained in:
mixtan 2025-05-28 11:34:40 +08:00
parent 34ea079dc6
commit 147e841696
2 changed files with 8 additions and 13 deletions

View File

@ -314,11 +314,6 @@ export default {
], ],
], ],
rules: { rules: {
entity_type: {
required: true,
trigger: ["change", "blur"],
message: "请选择您的许可证类型",
},
biz_license_company: { biz_license_company: {
required: true, required: true,
message: "请输入公司名称", message: "请输入公司名称",

View File

@ -19,7 +19,7 @@
uploadIconColor="#4b71ff" uploadIconColor="#4b71ff"
width="268" width="268"
height="125" height="125"
uploadText="点击上传银行卡正面" uploadText="上传银行卡 免填卡号"
> >
</u-upload> </u-upload>
<view <view
@ -30,7 +30,9 @@
> >
</u-form-item> </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-form-item label="开户名称" required prop="account_holder_name">
<u-input <u-input
v-model="form.account_holder_name" v-model="form.account_holder_name"
@ -167,6 +169,7 @@ export default {
bankCardFiles: [], bankCardFiles: [],
loading: false, loading: false,
branchSearchText: "", branchSearchText: "",
entity_type: "",
bankCardOcrLoaded: false, bankCardOcrLoaded: false,
firstBranchBankLoad: false, firstBranchBankLoad: false,
showBankDialog: false, showBankDialog: false,
@ -216,6 +219,7 @@ export default {
let auditItem = uni.getStorageSync("auditItem"); let auditItem = uni.getStorageSync("auditItem");
this.form.account_holder_name = auditItem.biz_license_company; this.form.account_holder_name = auditItem.biz_license_company;
this.entity_type = auditItem.entity_type || 1;
this.branchBankDebounceFn = debounce(this.getBranchBankList, 500); this.branchBankDebounceFn = debounce(this.getBranchBankList, 500);
}, },
methods: { methods: {
@ -324,7 +328,7 @@ export default {
}, },
async handleSubmit() { async handleSubmit() {
if (!this.bankCardFiles.length) { if (this.entity_type == 2 && !this.bankCardFiles.length) {
this.$refs.uToast.show({ this.$refs.uToast.show({
message: "请上传银行卡正面", message: "请上传银行卡正面",
type: "error", type: "error",
@ -340,7 +344,6 @@ export default {
...this.form, ...this.form,
...auditItem, ...auditItem,
...this.currentBank, ...this.currentBank,
store_area: "北京北京市东城区北京动物园",
}; };
console.log("params", params); console.log("params", params);
@ -384,10 +387,7 @@ export default {
}, },
onBranchDialogOpen() { onBranchDialogOpen() {
if (this.branchSearchText) { this.branchBankDebounceFn(this.branchSearchText || "广西桂平银行");
this.branchBankDebounceFn(this.branchSearchText || "中国银行");
}
this.showBankDialog = true; this.showBankDialog = true;
}, },