|
@@ -34,7 +34,6 @@
|
|
code="DEALER_TYPE"
|
|
code="DEALER_TYPE"
|
|
id="merchantInfoManagementEdit-dealerType"
|
|
id="merchantInfoManagementEdit-dealerType"
|
|
v-model="form.dealerType"
|
|
v-model="form.dealerType"
|
|
- @change="dealerTypeChange"
|
|
|
|
allowClear
|
|
allowClear
|
|
placeholder="请选择商户类型"></v-select>
|
|
placeholder="请选择商户类型"></v-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
@@ -334,7 +333,7 @@
|
|
<a-radio-group
|
|
<a-radio-group
|
|
name="radioGroup"
|
|
name="radioGroup"
|
|
v-model="form.isShowSpecialPrice"
|
|
v-model="form.isShowSpecialPrice"
|
|
- :disabled="form.dealerType == 'SPECIAL_JOIN'"
|
|
|
|
|
|
+ :disabled="detailData&&detailData.dealerLevel == 'SPECIAL'"
|
|
id="merchantInfoManagementEdit-isShowSpecialPrice" >
|
|
id="merchantInfoManagementEdit-isShowSpecialPrice" >
|
|
<a-radio :value="1">是</a-radio>
|
|
<a-radio :value="1">是</a-radio>
|
|
<a-radio :value="0">否</a-radio>
|
|
<a-radio :value="0">否</a-radio>
|
|
@@ -483,13 +482,11 @@ export default {
|
|
addrProvinceList1: [], // 省下拉
|
|
addrProvinceList1: [], // 省下拉
|
|
addrCityList1: [], // 市下拉
|
|
addrCityList1: [], // 市下拉
|
|
addrDistrictList1: [], // 区下拉
|
|
addrDistrictList1: [], // 区下拉
|
|
- dateFormat: 'YYYY-MM-DD'
|
|
|
|
|
|
+ dateFormat: 'YYYY-MM-DD',
|
|
|
|
+ detailData: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- dealerTypeChange (val) {
|
|
|
|
- this.form = Object.assign(this.form, { isShowSpecialPrice: val == 'SPECIAL_JOIN' ? 1 : 0 })
|
|
|
|
- },
|
|
|
|
// 不可选日期
|
|
// 不可选日期
|
|
disabledDate (date, dateStrings) {
|
|
disabledDate (date, dateStrings) {
|
|
return date && date.valueOf() > Date.now()
|
|
return date && date.valueOf() > Date.now()
|
|
@@ -498,18 +495,19 @@ export default {
|
|
getDetail () {
|
|
getDetail () {
|
|
dealerFindUpdateInfoBySn({ sn: this.$route.params.id }).then(res => {
|
|
dealerFindUpdateInfoBySn({ sn: this.$route.params.id }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
|
|
+ this.detailData = res.data
|
|
this.form = Object.assign(this.form, res.data)
|
|
this.form = Object.assign(this.form, res.data)
|
|
this.form.isShowSpecialPrice = Number(this.form.isShowSpecialPrice)
|
|
this.form.isShowSpecialPrice = Number(this.form.isShowSpecialPrice)
|
|
- if(this.form.provinceSn){
|
|
|
|
|
|
+ if (this.form.provinceSn) {
|
|
this.getArea('city', this.form.provinceSn, 0)
|
|
this.getArea('city', this.form.provinceSn, 0)
|
|
}
|
|
}
|
|
- if(this.form.citySn){
|
|
|
|
|
|
+ if (this.form.citySn) {
|
|
this.getArea('district', this.form.citySn, 0)
|
|
this.getArea('district', this.form.citySn, 0)
|
|
}
|
|
}
|
|
- if(this.form.receiveProvinceSn){
|
|
|
|
|
|
+ if (this.form.receiveProvinceSn) {
|
|
this.getArea('city', this.form.receiveProvinceSn, 1)
|
|
this.getArea('city', this.form.receiveProvinceSn, 1)
|
|
}
|
|
}
|
|
- if(this.form.receiveCitySn){
|
|
|
|
|
|
+ if (this.form.receiveCitySn) {
|
|
this.getArea('district', this.form.receiveCitySn, 1)
|
|
this.getArea('district', this.form.receiveCitySn, 1)
|
|
}
|
|
}
|
|
}
|
|
}
|