address-client 3.2.2 → 3.2.3-zk
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/build/dev-server.js +133 -125
- package/package.json +2 -2
- package/src/address.js +55 -55
- package/src/components/AddAreaMsg.vue +675 -669
- package/src/components/AddressList.vue +391 -611
- package/src/components/AddressManage.vue +110 -117
- package/src/components/AreaList.vue +137 -135
- package/src/components/AreaManage.vue +101 -100
- package/src/components/CityList.vue +133 -133
- package/src/components/StreetList.vue +210 -210
- package/src/components/UserAddress.vue +905 -896
- package/src/main.js +21 -21
- package/yarn-error.log +7619 -0
- package/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
- package/AddressClient.iml +0 -13
- package/src/filiale/WEINAN/AddAreaMsg.vue +0 -656
- package/src/filiale/WEINAN/AddressList.vue +0 -351
- package/src/filiale/WEINAN/AddressManage.vue +0 -122
- package/src/filiale/WEINAN/AreaList.vue +0 -275
- package/src/filiale/WEINAN/UserAddress.vue +0 -783
- package/src/filiale/WEINAN/sale.js +0 -16
- package/src/filiale/gaomi/AddressList.vue +0 -430
- package/src/filiale/gaomi/UserAddress.vue +0 -832
- package/src/filiale/gaomi/sale.js +0 -14
- package/src/filiale/gongyi/AddAreaMsg.vue +0 -640
- package/src/filiale/gongyi/AreaManage.vue +0 -100
- package/src/filiale/gongyi/UserAddress.vue +0 -751
- package/src/filiale/gongyi/sale.js +0 -14
- package/src/filiale/jingwei/UserAddress.vue +0 -764
- package/src/filiale/jingwei/sale.js +0 -12
- package/src/filiale/macheng/AddAreaMsg.vue +0 -635
- package/src/filiale/macheng/AddStreetOrPcd.vue +0 -231
- package/src/filiale/macheng/AddressList.vue +0 -306
- package/src/filiale/macheng/AreaList.vue +0 -279
- package/src/filiale/macheng/CityManage.vue +0 -76
- package/src/filiale/macheng/StreetList.vue +0 -186
- package/src/filiale/macheng/UserAddress.vue +0 -743
- package/src/filiale/macheng/sale.js +0 -17
- package/src/filiale/rongcheng/AddressList.vue +0 -363
- package/src/filiale/rongcheng/UserAddress.vue +0 -799
- package/src/filiale/rongcheng/sale.js +0 -11
- package/src/filiale/shaoguan/AddAreaMsg.vue +0 -631
- package/src/filiale/shaoguan/UserAddress.vue +0 -764
- package/src/filiale/shaoguan/sale.js +0 -11
- package/src/filiale/tongchuan/AddAreaMsg.vue +0 -635
- package/src/filiale/tongchuan/AddStreetOrPcd.vue +0 -308
- package/src/filiale/tongchuan/AddressList.vue +0 -379
- package/src/filiale/tongchuan/AreaList.vue +0 -315
- package/src/filiale/tongchuan/AreaManage.vue +0 -100
- package/src/filiale/tongchuan/CityList.vue +0 -133
- package/src/filiale/tongchuan/StreetList.vue +0 -208
- package/src/filiale/tongchuan/UserAddress.vue +0 -822
- package/src/filiale/tongchuan/sale.js +0 -19
- package/src/filiale/wuhai/UserAddress.vue +0 -795
- package/src/filiale/wuhai/sale.js +0 -12
- package/src/filiale/zhoukou/AddAreaMsg.vue +0 -673
- package/src/filiale/zhoukou/AddressList.vue +0 -391
- package/src/filiale/zhoukou/AddressManage.vue +0 -115
- package/src/filiale/zhoukou/AreaList.vue +0 -319
- package/src/filiale/zhoukou/AreaManage.vue +0 -100
- package/src/filiale/zhoukou/UserAddress.vue +0 -925
- package/src/filiale/zhoukou/sale.js +0 -23
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="span">
|
|
3
|
-
<validator name='v'>
|
|
4
|
-
<p class="bg-info text-center" style="padding: 8px;" v-if="operation=='add'">添加{{areatype}}</p>
|
|
5
|
-
<p class="bg-info text-center" style="padding: 8px;" v-if="operation=='modify'&&areatype=='街道'">修改【{{streetmodel.f_street}}】街道</p>
|
|
6
|
-
<p class="bg-info text-center" style="padding: 8px;" v-if="operation=='modify'&&areatype=='省市区'">修改【{{pcdmodel.f_pcd}}】</p>
|
|
7
|
-
<div class="auto select-overspread form-horizontal">
|
|
8
|
-
<div style="text-align:right;margin-top:6px;" class="col-sm-12">
|
|
9
|
-
<!-- 省市区-->
|
|
10
|
-
<div v-if="areatype=='省市区'" class="row">
|
|
11
|
-
<div class="col-sm-6 form-group "
|
|
12
|
-
:class="[$v.f_province.required ? 'has-error' : 'has-success']">
|
|
13
|
-
<label class="font_normal_body">省  份</label>
|
|
14
|
-
<input type="text" v-model="pcdmodel.f_province"
|
|
15
|
-
class="input_search" style="width:60%" placeholder="省份"
|
|
16
|
-
v-validate:f_province='{required: true }'>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="col-sm-6 form-group "
|
|
19
|
-
:class="[$v.f_city.required ? 'has-error' : 'has-success']">
|
|
20
|
-
<label class="font_normal_body">城  市</label>
|
|
21
|
-
<input type="text" v-model="pcdmodel.f_city"
|
|
22
|
-
class="input_search" style="width:60%" placeholder="城市"
|
|
23
|
-
v-validate:f_city='{required: true }'>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="col-sm-6 form-group "
|
|
26
|
-
:class="[$v.f_district.required ? 'has-error' : 'has-success']">
|
|
27
|
-
<label class="font_normal_body">区  / 县</label>
|
|
28
|
-
<input type="text" v-model="pcdmodel.f_district"
|
|
29
|
-
class="input_search" style="width:60%" placeholder="区/县"
|
|
30
|
-
v-validate:f_district='{required: true }'>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="col-sm-6 form-group "
|
|
33
|
-
:class="[$v.f_pcd_number.required ? 'has-error' : 'has-success']">
|
|
34
|
-
<label class="font_normal_body">区域编码</label>
|
|
35
|
-
<input type="text" v-model="pcdmodel.f_pcd_number"
|
|
36
|
-
class="input_search" style="width:60%" placeholder="区域编码"
|
|
37
|
-
@change="numberyanzheng"
|
|
38
|
-
v-validate:f_pcd_number='{required: true }'>
|
|
39
|
-
</div>
|
|
40
|
-
<div class="col-sm-12 form-group">
|
|
41
|
-
<label class="font_normal_body " style="">备  注</label>
|
|
42
|
-
<textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="pcdmodel.f_comments"></textarea>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
<!-- 街道-->
|
|
46
|
-
<div v-if="areatype=='街道'" class="row">
|
|
47
|
-
<div class="col-sm-6 form-group "
|
|
48
|
-
:class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
|
|
49
|
-
<label class="font_normal_body">省 市 区</label>
|
|
50
|
-
<input type="text" v-show="false" v-model="streetmodel.f_pcd_id"
|
|
51
|
-
v-validate:f_pcd_id='{required: true }'>
|
|
52
|
-
<v-select
|
|
53
|
-
:value.sync="streetmodel.f_pcd_id" :value-single="true"
|
|
54
|
-
:options='pcdslist' placeholder='请选择'
|
|
55
|
-
close-on-select search="true" @change="pcdChange">
|
|
56
|
-
</v-select>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="col-sm-6 form-group "
|
|
59
|
-
:class="[$v.f_street.required ? 'has-error' : 'has-success']">
|
|
60
|
-
<label class="font_normal_body">街道/乡镇</label>
|
|
61
|
-
<input type="text" v-model="streetmodel.f_street"
|
|
62
|
-
class="input_search" style="width:60%" placeholder="街道/乡镇"
|
|
63
|
-
v-validate:f_street='{required: true }'>
|
|
64
|
-
</div>
|
|
65
|
-
<!-- <div class="col-sm-6 form-group "
|
|
66
|
-
:class="[$v.f_iscity.required ? 'has-error' : 'has-success']">
|
|
67
|
-
<label class="font_normal_body">地区类型</label>
|
|
68
|
-
<input type="text" v-show="false" v-model="streetmodel.f_iscity"
|
|
69
|
-
v-validate:f_iscity='{required: true }'>
|
|
70
|
-
<v-select
|
|
71
|
-
:value.sync="streetmodel.f_iscity" :value-single="true"
|
|
72
|
-
:options='iscity' placeholder='请选择'
|
|
73
|
-
close-on-select>
|
|
74
|
-
</v-select>
|
|
75
|
-
</div>-->
|
|
76
|
-
<div class="col-sm-12 form-group">
|
|
77
|
-
<label class="font_normal_body " style="">备  注</label>
|
|
78
|
-
<textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="streetmodel.f_comments"></textarea>
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
|
|
82
|
-
<div class="row">
|
|
83
|
-
<div style="margin-top:40px;text-align:right;">
|
|
84
|
-
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
|
|
85
|
-
<button class="button_clear button_spacing" @click="cancel()">取消</button>
|
|
86
|
-
</div>
|
|
87
|
-
<div v-if="areatype=='省市区'" class="row" style="margin-top:40px;height: 580px;">
|
|
88
|
-
<city-list v-ref:addpcd @select-changed="selected" :f_filialeids.sync="f_filialeids"></city-list>
|
|
89
|
-
</div>
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
92
|
-
</validator>
|
|
93
|
-
</div>
|
|
94
|
-
</template>
|
|
95
|
-
|
|
96
|
-
<script>
|
|
97
|
-
import {HttpResetClass} from 'vue-client'
|
|
98
|
-
|
|
99
|
-
let getAreaConfig = async function (self) {
|
|
100
|
-
// 获取气价里面的配置
|
|
101
|
-
await self.$getConfig(self, 'UserPcd')
|
|
102
|
-
console.log('原地址配置',self.config)
|
|
103
|
-
console.log('获取地址配置',self.config)
|
|
104
|
-
Object.assign(self.model, self.config)
|
|
105
|
-
}
|
|
106
|
-
export default {
|
|
107
|
-
title: '区域地址添加',
|
|
108
|
-
data () {
|
|
109
|
-
return {
|
|
110
|
-
//初始化省市区数据
|
|
111
|
-
config:{
|
|
112
|
-
hasnumber: false
|
|
113
|
-
},
|
|
114
|
-
pcdslist:[],
|
|
115
|
-
iscity:[{label:'市区',value:'市区'},{label:'乡镇',value:'乡镇'}],
|
|
116
|
-
//省市区
|
|
117
|
-
pcdmodel: {
|
|
118
|
-
f_province:'',
|
|
119
|
-
f_city:'',
|
|
120
|
-
f_district:'',
|
|
121
|
-
f_comments:'',
|
|
122
|
-
f_pcd_number: ''
|
|
123
|
-
},
|
|
124
|
-
//街道
|
|
125
|
-
streetmodel: {
|
|
126
|
-
f_pcd_id:'',
|
|
127
|
-
f_street_id:'',
|
|
128
|
-
slice_area: null,
|
|
129
|
-
f_slice_area: null,
|
|
130
|
-
f_adjustable_id: null,
|
|
131
|
-
f_street:'',
|
|
132
|
-
f_comments:'',
|
|
133
|
-
f_street_number:'',
|
|
134
|
-
f_iscity:''
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
props: ['f_filialeids', 'areatype','row','operation'],
|
|
139
|
-
ready(){
|
|
140
|
-
this.initdata()
|
|
141
|
-
getAreaConfig(this)
|
|
142
|
-
},
|
|
143
|
-
methods: {
|
|
144
|
-
async streetyanzheng(){
|
|
145
|
-
let res =await this.$resetpost('rs/sql/address_singleTableOrderBy', {
|
|
146
|
-
data: {
|
|
147
|
-
items: '*',
|
|
148
|
-
tablename: 't_street',
|
|
149
|
-
orderitem: 'id',
|
|
150
|
-
condition: `f_street_number = '${this.streetmodel.f_street_number}' and f_orgid = '${this.$login.f.orgid}'`
|
|
151
|
-
}
|
|
152
|
-
}, {resolveMsg: null, rejectMsg: null})
|
|
153
|
-
if (res.data.length>0){
|
|
154
|
-
if (res.data[0].id != this.streetmodel.id) {
|
|
155
|
-
this.$showAlert('当前编号已存在', 'warning', 2000)
|
|
156
|
-
this.streetmodel.f_street_number = ''
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
},
|
|
161
|
-
async numberyanzheng(){
|
|
162
|
-
console.log(this.pcdmodel.f_pcd_number.length)
|
|
163
|
-
if (this.pcdmodel.f_pcd_number.length != 1){
|
|
164
|
-
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
165
|
-
this.pcdmodel.f_pcd_number = ''
|
|
166
|
-
}else{
|
|
167
|
-
let res =await this.$resetpost('rs/sql/address_singleTableOrderBy', {
|
|
168
|
-
data: {
|
|
169
|
-
items: '*',
|
|
170
|
-
tablename: 't_pcd',
|
|
171
|
-
orderitem: 'id',
|
|
172
|
-
condition: `f_pcd_number = '${this.pcdmodel.f_pcd_number}' and f_orgid = '${this.$login.f.orgid}'`
|
|
173
|
-
}
|
|
174
|
-
}, {resolveMsg: null, rejectMsg: null})
|
|
175
|
-
if (res.data.length>0){
|
|
176
|
-
if (res.data[0].id != this.pcdmodel.id) {
|
|
177
|
-
this.$showAlert('当前编号已存在', 'warning', 2000)
|
|
178
|
-
this.pcdmodel.f_pcd_number = ''
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
//初始化省市区,添加街道
|
|
184
|
-
initpcds(pconditon){
|
|
185
|
-
console.log("省市区准备")
|
|
186
|
-
let HttpReset = new HttpResetClass()
|
|
187
|
-
HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
|
|
188
|
-
data: {
|
|
189
|
-
items: '*',
|
|
190
|
-
tablename: 't_pcd',
|
|
191
|
-
orderitem: 'id',
|
|
192
|
-
condition: pconditon
|
|
193
|
-
}
|
|
194
|
-
}, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((req) => {
|
|
195
|
-
let redata = []
|
|
196
|
-
req.data.forEach((row, n) => {
|
|
197
|
-
redata[n] = {
|
|
198
|
-
label: row.f_pcd,
|
|
199
|
-
value: row.id,
|
|
200
|
-
data:row,
|
|
201
|
-
id:row.id
|
|
202
|
-
}
|
|
203
|
-
})
|
|
204
|
-
this.pcdslist=redata
|
|
205
|
-
})
|
|
206
|
-
},
|
|
207
|
-
//根据名字找数据
|
|
208
|
-
findbyid(list,name){
|
|
209
|
-
var result
|
|
210
|
-
list.forEach((row, n) => {
|
|
211
|
-
if(name==row.id){
|
|
212
|
-
result= row.data
|
|
213
|
-
}
|
|
214
|
-
})
|
|
215
|
-
return result
|
|
216
|
-
},
|
|
217
|
-
//初始化数据
|
|
218
|
-
initdata(){
|
|
219
|
-
if(this.areatype=='街道'){
|
|
220
|
-
this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
|
|
221
|
-
}
|
|
222
|
-
if(this.areatype=='小区'){
|
|
223
|
-
this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
|
|
224
|
-
this.initstreets(` f_filialeid = '${this.f_filialeids}'`)
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
//省/市/区变化
|
|
228
|
-
pcdChange(val){
|
|
229
|
-
console.log("省/市/区变化",val)
|
|
230
|
-
this.$resetValidation()
|
|
231
|
-
},
|
|
232
|
-
//保存
|
|
233
|
-
async confirm(){
|
|
234
|
-
if(this.areatype=='省市区'){
|
|
235
|
-
await this.savepcd()
|
|
236
|
-
}
|
|
237
|
-
if(this.areatype=='街道'){
|
|
238
|
-
await this.savestreet()
|
|
239
|
-
}
|
|
240
|
-
this.cleardara()
|
|
241
|
-
this.$dispatch('confirm')
|
|
242
|
-
},
|
|
243
|
-
//保存省市区
|
|
244
|
-
async savepcd(){
|
|
245
|
-
this.pcdmodel.f_filialeid = this.f_filialeids
|
|
246
|
-
this.pcdmodel.f_operator = this.$login.f.name
|
|
247
|
-
this.pcdmodel.f_operatorid = this.$login.f.id
|
|
248
|
-
this.pcdmodel.f_orgid = this.$login.f.orgid
|
|
249
|
-
this.pcdmodel.f_orgname = this.$login.f.orgs
|
|
250
|
-
this.pcdmodel.f_depid = this.$login.f.depids
|
|
251
|
-
this.pcdmodel.f_depname = this.$login.f.deps
|
|
252
|
-
this.pcdmodel.f_pcd = this.pcdmodel.f_province+this.pcdmodel.f_city+this.pcdmodel.f_district
|
|
253
|
-
await this.$resetpost('rs/logic/address_updatepcd', this.pcdmodel)
|
|
254
|
-
},
|
|
255
|
-
//保存街道
|
|
256
|
-
async savestreet(){
|
|
257
|
-
this.streetmodel.f_filialeid = this.f_filialeids
|
|
258
|
-
this.streetmodel.f_operator= this.$login.f.name
|
|
259
|
-
this.streetmodel.f_operatorid = this.$login.f.id
|
|
260
|
-
this.streetmodel.f_orgid = this.$login.f.orgid
|
|
261
|
-
this.streetmodel.f_orgname = this.$login.f.orgs
|
|
262
|
-
this.streetmodel.f_depid = this.$login.f.depids
|
|
263
|
-
this.streetmodel.f_depname = this.$login.f.deps
|
|
264
|
-
this.streetmodel.f_pcd=this.findbyid(this.pcdslist,this.streetmodel.f_pcd_id).f_pcd
|
|
265
|
-
console.log('获取街道model', this.streetmodel)
|
|
266
|
-
await this.$resetpost('rs/logic/address_updatestreet', this.streetmodel)
|
|
267
|
-
},
|
|
268
|
-
cancel(){
|
|
269
|
-
this.cleardara()
|
|
270
|
-
this.$dispatch('cancel')
|
|
271
|
-
},
|
|
272
|
-
cleardara () {
|
|
273
|
-
this.pcdmodel = {
|
|
274
|
-
f_province: '',
|
|
275
|
-
f_city: '',
|
|
276
|
-
f_district: '',
|
|
277
|
-
f_comments:''
|
|
278
|
-
}
|
|
279
|
-
this.streetmodel = {
|
|
280
|
-
f_pcd_id: '',
|
|
281
|
-
f_slice_area: '',
|
|
282
|
-
f_adjustable_id: '',
|
|
283
|
-
f_street: '',
|
|
284
|
-
f_comments:''
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
},
|
|
289
|
-
watch: {
|
|
290
|
-
'areatype'(){
|
|
291
|
-
this.initdata()
|
|
292
|
-
},
|
|
293
|
-
'f_filialeids'(){
|
|
294
|
-
if (this.streetmodel.f_filialeid) {
|
|
295
|
-
if (this.streetmodel.f_filialeid != this.f_filialeids) {
|
|
296
|
-
this.$dispatch('cancel')
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
if (this.pcdmodel.f_filialeid) {
|
|
300
|
-
if (this.pcdmodel.f_filialeid != this.f_filialeids) {
|
|
301
|
-
this.$dispatch('cancel')
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
this.initdata()
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
</script>
|