|
@@ -88,9 +88,9 @@
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
- <a-form-model-item label="经度" prop="lng" class="default-form-item">
|
|
|
+ <a-form-model-item label="纬度" prop="lat" class="default-form-item">
|
|
|
<a-row :gutter="20">
|
|
|
- <a-col :span="17"><a-input-number v-model="form.lng" :min="-180" :max="180" placeholder="请输入经度坐标" class="input-number-all" /></a-col>
|
|
|
+ <a-col :span="17"><a-input-number v-model="form.lat" :min="-90" :max="90" placeholder="请输入纬度坐标" class="input-number-all" /></a-col>
|
|
|
<a-col :span="6">
|
|
|
<a href="https://lbs.qq.com/tool/getpoint/" target="_blank">
|
|
|
<a-button type="primary" size="small" icon="search" class="small-btn">查询坐标</a-button>
|
|
@@ -100,8 +100,8 @@
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
- <a-form-model-item label="纬度" prop="lat">
|
|
|
- <a-input-number v-model="form.lat" :min="-90" :max="90" placeholder="请输入纬度坐标" class="input-number-all" />
|
|
|
+ <a-form-model-item label="经度" prop="lng">
|
|
|
+ <a-input-number v-model="form.lng" :min="-180" :max="180" placeholder="请输入经度坐标" class="input-number-all" />
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
@@ -345,24 +345,8 @@ export default {
|
|
|
},
|
|
|
// 表单赋值
|
|
|
setVal (item) {
|
|
|
- const arr = [
|
|
|
- 'id',
|
|
|
- 'icon',
|
|
|
- 'name',
|
|
|
- 'addrProvince',
|
|
|
- 'addrProvinceName',
|
|
|
- 'addrCityName',
|
|
|
- 'addrDistrictName',
|
|
|
- 'featuredServiceLabel',
|
|
|
- 'lng',
|
|
|
- 'lat',
|
|
|
- 'serviceType',
|
|
|
- 'guidance',
|
|
|
- 'reminder'
|
|
|
- ]
|
|
|
- arr.map(k => {
|
|
|
- this.form[k] = item[k]
|
|
|
- })
|
|
|
+ const arr = [ 'id', 'icon', 'name', 'addrProvince', 'addrProvinceName', 'addrCityName', 'addrDistrictName', 'featuredServiceLabel', 'lng', 'lat', 'serviceType', 'guidance', 'reminder' ]
|
|
|
+ arr.map(k => { this.form[k] = item[k] })
|
|
|
this.$refs.showPicture.setFileList(this.form.icon)
|
|
|
this.getCityList(item.addrProvince) // 获取市区下拉数据
|
|
|
this.form.addrCity = item.addrCity // 市区赋值
|
|
@@ -470,24 +454,14 @@ export default {
|
|
|
// 网点照片
|
|
|
this.$refs.showPicture.setFileList('')
|
|
|
}
|
|
|
- this.form.name = '' // 网点名称
|
|
|
- this.form.addrProvince = undefined // 省 编码
|
|
|
- this.form.addrProvinceName = '' // 省
|
|
|
- this.form.addrCity = undefined // 市 编码
|
|
|
- this.form.addrCityName = '' // 市
|
|
|
- this.form.addrDistrict = undefined // 区 编码
|
|
|
- this.form.addrDistrictName = '' // 区
|
|
|
- this.form.addrDetail = '' // 详细地址
|
|
|
- this.form.deviceDTOList = [] // 设备序列号
|
|
|
- this.form.featuredServiceLabel = '' // 网点标签
|
|
|
- this.form.lng = '' // 经度
|
|
|
- this.form.lat = '' // 纬度
|
|
|
- this.form.serviceType = [] // 服务类型
|
|
|
+ const emptyArr = [ 'name', 'addrProvinceName', 'addrCityName', 'addrDistrictName', 'addrDetail', 'featuredServiceLabel', 'lng', 'lat', 'guidance', 'reminder' ]
|
|
|
+ const undefinedArr = [ 'addrProvince', 'addrCity', 'addrDistrict' ]
|
|
|
+ const array = [ 'deviceDTOList', 'serviceType', 'storeItemPriceDTOList' ]
|
|
|
+ emptyArr.map(item => { this.form[item] = '' })
|
|
|
+ undefinedArr.map(item => { this.form[item] = undefined })
|
|
|
+ array.map(item => { this.form[item] = [] })
|
|
|
this.form.beginTime = null // 营业时间开始时间
|
|
|
this.form.endTime = null // 营业时间结束时间
|
|
|
- this.form.storeItemPriceDTOList = [] // 时段价格
|
|
|
- this.form.guidance = '' // 路线指引
|
|
|
- this.form.reminder = '' // 温馨提示
|
|
|
},
|
|
|
// 是否重置时段价格 (更改服务类型、营业开始结束时间)
|
|
|
isResetstoreItemPriceDTOList (type, val) {
|