Commit c474a1e4 by 王志慧

fixed

1 parent df518391
...@@ -218,7 +218,6 @@ export default { ...@@ -218,7 +218,6 @@ export default {
] ]
}, },
isEdit: true, isEdit: true,
isWatch: false,
editFormData: [ editFormData: [
{ {
label: '所属服务中心', label: '所属服务中心',
...@@ -431,7 +430,6 @@ export default { ...@@ -431,7 +430,6 @@ export default {
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.routeInfo.editType != 'add' ? this.getInfo() : '' this.routeInfo.editType != 'add' ? this.getInfo() : ''
this.userInfo = this.$globalState.session this.userInfo = this.$globalState.session
this.isWatch = this.routeInfo.editType != 'add'
if (this.routeInfo.editType == 'edit') { if (this.routeInfo.editType == 'edit') {
this.changeFormAttr('editFormData', 'isDisabled', ['merchantNo'], true) this.changeFormAttr('editFormData', 'isDisabled', ['merchantNo'], true)
} }
...@@ -604,6 +602,8 @@ export default { ...@@ -604,6 +602,8 @@ export default {
} }
this.$apis.customer.getServiceCenterList(params).then(res => { this.$apis.customer.getServiceCenterList(params).then(res => {
this.baseData.merchantList = res this.baseData.merchantList = res
// 若当前服务商下仅有1个服务中心时默认自动选中该服务中心
if(res.length == 1&&this.routeInfo.editType == 'add') this.editForm.merchantNo = res[0].yqMerchantId
this.$utils.getOptionsList(this, 'editFormData', false) this.$utils.getOptionsList(this, 'editFormData', false)
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!