address-client 3.2.105 → 3.2.106-shimen

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.
@@ -3,11 +3,11 @@
3
3
  <validator name='v'>
4
4
  <div class="form-horizontal select-overspread container-fluid" style="overflow-y: auto">
5
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>
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
11
  </div>
12
12
  <div v-if="areatype != '楼栋'">
13
13
  <!--基本小区(单位)信息-->
@@ -28,7 +28,8 @@
28
28
  <div class="col-sm-6 form-group"
29
29
  :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
30
30
  <label class="font_normal_body">省&ensp;市&ensp;区</label>
31
- <input type="text" class="input_search" class="input_search" style="width:60%" v-show="false" v-model="areamodel.f_pcd_id"
31
+ <input type="text" class="input_search" class="input_search" style="width:60%" v-show="false"
32
+ v-model="areamodel.f_pcd_id"
32
33
  v-validate:f_pcd_id='{required: true }'>
33
34
  <v-select
34
35
  :value.sync="areamodel.f_pcd_id" :value-single="true"
@@ -49,7 +50,8 @@
49
50
  </div>
50
51
  <div class="col-sm-6 form-group" :class="[$v.slice.required ? 'has-error' : 'has-success']">
51
52
  <label class="font_normal_body">片&emsp;&emsp;区</label>
52
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
53
+ <input type="text" style="width:60%" class="input_search" v-show="false"
54
+ v-model="$refs.slice.selectedItems"
53
55
  v-validate:slice='{required: true }'>
54
56
  <v-select :value.sync="areamodel.slice_area" v-model="areamodel.slice_area"
55
57
  :options='sliceArea' placeholder='片区/管理站' filer-key="name"
@@ -61,14 +63,14 @@
61
63
  class="col-sm-6 form-group"
62
64
  :class="[$v.f_residential_area.required ? 'has-error' : 'has-success']">
63
65
  <label class="font_normal_body">小区名称</label>
64
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_residential_area"
66
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_residential_area"
65
67
  class="form-control" placeholder="小区名称"
66
68
  v-validate:f_residential_area='{required: true }'>
67
69
  </div>
68
70
  <div v-if="!f_special"
69
71
  class="col-sm-12 form-group">
70
72
  <label class="font_normal_body">小区地址</label>
71
- <input type="text" style="width:80%" class="input_search" v-model="areamodel.f_area_address"
73
+ <input type="text" style="width:80%" class="input_search" v-model="areamodel.f_area_address"
72
74
  class="form-control" placeholder="小区地址">
73
75
  </div>
74
76
  <!--单位(特殊)信息-->
@@ -76,21 +78,21 @@
76
78
  class="col-sm-6 form-group"
77
79
  :class="[$v.f_residential_area.required ? 'has-error' : 'has-success']">
78
80
  <label class="font_normal_body">单位名称</label>
79
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_residential_area"
81
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_residential_area"
80
82
  class="form-control" placeholder="单位名称"
81
83
  v-validate:f_residential_area='{required: true }'>
82
84
  </div>
83
85
  <div v-if="f_special"
84
86
  class="col-sm-12 form-group">
85
87
  <label class="font_normal_body">单位地址</label>
86
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_area_address"
88
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_area_address"
87
89
  class="form-control" placeholder="单位地址">
88
90
  </div>
89
91
  <div v-if="f_special"
90
92
  class="col-sm-6 form-group"
91
93
  :class="[$v.f_linkname.required ? 'has-error' : 'has-success']">
92
94
  <label class="font_normal_body">联&ensp;系&ensp;人</label>
93
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_linkname"
95
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_linkname"
94
96
  class="form-control" placeholder="联系人"
95
97
  v-validate:f_linkname='{required: true }'>
96
98
  </div>
@@ -98,74 +100,82 @@
98
100
  class="col-sm-6 form-group"
99
101
  :class="[$v.f_linkphone.required ? 'has-error' : 'has-success']">
100
102
  <label class="font_normal_body">联系电话</label>
101
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_linkphone"
103
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_linkphone"
102
104
  class="form-control" placeholder="联系电话"
103
105
  v-validate:f_linkphone='{required: true }'>
104
106
  </div>
105
107
  <div class="col-sm-12 form-group">
106
- <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
107
- <textarea class="input_textarea" rows="3" style="margin-top:20px;width:80%;height: auto;" v-model="areamodel.f_comments"></textarea>
108
+ <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
109
+ <textarea class="input_textarea" rows="3" style="margin-top:20px;width:80%;height: auto;"
110
+ v-model="areamodel.f_comments"></textarea>
108
111
  </div>
109
112
  <div class="col-sm-12 form-group">
110
113
  <br/>
111
114
  </div>
112
115
  <!--表具信息-->
113
- <div v-if="!f_special" class="col-sm-12 bg-info text-center" style="padding: 8px;font-size: 18px;font-weight: bold">
114
- <span >默认表具信息</span>
116
+ <div v-if="!f_special" class="col-sm-12 bg-info text-center"
117
+ style="padding: 8px;font-size: 18px;font-weight: bold">
118
+ <span>默认表具信息</span>
115
119
  </div>
116
120
  <div v-if="!f_special" class="row">
117
121
  <div class="col-sm-6 form-group">
118
122
  <label class="font_normal_body">用户类型</label>
119
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_user_type">
123
+ <input type="text" style="width:60%" class="input_search" v-show="false"
124
+ v-model="areamodel.f_user_type">
120
125
  <v-select
121
126
  :value.sync="areamodel.f_user_type" :value-single="true"
122
127
  :options='usertypes' placeholder='用户类型' @change="userTypeChange"
123
- close-on-select >
128
+ close-on-select>
124
129
  </v-select>
125
130
  </div>
126
131
  <div class="col-sm-6 form-group">
127
132
  <label class="font_normal_body">用气性质</label>
128
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_gasproperties">
133
+ <input type="text" style="width:60%" class="input_search" v-show="false"
134
+ v-model="areamodel.f_gasproperties">
129
135
  <v-select
130
136
  :value.sync="areamodel.f_gasproperties" :value-single="true"
131
137
  :options='gasproperties' placeholder='用气性质'
132
- close-on-select >
138
+ close-on-select>
133
139
  </v-select>
134
140
  </div>
135
141
  <div class="col-sm-6 form-group">
136
142
  <label class="font_normal_body">气价类型</label>
137
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_type">
143
+ <input type="text" style="width:60%" class="input_search" v-show="false"
144
+ v-model="areamodel.f_price_type">
138
145
  <v-select
139
146
  :value.sync="areamodel.f_price_type" :value-single="true"
140
147
  :options='f_price_types' placeholder='气价类型'
141
- close-on-select >
148
+ close-on-select>
142
149
  </v-select>
143
150
  </div>
144
151
  <div class="col-sm-6 form-group">
145
152
  <label class="font_normal_body">气价名称</label>
146
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_name">
153
+ <input type="text" style="width:60%" class="input_search" v-show="false"
154
+ v-model="areamodel.f_price_name">
147
155
  <v-select
148
156
  :value.sync="areamodel.f_price_name" :value-single="true"
149
157
  :options='pricenames' placeholder='气价名称'
150
- close-on-select >
158
+ close-on-select>
151
159
  </v-select>
152
160
  </div>
153
161
  <div class="col-sm-6 form-group">
154
162
  <label class="font_normal_body">气表品牌</label>
155
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_meter_brand">
163
+ <input type="text" style="width:60%" class="input_search" v-show="false"
164
+ v-model="areamodel.f_meter_brand">
156
165
  <v-select
157
166
  :value.sync="areamodel.f_meter_brand" :value-single="true"
158
167
  :options='meterbrands' placeholder='气表品牌'
159
- close-on-select >
168
+ close-on-select>
160
169
  </v-select>
161
170
  </div>
162
171
  <div class="col-sm-6 form-group">
163
172
  <label class="font_normal_body">气表型号</label>
164
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_meter_style">
173
+ <input type="text" style="width:60%" class="input_search" v-show="false"
174
+ v-model="areamodel.f_meter_style">
165
175
  <v-select
166
176
  :value.sync="areamodel.f_meter_style" :value-single="true"
167
177
  :options='meterstyle' placeholder='气表型号'
168
- close-on-select >
178
+ close-on-select>
169
179
  </v-select>
170
180
  </div>
171
181
  <div class="col-sm-6 form-group" :class="[$v.f_meter_type.required ? 'has-error' : 'has-success']">
@@ -183,17 +193,18 @@
183
193
  <v-select
184
194
  :value.sync="areamodel.f_meter_book" :value-single="true"
185
195
  :options='meterbooks' placeholder='抄表册'
186
- close-on-select >
196
+ close-on-select>
187
197
  </v-select>
188
198
  </div>
189
- <div class="col-sm-6 form-group" v-if="!isMachine" :class="[$v.f_meter_book.required ? 'has-error' : 'has-success']">
199
+ <div class="col-sm-6 form-group" v-if="!isMachine"
200
+ :class="[$v.f_meter_book.required ? 'has-error' : 'has-success']">
190
201
  <label class="font_normal_body">抄&ensp;表&ensp;册</label>
191
202
  <input type="text" style="width:60%" class="input_search" v-show="false"
192
203
  v-model="areamodel.f_meter_book">
193
204
  <v-select
194
205
  :value.sync="areamodel.f_meter_book" :value-single="true"
195
206
  :options='meterbooks' placeholder='抄表册'
196
- close-on-select >
207
+ close-on-select>
197
208
  </v-select>
198
209
  </div>
199
210
  <div class="col-sm-6 form-group" :class="[$v.f_inputtor.required ? 'has-error' : 'has-success']">
@@ -203,7 +214,7 @@
203
214
  <v-select
204
215
  :value.sync="areamodel.f_inputtor" :value-single="true"
205
216
  :options='inputtores' placeholder='抄表员'
206
- close-on-select >
217
+ close-on-select>
207
218
  </v-select>
208
219
  </div>
209
220
  <div class="col-sm-6 form-group" :class="[$v.f_adjustable_id.required ? 'has-error' : 'has-success']">
@@ -213,35 +224,52 @@
213
224
  <v-select
214
225
  :value.sync="areamodel.f_adjustable_id" :value-single="true"
215
226
  :options='adjustables' placeholder='调压箱'
216
- close-on-select >
227
+ close-on-select>
217
228
  </v-select>
218
229
  </div>
219
230
  <div class="col-sm-6 form-group" :class="[$v.f_house_type.required ? 'has-error' : 'has-success']">
220
231
  <label class="font_normal_body">房屋类型</label>
221
232
  <input type="text" style="width:60%" class="input_search" v-show="false"
222
- v-model="areamodel.f_house_type" >
233
+ v-model="areamodel.f_house_type">
223
234
  <v-select
224
235
  :value.sync="areamodel.f_house_type" :value-single="true"
225
236
  :options='housetypeoptions' placeholder='房屋类型'
226
- close-on-select >
237
+ close-on-select>
227
238
  </v-select>
228
239
  </div>
229
240
  <div class="col-sm-6 form-group" :class="[$v.f_position.required ? 'has-error' : 'has-success']">
230
241
  <label class="font_normal_body">安装位置</label>
231
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_position" >
242
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_position">
232
243
  <v-select
233
244
  :value.sync="areamodel.f_position" :value-single="true"
234
245
  :options='positions' placeholder='安装位置'
235
- close-on-select >
246
+ close-on-select>
247
+ </v-select>
248
+ </div>
249
+ <div class="col-sm-6 form-group" :class="[$v.f_repair_person.required ? 'has-error' : 'has-success']">
250
+ <label class="font_normal_body">维 修 员</label>
251
+ <input type="text" style="width:60%" class="input_search"
252
+ v-show="false" v-model="areamodel.f_repair_person">
253
+ <v-select
254
+ :value.sync="areamodel.f_repair_person" :value-single="true"
255
+ :options='repairers' placeholder='维修员'
256
+ close-on-select>
236
257
  </v-select>
237
258
  </div>
259
+ <div class="col-sm-6 form-group"
260
+ :class="[$v.f_repair_person_tel.required ? 'has-error' : 'has-success']">
261
+ <label class="font_normal_body">维修员电话</label>
262
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_repair_person_tel"
263
+ class="form-control" placeholder="维修员电话">
264
+ </div>
238
265
  </div>
239
266
  <div v-if="f_special" class="col-sm-6 form-group">
240
267
  <br/>
241
268
  </div>
242
269
  </div>
243
270
  <div v-if="areatype == '楼栋'">
244
- <div class="col-sm-6 form-group " :class="[$v.f_residential_area_id1.required ? 'has-error' : 'has-success']">
271
+ <div class="col-sm-6 form-group "
272
+ :class="[$v.f_residential_area_id1.required ? 'has-error' : 'has-success']">
245
273
  <label class="font_normal_body">小区名称</label>
246
274
  <input type="text" style="width:41%" v-show="false" v-model="buildingmodel.f_residential_area_id"
247
275
  v-validate:f_residential_area_id1='{required: true }'>
@@ -262,7 +290,8 @@
262
290
  <button class="button_clear button_spacing" @click="cancel()">取消</button>
263
291
  </div>
264
292
  <div v-if="areatype == '楼栋'" class="row" style="margin-top:40px;height: 580px;">
265
- <building-list v-ref:buildinglist @select-changed="selected" :areaslist="areaslist" :f_filialeids.sync="f_filialeids"></building-list>
293
+ <building-list v-ref:buildinglist @select-changed="selected" :areaslist="areaslist"
294
+ :f_filialeids.sync="f_filialeids"></building-list>
266
295
  </div>
267
296
  </div>
268
297
  </validator>
@@ -270,474 +299,494 @@
270
299
  </template>
271
300
 
272
301
  <script>
273
- import {HttpResetClass} from 'vue-client'
302
+ import {HttpResetClass} from 'vue-client'
274
303
 
275
- let initGen = async function (self) {
276
- await self.$getConfig(self, 'UserArea')
277
- console.log('原地址配置',self.config)
278
- console.log('获取地址配置',self.config)
279
- // Object.assign(self.model, self.config)
280
- await self.initdata()
281
- await self.$LoadParams.loadMeterBook(self.f_filialeids)
282
- await self.loadMeterBooks();
283
- }
284
- export default {
285
- title: '小区添加',
286
- data () {
287
- return {
288
- config:{
289
- hasnumber:false,
290
- },
291
- //初始化省市区数据
292
- pcdslist:[],
293
- //初始化街道数据
294
- streetslist:[],
295
- //小区
296
- areamodel: {
297
- f_area_id: '',
298
- f_pcd_id:'',
299
- f_linkname:'',
300
- f_linkphone:'',
301
- f_street_id:'',
302
- f_slice_area:'',
303
- f_adjustable_id:'',
304
- f_residential_area:'',
305
- f_user_type:'',
306
- f_gasproperties:'',
307
- f_meter_brand:'',
308
- f_price_name:'',
309
- f_area_address:'',
310
- f_price_type:'',
311
- f_meter_style:'',
312
- f_position:'',
313
- f_comments:'',
314
- f_meter_type: ''
315
- },
316
- // 初始化小区数据
317
- areaslist:[],
318
- // 楼栋
319
- buildingmodel: {
320
- f_residential_area: '',
321
- f_residential_area_id: '',
322
- f_building: ''
323
- },
324
- meterbrands: [],
325
- adjustables: [],
326
- sliceArea: [],
327
- gasproperties: [],
328
- meterbooks:[{label: '全部',value: ''}],
329
- housetypeoptions:[{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
330
- isMachine: true
331
- }
332
- },
333
- props: ['f_filialeids','f_special', 'areatype','row','operation'],
334
- ready(){
335
- initGen(this)
336
- },
337
- methods: {
338
- loadMeterBooks(){
339
- this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
304
+ let initGen = async function (self) {
305
+ await self.$getConfig(self, 'UserArea')
306
+ console.log('原地址配置', self.config)
307
+ console.log('获取地址配置', self.config)
308
+ // Object.assign(self.model, self.config)
309
+ await self.initdata()
310
+ await self.$LoadParams.loadMeterBook(self.f_filialeids)
311
+ await self.loadMeterBooks();
312
+ }
313
+ export default {
314
+ title: '小区添加',
315
+ data() {
316
+ return {
317
+ config: {
318
+ hasnumber: false,
340
319
  },
341
- //初始化数据
342
- async initdata(){
343
- // 初始化参数
344
- await this.initParams()
345
- if (this.areatype == '楼栋') {
346
- this.initareas(` f_orgid = '${this.f_filialeids}'`)
347
- }
348
- // 初始化片区
349
- await this.initSlice(this.f_filialeids)
350
- await this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
351
- },
352
- initrow(val){
353
- this.areamodel.f_meter_book = val.f_meter_book;
354
- this.areamodel.f_adjustable_id = val.f_adjustable_id;
320
+ //初始化省市区数据
321
+ pcdslist: [],
322
+ repairers: [],
323
+ //初始化街道数据
324
+ streetslist: [],
325
+ //小区
326
+ areamodel: {
327
+ f_area_id: '',
328
+ f_pcd_id: '',
329
+ f_linkname: '',
330
+ f_linkphone: '',
331
+ f_street_id: '',
332
+ f_slice_area: '',
333
+ f_adjustable_id: '',
334
+ f_residential_area: '',
335
+ f_user_type: '',
336
+ f_gasproperties: '',
337
+ f_meter_brand: '',
338
+ f_price_name: '',
339
+ f_area_address: '',
340
+ f_price_type: '',
341
+ f_meter_style: '',
342
+ f_position: '',
343
+ f_comments: '',
344
+ f_meter_type: ''
355
345
  },
356
- async initParams() {
357
- await this.$LoadParams.loadParam(this.f_filialeids)
358
- this.initBrands()
359
- this.initAdjustables()
346
+ // 初始化小区数据
347
+ areaslist: [],
348
+ // 楼栋
349
+ buildingmodel: {
350
+ f_residential_area: '',
351
+ f_residential_area_id: '',
352
+ f_building: ''
360
353
  },
354
+ meterbrands: [],
355
+ adjustables: [],
356
+ sliceArea: [],
357
+ gasproperties: [],
358
+ meterbooks: [{label: '全部', value: ''}],
359
+ housetypeoptions: [{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
360
+ isMachine: true
361
+ }
362
+ },
363
+ props: ['f_filialeids', 'f_special', 'areatype', 'row', 'operation'],
364
+ ready() {
365
+ initGen(this)
366
+ this.getEmp()
367
+ },
368
+ methods: {
369
+ loadMeterBooks() {
370
+ this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
371
+ },
372
+ //初始化数据
373
+ async initdata() {
374
+ // 初始化参数
375
+ await this.initParams()
376
+ if (this.areatype == '楼栋') {
377
+ this.initareas(` f_orgid = '${this.f_filialeids}'`)
378
+ }
379
+ // 初始化片区
380
+ await this.initSlice(this.f_filialeids)
381
+ await this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
382
+ },
383
+ initrow(val) {
384
+ this.areamodel.f_meter_book = val.f_meter_book;
385
+ this.areamodel.f_adjustable_id = val.f_adjustable_id;
386
+ },
387
+ async initParams() {
388
+ await this.$LoadParams.loadParam(this.f_filialeids)
389
+ this.initBrands()
390
+ this.initAdjustables()
391
+ },
361
392
 
362
- initBrands () {
363
- let ret = this.$GetSaleParam.getGasbrand()
364
- let rs = new Array()
365
- ret.forEach((item, index) =>{
366
- rs.push({label: item.label, value: item.value.f_meter_brand})
367
- })
368
- this.meterbrands = rs
369
- },
393
+ initBrands() {
394
+ let ret = this.$GetSaleParam.getGasbrand()
395
+ let rs = new Array()
396
+ ret.forEach((item, index) => {
397
+ rs.push({label: item.label, value: item.value.f_meter_brand})
398
+ })
399
+ this.meterbrands = rs
400
+ },
370
401
 
371
- initAdjustables () {
372
- let filter = this.$login.f.orgid
373
- let ret = this.$GetSaleParam.getAdjustable(filter)
374
- let arr = new Array()
375
- ret.forEach((item, index) => {
376
- arr.push({label: `[${item.value.f_adjustable_id}]-${item.label}`, value: item.value.id})
377
- })
378
- this.adjustables = arr
379
- },
402
+ initAdjustables() {
403
+ let filter = this.$login.f.orgid
404
+ let ret = this.$GetSaleParam.getAdjustable(filter)
405
+ let arr = new Array()
406
+ ret.forEach((item, index) => {
407
+ arr.push({label: `[${item.value.f_adjustable_id}]-${item.label}`, value: item.value.id})
408
+ })
409
+ this.adjustables = arr
410
+ },
380
411
 
381
- async initSlice (val) {
382
- if (val) {
383
- let getAllArea = await this.$resetpost('/rs/search', {
384
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
385
- userid: this.$login.f.id
386
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
412
+ async initSlice(val) {
413
+ if (val) {
414
+ let getAllArea = await this.$resetpost('/rs/search', {
415
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
416
+ userid: this.$login.f.id
417
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
387
418
 
388
- let arr = getAllArea.data.filter((res) => {
389
- return res.parentid == val
390
- })
391
- this.sliceArea = []
392
- arr.forEach((res) => {
393
- this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
394
- })
419
+ let arr = getAllArea.data.filter((res) => {
420
+ return res.parentid == val
421
+ })
422
+ this.sliceArea = []
423
+ arr.forEach((res) => {
424
+ this.sliceArea.push({label: res.name, value: {name: res.name, code: res.number}})
425
+ })
426
+ }
427
+ },
428
+ //初始化小区添加小区
429
+ async initareas(pconditon) {
430
+ // if(this.usertype){
431
+ // pconditon=pconditon+` and f_special='1' `
432
+ // }
433
+ this.areaslist = []
434
+ let HttpReset = new HttpResetClass()
435
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
436
+ data: {
437
+ items: '*',
438
+ tablename: 't_area',
439
+ orderitem: 'id',
440
+ condition: pconditon
395
441
  }
396
- },
397
- //初始化小区添加小区
398
- async initareas(pconditon){
399
- // if(this.usertype){
400
- // pconditon=pconditon+` and f_special='1' `
401
- // }
402
- this.areaslist = []
403
- let HttpReset = new HttpResetClass()
404
- let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
405
- data: {
406
- items: '*',
407
- tablename: 't_area',
408
- orderitem: 'id',
409
- condition: pconditon
410
- }
411
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
412
- let redata = []
413
- req.data.forEach((row) => {
414
- redata.push({
415
- label: '['+row.f_street+']'+row.f_residential_area,
416
- value: row.id,
417
- data: row,
418
- id: row.id
419
- })
442
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
443
+ let redata = []
444
+ req.data.forEach((row) => {
445
+ redata.push({
446
+ label: '[' + row.f_street + ']' + row.f_residential_area,
447
+ value: row.id,
448
+ data: row,
449
+ id: row.id
420
450
  })
421
- this.areaslist=redata
422
- },
451
+ })
452
+ this.areaslist = redata
453
+ },
423
454
 
424
- //初始化省市区,添加街道
425
- async initpcds(pconditon){
426
- this.pcdslist = []
427
- let HttpReset = new HttpResetClass()
428
- let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
429
- data: {
430
- items: '*',
431
- tablename: 't_pcd',
432
- orderitem: 'id',
433
- condition: pconditon
434
- }
435
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
436
- let redata = []
437
- req.data.forEach((row, n) => {
438
- redata[n] = {
439
- label: row.f_pcd,
440
- value: row.id,
441
- data:row,
442
- id:row.id
443
- }
444
- })
445
- this.pcdslist=redata
455
+ //初始化省市区,添加街道
456
+ async initpcds(pconditon) {
457
+ this.pcdslist = []
458
+ let HttpReset = new HttpResetClass()
459
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
460
+ data: {
461
+ items: '*',
462
+ tablename: 't_pcd',
463
+ orderitem: 'id',
464
+ condition: pconditon
465
+ }
466
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
467
+ let redata = []
468
+ req.data.forEach((row, n) => {
469
+ redata[n] = {
470
+ label: row.f_pcd,
471
+ value: row.id,
472
+ data: row,
473
+ id: row.id
474
+ }
475
+ })
476
+ this.pcdslist = redata
446
477
 
447
- },
448
- //初始化街道 添加小区
449
- async initstreets(pconditon){
450
- this.streetslist = []
451
- let HttpReset = new HttpResetClass()
452
- let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
478
+ },
479
+ //初始化街道 添加小区
480
+ async initstreets(pconditon) {
481
+ this.streetslist = []
482
+ let HttpReset = new HttpResetClass()
483
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
484
+ data: {
485
+ items: '*',
486
+ tablename: 't_street',
487
+ orderitem: 'id',
488
+ condition: pconditon
489
+ }
490
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
491
+ let redata = []
492
+ req.data.forEach((row, n) => {
493
+ redata[n] = {
494
+ label: row.f_street,
495
+ value: row.id,
496
+ data: row,
497
+ id: row.id
498
+ }
499
+ })
500
+ this.streetslist = redata
501
+ },
502
+ async areaidChangeHasnumber() {
503
+ console.log(this.areamodel.f_area_id.length)
504
+ if (this.areamodel.f_area_id.length != 2) {
505
+ this.$showAlert('请输入正确的位数', 'warning', 2000)
506
+ this.areamodel.f_area_id = ''
507
+ } else {
508
+ let res = await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
453
509
  data: {
454
510
  items: '*',
455
- tablename: 't_street',
511
+ tablename: 't_area',
456
512
  orderitem: 'id',
457
- condition: pconditon
513
+ condition: `f_area_id = '${this.areamodel.f_area_id}' and f_orgid = '${this.$login.f.orgid}'`
458
514
  }
459
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
460
- let redata = []
461
- req.data.forEach((row, n) => {
462
- redata[n] = {
463
- label: row.f_street,
464
- value: row.id,
465
- data:row,
466
- id:row.id
467
- }
468
- })
469
- this.streetslist=redata
470
- },
471
- async areaidChangeHasnumber(){
472
- console.log(this.areamodel.f_area_id.length)
473
- if (this.areamodel.f_area_id.length != 2){
474
- this.$showAlert('请输入正确的位数', 'warning', 2000)
475
- this.areamodel.f_area_id = ''
476
- }else{
477
- let res =await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
478
- data: {
479
- items: '*',
480
- tablename: 't_area',
481
- orderitem: 'id',
482
- condition: `f_area_id = '${this.areamodel.f_area_id}' and f_orgid = '${this.$login.f.orgid}'`
483
- }
484
- }, {resolveMsg: null, rejectMsg: null})
485
- if (res.data.length>0){
486
- if (res.data[0].id != this.areamodel.id) {
487
- this.$showAlert('当前编号已存在', 'warning', 2000)
488
- this.areamodel.f_area_id = ''
489
- }
515
+ }, {resolveMsg: null, rejectMsg: null})
516
+ if (res.data.length > 0) {
517
+ if (res.data[0].id != this.areamodel.id) {
518
+ this.$showAlert('当前编号已存在', 'warning', 2000)
519
+ this.areamodel.f_area_id = ''
490
520
  }
491
521
  }
492
- },
493
- async areaidChange () {
494
- // 验证小区编号是否已存在
522
+ }
523
+ },
524
+ async areaidChange() {
525
+ // 验证小区编号是否已存在
495
526
 
496
- let param = {
497
- id: this.areamodel.id,
498
- f_area_id: this.areamodel.f_area_id,
499
- f_filialeid: this.f_filialeids
500
- }
527
+ let param = {
528
+ id: this.areamodel.id,
529
+ f_area_id: this.areamodel.f_area_id,
530
+ f_filialeid: this.f_filialeids
531
+ }
501
532
 
502
- let res = await this.$resetpost('api/af-revenue/logic/address_validateAreaID', param, {resolveMsg: null,rejectMsg: '小区编号验证失败!!'})
503
- console.log('验证小区是否存在', res)
504
- if (res.data) {
505
- this.$showAlert('这个小区编号已存在!!!请核实', 'warning', 3000)
506
- this.areamodel.f_area_id = ''
507
- }
533
+ let res = await this.$resetpost('api/af-revenue/logic/address_validateAreaID', param, {
534
+ resolveMsg: null,
535
+ rejectMsg: '小区编号验证失败!!'
536
+ })
537
+ console.log('验证小区是否存在', res)
538
+ if (res.data) {
539
+ this.$showAlert('这个小区编号已存在!!!请核实', 'warning', 3000)
540
+ this.areamodel.f_area_id = ''
541
+ }
508
542
 
509
- },
543
+ },
510
544
 
511
545
 
512
- //根据名字找数据
513
- findbyid(list,name){
514
- var result
515
- list.forEach((row, n) => {
516
- if(name==row.id){
517
- result= row.data
518
- }
519
- })
520
- return result
521
- },
522
- userTypeChange () {
523
- this.gasproperties = []
524
- if (this.areamodel.f_user_type) {
525
- this.gasproperties = this.$appdata.getParam(this.areamodel.f_user_type)
546
+ //根据名字找数据
547
+ findbyid(list, name) {
548
+ var result
549
+ list.forEach((row, n) => {
550
+ if (name == row.id) {
551
+ result = row.data
526
552
  }
527
- },
553
+ })
554
+ return result
555
+ },
556
+ userTypeChange() {
557
+ this.gasproperties = []
558
+ if (this.areamodel.f_user_type) {
559
+ this.gasproperties = this.$appdata.getParam(this.areamodel.f_user_type)
560
+ }
561
+ },
528
562
 
529
- //省/市/区变化
530
- async pcdChange(val){
531
- if(val){
532
- //那就把街道数据重新组织一下
533
- await this.initstreets(` f_filialeid = '${this.f_filialeids}' and f_pcd_id ='${val}' `)
534
- if(this.areamodel.f_street_id){
535
- if (this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
536
- let pcd_id=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_pcd_id
537
- if(pcd_id!=val){
538
- this.areamodel.f_street_id=''
539
- }
540
- } else {
541
- this.areamodel.f_street_id=''
563
+ //省/市/区变化
564
+ async pcdChange(val) {
565
+ if (val) {
566
+ //那就把街道数据重新组织一下
567
+ await this.initstreets(` f_filialeid = '${this.f_filialeids}' and f_pcd_id ='${val}' `)
568
+ if (this.areamodel.f_street_id) {
569
+ if (this.findbyid(this.streetslist, this.areamodel.f_street_id)) {
570
+ let pcd_id = this.findbyid(this.streetslist, this.areamodel.f_street_id).f_pcd_id
571
+ if (pcd_id != val) {
572
+ this.areamodel.f_street_id = ''
542
573
  }
543
-
544
- }
545
- }
546
- this.$resetValidation()
547
- },
548
- //街道变化
549
- streetChange(val){
550
- if(val&&this.operation=='add'){
551
- // if(this.areamodel.f_pcd_id.length==0){
552
- if (this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
553
- this.areamodel.f_pcd_id=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_pcd_id
574
+ } else {
575
+ this.areamodel.f_street_id = ''
554
576
  }
555
- // }
556
- }
557
- this.$resetValidation()
558
- },
559
- //保存
560
- async confirm(){
561
- if(this.areatype=='楼栋'){
562
- await this.savebuilding()
563
- } else {
564
- await this.savearea()
565
- this.cleardara()
566
- this.$dispatch('confirm')
567
- }
568
- },
569
- // 保存楼栋
570
- async savebuilding () {
571
- this.buildingmodel.f_residential_area = this.$refs.areaselect.selectedItems
572
- this.buildingmodel.f_filialeid = this.f_filialeids
573
- this.buildingmodel.f_operator = this.$login.f.name
574
- this.buildingmodel.f_operatorid = this.$login.f.id
575
- this.buildingmodel.f_orgid = this.$login.f.orgid
576
- this.buildingmodel.f_orgname = this.$login.f.orgs
577
- this.buildingmodel.f_depid = this.$login.f.depids
578
- this.buildingmodel.f_depname = this.$login.f.deps
579
- await this.$resetpost('api/af-revenue/logic/address_savebuilding', this.buildingmodel)
580
- this.$refs.buildinglist.search()
581
- },
582
- //保存小区
583
- async savearea(){
584
- if(this.f_special){
585
- this.areamodel.f_special='1'
586
- }
587
- this.areamodel.f_filialeid = this.f_filialeids
588
- this.areamodel.f_operator = this.$login.f.name
589
- this.areamodel.f_operatorid = this.$login.f.id
590
- this.areamodel.f_orgid = this.$login.f.orgid
591
- this.areamodel.f_orgname = this.$login.f.orgs
592
- this.areamodel.f_depid = this.$login.f.depids
593
- this.areamodel.f_depname = this.$login.f.deps
594
- if (this.areamodel.slice_area) {
595
- if (this.areamodel.slice_area.length > 0) {
596
- this.areamodel.f_slice_area = this.areamodel.slice_area[0].name
597
- this.areamodel.f_area_code = this.areamodel.slice_area[0].code
598
- }
599
- }
600
- this.areamodel.f_pcd=this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd
601
- this.areamodel.f_street=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
602
577
 
603
- await this.$resetpost('api/af-revenue/logic/address_updatearea', this.areamodel)
604
- },
605
- cleardara(){
606
- this.areamodel= {
607
- f_area_id: '',
608
- f_pcd_id:'',
609
- f_street_id:'',
610
- f_slice_area:'',
611
- f_linkname:'',
612
- f_linkphone:'',
613
- f_adjustable_id:'',
614
- f_residential_area:'',
615
- f_user_type:'',
616
- f_gasproperties:'',
617
- f_area_address:'',
618
- f_meter_brand:'',
619
- f_price_name:'',
620
- f_price_type:'',
621
- f_meter_style:'',
622
- f_position:'',
623
- f_comments:'',
624
- f_meter_type: ''
625
578
  }
626
- },
627
- cancel(){
579
+ }
580
+ this.$resetValidation()
581
+ },
582
+ //街道变化
583
+ streetChange(val) {
584
+ if (val && this.operation == 'add') {
585
+ // if(this.areamodel.f_pcd_id.length==0){
586
+ if (this.findbyid(this.streetslist, this.areamodel.f_street_id)) {
587
+ this.areamodel.f_pcd_id = this.findbyid(this.streetslist, this.areamodel.f_street_id).f_pcd_id
588
+ }
589
+ // }
590
+ }
591
+ this.$resetValidation()
592
+ },
593
+ //保存
594
+ async confirm() {
595
+ if (this.areatype == '楼栋') {
596
+ await this.savebuilding()
597
+ } else {
598
+ await this.savearea()
628
599
  this.cleardara()
629
- this.$dispatch('cancel')
630
- },
600
+ this.$dispatch('confirm')
601
+ }
631
602
  },
632
- watch: {
633
- 'areamodel.f_meter_type' (val) {
634
- if (val === '机表')
635
- this.isMachine = false
636
- },
637
- 'areatype'(){
638
- this.initdata()
639
- },
640
- 'areamodel.f_pcd_id'(){
641
- if(this.areamodel.f_pcd_id&&this.areamodel.f_street_id){
642
- if (this.findbyid(this.pcdslist,this.areamodel.f_pcd_id) && this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
643
- 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
644
- }
603
+ // 保存楼栋
604
+ async savebuilding() {
605
+ this.buildingmodel.f_residential_area = this.$refs.areaselect.selectedItems
606
+ this.buildingmodel.f_filialeid = this.f_filialeids
607
+ this.buildingmodel.f_operator = this.$login.f.name
608
+ this.buildingmodel.f_operatorid = this.$login.f.id
609
+ this.buildingmodel.f_orgid = this.$login.f.orgid
610
+ this.buildingmodel.f_orgname = this.$login.f.orgs
611
+ this.buildingmodel.f_depid = this.$login.f.depids
612
+ this.buildingmodel.f_depname = this.$login.f.deps
613
+ await this.$resetpost('api/af-revenue/logic/address_savebuilding', this.buildingmodel)
614
+ this.$refs.buildinglist.search()
615
+ },
616
+ //保存小区
617
+ async savearea() {
618
+ if (this.f_special) {
619
+ this.areamodel.f_special = '1'
620
+ }
621
+ this.areamodel.f_filialeid = this.f_filialeids
622
+ this.areamodel.f_operator = this.$login.f.name
623
+ this.areamodel.f_operatorid = this.$login.f.id
624
+ this.areamodel.f_orgid = this.$login.f.orgid
625
+ this.areamodel.f_orgname = this.$login.f.orgs
626
+ this.areamodel.f_depid = this.$login.f.depids
627
+ this.areamodel.f_depname = this.$login.f.deps
628
+ if (this.areamodel.slice_area) {
629
+ if (this.areamodel.slice_area.length > 0) {
630
+ this.areamodel.f_slice_area = this.areamodel.slice_area[0].name
631
+ this.areamodel.f_area_code = this.areamodel.slice_area[0].code
645
632
  }
646
- },
647
- 'areamodel.f_street_id'(){
648
- if (this.areamodel.f_pcd_id && this.areamodel.f_street_id) {
649
- if (this.findbyid(this.pcdslist, this.areamodel.f_pcd_id) && this.findbyid(this.streetslist, this.areamodel.f_street_id)) {
650
- 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
651
- }
633
+ }
634
+ this.areamodel.f_pcd = this.findbyid(this.pcdslist, this.areamodel.f_pcd_id).f_pcd
635
+ this.areamodel.f_street = this.findbyid(this.streetslist, this.areamodel.f_street_id).f_street
636
+
637
+ await this.$resetpost('api/af-revenue/logic/address_updatearea', this.areamodel)
638
+ },
639
+ cleardara() {
640
+ this.areamodel = {
641
+ f_area_id: '',
642
+ f_pcd_id: '',
643
+ f_street_id: '',
644
+ f_slice_area: '',
645
+ f_linkname: '',
646
+ f_linkphone: '',
647
+ f_adjustable_id: '',
648
+ f_residential_area: '',
649
+ f_user_type: '',
650
+ f_gasproperties: '',
651
+ f_area_address: '',
652
+ f_meter_brand: '',
653
+ f_price_name: '',
654
+ f_price_type: '',
655
+ f_meter_style: '',
656
+ f_position: '',
657
+ f_comments: '',
658
+ f_meter_type: ''
659
+ }
660
+ },
661
+ cancel() {
662
+ this.cleardara()
663
+ this.$dispatch('cancel')
664
+ },
665
+ // 获取维修员
666
+ getEmp() {
667
+ // let val = {source: 'tool.getChildrenOfResName($维修员$)', userid: `${this.$login.f.id}`}
668
+ let val = {
669
+ source: `this.getParentByType($organization$).getChildByName($维修员$).getUsers()`,
670
+ userid: `${this.$login.f.id}`
671
+ }
672
+ let http = new HttpResetClass()
673
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
674
+ res.data.forEach((item) => {
675
+ this.repairers.push({label: `${item.name}`, value: item.name})
676
+ })
677
+ })
678
+ }
679
+ },
680
+ watch: {
681
+ 'areamodel.f_meter_type'(val) {
682
+ if (val === '机表')
683
+ this.isMachine = false
684
+ },
685
+ 'areatype'() {
686
+ this.initdata()
687
+ },
688
+ 'areamodel.f_pcd_id'() {
689
+ if (this.areamodel.f_pcd_id && this.areamodel.f_street_id) {
690
+ if (this.findbyid(this.pcdslist, this.areamodel.f_pcd_id) && this.findbyid(this.streetslist, this.areamodel.f_street_id)) {
691
+ 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
652
692
  }
653
- },
654
- 'f_filialeids'(){
655
- if (this.areamodel.f_filialeid) {
656
- if (this.areamodel.f_filialeid != this.f_filialeids) {
657
- this.$dispatch('cancel')
658
- }
693
+ }
694
+ },
695
+ 'areamodel.f_street_id'() {
696
+ if (this.areamodel.f_pcd_id && this.areamodel.f_street_id) {
697
+ if (this.findbyid(this.pcdslist, this.areamodel.f_pcd_id) && this.findbyid(this.streetslist, this.areamodel.f_street_id)) {
698
+ 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
659
699
  }
660
- this.cleardara()
661
- this.initdata()
662
700
  }
663
701
  },
664
- computed: {
665
- metertypes() {
666
- return this.$appdata.getParam('气表类型')
667
- },
668
- usertypes () {
669
- return this.$appdata.getParam('用户类型')
670
- },
671
- f_price_types () {
672
- return this.$appdata.getParam('气价类型')
673
- },
674
- meterstyle () {
675
- let ret = this.$GetSaleParam.getGasbrand()
676
- let rs = new Array()
677
- if(this.areamodel.f_meter_brand) {
678
- ret.forEach((item, index) => {
679
- if(this.areamodel.f_meter_brand == item.value.f_meter_brand) {
680
- item.value.gasmodel.forEach((item1, index) =>{
681
- rs.push({label: item1.label, value:item1.label})
682
- })
683
- }
684
- })
702
+ 'f_filialeids'() {
703
+ if (this.areamodel.f_filialeid) {
704
+ if (this.areamodel.f_filialeid != this.f_filialeids) {
705
+ this.$dispatch('cancel')
685
706
  }
686
- return rs
687
- },
688
- pricenames () {
689
- let rs = new Array()
690
- if (this.areamodel.f_user_type && this.areamodel.f_gasproperties && this.areamodel.f_price_type) {
691
- let params = {
692
- f_user_type: this.areamodel.f_user_type,
693
- f_gasproperties: this.areamodel.f_gasproperties,
694
- f_price_type: this.areamodel.f_price_type,
695
- filter: this.f_filialeids
707
+ }
708
+ this.cleardara()
709
+ this.initdata()
710
+ }
711
+ },
712
+ computed: {
713
+ metertypes() {
714
+ return this.$appdata.getParam('气表类型')
715
+ },
716
+ usertypes() {
717
+ return this.$appdata.getParam('用户类型')
718
+ },
719
+ f_price_types() {
720
+ return this.$appdata.getParam('气价类型')
721
+ },
722
+ meterstyle() {
723
+ let ret = this.$GetSaleParam.getGasbrand()
724
+ let rs = new Array()
725
+ if (this.areamodel.f_meter_brand) {
726
+ ret.forEach((item, index) => {
727
+ if (this.areamodel.f_meter_brand == item.value.f_meter_brand) {
728
+ item.value.gasmodel.forEach((item1, index) => {
729
+ rs.push({label: item1.label, value: item1.label})
730
+ })
696
731
  }
697
- let ret = this.$GetSaleParam.getPrice(params)
698
- ret.forEach((item, index) => {
699
- rs.push({label: item.label, value: item.value.f_price_name})
700
- })
701
- }
702
- if (rs.length == 0) {
703
- this.areamodel.f_price_name = ''
732
+ })
733
+ }
734
+ return rs
735
+ },
736
+ pricenames() {
737
+ let rs = new Array()
738
+ if (this.areamodel.f_user_type && this.areamodel.f_gasproperties && this.areamodel.f_price_type) {
739
+ let params = {
740
+ f_user_type: this.areamodel.f_user_type,
741
+ f_gasproperties: this.areamodel.f_gasproperties,
742
+ f_price_type: this.areamodel.f_price_type,
743
+ filter: this.f_filialeids
704
744
  }
705
- return rs
706
- },
707
- positions () {
708
- return this.$appdata.getParam('安装位置')
709
- },
710
- inputtores () {
711
- // 获取抄表员
712
- let rs = new Array()
713
- if (this.$login.f.f_gasman.length > 0) {
714
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
715
- let temp = {
716
- label: this.$login.f.f_gasman[i].name,
717
- value: this.$login.f.f_gasman[i].name
718
- }
719
- rs.push(temp)
745
+ let ret = this.$GetSaleParam.getPrice(params)
746
+ ret.forEach((item, index) => {
747
+ rs.push({label: item.label, value: item.value.f_price_name})
748
+ })
749
+ }
750
+ if (rs.length == 0) {
751
+ this.areamodel.f_price_name = ''
752
+ }
753
+ return rs
754
+ },
755
+ positions() {
756
+ return this.$appdata.getParam('安装位置')
757
+ },
758
+ inputtores() {
759
+ // 获取抄表员
760
+ let rs = new Array()
761
+ if (this.$login.f.f_gasman.length > 0) {
762
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
763
+ let temp = {
764
+ label: this.$login.f.f_gasman[i].name,
765
+ value: this.$login.f.f_gasman[i].name
720
766
  }
767
+ rs.push(temp)
721
768
  }
722
- return rs
723
769
  }
770
+ return rs
724
771
  }
725
772
  }
773
+ }
726
774
  </script>
727
775
  <style>
728
- .box {
729
- width: 727px;
730
- height: 175px;
731
- border-radius: 2px;
732
- background-color: #fafafa;
733
- border: 1px solid #999999;
734
- margin-top: 13px;
735
- }
736
- .datapanel {
737
- color: #333;
738
- background-color: white;
739
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
740
- padding: 10px 30px 10px 30px;
741
- border-radius:15px;
742
- }
776
+ .box {
777
+ width: 727px;
778
+ height: 175px;
779
+ border-radius: 2px;
780
+ background-color: #fafafa;
781
+ border: 1px solid #999999;
782
+ margin-top: 13px;
783
+ }
784
+
785
+ .datapanel {
786
+ color: #333;
787
+ background-color: white;
788
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
789
+ padding: 10px 30px 10px 30px;
790
+ border-radius: 15px;
791
+ }
743
792
  </style>