|
@@ -40,7 +40,8 @@ const freightMixins = function () {
|
|
|
areaUrbanForm:{}, // 区域
|
|
|
areaRulesForm:{}, // 规则
|
|
|
areaRulesIndex:0, // 规则记录
|
|
|
- areaData:[]
|
|
|
+ areaData:[],
|
|
|
+ templateType:'',// 模板修改
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -71,6 +72,7 @@ const freightMixins = function () {
|
|
|
this.freightTemp.name = ''
|
|
|
this.freightRuleList = []
|
|
|
this.freightRuleList.push(freightDefault())
|
|
|
+ this.getFreightArea()
|
|
|
this.handleInitAreas()
|
|
|
this.dialogFormVisible = true
|
|
|
},
|
|
@@ -135,16 +137,16 @@ const freightMixins = function () {
|
|
|
},
|
|
|
// 修改省市区
|
|
|
changeFreightAreas(type,freight,index){
|
|
|
- console.log('areaData',this.areaData)
|
|
|
this.freightAreasType = type
|
|
|
this.areaRulesForm = freight
|
|
|
this.areaRulesIndex = index+1
|
|
|
- this.getFreightArea(freight.freightId,freight.id)
|
|
|
+ if(this.templateType === 'edit'){
|
|
|
+ this.getFreightArea(freight.freightId,freight.id)
|
|
|
+ }
|
|
|
this.areasFormVisible = true
|
|
|
},
|
|
|
// 设置省市区
|
|
|
sittingFreightAreas(type,freight,index){
|
|
|
- this.getFreightArea()
|
|
|
this.freightAreasType = type
|
|
|
this.areaRulesForm = freight
|
|
|
this.areaRulesIndex = index+1
|