dev2 #1

Open
panjunjie wants to merge 174 commits from dev2 into main
6 changed files with 162 additions and 28 deletions
Showing only changes of commit dee55721bb - Show all commits

View File

@ -32,3 +32,11 @@ export function GetStoreClassify(data) {
data,
})
}
export function GetCategoryList(data) {
return request({
url: URL.shop.base.store.category.categoryList,
method: 'post',
data,
})
}

View File

@ -710,6 +710,7 @@ let url = {
doEdit: api_url + '/admin/shop/shop-base-store-category/edit',
GetStoreClassify:
api_url + '/admin/shop/shop-base-store-category/getStoreClassify',
categoryList: api_url + '/mobile/shop/shop-base-store-category/list',
},
},
market: {

View File

@ -332,7 +332,7 @@ export default {
pageNum: 1,
pageSize: 20,
},
selectId: 1,
selectId: 100,
appName: null,
options: [
{

View File

@ -57,10 +57,10 @@ const certificate = [
key: 'license_image',
label: '许可证图片',
},
{
key: 'legal_person_mobile',
label: '法人手机号',
},
// {
// key: 'legal_person_mobile',
// label: '法人手机号',
// },
{
key: 'legalPersonOCR',
label: '法人身份证OCR识别',
@ -169,6 +169,10 @@ const enterpriseCheckBoxList = [
key: 'legal_person_mobile',
label: '法人手机号',
},
{
key: 'biz_license_content',
label: '经营范围',
},
{
key: 'legal_person_id_number',
label: '法人身份证号码',

View File

@ -187,12 +187,12 @@ export default {
},
{
prop: 'has_apply_split',
label: '是否分账',
label: '是否创建分账',
},
{
prop: 'has_ec_signed',
label: '合同签署状态',
},
// {
// prop: 'signed_status',
// label: '',
// },
],
tableData: [
{
@ -226,12 +226,8 @@ export default {
item.has_apply_split = item.has_apply_split == 1 ? '是' : '否'
}
if (item.signed_status != null) {
this.signedStatus.forEach((group) => {
if (group.index == item.signed_status) {
item.signed_status = group.value
}
})
if (item.has_ec_signed) {;
item.has_ec_signed = item.has_ec_signed == 1 ? '是' : '否'
}
if (item.entity_type) {
item.entity_type = this.entityType[item.entity_type - 1]
@ -282,6 +278,14 @@ export default {
if (row.has_apply_split == '否' && columnIndex == 12) {
return 'status-not-pass'
}
if (row.has_ec_signed == '是' && columnIndex == 13) {
return 'status-pass'
}
if (row.has_ec_signed == '否' && columnIndex == 13) {
return 'status-not-pass'
}
}
},
closeDialog() {

View File

@ -36,7 +36,7 @@
<div class="item-lable">经营品类</div>
<el-input
class="item-input"
v-model="bizCategoryList[form.biz_category]"
v-model="form.biz_category"
clearable
disabled
/>
@ -185,6 +185,29 @@
></el-input>
</div>
</div>
<div class="item-info">
<div class="item-block">
<div class="item-lable">姓名</div>
<el-input
class="item-input"
v-model="form.legal_person_name || form.individual_id_name"
clearable
disabled
></el-input>
</div>
</div>
<div class="item-info">
<div class="item-block">
<div class="item-lable">身份证地址</div>
<el-input
style="width: 354px"
class="item-input"
v-model="form.legal_person_id_addr || form.individual_id_addr"
clearable
disabled
></el-input>
</div>
</div>
<div v-if="form.entity_type == 1">
<div class="item-info">
<div class="item-block">
@ -223,6 +246,20 @@
></el-image>
</div>
</div>
<div class="item-info" style="margin: 40px 0">
<div class="item-block">
<div class="item-lable">经营范围</div>
<el-input
type="textarea"
class="item-input"
v-model="form.biz_license_content"
style="width: 600px"
clearable
:autosize="{ minRows: 15 }"
disabled
></el-input>
</div>
</div>
<div class="item-info" style="margin: 40px 0">
<div class="item-block">
<div class="item-lable">许可证类型</div>
@ -367,7 +404,7 @@
disabled
></el-input>
</div>
<div class="item-block">
<!-- <div class="item-block">
<div class="item-lable">开户银行的支行名称</div>
<el-input
class="item-input"
@ -376,7 +413,7 @@
clearable
disabled
></el-input>
</div>
</div> -->
</div>
<div class="item-info">
<div class="item-block">
@ -552,15 +589,15 @@
class="btn"
style="width: 150px;"
type="success"
@click="getMerchApproval(1)"
v-if="![1].includes(form.approval_status)"
@click="getMerchApproval(5)"
v-if="![1,5].includes(form.approval_status)"
>
提交拉卡拉审核
</el-button>
<el-button
class="btn"
type="danger"
v-if="form.signed_status <= 0"
v-if="form.signed_status <= 0 && form.approval_status !=5"
@click="getMerchApproval(2)"
>
驳回审核
@ -598,6 +635,7 @@ import {
createShop,
createSubAccount
} from '@/api/shopAudit/shopAudit'
import { GetCategoryList } from '@/api/base/store/category'
import city from './cityData.js'
import config from './formConfig'
export default {
@ -635,6 +673,7 @@ export default {
environment_image: '',
biz_license_number: '',
biz_license_image: '',
biz_license_content:'',
license_type: 1,
license_number: '',
license_image: '',
@ -666,7 +705,6 @@ export default {
has_apply_receiver:'',// 1-2-,
has_bind_receiver:''// 1-2-
},
bizCategoryList: ['医疗用品', '生活用品'],
entityType: ['企业', '个人'],
// approvalStatus: ['', '', '','','',''],
approvalStatus:[
@ -765,6 +803,7 @@ export default {
if (newVal) {
this.showDialog = true
this.getMerchDetail()
} else {
this.showDialog = false
}
@ -840,6 +879,36 @@ export default {
this.srcList8.push(res.data.individual_id_images2)
}
this.showLoading = false
await this.getCategoryList();
},
async getCategoryList(){
let res = await GetCategoryList();
if(res && res.status == 200){
let name = this.findCategoryName(res.data,this.form.biz_category);
if(name){
this.form.biz_category = name
}
}
},
findCategoryName(categories, targetId) {
for (const category of categories) {
//
if (category.store_category_id === targetId) {
return category.store_category_name;
}
//
if (category.children && category.children.length > 0) {
const foundInChildren = findCategoryName(category.children, targetId);
if (foundInChildren) {
return foundInChildren;
}
}
}
return null; //
},
async getMerchApproval(status) {
if (status == 2 && this.checkboxList.length == 0) {
@ -868,7 +937,7 @@ export default {
let parems = {
id: this.id,
approvalStatus: status,
approvalRemark: this.form.approvalRemark,
approvalRemark: this.form.approval_remark,
approvalInvalidCol: this.checkboxList.filter(item => !['businessLicenseOCR', 'legalPersonOCR','personOCR','bankOCR'].includes(item)),
}
@ -884,6 +953,11 @@ export default {
// if (this.status == 2) {
// this.close()
// }
}else{
this.$message({
type: 'error',
message: res.msg,
})
}
})
.catch(() => {
@ -937,19 +1011,62 @@ export default {
// <!-- --!>
if(e.includes('legalPersonOCR')){
this.checkboxList = ['legal_person_id_number','legal_person_id_images','legal_person_id_images2',...this.checkboxList ]
let arr = [
'legal_person_id_number',
'legal_person_id_images',
'legal_person_id_images2',
'legal_person_id_addr',
'legal_person_id_period_begin',
'legal_person_id_period_end'
]
this.checkboxList = [...arr,...this.checkboxList ]
}
// <!-- --!>
if(e.includes('personOCR')){
this.checkboxList = ['individual_id_number','individual_id_images','individual_id_images2',...this.checkboxList]
let arr = [
'individual_id_number',
'individual_id_name',
'individual_id_addr',
'individual_id_images',
'individual_id_images2',
'individual_id_period_begin',
'individual_id_period_end'
]
this.checkboxList = [...arr,...this.checkboxList]
}
// <!-- , --!>
if(e.includes('bankOCR')){
this.checkboxList = ['bankcard_item','account_holder_name','account_number','branch_name',...this.checkboxList]
let arr = [
'bankcard_item',
'account_holder_name',
'account_number',
'bank_name'
]
this.checkboxList = [...arr,...this.checkboxList]
}
//
if(e.includes('businessLicenseOCR')){
this.checkboxList = ['biz_license_image','biz_license_company','legal_person_name','biz_license_number','',...this.checkboxList]
let arr = [
'biz_license_image',
'biz_license_company',
'legal_person_name',
'biz_license_content',
'biz_license_number',
'legal_person_mobile'
]
this.checkboxList = [...arr,...this.checkboxList]
}
if(e.includes("mapAddress")){
this.checkboxList = ['store_address',...this.checkboxList];
}
},