manage-client 3.2.258 → 3.2.260

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.
@@ -1,828 +1,828 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex">
5
- <div style="flex:1;" class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-2 form-group">
11
- <label class="font_normal_body">客户编号</label>
12
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
- </div>
15
- <div class="col-sm-2 form-group">
16
- <label class="font_normal_body">客户名称</label>
17
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
- condition="f_user_name like '%{}%'" placeholder="客户名称">
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label class="font_normal_body">客户电话</label>
22
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
23
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
24
- </div>
25
- <div class="col-sm-2 form-group">
26
- <label class="font_normal_body">客户类型</label>
27
- <v-select :value.sync="model.f_user_type"
28
- :options='$parent.$parent.usertypes'
29
- @change="$parent.$parent.userTypeChange()"
30
- placeholder='请选择' v-model="model.f_user_type"
31
- condition="f_user_type = '{}'"
32
- close-on-select></v-select>
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body">用气性质</label>
36
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
37
- :options='$parent.$parent.gaspropertie' placeholder='请选择'
38
- condition="f_gasproperties = '{}'"
39
- close-on-select></v-select>
40
- </div>
41
- <div class="span" style="float:right;">
42
- <button class="button_search button_spacing" @click="search()">查询</button>
43
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
-
46
- <export-excel :data="$parent.$parent.getCondition"
47
- :field="$parent.$parent.getExportField"
48
- :footer="$parent.$parent.footer"
49
- :header="$parent.$parent.other"
50
- v-if="$parent.$parent.authArr.includes('档案查询导出')"
51
- sqlurl="rs/logic/exportfile" sql-name="filesQuery" template-name='用户查询导出'
52
- :choose-col="true"></export-excel>
53
-
54
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
55
- </div>
56
- </div>
57
- <div class="row" v-show="$parent.$parent.criteriaShow">
58
- <div class="col-sm-2 form-group">
59
- <label class="font_normal_body">身份证号</label>
60
- <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
61
- condition="f_idnumber like '%{}%'" placeholder="身份证号">
62
- </div>
63
- <div class="col-sm-2 form-group">
64
- <label class="font_normal_body">使用状态</label>
65
- <v-select :value.sync="model.f_usestate"
66
- v-model="model.f_usestate"
67
- :options='$parent.$parent.usestate' placeholder='请选择'
68
- condition="f_usestate = '{}'"
69
- close-on-select></v-select>
70
- </div>
71
- <div class="col-sm-2 form-group">
72
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人数&nbsp;&nbsp;&nbsp;</label>
73
- <input type="text" style="width:60%" class="input_search" v-model="model.f_people_num"
74
- condition="f_people_num = '{}'" placeholder="人数">
75
- </div>
76
- <!--<div class="col-sm-2">
77
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;片区&nbsp;&nbsp;&nbsp;</label>
78
- <v-select
79
- :value.sync="model.f_slice_area"
80
- v-model="model.f_slice_area"
81
- :options='$parent.$parent.sliceArea'
82
- placeholder='请选择'
83
- condition="f_slice_area = '{}'"
84
- close-on-select></v-select>
85
- </div>-->
86
- <div class="col-sm-2 form-group">
87
- <label class="font_normal_body">微信绑定</label>
88
- <v-select
89
- :value.sync="model.f_wechat"
90
- v-model="model.f_wechat"
91
- :options='$parent.$parent.weixinSign'
92
- placeholder='请选择'
93
- condition="f_wechat = '{}'"
94
- close-on-select>
95
- </v-select>
96
- </div>
97
- <div class="col-sm-2 form-group">
98
- <label class="font_normal_body">客户地址</label>
99
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
100
- condition="f_address like '%{}%'" placeholder='客户地址'>
101
- </div>
102
- <div class="col-sm-2 form-group">
103
- <label for="startDate" class="font_normal_body">建档日期</label>
104
- <datepicker placeholder="建档日期" style="width:60%"
105
- v-model="model.f_createfile_date"
106
- :value.sync="model.f_createfile_date"
107
- :format="'yyyy-MM-dd'"
108
- :show-reset-button="true"
109
- condition="f_createfile_date >= '{} 00:00:00'">
110
- </datepicker>
111
- </div>
112
- <div class="col-sm-2 form-group">
113
- <label class="font_normal_body">建档部门</label>
114
- <input type="text" style="width:60%" class="input_search" v-model="model.f_depname"
115
- condition="f_depname like '%{}%'" placeholder='建档部门'>
116
- </div>
117
- <div class="col-sm-2 form-group">
118
- <label class="font_normal_body">报警器编码</label>
119
- <input type="text" style="width:60%" class="input_search" v-model="model.f_alarm_code"
120
- condition="f_alarm_code like '%{}%'" placeholder='报警器编码'>
121
- </div>
122
- <div class="col-sm-2 form-group">
123
- <label class="font_normal_body">发票编码</label>
124
- <input type="text" style="width:60%" class="input_search" v-model="model.f_taxpayer_id"
125
- condition="f_taxpayer_id like '%{}%'" placeholder='发票编码'>
126
- </div>
127
- <div class="col-sm-2 form-group">
128
- <label class="font_normal_body">燃气表号</label>
129
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
130
- condition="f_meternumber like '%{}%'" placeholder='燃气表号'>
131
- </div>
132
- <!-- <div class="col-sm-2">-->
133
- <!-- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区名称&nbsp;&nbsp;&nbsp;</label>-->
134
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"-->
135
- <!-- condition="f_residential_area like '%{}%'" placeholder="小区"/>-->
136
- <!-- <div class="col-sm-8">&ndash;&gt;-->
137
- <!-- <input type="text" v-show="false" v-model="model.f_residential_area" class="input_search" style="width: 80%"&ndash;&gt;-->
138
- <!--; v-validate:f_residential_area='{required: true }'>&ndash;&gt;-->
139
- <!-- <v-select :value.sync="model.f_residential_area" :value-single="true"&ndash;&gt;-->
140
- <!-- class="select_list select"&ndash;&gt;-->
141
- <!-- :options='fresidentialarea' placeholder='请选择'&ndash;&gt;-->
142
- <!-- close-on-select search="true">&ndash;&gt;-->
143
- <!-- </v-select>-->
144
- <!-- </div>-->
145
-
146
- <div class="col-sm-2 form-group">
147
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
148
- <v-select :value.sync="model.f_residential_area"
149
- class="select_list select"
150
- enter-push
151
- multiple = "true"
152
- v-model="model.f_residential_area"
153
- style="width: 60%"
154
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
155
- close-on-select>
156
-
157
- </v-select>
158
- </div>
159
- <div class="col-sm-2 form-group">
160
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;区域&nbsp;&nbsp;&nbsp;</label>
161
- <v-select :value.sync="model.f_street"
162
- class="select_list select"
163
- enter-push
164
- multiple = "true"
165
- condition="f_street in {}"
166
- v-model="model.f_street"
167
- style="width: 60%"
168
- :options='$parent.$parent.street' placeholder='选择区域'
169
- close-on-select>
170
-
171
- </v-select>
172
- </div>
173
- <div class="col-sm-2 form-group">
174
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼栋&nbsp;&nbsp;&nbsp;</label>
175
- <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
176
- condition="f_building = '{}'" placeholder="楼栋"/>
177
- </div>
178
- <div class="col-sm-2 form-group">
179
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;单元&nbsp;&nbsp;&nbsp;</label>
180
- <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
181
- condition="f_unit = '{}'" placeholder="单元"/>
182
- </div>
183
- <div class="col-sm-2 form-group">
184
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;</label>
185
- <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
186
- condition="f_floor = '{}'" placeholder="楼层"/>
187
- </div>
188
- <div class="col-sm-2 form-group">
189
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
190
- <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
191
- condition="f_room = '{}'" placeholder="门牌号">
192
- </div>
193
- <div class="col-sm-2 form-group">
194
- <label class="font_normal_body">余额区间</label>
195
- <input type="text" style="width:60%" class="input_search" v-model="model.f_balance"
196
- condition="f_balance >= '{}'" placeholder="最小值">
197
- </div>
198
- <div class="col-sm-2 form-group">
199
- <label class="font_normal_body">&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
200
- <input type="text" style="width:60%" class="input_search" v-model="model.balance2"
201
- condition="f_balance <= '{}'" placeholder="最大值">
202
- </div>
203
- <div class="col-sm-2 form-group">
204
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
205
- <v-select :value.sync="model.f_inputtor"
206
- v-model="model.f_inputtor" condition="f_inputtor = '{}'"
207
- :options='$parent.$parent.inputtores' placeholder='请选择'
208
- multiple = "true"
209
- close-on-select></v-select>
210
- </div>
211
- <!-- <div class="col-sm-2" >-->
212
- <!-- <label for="f_balance" class="font_normal_body">账户结余</label>-->
213
- <!-- <div class="form-group">-->
214
- <!-- <v-input id="f_balance" placeholder="账户结余"-->
215
- <!-- :expression.sync = 'model.f_balance'-->
216
- <!-- v-model="model.f_balance"-->
217
- <!-- condition= "f_balance {}"-->
218
- <!-- :show-reset-button="reset"-->
219
- <!-- v-ref:f_balance>-->
220
- <!-- </v-input>-->
221
- <!-- </div>-->
222
- <!-- </div>-->
223
- <div class="col-sm-2 form-group">
224
- <label for="startDate" class="font_normal_body">开始日期</label>
225
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
226
- v-model="model.startDate"
227
- :value.sync="model.startDate"
228
- :format="'yyyy-MM-dd'"
229
- :show-reset-button="true"
230
- condition="f_createfile_date >= '{} 00:00:00'">
231
- </datepicker>
232
- </div>
233
- <div class="col-sm-2 form-group">
234
- <label for="endDate" class="font_normal_body">结束日期</label>
235
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
236
- v-model="model.endDate"
237
- :value.sync="model.endDate"
238
- :format="'yyyy-MM-dd'"
239
- :show-reset-button="true"
240
- condition="f_createfile_date <= '{} 23:59:59'">
241
- </datepicker>
242
- </div>
243
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
244
-
245
- <div class="col-sm-2 form-group">
246
- <label class="font_normal_body">&emsp;小区域</label>
247
- <v-select :value.sync="model.f_small_area"
248
- v-model="model.f_small_area" condition="f_small_area in {}"
249
- :options='$parent.$parent.smallareas' placeholder='请选择'
250
- multiple = "true"
251
- close-on-select></v-select>
252
- </div>
253
- <div class="col-sm-2 form-group" >
254
- <label class="font_normal_body">区域</label>
255
- <input type="text" style="width:60%" class="input_search" v-model="model.f_street"
256
- condition="f_street like '%{}%'" placeholder='区域'>
257
- </div>
258
-
259
- </div>
260
- </div>
261
- </criteria>
262
-
263
-
264
- <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
265
- <template partial='head'>
266
- <tr>
267
- <th>
268
- <nobr>客户编号</nobr>
269
- </th>
270
- <th>
271
- <nobr>客户名称</nobr>
272
- </th>
273
- <th>
274
- <nobr>客户电话</nobr>
275
- </th>
276
- <th>
277
- <nobr>身份证号</nobr>
278
- </th>
279
- <th>
280
- <nobr>账户余额</nobr>
281
- </th>
282
- <th>
283
- <nobr>客户地址</nobr>
284
- </th>
285
- <th>
286
- <nobr>区域</nobr>
287
- </th>
288
- <th>
289
- <nobr>小区</nobr>
290
- </th>
291
- <th>
292
- <nobr>楼栋</nobr>
293
- </th>
294
- <th>
295
- <nobr>单元</nobr>
296
- </th>
297
- <th>
298
- <nobr>楼层</nobr>
299
- </th>
300
- <th>
301
- <nobr>门牌号</nobr>
302
- </th>
303
- <th>
304
- <nobr>客户状态</nobr>
305
- </th>
306
- <th>
307
- <nobr>建档日期</nobr>
308
- </th>
309
- <th>
310
- <nobr>建档人</nobr>
311
- </th>
312
- <th>
313
- <nobr>备注</nobr>
314
- </th>
315
- <!-- <th>-->
316
- <!-- <nobr>部门</nobr>-->
317
- <!-- </th>-->
318
- <!-- <th>-->
319
- <!-- <nobr>公司</nobr>-->
320
- <!-- </th>-->
321
- </tr>
322
- </template>
323
- <template partial='body'>
324
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" ><nobr>
325
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
326
- </nobr> </td>
327
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
328
- <nobr>{{row.f_user_name}}</nobr>
329
- </td>
330
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
331
- <nobr>{{row.f_user_phone}}</nobr>
332
- </td>
333
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
334
- <nobr>{{row.f_idnumber}}</nobr>
335
- </td>
336
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
337
- <nobr>{{row.f_balance}}</nobr>
338
- </td>
339
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
340
- <nobr>{{row.f_address}}</nobr>
341
- </td>
342
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
343
- <nobr>{{row.f_street}}</nobr>
344
- </td>
345
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
346
- <nobr>{{row.f_residential_area}}</nobr>
347
- </td>
348
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
349
- <nobr>{{row.f_building}}</nobr>
350
- </td>
351
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
352
- <nobr>{{row.f_unit}}</nobr>
353
- </td>
354
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
355
- <nobr>{{row.f_floor}}</nobr>
356
- </td>
357
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
358
- <nobr>{{row.f_room}}</nobr>
359
- </td>
360
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
361
- <nobr>{{row.f_user_state}}</nobr>
362
- </td>
363
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
364
- <nobr>{{row.f_createfile_date}}</nobr>
365
- </td>
366
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
367
- <nobr>{{row.f_createfile_person}}</nobr>
368
- </td>
369
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
370
- <nobr>{{row.f_comments}}</nobr>
371
- </td>
372
- <!-- <td style="text-align: center;">-->
373
- <!-- <nobr>{{row.f_depname}}</nobr>-->
374
- <!-- </td>-->
375
- <!-- <td style="text-align: center;">-->
376
- <!-- <nobr>{{row.f_orgname}}</nobr>-->
377
- <!-- </td>-->
378
- </template>
379
- <template partial='foot'>
380
- </template>
381
- </data-grid>
382
- </criteria-paged>
383
-
384
- <table class="table-hover">
385
- <tr style="position: relative" class="table-bordered">
386
- <td
387
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
388
- 汇总信息
389
- </td>
390
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
391
- 结余合计:&emsp;{{sumsmodel.f_balance}}
392
- </td>
393
- </tr>
394
- </table>
395
-
396
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
397
- <!--<header slot="modal-header" class="modal-header text-center">-->
398
- <!--<h4 class="modal-title">打印列选择</h4>-->
399
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
400
- <!--<label for="f_generations" class="font-size">全选</label>-->
401
- <!--</header>-->
402
- <!--<article slot="modal-body">-->
403
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
404
- <!--<div class="col-sm-3" v-for="f in fields">-->
405
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
406
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
407
- <!--</div>-->
408
- <!--</div>-->
409
- <!--</article>-->
410
- <!--<footer slot="modal-footer" class="modal-footer">-->
411
- <!--<center>-->
412
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
413
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
414
- <!--<print-table :model='model' v-show="false" v-ref:print-->
415
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
416
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
417
- <!--:fields="modelval" :printpage="true">-->
418
- <!--</print-table>-->
419
- <!--</center>-->
420
- <!--</footer>-->
421
- <!--</modal>-->
422
- <!--<user-detail v-if="userdetail.show" :data="userdetail"></user-detail>-->
423
- </div>
424
- <div v-if="show">
425
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
426
- </div>
427
- </div>
428
- </div>
429
- </div>
430
- </template>
431
-
432
- <script>
433
- import {HttpResetClass, PagedList} from 'vue-client'
434
- import defaultPrint from './../../components/sale/config/DefaultPrint'
435
- import exportConfig from './../../components/sale/config/exportConfig'
436
-
437
- let readySomething = async function (self) {
438
- await self.$MagGetSaleParam.initinputtor();
439
- await self.getinputtores();
440
- // console.log("=======================>区域",self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid))
441
- self.smallareas=[{label: '全部',value: ''},...await self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid)]
442
- console.log("=======================>smallareas",self.smallareas)
443
-
444
- // 获取区县
445
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
446
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
447
- // await self.$refs.paged.$refs.cri.search()
448
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
449
- }
450
-
451
- export default {
452
- data() {
453
- return {
454
- other:[],
455
- footer:[],
456
- model: new PagedList('rs/sql/filesQuery', 20, {orderitem:`' f_userinfo_code desc'`}, {f_balance: 0}),
457
- criteriaShow: false,
458
- orgCondtionStr: '',
459
- modelval: [],
460
- printshow: false,
461
- all: false,
462
- fields: {},
463
- balance2:'',
464
- thead: '',
465
- tfoot: '',
466
- area: [],
467
- //合计数据
468
- sumsmodel: {},
469
- initres: {
470
- org:[this.$login.f.orgid],
471
- dep:[],
472
- user:[],
473
- },
474
- userdetail: {
475
- show: false,
476
- f_userinfo_code: '',
477
- f_filialeids: ''
478
- },
479
- userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
480
- usestate: this.$appdata.getParam('使用状态'),
481
- show:false,
482
- rowdata:{},
483
- meterInfo:{},
484
- deviceInfo:{},
485
- condition2:'',
486
- sliceArea: [],
487
- weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
488
- //小区
489
- residentialArea: [],
490
- street:[],
491
- smallareas:[{label: '全部',value: ''}], //区域
492
- inputtores:[{label: '全部',value: ''}], //抄表员
493
- allorgid:[],
494
- f_filialeid: this.$login.f.f_orgid,
495
- }
496
- },
497
- ready() {
498
- console.log("===========roncheng===============")
499
- this.getaddress()
500
-
501
- readySomething(this).then(() => {
502
- this.$emit('ready')
503
- }).catch((error) => {
504
- this.$emit('error', error)
505
- })
506
- this.initAreas(this.$login.f.orgid)
507
- },
508
- methods: {
509
- async getinputtores () {
510
- // 获取抄表员
511
- let rs = []
512
- if (this.$login.f.f_gasman.length > 0) {
513
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
514
- let temp = {
515
- label: this.$login.f.f_gasman[i].name,
516
- value: this.$login.f.f_gasman[i].name
517
- }
518
- rs.push(temp)
519
- }
520
- }
521
- this.inputtores = [{label: '全部', value: ''}, ...rs]
522
- },
523
- async updateParams() {
524
- await this.$MagLoadParams.loadParam(this.f_filialeid)
525
- this.inputtores = [];
526
- this.inputtores.push({label: "全部", value: ""})
527
- if(this.allorgid!=null){
528
- this.allorgid.forEach((res)=>{
529
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
530
- })
531
- }
532
- },
533
- getotherfooter () {
534
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
535
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
536
- this.other = [];
537
- this.footer = [];
538
- let exportdata = this.getCondition;
539
- let otherInData = [];
540
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
541
- let footerData = [], exportfield = this.getExportField;
542
- footerData.push("合计");
543
- let self = this;
544
- for (var field in self.sumsmodel) {
545
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
546
- }
547
- this.footer.push(footerData);
548
- this.other.push(otherInData);
549
- },
550
- async getaddress(){
551
- console.log('开始获取小区')
552
- let HttpReset = new HttpResetClass()
553
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
554
- data: {
555
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
556
- }
557
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
558
- console.log('小区',data)
559
- let house = []
560
- for (let row of data.data){
561
- console.log('开始保存小区')
562
- house.push({label: row.f_residential_area, value: row.f_residential_area})
563
- }
564
- this.residentialArea = house
565
- let street= await HttpReset.load('POST', 'rs/sql/manage_getstreetlist', {
566
- data: {
567
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
568
- }
569
- }, {resolveMsg: null, rejectMsg: '获取区域失败!'})
570
- console.log('区域',data)
571
- let abc = []
572
- for (let row of street.data){
573
- console.log('开始保存区域')
574
- abc.push({label: row.f_street, value: row.f_street})
575
- }
576
- this.street = abc
577
- },
578
-
579
- //把数据库查询数据转换为下拉数据
580
- calculate(rows){
581
- let data = []
582
- rows.forEach((row, n) => {
583
- data[n] = {label: row.f_residential_area, value: row.id}
584
- })
585
- return data
586
- },
587
- search(){
588
- this.$refs.paged.$refs.cri.search()
589
- },
590
- cancel(obj) {
591
- this.show = false
592
- },
593
- showmsg(obj){
594
-
595
- this.rowdata=obj
596
- this.show=true
597
- // let http = new HttpResetClass()
598
- // http.load('POST','rs/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
599
- // {resolveMsg: null, rejectMsg: null}).then((res) => {
600
- // this.meterInfo = res.data})
601
- // let http2 = new HttpResetClass()
602
- // http2.load('POST','rs/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
603
- // {resolveMsg: null, rejectMsg: null}).then((res) => {
604
- // this.deviceInfo = res.data})
605
-
606
- // this.f_userinfo_id=obj.f_userinfo_id
607
- },
608
-
609
- async initAreas (val) {
610
-
611
- if (val) {
612
- let getAllArea = await this.$resetpost('/rs/search', {
613
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
614
- userid: this.$login.f.id
615
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
616
-
617
- let arr = getAllArea.data.filter((res) => {
618
- return res.parentid == val
619
- })
620
- console.log('过滤之后的片区', arr)
621
- this.sliceArea = []
622
- this.sliceArea.push({label: "全部", value: ""})
623
- arr.forEach((res) => {
624
- this.sliceArea.push({label: res.name, value: res.name})
625
- })
626
- console.log(this.sliceArea)
627
- }
628
- },
629
- userTypeChange () {
630
- this.gasproperties=[]
631
- if(this.$refs.paged.$refs.cri.model !==null) {
632
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
633
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
634
- // this.gasproperties.push({label: '全部', value: ''})
635
- }
636
- else{
637
- this.gasproperties =[{label: '全部', value: ''}]
638
- }
639
- },
640
- selfSearch(args) {
641
- //小区查询条件
642
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
643
- console.log("=====小区model绑定====",this.area)
644
- if(this.area.length !== 0){
645
- let str = JSON.stringify(this.area)
646
- str = str.replace(/"/g,`'`)
647
- str = str.replace(/\[/g,``)
648
- str = str.replace(/\]/g,``)
649
- console.log("=====小区model22222222222绑定====",str)
650
- //查询多个小区时条件
651
- args.condition += ` and f_residential_area in ( ${str} )`
652
- }
653
-
654
- if (!this.orgCondtionStr) {
655
- args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
656
- } else {
657
- args.condition = `${args.condition}` + this.orgCondtionStr
658
- }
659
- this.condition2 = args.condition
660
- this.model.search(args.condition, args.model)
661
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
662
- console.log('合计字段', this.sumsmodel)
663
- },
664
- clear() {
665
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
666
- this.$refs.paged.$refs.cri.model[key] = []
667
- })
668
- },
669
- hidden() {
670
- this.criteriaShow = !this.criteriaShow
671
- },
672
- getRes(obj) {
673
- this.orgCondtionStr = obj
674
- },
675
- stamp() {
676
- this.all = false
677
- //默认选择要打印的列
678
- this.modelval = defaultPrint.config
679
- this.fields = this.getfield
680
- console.log('所有打印字段', this.fields)
681
- this.printshow = true
682
- this.put()
683
- },
684
- put() {
685
- // 对Modelval进行排序
686
- this.sortModelval()
687
- this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
688
- for (let key of this.modelval) {
689
- this.thead += '<th>' + this.fields[key] + '</th>'
690
- }
691
- this.thead += '</tr>'
692
- },
693
- print() {
694
- this.$refs.print.PrintAsFile()
695
- this.printshow = false
696
- },
697
- close() {
698
- this.printshow = false
699
- },
700
- // 对选择的列进行排序
701
- sortModelval() {
702
- let sortModel = []
703
- Object.keys(this.fields).forEach((key) => {
704
- if (this.modelval.includes(key)) {
705
- sortModel.push(key)
706
- }
707
- })
708
- this.modelval = sortModel
709
- console.log('选择的打印的字段', this.modelval)
710
- },
711
- dblclick(row, index) {
712
- console.log('双击之后数据', row, index)
713
- this.userdetail.show = true
714
- this.userdetail.f_userinfo_code = row.f_userinfo_code
715
- this.userdetail.f_filialeids = row.f_filialeids
716
- }
717
- },
718
- watch: {
719
- 'all'(val) {
720
- if (val) {
721
- this.modelval = this.bodyData
722
- } else {
723
- this.modelval = defaultPrint.config
724
- this.put()
725
- }
726
- },
727
- 'modelval.length'() {
728
- this.put()
729
- },
730
- sumsmodel:{
731
- handler: function(val) {
732
- this.getotherfooter();
733
- },
734
- deep: true
735
- },
736
- 'orgCondtionStr'(val) {
737
- let res = val.match(/'(.*?)'/)
738
- console.log('正则提取:',res && res[1])
739
- if (res) {
740
- this.f_filialeid = res[1]
741
- if(res.input !=null){
742
- let resorgid = res.input.substring(res.input.indexOf("'"));
743
- if(resorgid!= null && resorgid!=''){
744
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
745
- // resorgid = resorgid.replaceAll("'","");
746
- resorgid = resorgid.replace(/'/g,"");
747
- this.allorgid = resorgid.split(",")
748
- }
749
- }
750
- this.updateParams()
751
- }
752
- },
753
- },
754
- computed: {
755
- authArr () {
756
- return this.$login.r ? this.$login.r : []
757
- },
758
- gaspropertie() {
759
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
760
- },
761
- getCondition() {
762
- return {condition: this.condition2}
763
- },
764
- getfield() {
765
- let data = {}
766
- this.bodyData.forEach((value, index) => {
767
- data[this.bodyData[index]] = this.headData[index]
768
- })
769
- //合计字段打印
770
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
771
- if (this.sumsmodel) {
772
- Object.keys(this.sumsmodel).forEach((key) => {
773
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
774
- })
775
- } else {
776
- this.tfoot += '暂无'
777
- }
778
- this.tfoot += '</th></tr>'
779
- return data
780
- },
781
- getExportField() {
782
- return exportConfig.userConfig
783
- },
784
- inputtor () {
785
- // 获取抄表员
786
- console.log('获取抄表员', this.$login.f)
787
- let rs = []
788
- if (this.$login.f.f_gasman.length > 0) {
789
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
790
- let temp = {
791
- label: this.$login.f.f_gasman[i].name,
792
- value: this.$login.f.f_gasman[i].name
793
- }
794
- rs.push(temp)
795
- }
796
- }
797
-
798
- return [{label: '全部', value: ''}, ...rs]
799
- },
800
- userstates() {
801
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
802
- },
803
- usertypes() {
804
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
805
- },
806
- // sliceArea() {
807
- // let rs = new Array()
808
- // for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
809
- // let temp = {
810
- // label: this.$login.f.f_allArea[i].label,
811
- // value: this.$login.f.f_allArea[i].label
812
- // }
813
- // rs.push(temp)
814
- // }
815
- // return [{label: '全部', value: ''}, ...rs]
816
- // }
817
- }
818
- }
819
- </script>
820
- <style>
821
- .back-red{ /* 红色背景 */
822
- background-color: #F6C6CE;
823
- }
824
- .back-blue{ /* 蓝色背景 */
825
-
826
- }
827
- </style>
828
-
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" v-if="!show">
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label class="font_normal_body">客户电话</label>
22
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
23
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
24
+ </div>
25
+ <div class="col-sm-2 form-group">
26
+ <label class="font_normal_body">客户类型</label>
27
+ <v-select :value.sync="model.f_user_type"
28
+ :options='$parent.$parent.usertypes'
29
+ @change="$parent.$parent.userTypeChange()"
30
+ placeholder='请选择' v-model="model.f_user_type"
31
+ condition="f_user_type = '{}'"
32
+ close-on-select></v-select>
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body">用气性质</label>
36
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
37
+ :options='$parent.$parent.gaspropertie' placeholder='请选择'
38
+ condition="f_gasproperties = '{}'"
39
+ close-on-select></v-select>
40
+ </div>
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getExportField"
48
+ :footer="$parent.$parent.footer"
49
+ :header="$parent.$parent.other"
50
+ v-if="$parent.$parent.authArr.includes('档案查询导出')"
51
+ sqlurl="rs/logic/exportfile" sql-name="filesQuery" template-name='用户查询导出'
52
+ :choose-col="true"></export-excel>
53
+
54
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
55
+ </div>
56
+ </div>
57
+ <div class="row" v-show="$parent.$parent.criteriaShow">
58
+ <div class="col-sm-2 form-group">
59
+ <label class="font_normal_body">身份证号</label>
60
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
61
+ condition="f_idnumber like '%{}%'" placeholder="身份证号">
62
+ </div>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">使用状态</label>
65
+ <v-select :value.sync="model.f_usestate"
66
+ v-model="model.f_usestate"
67
+ :options='$parent.$parent.usestate' placeholder='请选择'
68
+ condition="f_usestate = '{}'"
69
+ close-on-select></v-select>
70
+ </div>
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人数&nbsp;&nbsp;&nbsp;</label>
73
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_people_num"
74
+ condition="f_people_num = '{}'" placeholder="人数">
75
+ </div>
76
+ <!--<div class="col-sm-2">
77
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;片区&nbsp;&nbsp;&nbsp;</label>
78
+ <v-select
79
+ :value.sync="model.f_slice_area"
80
+ v-model="model.f_slice_area"
81
+ :options='$parent.$parent.sliceArea'
82
+ placeholder='请选择'
83
+ condition="f_slice_area = '{}'"
84
+ close-on-select></v-select>
85
+ </div>-->
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">微信绑定</label>
88
+ <v-select
89
+ :value.sync="model.f_wechat"
90
+ v-model="model.f_wechat"
91
+ :options='$parent.$parent.weixinSign'
92
+ placeholder='请选择'
93
+ condition="f_wechat = '{}'"
94
+ close-on-select>
95
+ </v-select>
96
+ </div>
97
+ <div class="col-sm-2 form-group">
98
+ <label class="font_normal_body">客户地址</label>
99
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
100
+ condition="f_address like '%{}%'" placeholder='客户地址'>
101
+ </div>
102
+ <div class="col-sm-2 form-group">
103
+ <label for="startDate" class="font_normal_body">建档日期</label>
104
+ <datepicker placeholder="建档日期" style="width:60%"
105
+ v-model="model.f_createfile_date"
106
+ :value.sync="model.f_createfile_date"
107
+ :format="'yyyy-MM-dd'"
108
+ :show-reset-button="true"
109
+ condition="f_createfile_date >= '{} 00:00:00'">
110
+ </datepicker>
111
+ </div>
112
+ <div class="col-sm-2 form-group">
113
+ <label class="font_normal_body">建档部门</label>
114
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_depname"
115
+ condition="f_depname like '%{}%'" placeholder='建档部门'>
116
+ </div>
117
+ <div class="col-sm-2 form-group">
118
+ <label class="font_normal_body">报警器编码</label>
119
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_alarm_code"
120
+ condition="f_alarm_code like '%{}%'" placeholder='报警器编码'>
121
+ </div>
122
+ <div class="col-sm-2 form-group">
123
+ <label class="font_normal_body">发票编码</label>
124
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_taxpayer_id"
125
+ condition="f_taxpayer_id like '%{}%'" placeholder='发票编码'>
126
+ </div>
127
+ <div class="col-sm-2 form-group">
128
+ <label class="font_normal_body">燃气表号</label>
129
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
130
+ condition="f_meternumber like '%{}%'" placeholder='燃气表号'>
131
+ </div>
132
+ <!-- <div class="col-sm-2">-->
133
+ <!-- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区名称&nbsp;&nbsp;&nbsp;</label>-->
134
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"-->
135
+ <!-- condition="f_residential_area like '%{}%'" placeholder="小区"/>-->
136
+ <!-- <div class="col-sm-8">&ndash;&gt;-->
137
+ <!-- <input type="text" v-show="false" v-model="model.f_residential_area" class="input_search" style="width: 80%"&ndash;&gt;-->
138
+ <!--; v-validate:f_residential_area='{required: true }'>&ndash;&gt;-->
139
+ <!-- <v-select :value.sync="model.f_residential_area" :value-single="true"&ndash;&gt;-->
140
+ <!-- class="select_list select"&ndash;&gt;-->
141
+ <!-- :options='fresidentialarea' placeholder='请选择'&ndash;&gt;-->
142
+ <!-- close-on-select search="true">&ndash;&gt;-->
143
+ <!-- </v-select>-->
144
+ <!-- </div>-->
145
+
146
+ <div class="col-sm-2 form-group">
147
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
148
+ <v-select :value.sync="model.f_residential_area"
149
+ class="select_list select"
150
+ enter-push
151
+ multiple = "true"
152
+ v-model="model.f_residential_area"
153
+ style="width: 60%"
154
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
155
+ close-on-select>
156
+
157
+ </v-select>
158
+ </div>
159
+ <div class="col-sm-2 form-group">
160
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;区域&nbsp;&nbsp;&nbsp;</label>
161
+ <v-select :value.sync="model.f_street"
162
+ class="select_list select"
163
+ enter-push
164
+ multiple = "true"
165
+ condition="f_street in {}"
166
+ v-model="model.f_street"
167
+ style="width: 60%"
168
+ :options='$parent.$parent.street' placeholder='选择区域'
169
+ close-on-select>
170
+
171
+ </v-select>
172
+ </div>
173
+ <div class="col-sm-2 form-group">
174
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼栋&nbsp;&nbsp;&nbsp;</label>
175
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
176
+ condition="f_building = '{}'" placeholder="楼栋"/>
177
+ </div>
178
+ <div class="col-sm-2 form-group">
179
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;单元&nbsp;&nbsp;&nbsp;</label>
180
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
181
+ condition="f_unit = '{}'" placeholder="单元"/>
182
+ </div>
183
+ <div class="col-sm-2 form-group">
184
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;</label>
185
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
186
+ condition="f_floor = '{}'" placeholder="楼层"/>
187
+ </div>
188
+ <div class="col-sm-2 form-group">
189
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
190
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
191
+ condition="f_room = '{}'" placeholder="门牌号">
192
+ </div>
193
+ <div class="col-sm-2 form-group">
194
+ <label class="font_normal_body">余额区间</label>
195
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_balance"
196
+ condition="f_balance >= '{}'" placeholder="最小值">
197
+ </div>
198
+ <div class="col-sm-2 form-group">
199
+ <label class="font_normal_body">&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
200
+ <input type="text" style="width:60%" class="input_search" v-model="model.balance2"
201
+ condition="f_balance <= '{}'" placeholder="最大值">
202
+ </div>
203
+ <div class="col-sm-2 form-group">
204
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
205
+ <v-select :value.sync="model.f_inputtor"
206
+ v-model="model.f_inputtor" condition="f_inputtor = '{}'"
207
+ :options='$parent.$parent.inputtores' placeholder='请选择'
208
+ multiple = "true"
209
+ close-on-select></v-select>
210
+ </div>
211
+ <!-- <div class="col-sm-2" >-->
212
+ <!-- <label for="f_balance" class="font_normal_body">账户结余</label>-->
213
+ <!-- <div class="form-group">-->
214
+ <!-- <v-input id="f_balance" placeholder="账户结余"-->
215
+ <!-- :expression.sync = 'model.f_balance'-->
216
+ <!-- v-model="model.f_balance"-->
217
+ <!-- condition= "f_balance {}"-->
218
+ <!-- :show-reset-button="reset"-->
219
+ <!-- v-ref:f_balance>-->
220
+ <!-- </v-input>-->
221
+ <!-- </div>-->
222
+ <!-- </div>-->
223
+ <div class="col-sm-2 form-group">
224
+ <label for="startDate" class="font_normal_body">开始日期</label>
225
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
226
+ v-model="model.startDate"
227
+ :value.sync="model.startDate"
228
+ :format="'yyyy-MM-dd'"
229
+ :show-reset-button="true"
230
+ condition="f_createfile_date >= '{} 00:00:00'">
231
+ </datepicker>
232
+ </div>
233
+ <div class="col-sm-2 form-group">
234
+ <label for="endDate" class="font_normal_body">结束日期</label>
235
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
236
+ v-model="model.endDate"
237
+ :value.sync="model.endDate"
238
+ :format="'yyyy-MM-dd'"
239
+ :show-reset-button="true"
240
+ condition="f_createfile_date <= '{} 23:59:59'">
241
+ </datepicker>
242
+ </div>
243
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
244
+
245
+ <div class="col-sm-2 form-group">
246
+ <label class="font_normal_body">&emsp;小区域</label>
247
+ <v-select :value.sync="model.f_small_area"
248
+ v-model="model.f_small_area" condition="f_small_area in {}"
249
+ :options='$parent.$parent.smallareas' placeholder='请选择'
250
+ multiple = "true"
251
+ close-on-select></v-select>
252
+ </div>
253
+ <div class="col-sm-2 form-group" >
254
+ <label class="font_normal_body">区域</label>
255
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_street"
256
+ condition="f_street like '%{}%'" placeholder='区域'>
257
+ </div>
258
+
259
+ </div>
260
+ </div>
261
+ </criteria>
262
+
263
+
264
+ <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
265
+ <template partial='head'>
266
+ <tr>
267
+ <th>
268
+ <nobr>客户编号</nobr>
269
+ </th>
270
+ <th>
271
+ <nobr>客户名称</nobr>
272
+ </th>
273
+ <th>
274
+ <nobr>客户电话</nobr>
275
+ </th>
276
+ <th>
277
+ <nobr>身份证号</nobr>
278
+ </th>
279
+ <th>
280
+ <nobr>账户余额</nobr>
281
+ </th>
282
+ <th>
283
+ <nobr>客户地址</nobr>
284
+ </th>
285
+ <th>
286
+ <nobr>区域</nobr>
287
+ </th>
288
+ <th>
289
+ <nobr>小区</nobr>
290
+ </th>
291
+ <th>
292
+ <nobr>楼栋</nobr>
293
+ </th>
294
+ <th>
295
+ <nobr>单元</nobr>
296
+ </th>
297
+ <th>
298
+ <nobr>楼层</nobr>
299
+ </th>
300
+ <th>
301
+ <nobr>门牌号</nobr>
302
+ </th>
303
+ <th>
304
+ <nobr>客户状态</nobr>
305
+ </th>
306
+ <th>
307
+ <nobr>建档日期</nobr>
308
+ </th>
309
+ <th>
310
+ <nobr>建档人</nobr>
311
+ </th>
312
+ <th>
313
+ <nobr>备注</nobr>
314
+ </th>
315
+ <!-- <th>-->
316
+ <!-- <nobr>部门</nobr>-->
317
+ <!-- </th>-->
318
+ <!-- <th>-->
319
+ <!-- <nobr>公司</nobr>-->
320
+ <!-- </th>-->
321
+ </tr>
322
+ </template>
323
+ <template partial='body'>
324
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" ><nobr>
325
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
326
+ </nobr> </td>
327
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
328
+ <nobr>{{row.f_user_name}}</nobr>
329
+ </td>
330
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
331
+ <nobr>{{row.f_user_phone}}</nobr>
332
+ </td>
333
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
334
+ <nobr>{{row.f_idnumber}}</nobr>
335
+ </td>
336
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
337
+ <nobr>{{row.f_balance}}</nobr>
338
+ </td>
339
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
340
+ <nobr>{{row.f_address}}</nobr>
341
+ </td>
342
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
343
+ <nobr>{{row.f_street}}</nobr>
344
+ </td>
345
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
346
+ <nobr>{{row.f_residential_area}}</nobr>
347
+ </td>
348
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
349
+ <nobr>{{row.f_building}}</nobr>
350
+ </td>
351
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
352
+ <nobr>{{row.f_unit}}</nobr>
353
+ </td>
354
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
355
+ <nobr>{{row.f_floor}}</nobr>
356
+ </td>
357
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
358
+ <nobr>{{row.f_room}}</nobr>
359
+ </td>
360
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
361
+ <nobr>{{row.f_user_state}}</nobr>
362
+ </td>
363
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
364
+ <nobr>{{row.f_createfile_date}}</nobr>
365
+ </td>
366
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
367
+ <nobr>{{row.f_createfile_person}}</nobr>
368
+ </td>
369
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
370
+ <nobr>{{row.f_comments}}</nobr>
371
+ </td>
372
+ <!-- <td style="text-align: center;">-->
373
+ <!-- <nobr>{{row.f_depname}}</nobr>-->
374
+ <!-- </td>-->
375
+ <!-- <td style="text-align: center;">-->
376
+ <!-- <nobr>{{row.f_orgname}}</nobr>-->
377
+ <!-- </td>-->
378
+ </template>
379
+ <template partial='foot'>
380
+ </template>
381
+ </data-grid>
382
+ </criteria-paged>
383
+
384
+ <table class="table-hover">
385
+ <tr style="position: relative" class="table-bordered">
386
+ <td
387
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
388
+ 汇总信息
389
+ </td>
390
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
391
+ 结余合计:&emsp;{{sumsmodel.f_balance}}
392
+ </td>
393
+ </tr>
394
+ </table>
395
+
396
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
397
+ <!--<header slot="modal-header" class="modal-header text-center">-->
398
+ <!--<h4 class="modal-title">打印列选择</h4>-->
399
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
400
+ <!--<label for="f_generations" class="font-size">全选</label>-->
401
+ <!--</header>-->
402
+ <!--<article slot="modal-body">-->
403
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
404
+ <!--<div class="col-sm-3" v-for="f in fields">-->
405
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
406
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
407
+ <!--</div>-->
408
+ <!--</div>-->
409
+ <!--</article>-->
410
+ <!--<footer slot="modal-footer" class="modal-footer">-->
411
+ <!--<center>-->
412
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
413
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
414
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
415
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
416
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
417
+ <!--:fields="modelval" :printpage="true">-->
418
+ <!--</print-table>-->
419
+ <!--</center>-->
420
+ <!--</footer>-->
421
+ <!--</modal>-->
422
+ <!--<user-detail v-if="userdetail.show" :data="userdetail"></user-detail>-->
423
+ </div>
424
+ <div v-if="show">
425
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
426
+ </div>
427
+ </div>
428
+ </div>
429
+ </div>
430
+ </template>
431
+
432
+ <script>
433
+ import {HttpResetClass, PagedList} from 'vue-client'
434
+ import defaultPrint from './../../components/sale/config/DefaultPrint'
435
+ import exportConfig from './../../components/sale/config/exportConfig'
436
+
437
+ let readySomething = async function (self) {
438
+ await self.$MagGetSaleParam.initinputtor();
439
+ await self.getinputtores();
440
+ // console.log("=======================>区域",self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid))
441
+ self.smallareas=[{label: '全部',value: ''},...await self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid)]
442
+ console.log("=======================>smallareas",self.smallareas)
443
+
444
+ // 获取区县
445
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
446
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
447
+ // await self.$refs.paged.$refs.cri.search()
448
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
449
+ }
450
+
451
+ export default {
452
+ data() {
453
+ return {
454
+ other:[],
455
+ footer:[],
456
+ model: new PagedList('rs/sql/filesQuery', 20, {orderitem:`' f_userinfo_code desc'`}, {f_balance: 0}),
457
+ criteriaShow: false,
458
+ orgCondtionStr: '',
459
+ modelval: [],
460
+ printshow: false,
461
+ all: false,
462
+ fields: {},
463
+ balance2:'',
464
+ thead: '',
465
+ tfoot: '',
466
+ area: [],
467
+ //合计数据
468
+ sumsmodel: {},
469
+ initres: {
470
+ org:[this.$login.f.orgid],
471
+ dep:[],
472
+ user:[],
473
+ },
474
+ userdetail: {
475
+ show: false,
476
+ f_userinfo_code: '',
477
+ f_filialeids: ''
478
+ },
479
+ userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
480
+ usestate: this.$appdata.getParam('使用状态'),
481
+ show:false,
482
+ rowdata:{},
483
+ meterInfo:{},
484
+ deviceInfo:{},
485
+ condition2:'',
486
+ sliceArea: [],
487
+ weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
488
+ //小区
489
+ residentialArea: [],
490
+ street:[],
491
+ smallareas:[{label: '全部',value: ''}], //区域
492
+ inputtores:[{label: '全部',value: ''}], //抄表员
493
+ allorgid:[],
494
+ f_filialeid: this.$login.f.f_orgid,
495
+ }
496
+ },
497
+ ready() {
498
+ console.log("===========roncheng===============")
499
+ this.getaddress()
500
+
501
+ readySomething(this).then(() => {
502
+ this.$emit('ready')
503
+ }).catch((error) => {
504
+ this.$emit('error', error)
505
+ })
506
+ this.initAreas(this.$login.f.orgid)
507
+ },
508
+ methods: {
509
+ async getinputtores () {
510
+ // 获取抄表员
511
+ let rs = []
512
+ if (this.$login.f.f_gasman.length > 0) {
513
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
514
+ let temp = {
515
+ label: this.$login.f.f_gasman[i].name,
516
+ value: this.$login.f.f_gasman[i].name
517
+ }
518
+ rs.push(temp)
519
+ }
520
+ }
521
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
522
+ },
523
+ async updateParams() {
524
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
525
+ this.inputtores = [];
526
+ this.inputtores.push({label: "全部", value: ""})
527
+ if(this.allorgid!=null){
528
+ this.allorgid.forEach((res)=>{
529
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
530
+ })
531
+ }
532
+ },
533
+ getotherfooter () {
534
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
535
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
536
+ this.other = [];
537
+ this.footer = [];
538
+ let exportdata = this.getCondition;
539
+ let otherInData = [];
540
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
541
+ let footerData = [], exportfield = this.getExportField;
542
+ footerData.push("合计");
543
+ let self = this;
544
+ for (var field in self.sumsmodel) {
545
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
546
+ }
547
+ this.footer.push(footerData);
548
+ this.other.push(otherInData);
549
+ },
550
+ async getaddress(){
551
+ console.log('开始获取小区')
552
+ let HttpReset = new HttpResetClass()
553
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
554
+ data: {
555
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
556
+ }
557
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
558
+ console.log('小区',data)
559
+ let house = []
560
+ for (let row of data.data){
561
+ console.log('开始保存小区')
562
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
563
+ }
564
+ this.residentialArea = house
565
+ let street= await HttpReset.load('POST', 'rs/sql/manage_getstreetlist', {
566
+ data: {
567
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
568
+ }
569
+ }, {resolveMsg: null, rejectMsg: '获取区域失败!'})
570
+ console.log('区域',data)
571
+ let abc = []
572
+ for (let row of street.data){
573
+ console.log('开始保存区域')
574
+ abc.push({label: row.f_street, value: row.f_street})
575
+ }
576
+ this.street = abc
577
+ },
578
+
579
+ //把数据库查询数据转换为下拉数据
580
+ calculate(rows){
581
+ let data = []
582
+ rows.forEach((row, n) => {
583
+ data[n] = {label: row.f_residential_area, value: row.id}
584
+ })
585
+ return data
586
+ },
587
+ search(){
588
+ this.$refs.paged.$refs.cri.search()
589
+ },
590
+ cancel(obj) {
591
+ this.show = false
592
+ },
593
+ showmsg(obj){
594
+
595
+ this.rowdata=obj
596
+ this.show=true
597
+ // let http = new HttpResetClass()
598
+ // http.load('POST','rs/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
599
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
600
+ // this.meterInfo = res.data})
601
+ // let http2 = new HttpResetClass()
602
+ // http2.load('POST','rs/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
603
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
604
+ // this.deviceInfo = res.data})
605
+
606
+ // this.f_userinfo_id=obj.f_userinfo_id
607
+ },
608
+
609
+ async initAreas (val) {
610
+
611
+ if (val) {
612
+ let getAllArea = await this.$resetpost('/rs/search', {
613
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
614
+ userid: this.$login.f.id
615
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
616
+
617
+ let arr = getAllArea.data.filter((res) => {
618
+ return res.parentid == val
619
+ })
620
+ console.log('过滤之后的片区', arr)
621
+ this.sliceArea = []
622
+ this.sliceArea.push({label: "全部", value: ""})
623
+ arr.forEach((res) => {
624
+ this.sliceArea.push({label: res.name, value: res.name})
625
+ })
626
+ console.log(this.sliceArea)
627
+ }
628
+ },
629
+ userTypeChange () {
630
+ this.gasproperties=[]
631
+ if(this.$refs.paged.$refs.cri.model !==null) {
632
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
633
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
634
+ // this.gasproperties.push({label: '全部', value: ''})
635
+ }
636
+ else{
637
+ this.gasproperties =[{label: '全部', value: ''}]
638
+ }
639
+ },
640
+ selfSearch(args) {
641
+ //小区查询条件
642
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
643
+ console.log("=====小区model绑定====",this.area)
644
+ if(this.area.length !== 0){
645
+ let str = JSON.stringify(this.area)
646
+ str = str.replace(/"/g,`'`)
647
+ str = str.replace(/\[/g,``)
648
+ str = str.replace(/\]/g,``)
649
+ console.log("=====小区model22222222222绑定====",str)
650
+ //查询多个小区时条件
651
+ args.condition += ` and f_residential_area in ( ${str} )`
652
+ }
653
+
654
+ if (!this.orgCondtionStr) {
655
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
656
+ } else {
657
+ args.condition = `${args.condition}` + this.orgCondtionStr
658
+ }
659
+ this.condition2 = args.condition
660
+ this.model.search(args.condition, args.model)
661
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
662
+ console.log('合计字段', this.sumsmodel)
663
+ },
664
+ clear() {
665
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
666
+ this.$refs.paged.$refs.cri.model[key] = []
667
+ })
668
+ },
669
+ hidden() {
670
+ this.criteriaShow = !this.criteriaShow
671
+ },
672
+ getRes(obj) {
673
+ this.orgCondtionStr = obj
674
+ },
675
+ stamp() {
676
+ this.all = false
677
+ //默认选择要打印的列
678
+ this.modelval = defaultPrint.config
679
+ this.fields = this.getfield
680
+ console.log('所有打印字段', this.fields)
681
+ this.printshow = true
682
+ this.put()
683
+ },
684
+ put() {
685
+ // 对Modelval进行排序
686
+ this.sortModelval()
687
+ this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
688
+ for (let key of this.modelval) {
689
+ this.thead += '<th>' + this.fields[key] + '</th>'
690
+ }
691
+ this.thead += '</tr>'
692
+ },
693
+ print() {
694
+ this.$refs.print.PrintAsFile()
695
+ this.printshow = false
696
+ },
697
+ close() {
698
+ this.printshow = false
699
+ },
700
+ // 对选择的列进行排序
701
+ sortModelval() {
702
+ let sortModel = []
703
+ Object.keys(this.fields).forEach((key) => {
704
+ if (this.modelval.includes(key)) {
705
+ sortModel.push(key)
706
+ }
707
+ })
708
+ this.modelval = sortModel
709
+ console.log('选择的打印的字段', this.modelval)
710
+ },
711
+ dblclick(row, index) {
712
+ console.log('双击之后数据', row, index)
713
+ this.userdetail.show = true
714
+ this.userdetail.f_userinfo_code = row.f_userinfo_code
715
+ this.userdetail.f_filialeids = row.f_filialeids
716
+ }
717
+ },
718
+ watch: {
719
+ 'all'(val) {
720
+ if (val) {
721
+ this.modelval = this.bodyData
722
+ } else {
723
+ this.modelval = defaultPrint.config
724
+ this.put()
725
+ }
726
+ },
727
+ 'modelval.length'() {
728
+ this.put()
729
+ },
730
+ sumsmodel:{
731
+ handler: function(val) {
732
+ this.getotherfooter();
733
+ },
734
+ deep: true
735
+ },
736
+ 'orgCondtionStr'(val) {
737
+ let res = val.match(/'(.*?)'/)
738
+ console.log('正则提取:',res && res[1])
739
+ if (res) {
740
+ this.f_filialeid = res[1]
741
+ if(res.input !=null){
742
+ let resorgid = res.input.substring(res.input.indexOf("'"));
743
+ if(resorgid!= null && resorgid!=''){
744
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
745
+ // resorgid = resorgid.replaceAll("'","");
746
+ resorgid = resorgid.replace(/'/g,"");
747
+ this.allorgid = resorgid.split(",")
748
+ }
749
+ }
750
+ this.updateParams()
751
+ }
752
+ },
753
+ },
754
+ computed: {
755
+ authArr () {
756
+ return this.$login.r ? this.$login.r : []
757
+ },
758
+ gaspropertie() {
759
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
760
+ },
761
+ getCondition() {
762
+ return {condition: this.condition2}
763
+ },
764
+ getfield() {
765
+ let data = {}
766
+ this.bodyData.forEach((value, index) => {
767
+ data[this.bodyData[index]] = this.headData[index]
768
+ })
769
+ //合计字段打印
770
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
771
+ if (this.sumsmodel) {
772
+ Object.keys(this.sumsmodel).forEach((key) => {
773
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
774
+ })
775
+ } else {
776
+ this.tfoot += '暂无'
777
+ }
778
+ this.tfoot += '</th></tr>'
779
+ return data
780
+ },
781
+ getExportField() {
782
+ return exportConfig.userConfig
783
+ },
784
+ inputtor () {
785
+ // 获取抄表员
786
+ console.log('获取抄表员', this.$login.f)
787
+ let rs = []
788
+ if (this.$login.f.f_gasman.length > 0) {
789
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
790
+ let temp = {
791
+ label: this.$login.f.f_gasman[i].name,
792
+ value: this.$login.f.f_gasman[i].name
793
+ }
794
+ rs.push(temp)
795
+ }
796
+ }
797
+
798
+ return [{label: '全部', value: ''}, ...rs]
799
+ },
800
+ userstates() {
801
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
802
+ },
803
+ usertypes() {
804
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
805
+ },
806
+ // sliceArea() {
807
+ // let rs = new Array()
808
+ // for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
809
+ // let temp = {
810
+ // label: this.$login.f.f_allArea[i].label,
811
+ // value: this.$login.f.f_allArea[i].label
812
+ // }
813
+ // rs.push(temp)
814
+ // }
815
+ // return [{label: '全部', value: ''}, ...rs]
816
+ // }
817
+ }
818
+ }
819
+ </script>
820
+ <style>
821
+ .back-red{ /* 红色背景 */
822
+ background-color: #F6C6CE;
823
+ }
824
+ .back-blue{ /* 蓝色背景 */
825
+
826
+ }
827
+ </style>
828
+