提交 04f6daf8 编写于 作者: 张磊's avatar 张磊

Merge branch 'feature/zl' into 'develop'

Feature/zl

See merge request com.pica.cloud.education.frontend/pica.cloud.web-education-admin!366
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<span> <span>
{{curmbSecond}} {{curmbSecond}}
</span> </span>
<span class="verify-status" style="margin-left: 20px">{{1 | verifyStatus}}</span> <span v-if="certifyStatus > 1" class="verify-status" style="margin-left: 20px">{{ certifyStatus | storeStatusFormat}}</span>
</p> </p>
</el-col> </el-col>
<el-col :span="4" style="text-align: right"> <el-col :span="4" style="text-align: right">
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
size="small" size="small"
type="primary" type="primary"
:disabled="disabledFORM || storeData && storeData.tradeStore.storeType == 3" :disabled="disabledFORM || storeData && storeData.tradeStore.storeType == 3"
@click="complete" @click="completeWholeForm"
>完成</el-button >完成</el-button
> >
<el-button size="small" type="primary" @click="back">返回</el-button> <el-button size="small" type="primary" @click="back">返回</el-button>
...@@ -118,6 +118,7 @@ ...@@ -118,6 +118,7 @@
size="small" size="small"
clearable clearable
:disabled="isDisabled" :disabled="isDisabled"
@change="storeTypeChange"
style="width: 35%" style="width: 35%"
> >
<el-option <el-option
...@@ -133,7 +134,7 @@ ...@@ -133,7 +134,7 @@
</el-form-item> </el-form-item>
</el-tab-pane> </el-tab-pane>
<el-tab-pane v-if="formData.storeType != 3" label="资质信息" name="second"> <el-tab-pane label="资质信息" name="second">
<div> <div>
<div v-if="certifyValidDtoList(1)"> <div v-if="certifyValidDtoList(1)">
<el-form-item> <el-form-item>
...@@ -401,7 +402,7 @@ ...@@ -401,7 +402,7 @@
> >
</el-cascader> </el-cascader>
</el-form-item> </el-form-item>
<el-form-item class="required-label" label="营业证明"> <el-form-item v-if="formData.storeType != 3" class="required-label" label="营业证明">
<p v-if="certifyValidDtoList(2)" class="red">{{certifyValidDtoList(2)}}</p> <p v-if="certifyValidDtoList(2)" class="red">{{certifyValidDtoList(2)}}</p>
<p class="tips">营业执照</p> <p class="tips">营业执照</p>
<p class="p-tips"> <p class="p-tips">
...@@ -480,12 +481,12 @@ ...@@ -480,12 +481,12 @@
</div> </div>
</div> </div>
<el-form-item v-if="formData.storeType == 1" label="认证类型" label-width="100px"> <el-form-item v-if="formData.storeType == 1" label="认证类型" label-width="100px">
<el-radio-group v-model="formData.isLegal" > <el-radio-group v-model="formData.certifyReq.certType" >
<el-radio :label="1">法人认证</el-radio> <el-radio :label="1">法人认证</el-radio>
<el-radio :label="2">委托人认证</el-radio> <el-radio :label="2">委托人认证</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<div v-if="formData.isLegal == 2"> <div v-if="formData.certifyReq.certType == 2">
<p v-if="certifyValidDtoList(4)" class="red">{{certifyValidDtoList(4)}}</p> <p v-if="certifyValidDtoList(4)" class="red">{{certifyValidDtoList(4)}}</p>
<div v-if="formData.storeType == 1"> <div v-if="formData.storeType == 1">
<div>委托人身份证</div> <div>委托人身份证</div>
...@@ -587,7 +588,7 @@ ...@@ -587,7 +588,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="formData.isLegal == 2" class="flex-upload"> <div v-if="formData.certifyReq.certType == 2|| formData.storeType == 2 " class="flex-upload">
<p v-if="certifyValidDtoList(5)" class="red">{{certifyValidDtoList(5)}}</p> <p v-if="certifyValidDtoList(5)" class="red">{{certifyValidDtoList(5)}}</p>
<div>委托书</div> <div>委托书</div>
<el-upload <el-upload
...@@ -621,7 +622,7 @@ ...@@ -621,7 +622,7 @@
</el-upload> </el-upload>
</div> </div>
<div v-if="formData.storeType == 1 && formData.isLegal === 1"> <div v-if="formData.storeType == 1 && formData.certifyReq.certType === 1">
<p v-if="certifyValidDtoList(6)" class="red">{{certifyValidDtoList(6)}}</p> <p v-if="certifyValidDtoList(6)" class="red">{{certifyValidDtoList(6)}}</p>
<div>法人身份证</div> <div>法人身份证</div>
<div class="flex-wrap"> <div class="flex-wrap">
...@@ -728,7 +729,7 @@ ...@@ -728,7 +729,7 @@
</el-form-item> </el-form-item>
</div> </div>
</div> </div>
<div v-if="formData.storeType == 1 && formData.isLegal === 2"> <div v-if="formData.storeType == 1 && formData.certifyReq.certType === 2">
<p v-if="certifyValidDtoList(6)" class="red">{{certifyValidDtoList(6)}}</p> <p v-if="certifyValidDtoList(6)" class="red">{{certifyValidDtoList(6)}}</p>
<div>法人身份证</div> <div>法人身份证</div>
<div class="flex-wrap"> <div class="flex-wrap">
...@@ -1315,7 +1316,7 @@ ...@@ -1315,7 +1316,7 @@
<script> <script>
import BreadCrumb from "@/components/breadcrumb.vue"; import BreadCrumb from "@/components/breadcrumb.vue";
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { openLoading, closeLoading } from "../../utils/utils"; import { openLoading, closeLoading, deepCopy} from "../../utils/utils";
import { doUpload, getFilePath } from "../../utils/qiniu-util"; import { doUpload, getFilePath } from "../../utils/qiniu-util";
import Cropper from "@/components/common/cropper.vue"; import Cropper from "@/components/common/cropper.vue";
import { saveStore, queryStore, getLgCompanyList, getStoreAdressRepot, OCRStore, idCardOcr, orgOptionList, orgScopeOptionList} from "@/utils/shop"; import { saveStore, queryStore, getLgCompanyList, getStoreAdressRepot, OCRStore, idCardOcr, orgOptionList, orgScopeOptionList} from "@/utils/shop";
...@@ -1364,7 +1365,6 @@ export default { ...@@ -1364,7 +1365,6 @@ export default {
licenseDate: '', licenseDate: '',
orgRegionValueFirst: '请选择地区', orgRegionValueFirst: '请选择地区',
formData: { formData: {
orgRegionValue: [],
storeId: null, storeId: null,
userId: null, userId: null,
storeQualityUrl:"", storeQualityUrl:"",
...@@ -1400,6 +1400,7 @@ export default { ...@@ -1400,6 +1400,7 @@ export default {
imgUrlC3: "", //证明图3 imgUrlC3: "", //证明图3
imgUrlC4: "", imgUrlC4: "",
imgUrlC5: "", imgUrlC5: "",
imgUrlP7Date: '',
imgUrlP6Date: '', imgUrlP6Date: '',
imgUrlP5Date: '', imgUrlP5Date: '',
imgUrlP4Date: '', imgUrlP4Date: '',
...@@ -1415,19 +1416,20 @@ export default { ...@@ -1415,19 +1416,20 @@ export default {
expressLimitFlag: 0, //是否限制物流公司 expressLimitFlag: 0, //是否限制物流公司
repotExpressList:[], //支持的物流公司 repotExpressList:[], //支持的物流公司
expressDesc: '', //退款说明 expressDesc: '', //退款说明
isLegal: 1,
certifyReq:{ certifyReq:{
areaStr: [],
orgType: '', orgType: '',
orgName:'', orgName:'',
licenseUrl:'', licenseUrl:'',
licenseValidDateBegin:'', licenseValidDateBegin:'',
licenseValidDateEnd:'', licenseValidDateEnd:'',
licenseType: 1, licenseType: 1,
certType: 1,
creditCode:'', creditCode:'',
assignor_letter_url:'', assignorLetterUrl:'',
bizScope:'' bizScope:'',
certifyLicenseImgList: []
}, },
certifyLicenseImgList: []
}, },
cpmList: [], //所有的物流公司 cpmList: [], //所有的物流公司
warehouseAdressType: 0, // 0为新建地址,1为编辑地址 warehouseAdressType: 0, // 0为新建地址,1为编辑地址
...@@ -1592,6 +1594,7 @@ export default { ...@@ -1592,6 +1594,7 @@ export default {
imgUrlP4:[{type: "string", required: true, message: '请上传图片', trigger: 'change'}], imgUrlP4:[{type: "string", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP5:[{type: "string", required: true, message: '请上传图片', trigger: 'change'}], imgUrlP5:[{type: "string", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP6:[{type: "string", required: true, message: '请上传图片', trigger: 'change'}], imgUrlP6:[{type: "string", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlP7:[{type: "string", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlC1:[{type: "string", required: true, message: '请上传图片', trigger: 'change'}], imgUrlC1:[{type: "string", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlC2:[{type: "string", required: true, message: '请上传图片', trigger: 'change'}], imgUrlC2:[{type: "string", required: true, message: '请上传图片', trigger: 'change'}],
imgUrlC3:[{type: "string", required: true, message: '请上传图片', trigger: 'change'}], imgUrlC3:[{type: "string", required: true, message: '请上传图片', trigger: 'change'}],
...@@ -1600,6 +1603,7 @@ export default { ...@@ -1600,6 +1603,7 @@ export default {
imgUrlP4Date:[{type: "array", required: true, message: '请选择有效日期', trigger: 'change'}], imgUrlP4Date:[{type: "array", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP5Date:[{type: "array", required: true, message: '请选择有效日期', trigger: 'change'}], imgUrlP5Date:[{type: "array", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP6Date:[{type: "array", required: true, message: '请选择有效日期', trigger: 'change'}], imgUrlP6Date:[{type: "array", required: true, message: '请选择有效日期', trigger: 'change'}],
imgUrlP7Date:[{type: "array", required: true, message: '请选择有效日期', trigger: 'change'}],
}, },
imgMouseOver1: false, imgMouseOver1: false,
uploadImgMessage1: false, //未上传图片,校验提示语 uploadImgMessage1: false, //未上传图片,校验提示语
...@@ -1649,6 +1653,7 @@ export default { ...@@ -1649,6 +1653,7 @@ export default {
}, },
orgLIST: [], orgLIST: [],
orgScopeLIST:[], orgScopeLIST:[],
certifyStatus: ''
}; };
}, },
computed: { computed: {
...@@ -1673,6 +1678,7 @@ export default { ...@@ -1673,6 +1678,7 @@ export default {
created() { created() {
vm = this; vm = this;
this.activeTabName = this.$route.query.currentTab || 'first'; this.activeTabName = this.$route.query.currentTab || 'first';
this.certifyStatus = this.$route.query.certifyStatus || null;
this.disabledFORM = this.$route.query.disabled == 'false' ? false : true; this.disabledFORM = this.$route.query.disabled == 'false' ? false : true;
this.getCompanyList(); this.getCompanyList();
...@@ -1685,22 +1691,33 @@ export default { ...@@ -1685,22 +1691,33 @@ export default {
const e = await this.orgOptionList(); const e = await this.orgOptionList();
if(q && w && e){ if(q && w && e){
const storeId = this.$route.query.storeId || null; const storeId = this.$route.query.storeId || null;
const s = storejs.get('store_info'); const s = storejs.get('store_info');
if(storeId){ if(storeId){
// 编辑 详情 // 编辑 详情
this.curmbSecond = "编辑店铺"; this.curmbSecond = "编辑店铺";
this.isDisabled = true; this.isDisabled = true;
if(s && s.storeId == storeId){
this.formData = s; if(this.disabledFORM){
const {orgRegionValue} = s;
const v = orgRegionValue.map(i => {return i.label;}).join('/');
this.orgRegionValueFirst = v;
this.orgDateReverse();
}else{
this.formData.storeId = storeId; this.formData.storeId = storeId;
storejs.remove('store_info'); storejs.remove('store_info');
this.initInfo(); this.initInfo();
this.getDetail(); this.getDetail();
}else{
if(s && s.storeId == storeId){
this.formData = s;
const {areaStr} = s.certifyReq;
const v = areaStr.map(i => {return i.label;}).join('/');
this.orgRegionValueFirst = v;
this.areaStr = v;
this.orgDateReverse();
this.resetImgUrl();
}else{
this.formData.storeId = storeId;
storejs.remove('store_info');
this.initInfo();
this.getDetail();
}
} }
}else{ }else{
// 新建店铺 // 新建店铺
...@@ -1709,8 +1726,8 @@ export default { ...@@ -1709,8 +1726,8 @@ export default {
if(s){ if(s){
// 存在数据 就反现 // 存在数据 就反现
this.formData = s; this.formData = s;
const {orgRegionValue} = s; const {areaStr} = s.certifyReq;
const v = orgRegionValue.map(i => {return i.label;}).join('/'); const v = areaStr.map(i => {return i.label;}).join('/');
this.orgRegionValueFirst = v; this.orgRegionValueFirst = v;
this.orgDateReverse(); this.orgDateReverse();
} }
...@@ -1720,20 +1737,44 @@ export default { ...@@ -1720,20 +1737,44 @@ export default {
//日期 设置 //日期 设置
orgDateReverse () { orgDateReverse () {
const {licenseValidDateBegin,licenseValidDateEnd,legalValidDateBegin, legalValidDateEnd, assignorValidDateBegin, assignorValidDateEnd} = this.formData.certifyReq; const {licenseValidDateBegin,licenseValidDateEnd,legalValidDateBegin, legalValidDateEnd, assignorValidDateBegin, assignorValidDateEnd} = this.formData.certifyReq;
const {certifyLicenseImgList} = this.formData; const {certifyLicenseImgList, certifyReportImgList} = this.formData.certifyReq;
this.formData.imgUrlC1Date = [licenseValidDateBegin, licenseValidDateEnd]; this.formData.imgUrlC1Date = [licenseValidDateBegin, licenseValidDateEnd];
this.formData.imgUrlC5Date = [assignorValidDateBegin, assignorValidDateEnd]; this.formData.imgUrlC5Date = [assignorValidDateBegin, assignorValidDateEnd];
this.formData.imgUrlC5Date = [legalValidDateBegin, legalValidDateEnd]; this.formData.imgUrlC5Date = [legalValidDateBegin, legalValidDateEnd];
certifyLicenseImgList.map(i => { (certifyReportImgList || []).concat(certifyLicenseImgList).map(i => {
const n = `imgUrlP${i.imageType}Date`; const n = `imgUrlP${i.imageType}Date`;
const m = `imgUrlP${i.imageType}`;
this.formData[n] = [i.validDateBegin, i.validDateEnd]; this.formData[n] = [i.validDateBegin, i.validDateEnd];
this.formData[m] = i.url;
}) })
// imgUrlP5Date },
resetImgUrl () {
// 营业执照 legalCertBackUrl legalCertFrontUrl
const s = this.formData.certifyReq;
this.formData.imgUrlC3 = s.legalCertBackUrl;
this.formData.imgUrlC2 = s.legalCertFrontUrl;
this.formData.imgUrlC1 = s.licenseUrl;
this.formData.imgUrlC5 = s.assignorCertBackUrl;
this.formData.imgUrlC4 = s.assignorCertFrontUrl;
this.formData.imgUrlP7 = s.assignorLetterUrl;
}, },
getDetail() { getDetail() {
getStoreAdressRepot(this.formData.storeId).then(res => { getStoreAdressRepot(this.formData.storeId).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
Object.assign(this.formData,res.data); const l = res.data;
const {areaStr, bizScope} = l.certifyReq;
l.certifyReq.areaStr = JSON.parse(areaStr);
l.certifyReq.bizScope = JSON.parse(bizScope);
Object.assign(this.formData, l);
const v = JSON.parse(areaStr).map(i => {return i.label;}).join('/');
this.orgRegionValueFirst = v;
this.areaStr = v;
this.orgDateReverse();
this.resetImgUrl();
} else { } else {
this.$message.error(res.message); this.$message.error(res.message);
} }
...@@ -1799,7 +1840,7 @@ export default { ...@@ -1799,7 +1840,7 @@ export default {
} else if (storeType == 2) { } else if (storeType == 2) {
this.formData.drugstoreName = storeOwner; this.formData.drugstoreName = storeOwner;
this.formData.drugstorePhone = storePhone; this.formData.drugstorePhone = storePhone;
this.formData.isLegal = 2; this.formData.certifyReq.certType = 2;
if (this.storeData.imageList && this.storeData.imageList.length) { if (this.storeData.imageList && this.storeData.imageList.length) {
this.storeData.imageList.map((item) => { this.storeData.imageList.map((item) => {
if (item.imageSort == 1) { if (item.imageSort == 1) {
...@@ -1837,23 +1878,57 @@ export default { ...@@ -1837,23 +1878,57 @@ export default {
} }
}); });
}, },
complete() { completeWholeForm() {
let flag = this.submitForm(); let flag = this.submitForm();
if (flag) { if (flag && this.certifyStatus == 3) {
this.$confirm('确定要删除这条地址信息么?', '提示', {
this.formData.storeType = Number(this.formData.storeType); confirmButtonText: '确定',
this.formData.storeEntry = "PCKAIDIAN"; // 添加店铺渠道 cancelButtonText: '',
console.log("提交的数据", this.formData); type: 'error'
saveStore(this.formData).then((res) => { }).then(() => {
if (res.code == "000000") { this.formData.storeType = Number(this.formData.storeType);
this.$message.success("操作成功"); this.formData.storeEntry = "PCKAIDIAN"; // 添加店铺渠道
this.$router.push({ const {bizScope, areaStr} = this.formData.certifyReq;
path: "/shop-list", const result = deepCopy(this.formData);
}); result.certifyReq.bizScope = JSON.stringify(bizScope);
} else { result.certifyReq.areaStr = JSON.stringify(areaStr);
this.$message.error(res.message); console.log("提交的数据", result);
} saveStore(result).then((res) => {
if (res.code == "000000") {
storejs.remove('store_info');
this.$message.success("操作成功");
this.$router.push({
path: "/shop-list",
});
} else {
this.$message.error(res.message);
}
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
}); });
}else if(flag) {
this.formData.storeType = Number(this.formData.storeType);
this.formData.storeEntry = "PCKAIDIAN"; // 添加店铺渠道
const {bizScope, areaStr} = this.formData.certifyReq;
const result = deepCopy(this.formData);
result.certifyReq.areaStr = JSON.stringify(areaStr);
result.certifyReq.bizScope = JSON.stringify(bizScope);
console.log("提交的数据", result);
saveStore(result).then((res) => {
if (res.code == "000000") {
storejs.remove('store_info');
this.$message.success("操作成功");
// this.$router.push({
// path: "/shop-list",
// });
} else {
this.$message.error(res.message);
}
});
} }
}, },
// 返回 // 返回
...@@ -2092,7 +2167,7 @@ export default { ...@@ -2092,7 +2167,7 @@ export default {
orgDate (v, type) { orgDate (v, type) {
const b = dayjs(v[0]).format('YYYY-MM-DD'); const b = dayjs(v[0]).format('YYYY-MM-DD');
const e = dayjs(v[1]).format('YYYY-MM-DD'); const e = dayjs(v[1]).format('YYYY-MM-DD');
const l = this.formData.certifyLicenseImgList; const l = this.formData.certifyReq.certifyLicenseImgList;
const t = type.charAt(type.length-1); const t = type.charAt(type.length-1);
switch (type) { switch (type) {
case 'imgUrlC1': case 'imgUrlC1':
...@@ -2121,10 +2196,12 @@ export default { ...@@ -2121,10 +2196,12 @@ export default {
case 'imgUrlP5': case 'imgUrlP5':
// 二类医疗器械经营备案凭证 // 二类医疗器械经营备案凭证
case 'imgUrlP6': case 'imgUrlP6':
// 委托书
case 'imgUrlP7':
// 年度报告 // 年度报告
const r = l.filter( i => {return i.imageType == t})[0] || {}; const r = l.filter( i => {return i.imageType == t})[0] || {};
l.push(Object.assign(r, {validDateBegin: b, validDateEnd: e, imageType: t})); l.push(Object.assign(r, {validDateBegin: b, validDateEnd: e, imageType: t}));
this.formData.certifyLicenseImgList = this.clearRepeat(l, 'imageType'); this.formData.certifyReq.certifyLicenseImgList = this.clearRepeat(l, 'imageType');
console.log('--this.formData', this.formData); console.log('--this.formData', this.formData);
break; break;
default: default:
...@@ -2215,7 +2292,7 @@ export default { ...@@ -2215,7 +2292,7 @@ export default {
return isJPG && isLt2M; return isJPG && isLt2M;
}, },
setImgUrl (path, fileLimit) { setImgUrl (path, fileLimit) {
const l = this.formData.certifyLicenseImgList; const l = this.formData.certifyReq.certifyLicenseImgList;
const f = path.fullPath; const f = path.fullPath;
const imgName = fileLimit.key; const imgName = fileLimit.key;
const u = this.formData[imgName]; const u = this.formData[imgName];
...@@ -2243,7 +2320,7 @@ export default { ...@@ -2243,7 +2320,7 @@ export default {
break; break;
case 'imgUrlP7': case 'imgUrlP7':
// 委托书 // 委托书
this.formData.certifyReq.assignor_letter_url = u; this.formData.certifyReq.assignorLetterUrl = u;
break; break;
case 'imgUrlP1': case 'imgUrlP1':
// 药品经营许可证 // 药品经营许可证
...@@ -2256,10 +2333,11 @@ export default { ...@@ -2256,10 +2333,11 @@ export default {
case 'imgUrlP5': case 'imgUrlP5':
// 二类医疗器械经营备案凭证 // 二类医疗器械经营备案凭证
case 'imgUrlP6': case 'imgUrlP6':
// 委托书
// 年度报告 // 年度报告
const r = l.filter( i => {return i.imageType == t})[0] || {}; const r = l.filter( i => {return i.imageType == t})[0] || {};
l.push(Object.assign(r, {url: f, imageType: t})); l.push(Object.assign(r, {url: f, imageType: t}));
this.formData.certifyLicenseImgList = this.clearRepeat(l, 'imageType'); this.formData.certifyReq.certifyLicenseImgList = this.clearRepeat(l, 'imageType');
break; break;
default: default:
return false; return false;
...@@ -2277,6 +2355,7 @@ export default { ...@@ -2277,6 +2355,7 @@ export default {
.set("imgUrlP4", "imgMouseOverP4") .set("imgUrlP4", "imgMouseOverP4")
.set("imgUrlP5", "imgMouseOverP5") .set("imgUrlP5", "imgMouseOverP5")
.set("imgUrlP6", "imgMouseOverP6") .set("imgUrlP6", "imgMouseOverP6")
.set("imgUrlP7", "imgMouseOverP7")
.set("imgUrlC1", "imgMouseOverC1") .set("imgUrlC1", "imgMouseOverC1")
.set("imgUrlC2", "imgMouseOverC2") .set("imgUrlC2", "imgMouseOverC2")
.set("imgUrlC3", "imgMouseOverC3") .set("imgUrlC3", "imgMouseOverC3")
...@@ -2291,7 +2370,7 @@ export default { ...@@ -2291,7 +2370,7 @@ export default {
this.deleteImgFormData(type); this.deleteImgFormData(type);
}, },
deleteImgFormData (type) { deleteImgFormData (type) {
const l = this.formData.certifyLicenseImgList; const l = this.formData.certifyReq.certifyLicenseImgList;
const t = type.charAt(type.length-1); const t = type.charAt(type.length-1);
switch (type) { switch (type) {
case 'imgUrlC1': case 'imgUrlC1':
...@@ -2315,7 +2394,7 @@ export default { ...@@ -2315,7 +2394,7 @@ export default {
this.formData.certifyReq.legalCertBackUrl = ''; this.formData.certifyReq.legalCertBackUrl = '';
break; break;
case 'imgUrlP7': case 'imgUrlP7':
this.formData.certifyReq.assignor_letter_url = ''; this.formData.certifyReq.assignorLetterUrl = '';
// 委托书 // 委托书
break; break;
case 'imgUrlP1': case 'imgUrlP1':
...@@ -2331,7 +2410,7 @@ export default { ...@@ -2331,7 +2410,7 @@ export default {
case 'imgUrlP6': case 'imgUrlP6':
// 年度报告 // 年度报告
const r = l.filter( i => {return i.imageType != t}) || []; const r = l.filter( i => {return i.imageType != t}) || [];
this.formData.certifyLicenseImgList = r; this.formData.certifyReq.certifyLicenseImgList = r;
break; break;
default: default:
return false; return false;
...@@ -2665,7 +2744,7 @@ export default { ...@@ -2665,7 +2744,7 @@ export default {
n.push({label: i.label, value: i.value}); n.push({label: i.label, value: i.value});
}); });
// countyId provinceId townId cityId // countyId provinceId townId cityId
this.formData.orgRegionValue = n; this.formData.certifyReq.areaStr = n;
this.formData.certifyReq.provinceId = v[0] || ''; this.formData.certifyReq.provinceId = v[0] || '';
this.formData.certifyReq.cityId = v[1] || ''; this.formData.certifyReq.cityId = v[1] || '';
this.formData.certifyReq.countyId = v[2] || ''; this.formData.certifyReq.countyId = v[2] || '';
...@@ -2739,19 +2818,29 @@ export default { ...@@ -2739,19 +2818,29 @@ export default {
const l = vm.formData.certifyValidDtoList || []; const l = vm.formData.certifyValidDtoList || [];
return l.filter(i => {return i.infoType == v;})[0] || ''; return l.filter(i => {return i.infoType == v;})[0] || '';
}, },
storeTypeChange () {
vm.formData.certifyValidDtoList = [];
console.log('--vm.formData', vm.formData);
}
}, },
filters: { filters: {
verifyStatus: function(value){ storeStatusFormat(v) {
if (!value && value != 0) { let s = '';
return "-"; switch (v) {
} else { case 2:
let hash = { s = '待审核'
1: "审核通过", break;
2: "审核中", case 3:
3: "审核不通过" s = '审核成功'
}; break;
return hash[value]; case 4:
s = '审核失败'
break;
default:
s =''
break;
} }
return s;
} }
}, },
}; };
......
...@@ -302,10 +302,7 @@ ...@@ -302,10 +302,7 @@
label: "固定分佣" label: "固定分佣"
}], }],
storeTypeList: [ storeTypeList: [
{
value: 1,
label: "未认证"
},
{ {
value: 2, value: 2,
label: "认证提交中" label: "认证提交中"
...@@ -317,10 +314,6 @@ ...@@ -317,10 +314,6 @@
{ {
value: 4, value: 4,
label: "审核失败" label: "审核失败"
},
{
value: 5,
label: "作废"
}, },
], ],
setPriceVisible: false, setPriceVisible: false,
...@@ -725,9 +718,6 @@ ...@@ -725,9 +718,6 @@
storeStatusFormat(v) { storeStatusFormat(v) {
let s = ''; let s = '';
switch (v) { switch (v) {
case 1:
s = '未认证'
break;
case 2: case 2:
s = '待审核' s = '待审核'
break; break;
...@@ -738,7 +728,7 @@ ...@@ -738,7 +728,7 @@
s = '审核失败' s = '审核失败'
break; break;
default: default:
s ='审核通过' s ='审核成功'
break; break;
} }
return s; return s;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册