manage-client 4.1.21 → 4.1.22

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