|
@@ -44,24 +44,24 @@
|
|
|
<a-col :md="12" :sm="24">
|
|
|
<a-row>
|
|
|
<!-- 客户地址 -->
|
|
|
- <a-form-item prop="provinceCode" label="客户地址">
|
|
|
+ <a-form-item label="客户地址">
|
|
|
<a-col span="7">
|
|
|
- <a-form-item prop="provinceCode" style="margin: 0;">
|
|
|
- <a-select v-model="queryParam.provinceCode" @change="getCityList" placeholder="请选择省">
|
|
|
+ <a-form-item prop="provinceId" style="margin: 0;">
|
|
|
+ <a-select v-model="queryParam.provinceId" @change="getCityList" placeholder="请选择省">
|
|
|
<a-select-option v-for="item in addrProvinceList" :value="item.id" :key="item.id + 'a'">{{ item.name }}</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col span="7" offset="1">
|
|
|
- <a-form-item prop="cityCode" style="margin: 0;">
|
|
|
- <a-select v-model="queryParam.cityCode" @change="getAreaList" placeholder="请选择市">
|
|
|
+ <a-form-item prop="cityId" style="margin: 0;">
|
|
|
+ <a-select v-model="queryParam.cityId" @change="getAreaList" placeholder="请选择市">
|
|
|
<a-select-option v-for="item in addrCityList" :value="item.id" :key="item.id + 'b'">{{ item.name }}</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col span="7" offset="1">
|
|
|
- <a-form-item prop="districtCode" style="margin: 0;">
|
|
|
- <a-select v-model="queryParam.districtCode" placeholder="请选择区/县">
|
|
|
+ <a-form-item prop="areaId" style="margin: 0;">
|
|
|
+ <a-select v-model="queryParam.areaId" placeholder="请选择区/县">
|
|
|
<a-select-option v-for="item in addrDistrictList" :value="item.id" :key="item.id + 'c'">{{ item.name }}</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
@@ -89,7 +89,7 @@
|
|
|
<!-- 操作按钮 -->
|
|
|
<div class="table-operator">
|
|
|
<a-button id="customerManagementList-add" type="primary" @click="handleEdit()">新增客户</a-button>
|
|
|
- <a-button id="customerManagementList-merge" @click="handleMerge" style="margin: 0 0 0 15px;">客户合并</a-button>
|
|
|
+ <!-- <a-button id="customerManagementList-merge" @click="handleMerge" style="margin: 0 0 0 15px;">客户合并</a-button> -->
|
|
|
</div>
|
|
|
<!-- 列表 -->
|
|
|
<s-table
|
|
@@ -128,11 +128,11 @@ export default {
|
|
|
return {
|
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
|
queryParam: { // 查询条件
|
|
|
- name: '', // 客户名称
|
|
|
+ name: undefined, // 客户名称
|
|
|
contact: '', // 联系人
|
|
|
- province: undefined, // 省
|
|
|
- city: undefined, // 市
|
|
|
- district: undefined, // 区
|
|
|
+ provinceId: undefined, // 省
|
|
|
+ cityId: undefined, // 市
|
|
|
+ areaId: undefined, // 区
|
|
|
// itemName: '', // 是否卫星仓客户
|
|
|
},
|
|
|
exportLoading: false, // 导出loading
|
|
@@ -181,9 +181,9 @@ export default {
|
|
|
resetSearchForm () {
|
|
|
this.queryParam.name = ''
|
|
|
this.queryParam.contact = ''
|
|
|
- this.queryParam.province = undefined
|
|
|
- this.queryParam.city = undefined
|
|
|
- this.queryParam.district = undefined
|
|
|
+ this.queryParam.provinceId = undefined
|
|
|
+ this.queryParam.cityId = undefined
|
|
|
+ this.queryParam.areaId = undefined
|
|
|
this.creatTime = []
|
|
|
this.salesTime = []
|
|
|
this.$refs.table.refresh(true)
|