update 修改驳回审核和增加分账,创建店铺补偿机制

This commit is contained in:
qijq 2025-05-29 21:53:13 +08:00
parent 75b4b128d8
commit 8a358f4121
8 changed files with 965 additions and 737 deletions

File diff suppressed because it is too large Load Diff

View File

@ -4,8 +4,8 @@ import { URL } from '@/config'
/** /**
* @name 商家申请入驻信息分页列表 * @name 商家申请入驻信息分页列表
* @api api_url + '/admin/shop/merch/list' * @api api_url + '/admin/shop/merch/list'
* @param { id } * @param { id }
* @returns * @returns
*/ */
export function getPrinterList(params) { export function getPrinterList(params) {
@ -15,15 +15,15 @@ export function getPrinterList(params) {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
data:params, data: params,
}) })
} }
/** /**
* @name 商家申请入驻信息详情 * @name 商家申请入驻信息详情
* @api api_url + '/admin/shop/merch/detail' * @api api_url + '/admin/shop/merch/detail'
* @param { id } * @param { id }
* @returns * @returns
*/ */
export function getMerchDetail(params) { export function getMerchDetail(params) {
@ -33,15 +33,15 @@ export function getMerchDetail(params) {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
data:params, data: params,
}) })
} }
/** /**
* @name 审批商家申请入驻 * @name 审批商家申请入驻
* @api api_url + '/admin/shop/merch/approval' * @api api_url + '/admin/shop/merch/approval'
* @param { id , approvalStatus , approvalRemark} * @param { id , approvalStatus , approvalRemark}
* @returns * @returns
*/ */
export function getMerchApproval(params) { export function getMerchApproval(params) {
@ -51,16 +51,15 @@ export function getMerchApproval(params) {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
data:params, data: params,
}) })
} }
/** /**
* @name 发起合同签署 * @name 发起合同签署
* @api api_url + '/admin/shop/esign/sign-flow/create-by-file' * @api api_url + '/admin/shop/esign/sign-flow/create-by-file'
* @param { id , approvalStatus , approvalRemark} * @param { id , approvalStatus , approvalRemark}
* @returns * @returns
*/ */
export function getCreateByFile(params) { export function getCreateByFile(params) {
@ -70,15 +69,15 @@ export function getCreateByFile(params) {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
data:params, data: params,
}) })
} }
/** /**
* @name 查看商家签署合同 * @name 查看商家签署合同
* @api api_url + '/admin/shop/esign/signed/contract/file' * @api api_url + '/admin/shop/esign/signed/contract/file'
* @param { mchMobile } * @param { mchMobile }
* @returns * @returns
*/ */
export function getCheckContractFile(params) { export function getCheckContractFile(params) {
@ -88,8 +87,42 @@ export function getCheckContractFile(params) {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
data:params, data: params,
}) })
} }
/**
* @name 创建店铺(补偿机制)
* @api api_url + '/admin/shop/esign/signed/contract/file'
* @param { mchMobile }
* @returns
*/
export function createShop(params) {
return request({
url: URL.shop.merch.createShop,
method: 'post',
headers: {
'Content-Type': 'application/json',
},
data: params,
})
}
/**
* @name 创建分账(补偿机制)
* @api api_url + '/admin/shop/esign/signed/contract/file'
* @param { mchMobile }
* @returns
*/
export function createSubAccount(params) {
return request({
url: URL.shop.merch.createSubAccount,
method: 'post',
headers: {
'Content-Type': 'application/json',
},
data: params,
})
}

View File

@ -12,8 +12,7 @@ import BaiduMap from './../components/baidu_Map_xiufu'
Vue.use(BaiduMap, { Vue.use(BaiduMap, {
// ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */ // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
ak: 'chsSzRvFcU1uXYoDHAHlsF98NkTVbzvE', ak: 'it9e3OBa5JLwTT4V0YGyLUP02w3o1mml',
}) })
export default BaiduMap export default BaiduMap

View File

@ -438,6 +438,10 @@ let url = {
createByFile: api_url + '/admin/shop/esign/sign-flow/create-by-file', createByFile: api_url + '/admin/shop/esign/sign-flow/create-by-file',
//查看商家签署合同 //查看商家签署合同
checkContractFile: api_url + '/admin/shop/esign/signed/contract/file', checkContractFile: api_url + '/admin/shop/esign/signed/contract/file',
//创建店铺(补偿机制)
createShop: api_url + '/admin/shop/shop-store-base/mchinfo/to/storeinfo',
//创建分账(补偿机制)
createSubAccount: api_url + '/mobile/pay/lakala/ledger/applyLedgerMer',
}, },
activity: { activity: {
lottery: { lottery: {

View File

@ -183,12 +183,12 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="发布版本详细说明" prop="description"> <el-form-item label="发布版本详细说明" prop="description">
<vab-quill <el-input
ref="vab-quill" type="textarea"
:autosize="{ minRows: 10, maxRows: 20 }"
placeholder="请输入内容"
v-model="formDialog.description" v-model="formDialog.description"
:min-height="300" ></el-input>
:options="vbOptions"
/>
</el-form-item> </el-form-item>
<el-form-item label="升级包开启状态" prop="is_force_update"> <el-form-item label="升级包开启状态" prop="is_force_update">
<el-switch <el-switch
@ -630,9 +630,6 @@ export default {
align-items: center; align-items: center;
box-shadow: inset 0 -1px 0 #efefef; box-shadow: inset 0 -1px 0 #efefef;
.head-add-btn {
}
.head-content { .head-content {
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -1,304 +1,303 @@
const baseInfo = [ const baseInfo = [
{ {
key:'store_name', key: 'store_name',
label:'店铺名称', label: '店铺名称',
}, },
{ {
key:'biz_category', key: 'biz_category',
label:'经营品类', label: '经营品类',
}, },
{ {
key:'contact_name', key: 'contact_name',
label:'联系人', label: '联系人',
}, },
] ]
const addressInfo = [ const addressInfo = [
{ {
key:'mapAddress', key: 'mapAddress',
label:'地图地址', label: '地图地址',
}, },
{ {
key:'store_address', key: 'store_address',
label:'详细地址', label: '详细地址',
}, },
{ {
key:'storefrontImg', key: 'front_facade_image',
label:'门脸图', label: '门脸图',
}, },
{ {
key:'surroundingsImg', key: 'environment_image',
label:'环境图', label: '环境图',
}, },
] ]
const certificate = [ const certificate = [
// {
// key: 'biz_license_company',
// label: '公司名',
// },
// {
// key:'biz_license_number',
// label:'营业执照编号',
// },
{ {
key:'biz_license_company', key: 'businessLicenseOCR',
label:'公司名', label: '营业执照OCR识别',
}, },
{ {
key:'biz_license_number', key: 'license_type',
label:'营业执照编号', label: '许可证类型',
}, },
{ {
key:'biz_license_image', key: 'license_number',
label:'营业执照图片', label: '许可证编号',
}, },
{ {
key:'license_type', key: 'license_image',
label:'许可证类型', label: '许可证图片',
}, },
// {
// key: 'legal_person_mobile',
// label: '法人手机号',
// },
{ {
key:'license_number', key: 'legalPersonOCR',
label:'许可证编号', label: '法人身份证OCR识别',
},
{
key:'license_image',
label:'许可证图片',
},
{
key:'legal_person_name',
label:'法人姓名',
},
{
key:'legal_person_mobile',
label:'法人手机号',
},
{
key:'legal_person_id_number',
label:'法人身份证号码',
},
{
key:'legal_person_id_images',
label:'法人身份证正面图片',
},
{
key:'legal_person_id_images2',
label:'法人身份证反面图片',
}, },
// {
// key: 'legal_person_id_number',
// label: '法人身份证号码',
// },
// {
// key: 'legal_person_id_images',
// label: '法人身份证正面图片',
// },
// {
// key: 'legal_person_id_images2',
// label: '法人身份证反面图片',
// },
] ]
const certificate2 = [
const certificate2 = [
{ {
key:'individual_id_number', key: 'personOCR',
label:'身份证号码', label: '身份证OCR',
placeholder:'地图地址', placeholder: '地图地址',
},
{
key:'individual_id_images',
label:'身份证正面图片',
placeholder:'地图地址',
},
{
key:'individual_id_images2',
label:'身份证反面图片',
placeholder:'地图地址',
}, },
// {
// key: 'individual_id_images',
// label: '身份证正面图片',
// placeholder: '地图地址',
// },
// {
// key: 'individual_id_images2',
// label: '身份证反面图片',
// placeholder: '地图地址',
// },
] ]
const bankInfo = [ const bankInfo = [
{ {
key:'bank_name', key: 'bankOCR',
label:'开户银行', label: '银行OCR',
},
// {
// key: 'bank_branch_name',
// label: '开户银行的支行名称',
// },
// {
// key: 'account_number',
// label: '收款账户号码',
// },
// {
// key: 'account_holder_name',
// label: '收款账户姓名',
// },
]
const formConfig = [
{
key: 'contact_name',
label: '联系人',
}, },
{ {
key:'bank_branch_name', key: 'biz_category',
label:'开户银行的支行名称', label: '经营品类',
}, },
{ {
key:'account_number', key: 'store_name',
label:'收款账户号码', label: '店铺名称',
}, },
{ {
key:'account_holder_name', key: 'mapAddress',
label:'收款账户姓名', label: '地图地址',
},
{
key: 'store_address',
label: '详细地址',
},
{
key: 'storefrontImg',
label: '门脸图',
},
{
key: 'surroundingsImg',
label: '环境图',
},
{
key: 'entity_type',
label: '许可证类型',
},
{
key: 'license_number',
label: '许可证编号',
},
{
key: 'biz_license_number',
label: '营业执照编号',
},
{
key: 'biz_license_company',
label: '营业执照公司名或真实的公司名',
},
{
key: 'legal_person_name',
label: '法人姓名',
},
{
key: 'legal_person_mobile',
label: '法人手机号',
},
{
key: 'legal_person_id_number',
label: '法人身份证号码',
},
{
key: 'biz_license_image',
label: '营业执照图片',
},
{
key: 'license_type',
label: '许可证类型',
},
{
key: 'license_number',
label: '许可证编号',
},
{
key: 'license_image',
label: '许可证图片',
},
{
key: 'legal_person_id_images',
label: '法人身份证正面图片',
},
{
key: 'legal_person_id_images2',
label: '法人身份证反面图片',
},
{
key: 'bank_name',
label: '开户银行',
},
{
key: 'bank_branch_name',
label: '开户银行的支行名称',
},
{
key: 'account_number',
label: '收款账户号码',
},
{
key: 'account_holder_name',
label: '收款账户姓名',
},
{
key: 'account_holder_name',
label: '收款账户姓名',
}, },
] ]
const formConfig = [ const formConfig2 = [
{ {
key:'contact_name', key: 'contact_name',
label:'联系人', label: '联系人',
placeholder: '请输入联系人',
}, },
{ {
key:'biz_category', key: 'biz_category',
label:'经营品类', label: '经营品类',
placeholder: '请选择经营品类',
}, },
{ {
key:'store_name', key: 'store_name',
label:'店铺名称', label: '门店名称',
placeholder: '请输入门店名称',
}, },
{ {
key:'mapAddress', key: 'mapAddress',
label:'地图地址', label: '地图地址',
placeholder: '请在地图上选择门店地址',
}, },
{ {
key:'store_address', key: 'store_address',
label:'详细地址', label: '详细地址',
placeholder: '详细地址:如:人民大道205号2楼213',
}, },
{ {
key:'storefrontImg', key: 'storefrontImg',
label:'门脸图', label: '门脸图',
placeholder: '',
}, },
{ {
key:'surroundingsImg', key: 'surroundingsImg',
label:'环境图', label: '环境图',
placeholder: '',
}, },
{ {
key:'entity_type', key: 'individual_id_number',
label:'许可证类型', label: '身份证号码',
placeholder: '地图地址',
}, },
{ {
key:'license_number', key: 'individual_id_images',
label:'许可证编号', label: '身份证正面图片',
placeholder: '地图地址',
}, },
{ {
key:'biz_license_number', key: 'individual_id_images2',
label:'营业执照编号', label: '身份证反面图片',
placeholder: '地图地址',
}, },
{ {
key:'biz_license_company', key: 'bank_name',
label:'营业执照公司名或真实的公司名', label: '开户银行',
}, },
{ {
key:'legal_person_name', key: 'bank_branch_name',
label:'法人姓名', label: '开户银行的支行名称',
}, },
{ {
key:'legal_person_mobile', key: 'account_number',
label:'法人手机号', label: '收款账户号码',
}, },
{ {
key:'legal_person_id_number', key: 'account_holder_name',
label:'法人身份证号码', label: '收款账户姓名',
}, },
{ {
key:'biz_license_image', key: 'account_holder_name',
label:'营业执照图片', label: '收款账户姓名',
},
{
key:'license_type',
label:'许可证类型',
},
{
key:'license_number',
label:'许可证编号',
},
{
key:'license_image',
label:'许可证图片',
},
{
key:'legal_person_id_images',
label:'法人身份证正面图片',
},
{
key:'legal_person_id_images2',
label:'法人身份证反面图片',
},
{
key:'bank_name',
label:'开户银行',
},
{
key:'bank_branch_name',
label:'开户银行的支行名称',
},
{
key:'account_number',
label:'收款账户号码',
},
{
key:'account_holder_name',
label:'收款账户姓名',
},
{
key:'account_holder_name',
label:'收款账户姓名',
},
]
const formConfig2=[
{
key:'contact_name',
label:'联系人',
placeholder:'请输入联系人',
},
{
key:'biz_category',
label:'经营品类',
placeholder:'请选择经营品类',
},
{
key:'store_name',
label:'门店名称',
placeholder:'请输入门店名称',
},
{
key:'mapAddress',
label:'地图地址',
placeholder:'请在地图上选择门店地址',
},
{
key:'store_address',
label:'详细地址',
placeholder:'详细地址:如:人民大道205号2楼213',
},
{
key:'storefrontImg',
label:'门脸图',
placeholder:''
},
{
key:'surroundingsImg',
label:'环境图',
placeholder:'',
},
{
key:'individual_id_number',
label:'身份证号码',
placeholder:'地图地址',
},
{
key:'individual_id_images',
label:'身份证正面图片',
placeholder:'地图地址',
},
{
key:'individual_id_images2',
label:'身份证反面图片',
placeholder:'地图地址',
},
{
key:'bank_name',
label:'开户银行',
},
{
key:'bank_branch_name',
label:'开户银行的支行名称',
},
{
key:'account_number',
label:'收款账户号码',
},
{
key:'account_holder_name',
label:'收款账户姓名',
},
{
key:'account_holder_name',
label:'收款账户姓名',
}, },
] ]
export default { export default {
formConfig, formConfig,
formConfig2, formConfig2,
baseInfo, baseInfo,
addressInfo, addressInfo,
certificate, certificate,
certificate2, certificate2,
bankInfo, bankInfo,
} }

View File

@ -27,7 +27,7 @@
:prop="item.prop" :prop="item.prop"
:label="item.label" :label="item.label"
> >
<template #default="{ row, $index }" v-if="item.label == '操作'"> <template #default="{ row, $index }" v-if="item.label == '操作'">
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -36,6 +36,7 @@
详情 详情
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
@ -77,7 +78,32 @@ export default {
height: window.innerHeight - 220 - 150, height: window.innerHeight - 220 - 150,
}, },
shopId: 0, shopId: 0,
approvalStatus: ['已通过', '未通过', '待审核'], approvalStatus:[
{
key:1,
value:'已通过',
},
{
key:2,
value:'未通过',
},
{
key:3,
value:'待审核',
},
{
key:4,
value:'未申请过',
},
{
key:5,
value:'已提交拉卡拉审核',
},
{
key:21,
value:'拉卡拉审核未通过',
},
],
signedStatus: [ signedStatus: [
{ {
index: -1, index: -1,
@ -109,6 +135,7 @@ export default {
}, },
], ],
entityType: ['企业', '个人'], entityType: ['企业', '个人'],
storeStatus : ['已创建','未创建'],
tabColumn: [ tabColumn: [
{ {
prop: 'operation', prop: 'operation',
@ -131,7 +158,7 @@ export default {
label: '联系人', label: '联系人',
}, },
{ {
prop: '', prop: 'account_holder_name',
label: '公司名称', label: '公司名称',
}, },
{ {
@ -155,9 +182,17 @@ export default {
label: '审批状态', label: '审批状态',
}, },
{ {
prop: 'signed_status', prop: 'store_status',
label: '合同签署状态', label: '店铺创建状态',
}, },
{
prop: 'has_apply_split',
label: '是否分账',
},
// {
// prop: 'signed_status',
// label: '',
// },
], ],
tableData: [ tableData: [
{ {
@ -179,9 +214,18 @@ export default {
if (res.data.items.length > 0) { if (res.data.items.length > 0) {
res.data.items.forEach((item) => { res.data.items.forEach((item) => {
if (item.approval_status) { if (item.approval_status) {
item.approval_status =
this.approvalStatus[item.approval_status - 1] const found = this.approvalStatus.find(group => group.key == item.approval_status);
item.approval_status = found ? found.value : 'Unknown Status';
} }
if(item.store_status){
item.store_status = this.storeStatus[item.store_status - 1]
}
if(item.has_apply_split){
item.has_apply_split = item.has_apply_split == 1 ? '是' : '否'
}
if (item.signed_status != null) { if (item.signed_status != null) {
this.signedStatus.forEach((group) => { this.signedStatus.forEach((group) => {
if (group.index == item.signed_status) { if (group.index == item.signed_status) {
@ -217,21 +261,26 @@ export default {
if (row.approval_status == '已通过' && columnIndex == 10) { if (row.approval_status == '已通过' && columnIndex == 10) {
return 'status-pass' return 'status-pass'
} }
if (row.approval_status == '未通过' && columnIndex == 10) { if (['拉卡拉审核未通过','未通过'].includes(row.approval_status) && columnIndex == 10) {
return 'status-not-pass' return 'status-not-pass'
} }
if (row.approval_status == '待审核' && columnIndex == 10) { if (['待审核','未申请过','已提交拉卡拉审核'].includes(row.approval_status) && columnIndex == 10) {
return 'status-check-pass' return 'status-check-pass'
} }
if (row.signed_status == '' && columnIndex == 11) { if (row.store_status == '已创建' && columnIndex == 11) {
return 'status-pass' return 'status-pass'
} }
if (row.signed_status == '没签署' && columnIndex == 11) { if (row.store_status == '未创建' && columnIndex == 11) {
return 'status-not-pass' return 'status-not-pass'
} }
if (row.signed_status == '待审核' && columnIndex == 11) {
return 'status-check-pass'
if (row.has_apply_split == '是' && columnIndex == 12) {
return 'status-pass'
}
if (row.has_apply_split == '否' && columnIndex == 12) {
return 'status-not-pass'
} }
} }
}, },

View File

@ -435,18 +435,18 @@
:class="['item-input', 'approval-status']" :class="['item-input', 'approval-status']"
:style="approvalStatusClass" :style="approvalStatusClass"
> >
{{ approvalStatus[form.approval_status - 1] }} {{ formatApprovalStatus(form.approval_status) }}
</span> </span>
</div> </div>
</div> </div>
<div class="item-info"> <div class="item-info">
<div class="item-block"> <div class="item-block">
<div class="item-lable">合同签署状态</div> <div class="item-lable">店铺创建状态</div>
<span <span
:class="['item-input', 'approval-status']" :class="['item-input', 'approval-status']"
:style="signedStatusClass" :style="signedStatusClass"
> >
{{ form.signedStatusName }} {{ storeStatus[form.store_status - 1] }}
</span> </span>
</div> </div>
</div> </div>
@ -540,7 +540,7 @@
:key="index + item.key" :key="index + item.key"
:label="item.key" :label="item.key"
> >
{{ item.label }} {{ form.entity_type == 1 ? '银行' : item.label }}
</el-checkbox> </el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</div> </div>
@ -550,20 +550,12 @@
<div class="btn-content" v-if="!showLoading"> <div class="btn-content" v-if="!showLoading">
<el-button <el-button
class="btn" class="btn"
style="width: 150px;"
type="success" type="success"
@click="getMerchApproval(1)" @click="getMerchApproval(1)"
v-if="![1].includes(form.approval_status)" v-if="![1].includes(form.approval_status)"
> >
通过审核 提交拉卡拉审核
</el-button>
<el-button
class="btn btn-hetong"
type="success"
@click="getCreateByFile()"
v-if="![2].includes(form.signed_status)"
:disabled="!form.signed_status <= 0 || form.approval_status != 1"
>
合同签署
</el-button> </el-button>
<el-button <el-button
class="btn" class="btn"
@ -576,6 +568,22 @@
<!-- <el-button class="btn" type="danger" @click="getCheckContractFile()"> <!-- <el-button class="btn" type="danger" @click="getCheckContractFile()">
查看商家签署合同 查看商家签署合同
</el-button> --> </el-button> -->
<el-button
class="btn btn-hetong"
type="success"
@click="createShop()"
v-if="form.store_status!=1 && form.approval_status == 1"
>
创建店铺
</el-button>
<el-button
class="btn btn-hetong"
type="success"
@click="createSubAccount()"
v-if=" form.has_apply_mer ==1 && form.has_apply_split != 1"
>
创建分账
</el-button>
<el-button class="btn" @click="close()">取消</el-button> <el-button class="btn" @click="close()">取消</el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -587,6 +595,8 @@ import {
getMerchApproval, getMerchApproval,
getCreateByFile, getCreateByFile,
getCheckContractFile, getCheckContractFile,
createShop,
createSubAccount
} from '@/api/shopAudit/shopAudit' } from '@/api/shopAudit/shopAudit'
import city from './cityData.js' import city from './cityData.js'
import config from './formConfig' import config from './formConfig'
@ -614,6 +624,7 @@ export default {
contact_name: '', contact_name: '',
biz_category: 0, biz_category: 0,
settlement_method: '', settlement_method: '',
store_area:'',
store_longitude: '', store_longitude: '',
store_latitude: '', store_latitude: '',
province_id: '', province_id: '',
@ -647,11 +658,45 @@ export default {
city_name: '', city_name: '',
county_name: '', county_name: '',
signed_status: 0, signed_status: 0,
lkl_mer_cup_no:'', //
lkl_term_no:'',//
has_ec_signed:'' , // 1-2-
has_apply_mer:'' ,// 1-2-
has_apply_split:'',// 1-2-
has_apply_receiver:'',// 1-2-,
has_bind_receiver:''// 1-2-
}, },
bizCategoryList: ['医疗用品', '生活用品'], bizCategoryList: ['医疗用品', '生活用品'],
entityType: ['企业', '个人'], entityType: ['企业', '个人'],
approvalStatus: ['已通过', '未通过', '待审核'], // approvalStatus: ['', '', '','','',''],
approvalStatus:[
{
key:1,
value:'已通过',
},
{
key:2,
value:'未通过',
},
{
key:3,
value:'待审核',
},
{
key:4,
value:'未申请过',
},
{
key:5,
value:'已提交拉卡拉审核',
},
{
key:21,
value:'拉卡拉审核未通过',
},
],
licenseType: ['许可证', '特许证件', '其他证件'], licenseType: ['许可证', '特许证件', '其他证件'],
storeStatus : ['已创建','未创建'],
signedStatus: [ signedStatus: [
{ {
index: -1, index: -1,
@ -705,21 +750,12 @@ export default {
return colorList[this.form.approval_status - 1] return colorList[this.form.approval_status - 1]
}, },
signedStatusClass() { signedStatusClass() {
let colorList = [
'color:#ffba00',
'color:#ffba00',
'color:#48c978',
'color:red',
'color:red',
'color:red',
'',
'color:red',
]
if (this.form.signed_status == -1) { if (this.form.store_status == 1) {
return 'color:#ffba00' return 'color:#48c978'
} else { } else {
return colorList[this.form.signed_status] return 'color:red'
} }
}, },
}, },
@ -751,29 +787,44 @@ export default {
} }
} }
this.cityData.provinceData.forEach((item) => { if(this.form.store_area){
if (item.value == res.data.province_id) { let areaArr = this.form.store_area.split('/');
this.form.province_nmae = item.label if(areaArr[0]){
this.form.province_nmae = areaArr[0]
} }
})
this.cityData.cityData.forEach((item) => { if(areaArr[1]){
item.forEach((group) => { this.form.city_name = areaArr[1]
if (group.value == res.data.city_id) { }
this.form.city_name = group.label
}
})
})
this.cityData.areaData.forEach((item) => { if(areaArr[2]){
item.forEach((group) => { this.form.county_name = areaArr[2]
group.forEach((group2) => { }
if (group2.value == res.data.county_id) { }
this.form.county_name = group2.label
} // this.cityData.provinceData.forEach((item) => {
}) // if (item.value == res.data.province_id) {
}) // this.form.province_nmae = item.label
}) // }
// })
// this.cityData.cityData.forEach((item) => {
// item.forEach((group) => {
// if (group.value == res.data.city_id) {
// this.form.city_name = group.label
// }
// })
// })
// this.cityData.areaData.forEach((item) => {
// item.forEach((group) => {
// group.forEach((group2) => {
// if (group2.value == res.data.county_id) {
// this.form.county_name = group2.label
// }
// })
// })
// })
this.srcList1.push(res.data.front_facade_image) this.srcList1.push(res.data.front_facade_image)
this.srcList2.push(res.data.environment_image) this.srcList2.push(res.data.environment_image)
@ -818,7 +869,7 @@ export default {
id: this.id, id: this.id,
approvalStatus: status, approvalStatus: status,
approvalRemark: this.form.approvalRemark, approvalRemark: this.form.approvalRemark,
approvalInvalidCol: this.checkboxList, approvalInvalidCol: this.checkboxList.filter(item => !['businessLicenseOCR', 'legalPersonOCR','personOCR','bankOCR'].includes(item)),
} }
let res = await getMerchApproval(parems) let res = await getMerchApproval(parems)
@ -882,7 +933,26 @@ export default {
close() { close() {
this.$emit('close') this.$emit('close')
}, },
handlecheckbox() {}, handlecheckbox(e) {
// <!-- --!>
if(e.includes('legalPersonOCR')){
this.checkboxList = ['legal_person_id_number','legal_person_id_images','legal_person_id_images2',...this.checkboxList ]
}
// <!-- --!>
if(e.includes('personOCR')){
this.checkboxList = ['individual_id_number','individual_id_images','individual_id_images2',...this.checkboxList]
}
// <!-- , --!>
if(e.includes('bankOCR')){
this.checkboxList = ['bankcard_item','account_holder_name','account_number','branch_name',...this.checkboxList]
}
//
if(e.includes('businessLicenseOCR')){
this.checkboxList = ['biz_license_image','biz_license_company','legal_person_name','biz_license_number',...this.checkboxList]
}
},
handleCheckAllChange(val) { handleCheckAllChange(val) {
if (this.form.entity_type == 1) { if (this.form.entity_type == 1) {
this.checkboxList = val this.checkboxList = val
@ -909,6 +979,29 @@ export default {
this.isIndeterminate = false this.isIndeterminate = false
}, },
formatApprovalStatus(status){
const found = this.approvalStatus.find(item => item.key == status);
return found ? found.value : 'Unknown Status';
},
async createSubAccount(){
let res = await createSubAccount({merCupNo:this.form.lkl_mer_cup_no})
if(res && res.status == 200){
this.$message({
type: 'success',
message: '分账成功',
})
}
},
async createShop(){
let res = await createShop({mchMobile:this.form.login_mobile})
if(res && res.status == 200){
this.$message({
type: 'success',
message: '店铺创建成功',
})
}
}
}, },
} }
</script> </script>