|
@@ -54,7 +54,7 @@
|
|
<el-col :xs="24" :sm="12" :lg="12" class="item">
|
|
<el-col :xs="24" :sm="12" :lg="12" class="item">
|
|
<div class="label">{{ ['cross'].includes(pageType) ? '业务所在区域' : '项目所在区域' }}*:</div>
|
|
<div class="label">{{ ['cross'].includes(pageType) ? '业务所在区域' : '项目所在区域' }}*:</div>
|
|
<div class="value">
|
|
<div class="value">
|
|
- <el-select v-model="formData.projectArea" placeholder="请选择" clearable filterable>
|
|
|
|
|
|
+ <el-select v-model="formData.projectArea" placeholder="请选择" clearable filterable @change="handleProjectArea">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in commonData.dict['TRADE_PROJECT_AREA']"
|
|
v-for="item in commonData.dict['TRADE_PROJECT_AREA']"
|
|
:key="item.value"
|
|
:key="item.value"
|
|
@@ -255,9 +255,9 @@
|
|
<div class="label">详细地址*:</div>
|
|
<div class="label">详细地址*:</div>
|
|
<div class="value">
|
|
<div class="value">
|
|
<!-- <el-input v-model="formData.positionAddress" placeholder="定位地址" size="mini" clearable disabled /> -->
|
|
<!-- <el-input v-model="formData.positionAddress" placeholder="定位地址" size="mini" clearable disabled /> -->
|
|
- <geographicalPosi style="margin: 0 20px 0 0;" v-if="module !== 'detail'" :form-data="formData" @selectPosi="handleSelectPosi" />
|
|
|
|
|
|
+ <geographicalPosi style="margin: 0 20px 0 0;" v-if="module !== 'detail' && !['cross'].includes(pageType)" :form-data="formData" @selectPosi="handleSelectPosi" />
|
|
<el-input v-model="formData.address" placeholder="请填写详细地址" size="mini" clearable />
|
|
<el-input v-model="formData.address" placeholder="请填写详细地址" size="mini" clearable />
|
|
- <i v-if="formData.positionAddress" class="el-icon-s-promotion" style="color: #409EFF;font-size: 16px;" />
|
|
|
|
|
|
+ <i v-if="formData.positionAddress && !['cross'].includes(pageType)" class="el-icon-s-promotion" style="color: #409EFF;font-size: 16px;" />
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<template>
|
|
<template>
|
|
@@ -497,7 +497,11 @@ export default {
|
|
tradeList: [],
|
|
tradeList: [],
|
|
orderTypeEume: {
|
|
orderTypeEume: {
|
|
SAVE: '保存', WAIT: '待审核', OK: '登录成功', FAIL: '登录不成功', RETURN: '返回'
|
|
SAVE: '保存', WAIT: '待审核', OK: '登录成功', FAIL: '登录不成功', RETURN: '返回'
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ region: {
|
|
|
|
+ G: ['广州市', '清远市', '韶关市'],
|
|
|
|
+ F: ['佛山市','肇庆市','云浮市']
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -581,14 +585,22 @@ export default {
|
|
this.provinceList = res.data.filter(k => {
|
|
this.provinceList = res.data.filter(k => {
|
|
return k.name === '广东省'
|
|
return k.name === '广东省'
|
|
})
|
|
})
|
|
- this.getPosition(res.data, 'provinceId', 'province')
|
|
|
|
|
|
+ this.getPosition(this.provinceList, 'provinceId', 'province')
|
|
} else {
|
|
} else {
|
|
this.provinceList = res.data
|
|
this.provinceList = res.data
|
|
}
|
|
}
|
|
- console.log(res.data)
|
|
|
|
} else if (level === 1) {
|
|
} else if (level === 1) {
|
|
- this.cityList = res.data
|
|
|
|
- // this.getPosition(res.data, 'cityId', 'city')
|
|
|
|
|
|
+ if (this.formData.province === '广东省') {
|
|
|
|
+ this.cityList = res.data.filter(k=>{
|
|
|
|
+ if(this.formData.projectArea){
|
|
|
|
+ return this.region[this.formData.projectArea].includes(k.name)
|
|
|
|
+ }
|
|
|
|
+ return k
|
|
|
|
+ })
|
|
|
|
+ }else {
|
|
|
|
+ this.cityList = res.data
|
|
|
|
+ }
|
|
|
|
+
|
|
} else if (level === 2) {
|
|
} else if (level === 2) {
|
|
this.areaList = res.data
|
|
this.areaList = res.data
|
|
} else if (level === 3) {
|
|
} else if (level === 3) {
|
|
@@ -596,16 +608,22 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ handleProjectArea(e){
|
|
|
|
+ if (this.formData.provinceId && this.formData.province === '广东省') {
|
|
|
|
+ this.getAutonaviRegion(1, this.formData.provinceId)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
getPosition(data, id, name) {
|
|
getPosition(data, id, name) {
|
|
if (this.module === 'add') {
|
|
if (this.module === 'add') {
|
|
const item = data.find(k => k.name === this.$IpAdd[name])
|
|
const item = data.find(k => k.name === this.$IpAdd[name])
|
|
- this.formData[id] = item.id
|
|
|
|
|
|
+ this.formData[id] = item.lbsId
|
|
this.formData[name] = item.name
|
|
this.formData[name] = item.name
|
|
- if (name === 'province') {
|
|
|
|
- this.getAutonaviRegion(1, item.id)
|
|
|
|
- } else {
|
|
|
|
- this.getAutonaviRegion(2, item.id)
|
|
|
|
- }
|
|
|
|
|
|
+ // if (name === 'province') {
|
|
|
|
+ this.getAutonaviRegion(1, item.lbsId)
|
|
|
|
+ // }
|
|
|
|
+ // else {
|
|
|
|
+ // this.getAutonaviRegion(2, item.lbsId)
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getPositionProject() {
|
|
getPositionProject() {
|