0) {
res.data.items.forEach((item) => {
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) {
this.signedStatus.forEach((group) => {
if (group.index == item.signed_status) {
@@ -217,21 +261,26 @@ export default {
if (row.approval_status == '已通过' && columnIndex == 10) {
return 'status-pass'
}
- if (row.approval_status == '未通过' && columnIndex == 10) {
+ if (['拉卡拉审核未通过','未通过'].includes(row.approval_status) && columnIndex == 10) {
return 'status-not-pass'
}
- if (row.approval_status == '待审核' && columnIndex == 10) {
+ if (['待审核','未申请过','已提交拉卡拉审核'].includes(row.approval_status) && columnIndex == 10) {
return 'status-check-pass'
}
- if (row.signed_status == '' && columnIndex == 11) {
+ if (row.store_status == '已创建' && columnIndex == 11) {
return 'status-pass'
}
- if (row.signed_status == '没签署' && columnIndex == 11) {
+ if (row.store_status == '未创建' && columnIndex == 11) {
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'
}
}
},
diff --git a/src/views/store/shopAudit/shopAuditDetails.vue b/src/views/store/shopAudit/shopAuditDetails.vue
index a695e0a..5b2b0f9 100644
--- a/src/views/store/shopAudit/shopAuditDetails.vue
+++ b/src/views/store/shopAudit/shopAuditDetails.vue
@@ -435,18 +435,18 @@
:class="['item-input', 'approval-status']"
:style="approvalStatusClass"
>
- {{ approvalStatus[form.approval_status - 1] }}
+ {{ formatApprovalStatus(form.approval_status) }}
-
合同签署状态
+
店铺创建状态
- {{ form.signedStatusName }}
+ {{ storeStatus[form.store_status - 1] }}
@@ -540,7 +540,7 @@
:key="index + item.key"
:label="item.key"
>
- {{ item.label }}
+ {{ form.entity_type == 1 ? '银行' : item.label }}
@@ -550,20 +550,12 @@
- 通过审核
-
-
- 合同签署
+ 提交拉卡拉审核
查看商家签署合同
-->
+
+ 创建店铺
+
+
+ 创建分账
+
取消
@@ -587,6 +595,8 @@ import {
getMerchApproval,
getCreateByFile,
getCheckContractFile,
+ createShop,
+ createSubAccount
} from '@/api/shopAudit/shopAudit'
import city from './cityData.js'
import config from './formConfig'
@@ -614,6 +624,7 @@ export default {
contact_name: '',
biz_category: 0,
settlement_method: '',
+ store_area:'',
store_longitude: '',
store_latitude: '',
province_id: '',
@@ -647,11 +658,45 @@ export default {
city_name: '',
county_name: '',
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: ['医疗用品', '生活用品'],
entityType: ['企业', '个人'],
- approvalStatus: ['已通过', '未通过', '待审核'],
+ // approvalStatus: ['已通过', '未通过', '待审核','未申请过','已提交拉卡拉审核','拉卡拉审核未通过'],
+ approvalStatus:[
+ {
+ key:1,
+ value:'已通过',
+ },
+ {
+ key:2,
+ value:'未通过',
+ },
+ {
+ key:3,
+ value:'待审核',
+ },
+ {
+ key:4,
+ value:'未申请过',
+ },
+ {
+ key:5,
+ value:'已提交拉卡拉审核',
+ },
+ {
+ key:21,
+ value:'拉卡拉审核未通过',
+ },
+ ],
licenseType: ['许可证', '特许证件', '其他证件'],
+ storeStatus : ['已创建','未创建'],
signedStatus: [
{
index: -1,
@@ -705,21 +750,12 @@ export default {
return colorList[this.form.approval_status - 1]
},
signedStatusClass() {
- let colorList = [
- 'color:#ffba00',
- 'color:#ffba00',
- 'color:#48c978',
- 'color:red',
- 'color:red',
- 'color:red',
- '',
- 'color:red',
- ]
+
- if (this.form.signed_status == -1) {
- return 'color:#ffba00'
+ if (this.form.store_status == 1) {
+ return 'color:#48c978'
} else {
- return colorList[this.form.signed_status]
+ return 'color:red'
}
},
},
@@ -751,29 +787,44 @@ export default {
}
}
- this.cityData.provinceData.forEach((item) => {
- if (item.value == res.data.province_id) {
- this.form.province_nmae = item.label
+ if(this.form.store_area){
+ let areaArr = this.form.store_area.split('/');
+ if(areaArr[0]){
+ this.form.province_nmae = areaArr[0]
}
- })
- this.cityData.cityData.forEach((item) => {
- item.forEach((group) => {
- if (group.value == res.data.city_id) {
- this.form.city_name = group.label
- }
- })
- })
+ if(areaArr[1]){
+ this.form.city_name = areaArr[1]
+ }
- this.cityData.areaData.forEach((item) => {
- item.forEach((group) => {
- group.forEach((group2) => {
- if (group2.value == res.data.county_id) {
- this.form.county_name = group2.label
- }
- })
- })
- })
+ if(areaArr[2]){
+ this.form.county_name = areaArr[2]
+ }
+ }
+
+ // 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.srcList2.push(res.data.environment_image)
@@ -818,7 +869,7 @@ export default {
id: this.id,
approvalStatus: status,
approvalRemark: this.form.approvalRemark,
- approvalInvalidCol: this.checkboxList,
+ approvalInvalidCol: this.checkboxList.filter(item => !['businessLicenseOCR', 'legalPersonOCR','personOCR','bankOCR'].includes(item)),
}
let res = await getMerchApproval(parems)
@@ -882,7 +933,26 @@ export default {
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) {
if (this.form.entity_type == 1) {
this.checkboxList = val
@@ -909,6 +979,29 @@ export default {
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: '店铺创建成功',
+ })
+ }
+ }
},
}