address-client 3.0.34-aodeToV4 → 3.0.35-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.
Files changed (35) hide show
  1. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  2. package/AddressClient.iml +12 -12
  3. package/CHANGELOG.md +12 -12
  4. package/build/dev-server.js +128 -128
  5. package/build/webpack.base.conf.js +81 -81
  6. package/examples/showAdd/App.vue +40 -40
  7. package/index.html +40 -40
  8. package/package.json +105 -105
  9. package/src/address.js +58 -58
  10. package/src/components/AddAreaMsg.vue +599 -599
  11. package/src/components/AddStreetOrPcd.vue +231 -231
  12. package/src/components/AddressAddAddress.vue +479 -479
  13. package/src/components/AddressFiles.vue +156 -156
  14. package/src/components/AddressList.vue +323 -323
  15. package/src/components/AddressManage.vue +117 -117
  16. package/src/components/AddressTree.vue +501 -501
  17. package/src/components/AreaFiles.vue +73 -73
  18. package/src/components/AreaList.vue +357 -357
  19. package/src/components/AreaManage.vue +101 -101
  20. package/src/components/AreaTree.vue +508 -508
  21. package/src/components/Basch.vue +72 -72
  22. package/src/components/BatchOrders.vue +328 -328
  23. package/src/components/CityManage.vue +76 -76
  24. package/src/components/NewAddressInfo.vue +432 -432
  25. package/src/components/OneCodeList.vue +251 -251
  26. package/src/components/StreetList.vue +184 -184
  27. package/src/components/UserAddress.vue +781 -780
  28. package/src/components/UserAddressChange.vue +58 -58
  29. package/src/components/addressts/AddressListts.vue +307 -307
  30. package/src/components/addressts/AddressManagets.vue +117 -117
  31. package/src/components/addressts/UserAddressChangets.vue +58 -58
  32. package/src/components/addressts/UserAddressts.vue +740 -739
  33. package/src/components/areauser/AreaUser.vue +233 -233
  34. package/src/components/selectAddress/BatchList.vue +326 -326
  35. package/src/main.js +23 -23
@@ -1,599 +1,599 @@
1
- <template>
2
- <div class="span">
3
- <validator name='v'>
4
- <div class="form-horizontal select-overspread container-fluid" style="overflow-y: auto">
5
- <div class="row auto">
6
- <div class="col-sm-12 bg-info text-center" style="padding: 8px;font-size: 18px;font-weight: bold">
7
- <span v-if="operation=='add'&&!f_specia">添加{{areatype}}</span>
8
- <span v-if="operation=='modify'&&!f_special">修改【{{areamodel.f_residential_area}}】小区</span>
9
- <span v-if="operation=='add'&&f_specia">添加{{areatype}}</span>
10
- <span v-if="operation=='modify'&&f_special">修改【{{areamodel.f_residential_area}}】单位</span>
11
- </div>
12
- <!--基本小区(单位)信息-->
13
- <div class="col-sm-6 form-group">
14
- <label class="font_normal_body">小区编号</label>
15
- <input type="text" class="input_search" style="width:60%" v-model="areamodel.f_area_id"
16
- @blur="areaidChange" placeholder="小区编号">
17
- </div>
18
-
19
- <div class="col-sm-6 form-group"
20
- :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
21
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
22
- <input type="text" class="input_search" class="input_search" style="width:60%" v-show="false" v-model="areamodel.f_pcd_id"
23
- v-validate:f_pcd_id='{required: true }'>
24
- <v-select
25
- :value.sync="areamodel.f_pcd_id" :value-single="true"
26
- :options='pcdslist' placeholder='请选择'
27
- close-on-select search="true" @change="pcdChange">
28
- </v-select>
29
- </div>
30
- <div class="col-sm-6 form-group"
31
- :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
32
- <label class="font_normal_body">街道名称</label>
33
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_street_id"
34
- v-validate:f_street_id='{required: true }'>
35
- <v-select
36
- :value.sync="areamodel.f_street_id" :value-single="true"
37
- :options='streetslist' placeholder='请选择'
38
- close-on-select search="true" @change="streetChange">
39
- </v-select>
40
- </div>
41
- <div class="col-sm-6 form-group" :class="[$v.slice.required ? 'has-error' : 'has-success']">
42
- <label class="font_normal_body">片&emsp;&emsp;区</label>
43
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
44
- v-validate:slice='{required: true }'>
45
- <v-select :value.sync="areamodel.slice_area" v-model="areamodel.slice_area"
46
- :options='sliceArea' placeholder='片区/管理站' filer-key="name"
47
- close-on-select v-ref:slice>
48
- </v-select>
49
- </div>
50
- <!--小区(特殊)信息-->
51
- <div v-if="!f_special"
52
- class="col-sm-6 form-group"
53
- :class="[$v.f_residential_area.required ? 'has-error' : 'has-success']">
54
- <label class="font_normal_body">小区名称</label>
55
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_residential_area"
56
- class="form-control" placeholder="小区名称"
57
- v-validate:f_residential_area='{required: true }'>
58
- </div>
59
- <div v-if="!f_special"
60
- class="col-sm-12 form-group">
61
- <label class="font_normal_body">小区地址</label>
62
- <input type="text" style="width:80%" class="input_search" v-model="areamodel.f_area_address"
63
- class="form-control" placeholder="小区地址">
64
- </div>
65
- <!--单位(特殊)信息-->
66
- <div v-if="f_special"
67
- class="col-sm-6 form-group"
68
- :class="[$v.f_residential_area.required ? 'has-error' : 'has-success']">
69
- <label class="font_normal_body">单位名称</label>
70
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_residential_area"
71
- class="form-control" placeholder="单位名称"
72
- v-validate:f_residential_area='{required: true }'>
73
- </div>
74
- <div v-if="f_special"
75
- class="col-sm-12 form-group">
76
- <label class="font_normal_body">单位地址</label>
77
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_area_address"
78
- class="form-control" placeholder="单位地址">
79
- </div>
80
- <div v-if="f_special"
81
- class="col-sm-6 form-group"
82
- :class="[$v.f_linkname.required ? 'has-error' : 'has-success']">
83
- <label class="font_normal_body">联&ensp;系&ensp;人</label>
84
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_linkname"
85
- class="form-control" placeholder="联系人"
86
- v-validate:f_linkname='{required: true }'>
87
- </div>
88
- <div v-if="f_special"
89
- class="col-sm-6 form-group"
90
- :class="[$v.f_linkphone.required ? 'has-error' : 'has-success']">
91
- <label class="font_normal_body">联系电话</label>
92
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_linkphone"
93
- class="form-control" placeholder="联系电话"
94
- v-validate:f_linkphone='{required: true }'>
95
- </div>
96
- <div class="col-sm-12 form-group">
97
- <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
98
- <textarea class="input_textarea" rows="3" style="margin-top:20px;width:80%;height: auto;" v-model="areamodel.f_comments"></textarea>
99
- </div>
100
- <div class="col-sm-12 form-group">
101
- <br/>
102
- </div>
103
- <!--表具信息-->
104
- <div v-if="!f_special" class="col-sm-12 bg-info text-center" style="padding: 8px;font-size: 18px;font-weight: bold">
105
- <span >默认表具信息</span>
106
- </div>
107
- <div v-if="!f_special" class="row">
108
- <div class="col-sm-6 form-group">
109
- <label class="font_normal_body">用户类型</label>
110
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_user_type"
111
- >
112
- <v-select
113
- :value.sync="areamodel.f_user_type" :value-single="true"
114
- :options='usertypes' placeholder='用户类型' @change="userTypeChange"
115
- close-on-select >
116
- </v-select>
117
- </div>
118
- <div class="col-sm-6 form-group"
119
- >
120
- <label class="font_normal_body">用气性质</label>
121
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_gasproperties"
122
- >
123
- <v-select
124
- :value.sync="areamodel.f_gasproperties" :value-single="true"
125
- :options='gasproperties' placeholder='用气性质'
126
- close-on-select >
127
- </v-select>
128
- </div>
129
- <div class="col-sm-6 form-group"
130
- >
131
- <label class="font_normal_body">气价类型</label>
132
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_type"
133
- >
134
- <v-select
135
- :value.sync="areamodel.f_price_type" :value-single="true"
136
- :options='f_price_types' placeholder='气价类型'
137
- close-on-select >
138
- </v-select>
139
- </div>
140
- <div class="col-sm-6 form-group"
141
- >
142
- <label class="font_normal_body">气价名称</label>
143
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_name"
144
- >
145
- <v-select
146
- :value.sync="areamodel.f_price_name" :value-single="true"
147
- :options='pricenames' placeholder='气价名称'
148
- close-on-select >
149
- </v-select>
150
- </div>
151
- <div class="col-sm-6 form-group"
152
- >
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"
155
- >
156
- <v-select
157
- :value.sync="areamodel.f_meter_brand" :value-single="true"
158
- :options='meterbrands' placeholder='气表品牌'
159
- close-on-select >
160
- </v-select>
161
- </div>
162
- <div class="col-sm-6 form-group"
163
- >
164
- <label class="font_normal_body">气表型号</label>
165
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_meter_style"
166
- >
167
- <v-select
168
- :value.sync="areamodel.f_meter_style" :value-single="true"
169
- :options='meterstyle' placeholder='气表型号'
170
- close-on-select >
171
- </v-select>
172
- </div>
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">
176
- <v-select
177
- :value.sync="areamodel.f_position" :value-single="true"
178
- :options='positions' placeholder='安装位置'
179
- close-on-select >
180
- </v-select>
181
- </div>
182
- <div class="col-sm-6 form-group">
183
- <label class="font_normal_body">抄&ensp;表&ensp;员</label>
184
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_inputtor">
185
- <v-select
186
- :value.sync="areamodel.f_inputtor" :value-single="true"
187
- :options='inputtores' placeholder='抄表员'
188
- close-on-select >
189
- </v-select>
190
- </div>
191
- <div class="col-sm-6 form-group">
192
- <label class="font_normal_body">调&ensp;压&ensp;箱</label>
193
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_adjustable_id">
194
- <v-select
195
- :value.sync="areamodel.f_adjustable_id" :value-single="true"
196
- :options='adjustables' placeholder='调压箱'
197
- close-on-select >
198
- </v-select>
199
- </div>
200
- </div>
201
- <div v-if="f_special" class="col-sm-6 form-group">
202
- <br/>
203
- </div>
204
- </div>
205
- <div class="row auto" style="text-align:right;">
206
- <button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
207
- <button class="button_clear button_spacing" @click="cancel()">取消</button>
208
- </div>
209
- </div>
210
- </validator>
211
- </div>
212
- </template>
213
-
214
- <script>
215
- import {HttpResetClass} from 'vue-client'
216
-
217
-
218
- let initGen = async function (self) {
219
- await self.initdata()
220
- }
221
-
222
- export default {
223
- title: '小区添加',
224
- data () {
225
- return {
226
- //初始化省市区数据
227
- pcdslist:[],
228
- //初始化街道数据
229
- streetslist:[],
230
- //小区
231
- areamodel: {
232
- f_area_id: '',
233
- f_pcd_id:'',
234
- f_linkname:'',
235
- f_linkphone:'',
236
- f_street_id:'',
237
- f_slice_area:'',
238
- f_adjustable_id:'',
239
- f_residential_area:'',
240
- f_user_type:'',
241
- f_gasproperties:'',
242
- f_meter_brand:'',
243
- f_price_name:'',
244
- f_area_address:'',
245
- f_price_type:'',
246
- f_meter_style:'',
247
- f_position:'',
248
- f_comments:''
249
- },
250
-
251
- meterbrands: [],
252
- adjustables: [],
253
- sliceArea: [],
254
-
255
- gasproperties: []
256
- }
257
- },
258
- props: ['f_filialeids','f_special', 'areatype','row','operation'],
259
- ready(){
260
- initGen(this)
261
- },
262
- methods: {
263
-
264
- //初始化数据
265
- async initdata(){
266
- // 初始化参数
267
- await this.initParams()
268
- // 初始化片区
269
- await this.initSlice(this.f_filialeids)
270
- await this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
271
- // await this.initstreets(` f_filialeid = '${this.f_filialeids}'`)
272
- },
273
-
274
- async initParams() {
275
- await this.$LoadParams.loadParam(this.f_filialeids)
276
- this.initBrands()
277
- this.initAdjustables()
278
- },
279
-
280
- initBrands () {
281
- let ret = this.$GetSaleParam.getGasbrand()
282
- let rs = new Array()
283
- ret.forEach((item, index) =>{
284
- rs.push({label: item.label, value: item.value.f_meter_brand})
285
- })
286
- this.meterbrands = rs
287
- },
288
-
289
- initAdjustables () {
290
- let filter = this.$login.f.orgid
291
- let ret = this.$GetSaleParam.getAdjustable(filter)
292
- let arr = new Array()
293
- ret.forEach((item, index) => {
294
- arr.push({label: `[${item.value.f_adjustable_id}]-${item.label}`, value: item.value.id})
295
- })
296
- this.adjustables = arr
297
- },
298
-
299
- async initSlice (val) {
300
- if (val) {
301
- this.sliceArea = [];
302
- let getAllArea = await this.$resetpost('/api/af-revenue/sql/address_singleTableOrderBy', {
303
- data:{
304
- items: '*',
305
- tablename: 't_zone',
306
- orderitem: 'id',
307
- condition: ` parentid = ${val}`
308
- }
309
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
310
-
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
-
317
- }
318
- },
319
-
320
- //初始化省市区,添加街道
321
- async initpcds(pconditon){
322
- this.pcdslist = []
323
- let HttpReset = new HttpResetClass()
324
- let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
325
- data: {
326
- items: '*',
327
- tablename: 't_pcd',
328
- orderitem: 'id',
329
- condition: pconditon
330
- }
331
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
332
- let redata = []
333
- req.data.forEach((row, n) => {
334
- redata[n] = {
335
- label: row.f_pcd,
336
- value: row.id,
337
- data:row,
338
- id:row.id
339
- }
340
- })
341
- this.pcdslist=redata
342
-
343
- },
344
- //初始化街道 添加小区
345
- async initstreets(pconditon){
346
- this.streetslist = []
347
- let HttpReset = new HttpResetClass()
348
- let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
349
- data: {
350
- items: '*',
351
- tablename: 't_street',
352
- orderitem: 'id',
353
- condition: pconditon
354
- }
355
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
356
- let redata = []
357
- req.data.forEach((row, n) => {
358
- redata[n] = {
359
- label: row.f_street,
360
- value: row.id,
361
- data:row,
362
- id:row.id
363
- }
364
- })
365
- this.streetslist=redata
366
- },
367
-
368
- async areaidChange () {
369
- // 验证小区编号是否已存在
370
-
371
- let param = {
372
- id: this.areamodel.id,
373
- f_area_id: this.areamodel.f_area_id,
374
- f_filialeid: this.f_filialeids
375
- }
376
-
377
- let res = await this.$resetpost('api/af-revenue/logic/address_validateAreaID', param, {resolveMsg: null,rejectMsg: '小区编号验证失败!!'})
378
- console.log('验证小区是否存在', res)
379
- if (res.data) {
380
- this.$showAlert('这个小区编号已存在!!!请核实', 'warning', 3000)
381
- this.areamodel.f_area_id = ''
382
- }
383
-
384
- },
385
-
386
-
387
- //根据名字找数据
388
- findbyid(list,name){
389
- var result
390
- list.forEach((row, n) => {
391
- if(name==row.id){
392
- result= row.data
393
- }
394
- })
395
- return result
396
- },
397
- userTypeChange () {
398
- this.gasproperties = []
399
- if (this.areamodel.f_user_type) {
400
- this.gasproperties = this.$appdata.getParam(this.areamodel.f_user_type)
401
- }
402
- },
403
-
404
- //省/市/区变化
405
- async pcdChange(val){
406
- if(val){
407
- //那就把街道数据重新组织一下
408
- await this.initstreets(` f_filialeid = '${this.f_filialeids}' and f_pcd_id ='${val}' `)
409
- if(this.areamodel.f_street_id){
410
- if (this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
411
- let pcd_id=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_pcd_id
412
- if(pcd_id!=val){
413
- this.areamodel.f_street_id=''
414
- }
415
- } else {
416
- this.areamodel.f_street_id=''
417
- }
418
-
419
- }
420
- }
421
- this.$resetValidation()
422
- },
423
- //街道变化
424
- streetChange(val){
425
- if(val&&this.operation=='add'){
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
- // }
433
- }
434
- this.$resetValidation()
435
- },
436
- //保存
437
- async confirm(){
438
- await this.savearea()
439
- this.cleardara()
440
- this.$dispatch('confirm')
441
- },
442
- //保存小区
443
- async savearea(){
444
- if(this.f_special){
445
- this.areamodel.f_special='1'
446
- }
447
- this.areamodel.f_filialeid = this.f_filialeids
448
- this.areamodel.f_operator = this.$login.f.name
449
- this.areamodel.f_operatorid = this.$login.f.id
450
- this.areamodel.f_orgid = this.$login.f.orgid
451
- this.areamodel.f_orgname = this.$login.f.orgs
452
- this.areamodel.f_depid = this.$login.f.depids
453
- this.areamodel.f_depname = this.$login.f.deps
454
- if (this.areamodel.slice_area) {
455
- if (this.areamodel.slice_area.length > 0) {
456
- this.areamodel.f_slice_area = this.areamodel.slice_area[0].name
457
- this.areamodel.f_area_code = this.areamodel.slice_area[0].code
458
- }
459
- }
460
- this.areamodel.f_pcd=this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd
461
- this.areamodel.f_street=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
462
-
463
- await this.$resetpost('api/af-revenue/logic/address_updatearea', this.areamodel)
464
- },
465
- cleardara(){
466
- this.areamodel= {
467
- f_area_id: '',
468
- f_pcd_id:'',
469
- f_street_id:'',
470
- f_slice_area:'',
471
- f_linkname:'',
472
- f_linkphone:'',
473
- f_adjustable_id:'',
474
- f_residential_area:'',
475
- f_user_type:'',
476
- f_gasproperties:'',
477
- f_area_address:'',
478
- f_meter_brand:'',
479
- f_price_name:'',
480
- f_price_type:'',
481
- f_meter_style:'',
482
- f_position:'',
483
- f_comments:''
484
- }
485
- },
486
- cancel(){
487
- this.cleardara()
488
- this.$dispatch('cancel')
489
- },
490
- },
491
- watch: {
492
- 'areatype'(){
493
- this.initdata()
494
- },
495
- 'areamodel.f_pcd_id'(){
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
- }
501
- }
502
- // }
503
- },
504
- 'areamodel.f_street_id'(){
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
- }
510
- }
511
- // }
512
- },
513
- 'f_filialeids'(){
514
- if (this.areamodel.f_filialeid) {
515
- if (this.areamodel.f_filialeid != this.f_filialeids) {
516
- this.$dispatch('cancel')
517
- }
518
- }
519
- this.cleardara()
520
- this.initdata()
521
- }
522
- },
523
- computed: {
524
- usertypes () {
525
- return this.$appdata.getParam('用户类型')
526
- },
527
- f_price_types () {
528
- return this.$appdata.getParam('气价类型')
529
- },
530
- meterstyle () {
531
- let ret = this.$GetSaleParam.getGasbrand()
532
- let rs = new Array()
533
- if(this.areamodel.f_meter_brand) {
534
- ret.forEach((item, index) => {
535
- if(this.areamodel.f_meter_brand == item.value.f_meter_brand) {
536
- item.value.gasmodel.forEach((item1, index) =>{
537
- rs.push({label: item1.label, value:item1.label})
538
- })
539
- }
540
- })
541
- }
542
- return rs
543
- },
544
- pricenames () {
545
- let rs = new Array()
546
- if (this.areamodel.f_user_type && this.areamodel.f_gasproperties && this.areamodel.f_price_type) {
547
- let params = {
548
- f_user_type: this.areamodel.f_user_type,
549
- f_gasproperties: this.areamodel.f_gasproperties,
550
- f_price_type: this.areamodel.f_price_type,
551
- filter: this.f_filialeids
552
- }
553
- let ret = this.$GetSaleParam.getPrice(params)
554
- ret.forEach((item, index) => {
555
- rs.push({label: item.label, value: item.value.f_price_name})
556
- })
557
- }
558
- if (rs.length == 0) {
559
- this.areamodel.f_price_name = ''
560
- }
561
- return rs
562
- },
563
- positions () {
564
- return this.$appdata.getParam('安装位置')
565
- },
566
- inputtores () {
567
- // 获取抄表员
568
- let rs = new Array()
569
- if (this.$login.f.f_gasman.length > 0) {
570
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
571
- let temp = {
572
- label: this.$login.f.f_gasman[i].name,
573
- value: this.$login.f.f_gasman[i].name
574
- }
575
- rs.push(temp)
576
- }
577
- }
578
- return rs
579
- },
580
- },
581
- }
582
- </script>
583
- <style>
584
- .box {
585
- width: 727px;
586
- height: 175px;
587
- border-radius: 2px;
588
- background-color: #fafafa;
589
- border: 1px solid #999999;
590
- margin-top: 13px;
591
- }
592
- .datapanel {
593
- color: #333;
594
- background-color: white;
595
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
596
- padding: 10px 30px 10px 30px;
597
- border-radius:15px;
598
- }
599
- </style>
1
+ <template>
2
+ <div class="span">
3
+ <validator name='v'>
4
+ <div class="form-horizontal select-overspread container-fluid" style="overflow-y: auto">
5
+ <div class="row auto">
6
+ <div class="col-sm-12 bg-info text-center" style="padding: 8px;font-size: 18px;font-weight: bold">
7
+ <span v-if="operation=='add'&&!f_specia">添加{{areatype}}</span>
8
+ <span v-if="operation=='modify'&&!f_special">修改【{{areamodel.f_residential_area}}】小区</span>
9
+ <span v-if="operation=='add'&&f_specia">添加{{areatype}}</span>
10
+ <span v-if="operation=='modify'&&f_special">修改【{{areamodel.f_residential_area}}】单位</span>
11
+ </div>
12
+ <!--基本小区(单位)信息-->
13
+ <div class="col-sm-6 form-group">
14
+ <label class="font_normal_body">小区编号</label>
15
+ <input type="text" class="input_search" style="width:60%" v-model="areamodel.f_area_id"
16
+ @blur="areaidChange" placeholder="小区编号">
17
+ </div>
18
+
19
+ <div class="col-sm-6 form-group"
20
+ :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
21
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
22
+ <input type="text" class="input_search" class="input_search" style="width:60%" v-show="false" v-model="areamodel.f_pcd_id"
23
+ v-validate:f_pcd_id='{required: true }'>
24
+ <v-select
25
+ :value.sync="areamodel.f_pcd_id" :value-single="true"
26
+ :options='pcdslist' placeholder='请选择'
27
+ close-on-select search="true" @change="pcdChange">
28
+ </v-select>
29
+ </div>
30
+ <div class="col-sm-6 form-group"
31
+ :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
32
+ <label class="font_normal_body">街道名称</label>
33
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_street_id"
34
+ v-validate:f_street_id='{required: true }'>
35
+ <v-select
36
+ :value.sync="areamodel.f_street_id" :value-single="true"
37
+ :options='streetslist' placeholder='请选择'
38
+ close-on-select search="true" @change="streetChange">
39
+ </v-select>
40
+ </div>
41
+ <div class="col-sm-6 form-group" :class="[$v.slice.required ? 'has-error' : 'has-success']">
42
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
43
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
44
+ v-validate:slice='{required: true }'>
45
+ <v-select :value.sync="areamodel.slice_area" v-model="areamodel.slice_area"
46
+ :options='sliceArea' placeholder='片区/管理站' filer-key="name"
47
+ close-on-select v-ref:slice>
48
+ </v-select>
49
+ </div>
50
+ <!--小区(特殊)信息-->
51
+ <div v-if="!f_special"
52
+ class="col-sm-6 form-group"
53
+ :class="[$v.f_residential_area.required ? 'has-error' : 'has-success']">
54
+ <label class="font_normal_body">小区名称</label>
55
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_residential_area"
56
+ class="form-control" placeholder="小区名称"
57
+ v-validate:f_residential_area='{required: true }'>
58
+ </div>
59
+ <div v-if="!f_special"
60
+ class="col-sm-12 form-group">
61
+ <label class="font_normal_body">小区地址</label>
62
+ <input type="text" style="width:80%" class="input_search" v-model="areamodel.f_area_address"
63
+ class="form-control" placeholder="小区地址">
64
+ </div>
65
+ <!--单位(特殊)信息-->
66
+ <div v-if="f_special"
67
+ class="col-sm-6 form-group"
68
+ :class="[$v.f_residential_area.required ? 'has-error' : 'has-success']">
69
+ <label class="font_normal_body">单位名称</label>
70
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_residential_area"
71
+ class="form-control" placeholder="单位名称"
72
+ v-validate:f_residential_area='{required: true }'>
73
+ </div>
74
+ <div v-if="f_special"
75
+ class="col-sm-12 form-group">
76
+ <label class="font_normal_body">单位地址</label>
77
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_area_address"
78
+ class="form-control" placeholder="单位地址">
79
+ </div>
80
+ <div v-if="f_special"
81
+ class="col-sm-6 form-group"
82
+ :class="[$v.f_linkname.required ? 'has-error' : 'has-success']">
83
+ <label class="font_normal_body">联&ensp;系&ensp;人</label>
84
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_linkname"
85
+ class="form-control" placeholder="联系人"
86
+ v-validate:f_linkname='{required: true }'>
87
+ </div>
88
+ <div v-if="f_special"
89
+ class="col-sm-6 form-group"
90
+ :class="[$v.f_linkphone.required ? 'has-error' : 'has-success']">
91
+ <label class="font_normal_body">联系电话</label>
92
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_linkphone"
93
+ class="form-control" placeholder="联系电话"
94
+ v-validate:f_linkphone='{required: true }'>
95
+ </div>
96
+ <div class="col-sm-12 form-group">
97
+ <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
98
+ <textarea class="input_textarea" rows="3" style="margin-top:20px;width:80%;height: auto;" v-model="areamodel.f_comments"></textarea>
99
+ </div>
100
+ <div class="col-sm-12 form-group">
101
+ <br/>
102
+ </div>
103
+ <!--表具信息-->
104
+ <div v-if="!f_special" class="col-sm-12 bg-info text-center" style="padding: 8px;font-size: 18px;font-weight: bold">
105
+ <span >默认表具信息</span>
106
+ </div>
107
+ <div v-if="!f_special" class="row">
108
+ <div class="col-sm-6 form-group">
109
+ <label class="font_normal_body">用户类型</label>
110
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_user_type"
111
+ >
112
+ <v-select
113
+ :value.sync="areamodel.f_user_type" :value-single="true"
114
+ :options='usertypes' placeholder='用户类型' @change="userTypeChange"
115
+ close-on-select >
116
+ </v-select>
117
+ </div>
118
+ <div class="col-sm-6 form-group"
119
+ >
120
+ <label class="font_normal_body">用气性质</label>
121
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_gasproperties"
122
+ >
123
+ <v-select
124
+ :value.sync="areamodel.f_gasproperties" :value-single="true"
125
+ :options='gasproperties' placeholder='用气性质'
126
+ close-on-select >
127
+ </v-select>
128
+ </div>
129
+ <div class="col-sm-6 form-group"
130
+ >
131
+ <label class="font_normal_body">气价类型</label>
132
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_type"
133
+ >
134
+ <v-select
135
+ :value.sync="areamodel.f_price_type" :value-single="true"
136
+ :options='f_price_types' placeholder='气价类型'
137
+ close-on-select >
138
+ </v-select>
139
+ </div>
140
+ <div class="col-sm-6 form-group"
141
+ >
142
+ <label class="font_normal_body">气价名称</label>
143
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_name"
144
+ >
145
+ <v-select
146
+ :value.sync="areamodel.f_price_name" :value-single="true"
147
+ :options='pricenames' placeholder='气价名称'
148
+ close-on-select >
149
+ </v-select>
150
+ </div>
151
+ <div class="col-sm-6 form-group"
152
+ >
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"
155
+ >
156
+ <v-select
157
+ :value.sync="areamodel.f_meter_brand" :value-single="true"
158
+ :options='meterbrands' placeholder='气表品牌'
159
+ close-on-select >
160
+ </v-select>
161
+ </div>
162
+ <div class="col-sm-6 form-group"
163
+ >
164
+ <label class="font_normal_body">气表型号</label>
165
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_meter_style"
166
+ >
167
+ <v-select
168
+ :value.sync="areamodel.f_meter_style" :value-single="true"
169
+ :options='meterstyle' placeholder='气表型号'
170
+ close-on-select >
171
+ </v-select>
172
+ </div>
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">
176
+ <v-select
177
+ :value.sync="areamodel.f_position" :value-single="true"
178
+ :options='positions' placeholder='安装位置'
179
+ close-on-select >
180
+ </v-select>
181
+ </div>
182
+ <div class="col-sm-6 form-group">
183
+ <label class="font_normal_body">抄&ensp;表&ensp;员</label>
184
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_inputtor">
185
+ <v-select
186
+ :value.sync="areamodel.f_inputtor" :value-single="true"
187
+ :options='inputtores' placeholder='抄表员'
188
+ close-on-select >
189
+ </v-select>
190
+ </div>
191
+ <div class="col-sm-6 form-group">
192
+ <label class="font_normal_body">调&ensp;压&ensp;箱</label>
193
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_adjustable_id">
194
+ <v-select
195
+ :value.sync="areamodel.f_adjustable_id" :value-single="true"
196
+ :options='adjustables' placeholder='调压箱'
197
+ close-on-select >
198
+ </v-select>
199
+ </div>
200
+ </div>
201
+ <div v-if="f_special" class="col-sm-6 form-group">
202
+ <br/>
203
+ </div>
204
+ </div>
205
+ <div class="row auto" style="text-align:right;">
206
+ <button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
207
+ <button class="button_clear button_spacing" @click="cancel()">取消</button>
208
+ </div>
209
+ </div>
210
+ </validator>
211
+ </div>
212
+ </template>
213
+
214
+ <script>
215
+ import {HttpResetClass} from 'vue-client'
216
+
217
+
218
+ let initGen = async function (self) {
219
+ await self.initdata()
220
+ }
221
+
222
+ export default {
223
+ title: '小区添加',
224
+ data () {
225
+ return {
226
+ //初始化省市区数据
227
+ pcdslist:[],
228
+ //初始化街道数据
229
+ streetslist:[],
230
+ //小区
231
+ areamodel: {
232
+ f_area_id: '',
233
+ f_pcd_id:'',
234
+ f_linkname:'',
235
+ f_linkphone:'',
236
+ f_street_id:'',
237
+ f_slice_area:'',
238
+ f_adjustable_id:'',
239
+ f_residential_area:'',
240
+ f_user_type:'',
241
+ f_gasproperties:'',
242
+ f_meter_brand:'',
243
+ f_price_name:'',
244
+ f_area_address:'',
245
+ f_price_type:'',
246
+ f_meter_style:'',
247
+ f_position:'',
248
+ f_comments:''
249
+ },
250
+
251
+ meterbrands: [],
252
+ adjustables: [],
253
+ sliceArea: [],
254
+
255
+ gasproperties: []
256
+ }
257
+ },
258
+ props: ['f_filialeids','f_special', 'areatype','row','operation'],
259
+ ready(){
260
+ initGen(this)
261
+ },
262
+ methods: {
263
+
264
+ //初始化数据
265
+ async initdata(){
266
+ // 初始化参数
267
+ await this.initParams()
268
+ // 初始化片区
269
+ await this.initSlice(this.f_filialeids)
270
+ await this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
271
+ // await this.initstreets(` f_filialeid = '${this.f_filialeids}'`)
272
+ },
273
+
274
+ async initParams() {
275
+ await this.$LoadParams.loadParam(this.f_filialeids)
276
+ this.initBrands()
277
+ this.initAdjustables()
278
+ },
279
+
280
+ initBrands () {
281
+ let ret = this.$GetSaleParam.getGasbrand()
282
+ let rs = new Array()
283
+ ret.forEach((item, index) =>{
284
+ rs.push({label: item.label, value: item.value.f_meter_brand})
285
+ })
286
+ this.meterbrands = rs
287
+ },
288
+
289
+ initAdjustables () {
290
+ let filter = this.$login.f.orgid
291
+ let ret = this.$GetSaleParam.getAdjustable(filter)
292
+ let arr = new Array()
293
+ ret.forEach((item, index) => {
294
+ arr.push({label: `[${item.value.f_adjustable_id}]-${item.label}`, value: item.value.id})
295
+ })
296
+ this.adjustables = arr
297
+ },
298
+
299
+ async initSlice (val) {
300
+ if (val) {
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
+ }
309
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
310
+
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
+
317
+ }
318
+ },
319
+
320
+ //初始化省市区,添加街道
321
+ async initpcds(pconditon){
322
+ this.pcdslist = []
323
+ let HttpReset = new HttpResetClass()
324
+ let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
325
+ data: {
326
+ items: '*',
327
+ tablename: 't_pcd',
328
+ orderitem: 'id',
329
+ condition: pconditon
330
+ }
331
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
332
+ let redata = []
333
+ req.data.forEach((row, n) => {
334
+ redata[n] = {
335
+ label: row.f_pcd,
336
+ value: row.id,
337
+ data:row,
338
+ id:row.id
339
+ }
340
+ })
341
+ this.pcdslist=redata
342
+
343
+ },
344
+ //初始化街道 添加小区
345
+ async initstreets(pconditon){
346
+ this.streetslist = []
347
+ let HttpReset = new HttpResetClass()
348
+ let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
349
+ data: {
350
+ items: '*',
351
+ tablename: 't_street',
352
+ orderitem: 'id',
353
+ condition: pconditon
354
+ }
355
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
356
+ let redata = []
357
+ req.data.forEach((row, n) => {
358
+ redata[n] = {
359
+ label: row.f_street,
360
+ value: row.id,
361
+ data:row,
362
+ id:row.id
363
+ }
364
+ })
365
+ this.streetslist=redata
366
+ },
367
+
368
+ async areaidChange () {
369
+ // 验证小区编号是否已存在
370
+
371
+ let param = {
372
+ id: this.areamodel.id,
373
+ f_area_id: this.areamodel.f_area_id,
374
+ f_filialeid: this.f_filialeids
375
+ }
376
+
377
+ let res = await this.$resetpost('rs/logic/address_validateAreaID', param, {resolveMsg: null,rejectMsg: '小区编号验证失败!!'})
378
+ console.log('验证小区是否存在', res)
379
+ if (res.data) {
380
+ this.$showAlert('这个小区编号已存在!!!请核实', 'warning', 3000)
381
+ this.areamodel.f_area_id = ''
382
+ }
383
+
384
+ },
385
+
386
+
387
+ //根据名字找数据
388
+ findbyid(list,name){
389
+ var result
390
+ list.forEach((row, n) => {
391
+ if(name==row.id){
392
+ result= row.data
393
+ }
394
+ })
395
+ return result
396
+ },
397
+ userTypeChange () {
398
+ this.gasproperties = []
399
+ if (this.areamodel.f_user_type) {
400
+ this.gasproperties = this.$appdata.getParam(this.areamodel.f_user_type)
401
+ }
402
+ },
403
+
404
+ //省/市/区变化
405
+ async pcdChange(val){
406
+ if(val){
407
+ //那就把街道数据重新组织一下
408
+ await this.initstreets(` f_filialeid = '${this.f_filialeids}' and f_pcd_id ='${val}' `)
409
+ if(this.areamodel.f_street_id){
410
+ if (this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
411
+ let pcd_id=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_pcd_id
412
+ if(pcd_id!=val){
413
+ this.areamodel.f_street_id=''
414
+ }
415
+ } else {
416
+ this.areamodel.f_street_id=''
417
+ }
418
+
419
+ }
420
+ }
421
+ this.$resetValidation()
422
+ },
423
+ //街道变化
424
+ streetChange(val){
425
+ if(val&&this.operation=='add'){
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
+ // }
433
+ }
434
+ this.$resetValidation()
435
+ },
436
+ //保存
437
+ async confirm(){
438
+ await this.savearea()
439
+ this.cleardara()
440
+ this.$dispatch('confirm')
441
+ },
442
+ //保存小区
443
+ async savearea(){
444
+ if(this.f_special){
445
+ this.areamodel.f_special='1'
446
+ }
447
+ this.areamodel.f_filialeid = this.f_filialeids
448
+ this.areamodel.f_operator = this.$login.f.name
449
+ this.areamodel.f_operatorid = this.$login.f.id
450
+ this.areamodel.f_orgid = this.$login.f.orgid
451
+ this.areamodel.f_orgname = this.$login.f.orgs
452
+ this.areamodel.f_depid = this.$login.f.depids
453
+ this.areamodel.f_depname = this.$login.f.deps
454
+ if (this.areamodel.slice_area) {
455
+ if (this.areamodel.slice_area.length > 0) {
456
+ this.areamodel.f_slice_area = this.areamodel.slice_area[0].name
457
+ this.areamodel.f_area_code = this.areamodel.slice_area[0].code
458
+ }
459
+ }
460
+ this.areamodel.f_pcd=this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd
461
+ this.areamodel.f_street=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
462
+
463
+ await this.$resetpost('rs/logic/address_updatearea', this.areamodel)
464
+ },
465
+ cleardara(){
466
+ this.areamodel= {
467
+ f_area_id: '',
468
+ f_pcd_id:'',
469
+ f_street_id:'',
470
+ f_slice_area:'',
471
+ f_linkname:'',
472
+ f_linkphone:'',
473
+ f_adjustable_id:'',
474
+ f_residential_area:'',
475
+ f_user_type:'',
476
+ f_gasproperties:'',
477
+ f_area_address:'',
478
+ f_meter_brand:'',
479
+ f_price_name:'',
480
+ f_price_type:'',
481
+ f_meter_style:'',
482
+ f_position:'',
483
+ f_comments:''
484
+ }
485
+ },
486
+ cancel(){
487
+ this.cleardara()
488
+ this.$dispatch('cancel')
489
+ },
490
+ },
491
+ watch: {
492
+ 'areatype'(){
493
+ this.initdata()
494
+ },
495
+ 'areamodel.f_pcd_id'(){
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
+ }
501
+ }
502
+ // }
503
+ },
504
+ 'areamodel.f_street_id'(){
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
+ }
510
+ }
511
+ // }
512
+ },
513
+ 'f_filialeids'(){
514
+ if (this.areamodel.f_filialeid) {
515
+ if (this.areamodel.f_filialeid != this.f_filialeids) {
516
+ this.$dispatch('cancel')
517
+ }
518
+ }
519
+ this.cleardara()
520
+ this.initdata()
521
+ }
522
+ },
523
+ computed: {
524
+ usertypes () {
525
+ return this.$appdata.getParam('用户类型')
526
+ },
527
+ f_price_types () {
528
+ return this.$appdata.getParam('气价类型')
529
+ },
530
+ meterstyle () {
531
+ let ret = this.$GetSaleParam.getGasbrand()
532
+ let rs = new Array()
533
+ if(this.areamodel.f_meter_brand) {
534
+ ret.forEach((item, index) => {
535
+ if(this.areamodel.f_meter_brand == item.value.f_meter_brand) {
536
+ item.value.gasmodel.forEach((item1, index) =>{
537
+ rs.push({label: item1.label, value:item1.label})
538
+ })
539
+ }
540
+ })
541
+ }
542
+ return rs
543
+ },
544
+ pricenames () {
545
+ let rs = new Array()
546
+ if (this.areamodel.f_user_type && this.areamodel.f_gasproperties && this.areamodel.f_price_type) {
547
+ let params = {
548
+ f_user_type: this.areamodel.f_user_type,
549
+ f_gasproperties: this.areamodel.f_gasproperties,
550
+ f_price_type: this.areamodel.f_price_type,
551
+ filter: this.f_filialeids
552
+ }
553
+ let ret = this.$GetSaleParam.getPrice(params)
554
+ ret.forEach((item, index) => {
555
+ rs.push({label: item.label, value: item.value.f_price_name})
556
+ })
557
+ }
558
+ if (rs.length == 0) {
559
+ this.areamodel.f_price_name = ''
560
+ }
561
+ return rs
562
+ },
563
+ positions () {
564
+ return this.$appdata.getParam('安装位置')
565
+ },
566
+ inputtores () {
567
+ // 获取抄表员
568
+ let rs = new Array()
569
+ if (this.$login.f.f_gasman.length > 0) {
570
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
571
+ let temp = {
572
+ label: this.$login.f.f_gasman[i].name,
573
+ value: this.$login.f.f_gasman[i].name
574
+ }
575
+ rs.push(temp)
576
+ }
577
+ }
578
+ return rs
579
+ },
580
+ },
581
+ }
582
+ </script>
583
+ <style>
584
+ .box {
585
+ width: 727px;
586
+ height: 175px;
587
+ border-radius: 2px;
588
+ background-color: #fafafa;
589
+ border: 1px solid #999999;
590
+ margin-top: 13px;
591
+ }
592
+ .datapanel {
593
+ color: #333;
594
+ background-color: white;
595
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
596
+ padding: 10px 30px 10px 30px;
597
+ border-radius:15px;
598
+ }
599
+ </style>