address-client 3.0.24-78 → 3.0.24-aode
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/{5.2.1 → 5.5}/fileChanges/last-build.bin +0 -0
- package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
- package/.gradle/{5.2.1 → 5.5}/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
- package/CHANGELOG.md +0 -3
- package/build/dev-server.js +2 -2
- package/build/webpack.base.conf.js +2 -6
- package/examples/showAdd/App.vue +2 -2
- package/index.html +0 -4
- package/package.json +5 -6
- package/src/address.js +5 -11
- package/src/components/AddAreaMsg.vue +78 -148
- package/src/components/AddStreetOrPcd.vue +2 -79
- package/src/components/AddressList.vue +108 -182
- package/src/components/AddressManage.vue +1 -1
- package/src/components/AddressTree.vue +1 -1
- package/src/components/AreaList.vue +247 -317
- package/src/components/AreaManage.vue +18 -17
- package/src/components/CityManage.vue +1 -1
- package/src/components/NewAddressInfo.vue +1 -1
- package/src/components/StreetList.vue +26 -50
- package/src/components/UserAddress.vue +383 -509
- package/src/components/areauser/AreaUser.vue +233 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/gradlew +0 -172
- package/gradlew.bat +0 -84
- package/src/components/CityList.vue +0 -133
- 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 -795
- 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/AddressList.vue +0 -391
- package/src/filiale/zhoukou/UserAddress.vue +0 -833
- package/src/filiale/zhoukou/sale.js +0 -13
|
@@ -10,20 +10,12 @@
|
|
|
10
10
|
<span v-if="operation=='modify'&&f_special">修改【{{areamodel.f_residential_area}}】单位</span>
|
|
11
11
|
</div>
|
|
12
12
|
<!--基本小区(单位)信息-->
|
|
13
|
-
<div class="col-sm-6 form-group"
|
|
13
|
+
<div class="col-sm-6 form-group">
|
|
14
14
|
<label class="font_normal_body">小区编号</label>
|
|
15
15
|
<input type="text" class="input_search" style="width:60%" v-model="areamodel.f_area_id"
|
|
16
16
|
@blur="areaidChange" placeholder="小区编号">
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
<div class="col-sm-6 form-group" v-if="config.hasnumber"
|
|
20
|
-
:class="[$v.f_area_id.required ? 'has-error' : 'has-success']">
|
|
21
|
-
<label class="font_normal_body">小区编号</label>
|
|
22
|
-
<input type="number" class="input_search" style="width:60%" v-model="areamodel.f_area_id"
|
|
23
|
-
v-validate:f_area_id='{required: true }'
|
|
24
|
-
@change="areaidChangeHasnumber" placeholder="小区编号">
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
19
|
<div class="col-sm-6 form-group"
|
|
28
20
|
:class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
|
|
29
21
|
<label class="font_normal_body">省 市 区</label>
|
|
@@ -115,125 +107,96 @@
|
|
|
115
107
|
<div v-if="!f_special" class="row">
|
|
116
108
|
<div class="col-sm-6 form-group">
|
|
117
109
|
<label class="font_normal_body">用户类型</label>
|
|
118
|
-
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_user_type"
|
|
110
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_user_type"
|
|
111
|
+
>
|
|
119
112
|
<v-select
|
|
120
113
|
:value.sync="areamodel.f_user_type" :value-single="true"
|
|
121
114
|
:options='usertypes' placeholder='用户类型' @change="userTypeChange"
|
|
122
115
|
close-on-select >
|
|
123
116
|
</v-select>
|
|
124
117
|
</div>
|
|
125
|
-
<div class="col-sm-6 form-group"
|
|
118
|
+
<div class="col-sm-6 form-group"
|
|
119
|
+
>
|
|
126
120
|
<label class="font_normal_body">用气性质</label>
|
|
127
|
-
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_gasproperties"
|
|
121
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_gasproperties"
|
|
122
|
+
>
|
|
128
123
|
<v-select
|
|
129
124
|
:value.sync="areamodel.f_gasproperties" :value-single="true"
|
|
130
125
|
:options='gasproperties' placeholder='用气性质'
|
|
131
126
|
close-on-select >
|
|
132
127
|
</v-select>
|
|
133
128
|
</div>
|
|
134
|
-
<div class="col-sm-6 form-group"
|
|
129
|
+
<div class="col-sm-6 form-group"
|
|
130
|
+
>
|
|
135
131
|
<label class="font_normal_body">气价类型</label>
|
|
136
|
-
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_type"
|
|
132
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_type"
|
|
133
|
+
>
|
|
137
134
|
<v-select
|
|
138
135
|
:value.sync="areamodel.f_price_type" :value-single="true"
|
|
139
136
|
:options='f_price_types' placeholder='气价类型'
|
|
140
137
|
close-on-select >
|
|
141
138
|
</v-select>
|
|
142
139
|
</div>
|
|
143
|
-
<div class="col-sm-6 form-group"
|
|
140
|
+
<div class="col-sm-6 form-group"
|
|
141
|
+
>
|
|
144
142
|
<label class="font_normal_body">气价名称</label>
|
|
145
|
-
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_name"
|
|
143
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_name"
|
|
144
|
+
>
|
|
146
145
|
<v-select
|
|
147
146
|
:value.sync="areamodel.f_price_name" :value-single="true"
|
|
148
147
|
:options='pricenames' placeholder='气价名称'
|
|
149
148
|
close-on-select >
|
|
150
149
|
</v-select>
|
|
151
150
|
</div>
|
|
152
|
-
<div class="col-sm-6 form-group"
|
|
151
|
+
<div class="col-sm-6 form-group"
|
|
152
|
+
>
|
|
153
153
|
<label class="font_normal_body">气表品牌</label>
|
|
154
|
-
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_meter_brand"
|
|
154
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_meter_brand"
|
|
155
|
+
>
|
|
155
156
|
<v-select
|
|
156
157
|
:value.sync="areamodel.f_meter_brand" :value-single="true"
|
|
157
158
|
:options='meterbrands' placeholder='气表品牌'
|
|
158
159
|
close-on-select >
|
|
159
160
|
</v-select>
|
|
160
161
|
</div>
|
|
161
|
-
<div class="col-sm-6 form-group"
|
|
162
|
+
<div class="col-sm-6 form-group"
|
|
163
|
+
>
|
|
162
164
|
<label class="font_normal_body">气表型号</label>
|
|
163
|
-
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_meter_style"
|
|
165
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_meter_style"
|
|
166
|
+
>
|
|
164
167
|
<v-select
|
|
165
168
|
:value.sync="areamodel.f_meter_style" :value-single="true"
|
|
166
169
|
:options='meterstyle' placeholder='气表型号'
|
|
167
170
|
close-on-select >
|
|
168
171
|
</v-select>
|
|
169
172
|
</div>
|
|
170
|
-
<div class="col-sm-6 form-group"
|
|
171
|
-
<label class="font_normal_body"
|
|
172
|
-
<input type="text" style="width:60%" class="input_search" v-show="false"
|
|
173
|
-
v-model="areamodel.f_meter_type">
|
|
174
|
-
<v-select :value.sync="areamodel.f_meter_type" :value-single="true"
|
|
175
|
-
:options='metertypes' placeholder='请选择'
|
|
176
|
-
close-on-select></v-select>
|
|
177
|
-
</div>
|
|
178
|
-
<div class="col-sm-6 form-group" v-if="isMachine">
|
|
179
|
-
<label class="font_normal_body">抄 表 册</label>
|
|
180
|
-
<input type="text" style="width:60%" class="input_search" v-show="false"
|
|
181
|
-
v-model="areamodel.f_meter_book">
|
|
182
|
-
<v-select
|
|
183
|
-
:value.sync="areamodel.f_meter_book" :value-single="true"
|
|
184
|
-
:options='meterbooks' placeholder='抄表册'
|
|
185
|
-
close-on-select >
|
|
186
|
-
</v-select>
|
|
187
|
-
</div>
|
|
188
|
-
<div class="col-sm-6 form-group" v-if="!isMachine" :class="[$v.f_meter_book.required ? 'has-error' : 'has-success']">
|
|
189
|
-
<label class="font_normal_body">抄 表 册</label>
|
|
190
|
-
<input type="text" style="width:60%" class="input_search" v-show="false"
|
|
191
|
-
v-model="areamodel.f_meter_book">
|
|
173
|
+
<div class="col-sm-6 form-group">
|
|
174
|
+
<label class="font_normal_body">安装位置</label>
|
|
175
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_position">
|
|
192
176
|
<v-select
|
|
193
|
-
:value.sync="areamodel.
|
|
194
|
-
:options='
|
|
177
|
+
:value.sync="areamodel.f_position" :value-single="true"
|
|
178
|
+
:options='positions' placeholder='安装位置'
|
|
195
179
|
close-on-select >
|
|
196
180
|
</v-select>
|
|
197
181
|
</div>
|
|
198
|
-
<div class="col-sm-6 form-group"
|
|
182
|
+
<div class="col-sm-6 form-group">
|
|
199
183
|
<label class="font_normal_body">抄 表 员</label>
|
|
200
|
-
<input type="text" style="width:60%" class="input_search"
|
|
201
|
-
v-show="false" v-model="areamodel.f_inputtor">
|
|
184
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_inputtor">
|
|
202
185
|
<v-select
|
|
203
186
|
:value.sync="areamodel.f_inputtor" :value-single="true"
|
|
204
187
|
:options='inputtores' placeholder='抄表员'
|
|
205
188
|
close-on-select >
|
|
206
189
|
</v-select>
|
|
207
190
|
</div>
|
|
208
|
-
<div class="col-sm-6 form-group"
|
|
191
|
+
<div class="col-sm-6 form-group">
|
|
209
192
|
<label class="font_normal_body">调 压 箱</label>
|
|
210
|
-
<input type="text" style="width:60%" class="input_search" v-show="false"
|
|
211
|
-
v-model="areamodel.f_adjustable_id">
|
|
193
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_adjustable_id">
|
|
212
194
|
<v-select
|
|
213
195
|
:value.sync="areamodel.f_adjustable_id" :value-single="true"
|
|
214
196
|
:options='adjustables' placeholder='调压箱'
|
|
215
197
|
close-on-select >
|
|
216
198
|
</v-select>
|
|
217
199
|
</div>
|
|
218
|
-
<div class="col-sm-6 form-group" :class="[$v.f_house_type.required ? 'has-error' : 'has-success']">
|
|
219
|
-
<label class="font_normal_body">房屋类型</label>
|
|
220
|
-
<input type="text" style="width:60%" class="input_search" v-show="false"
|
|
221
|
-
v-model="areamodel.f_house_type" >
|
|
222
|
-
<v-select
|
|
223
|
-
:value.sync="areamodel.f_house_type" :value-single="true"
|
|
224
|
-
:options='housetypeoptions' placeholder='房屋类型'
|
|
225
|
-
close-on-select >
|
|
226
|
-
</v-select>
|
|
227
|
-
</div>
|
|
228
|
-
<div class="col-sm-6 form-group" :class="[$v.f_position.required ? 'has-error' : 'has-success']">
|
|
229
|
-
<label class="font_normal_body">安装位置</label>
|
|
230
|
-
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_position" >
|
|
231
|
-
<v-select
|
|
232
|
-
:value.sync="areamodel.f_position" :value-single="true"
|
|
233
|
-
:options='positions' placeholder='安装位置'
|
|
234
|
-
close-on-select >
|
|
235
|
-
</v-select>
|
|
236
|
-
</div>
|
|
237
200
|
</div>
|
|
238
201
|
<div v-if="f_special" class="col-sm-6 form-group">
|
|
239
202
|
<br/>
|
|
@@ -251,22 +214,15 @@
|
|
|
251
214
|
<script>
|
|
252
215
|
import {HttpResetClass} from 'vue-client'
|
|
253
216
|
|
|
217
|
+
|
|
254
218
|
let initGen = async function (self) {
|
|
255
|
-
await self.$getConfig(self, 'UserArea')
|
|
256
|
-
console.log('原地址配置',self.config)
|
|
257
|
-
console.log('获取地址配置',self.config)
|
|
258
|
-
Object.assign(self.model, self.config)
|
|
259
219
|
await self.initdata()
|
|
260
|
-
await self.$LoadParams.loadMeterBook(self.f_filialeids)
|
|
261
|
-
await self.loadMeterBooks();
|
|
262
220
|
}
|
|
221
|
+
|
|
263
222
|
export default {
|
|
264
223
|
title: '小区添加',
|
|
265
224
|
data () {
|
|
266
225
|
return {
|
|
267
|
-
config:{
|
|
268
|
-
hasnumber:false,
|
|
269
|
-
},
|
|
270
226
|
//初始化省市区数据
|
|
271
227
|
pcdslist:[],
|
|
272
228
|
//初始化街道数据
|
|
@@ -289,16 +245,14 @@
|
|
|
289
245
|
f_price_type:'',
|
|
290
246
|
f_meter_style:'',
|
|
291
247
|
f_position:'',
|
|
292
|
-
f_comments:''
|
|
293
|
-
f_meter_type: ''
|
|
248
|
+
f_comments:''
|
|
294
249
|
},
|
|
250
|
+
|
|
295
251
|
meterbrands: [],
|
|
296
252
|
adjustables: [],
|
|
297
253
|
sliceArea: [],
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
housetypeoptions:[{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
|
|
301
|
-
isMachine: true
|
|
254
|
+
|
|
255
|
+
gasproperties: []
|
|
302
256
|
}
|
|
303
257
|
},
|
|
304
258
|
props: ['f_filialeids','f_special', 'areatype','row','operation'],
|
|
@@ -306,22 +260,17 @@
|
|
|
306
260
|
initGen(this)
|
|
307
261
|
},
|
|
308
262
|
methods: {
|
|
309
|
-
|
|
310
|
-
this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
|
|
311
|
-
},
|
|
263
|
+
|
|
312
264
|
//初始化数据
|
|
313
265
|
async initdata(){
|
|
314
266
|
// 初始化参数
|
|
315
267
|
await this.initParams()
|
|
316
|
-
|
|
317
268
|
// 初始化片区
|
|
318
269
|
await this.initSlice(this.f_filialeids)
|
|
319
270
|
await this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
|
|
271
|
+
// await this.initstreets(` f_filialeid = '${this.f_filialeids}'`)
|
|
320
272
|
},
|
|
321
|
-
|
|
322
|
-
this.areamodel.f_meter_book = val.f_meter_book;
|
|
323
|
-
this.areamodel.f_adjustable_id = val.f_adjustable_id;
|
|
324
|
-
},
|
|
273
|
+
|
|
325
274
|
async initParams() {
|
|
326
275
|
await this.$LoadParams.loadParam(this.f_filialeids)
|
|
327
276
|
this.initBrands()
|
|
@@ -349,18 +298,22 @@
|
|
|
349
298
|
|
|
350
299
|
async initSlice (val) {
|
|
351
300
|
if (val) {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
301
|
+
this.sliceArea = [];
|
|
302
|
+
let getAllArea = await this.$resetpost('/rs/sql/address_singleTableOrderBy', {
|
|
303
|
+
data:{
|
|
304
|
+
items: '*',
|
|
305
|
+
tablename: 't_zone',
|
|
306
|
+
orderitem: 'id',
|
|
307
|
+
condition: ` parentid = ${val}`
|
|
308
|
+
}
|
|
355
309
|
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
|
356
310
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
})
|
|
311
|
+
if(getAllArea.data){
|
|
312
|
+
getAllArea.data.forEach((res) => {
|
|
313
|
+
this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
|
|
314
|
+
})
|
|
315
|
+
}
|
|
316
|
+
|
|
364
317
|
}
|
|
365
318
|
},
|
|
366
319
|
|
|
@@ -411,28 +364,7 @@
|
|
|
411
364
|
})
|
|
412
365
|
this.streetslist=redata
|
|
413
366
|
},
|
|
414
|
-
|
|
415
|
-
console.log(this.areamodel.f_area_id.length)
|
|
416
|
-
if (this.areamodel.f_area_id.length != 2){
|
|
417
|
-
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
418
|
-
this.areamodel.f_area_id = ''
|
|
419
|
-
}else{
|
|
420
|
-
let res =await this.$resetpost('rs/sql/address_singleTableOrderBy', {
|
|
421
|
-
data: {
|
|
422
|
-
items: '*',
|
|
423
|
-
tablename: 't_area',
|
|
424
|
-
orderitem: 'id',
|
|
425
|
-
condition: `f_area_id = '${this.areamodel.f_area_id}' and f_orgid = '${this.$login.f.orgid}'`
|
|
426
|
-
}
|
|
427
|
-
}, {resolveMsg: null, rejectMsg: null})
|
|
428
|
-
if (res.data.length>0){
|
|
429
|
-
if (res.data[0].id != this.areamodel.id) {
|
|
430
|
-
this.$showAlert('当前编号已存在', 'warning', 2000)
|
|
431
|
-
this.areamodel.f_area_id = ''
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
},
|
|
367
|
+
|
|
436
368
|
async areaidChange () {
|
|
437
369
|
// 验证小区编号是否已存在
|
|
438
370
|
|
|
@@ -491,11 +423,13 @@
|
|
|
491
423
|
//街道变化
|
|
492
424
|
streetChange(val){
|
|
493
425
|
if(val&&this.operation=='add'){
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
426
|
+
// if(this.areamodel.f_pcd_id.length==0){
|
|
427
|
+
if (this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
|
|
428
|
+
console.log("aa",this.findbyid(this.streetslist,this.areamodel.f_street_id))
|
|
429
|
+
console.log("bbb",this.findbyid(this.streetslist,this.areamodel.f_street_id).f_pcd_id)
|
|
430
|
+
this.areamodel.f_pcd_id=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_pcd_id
|
|
431
|
+
}
|
|
432
|
+
// }
|
|
499
433
|
}
|
|
500
434
|
this.$resetValidation()
|
|
501
435
|
},
|
|
@@ -546,8 +480,7 @@
|
|
|
546
480
|
f_price_type:'',
|
|
547
481
|
f_meter_style:'',
|
|
548
482
|
f_position:'',
|
|
549
|
-
f_comments:''
|
|
550
|
-
f_meter_type: ''
|
|
483
|
+
f_comments:''
|
|
551
484
|
}
|
|
552
485
|
},
|
|
553
486
|
cancel(){
|
|
@@ -556,26 +489,26 @@
|
|
|
556
489
|
},
|
|
557
490
|
},
|
|
558
491
|
watch: {
|
|
559
|
-
'areamodel.f_meter_type' (val) {
|
|
560
|
-
if (val === '机表')
|
|
561
|
-
this.isMachine = false
|
|
562
|
-
},
|
|
563
492
|
'areatype'(){
|
|
564
493
|
this.initdata()
|
|
565
494
|
},
|
|
566
495
|
'areamodel.f_pcd_id'(){
|
|
567
|
-
if(this.areamodel.
|
|
568
|
-
if
|
|
569
|
-
|
|
496
|
+
// if (!this.areamodel.f_area_address) {
|
|
497
|
+
if(this.areamodel.f_pcd_id&&this.areamodel.f_street_id){
|
|
498
|
+
if (this.findbyid(this.pcdslist,this.areamodel.f_pcd_id) && this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
|
|
499
|
+
this.areamodel.f_area_address = this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd + this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
|
|
500
|
+
}
|
|
570
501
|
}
|
|
571
|
-
}
|
|
502
|
+
// }
|
|
572
503
|
},
|
|
573
504
|
'areamodel.f_street_id'(){
|
|
574
|
-
if (this.areamodel.
|
|
575
|
-
if (this.
|
|
576
|
-
|
|
505
|
+
// if (!this.areamodel.f_area_address) {
|
|
506
|
+
if (this.areamodel.f_pcd_id && this.areamodel.f_street_id) {
|
|
507
|
+
if (this.findbyid(this.pcdslist, this.areamodel.f_pcd_id) && this.findbyid(this.streetslist, this.areamodel.f_street_id)) {
|
|
508
|
+
this.areamodel.f_area_address = this.findbyid(this.pcdslist, this.areamodel.f_pcd_id).f_pcd + this.findbyid(this.streetslist, this.areamodel.f_street_id).f_street
|
|
509
|
+
}
|
|
577
510
|
}
|
|
578
|
-
}
|
|
511
|
+
// }
|
|
579
512
|
},
|
|
580
513
|
'f_filialeids'(){
|
|
581
514
|
if (this.areamodel.f_filialeid) {
|
|
@@ -588,9 +521,6 @@
|
|
|
588
521
|
}
|
|
589
522
|
},
|
|
590
523
|
computed: {
|
|
591
|
-
metertypes() {
|
|
592
|
-
return this.$appdata.getParam('气表类型')
|
|
593
|
-
},
|
|
594
524
|
usertypes () {
|
|
595
525
|
return this.$appdata.getParam('用户类型')
|
|
596
526
|
},
|
|
@@ -646,8 +576,8 @@
|
|
|
646
576
|
}
|
|
647
577
|
}
|
|
648
578
|
return rs
|
|
649
|
-
}
|
|
650
|
-
}
|
|
579
|
+
},
|
|
580
|
+
},
|
|
651
581
|
}
|
|
652
582
|
</script>
|
|
653
583
|
<style>
|
|
@@ -29,14 +29,6 @@
|
|
|
29
29
|
class="input_search" style="width:60%" placeholder="区/县"
|
|
30
30
|
v-validate:f_district='{required: true }'>
|
|
31
31
|
</div>
|
|
32
|
-
<div class="col-sm-6 form-group " v-if="config.hasnumber"
|
|
33
|
-
:class="[$v.f_pcd_number.required ? 'has-error' : 'has-success']">
|
|
34
|
-
<label class="font_normal_body">区域编码</label>
|
|
35
|
-
<input type="number" 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
32
|
<div class="col-sm-12 form-group">
|
|
41
33
|
<label class="font_normal_body " style="">备  注</label>
|
|
42
34
|
<textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="pcdmodel.f_comments"></textarea>
|
|
@@ -62,14 +54,6 @@
|
|
|
62
54
|
class="input_search" style="width:60%" placeholder="街道名称"
|
|
63
55
|
v-validate:f_street='{required: true }'>
|
|
64
56
|
</div>
|
|
65
|
-
<div class="col-sm-6 form-group " v-if="config.hasnumber"
|
|
66
|
-
:class="[$v.f_street_number.required ? 'has-error' : 'has-success']">
|
|
67
|
-
<label class="font_normal_body">街道编号</label>
|
|
68
|
-
<input type="text" v-model="streetmodel.f_street_number"
|
|
69
|
-
@change="streetyanzheng"
|
|
70
|
-
class="input_search" style="width:60%" placeholder="街道编号"
|
|
71
|
-
v-validate:f_street_number='{required: true }'>
|
|
72
|
-
</div>
|
|
73
57
|
<div class="col-sm-12 form-group">
|
|
74
58
|
<label class="font_normal_body " style="">备  注</label>
|
|
75
59
|
<textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="streetmodel.f_comments"></textarea>
|
|
@@ -81,9 +65,6 @@
|
|
|
81
65
|
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
|
|
82
66
|
<button class="button_clear button_spacing" @click="cancel()">取消</button>
|
|
83
67
|
</div>
|
|
84
|
-
<div v-if="areatype=='省市区'" class="row" style="margin-top:40px;height: 580px;">
|
|
85
|
-
<city-list v-ref:addpcd @select-changed="selected" :f_filialeids.sync="f_filialeids"></city-list>
|
|
86
|
-
</div>
|
|
87
68
|
</div>
|
|
88
69
|
</div>
|
|
89
70
|
</validator>
|
|
@@ -92,30 +73,18 @@
|
|
|
92
73
|
|
|
93
74
|
<script>
|
|
94
75
|
import {HttpResetClass} from 'vue-client'
|
|
95
|
-
|
|
96
|
-
let getAreaConfig = async function (self) {
|
|
97
|
-
// 获取气价里面的配置
|
|
98
|
-
await self.$getConfig(self, 'UserPcd')
|
|
99
|
-
console.log('原地址配置',self.config)
|
|
100
|
-
console.log('获取地址配置',self.config)
|
|
101
|
-
Object.assign(self.model, self.config)
|
|
102
|
-
}
|
|
103
76
|
export default {
|
|
104
77
|
title: '区域地址添加',
|
|
105
78
|
data () {
|
|
106
79
|
return {
|
|
107
80
|
//初始化省市区数据
|
|
108
|
-
config:{
|
|
109
|
-
hasnumber: false
|
|
110
|
-
},
|
|
111
81
|
pcdslist:[],
|
|
112
82
|
//省市区
|
|
113
83
|
pcdmodel: {
|
|
114
84
|
f_province:'',
|
|
115
85
|
f_city:'',
|
|
116
86
|
f_district:'',
|
|
117
|
-
f_comments:''
|
|
118
|
-
f_pcd_number: ''
|
|
87
|
+
f_comments:''
|
|
119
88
|
},
|
|
120
89
|
//街道
|
|
121
90
|
streetmodel: {
|
|
@@ -125,61 +94,15 @@
|
|
|
125
94
|
f_slice_area: null,
|
|
126
95
|
f_adjustable_id: null,
|
|
127
96
|
f_street:'',
|
|
128
|
-
f_comments:''
|
|
129
|
-
f_street_number:''
|
|
97
|
+
f_comments:''
|
|
130
98
|
}
|
|
131
99
|
}
|
|
132
100
|
},
|
|
133
101
|
props: ['f_filialeids', 'areatype','row','operation'],
|
|
134
102
|
ready(){
|
|
135
103
|
this.initdata()
|
|
136
|
-
getAreaConfig(this)
|
|
137
104
|
},
|
|
138
105
|
methods: {
|
|
139
|
-
async streetyanzheng(){
|
|
140
|
-
console.log(this.streetmodel.f_street_number.length)
|
|
141
|
-
if (this.streetmodel.f_street_number.length != 2){
|
|
142
|
-
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
143
|
-
this.streetmodel.f_street_number = ''
|
|
144
|
-
}else{
|
|
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 != 3){
|
|
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
106
|
//初始化省市区,添加街道
|
|
184
107
|
initpcds(pconditon){
|
|
185
108
|
console.log("省市区准备")
|