manage-client 3.2.170 → 3.2.172

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