manage-client 3.2.59 → 3.2.63

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,1142 +1,1163 @@
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 @sort="sort">
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 = '{}'" placeholder="客户名称">
19
- </div>
20
- <div class="col-sm-2 form-group" >
21
- <label class="font_normal_body">客户状态</label>
22
- <v-select :value.sync="model.f_user_state"
23
- v-model="model.f_user_state"
24
- :options='$parent.$parent.userstates' placeholder='请选择'
25
- condition="f_user_state = '{}'"
26
- close-on-select></v-select>
27
- </div>
28
-
29
- <div class="span" style = "float:right;">
30
- <button class="button_search button_spacing" v-show="false" @click="$parent.$parent.ReadIDCard()">读取身份证</button>
31
- <read-card :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-ref:readcard></read-card>
32
- <button class="button_search button_spacing" @click="search()">查询</button>
33
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
34
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
35
-
36
- <export-excel :data="$parent.$parent.getCondition"
37
- :field="$parent.$parent.getExportField"
38
- :header="$parent.$parent.other"
39
- v-if="$parent.$parent.authArr.includes('档案查询导出')"
40
- sqlurl="rs/logic/exportfile" sql-name="compreQuery" template-name='综合档案查询导出' :choose-col="true"></export-excel>
41
- <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
42
- :defaultfield="$parent.$parent.defaultfield"
43
- titletable="综合档案查询"
44
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
45
- <div style="float: right" class="button_spacing"
46
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
47
- @click="$parent.$parent.hidden()"></div>
48
- </div>
49
- </div>
50
-
51
- <div class="row" v-show="$parent.$parent.criteriaShow">
52
- <res-select-group :initres="$parent.$parent.initres"
53
- showComponent="['company','department','operator']"
54
- @re-res="$parent.$parent.getRes"></res-select-group>
55
-
56
- <div class="col-sm-2 form-group">
57
- <label class="font_normal_body">气表分类</label>
58
- <v-select :value.sync="model.f_meter_classify"
59
- v-model="model.f_meter_classify"
60
- :options='$parent.$parent.metertypes' placeholder='请选择'
61
- condition="f_meter_classify = '{}'"
62
- close-on-select></v-select>
63
- </div>
64
-
65
- <div class="col-sm-2 form-group">
66
- <label class="font_normal_body">气表品牌</label>
67
- <v-select :value.sync="model.f_meter_brand"
68
- v-model="model.f_meter_brand"
69
- :options='$parent.$parent.meterbrands' placeholder='请选择'
70
- condition="f_meter_brand = '{}'"
71
- close-on-select></v-select>
72
- </div>
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">客户类型</label>
75
- <v-select :value.sync="model.f_user_type"
76
- :options='$parent.$parent.usertypes'
77
- @change="$parent.$parent.userTypeChange()"
78
- placeholder='请选择' v-model="model.f_user_type"
79
- condition="f_user_type = '{}'"
80
- close-on-select></v-select>
81
-
82
- </div>
83
- <div class="col-sm-2 form-group" >
84
- <label for="startDate1" class="font_normal_body" title="抄表开始日期">抄表日期</label>
85
- <datepicker id="startDate1" placeholder="开始日期" style="width:60%"
86
- v-model="model.startDate1"
87
- :value.sync="model.startDate1"
88
- :format="'yyyy-MM-dd'"
89
- :show-reset-button="true"
90
- condition="f_hand_date >= '{} 00:00:00'">
91
- </datepicker>
92
- </div>
93
- <div class="col-sm-2 form-group" >
94
- <label for="endDate1" class="font_normal_body" title="抄表结束日期">抄表日期</label>
95
- <datepicker id="endDate1" placeholder="结束日期" style="width:60%"
96
- v-model="model.endDate1"
97
- :value.sync="model.endDate1"
98
- :format="'yyyy-MM-dd'"
99
- :show-reset-button="true"
100
- condition="f_hand_date <= '{} 23:59:59'">
101
- </datepicker>
102
- </div>
103
- <div class="col-sm-2 form-group">
104
- <label class="font_normal_body">小&emsp;&emsp;区</label>
105
- <v-select :value.sync="model.f_residential_area"
106
- class="select_list select"
107
- enter-push
108
- multiple
109
- condition="f_residential_area in {}"
110
- v-model="model.f_residential_area"
111
- style="width: 60%"
112
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
113
- close-on-select>
114
-
115
- </v-select>
116
- </div>
117
- <div class="col-sm-2 form-group" >
118
- <label class="font_normal_body">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
119
- <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
120
- condition="f_building = '{}'" placeholder='楼号'>
121
- </div>
122
- <div class="col-sm-2 form-group" >
123
- <label class="font_normal_body">单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;元</label>
124
- <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
125
- condition="f_unit = '{}'" placeholder='单元号'>
126
- </div>
127
-
128
- <div class="col-sm-2 form-group" >
129
- <label class="font_normal_body">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;层</label>
130
- <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
131
- condition="f_floor = '{}'" placeholder='楼层号'>
132
- </div>
133
- <div class="col-sm-2 form-group" >
134
- <label class="font_normal_body">门&ensp;牌&ensp;号</label>
135
- <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
136
- condition="f_room = '{}'" 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_address"
141
- condition="f_address like '%{}%'" placeholder='客户地址'>
142
- </div>
143
- <div class="col-sm-2 form-group" >
144
- <label class="font_normal_body">用&ensp;气&ensp;点</label>
145
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userfiles_address"
146
- condition="f_userfiles_address like '%{}%'" placeholder="用气点">
147
- </div>
148
- <div class="col-sm-2 form-group">
149
- <label class="font_normal_body">用气性质</label>
150
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
151
- :options='$parent.$parent.gasproperties' placeholder='请选择'
152
- multiple
153
- condition="f_gasproperties in {}"
154
- close-on-select></v-select>
155
- </div>
156
- <div class="col-sm-2 form-group">
157
- <label class="font_normal_body">气价类型</label>
158
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
159
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
160
- condition="f_price_type in {}"
161
- multiple
162
- close-on-select v-ref:type>
163
- </v-select>
164
- </div>
165
- <div class="col-sm-2 form-group">
166
- <label class="font_normal_body">气价名称</label>
167
- <v-select :value.sync="model.f_price_name" v-model="model.f_price_name"
168
- :options="$parent.$parent.pricenames" placeholder='气价名称'
169
- condition="f_price_name in {}"
170
- multiple
171
- close-on-select ></v-select>
172
- </div>
173
- <div class="col-sm-2 form-group" >
174
- <label class="font_normal_body">微信绑定</label>
175
- <v-select :value.sync="model.f_isband"
176
- v-model="model.f_isband"
177
- :options='$parent.$parent.bandstates' placeholder='请选择'
178
- condition="f_isband = '{}'"
179
- close-on-select></v-select>
180
- </div>
181
- <div class="col-sm-2 form-group">
182
- <label class="font_normal_body">安装位置</label>
183
- <v-select :value.sync="model.f_position" v-model="model.f_position"
184
- :options='$parent.$parent.positions' placeholder='请选择'
185
- condition="f_position = '{}'"
186
- close-on-select></v-select>
187
- </div>
188
-
189
- <!--表册片区-->
190
- <div class="col-sm-2 form-group">
191
- <label class="font_normal_body">表册片区</label>
192
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
193
- @change="$parent.$parent.inputtorchange"
194
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
195
- style="width:60%"
196
- close-on-select
197
- condition="f_book_slice_area = '{}'"></v-select>
198
- </div>
199
- <div class="col-sm-2 form-group">
200
- <label class="font_normal_body" >缴费类型</label>
201
- <v-select :value.sync="model.f_payment" multiple
202
- v-model="model.f_payment"
203
- :options='$parent.$parent.dypayment' placeholder='请选择'
204
- condition="f_cost_type in {}"
205
- close-on-select></v-select>
206
- </div>
207
- <div class="col-sm-2 form-group" >
208
- <label for="startDate2" class="font_normal_body" title="开户时间">开户时间</label>
209
- <datepicker id="startDate2" placeholder="开始日期" style="width:60%"
210
- v-model="model.startDate2"
211
- :value.sync="model.startDate2"
212
- :format="'yyyy-MM-dd'"
213
- :show-reset-button="true"
214
- condition="f_open_date >= '{} 00:00:00'">
215
- </datepicker>
216
- </div>
217
- <div class="col-sm-2 form-group" >
218
- <label for="endDate2" class="font_normal_body" title="开户时间">开户时间</label>
219
- <datepicker id="endDate2" placeholder="结束日期" style="width:60%"
220
- v-model="model.endDate2"
221
- :value.sync="model.endDate2"
222
- :format="'yyyy-MM-dd'"
223
- :show-reset-button="true"
224
- condition="f_open_date <= '{} 23:59:59'">
225
- </datepicker>
226
- </div>
227
- <div class="col-sm-2 form-group" >
228
- <label for="startDate3" class="font_normal_body" title="安装日期">安装日期</label>
229
- <datepicker id="startDate3" placeholder="开始日期" style="width:60%"
230
- v-model="model.startDate3"
231
- :value.sync="model.startDate3"
232
- :format="'yyyy-MM-dd'"
233
- :show-reset-button="true"
234
- condition="f_install_date >= '{} 00:00:00'">
235
- </datepicker>
236
- </div>
237
- <div class="col-sm-2 form-group" >
238
- <label for="endDate3" class="font_normal_body" title="安装日期">安装日期</label>
239
- <datepicker id="endDate3" placeholder="结束日期" style="width:60%"
240
- v-model="model.endDate3"
241
- :value.sync="model.endDate3"
242
- :format="'yyyy-MM-dd'"
243
- :show-reset-button="true"
244
- condition="f_install_date <= '{} 23:59:59'">
245
- </datepicker>
246
- </div>
247
- <div class="col-sm-2 form-group" >
248
- <label class="font_normal_body">气表表号</label>
249
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
250
- condition="f_meternumber like '%{}%'" placeholder='气表表号'>
251
- </div>
252
- <div class="col-sm-2 form-group">
253
- <label class="font_normal_body">使用类型</label>
254
- <v-select :value.sync="model.f_usetype" v-model="model.f_usetype"
255
- :options='$parent.$parent.useTypes' placeholder='请选择'
256
- style="width:60%" multiple
257
- close-on-select
258
- condition="f_usetype in {}"></v-select>
259
- </div>
260
- <div class="col-sm-2 form-group">
261
- <label class="font_normal_body">表具状态</label>
262
- <v-select :value.sync="model.f_table_state" v-model="model.f_table_state"
263
- :options='$parent.$parent.TableStates' placeholder='请选择'
264
- style="width:60%" multiple
265
- close-on-select
266
- condition="f_table_state in {}"></v-select>
267
- </div>
268
- <!-- <div class="col-sm-2 form-group">-->
269
- <!-- <label class="font_normal_body">档案抄表员</label>-->
270
- <!-- <v-select :value.sync="model.f_book_inputtor" v-model='model.f_book_inputtor'-->
271
- <!-- style="width:60%"-->
272
- <!-- :multiple="true"-->
273
- <!-- :options='$parent.$parent.inputtores' placeholder='档案抄表员'-->
274
- <!-- close-on-select-->
275
- <!-- v-el:cc></v-select>-->
276
- <!-- </div>-->
277
- <div class="col-sm-2 form-group">
278
- <label class="font_normal_body">档案抄表员</label>
279
- <v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
280
- style="width:60%"
281
- :multiple="true"
282
- :options='$parent.$parent.inputtores' placeholder='档案抄表员'
283
- condition="f_inputtor in {}"
284
- close-on-select
285
- v-el:cc></v-select>
286
- </div>
287
- <div class="col-sm-2 form-group">
288
- <label class="font_normal_body">安装人</label>
289
- <v-select :value.sync="model.f_install_person" v-model='model.f_install_person'
290
- style="width:60%"
291
- :multiple="true"
292
- :options='$parent.$parent.person' placeholder='安装人'
293
- condition="f_install_person = '{}'"
294
- close-on-select
295
- v-el:cc></v-select>
296
- </div>
297
- <div class="col-sm-2 form-group" >
298
- <label class="font_normal_body">设备类型</label>
299
- <v-select :value.sync="model.f_devices_type"
300
- style="width:60%"
301
- v-model="model.f_devices_type"
302
- :options='$parent.$parent.deviceTypes' placeholder='设备类型'
303
- condition="f_devices_type = '{}'"
304
- close-on-select></v-select>
305
- </div>
306
- </div>
307
-
308
- </div>
309
- </criteria>
310
-
311
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
312
- <template partial='head'>
313
- <tr>
314
- <th><nobr>序号</nobr></th>
315
- <th><nobr>客户状态</nobr></th>
316
- <th><nobr>客户编号</nobr></th>
317
- <th><nobr>是否发卡</nobr></th>
318
- <th><nobr>卡号</nobr></th>
319
- <th><nobr>客户名称</nobr></th>
320
- <th><nobr>小区名称</nobr></th>
321
- <th>
322
- <data-order field="f_address" name="客户地址"
323
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
324
- </th>
325
- <th><nobr>客户电话</nobr></th>
326
- <th><nobr>使用类型</nobr></th>
327
- <th><nobr>表册片区</nobr></th>
328
- <th><nobr>通气日期</nobr></th>
329
- <!-- 气价类型,单价暂时未处理 -->
330
- <th><nobr>气价类型</nobr></th>
331
- <th><nobr>气价名称</nobr></th>
332
- <th><nobr>单价</nobr></th>
333
-
334
- <th><nobr>安装位置</nobr></th>
335
- <th><nobr>缴费类型</nobr></th>
336
- <th><nobr>气表类型</nobr></th>
337
- <th><nobr>气表品牌</nobr></th>
338
- <th><nobr>表号</nobr></th>
339
- <th><nobr>表封号</nobr></th>
340
- <th><data-order field="f_aroundmeter" name="左右表"
341
- :order.sync="$parent.$parent.$parent.orderFields.f_aroundmeter"></data-order>
342
- </th>
343
- <th><nobr>气表安装日期</nobr></th>
344
- <th><nobr>气表底数</nobr></th>
345
- <th><nobr>账户余额</nobr></th>
346
- <th><data-order field="f_hand_date" name="最后抄表日期"
347
- :order.sync="$parent.$parent.$parent.orderFields.f_hand_date"></data-order>
348
-
349
- </th>
350
- <!--<th><nobr>最后购气日期</nobr></th>-->
351
-
352
- <th><nobr>阀门状态</nobr></th>
353
-
354
- <!-- <th><nobr>旧客户编号</nobr></th> -->
355
- <th><nobr>客户类型</nobr></th>
356
- <th><nobr>用气性质</nobr></th>
357
- <th><nobr>开户时间</nobr></th>
358
- <th><nobr>证件类型</nobr></th>
359
- <th><nobr>证件号码</nobr></th>
360
- <th><nobr>人口数</nobr></th>
361
- <th><nobr>保险结束日期</nobr></th>
362
- <th><data-order field="f_createfile_date" name="建档日期"
363
- :order.sync="$parent.$parent.$parent.orderFields.f_createfile_date"></data-order>
364
- </th>
365
- <th><nobr>建档人</nobr></th>
366
- <th><nobr>所属营业厅</nobr></th>
367
- <th><nobr>备注信息</nobr></th>
368
-
369
- <!-- <th><nobr>气价详情</nobr></th>-->
370
- <th><nobr>曾用名</nobr></th>
371
- <th><nobr>备用电话</nobr></th>
372
- <th><nobr>租户姓名</nobr></th>
373
- <th><nobr>租户电话</nobr></th>
374
- <!--<th><nobr>曾用名</nobr></th>-->
375
- <th><nobr>发票编码</nobr></th>
376
- <th><nobr>是否煤改气</nobr></th>
377
- <th><nobr>是否发放天然气使用证</nobr></th>
378
-
379
- <th><nobr>使用类型</nobr></th>
380
-
381
- <!-- <th><nobr>使用状态</nobr></th>-->
382
- <!--<th><nobr>通气时间</nobr></th>-->
383
-
384
- <th><nobr>气表型号</nobr></th>
385
- <th><nobr>表具状态</nobr></th>
386
- <th><nobr>初始气表底数</nobr></th>
387
- <th><nobr>累计用气金额</nobr></th>
388
- <th><nobr>表累购气量</nobr></th>
389
- <th><nobr>表累购金额</nobr></th>
390
-
391
- <th><nobr>抄表员(档案)</nobr></th>
392
- <!-- <th><nobr>抄表员(档案)</nobr></th>-->
393
- <th><nobr>用气点</nobr></th>
394
- <th><nobr>安装人</nobr></th>
395
- <th><nobr>通气人</nobr></th>
396
- <!-- <th><nobr>点火状态</nobr></th>-->
397
- <th><nobr>抄表册编号</nobr></th>
398
-
399
- <th><nobr>抄表册顺序</nobr></th>
400
- <th><nobr>表剩余金额</nobr></th>
401
- <!-- <th><nobr>首次购气日期</nobr></th>-->
402
- <th><nobr>写卡次数</nobr></th>
403
- <th><nobr>补卡次数</nobr></th>
404
- <!-- <th><nobr>购气次数</nobr></th>-->
405
-
406
- <th><nobr>表同步状态</nobr></th>
407
- <th><nobr>微信绑定</nobr></th>
408
-
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
- <th>
425
- <nobr>报警器编号</nobr>
426
- </th>
427
- <th>
428
- <nobr>换表时间</nobr>
429
- </th>
430
- <th>
431
- <nobr>灶具信息</nobr>
432
- </th>
433
- </tr>
434
- </template>
435
- <template partial='body'>
436
- <!--<td style="text-align: center;"><nobr>-->
437
- <!--<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>-->
438
- <!--</nobr> </td>-->
439
- <td style="text-align: center;"><nobr>{{row.indaxs}}</nobr></td>
440
- <td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
441
- <td style="text-align: center;"><nobr>{{row.f_userinfo_code}}</nobr></td>
442
- <td style="text-align: center;"><nobr>{{row.f_whether_hairpin}}</nobr></td>
443
- <td style="text-align: center;"><nobr>{{row.f_card_id}}</nobr></td>
444
- <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
445
- <td style="text-align: center;"><nobr>{{row.f_residential_area}}</nobr></td>
446
- <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
447
- <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
448
- <td style="text-align: center;"><nobr>{{row.f_usetype}}</nobr></td>
449
- <td style="text-align: center;"><nobr>{{row.f_book_slice_area}}</nobr></td>
450
- <td style="text-align: center;"><nobr>{{row.f_gas_date}}</nobr></td>
451
- <!-- 气价类型,单价暂时未处理 -->
452
- <td style="text-align: center;"><nobr>&nbsp;&nbsp;</nobr></td>
453
- <td style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></td>
454
- <td style="text-align: center;"><nobr>{{row.value}}</nobr></td>
455
-
456
- <td style="text-align: center;"><nobr>{{row.f_position}}</nobr></td>
457
- <td style="text-align: center;"><nobr>{{row.f_cost_type}}</nobr></td>
458
- <td style="text-align: center;"><nobr>{{row.f_meter_type}}</nobr></td>
459
- <td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
460
- <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
461
- <td style="text-align: center;"><nobr>{{row.f_metertitles}}</nobr></td>
462
- <td style="text-align: center;"><nobr>{{row.f_aroundmeter}}</nobr></td>
463
- <td style="text-align: center;"><nobr>{{row.f_install_date}}</nobr></td>
464
- <td style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></td>
465
- <td style="text-align: center;"><nobr>{{row.f_balance}}</nobr></td>
466
- <td style="text-align: center;"><nobr>{{row.f_hand_date}}</nobr></td>
467
- <!-- <td style="text-align: center;"><nobr>{{row.f_max_operate_date}}</nobr></td>-->
468
- <td style="text-align: center;"><nobr>{{row.f_valve_state}}</nobr></td>
469
-
470
- <!-- <td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>-->
471
- <td style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></td>
472
- <td style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></td>
473
-
474
- <td style="text-align: center;"><nobr>{{row.f_open_date}}</nobr></td>
475
- <td style="text-align: center;"><nobr>{{row.f_credentials}}</nobr></td>
476
- <td style="text-align: center;"><nobr>{{row.f_idnumber}}</nobr></td>
477
- <td style="text-align: center;"><nobr>{{row.f_people_num}}</nobr></td>
478
- <td style="text-align: center;"><nobr>{{row.f_ins_stop_date}}</nobr></td>
479
- <td style="text-align: center;"><nobr>{{row.f_createfile_date}}</nobr></td>
480
- <td style="text-align: center;"><nobr>{{row.f_createfile_person}}</nobr></td>
481
- <td style="text-align: center;"><nobr>{{row.f_depname}}</nobr></td>
482
- <td style="text-align: center;"><nobr>{{row.f_comments}}</nobr></td>
483
-
484
- <!-- <td style="text-align: center;"><nobr>{{row.value}}</nobr></td>-->
485
- <td style="text-align: center;"><nobr>{{row.f_used_name}}</nobr></td>
486
- <td style="text-align: center;"><nobr>{{row.f_rent_phone}}</nobr></td>
487
- <td style="text-align: center;"><nobr>{{row.f_rent_name}}</nobr></td>
488
- <td style="text-align: center;"><nobr>{{row.f_zuhu_phone}}</nobr></td>
489
- <td style="text-align: center;"><nobr>{{row.f_contract_id}}</nobr></td>
490
- <td style="text-align: center;"><nobr>{{row.f_is_mgq}}</nobr></td>
491
- <td style="text-align: center;"><nobr>{{row.f_send_usegas_card}}</nobr></td>
492
-
493
- <td style="text-align: center;"><nobr>{{row.f_usetype}}</nobr></td>
494
- <!-- <td style="text-align: center;"><nobr>{{row.f_usestate}}</nobr></td>-->
495
- <!--<td style="text-align: center;"><nobr>{{row.f_people_num}}</nobr></td>-->
496
-
497
- <td style="text-align: center;"><nobr>{{row.f_meter_style}}</nobr></td>
498
- <td style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></td>
499
- <td style="text-align: center;"><nobr>{{row.f_initial_base}}</nobr></td>
500
- <td style="text-align: center;"><nobr>{{row.f_total_usegas_amount}}</nobr></td>
501
- <td style="text-align: center;"><nobr>{{row.f_total_gas}}</nobr></td>
502
- <td style="text-align: center;"><nobr>{{row.f_total_fee}}</nobr></td>
503
-
504
- <td style="text-align: center;"><nobr>{{row.f_inputtor}}</nobr></td>
505
- <!-- <td style="text-align: center;"><nobr>{{row.f_book_inputtor}}</nobr></td>-->
506
- <td style="text-align: center;"><nobr>{{row.f_userfiles_address}}</nobr></td>
507
- <td style="text-align: center;"><nobr>{{row.f_install_person}}</nobr></td>
508
- <td style="text-align: center;"><nobr>{{row.f_gas_person}}</nobr></td>
509
- <!-- <td style="text-align: center;"><nobr>{{row.f_fire_state}}</nobr></td>-->
510
- <td style="text-align: center;"><nobr>{{row.f_meter_book_num}}</nobr></td>
511
-
512
- <td style="text-align: center;"><nobr>{{row.f_meter_book_sort}}</nobr></td>
513
- <td style="text-align: center;"><nobr>{{row.f_balance_amount}}</nobr></td>
514
- <!-- <td style="text-align: center;"><nobr>{{row.f_min_operate_date}}</nobr></td>-->
515
- <td style="text-align: center;"><nobr>{{row.f_times}}</nobr></td>
516
- <td style="text-align: center;"><nobr>{{row.f_fillcard_times}}</nobr></td>
517
- <!-- <td style="text-align: center;"><nobr>{{row.f_sell_number}}</nobr></td>-->
518
- <td style="text-align: center;"><nobr>{{row.f_sendsuccess}}</nobr></td>
519
- <td style="text-align: center;"><nobr>{{row.f_isband}}</nobr></td>
520
-
521
- <td style="text-align: center;">
522
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_accopen}}</span></nobr>
523
- </td>
524
- <td style="text-align: center;">
525
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_name}}</span></nobr>
526
- </td>
527
- <td style="text-align: center;">
528
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_account}}</span></nobr>
529
- </td>
530
- <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
531
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_idnumber}}</span></nobr>
532
- </td>
533
- <td style="text-align: center;">
534
- <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_pay_number}}</span></nobr>
535
- </td>
536
- <td style="text-align: center;"><nobr>{{row.f_alarm_code}}</nobr></td>
537
- <td style="text-align: center;"><nobr>{{row.f_maxdate}}</nobr></td>
538
- <td style="text-align: center;"><nobr>{{row.f_devices_type}}</nobr></td>
539
- </template>
540
- <template partial='foot'>
541
-
542
- </template>
543
- </data-grid>
544
- </criteria-paged>
545
-
546
- <table class="table-hover">
547
- <tr style="position: relative" class="table-bordered">
548
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
549
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
550
- 购气量合计:&emsp;{{sumsmodel.f_total_gas}}
551
- </td>
552
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
553
- 账户余额合计:&emsp;{{sumsmodel.f_balance}}
554
- </td>
555
- </tr>
556
- </table>
557
-
558
- <modal :show.sync="printshow" v-ref:modal backdrop="false">
559
- <header slot="modal-header" class="modal-header text-center">
560
- <h4 class="modal-title">打印列选择</h4>
561
- <input type="checkbox" class="" id="f_generations" v-model="all">
562
- <label for="f_generations" class="font-size">全选</label>
563
- </header>
564
- <article slot="modal-body">
565
- <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
566
- <div class="col-sm-3" v-for="f in fields">
567
- <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
568
- <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
569
- </div>
570
- </div>
571
- </article>
572
- <footer slot="modal-footer" class="modal-footer">
573
- <center>
574
-
575
- <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
576
- <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
577
- <print-table :model='model' v-show="false" v-ref:print
578
- :top='40' :left='60' :right='40' :bottom='60'
579
- :thead="thead" :tfoot='tfoot' :attach="yangsen"
580
- :fields="modelval" :printpage="true">
581
- </print-table>
582
- </center>
583
- </footer>
584
- </modal>
585
- </div>
586
- <div class="flex" v-if="show">
587
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
588
- </div>
589
- </div></div></div>
590
- <high-meter-idcard :show.sync="false" v-ref:highcard ></high-meter-idcard>
591
- </template>
592
-
593
- <script>
594
- import {HttpResetClass, PagedList} from 'vue-client'
595
- import defaultPrint from '../../components/sale/config/DefaultPrint'
596
- import exportConfig from '../../components/sale/config/exportConfig'
597
- let cardBtnGen = async function (self, val) {
598
- self.cardInfo = val.data
599
-
600
- // 判断读卡是否需要卡密码
601
- console.log('读卡上的信息', self.cardInfo)
602
-
603
- if (self.cardInfo.NewParam) {
604
- if (self.cardInfo.NewParam.error) {
605
- if (self.cardInfo.NewParam.error === '0001') {
606
- // 需要重新读卡并传卡密码
607
- if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
608
- self.readCardParam = self.model.rows[0].f_card_password
609
- self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
610
- } else {
611
- self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
612
- return
613
- }
614
- }
615
- }
616
- }
617
- self.card=self.cardInfo.CardID
618
- self.search()
619
- }
620
- let readySomething = async function (self) {
621
- await self.$MagLoadParams.loadParam()
622
- // await self.$LoadParams.loadParam(self.f_filialeid)
623
- self.initParams()
624
- self.getPricenames();
625
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
626
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
627
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
628
- // await self.$refs.paged.$refs.cri.search()
629
- }
630
- export default {
631
- title: '综合档案信息查询',
632
- data() {
633
- return {
634
- IdCardInfo:'',
635
- card:'',
636
- isSingleUser: null,
637
- other:[],
638
- footer:[],
639
- model: new PagedList('rs/sql/compreQuery', 20,
640
- {items: this.orderitem ? this.orderitem : `'f_residential_area desc,f_building desc,f_unit desc,f_floor desc,f_room desc'`},
641
- {
642
- 'f_total_gas': 0,
643
- 'f_balance': 0
644
- }),
645
- criteriaShow: false,
646
- orgCondtionStr:'',
647
- residentialArea: [],
648
- gasproperties:[],
649
- meterbrands: [],
650
- modelval: [],
651
- prices: [],
652
- printshow: false,
653
- all: false,
654
- fields: {},
655
- thead: '',
656
- tfoot: '',
657
- defaultfield: [],
658
- //排序
659
- orderitem: 'f_residential_area',
660
- orderitem1: 'f_unit',
661
- orderitem2: 'f_building',
662
- orderitem3: 'f_floor',
663
- orderitem4: 'f_room',
664
-
665
- orderFields: {
666
- f_operate_date: 'no'
667
- },
668
- config: {
669
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
670
- },
671
- area: [],
672
- bookinputtorperson:[],
673
- conditon2:'',
674
- show:false,
675
- rowdata:{},
676
- f_filialeid: this.$login.f.orgid,
677
- // 下拉框参数
678
- userstates:this.$appdata.getParam('客户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')] : [],
679
- bandstates:this.$appdata.getParam('微信绑定') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('微信绑定')] : [],
680
- initres: {
681
- org:[this.$login.f.orgid],
682
- dep:[],
683
- user:[],
684
- },
685
- // 合计数据
686
- sumsmodel: {},
687
- //表册片区
688
- bookSlice:[{label: '全部',value: ''}],
689
- pricenames:[],
690
- dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
691
- deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
692
- }
693
- },
694
- ready(){
695
- this.getaddress()
696
- readySomething(this).then(() => {
697
- this.$emit('ready')
698
- }).catch((error) => {
699
- this.$emit('error', error)
700
- })
701
- },
702
- methods: {
703
- ReadIDCard(){
704
- this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
705
- console.log('======',msg)
706
- if(msg.err !== 0){ return}
707
- this.IdCardInfo=msg.strID
708
- })
709
- if(this.IdCardInfo) {
710
- this.search()
711
- }else{
712
- alert("读取失败,找不到用户信息")
713
- }
714
- },
715
- cardBtn (val) {
716
- // this.clear()
717
- cardBtnGen(this, val)
718
- },
719
- getPricenames () {
720
- let f_filialeid = this.f_filialeid
721
- let result = []
722
- this.$MagGetSaleParam.getPrices().forEach((item) => {
723
- if (item.f_state === '有效' && f_filialeid == item.f_filialeid) {
724
- let value = {
725
- label: item.f_price_name,
726
- value: item.f_price_name
727
- }
728
- result.push(value)
729
- }
730
- })
731
- this.pricenames = [{label:'全部',value:''},...result];
732
- },
733
- getotherfooter () {
734
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
735
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
736
- this.other = [];
737
- this.footer = [];
738
- let exportdata = this.getCondition;
739
- let otherInData = [];
740
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
741
- // let footerData = [], exportfield = this.getExportField;
742
- // footerData.push("合计");
743
- // let self = this;
744
- // for (var field in self.sumsmodel) {
745
- // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
746
- // }
747
- // this.footer.push(footerData);
748
- this.other.push(otherInData);
749
- },
750
- initParams() {
751
- // 初始化气表品牌
752
- let brandArr = []
753
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
754
- let temp = {}
755
- temp.label = item.label
756
- temp.value = item.value.f_meter_brand
757
- brandArr.push(temp)
758
- })
759
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
760
- //初始化气表价格
761
- this.prices = this.$MagGetSaleParam.getPrices();
762
- },
763
- async getaddress(){
764
- console.log('开始获取小区')
765
- let HttpReset = new HttpResetClass()
766
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
767
- data: {
768
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
769
- }
770
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
771
- console.log('小区',data)
772
- let house = [{label: '全部', value: ''}]
773
- for (let row of data.data){
774
- console.log('开始保存小区')
775
- house.push({label: row.f_residential_area, value: row.f_residential_area})
776
- }
777
- this.residentialArea = house
778
- },
779
- search(){
780
- this.$refs.paged.$refs.cri.search()
781
- },
782
- cancel() {
783
- this.show = false
784
- },
785
- showmsg(obj){
786
- this.rowdata=obj
787
- this.show=true
788
- },
789
- selfSearch (args) {
790
-
791
- //抄表员查询条件
792
- // this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
793
- // if(this.inputtouPerson.length !== 0){
794
- // let str = JSON.stringify(this.inputtouPerson)
795
- // str = str.replace(/"/g,`'`)
796
- // str = str.replace(/\[/g,``)
797
- // str = str.replace(/\]/g,``)
798
- // console.log("=====抄表员model22222222222绑定====",str)
799
- // //查询多个抄表员时条件
800
- // // args.condition += ` and f_inputtor in ( ${str} )`
801
- // }
802
- //
803
- // debugger
804
- // this.bookinputtorperson = this.$refs.paged.$refs.cri.model.f_book_inputtor;
805
- // if(this.bookinputtorperson.length !== 0){
806
- // let str = JSON.stringify(this.bookinputtorperson)
807
- // str = str.replace(/"/g,`'`)
808
- // str = str.replace(/\[/g,``)
809
- // str = str.replace(/\]/g,``)
810
- // console.log("=====抄表员model22222222222绑定====",str)
811
- // //查询多个抄表员时条件
812
- // args.condition += ` and f_book_inputtor in ( ${str} )`
813
- // }
814
- if (!this.orgCondtionStr) {
815
- args.condition = `${args.condition}` + " and uf.f_orgid = " + this.$login.f.orgid
816
- } else {
817
- args.condition = `${args.condition}` + this.orgCondtionStr
818
- }
819
- this.conditon2 = args.condition
820
- console.log("查看条件",this.conditon2)
821
- if(this.card!=''){
822
- args.condition +=` and f_card_id='${this.card}'`
823
- }
824
- if(this.IdCardInfo!=''){
825
- args.condition+=` and f_idnumber='${this.IdCardInfo}'`
826
- }
827
- this.model.search(args.condition, args.model)
828
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
829
- this.card=''
830
- this.IdCardInfo=''
831
- console.log('合计字段',this.sumsmodel)
832
- },
833
- clear(){
834
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
835
- this.$refs.paged.$refs.cri.model[key] = []
836
- })
837
- },
838
- hidden(){
839
- this.criteriaShow = !this.criteriaShow
840
- },
841
- getRes(obj) {
842
- this.orgCondtionStr = obj
843
- },
844
- stamp () {
845
- this.all = false
846
- //默认选择要打印的列
847
- this.modelval = defaultPrint.config
848
- this.fields = this.getfield
849
- console.log('所有打印字段',this.fields)
850
- this.printshow = true
851
- this.put()
852
- },
853
- put () {
854
- // 对Modelval进行排序
855
- this.sortModelval()
856
- this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
857
- for (let key of this.modelval) {
858
- this.thead += '<th>' + this.fields[key] + '</th>'
859
- }
860
- this.thead += '</tr>'
861
- },
862
- print () {
863
- this.$refs.print.PrintAsFile()
864
- this.printshow = false
865
- },
866
- close () {
867
- this.printshow = false
868
- this.all = false
869
- },
870
- userTypeChange () {
871
- this.gasproperties=[]
872
- if(this.$refs.paged.$refs.cri.model !==null) {
873
- // this.$refs.paged.$refs.cri.model.f_gasproperties=''
874
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
875
- console.log("this.gasproperties",this.gasproperties)
876
- // this.gasproperties.push({label: '全部', value: ''})
877
- }
878
- else{
879
- this.gasproperties =[{label: '全部', value: ''}]
880
- }
881
- },
882
- // 对选择的列进行排序
883
- sortModelval () {
884
- let sortModel = []
885
- Object.keys(this.fields).forEach((key) => {
886
- if (this.modelval.includes(key)) {
887
- sortModel.push(key)
888
- }
889
- })
890
- this.modelval = sortModel
891
- console.log('选择的打印的字段', this.modelval)
892
- },
893
- async updateParams() {
894
- await this.$MagLoadParams.loadParam(this.f_filialeid)
895
- this.inputtores = [];
896
- this.inputtores.push({label: "全部", value: ""})
897
- this.initSlice(this.f_filialeid)
898
- debugger
899
- if(this.allorgid!=null){
900
- this.allorgid.forEach((res)=>{
901
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
902
- })
903
- }
904
- },
905
- async initSlice (val) {
906
- if (val) {
907
- let getAllArea = await this.$resetpost('/rs/search', {
908
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
909
- userid: this.$login.f.id
910
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
911
- let arr = getAllArea.data.filter((res) => {
912
- return res.parentid == val
913
- })
914
- this.bookSlice = []
915
- console.log('过滤之后的片区-------------------', arr)
916
- arr.forEach((res) => {
917
- this.bookSlice.push({label: res.name, value: res.name})
918
- })
919
- }
920
- },
921
- //表册片区和抄表册关联
922
- async inputtorchange(){
923
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
924
- /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
925
- let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
926
- if((val2.length>0)){
927
- let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
928
- /*if (val1[0]){
929
- condition = condition+ ` and f_meter_book = '${val1[0]}' `
930
- }*/
931
- if(val2[0]) {
932
- condition = condition + ` and f_book_slice_area = '${val2}' `
933
- }
934
- let param={
935
- items:'*',
936
- tablename:'t_meter_book',
937
- condition:condition,
938
- orderitem:'id'
939
- }
940
- let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
941
- if (getMeterBooks.data) {
942
- if(getMeterBooks.data.length >0){
943
- let rs = [];
944
- getMeterBooks.data.forEach((item)=>{
945
- let temp = {
946
- label:item.f_book_name,
947
- value:item.id
948
- };
949
- rs.push(temp);
950
-
951
- })
952
- this.meterbooks = [{label: '全部',value: ''}, ...rs];
953
- }else{
954
- this.meterbooks = [{label: '全部',value: ''}];
955
- }
956
- }
957
- }else{
958
- this.meterbooks = [{label: '全部',value: ''}];
959
- this.initmeterbook();
960
- }
961
- },
962
- sort (field, rule) {
963
- console.log('sort',this.orderFields)
964
- let sortStr = ''
965
- // 将所有排序方式设为不排序,实现相互排斥
966
- for (let key in this.orderFields) {
967
- if (this.orderFields[key] != 'no') {
968
- if (key == 'f_address') {
969
- sortStr += `,${this.orderitem} ${this.orderFields[key]}, ${this.orderitem2} ${this.orderFields[key]}, ${this.orderitem1} ${this.orderFields[key]},${this.orderitem3} ${this.orderFields[key]},${this.orderitem4} ${this.orderFields[key]}`
970
- } else {
971
- sortStr += `,${key} ${this.orderFields[key]}`
972
- }
973
- }
974
- }
975
- if (sortStr == '') {
976
- sortStr += `,f_residential_area desc,f_building desc,f_unit desc,f_floor desc,f_room desc`
977
- }
978
- this.model.model.items = sortStr.replace(',','').toString()
979
- this.model.paramSource.items = 'this.model.items'
980
-
981
- // 如果新规则不排序,还原为默认排序
982
- // if (rule === 'no'|| rule === 'desc') {
983
- // this.model.paramSource.items= `'${this.orderitem} desc,${this.orderitem2} desc,${this.orderitem1} desc,${this.orderitem3} desc,${this.orderitem4} desc'`
984
- // } else {
985
- // this.model.paramSource.items= `'${this.orderitem},${this.orderitem2},${this.orderitem1},${this.orderitem3},${this.orderitem4} ${rule}'`
986
- // }
987
- //
988
- console.log('sortstr',sortStr.replace(',',''))
989
- this.search()
990
- }
991
- },
992
- watch:{
993
- 'model.rows.length' () {
994
- this.isSingleUser = this.model.rows
995
- },
996
- 'all' (val) {
997
- if (val) {
998
- this.modelval = this.bodyData
999
- } else {
1000
- this.modelval = defaultPrint.config
1001
- this.put()
1002
- }
1003
- },
1004
- 'modelval.length' () {
1005
- this.put()
1006
- },
1007
- sumsmodel:{
1008
- handler: function(val) {
1009
- this.getotherfooter();
1010
- },
1011
- deep: true
1012
- },
1013
- 'orgCondtionStr'(val) {
1014
- let res = val.match(/'(.*?)'/)
1015
- console.log('正则提取:',res && res[1])
1016
- if (res) {
1017
- this.f_filialeid = res[1]
1018
- if(res.input !=null){
1019
- let resorgid = res.input.substring(res.input.indexOf("'"));
1020
- if(resorgid!= null && resorgid!=''){
1021
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
1022
- // resorgid = resorgid.replaceAll("'","");
1023
- resorgid = resorgid.replace(/'/g,"");
1024
- this.allorgid = resorgid.split(",")
1025
- }
1026
- }
1027
- this.updateParams()
1028
- }
1029
- },
1030
- },
1031
- computed:{
1032
- TableStates () {
1033
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
1034
- },
1035
- // gasproperties(){
1036
- // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
1037
- // },
1038
- usertypes() {
1039
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
1040
- },
1041
- useTypes() {
1042
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
1043
- },
1044
- positions() {
1045
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装位置')]
1046
- },
1047
- meterbooks(){
1048
- return [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
1049
- },
1050
- metertypes() {
1051
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
1052
- },
1053
- pricetypes() {
1054
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
1055
- },
1056
- person() {
1057
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装人')]
1058
- },
1059
- tablestate() {
1060
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('表具状态')]
1061
- },
1062
-
1063
- // getPricenames() {
1064
- // let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1065
- // let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1066
- // let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1067
- // // console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
1068
- // if(this.$refs.paged.$refs.cri.model !==null) {
1069
- // console.log(1111)
1070
- // console.log(11112, this.prices)
1071
- // let rs = []
1072
- // let priceArr = []
1073
- // if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
1074
- // let params = {
1075
- // f_user_type: f_user_type[0],
1076
- // f_gasproperties: f_gasproperties[0],
1077
- // f_price_type: pricetype[0],
1078
- // filter: this.f_filialeid,
1079
- // prices: this.prices
1080
- // }
1081
- // console.log(11113,params,this.$login.f)
1082
- // this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1083
- // let temp = {}
1084
- // temp.label = item.label
1085
- // temp.value = item.value.f_price_name
1086
- // priceArr.push(temp)
1087
- // })
1088
- // rs = [{label: '全部', value: ''}, ...priceArr]
1089
- // }
1090
- // if (rs.length === 0) {
1091
- // console.log('rs读出来是空')
1092
- // this.$refs.paged.$refs.cri.model.f_price_name = ''
1093
- // }
1094
- // return rs
1095
- // }
1096
- // },
1097
- inputtores () {
1098
- // 获取抄表员
1099
- console.log('获取抄表员', this.$login.f)
1100
- let rs = []
1101
- if (this.$login.f.f_gasman.length > 0) {
1102
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
1103
- let temp = {
1104
- label: this.$login.f.f_gasman[i].name,
1105
- value: this.$login.f.f_gasman[i].name
1106
- }
1107
- rs.push(temp)
1108
- }
1109
- }
1110
-
1111
- return [{label: '全部', value: ''}, ...rs]
1112
- },
1113
- authArr () {
1114
- return this.$login.r ? this.$login.r : []
1115
- },
1116
- getCondition(){
1117
-
1118
- return {condition:this.conditon2}
1119
- },
1120
- getfield(){
1121
- let data = {}
1122
- this.bodyData.forEach((value, index)=>{
1123
- data[this.bodyData[index]] = this.headData[index]
1124
- })
1125
- //合计字段打印
1126
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
1127
- if(this.sumsmodel){
1128
- Object.keys(this.sumsmodel).forEach((key) => {
1129
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
1130
- })
1131
- }else{
1132
- this.tfoot += '暂无'
1133
- }
1134
- this.tfoot += '</th></tr>'
1135
- return data
1136
- },
1137
- getExportField() {
1138
- return exportConfig.compreConfig
1139
- }
1140
- }
1141
- }
1142
- </script>
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 @sort="sort">
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 = '{}'" placeholder="客户名称">
19
+ </div>
20
+ <div class="col-sm-2 form-group" >
21
+ <label class="font_normal_body">客户状态</label>
22
+ <v-select :value.sync="model.f_user_state"
23
+ v-model="model.f_user_state"
24
+ :options='$parent.$parent.userstates' placeholder='请选择'
25
+ condition="f_user_state = '{}'"
26
+ close-on-select></v-select>
27
+ </div>
28
+
29
+ <div class="span" style = "float:right;">
30
+ <button class="button_search button_spacing" v-show="false" @click="$parent.$parent.ReadIDCard()">读取身份证</button>
31
+ <read-card :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-ref:readcard></read-card>
32
+ <button class="button_search button_spacing" @click="search()">查询</button>
33
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
34
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
35
+
36
+ <export-excel :data="$parent.$parent.getCondition"
37
+ :field="$parent.$parent.getExportField"
38
+ :header="$parent.$parent.other"
39
+ v-if="$parent.$parent.authArr.includes('档案查询导出')"
40
+ sqlurl="rs/logic/exportfile" sql-name="compreQuery" template-name='综合档案查询导出' :choose-col="true"></export-excel>
41
+ <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
42
+ :defaultfield="$parent.$parent.defaultfield"
43
+ titletable="综合档案查询"
44
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
45
+ <div style="float: right" class="button_spacing"
46
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
47
+ @click="$parent.$parent.hidden()"></div>
48
+ </div>
49
+ </div>
50
+
51
+ <div class="row" v-show="$parent.$parent.criteriaShow">
52
+ <res-select-group :initres="$parent.$parent.initres"
53
+ showComponent="['company','department','operator']"
54
+ @re-res="$parent.$parent.getRes"></res-select-group>
55
+
56
+ <div class="col-sm-2 form-group">
57
+ <label class="font_normal_body">气表分类</label>
58
+ <v-select :value.sync="model.f_meter_classify"
59
+ v-model="model.f_meter_classify"
60
+ :options='$parent.$parent.metertypes' placeholder='请选择'
61
+ condition="f_meter_classify = '{}'"
62
+ close-on-select></v-select>
63
+ </div>
64
+
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body">气表品牌</label>
67
+ <v-select :value.sync="model.f_meter_brand"
68
+ v-model="model.f_meter_brand"
69
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
70
+ condition="f_meter_brand = '{}'"
71
+ close-on-select></v-select>
72
+ </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">客户类型</label>
75
+ <v-select :value.sync="model.f_user_type"
76
+ :options='$parent.$parent.usertypes'
77
+ @change="$parent.$parent.userTypeChange()"
78
+ placeholder='请选择' v-model="model.f_user_type"
79
+ condition="f_user_type = '{}'"
80
+ close-on-select></v-select>
81
+
82
+ </div>
83
+ <div class="col-sm-2 form-group" >
84
+ <label for="startDate1" class="font_normal_body" title="抄表开始日期">抄表日期</label>
85
+ <datepicker id="startDate1" placeholder="开始日期" style="width:60%"
86
+ v-model="model.startDate1"
87
+ :value.sync="model.startDate1"
88
+ :format="'yyyy-MM-dd'"
89
+ :show-reset-button="true"
90
+ condition="f_hand_date >= '{} 00:00:00'">
91
+ </datepicker>
92
+ </div>
93
+ <div class="col-sm-2 form-group" >
94
+ <label for="endDate1" class="font_normal_body" title="抄表结束日期">抄表日期</label>
95
+ <datepicker id="endDate1" placeholder="结束日期" style="width:60%"
96
+ v-model="model.endDate1"
97
+ :value.sync="model.endDate1"
98
+ :format="'yyyy-MM-dd'"
99
+ :show-reset-button="true"
100
+ condition="f_hand_date <= '{} 23:59:59'">
101
+ </datepicker>
102
+ </div>
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
105
+ <v-select :value.sync="model.f_residential_area"
106
+ class="select_list select"
107
+ enter-push
108
+ multiple
109
+ condition="f_residential_area in {}"
110
+ v-model="model.f_residential_area"
111
+ style="width: 60%"
112
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
113
+ close-on-select>
114
+
115
+ </v-select>
116
+ </div>
117
+ <div class="col-sm-2 form-group" >
118
+ <label class="font_normal_body">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
119
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
120
+ condition="f_building = '{}'" placeholder='楼号'>
121
+ </div>
122
+ <div class="col-sm-2 form-group" >
123
+ <label class="font_normal_body">单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;元</label>
124
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
125
+ condition="f_unit = '{}'" placeholder='单元号'>
126
+ </div>
127
+
128
+ <div class="col-sm-2 form-group" >
129
+ <label class="font_normal_body">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;层</label>
130
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
131
+ condition="f_floor = '{}'" placeholder='楼层号'>
132
+ </div>
133
+ <div class="col-sm-2 form-group" >
134
+ <label class="font_normal_body">门&ensp;牌&ensp;号</label>
135
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
136
+ condition="f_room = '{}'" 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_address"
141
+ condition="f_address like '%{}%'" placeholder='客户地址'>
142
+ </div>
143
+ <div class="col-sm-2 form-group" >
144
+ <label class="font_normal_body">用&ensp;气&ensp;点</label>
145
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userfiles_address"
146
+ condition="f_userfiles_address like '%{}%'" placeholder="用气点">
147
+ </div>
148
+ <div class="col-sm-2 form-group">
149
+ <label class="font_normal_body">用气性质</label>
150
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
151
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
152
+ multiple
153
+ condition="f_gasproperties in {}"
154
+ close-on-select></v-select>
155
+ </div>
156
+ <div class="col-sm-2 form-group">
157
+ <label class="font_normal_body">气价类型</label>
158
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
159
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
160
+ condition="f_price_type in {}"
161
+ multiple
162
+ close-on-select v-ref:type>
163
+ </v-select>
164
+ </div>
165
+ <div class="col-sm-2 form-group">
166
+ <label class="font_normal_body">气价名称</label>
167
+ <v-select :value.sync="model.f_price_name" v-model="model.f_price_name"
168
+ :options="$parent.$parent.pricenames" placeholder='气价名称'
169
+ condition="f_price_name in {}"
170
+ multiple
171
+ close-on-select ></v-select>
172
+ </div>
173
+ <div class="col-sm-2 form-group" >
174
+ <label class="font_normal_body">微信绑定</label>
175
+ <v-select :value.sync="model.f_isband"
176
+ v-model="model.f_isband"
177
+ :options='$parent.$parent.bandstates' placeholder='请选择'
178
+ condition="f_isband = '{}'"
179
+ close-on-select></v-select>
180
+ </div>
181
+ <div class="col-sm-2 form-group">
182
+ <label class="font_normal_body">安装位置</label>
183
+ <v-select :value.sync="model.f_position" v-model="model.f_position"
184
+ :options='$parent.$parent.positions' placeholder='请选择'
185
+ condition="f_position = '{}'"
186
+ close-on-select></v-select>
187
+ </div>
188
+
189
+ <!--表册片区-->
190
+ <div class="col-sm-2 form-group">
191
+ <label class="font_normal_body">表册片区</label>
192
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
193
+ @change="$parent.$parent.inputtorchange"
194
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
195
+ style="width:60%"
196
+ close-on-select
197
+ condition="f_book_slice_area = '{}'"></v-select>
198
+ </div>
199
+ <div class="col-sm-2 form-group">
200
+ <label class="font_normal_body" >缴费类型</label>
201
+ <v-select :value.sync="model.f_payment" multiple
202
+ v-model="model.f_payment"
203
+ :options='$parent.$parent.dypayment' placeholder='请选择'
204
+ condition="f_cost_type in {}"
205
+ close-on-select></v-select>
206
+ </div>
207
+ <div class="col-sm-2 form-group" >
208
+ <label for="startDate2" class="font_normal_body" title="开户时间">开户时间</label>
209
+ <datepicker id="startDate2" placeholder="开始日期" style="width:60%"
210
+ v-model="model.startDate2"
211
+ :value.sync="model.startDate2"
212
+ :format="'yyyy-MM-dd'"
213
+ :show-reset-button="true"
214
+ condition="f_open_date >= '{} 00:00:00'">
215
+ </datepicker>
216
+ </div>
217
+ <div class="col-sm-2 form-group" >
218
+ <label for="endDate2" class="font_normal_body" title="开户时间">开户时间</label>
219
+ <datepicker id="endDate2" placeholder="结束日期" style="width:60%"
220
+ v-model="model.endDate2"
221
+ :value.sync="model.endDate2"
222
+ :format="'yyyy-MM-dd'"
223
+ :show-reset-button="true"
224
+ condition="f_open_date <= '{} 23:59:59'">
225
+ </datepicker>
226
+ </div>
227
+ <div class="col-sm-2 form-group" >
228
+ <label for="startDate3" class="font_normal_body" title="安装日期">安装日期</label>
229
+ <datepicker id="startDate3" placeholder="开始日期" style="width:60%"
230
+ v-model="model.startDate3"
231
+ :value.sync="model.startDate3"
232
+ :format="'yyyy-MM-dd'"
233
+ :show-reset-button="true"
234
+ condition="f_install_date >= '{} 00:00:00'">
235
+ </datepicker>
236
+ </div>
237
+ <div class="col-sm-2 form-group" >
238
+ <label for="endDate3" class="font_normal_body" title="安装日期">安装日期</label>
239
+ <datepicker id="endDate3" placeholder="结束日期" style="width:60%"
240
+ v-model="model.endDate3"
241
+ :value.sync="model.endDate3"
242
+ :format="'yyyy-MM-dd'"
243
+ :show-reset-button="true"
244
+ condition="f_install_date <= '{} 23:59:59'">
245
+ </datepicker>
246
+ </div>
247
+ <div class="col-sm-2 form-group" >
248
+ <label class="font_normal_body">气表表号</label>
249
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
250
+ condition="f_meternumber like '%{}%'" placeholder='气表表号'>
251
+ </div>
252
+ <div class="col-sm-2 form-group">
253
+ <label class="font_normal_body">使用类型</label>
254
+ <v-select :value.sync="model.f_usetype" v-model="model.f_usetype"
255
+ :options='$parent.$parent.useTypes' placeholder='请选择'
256
+ style="width:60%" multiple
257
+ close-on-select
258
+ condition="f_usetype in {}"></v-select>
259
+ </div>
260
+ <div class="col-sm-2 form-group">
261
+ <label class="font_normal_body">表具状态</label>
262
+ <v-select :value.sync="model.f_table_state" v-model="model.f_table_state"
263
+ :options='$parent.$parent.TableStates' placeholder='请选择'
264
+ style="width:60%" multiple
265
+ close-on-select
266
+ condition="f_table_state in {}"></v-select>
267
+ </div>
268
+ <!-- <div class="col-sm-2 form-group">-->
269
+ <!-- <label class="font_normal_body">档案抄表员</label>-->
270
+ <!-- <v-select :value.sync="model.f_book_inputtor" v-model='model.f_book_inputtor'-->
271
+ <!-- style="width:60%"-->
272
+ <!-- :multiple="true"-->
273
+ <!-- :options='$parent.$parent.inputtores' placeholder='档案抄表员'-->
274
+ <!-- close-on-select-->
275
+ <!-- v-el:cc></v-select>-->
276
+ <!-- </div>-->
277
+ <div class="col-sm-2 form-group">
278
+ <label class="font_normal_body">档案抄表员</label>
279
+ <v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
280
+ style="width:60%"
281
+ :multiple="true"
282
+ :options='$parent.$parent.inputtores' placeholder='档案抄表员'
283
+ condition="f_inputtor in {}"
284
+ close-on-select
285
+ v-el:cc></v-select>
286
+ </div>
287
+ <div class="col-sm-2 form-group">
288
+ <label class="font_normal_body">安装人</label>
289
+ <v-select :value.sync="model.f_install_person" v-model='model.f_install_person'
290
+ style="width:60%"
291
+ :multiple="true"
292
+ :options='$parent.$parent.person' placeholder='安装人'
293
+ condition="f_install_person = '{}'"
294
+ close-on-select
295
+ v-el:cc></v-select>
296
+ </div>
297
+ <div class="col-sm-2 form-group" >
298
+ <label class="font_normal_body">设备类型</label>
299
+ <v-select :value.sync="model.f_devices_type"
300
+ style="width:60%"
301
+ v-model="model.f_devices_type"
302
+ :options='$parent.$parent.deviceTypes' placeholder='设备类型'
303
+ condition="f_devices_type = '{}'"
304
+ close-on-select></v-select>
305
+ </div>
306
+ <div class="col-sm-2 form-group">
307
+ <label for="f_adjustable" class="font_normal_body">&nbsp;&nbsp;&nbsp;调压箱</label>
308
+ <v-select id="f_adjustable" :value.sync="model.f_adjustable_id"
309
+ :options='$parent.$parent.adjustables' placeholder='调压箱' close-on-select
310
+ v-model='model.f_adjustable_id'
311
+ condition="f_adjustable_id = '{}'"
312
+ :search='true'></v-select>
313
+ </div>
314
+ </div>
315
+
316
+ </div>
317
+ </criteria>
318
+
319
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
320
+ <template partial='head'>
321
+ <tr>
322
+ <th><nobr>序号</nobr></th>
323
+ <th><nobr>客户状态</nobr></th>
324
+ <th><nobr>客户编号</nobr></th>
325
+ <th><nobr>是否发卡</nobr></th>
326
+ <th><nobr>卡号</nobr></th>
327
+ <th><nobr>客户名称</nobr></th>
328
+ <th><nobr>小区名称</nobr></th>
329
+ <th>
330
+ <data-order field="f_address" name="客户地址"
331
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
332
+ </th>
333
+ <th><nobr>客户电话</nobr></th>
334
+ <th><nobr>使用类型</nobr></th>
335
+ <th><nobr>表册片区</nobr></th>
336
+ <th><nobr>通气日期</nobr></th>
337
+ <!-- 气价类型,单价暂时未处理 -->
338
+ <th><nobr>气价类型</nobr></th>
339
+ <th><nobr>气价名称</nobr></th>
340
+ <th><nobr>单价</nobr></th>
341
+
342
+ <th><nobr>安装位置</nobr></th>
343
+ <th><nobr>缴费类型</nobr></th>
344
+ <th><nobr>气表类型</nobr></th>
345
+ <th><nobr>气表品牌</nobr></th>
346
+ <th><nobr>表号</nobr></th>
347
+ <th><nobr>表封号</nobr></th>
348
+ <th><data-order field="f_aroundmeter" name="左右表"
349
+ :order.sync="$parent.$parent.$parent.orderFields.f_aroundmeter"></data-order>
350
+ </th>
351
+ <th><nobr>气表安装日期</nobr></th>
352
+ <th><nobr>气表底数</nobr></th>
353
+ <th><nobr>账户余额</nobr></th>
354
+ <th><data-order field="f_hand_date" name="最后抄表日期"
355
+ :order.sync="$parent.$parent.$parent.orderFields.f_hand_date"></data-order>
356
+
357
+ </th>
358
+ <!--<th><nobr>最后购气日期</nobr></th>-->
359
+
360
+ <th><nobr>阀门状态</nobr></th>
361
+
362
+ <!-- <th><nobr>旧客户编号</nobr></th> -->
363
+ <th><nobr>客户类型</nobr></th>
364
+ <th><nobr>用气性质</nobr></th>
365
+ <th><nobr>开户时间</nobr></th>
366
+ <th><nobr>证件类型</nobr></th>
367
+ <th><nobr>证件号码</nobr></th>
368
+ <th><nobr>人口数</nobr></th>
369
+ <th><nobr>保险结束日期</nobr></th>
370
+ <th><data-order field="f_createfile_date" name="建档日期"
371
+ :order.sync="$parent.$parent.$parent.orderFields.f_createfile_date"></data-order>
372
+ </th>
373
+ <th><nobr>建档人</nobr></th>
374
+ <th><nobr>所属营业厅</nobr></th>
375
+ <th><nobr>备注信息</nobr></th>
376
+
377
+ <!-- <th><nobr>气价详情</nobr></th>-->
378
+ <th><nobr>曾用名</nobr></th>
379
+ <th><nobr>备用电话</nobr></th>
380
+ <th><nobr>租户姓名</nobr></th>
381
+ <th><nobr>租户电话</nobr></th>
382
+ <!--<th><nobr>曾用名</nobr></th>-->
383
+ <th><nobr>发票编码</nobr></th>
384
+ <th><nobr>是否煤改气</nobr></th>
385
+ <th><nobr>是否发放天然气使用证</nobr></th>
386
+
387
+ <th><nobr>使用类型</nobr></th>
388
+
389
+ <!-- <th><nobr>使用状态</nobr></th>-->
390
+ <!--<th><nobr>通气时间</nobr></th>-->
391
+
392
+ <th><nobr>气表型号</nobr></th>
393
+ <th><nobr>表具状态</nobr></th>
394
+ <th><nobr>初始气表底数</nobr></th>
395
+ <th><nobr>累计用气金额</nobr></th>
396
+ <th><nobr>表累购气量</nobr></th>
397
+ <th><nobr>表累购金额</nobr></th>
398
+
399
+ <th><nobr>抄表员(档案)</nobr></th>
400
+ <!-- <th><nobr>抄表员(档案)</nobr></th>-->
401
+ <th><nobr>用气点</nobr></th>
402
+ <th><nobr>安装人</nobr></th>
403
+ <th><nobr>通气人</nobr></th>
404
+ <!-- <th><nobr>点火状态</nobr></th>-->
405
+ <th><nobr>抄表册编号</nobr></th>
406
+
407
+ <th><nobr>抄表册顺序</nobr></th>
408
+ <th><nobr>表剩余金额</nobr></th>
409
+ <!-- <th><nobr>首次购气日期</nobr></th>-->
410
+ <th><nobr>写卡次数</nobr></th>
411
+ <th><nobr>补卡次数</nobr></th>
412
+ <!-- <th><nobr>购气次数</nobr></th>-->
413
+
414
+ <th><nobr>表同步状态</nobr></th>
415
+ <th><nobr>微信绑定</nobr></th>
416
+
417
+ <th>
418
+ <nobr>银行户名</nobr>
419
+ </th>
420
+ <th>
421
+ <nobr>银行名称</nobr>
422
+ </th>
423
+ <th>
424
+ <nobr>银行账号</nobr>
425
+ </th>
426
+ <th>
427
+ <nobr>银行身份证号</nobr>
428
+ </th>
429
+ <th>
430
+ <nobr>缴费编号</nobr>
431
+ </th>
432
+ <th>
433
+ <nobr>报警器编号</nobr>
434
+ </th>
435
+ <th>
436
+ <nobr>换表时间</nobr>
437
+ </th>
438
+ <th>
439
+ <nobr>灶具信息</nobr>
440
+ </th>
441
+ </tr>
442
+ </template>
443
+ <template partial='body'>
444
+ <!--<td style="text-align: center;"><nobr>-->
445
+ <!--<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>-->
446
+ <!--</nobr> </td>-->
447
+ <td style="text-align: center;"><nobr>{{row.indaxs}}</nobr></td>
448
+ <td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
449
+ <td style="text-align: center;"><nobr>{{row.f_userinfo_code}}</nobr></td>
450
+ <td style="text-align: center;"><nobr>{{row.f_whether_hairpin}}</nobr></td>
451
+ <td style="text-align: center;"><nobr>{{row.f_card_id}}</nobr></td>
452
+ <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
453
+ <td style="text-align: center;"><nobr>{{row.f_residential_area}}</nobr></td>
454
+ <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
455
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
456
+ <td style="text-align: center;"><nobr>{{row.f_usetype}}</nobr></td>
457
+ <td style="text-align: center;"><nobr>{{row.f_book_slice_area}}</nobr></td>
458
+ <td style="text-align: center;"><nobr>{{row.f_gas_date}}</nobr></td>
459
+ <!-- 气价类型,单价暂时未处理 -->
460
+ <td style="text-align: center;"><nobr>&nbsp;&nbsp;</nobr></td>
461
+ <td style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></td>
462
+ <td style="text-align: center;"><nobr>{{row.value}}</nobr></td>
463
+
464
+ <td style="text-align: center;"><nobr>{{row.f_position}}</nobr></td>
465
+ <td style="text-align: center;"><nobr>{{row.f_cost_type}}</nobr></td>
466
+ <td style="text-align: center;"><nobr>{{row.f_meter_type}}</nobr></td>
467
+ <td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
468
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
469
+ <td style="text-align: center;"><nobr>{{row.f_metertitles}}</nobr></td>
470
+ <td style="text-align: center;"><nobr>{{row.f_aroundmeter}}</nobr></td>
471
+ <td style="text-align: center;"><nobr>{{row.f_install_date}}</nobr></td>
472
+ <td style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></td>
473
+ <td style="text-align: center;"><nobr>{{row.f_balance}}</nobr></td>
474
+ <td style="text-align: center;"><nobr>{{row.f_hand_date}}</nobr></td>
475
+ <!-- <td style="text-align: center;"><nobr>{{row.f_max_operate_date}}</nobr></td>-->
476
+ <td style="text-align: center;"><nobr>{{row.f_valve_state}}</nobr></td>
477
+
478
+ <!-- <td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>-->
479
+ <td style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></td>
480
+ <td style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></td>
481
+
482
+ <td style="text-align: center;"><nobr>{{row.f_open_date}}</nobr></td>
483
+ <td style="text-align: center;"><nobr>{{row.f_credentials}}</nobr></td>
484
+ <td style="text-align: center;"><nobr>{{row.f_idnumber}}</nobr></td>
485
+ <td style="text-align: center;"><nobr>{{row.f_people_num}}</nobr></td>
486
+ <td style="text-align: center;"><nobr>{{row.f_ins_stop_date}}</nobr></td>
487
+ <td style="text-align: center;"><nobr>{{row.f_createfile_date}}</nobr></td>
488
+ <td style="text-align: center;"><nobr>{{row.f_createfile_person}}</nobr></td>
489
+ <td style="text-align: center;"><nobr>{{row.f_depname}}</nobr></td>
490
+ <td style="text-align: center;"><nobr>{{row.f_comments}}</nobr></td>
491
+
492
+ <!-- <td style="text-align: center;"><nobr>{{row.value}}</nobr></td>-->
493
+ <td style="text-align: center;"><nobr>{{row.f_used_name}}</nobr></td>
494
+ <td style="text-align: center;"><nobr>{{row.f_rent_phone}}</nobr></td>
495
+ <td style="text-align: center;"><nobr>{{row.f_rent_name}}</nobr></td>
496
+ <td style="text-align: center;"><nobr>{{row.f_zuhu_phone}}</nobr></td>
497
+ <td style="text-align: center;"><nobr>{{row.f_contract_id}}</nobr></td>
498
+ <td style="text-align: center;"><nobr>{{row.f_is_mgq}}</nobr></td>
499
+ <td style="text-align: center;"><nobr>{{row.f_send_usegas_card}}</nobr></td>
500
+
501
+ <td style="text-align: center;"><nobr>{{row.f_usetype}}</nobr></td>
502
+ <!-- <td style="text-align: center;"><nobr>{{row.f_usestate}}</nobr></td>-->
503
+ <!--<td style="text-align: center;"><nobr>{{row.f_people_num}}</nobr></td>-->
504
+
505
+ <td style="text-align: center;"><nobr>{{row.f_meter_style}}</nobr></td>
506
+ <td style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></td>
507
+ <td style="text-align: center;"><nobr>{{row.f_initial_base}}</nobr></td>
508
+ <td style="text-align: center;"><nobr>{{row.f_total_usegas_amount}}</nobr></td>
509
+ <td style="text-align: center;"><nobr>{{row.f_total_gas}}</nobr></td>
510
+ <td style="text-align: center;"><nobr>{{row.f_total_fee}}</nobr></td>
511
+
512
+ <td style="text-align: center;"><nobr>{{row.f_inputtor}}</nobr></td>
513
+ <!-- <td style="text-align: center;"><nobr>{{row.f_book_inputtor}}</nobr></td>-->
514
+ <td style="text-align: center;"><nobr>{{row.f_userfiles_address}}</nobr></td>
515
+ <td style="text-align: center;"><nobr>{{row.f_install_person}}</nobr></td>
516
+ <td style="text-align: center;"><nobr>{{row.f_gas_person}}</nobr></td>
517
+ <!-- <td style="text-align: center;"><nobr>{{row.f_fire_state}}</nobr></td>-->
518
+ <td style="text-align: center;"><nobr>{{row.f_meter_book_num}}</nobr></td>
519
+
520
+ <td style="text-align: center;"><nobr>{{row.f_meter_book_sort}}</nobr></td>
521
+ <td style="text-align: center;"><nobr>{{row.f_balance_amount}}</nobr></td>
522
+ <!-- <td style="text-align: center;"><nobr>{{row.f_min_operate_date}}</nobr></td>-->
523
+ <td style="text-align: center;"><nobr>{{row.f_times}}</nobr></td>
524
+ <td style="text-align: center;"><nobr>{{row.f_fillcard_times}}</nobr></td>
525
+ <!-- <td style="text-align: center;"><nobr>{{row.f_sell_number}}</nobr></td>-->
526
+ <td style="text-align: center;"><nobr>{{row.f_sendsuccess}}</nobr></td>
527
+ <td style="text-align: center;"><nobr>{{row.f_isband}}</nobr></td>
528
+
529
+ <td style="text-align: center;">
530
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_accopen}}</span></nobr>
531
+ </td>
532
+ <td style="text-align: center;">
533
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_name}}</span></nobr>
534
+ </td>
535
+ <td style="text-align: center;">
536
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_account}}</span></nobr>
537
+ </td>
538
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
539
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_idnumber}}</span></nobr>
540
+ </td>
541
+ <td style="text-align: center;">
542
+ <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_pay_number}}</span></nobr>
543
+ </td>
544
+ <td style="text-align: center;"><nobr>{{row.f_alarm_code}}</nobr></td>
545
+ <td style="text-align: center;"><nobr>{{row.f_maxdate}}</nobr></td>
546
+ <td style="text-align: center;"><nobr>{{row.f_devices_type}}</nobr></td>
547
+ </template>
548
+ <template partial='foot'>
549
+
550
+ </template>
551
+ </data-grid>
552
+ </criteria-paged>
553
+
554
+ <table class="table-hover">
555
+ <tr style="position: relative" class="table-bordered">
556
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
557
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
558
+ 购气量合计:&emsp;{{sumsmodel.f_total_gas}}
559
+ </td>
560
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
561
+ 账户余额合计:&emsp;{{sumsmodel.f_balance}}
562
+ </td>
563
+ </tr>
564
+ </table>
565
+
566
+ <modal :show.sync="printshow" v-ref:modal backdrop="false">
567
+ <header slot="modal-header" class="modal-header text-center">
568
+ <h4 class="modal-title">打印列选择</h4>
569
+ <input type="checkbox" class="" id="f_generations" v-model="all">
570
+ <label for="f_generations" class="font-size">全选</label>
571
+ </header>
572
+ <article slot="modal-body">
573
+ <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
574
+ <div class="col-sm-3" v-for="f in fields">
575
+ <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
576
+ <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
577
+ </div>
578
+ </div>
579
+ </article>
580
+ <footer slot="modal-footer" class="modal-footer">
581
+ <center>
582
+
583
+ <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
584
+ <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
585
+ <print-table :model='model' v-show="false" v-ref:print
586
+ :top='40' :left='60' :right='40' :bottom='60'
587
+ :thead="thead" :tfoot='tfoot' :attach="yangsen"
588
+ :fields="modelval" :printpage="true">
589
+ </print-table>
590
+ </center>
591
+ </footer>
592
+ </modal>
593
+ </div>
594
+ <div class="flex" v-if="show">
595
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
596
+ </div>
597
+ </div></div></div>
598
+ <high-meter-idcard :show.sync="false" v-ref:highcard ></high-meter-idcard>
599
+ </template>
600
+
601
+ <script>
602
+ import {HttpResetClass, PagedList} from 'vue-client'
603
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
604
+ import exportConfig from '../../components/sale/config/exportConfig'
605
+ let cardBtnGen = async function (self, val) {
606
+ self.cardInfo = val.data
607
+
608
+ // 判断读卡是否需要卡密码
609
+ console.log('读卡上的信息', self.cardInfo)
610
+
611
+ if (self.cardInfo.NewParam) {
612
+ if (self.cardInfo.NewParam.error) {
613
+ if (self.cardInfo.NewParam.error === '0001') {
614
+ // 需要重新读卡并传卡密码
615
+ if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
616
+ self.readCardParam = self.model.rows[0].f_card_password
617
+ self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
618
+ } else {
619
+ self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
620
+ return
621
+ }
622
+ }
623
+ }
624
+ }
625
+ self.card=self.cardInfo.CardID
626
+ self.search()
627
+ }
628
+ let readySomething = async function (self) {
629
+ await self.$MagLoadParams.loadParam()
630
+ // await self.$LoadParams.loadParam(self.f_filialeid)
631
+ self.initParams()
632
+ self.getPricenames()
633
+ self.adjustable()
634
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
635
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
636
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
637
+ // await self.$refs.paged.$refs.cri.search()
638
+ }
639
+ export default {
640
+ title: '综合档案信息查询',
641
+ data() {
642
+ return {
643
+ IdCardInfo:'',
644
+ card:'',
645
+ isSingleUser: null,
646
+ other:[],
647
+ footer:[],
648
+ model: new PagedList('rs/sql/compreQuery', 20,
649
+ {items: this.orderitem ? this.orderitem : `'f_residential_area desc,f_building desc,f_unit desc,f_floor desc,f_room desc'`},
650
+ {
651
+ 'f_total_gas': 0,
652
+ 'f_balance': 0
653
+ }),
654
+ criteriaShow: false,
655
+ orgCondtionStr:'',
656
+ residentialArea: [],
657
+ gasproperties:[],
658
+ meterbrands: [],
659
+ modelval: [],
660
+ prices: [],
661
+ printshow: false,
662
+ all: false,
663
+ fields: {},
664
+ thead: '',
665
+ tfoot: '',
666
+ defaultfield: [],
667
+ //排序
668
+ orderitem: 'f_residential_area',
669
+ orderitem1: 'f_unit',
670
+ orderitem2: 'f_building',
671
+ orderitem3: 'f_floor',
672
+ orderitem4: 'f_room',
673
+
674
+ orderFields: {
675
+ f_operate_date: 'no'
676
+ },
677
+ config: {
678
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
679
+ },
680
+ area: [],
681
+ bookinputtorperson:[],
682
+ conditon2:'',
683
+ show:false,
684
+ rowdata:{},
685
+ f_filialeid: this.$login.f.orgid,
686
+ // 下拉框参数
687
+ userstates:this.$appdata.getParam('客户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')] : [],
688
+ bandstates:this.$appdata.getParam('微信绑定') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('微信绑定')] : [],
689
+ initres: {
690
+ org:[this.$login.f.orgid],
691
+ dep:[],
692
+ user:[],
693
+ },
694
+ adjustables: [],
695
+ // 合计数据
696
+ sumsmodel: {},
697
+ //表册片区
698
+ bookSlice:[{label: '全部',value: ''}],
699
+ pricenames:[],
700
+ dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
701
+ deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
702
+ }
703
+ },
704
+ ready(){
705
+ this.getaddress()
706
+ readySomething(this).then(() => {
707
+ this.$emit('ready')
708
+ }).catch((error) => {
709
+ this.$emit('error', error)
710
+ })
711
+ },
712
+ methods: {
713
+ ReadIDCard(){
714
+ this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
715
+ console.log('======',msg)
716
+ if(msg.err !== 0){ return}
717
+ this.IdCardInfo=msg.strID
718
+ })
719
+ if(this.IdCardInfo) {
720
+ this.search()
721
+ }else{
722
+ alert("读取失败,找不到用户信息")
723
+ }
724
+ },
725
+ cardBtn (val) {
726
+ // this.clear()
727
+ cardBtnGen(this, val)
728
+ },
729
+ getPricenames () {
730
+ let f_filialeid = this.f_filialeid
731
+ let result = []
732
+ this.$MagGetSaleParam.getPrices().forEach((item) => {
733
+ if (item.f_state === '有效' && f_filialeid == item.f_filialeid) {
734
+ let value = {
735
+ label: item.f_price_name,
736
+ value: item.f_price_name
737
+ }
738
+ result.push(value)
739
+ }
740
+ })
741
+ this.pricenames = [{label:'全部',value:''},...result];
742
+ },
743
+ getotherfooter () {
744
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
745
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
746
+ this.other = [];
747
+ this.footer = [];
748
+ let exportdata = this.getCondition;
749
+ let otherInData = [];
750
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
751
+ // let footerData = [], exportfield = this.getExportField;
752
+ // footerData.push("合计");
753
+ // let self = this;
754
+ // for (var field in self.sumsmodel) {
755
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
756
+ // }
757
+ // this.footer.push(footerData);
758
+ this.other.push(otherInData);
759
+ },
760
+
761
+ initParams() {
762
+ // 初始化气表品牌
763
+ let brandArr = []
764
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
765
+ let temp = {}
766
+ temp.label = item.label
767
+ temp.value = item.value.f_meter_brand
768
+ brandArr.push(temp)
769
+ })
770
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
771
+ //初始化气表价格
772
+ this.prices = this.$MagGetSaleParam.getPrices();
773
+ },
774
+ async getaddress(){
775
+ console.log('开始获取小区')
776
+ let HttpReset = new HttpResetClass()
777
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
778
+ data: {
779
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
780
+ }
781
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
782
+ console.log('小区',data)
783
+ let house = [{label: '全部', value: ''}]
784
+ for (let row of data.data){
785
+ console.log('开始保存小区')
786
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
787
+ }
788
+ this.residentialArea = house
789
+ },
790
+ search(){
791
+ this.$refs.paged.$refs.cri.search()
792
+ },
793
+ cancel() {
794
+ this.show = false
795
+ },
796
+ showmsg(obj){
797
+ this.rowdata=obj
798
+ this.show=true
799
+ },
800
+ selfSearch (args) {
801
+
802
+ //抄表员查询条件
803
+ // this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
804
+ // if(this.inputtouPerson.length !== 0){
805
+ // let str = JSON.stringify(this.inputtouPerson)
806
+ // str = str.replace(/"/g,`'`)
807
+ // str = str.replace(/\[/g,``)
808
+ // str = str.replace(/\]/g,``)
809
+ // console.log("=====抄表员model22222222222绑定====",str)
810
+ // //查询多个抄表员时条件
811
+ // // args.condition += ` and f_inputtor in ( ${str} )`
812
+ // }
813
+ //
814
+ // debugger
815
+ // this.bookinputtorperson = this.$refs.paged.$refs.cri.model.f_book_inputtor;
816
+ // if(this.bookinputtorperson.length !== 0){
817
+ // let str = JSON.stringify(this.bookinputtorperson)
818
+ // str = str.replace(/"/g,`'`)
819
+ // str = str.replace(/\[/g,``)
820
+ // str = str.replace(/\]/g,``)
821
+ // console.log("=====抄表员model22222222222绑定====",str)
822
+ // //查询多个抄表员时条件
823
+ // args.condition += ` and f_book_inputtor in ( ${str} )`
824
+ // }
825
+ if (!this.orgCondtionStr) {
826
+ args.condition = `${args.condition}` + " and uf.f_orgid = " + this.$login.f.orgid
827
+ } else {
828
+ args.condition = `${args.condition}` + this.orgCondtionStr
829
+ }
830
+ this.conditon2 = args.condition
831
+ console.log("查看条件",this.conditon2)
832
+ if(this.card!=''){
833
+ args.condition +=` and f_card_id='${this.card}'`
834
+ }
835
+ if(this.IdCardInfo!=''){
836
+ args.condition+=` and f_idnumber='${this.IdCardInfo}'`
837
+ }
838
+ this.model.search(args.condition, args.model)
839
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
840
+ this.card=''
841
+ this.IdCardInfo=''
842
+ console.log('合计字段',this.sumsmodel)
843
+ },
844
+ clear(){
845
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
846
+ this.$refs.paged.$refs.cri.model[key] = []
847
+ })
848
+ },
849
+ hidden(){
850
+ this.criteriaShow = !this.criteriaShow
851
+ },
852
+ getRes(obj) {
853
+ this.orgCondtionStr = obj
854
+ },
855
+ stamp () {
856
+ this.all = false
857
+ //默认选择要打印的列
858
+ this.modelval = defaultPrint.config
859
+ this.fields = this.getfield
860
+ console.log('所有打印字段',this.fields)
861
+ this.printshow = true
862
+ this.put()
863
+ },
864
+ put () {
865
+ // 对Modelval进行排序
866
+ this.sortModelval()
867
+ this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
868
+ for (let key of this.modelval) {
869
+ this.thead += '<th>' + this.fields[key] + '</th>'
870
+ }
871
+ this.thead += '</tr>'
872
+ },
873
+ print () {
874
+ this.$refs.print.PrintAsFile()
875
+ this.printshow = false
876
+ },
877
+ close () {
878
+ this.printshow = false
879
+ this.all = false
880
+ },
881
+ userTypeChange () {
882
+ this.gasproperties=[]
883
+ if(this.$refs.paged.$refs.cri.model !==null) {
884
+ // this.$refs.paged.$refs.cri.model.f_gasproperties=''
885
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
886
+ console.log("this.gasproperties",this.gasproperties)
887
+ // this.gasproperties.push({label: '全部', value: ''})
888
+ }
889
+ else{
890
+ this.gasproperties =[{label: '全部', value: ''}]
891
+ }
892
+ },
893
+ // 对选择的列进行排序
894
+ sortModelval () {
895
+ let sortModel = []
896
+ Object.keys(this.fields).forEach((key) => {
897
+ if (this.modelval.includes(key)) {
898
+ sortModel.push(key)
899
+ }
900
+ })
901
+ this.modelval = sortModel
902
+ console.log('选择的打印的字段', this.modelval)
903
+ },
904
+ async updateParams() {
905
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
906
+ this.inputtores = [];
907
+ this.inputtores.push({label: "全部", value: ""})
908
+ this.initSlice(this.f_filialeid)
909
+ debugger
910
+ if(this.allorgid!=null){
911
+ this.allorgid.forEach((res)=>{
912
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
913
+ })
914
+ }
915
+ },
916
+ async initSlice (val) {
917
+ if (val) {
918
+ let getAllArea = await this.$resetpost('/rs/search', {
919
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
920
+ userid: this.$login.f.id
921
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
922
+ let arr = getAllArea.data.filter((res) => {
923
+ return res.parentid == val
924
+ })
925
+ this.bookSlice = []
926
+ console.log('过滤之后的片区-------------------', arr)
927
+ arr.forEach((res) => {
928
+ this.bookSlice.push({label: res.name, value: res.name})
929
+ })
930
+ }
931
+ },
932
+ adjustable () {
933
+ let arr = []
934
+ let filter = this.$login.f.orgid
935
+ console.log('xcx', this.$login.f.orgid, this.$MagGetSaleParam.getAdjustable(filter))
936
+ this.$MagGetSaleParam.getAdjustable(filter).forEach((item) => {
937
+ console.log('vvvv', item)
938
+ let temp = {}
939
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
940
+ temp.value = item.value.id
941
+ arr.push(temp)
942
+ })
943
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
944
+ },
945
+ //表册片区和抄表册关联
946
+ async inputtorchange(){
947
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
948
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
949
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
950
+ if((val2.length>0)){
951
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
952
+ /*if (val1[0]){
953
+ condition = condition+ ` and f_meter_book = '${val1[0]}' `
954
+ }*/
955
+ if(val2[0]) {
956
+ condition = condition + ` and f_book_slice_area = '${val2}' `
957
+ }
958
+ let param={
959
+ items:'*',
960
+ tablename:'t_meter_book',
961
+ condition:condition,
962
+ orderitem:'id'
963
+ }
964
+ let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
965
+ if (getMeterBooks.data) {
966
+ if(getMeterBooks.data.length >0){
967
+ let rs = [];
968
+ getMeterBooks.data.forEach((item)=>{
969
+ let temp = {
970
+ label:item.f_book_name,
971
+ value:item.id
972
+ };
973
+ rs.push(temp);
974
+
975
+ })
976
+ this.meterbooks = [{label: '全部',value: ''}, ...rs]
977
+ }else{
978
+ this.meterbooks = [{label: '全部',value: ''}]
979
+ }
980
+ }
981
+ }else{
982
+ this.meterbooks = [{label: '全部',value: ''}]
983
+ }
984
+ },
985
+ sort (field, rule) {
986
+ console.log('sort',this.orderFields)
987
+ let sortStr = ''
988
+ // 将所有排序方式设为不排序,实现相互排斥
989
+ for (let key in this.orderFields) {
990
+ if (this.orderFields[key] != 'no') {
991
+ if (key == 'f_address') {
992
+ sortStr += `,${this.orderitem} ${this.orderFields[key]}, ${this.orderitem2} ${this.orderFields[key]}, ${this.orderitem1} ${this.orderFields[key]},${this.orderitem3} ${this.orderFields[key]},${this.orderitem4} ${this.orderFields[key]}`
993
+ } else {
994
+ sortStr += `,${key} ${this.orderFields[key]}`
995
+ }
996
+ }
997
+ }
998
+ if (sortStr == '') {
999
+ sortStr += `,f_residential_area desc,f_building desc,f_unit desc,f_floor desc,f_room desc`
1000
+ }
1001
+ this.model.model.items = sortStr.replace(',','').toString()
1002
+ this.model.paramSource.items = 'this.model.items'
1003
+
1004
+ // 如果新规则不排序,还原为默认排序
1005
+ // if (rule === 'no'|| rule === 'desc') {
1006
+ // this.model.paramSource.items= `'${this.orderitem} desc,${this.orderitem2} desc,${this.orderitem1} desc,${this.orderitem3} desc,${this.orderitem4} desc'`
1007
+ // } else {
1008
+ // this.model.paramSource.items= `'${this.orderitem},${this.orderitem2},${this.orderitem1},${this.orderitem3},${this.orderitem4} ${rule}'`
1009
+ // }
1010
+ //
1011
+ console.log('sortstr',sortStr.replace(',',''))
1012
+ this.search()
1013
+ }
1014
+ },
1015
+ watch:{
1016
+ 'model.rows.length' () {
1017
+ this.isSingleUser = this.model.rows
1018
+ },
1019
+ 'all' (val) {
1020
+ if (val) {
1021
+ this.modelval = this.bodyData
1022
+ } else {
1023
+ this.modelval = defaultPrint.config
1024
+ this.put()
1025
+ }
1026
+ },
1027
+ 'modelval.length' () {
1028
+ this.put()
1029
+ },
1030
+ sumsmodel:{
1031
+ handler: function(val) {
1032
+ this.getotherfooter();
1033
+ },
1034
+ deep: true
1035
+ },
1036
+ 'orgCondtionStr'(val) {
1037
+ let res = val.match(/'(.*?)'/)
1038
+ console.log('正则提取:',res && res[1])
1039
+ if (res) {
1040
+ this.f_filialeid = res[1]
1041
+ if(res.input !=null){
1042
+ let resorgid = res.input.substring(res.input.indexOf("'"));
1043
+ if(resorgid!= null && resorgid!=''){
1044
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
1045
+ // resorgid = resorgid.replaceAll("'","");
1046
+ resorgid = resorgid.replace(/'/g,"");
1047
+ this.allorgid = resorgid.split(",")
1048
+ }
1049
+ }
1050
+ this.updateParams()
1051
+ }
1052
+ },
1053
+ },
1054
+ computed:{
1055
+ TableStates () {
1056
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
1057
+ },
1058
+
1059
+ usertypes() {
1060
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
1061
+ },
1062
+ useTypes() {
1063
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
1064
+ },
1065
+ positions() {
1066
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装位置')]
1067
+ },
1068
+ meterbooks(){
1069
+ return [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
1070
+ },
1071
+ metertypes() {
1072
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
1073
+ },
1074
+ pricetypes() {
1075
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
1076
+ },
1077
+ person() {
1078
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装人')]
1079
+ },
1080
+ tablestate() {
1081
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表具状态')]
1082
+ },
1083
+
1084
+ // getPricenames() {
1085
+ // let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1086
+ // let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1087
+ // let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1088
+ // // console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
1089
+ // if(this.$refs.paged.$refs.cri.model !==null) {
1090
+ // console.log(1111)
1091
+ // console.log(11112, this.prices)
1092
+ // let rs = []
1093
+ // let priceArr = []
1094
+ // if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
1095
+ // let params = {
1096
+ // f_user_type: f_user_type[0],
1097
+ // f_gasproperties: f_gasproperties[0],
1098
+ // f_price_type: pricetype[0],
1099
+ // filter: this.f_filialeid,
1100
+ // prices: this.prices
1101
+ // }
1102
+ // console.log(11113,params,this.$login.f)
1103
+ // this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1104
+ // let temp = {}
1105
+ // temp.label = item.label
1106
+ // temp.value = item.value.f_price_name
1107
+ // priceArr.push(temp)
1108
+ // })
1109
+ // rs = [{label: '全部', value: ''}, ...priceArr]
1110
+ // }
1111
+ // if (rs.length === 0) {
1112
+ // console.log('rs读出来是空')
1113
+ // this.$refs.paged.$refs.cri.model.f_price_name = ''
1114
+ // }
1115
+ // return rs
1116
+ // }
1117
+ // },
1118
+ inputtores () {
1119
+ // 获取抄表员
1120
+ console.log('获取抄表员', this.$login.f)
1121
+ let rs = []
1122
+ if (this.$login.f.f_gasman.length > 0) {
1123
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
1124
+ let temp = {
1125
+ label: this.$login.f.f_gasman[i].name,
1126
+ value: this.$login.f.f_gasman[i].name
1127
+ }
1128
+ rs.push(temp)
1129
+ }
1130
+ }
1131
+
1132
+ return [{label: '全部', value: ''}, ...rs]
1133
+ },
1134
+ authArr () {
1135
+ return this.$login.r ? this.$login.r : []
1136
+ },
1137
+ getCondition(){
1138
+
1139
+ return {condition:this.conditon2}
1140
+ },
1141
+ getfield(){
1142
+ let data = {}
1143
+ this.bodyData.forEach((value, index)=>{
1144
+ data[this.bodyData[index]] = this.headData[index]
1145
+ })
1146
+ //合计字段打印
1147
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
1148
+ if(this.sumsmodel){
1149
+ Object.keys(this.sumsmodel).forEach((key) => {
1150
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
1151
+ })
1152
+ }else{
1153
+ this.tfoot += '暂无'
1154
+ }
1155
+ this.tfoot += '</th></tr>'
1156
+ return data
1157
+ },
1158
+ getExportField() {
1159
+ return exportConfig.compreConfig
1160
+ }
1161
+ }
1162
+ }
1163
+ </script>