diff --git a/src/api/shopAudit/shopAudit.js b/src/api/shopAudit/shopAudit.js index 71673ef..d020ef2 100644 --- a/src/api/shopAudit/shopAudit.js +++ b/src/api/shopAudit/shopAudit.js @@ -126,3 +126,21 @@ export function createSubAccount(params) { data: params, }) } + +/** + * @name 检查店铺名字 + * @api api_url + '/admin/shop/esign/signed/contract/file' + * @param { mchMobile } + * @returns + */ + +export function checkShopName(params) { + return request({ + url: URL.shop.merch.checkShopName, + method: 'post', + headers: { + 'Content-Type': 'application/json', + }, + data: params, + }) +} diff --git a/src/config/net.config.js b/src/config/net.config.js index bfe928b..d1a6053 100644 --- a/src/config/net.config.js +++ b/src/config/net.config.js @@ -255,8 +255,8 @@ let url = { editLanguage: api_url + '/admin/account/account-base-config/editLanguage', cleanCache: api_url + '/admin/account/account-base-config/cleanCache', - report_list: api_url+'/admin/sns/snsUserReport/list', - deal_report:'/admin/sns/snsUserReport/dealReport', + report_list: api_url + '/admin/sns/snsUserReport/list', + deal_report: '/admin/sns/snsUserReport/dealReport', }, user: { @@ -447,6 +447,8 @@ let url = { createShop: api_url + '/admin/shop/shop-store-base/mchinfo/to/storeinfo', //创建分账(补偿机制) createSubAccount: api_url + '/mobile/pay/lakala/ledger/applyLedgerMer', + //检查店铺名字可用不 + checkShopName: api_url + '/mobile/shop/store/check-store-name-exists', }, activity: { lottery: { diff --git a/src/views/store/shopAudit/shopAuditDetails.vue b/src/views/store/shopAudit/shopAuditDetails.vue index afba7da..87e9070 100644 --- a/src/views/store/shopAudit/shopAuditDetails.vue +++ b/src/views/store/shopAudit/shopAuditDetails.vue @@ -18,27 +18,28 @@ class="item-input" v-model="form.store_id" clearable - readonly + :readonly="isReadonly" />
店铺名称
+ 检查名字
-
+
经营品类
@@ -49,7 +50,7 @@ class="item-input" v-model="form.contact_name" clearable - readonly + :readonly="isReadonly" />
@@ -58,7 +59,7 @@ class="item-input" v-model="form.login_mobile" clearable - readonly + :readonly="true" />
@@ -66,12 +67,21 @@
店铺所在的省
- + + + +
店铺所在的市
@@ -79,7 +89,7 @@ class="item-input" v-model="form.city_name" clearable - readonly + :readonly="isReadonly" />
@@ -88,7 +98,7 @@ class="item-input" v-model="form.county_name" clearable - readonly + :readonly="isReadonly" />
@@ -99,7 +109,7 @@ class="item-input" v-model="form.store_longitude" clearable - readonly + :readonly="isReadonly" />
@@ -108,7 +118,7 @@ class="item-input" v-model="form.store_latitude" clearable - readonly + :readonly="isReadonly" />
@@ -120,7 +130,7 @@ v-model="form.store_address" style="width: 580px" clearable - readonly + :readonly="isReadonly" /> @@ -156,22 +166,16 @@ class="item-input" v-model="form.split_ratio" clearable - readonly + :readonly="isReadonly" > -
-
资金结算交割天数
- - - +
+
结算类型:{{ form.settlement_method > 0 ? "次日结算" : "秒到" }}
+
+
入驻类型
@@ -181,7 +185,7 @@ class="item-input" v-model="entityType[form.entity_type - 1]" clearable - readonly + :readonly="isReadonly" >
@@ -194,7 +198,7 @@ class="item-input" v-model="form.legal_person_name" clearable - readonly + :readonly="isReadonly" > @@ -205,7 +209,7 @@ class="item-input" v-model="form.biz_license_company" clearable - readonly + :readonly="isReadonly" > @@ -217,7 +221,7 @@ v-model="form.biz_license_number" style="width: 600px" clearable - readonly + :readonly="isReadonly" > @@ -229,7 +233,7 @@ v-model="form.biz_license_period_begin" style="width: 600px" clearable - readonly + :readonly="isReadonly" > @@ -241,7 +245,7 @@ v-model="form.biz_license_period_end" style="width: 600px" clearable - readonly + :readonly="isReadonly" > @@ -265,7 +269,7 @@ style="width: 600px" clearable :autosize="{ minRows: 15 }" - readonly + :readonly="isReadonly" > @@ -276,7 +280,7 @@ class="item-input" v-model="licenseType[form.license_type - 1]" clearable - readonly + :readonly="isReadonly" > @@ -288,7 +292,7 @@ v-model="form.license_number" style="width: 600px" clearable - readonly + :readonly="isReadonly" > @@ -313,7 +317,7 @@ v-model="form.legal_person_name" style="width: 300px" clearable - readonly + :readonly="isReadonly" > @@ -325,7 +329,7 @@ v-model="form.legal_person_mobile" style="width: 300px" clearable - readonly + :readonly="isReadonly" > @@ -337,7 +341,7 @@ v-model="form.legal_person_id_number" style="width: 300px" clearable - readonly + :readonly="isReadonly" > @@ -349,7 +353,7 @@ v-model="form.legal_person_id_addr" style="width: 300px" clearable - readonly + :readonly="isReadonly" > @@ -361,7 +365,7 @@ v-model="form.legal_person_id_period_begin" style="width: 300px" clearable - readonly + :readonly="isReadonly" > @@ -373,7 +377,7 @@ v-model="form.legal_person_id_period_end" style="width: 300px" clearable - readonly + :readonly="isReadonly" > @@ -413,7 +417,7 @@ v-model="form.individual_id_name" style="width: 300px" clearable - readonly + :readonly="isReadonly" > @@ -425,7 +429,7 @@ v-model="form.individual_id_number" style="width: 300px" clearable - readonly + :readonly="isReadonly" > @@ -437,7 +441,7 @@ v-model="form.individual_id_addr" style="width: 300px" clearable - readonly + :readonly="isReadonly" > @@ -449,7 +453,7 @@ v-model="form.individual_id_period_begin" style="width: 300px" clearable - readonly + :readonly="isReadonly" > @@ -461,7 +465,7 @@ v-model="form.individual_id_period_end" style="width: 300px" clearable - readonly + :readonly="isReadonly" > @@ -501,7 +505,7 @@ v-model="form.bank_name" style="width: 400px" clearable - readonly + :readonly="isReadonly" > @@ -523,7 +527,7 @@ v-model="form.account_holder_name" style="width: 400px" clearable - readonly + :readonly="isReadonly" > @@ -535,7 +539,7 @@ v-model="form.account_number" style="width: 400px" clearable - readonly + :readonly="isReadonly" > @@ -548,7 +552,7 @@ v-model="form.lkl_ec_no" style="width: 400px" clearable - readonly + :readonly="isReadonly" > @@ -560,7 +564,7 @@ v-model="form.contract_download_url" style="width: 400px" clearable - readonly + :readonly="isReadonly" > {{ downloading ? '下载中...' : '下载合同' }} @@ -801,13 +805,16 @@ import { getCreateByFile, getCheckContractFile, createShop, - createSubAccount + createSubAccount, + checkShopName, } from '@/api/shopAudit/shopAudit' import { GetCategoryList } from '@/api/base/store/category' import city from './cityData.js' import config from './formConfig' import { color } from 'echarts' import { copy } from 'clipboard' +import { getAreaJSON } from '@/utils/static' + export default { props: { show: { @@ -955,10 +962,19 @@ export default { srcList6: [], srcList7: [], srcList8: [], - downloading: false + downloading: false, + sourceFormData:{}, + isShopNamePass:true, + areaData:[], + cityData:[], + provinceData:[], + } }, computed: { + isReadonly(){ + return this.form.approval_status == 1 && this.form.has_apply_mer == 1 + }, signedStatusClass() { @@ -1058,16 +1074,21 @@ export default { this.title = `店铺审核详情 ( 个人入驻 )` } - if(this.form.individual_id_period_end == '9999-12-31' || - this.form.legal_person_id_period_end == '9999-12-31' || - this.form.biz_license_period_end == '9999-12-31' - ) - { - this.form.legal_person_id_period_end = '长期' - this.form.individual_id_period_end = '长期' + + if(this.form.individual_id_period_end == '9999-12-31'){ + this.form.legal_person_id_period_end = '长期' + } + + if( this.form.legal_person_id_period_end == '9999-12-31'){ + this.form.individual_id_period_end = '长期' + } + + if(this.form.biz_license_period_end == '9999-12-31'){ this.form.biz_license_period_end = '长期' } + + if(this.form.store_area){ let areaArr = this.form.store_area.split('/'); if(areaArr[0]){ @@ -1120,8 +1141,38 @@ export default { this.srcList7.push(res.data.individual_id_images) this.srcList8.push(res.data.individual_id_images2) } + + //深拷贝原始数据 + this.sourceFormData = JSON.parse(JSON.stringify(this.form)); this.showLoading = false await this.getCategoryList(); + const areaData = await getAreaJSON() + if (areaData) { + this.areaData = this.formatAreaData(areaData[0]['provinces']) + console.log(this.areaData) + } + }, + formatAreaData(data){ + let provinces = [] + data.forEach((item) => { + let province = { + pid: 0, + id: item.id, + name: item.name, + } + let citys = [] + item.citys.forEach((iCity) => { + let city = { + pid: item.id, + id: iCity.id, + name: iCity.name, + } + citys.push(city) + }) + province.citys = citys + provinces.push(province) + }) + return provinces }, downloadFile(){ this.downloading = true @@ -1401,6 +1452,29 @@ export default { }) } this.getMerchDetail(); + }, + async handlerCheckShowName(){ + let parems = { + storeName:this.form.store_name + } + + let res = await checkShopName(parems) + if(res.status == 200){ + + if(res.data.flag == 1){ + this.$message({ + type: 'success', + message: res.msg, + }) + this.isShopNamePass = true + }else{ + this.$message({ + type: 'error', + message: res.msg, + }) + this.isShopNamePass = false + } + } } }, }