Compare commits
No commits in common. "bcd2043346bd8592478cf2edacb635ca6166de27" and "e5b36c050b137a1af40bbaa645beeffae38cb008" have entirely different histories.
bcd2043346
...
e5b36c050b
1
components.d.ts
vendored
1
components.d.ts
vendored
@ -16,7 +16,6 @@ declare module 'vue' {
|
||||
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
|
||||
ElCascader: typeof import('element-plus/es')['ElCascader']
|
||||
ElCol: typeof import('element-plus/es')['ElCol']
|
||||
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||
ElForm: typeof import('element-plus/es')['ElForm']
|
||||
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
<p>"小发同城在手,本地生活无忧"</p>
|
||||
</div>
|
||||
<div class="slider-button">
|
||||
<div class="btn slider-btn service">Android版本下载
|
||||
<div class="btn slider-btn service">APP下载
|
||||
<!-- 二维码容器 -->
|
||||
<div class="qr-code">
|
||||
<img src="../../assets/image/xiaofa_logo.png" alt="APP二维码">
|
||||
|
||||
@ -4,9 +4,9 @@
|
||||
<div class="steps-container">
|
||||
<div class="tit">
|
||||
<el-result
|
||||
:icon="auditInfo.approval_status==1 ? 'success' : [3,5].includes(auditInfo.approval_status) ? 'primary' : 'error' "
|
||||
:icon="approval_status==2 ? 'success' : [3,5].includes(approval_status) ? 'primary' : 'error' "
|
||||
:title="auditInfo?.approval_remark"
|
||||
:sub-title="auditInfo.approval_status==1 ? '现在去商家端看看吧~' : [3,5].includes(auditInfo.approval_status) ? '请耐心等一些时间' : '请填写以下资料重新提交审核' "
|
||||
:sub-title="approval_status==2 ? '现在去商家端看看吧~' : [3,5].includes(approval_status) ? '请耐心等一些时间' : '请按下面资料填写提交审核' "
|
||||
>
|
||||
</el-result>
|
||||
</div>
|
||||
@ -116,10 +116,10 @@
|
||||
list-type="picture-card"
|
||||
:auto-upload="true"
|
||||
:on-preview="handlePictureCardPreview"
|
||||
v-model="applyFormData[item.key]"
|
||||
v-model="applyFormData[item.key=='storefrontImg'?'front_facade_image':item.key=='surroundingsImg'?'environment_image':item.key]"
|
||||
:on-remove="
|
||||
(file, fileList) =>
|
||||
handleRemove(file, fileList, item.key)
|
||||
handleRemove(file, fileList, item.key=='storefrontImg'?'front_facade_image':item.key=='surroundingsImg'?'environment_image':item.key)
|
||||
"
|
||||
:on-success="
|
||||
(response, file, fileList) =>
|
||||
@ -127,7 +127,7 @@
|
||||
response,
|
||||
file,
|
||||
fileList,
|
||||
item.key
|
||||
item.key=='storefrontImg'?'front_facade_image':item.key=='surroundingsImg'?'environment_image':item.key
|
||||
)
|
||||
"
|
||||
:on-error="handleUploadError"
|
||||
@ -135,7 +135,7 @@
|
||||
:action="uploadUrl"
|
||||
name="upfile"
|
||||
:class="{
|
||||
'upload-hidden': isUploadHidden(item.key),
|
||||
'upload-hidden': isUploadHidden(item.key=='storefrontImg'?'front_facade_image':item.key=='surroundingsImg'?'environment_image':item.key),
|
||||
}"
|
||||
>
|
||||
<el-icon class="avatar-uploader-icon">
|
||||
|
||||
@ -32,9 +32,6 @@
|
||||
disabled
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="邮箱" prop="email">
|
||||
<el-input v-model="applyFormData.email" placeholder="请输入邮箱" />
|
||||
</el-form-item>
|
||||
<el-form-item label="经营品类" prop="biz_category">
|
||||
<el-cascader
|
||||
v-model="applyFormData.biz_category"
|
||||
@ -220,15 +217,12 @@
|
||||
</el-upload>
|
||||
|
||||
<el-button
|
||||
type="info"
|
||||
plain
|
||||
v-if="
|
||||
applyFormData.biz_license_image &&
|
||||
!applyFormData.biz_license_company
|
||||
"
|
||||
@click="handleOcrText(currentBbatchNo, 'biz_license_image')"
|
||||
>点击免填营业执照信息</el-button
|
||||
>
|
||||
type="info"
|
||||
plain
|
||||
v-if="applyFormData.biz_license_image && !applyFormData.biz_license_company"
|
||||
@click="handleOcrText(currentBbatchNo, 'biz_license_image')"
|
||||
>点击免填营业执照信息</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="公司名称"
|
||||
@ -250,16 +244,6 @@
|
||||
placeholder="请输入法人姓名"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="法人手机号"
|
||||
prop="legal_person_mobile"
|
||||
v-if="applyFormData.biz_license_image"
|
||||
>
|
||||
<el-input
|
||||
v-model="applyFormData.legal_person_mobile"
|
||||
placeholder="请输入法人手机号"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="注册号"
|
||||
prop="biz_license_number"
|
||||
@ -270,18 +254,10 @@
|
||||
placeholder="请输入注册号"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="经营范围"
|
||||
prop="biz_license_content"
|
||||
v-if="applyFormData.biz_license_image"
|
||||
>
|
||||
<el-input
|
||||
:rows="2"
|
||||
type="textarea"
|
||||
v-model="applyFormData.biz_license_content"
|
||||
placeholder="请输入经营范围"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="法人手机号" prop="legal_person_mobile">
|
||||
<el-input v-model="applyFormData.legal_person_mobile" placeholder="请输入法人手机号" />
|
||||
</el-form-item> -->
|
||||
|
||||
<el-form-item
|
||||
label="许可证类型"
|
||||
prop="license_type"
|
||||
@ -392,17 +368,12 @@
|
||||
<div class="uploader-tips">上传证件正面</div>
|
||||
</el-upload>
|
||||
<el-button
|
||||
type="info"
|
||||
plain
|
||||
v-if="
|
||||
applyFormData.legal_person_id_images &&
|
||||
!applyFormData.legal_person_id_number
|
||||
"
|
||||
@click="
|
||||
handleOcrText(currentBbatchNo, 'legal_person_id_images')
|
||||
"
|
||||
>点击免填身份证</el-button
|
||||
>
|
||||
type="info"
|
||||
plain
|
||||
v-if="applyFormData.legal_person_id_images && !applyFormData.legal_person_id_number"
|
||||
@click="handleOcrText(currentBbatchNo, 'legal_person_id_images')"
|
||||
>点击免填身份证</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="getLabel('legal_person_id_images2', 1)"
|
||||
@ -452,43 +423,6 @@
|
||||
placeholder="请输入法人身份证号码"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="身份证详细地址"
|
||||
prop="legal_person_id_addr"
|
||||
v-if="applyFormData.legal_person_id_images"
|
||||
>
|
||||
<el-input
|
||||
v-model="applyFormData.legal_person_id_addr"
|
||||
placeholder="请输入身份证详细地址"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="身份证生效日期"
|
||||
prop="legal_person_id_period_begin"
|
||||
v-if="applyFormData.legal_person_id_images2"
|
||||
>
|
||||
<el-date-picker
|
||||
v-model="applyFormData.legal_person_id_period_begin"
|
||||
type="date"
|
||||
placeholder="请选择有效日期"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="身份证截止日期"
|
||||
prop="legal_person_id_period_end"
|
||||
v-if="applyFormData.legal_person_id_images2"
|
||||
>
|
||||
<el-radio-group v-model="legal_person_date_type">
|
||||
<el-radio :label="1">长期</el-radio>
|
||||
<el-radio :label="2">非长期</el-radio>
|
||||
</el-radio-group>
|
||||
<el-date-picker
|
||||
v-if="legal_person_date_type == 2"
|
||||
v-model="applyFormData.legal_person_id_period_end"
|
||||
type="date"
|
||||
placeholder="请选择截止日期"
|
||||
/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div v-if="applyFormData.entity_type === 2">
|
||||
<!-- 个人身份证正反面 -->
|
||||
@ -579,43 +513,6 @@
|
||||
placeholder="请输入个人身份证号"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="身份证详细地址"
|
||||
prop="individual_id_number"
|
||||
v-if="applyFormData.individual_id_images"
|
||||
>
|
||||
<el-input
|
||||
v-model="applyFormData.individual_id_addr"
|
||||
placeholder="请输入身份证详细地址"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="身份证生效日期"
|
||||
prop="individual_id_period_begin"
|
||||
v-if="applyFormData.individual_id_images2"
|
||||
>
|
||||
<el-date-picker
|
||||
v-model="applyFormData.individual_id_period_begin"
|
||||
type="date"
|
||||
placeholder="请选择有效日期"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="身份证截止日期"
|
||||
prop="individual_id_period_end"
|
||||
v-if="applyFormData.individual_id_images2"
|
||||
>
|
||||
<el-radio-group v-model="individual_date_type">
|
||||
<el-radio :label="1">长期</el-radio>
|
||||
<el-radio :label="2">非长期</el-radio>
|
||||
</el-radio-group>
|
||||
<el-date-picker
|
||||
v-if="individual_date_type == 2"
|
||||
v-model="applyFormData.individual_id_period_end"
|
||||
type="date"
|
||||
placeholder="请选择截止日期"
|
||||
/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -647,7 +544,7 @@
|
||||
<el-icon class="avatar-uploader-icon">
|
||||
<Plus />
|
||||
</el-icon>
|
||||
<div class="uploader-tips">上传银行卡<br />免填卡号</div>
|
||||
<div class="uploader-tips">上传银行卡<br>免填卡号</div>
|
||||
</el-upload>
|
||||
<el-button
|
||||
type="info"
|
||||
@ -657,9 +554,7 @@
|
||||
>点击免填卡号</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
<template
|
||||
v-if="applyFormData.entity_type == 1 || applyFormData.bank_image"
|
||||
>
|
||||
<template v-if="applyFormData.entity_type==1 || applyFormData.bank_image">
|
||||
<el-form-item label="开户名称" prop="account_holder_name">
|
||||
<el-input v-model="applyFormData.account_holder_name" />
|
||||
</el-form-item>
|
||||
@ -679,13 +574,17 @@
|
||||
style="width: 350px"
|
||||
:options="bankList2"
|
||||
>
|
||||
<template #prefix>
|
||||
<el-icon>
|
||||
<Search />
|
||||
</el-icon>
|
||||
</template>
|
||||
<!-- <el-option
|
||||
v-for="bank in bankList2"
|
||||
:key="bank.id"
|
||||
:label="bank.branch_bank_name"
|
||||
:value="bank.branch_bank_name"
|
||||
/> -->
|
||||
</el-select-v2>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="支行名称" prop="bank_branch_name">
|
||||
<el-input v-model="applyFormData.bank_branch_name" />
|
||||
</el-form-item> -->
|
||||
</template>
|
||||
</div>
|
||||
</el-form>
|
||||
@ -706,7 +605,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { ref, reactive, onMounted, watch } from "vue";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { Plus, Search } from "@element-plus/icons-vue";
|
||||
import { Plus } from "@element-plus/icons-vue";
|
||||
|
||||
import cityData from "../../stores/cityData";
|
||||
import type { CityDataStructure } from "../../stores/cityData";
|
||||
@ -780,9 +679,7 @@ const bankList2 = ref([]);
|
||||
|
||||
let orcTimeout = 0;
|
||||
let currentFile = ref(null);
|
||||
let currentBbatchNo = ref("");
|
||||
let legal_person_date_type = ref(2);
|
||||
let individual_date_type = ref(2);
|
||||
let currentBbatchNo = ref('');
|
||||
|
||||
const handleChangeBizCategory = (value) => {
|
||||
if (value && value.length === 2) {
|
||||
@ -806,7 +703,6 @@ const applyFormData = reactive({
|
||||
biz_license_image: "",
|
||||
biz_license_number: "",
|
||||
biz_second_category: null,
|
||||
biz_license_content: "",
|
||||
city_id: null,
|
||||
contact_name: "",
|
||||
county_id: null,
|
||||
@ -816,17 +712,11 @@ const applyFormData = reactive({
|
||||
individual_id_images: "",
|
||||
individual_id_images2: "",
|
||||
individual_id_number: "",
|
||||
individual_id_addr: "",
|
||||
individual_id_period_begin: "",
|
||||
individual_id_period_end: "",
|
||||
legal_person_id_images: "",
|
||||
legal_person_id_images2: "",
|
||||
legal_person_id_number: "",
|
||||
legal_person_mobile: "",
|
||||
legal_person_name: "",
|
||||
legal_person_id_addr: "",
|
||||
legal_person_id_period_begin: "",
|
||||
legal_person_id_period_end: "",
|
||||
license_image: [],
|
||||
license_number: "",
|
||||
license_type: "1",
|
||||
@ -843,7 +733,6 @@ const applyFormData = reactive({
|
||||
store_area: "",
|
||||
user_status: "",
|
||||
bank_image: "",
|
||||
email: "",
|
||||
});
|
||||
const optionsPermitType = [
|
||||
{
|
||||
@ -863,13 +752,6 @@ const rules = reactive({
|
||||
contact_name: [
|
||||
{ required: true, message: "请输入联系人姓名", trigger: "blur" },
|
||||
],
|
||||
legal_person_id_addr: [
|
||||
{ required: true, message: "请输入法人身份证详细地址", trigger: "blur" },
|
||||
],
|
||||
biz_license_content: [
|
||||
{ required: true, message: "请输入经营范围内容", trigger: "blur" },
|
||||
],
|
||||
email: [{ required: true, message: "请输入邮箱", trigger: "blur" }],
|
||||
biz_category: [
|
||||
{ required: true, message: "请选择经营品类", trigger: "change" },
|
||||
],
|
||||
@ -902,26 +784,13 @@ const rules = reactive({
|
||||
legal_person_mobile: [
|
||||
{ required: true, message: "请输入法人手机号", trigger: "blur" },
|
||||
],
|
||||
legal_person_id_period_begin: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入法人身份证开始有效日期",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
legal_person_id_period_end: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入法人身份证截止有效日期",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
legal_person_id_number: [
|
||||
{ required: true, message: "请输入法人身份证号", trigger: "blur" },
|
||||
],
|
||||
biz_license_image: [
|
||||
{ required: true, message: "请上传营业执照", trigger: "change" },
|
||||
],
|
||||
// license_image: [{ required: true, message: '请上传许可证', trigger: 'change' }],
|
||||
legal_person_id_images: [
|
||||
{ required: true, message: "请上传法人身份证正面", trigger: "change" },
|
||||
],
|
||||
@ -937,23 +806,6 @@ const rules = reactive({
|
||||
individual_id_images2: [
|
||||
{ required: true, message: "请上传个人身份证反面", trigger: "change" },
|
||||
],
|
||||
individual_id_addr: [
|
||||
{ required: true, message: "请输入个人身份证详细地址", trigger: "change" },
|
||||
],
|
||||
individual_id_period_begin: [
|
||||
{
|
||||
required: true,
|
||||
message: "请选择个人身份证开始有效日期",
|
||||
trigger: "change",
|
||||
},
|
||||
],
|
||||
individual_id_period_end: [
|
||||
{
|
||||
required: true,
|
||||
message: "请选择个人身份证截止有效日期",
|
||||
trigger: "change",
|
||||
},
|
||||
],
|
||||
bank_branch_name: [
|
||||
{ required: true, message: "请选择银行", trigger: "change" },
|
||||
],
|
||||
@ -966,24 +818,6 @@ const rules = reactive({
|
||||
],
|
||||
});
|
||||
|
||||
watch(legal_person_date_type, (newVal) => {
|
||||
if (newVal == 1) {
|
||||
applyFormData.legal_person_id_period_end = "9999-12-31";
|
||||
} else {
|
||||
applyFormData.legal_person_id_period_end = "";
|
||||
}
|
||||
formRef.value.validate("legal_person_id_period_end");
|
||||
});
|
||||
|
||||
watch(individual_date_type, (newVal) => {
|
||||
if (newVal == 1) {
|
||||
applyFormData.individual_id_period_end = "9999-12-31";
|
||||
} else {
|
||||
applyFormData.individual_id_period_end = "";
|
||||
}
|
||||
formRef.value.validate("individual_id_period_end");
|
||||
});
|
||||
|
||||
const handleMerchApply = async () => {
|
||||
console.log(2001);
|
||||
const {
|
||||
@ -994,6 +828,7 @@ const handleMerchApply = async () => {
|
||||
clearing_bank_code,
|
||||
account_number,
|
||||
account_holder_name,
|
||||
biz_category,
|
||||
biz_license_company,
|
||||
biz_license_image,
|
||||
biz_license_number,
|
||||
@ -1022,14 +857,6 @@ const handleMerchApply = async () => {
|
||||
store_longitude,
|
||||
store_name,
|
||||
store_area,
|
||||
biz_category,
|
||||
biz_license_content,
|
||||
legal_person_id_addr,
|
||||
legal_person_id_period_begin,
|
||||
legal_person_id_period_end,
|
||||
individual_id_addr,
|
||||
individual_id_period_begin,
|
||||
individual_id_period_end,
|
||||
} = applyFormData;
|
||||
const res = await merchApply({
|
||||
bank_name,
|
||||
@ -1040,7 +867,6 @@ const handleMerchApply = async () => {
|
||||
account_number,
|
||||
account_holder_name,
|
||||
biz_category,
|
||||
biz_license_content,
|
||||
biz_license_company,
|
||||
biz_license_image,
|
||||
biz_license_number,
|
||||
@ -1069,12 +895,6 @@ const handleMerchApply = async () => {
|
||||
store_longitude,
|
||||
store_name,
|
||||
store_area,
|
||||
legal_person_id_addr,
|
||||
legal_person_id_period_begin,
|
||||
legal_person_id_period_end,
|
||||
individual_id_addr,
|
||||
individual_id_period_begin,
|
||||
individual_id_period_end,
|
||||
});
|
||||
};
|
||||
|
||||
@ -1083,13 +903,13 @@ const checkForm = async () => {
|
||||
return valid;
|
||||
});
|
||||
|
||||
if (applyFormData.entity_type == 2 && !applyFormData.bank_image) {
|
||||
ElMessage.error("请上传银行卡");
|
||||
return;
|
||||
if(applyFormData.entity_type==2 && !applyFormData.bank_image){
|
||||
ElMessage.error("请上传银行卡")
|
||||
return
|
||||
}
|
||||
|
||||
if (isValid) {
|
||||
handleMerchApply();
|
||||
handleMerchApply()
|
||||
}
|
||||
};
|
||||
|
||||
@ -1307,7 +1127,7 @@ const isUploadHidden = (field: string) => {
|
||||
if (field === "license_image") {
|
||||
return applyFormData[field].length >= limit;
|
||||
} else {
|
||||
return applyFormData[field] != "" || applyFormData[field].length != 0;
|
||||
return applyFormData[field] !== "" && applyFormData[field] != null;
|
||||
}
|
||||
};
|
||||
|
||||
@ -1363,72 +1183,19 @@ const handleOcrText = async (batchNo, imgType) => {
|
||||
|
||||
switch (imgType) {
|
||||
case "biz_license_image":
|
||||
var res = (await getOcrText(
|
||||
batchNo,
|
||||
orcImgTypeConf.BUSINESS_LICENCE
|
||||
)) as any;
|
||||
var res = (await getOcrText(batchNo, orcImgTypeConf.BUSINESS_LICENCE)) as any;
|
||||
|
||||
console.log("biz_license_image", res);
|
||||
applyFormData.biz_license_company = res.bizLicenseCompanyName;
|
||||
applyFormData.legal_person_name = res.bizLicenseOwnerName;
|
||||
applyFormData.biz_license_number = res.bizLicenseCreditCode;
|
||||
applyFormData.biz_license_content = res.bizLicenseScope;
|
||||
applyFormData.account_holder_name = res.bizLicenseCompanyName;
|
||||
break;
|
||||
case "legal_person_id_images":
|
||||
var res = (await getOcrText(
|
||||
batchNo,
|
||||
orcImgTypeConf.ID_CARD_FRONT
|
||||
)) as any;
|
||||
var res = (await getOcrText(batchNo, orcImgTypeConf.ID_CARD_FRONT)) as any;
|
||||
|
||||
console.log("legal_person_id_images", res);
|
||||
applyFormData.legal_person_id_number = res.idNumber;
|
||||
applyFormData.legal_person_id_addr = res.address;
|
||||
break;
|
||||
case "legal_person_id_images2":
|
||||
var res = (await getOcrText(
|
||||
batchNo,
|
||||
orcImgTypeConf.ID_CARD_BEHIND
|
||||
)) as any;
|
||||
var validity = res.validity.split('-')
|
||||
|
||||
console.log("legal_person_id_images2", res);
|
||||
applyFormData.legal_person_id_period_begin = validity[0];
|
||||
|
||||
if(validity[1]!='长期'){
|
||||
applyFormData.legal_person_id_period_end = validity[1];
|
||||
} else {
|
||||
legal_person_date_type=1
|
||||
applyFormData.legal_person_id_period_end = "9999-12-31"
|
||||
}
|
||||
break;
|
||||
case "individual_id_images":
|
||||
var res = (await getOcrText(
|
||||
batchNo,
|
||||
orcImgTypeConf.FR_ID_CARD_FRONT
|
||||
)) as any;
|
||||
|
||||
console.log("individual_id_images", res);
|
||||
applyFormData.individual_id_number = res.idNumber;
|
||||
applyFormData.individual_id_addr = res.address;
|
||||
break;
|
||||
case "individual_id_images2":
|
||||
var res = (await getOcrText(
|
||||
batchNo,
|
||||
orcImgTypeConf.ID_CARD_BEHIND
|
||||
)) as any;
|
||||
|
||||
var validity = res.validity.split('-')
|
||||
|
||||
console.log("individual_id_images2", res);
|
||||
applyFormData.individual_id_period_begin = validity[0];
|
||||
|
||||
if(validity[1]!='长期'){
|
||||
applyFormData.individual_id_period_end = validity[1];
|
||||
} else {
|
||||
legal_person_date_type=1
|
||||
applyFormData.individual_id_period_end = "9999-12-31"
|
||||
}
|
||||
break;
|
||||
case "bank_image":
|
||||
var res = (await getOcrText(batchNo, orcImgTypeConf.BANK_CARD)) as any;
|
||||
@ -1438,7 +1205,7 @@ const handleOcrText = async (batchNo, imgType) => {
|
||||
}
|
||||
|
||||
loading.value = false;
|
||||
formRef.value.validate();
|
||||
formRef.value.validate()
|
||||
};
|
||||
|
||||
const handleUploadSuccess = async (response, file, fileList, field) => {
|
||||
@ -1457,33 +1224,18 @@ const handleUploadSuccess = async (response, file, fileList, field) => {
|
||||
switch (field) {
|
||||
case "biz_license_image":
|
||||
var res = await getBatchNo(file.raw, orcImgTypeConf.BUSINESS_LICENCE);
|
||||
currentBbatchNo.value = res.batchNo;
|
||||
handleOcrText(res.batchNo, field);
|
||||
currentBbatchNo.value = res.batchNo
|
||||
handleOcrText(res.batchNo, field)
|
||||
break;
|
||||
case "legal_person_id_images":
|
||||
var res = await getBatchNo(file.raw, orcImgTypeConf.ID_CARD_FRONT);
|
||||
currentBbatchNo.value = res.batchNo;
|
||||
handleOcrText(res.batchNo, field);
|
||||
break;
|
||||
case "legal_person_id_images2":
|
||||
var res = await getBatchNo(file.raw, orcImgTypeConf.ID_CARD_BEHIND);
|
||||
currentBbatchNo.value = res.batchNo;
|
||||
handleOcrText(res.batchNo, field);
|
||||
break;
|
||||
case "individual_id_images":
|
||||
var res = await getBatchNo(file.raw, orcImgTypeConf.FR_ID_CARD_FRONT);
|
||||
currentBbatchNo.value = res.batchNo;
|
||||
handleOcrText(res.batchNo, field);
|
||||
break;
|
||||
case "individual_id_images2":
|
||||
var res = await getBatchNo(file.raw, orcImgTypeConf.ID_CARD_BEHIND);
|
||||
currentBbatchNo.value = res.batchNo;
|
||||
handleOcrText(res.batchNo, field);
|
||||
currentBbatchNo.value = res.batchNo
|
||||
handleOcrText(res.batchNo, field)
|
||||
break;
|
||||
case "bank_image":
|
||||
var res = await getBatchNo(file.raw, orcImgTypeConf.BANK_CARD);
|
||||
currentBbatchNo.value = res.batchNo;
|
||||
handleOcrText(res.batchNo, field);
|
||||
currentBbatchNo.value = res.batchNo
|
||||
handleOcrText(res.batchNo, field)
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
@ -1495,40 +1247,38 @@ const handleUploadSuccess = async (response, file, fileList, field) => {
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
formRef.value.validate();
|
||||
formRef.value.validate()
|
||||
};
|
||||
|
||||
const handleUploadError = (error, file) => {
|
||||
loading.value = false;
|
||||
ElMessage.error("文件上传失败");
|
||||
};
|
||||
|
||||
const clearOtherFields = () => {
|
||||
applyFormData.individual_id_number = "";
|
||||
applyFormData.individual_id_images = "";
|
||||
applyFormData.individual_id_images2 = "";
|
||||
applyFormData.individual_id_addr = "";
|
||||
applyFormData.individual_id_period_begin = "";
|
||||
applyFormData.individual_id_period_end = "";
|
||||
|
||||
applyFormData.license_type = "1";
|
||||
applyFormData.license_number = "";
|
||||
applyFormData.license_image = [];
|
||||
applyFormData.biz_license_image = "";
|
||||
applyFormData.biz_license_number = "";
|
||||
applyFormData.biz_license_company = "";
|
||||
applyFormData.biz_license_content = "";
|
||||
applyFormData.legal_person_name = "";
|
||||
applyFormData.legal_person_mobile = "";
|
||||
applyFormData.legal_person_id_number = "";
|
||||
applyFormData.legal_person_id_images = "";
|
||||
applyFormData.legal_person_id_images2 = "";
|
||||
applyFormData.legal_person_id_addr = "";
|
||||
applyFormData.legal_person_id_period_begin = "";
|
||||
applyFormData.legal_person_id_period_end = "";
|
||||
// if (applyFormData.entity_type === 1) {
|
||||
// // 清空个人部分的字段
|
||||
// applyFormData.individual_id_number = "";
|
||||
// applyFormData.individual_id_images = "";
|
||||
// applyFormData.individual_id_images2 = "";
|
||||
// } else if (applyFormData.entity_type === 2) {
|
||||
// // 清空企业部分的字段
|
||||
// applyFormData.license_type = "1";
|
||||
// applyFormData.license_number = "";
|
||||
// applyFormData.biz_license_number = "";
|
||||
// applyFormData.biz_license_company = "";
|
||||
// applyFormData.legal_person_name = "";
|
||||
// applyFormData.legal_person_mobile = "";
|
||||
// applyFormData.legal_person_id_number = "";
|
||||
// applyFormData.biz_license_image = "";
|
||||
// applyFormData.license_image = [];
|
||||
// applyFormData.legal_person_id_images = "";
|
||||
// applyFormData.legal_person_id_images2 = "";
|
||||
// }
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
bankListRemoteMethod();
|
||||
|
||||
GetStoreCategories()
|
||||
.then((res) => {
|
||||
if (res.code === 0 && res.status === 200) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user