提交 7ab3f9c6 编写于 作者: 张磊's avatar 张磊

save

上级 568d8715
......@@ -129,7 +129,7 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="" v-if="formData.storeType != 3" prop="storeType">
<el-form-item>
<el-button class="ml" size="small" type="primary" @click="nextStepFirst('second')">下一步</el-button>
</el-form-item>
</el-tab-pane>
......@@ -392,8 +392,8 @@
prop="certifyReq.bizScope"
>
<el-cascader
v-model="bizScopeCasValue"
ref="cascaderBizScope"
v-model="formData.certifyReq.bizScope"
style="width: 360px"
size="small"
:options="orgScopeLIST"
......@@ -1342,6 +1342,7 @@ export default {
}
};
return {
bizScopeCasValue: [],
disabledFORM: false,
controlLicense: [],
activeTabName:'first',
......@@ -1668,10 +1669,7 @@ export default {
const j = [];
if(val) {
val.map( i => {
if( i[0].includes('first') ){
const m = i[0].charAt(0);
j.includes(m) || j.push(m);
}
i.type && j.push(String(i.type))
})
this.controlLicense = j;
}
......@@ -1695,8 +1693,8 @@ export default {
const e = await this.orgOptionList();
if(q && w && e){
const storeId = this.$route.query.storeId || null;
const s = storejs.get('store_info');
if(storeId){
// 编辑 详情
this.curmbSecond = "编辑店铺";
......@@ -1713,7 +1711,6 @@ export default {
const {areaStr} = s.certifyReq;
const v = areaStr.map(i => {return i.label;}).join('/');
this.orgRegionValueFirst = v;
this.areaStr = v;
this.orgDateReverse();
this.resetImgUrl();
}else{
......@@ -1765,6 +1762,14 @@ export default {
this.formData.imgUrlC5 = s.assignorCertBackUrl;
this.formData.imgUrlC4 = s.assignorCertFrontUrl;
this.formData.imgUrlP7 = s.assignorLetterUrl;
// 反显 经营范围
const f = s.bizScope.map( d => {
if(d && d.type){
return [String(d.type), d.id];
}
});
this.bizScopeCasValue = f;
},
getDetail() {
getStoreAdressRepot(this.formData.storeId).then(res => {
......@@ -1777,12 +1782,9 @@ export default {
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 {
// this.$message.error(res.message);
}
})
},
......@@ -2431,7 +2433,10 @@ export default {
}
},
orgScopeLISTChange(v){
console.log(v);
const checkedNodes = this.$refs['cascaderBizScope'].getCheckedNodes();
const n = checkedNodes.filter( i => {return !i.hasChildren;}).map(k => {return {...k.data}});
vm.formData.certifyReq.bizScope = n;
this.bizScopeCasValue = v;
},
// 获取裁剪的图片数据
getCropImg(argument) {
......@@ -2597,10 +2602,10 @@ export default {
orgScopeOptionList().then( res => {
if(res.code == '000000') {
const m = [
{id: '1_first', name: '药品', list: []},
{id: '2_first', name: '医疗器械', list: []},
{id: '3_first', name: '食品', list: []},
{id: '4_first', name: '其他', list: []},
{id: '1', name: '药品', list: []},
{id: '2', name: '医疗器械', list: []},
{id: '3', name: '食品', list: []},
{id: '4', name: '其他', list: []},
];
m.map(item => {
item.list = res.data.filter(v => v.type == item.id.charAt(0) );
......@@ -3104,7 +3109,7 @@ export default {
display: flex;
justify-content: space-between;
.el-range-editor{
width: 400px;
width: 500px;
}
}
.flex-wrap{
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册