|
|
@@ -111,7 +111,12 @@
|
|
|
<span class="van-f-red">*</span>
|
|
|
</template>
|
|
|
</van-field>
|
|
|
- <van-field
|
|
|
+ <van-field readonly v-model="fromData.cityLevel" label="城市等级">
|
|
|
+ <template #left-icon>
|
|
|
+ <span class="van-f-red">*</span>
|
|
|
+ </template></van-field
|
|
|
+ >
|
|
|
+ <!-- <van-field
|
|
|
readonly
|
|
|
clickable
|
|
|
name="picker"
|
|
|
@@ -123,7 +128,7 @@
|
|
|
<template #left-icon>
|
|
|
<span class="van-f-red">*</span>
|
|
|
</template>
|
|
|
- </van-field>
|
|
|
+ </van-field> -->
|
|
|
<van-field
|
|
|
v-model="fromData.addressLine"
|
|
|
label="地址"
|
|
|
@@ -145,13 +150,13 @@
|
|
|
<van-field
|
|
|
type="tel"
|
|
|
v-model="fromData.telephone"
|
|
|
- label="联系电话"
|
|
|
- placeholder="请输入联系电话"
|
|
|
+ label="门店联系电话"
|
|
|
+ placeholder="请输入门店联系电话"
|
|
|
:rules="[
|
|
|
{
|
|
|
required: true,
|
|
|
validator: FSQValidatePhone,
|
|
|
- message: '请输入联系电话',
|
|
|
+ message: '请输入门店联系电话',
|
|
|
},
|
|
|
]">
|
|
|
<template #left-icon>
|
|
|
@@ -160,9 +165,9 @@
|
|
|
</van-field>
|
|
|
<van-field
|
|
|
v-model="fromData.salesmanName"
|
|
|
- label="联系人"
|
|
|
- placeholder="联系人"
|
|
|
- :rules="[{ required: true, message: '请输入联系人' }]">
|
|
|
+ label="门店联系人"
|
|
|
+ placeholder="请输入门店联系人"
|
|
|
+ :rules="[{ required: true, message: '请输入门店联系人' }]">
|
|
|
<template #left-icon>
|
|
|
<span class="van-f-red">*</span>
|
|
|
</template>
|
|
|
@@ -194,14 +199,14 @@
|
|
|
@confirm="onDistrictConfirm"
|
|
|
@cancel="showDistrictPicker = false" />
|
|
|
</van-popup>
|
|
|
- <van-popup v-model="showTownPicker" position="bottom">
|
|
|
+ <!-- <van-popup v-model="showTownPicker" position="bottom">
|
|
|
<van-picker
|
|
|
show-toolbar
|
|
|
title="街道"
|
|
|
:columns="townList"
|
|
|
@confirm="onTownConfirm"
|
|
|
@cancel="showTownPicker = false" />
|
|
|
- </van-popup>
|
|
|
+ </van-popup> -->
|
|
|
<!-- 部门数据 -->
|
|
|
<van-popup v-model="showPickerDept" position="bottom">
|
|
|
<van-picker
|
|
|
@@ -268,7 +273,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
fromData: {
|
|
|
- storeCode: '',
|
|
|
+ // storeCode: '',
|
|
|
storeName: '',
|
|
|
telephone: '',
|
|
|
storeCategoryName: '',
|
|
|
@@ -278,7 +283,7 @@ export default {
|
|
|
addressLine: '',
|
|
|
orgName: '',
|
|
|
// chainName: '',
|
|
|
- townName: '',
|
|
|
+ // townName: '',
|
|
|
salesmanName: '',
|
|
|
lat: '',
|
|
|
lon: '',
|
|
|
@@ -361,11 +366,12 @@ export default {
|
|
|
this.fromData.provinceName = response.data.provinceName;
|
|
|
this.fromData.cityName = response.data.cityName;
|
|
|
this.fromData.districtName = response.data.countyName;
|
|
|
+ this.fromData.cityLevel = response.data.countyLevel;
|
|
|
this.$nextTick(() => {
|
|
|
this.getStreetQuery();
|
|
|
this.getStreetQuery('1');
|
|
|
this.getStreetQuery('2');
|
|
|
- this.getStreetQuery('3');
|
|
|
+ // this.getStreetQuery('3');
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
@@ -628,8 +634,8 @@ export default {
|
|
|
this.fromData.city = '';
|
|
|
this.fromData.districtName = '';
|
|
|
this.fromData.countyCode = '';
|
|
|
- this.fromData.townName = '';
|
|
|
- this.fromData.townCode = '';
|
|
|
+ // this.fromData.townName = '';
|
|
|
+ // this.fromData.townCode = '';
|
|
|
this.countyCode = '';
|
|
|
this.cityCode = '';
|
|
|
this.provinceCode = value.provinceCode;
|
|
|
@@ -641,8 +647,8 @@ export default {
|
|
|
this.fromData.city = value.cityCode;
|
|
|
this.fromData.districtName = '';
|
|
|
this.fromData.district = '';
|
|
|
- this.fromData.townName = '';
|
|
|
- this.fromData.townCode = '';
|
|
|
+ // this.fromData.townName = '';
|
|
|
+ // this.fromData.townCode = '';
|
|
|
this.countyCode = '';
|
|
|
this.cityCode = value.cityCode;
|
|
|
this.getStreetQuery('2');
|
|
|
@@ -651,11 +657,11 @@ export default {
|
|
|
onDistrictConfirm(value) {
|
|
|
this.fromData.districtName = value.text;
|
|
|
this.fromData.district = value.countyCode;
|
|
|
- this.fromData.townName = '';
|
|
|
- this.fromData.townCode = '';
|
|
|
+ // this.fromData.townName = '';
|
|
|
+ // this.fromData.townCode = '';
|
|
|
this.countyCode = value.countyCode;
|
|
|
this.fromData.cityLevel = value.countyLevel;
|
|
|
- this.getStreetQuery('3');
|
|
|
+ // this.getStreetQuery('3');
|
|
|
this.showDistrictPicker = false;
|
|
|
},
|
|
|
onTownConfirm(value) {
|