manage-client 3.3.236 → 3.3.237

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1444 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search" v-if="!show">
4
+ <div class="flex">
5
+
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 for="startDate" class="font_normal_body">录入日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate"
21
+ class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="span" style="float:right;">
35
+ <button class="button_search button_spacing" @click="search()">查询</button>
36
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
37
+
38
+ <!-- <button class="btn btn-default" @click="$parent.$parent.Fileinput()">反盘导入</button>-->
39
+ <!-- <export-excel :data="$parent.$parent.getCondition"-->
40
+ <!-- :field="$parent.$parent.getBankfield" :header="$parent.$parent.other"-->
41
+ <!-- sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="newhandplanQuery" template-name='送盘导出' btn-name="送盘导出"-->
42
+ <!-- :choose-col="true"></export-excel>-->
43
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
44
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
45
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="handplanQuery"
46
+ template-name='抄表查询导出'
47
+ :choose-col="true"></export-excel>
48
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"
49
+ :field="$parent.$parent.getfield"
50
+ :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
51
+ titletable="抄表查询"
52
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
53
+
54
+ <div style="float: right" class="button_spacing"
55
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
56
+ @click="$parent.$parent.hidden()"></div>
57
+ </div>
58
+ </div>
59
+ <div class="row" v-show="$parent.$parent.criteriaShow">
60
+ <div class="col-sm-2 form-group">
61
+ <label for="startDate" class="font_normal_body">下发日期</label>
62
+ <datepicker id="handStartDate" placeholder="开始日期" style="width:60%"
63
+ v-model="model.handStartDate"
64
+ :value.sync="model.handStartDate"
65
+ :format="'yyyy-MM-dd 00:00:00'"
66
+ :show-reset-button="true"
67
+ condition="f_hand_date >= '{}'">
68
+ </datepicker>
69
+ </div>
70
+ <div class="col-sm-2 form-group">
71
+ <label for="endDate"
72
+ class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
73
+ <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
74
+ v-model="model.handEndDate"
75
+ :value.sync="model.handEndDate"
76
+ :format="'yyyy-MM-dd 23:59:59'"
77
+ :show-reset-button="true"
78
+ condition="f_hand_date <= '{}'">
79
+ </datepicker>
80
+ </div>
81
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"
82
+ v-ref:sel></res-select-group>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
85
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
86
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
87
+ </div>
88
+ <div class="col-sm-2 form-group">
89
+ <label class="font_normal_body">抄表状态</label>
90
+ <v-select :value.sync="model.f_meter_state"
91
+ v-model="model.f_meter_state"
92
+ :options='$parent.$parent.meterstate' placeholder='请选择'
93
+ condition="f_meter_state = '{}'"
94
+ close-on-select></v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">表单状态</label>
98
+ <v-select :value.sync="model.f_hand_state"
99
+ v-model="model.f_hand_state"
100
+ :options='$parent.$parent.handstate' placeholder='请选择'
101
+ condition="f_hand_state = '{}'"
102
+ close-on-select></v-select>
103
+ </div>
104
+ <div class="col-sm-2 form-group">
105
+ <label class="font_normal_body">客户名称</label>
106
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
107
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
108
+ </div>
109
+
110
+ <div class="col-sm-2 form-group">
111
+ <label class="font_normal_body">小区名称</label>
112
+ <v-select :value.sync="model.f_residential_area"
113
+ class="select_list select"
114
+ enter-push
115
+ multiple="true"
116
+ v-model="model.f_residential_area"
117
+ style="width: 60%"
118
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
119
+ close-on-select>
120
+
121
+ </v-select>
122
+ </div>
123
+ <div class="col-sm-2 form-group">
124
+ <label class="font_normal_body">楼&emsp;栋&emsp;</label>
125
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
126
+ condition="f_building like '%{}%'" placeholder="楼栋">
127
+ </div>
128
+ <div class="col-sm-2 form-group">
129
+ <label class="font_normal_body">客户地址</label>
130
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
131
+ condition="f_address like '%{}%'" placeholder='客户地址'>
132
+ </div>
133
+ <div class="col-sm-2 form-group">
134
+ <label for="startDate" class="font_normal_body">审核日期</label>
135
+ <datepicker id="f_audit_date" placeholder="开始日期" style="width:60%"
136
+ v-model="model.auditStartDate"
137
+ :value.sync="model.auditStartDate"
138
+ :format="'yyyy-MM-dd 00:00:00'"
139
+ :show-reset-button="true"
140
+ condition="f_audit_date >= '{}'">
141
+ </datepicker>
142
+ </div>
143
+ <div class="col-sm-2 form-group">
144
+ <label for="endDate"
145
+ class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
146
+ <datepicker id="f_audit_date" placeholder="结束日期" style="width:60%"
147
+ v-model="model.auditEndDate"
148
+ :value.sync="model.auditEndDate"
149
+ :format="'yyyy-MM-dd 23:59:59'"
150
+ :show-reset-button="true"
151
+ condition="f_audit_date <= '{}'">
152
+ </datepicker>
153
+ </div>
154
+
155
+ <div class="col-sm-2 form-group">
156
+ <label class="font_normal_body">客户类型</label>
157
+ <v-select :value.sync="model.f_user_type"
158
+ @change="$parent.$parent.userTypeChange()"
159
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
160
+ condition="f_user_type = '{}'"
161
+ close-on-select></v-select>
162
+ </div>
163
+ <div class="col-sm-2 form-group">
164
+ <label class="font_normal_body">用气性质</label>
165
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
166
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
167
+ condition="f_gasproperties = '{}'"
168
+ close-on-select></v-select>
169
+ </div>
170
+ <div class="col-sm-2 form-group">
171
+ <label class="font_normal_body">气价类型</label>
172
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
173
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
174
+ close-on-select v-ref:type>
175
+ </v-select>
176
+ </div>
177
+ <div class="col-sm-2 form-group">
178
+ <label class="font_normal_body">气价名称</label>
179
+ <v-select :value.sync="model.f_price_name"
180
+ v-model="model.f_price_name"
181
+ :options="$parent.$parent.getPricenames"
182
+ condition="f_price_name = '{}'"
183
+ close-on-select></v-select>
184
+ </div>
185
+ <div class="col-sm-2 form-group">
186
+ <label class="font_normal_body">气表类型</label>
187
+ <v-select :value.sync="model.f_meter_classify" multiple
188
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
189
+ condition="f_meter_classify in {}"
190
+ close-on-select></v-select>
191
+ </div>
192
+ <div class="col-sm-2 form-group">
193
+ <label class="font_normal_body">气表品牌</label>
194
+ <v-select :value.sync="model.f_meter_brand" multiple
195
+ v-model="model.f_meter_brand"
196
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
197
+ condition="f_meter_brand in {}"
198
+ close-on-select></v-select>
199
+ </div>
200
+ <div class="col-sm-2 form-group">
201
+ <label class="font_normal_body">用&ensp;气&ensp;量</label>
202
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
203
+ v-model="model.f_oughtamount_big" condition="f_oughtamount >= {}" placeholder='大于等于'>
204
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
205
+ v-model="model.f_oughtamount_small" condition="f_oughtamount <= {}" placeholder='小于等于'>
206
+ </div>
207
+ <!-- <div class="col-sm-2 form-group">-->
208
+ <!-- <label class="font_normal_body">气价名称</label>-->
209
+ <!-- <v-select :value.sync="model.f_price_name" v-model="model.f_price_name" :options="$parent.$parent.prices"-->
210
+ <!-- condition="f_price_name = '{}'" close-on-select></v-select>-->
211
+ <!-- </div>-->
212
+ <div class="col-sm-2 form-group">
213
+ <label class="font_normal_body">&ensp;表&ensp;号&ensp;&ensp;</label>
214
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
215
+ condition="f_meternumber = '{}' " placeholder="表号">
216
+ </div>
217
+ <div class="col-sm-2 form-group">
218
+ <label for="startDate" class="font_normal_body">收费日期</label>
219
+ <datepicker id="handStartDate" placeholder="开始日期" style="width:60%"
220
+ v-model="model.sellStartDate"
221
+ :value.sync="model.sellStartDate"
222
+ :format="'yyyy-MM-dd 00:00:00'"
223
+ :show-reset-button="true"
224
+ condition="f_sellinggas_operate_date >= '{}'">
225
+ </datepicker>
226
+ </div>
227
+ <div class="col-sm-2 form-group">
228
+ <label for="endDate"
229
+ class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
230
+ <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
231
+ v-model="model.sellEndDate"
232
+ :value.sync="model.sellEndDate"
233
+ :format="'yyyy-MM-dd 23:59:59'"
234
+ :show-reset-button="true"
235
+ condition="f_sellinggas_operate_date <= '{}'">
236
+ </datepicker>
237
+ </div>
238
+ <div class="col-sm-2 form-group">
239
+ <label class="font_normal_body">抄&nbsp;&nbsp;表&nbsp;员</label>
240
+ <v-select :value.sync="model.f_inputtor"
241
+ v-model="model.f_inputtor"
242
+ :options='$parent.$parent.inputtores' placeholder='请选择'
243
+ condition="f_inputtor = '{}'"
244
+ close-on-select :search="false">
245
+ </v-select>
246
+ </div>
247
+ <!--表册片区-->
248
+ <div class="col-sm-2 form-group">
249
+ <label class="font_normal_body">表册片区</label>
250
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
251
+ @change="$parent.$parent.inputtorchange"
252
+ multiple
253
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
254
+ style="width:60%"
255
+ close-on-select
256
+ condition="f_book_slice_area in {}"></v-select>
257
+ </div>
258
+ <div class="col-sm-2 form-group">
259
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
260
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
261
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
262
+ style="width:60%"
263
+ multiple
264
+ close-on-select
265
+ condition="f_meter_book_num in {}"></v-select>
266
+ </div>
267
+ <div class="col-sm-2 form-group">
268
+ <label class="font_normal_body">录入人员</label>
269
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_input_person"
270
+ condition="f_input_person like '%{}%'" placeholder='录入人员'>
271
+ </div>
272
+ <div class="col-sm-2 form-group">
273
+ <label class="font_normal_body">是否缴费</label>
274
+ <v-select :value.sync="model.f_whether_pay"
275
+ v-model="model.f_whether_pay"
276
+ :options='$parent.$parent.whetherPay' placeholder='请选择'
277
+ condition="f_whether_pay = '{}'"
278
+ close-on-select></v-select>
279
+ </div>
280
+ <div class="col-sm-2 form-group">
281
+ <label for="belongmonth" class="font_normal_body">所属年月</label>
282
+ <datepicker placeholder="所属年月" style="width:60%"
283
+ v-model="model.belongmonth"
284
+ :value.sync="model.belongmonth"
285
+ :format="'yyyy-MM'"
286
+ :show-reset-button="true"
287
+ condition="belongmonth = '{}'"
288
+ :select-month="true">
289
+ </datepicker>
290
+ </div>
291
+ <div class="col-sm-2 form-group">
292
+ <label class="font_normal_body">银行名称</label>
293
+ <v-select :value.sync="model.f_bank_name" v-model="model.f_bank_name"
294
+ :options='$parent.$parent.banklist' placeholder='银行名称'
295
+ style="width:60%"
296
+ close-on-select
297
+ condition="f_bank_name = '{}'"></v-select>
298
+ </div>
299
+
300
+ <div class="col-sm-2 form-group">
301
+ <label class="font_normal_body">下账状态</label>
302
+ <v-select :value.sync="model.f_accounts_state"
303
+ :options='$parent.$parent.accountsState' placeholder='请选择'
304
+ v-model="model.f_accounts_state"
305
+ condition="f_accounts_state = '{}'"
306
+ close-on-select></v-select>
307
+ </div>
308
+ <!-- <div class="col-sm-2 form-group">-->
309
+ <!-- <label class="font_normal_body">&ensp;壁挂炉&ensp;</label>-->
310
+ <!-- <v-select :value.sync="model.f_bgl"-->
311
+ <!-- v-model="model.f_bgl"-->
312
+ <!-- :options='$parent.$parent.bgl' placeholder='请选择'-->
313
+ <!-- condition="f_bgl = '{}'"-->
314
+ <!-- close-on-select></v-select>-->
315
+ <!-- </div>-->
316
+ <div class="col-sm-2 form-group">
317
+ <label class="font_normal_body">总&ensp;分&ensp;表</label>
318
+ <v-select :value.sync="model.f_totalsplit_type"
319
+ v-model="model.f_totalsplit_type"
320
+ :options='$parent.$parent.totalsplitTypes'
321
+ placeholder='总分表'
322
+ style="width:60%"
323
+ close-on-select
324
+ condition="f_totalsplit_type = '{}'">
325
+ </v-select>
326
+ </div>
327
+ </div>
328
+ </div>
329
+ </criteria>
330
+
331
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
332
+ <template partial='head'>
333
+ <tr>
334
+ <th>
335
+ <!-- <nobr>客户编号</nobr>-->
336
+ <data-order field="f_userinfo_code" name="客户编号"
337
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
338
+ </th>
339
+ <th>
340
+ <nobr>客户名称</nobr>
341
+ </th>
342
+ <th>
343
+ <nobr>档案编号</nobr>
344
+ </th>
345
+ <th>
346
+ <nobr>片区</nobr>
347
+ </th>
348
+ <th>
349
+ <nobr>表册片区</nobr>
350
+ </th>
351
+ <th>
352
+ <!-- <nobr>客户地址</nobr>-->
353
+ <data-order field="f_address" name="客户地址"
354
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
355
+ </th>
356
+ <th>
357
+ <nobr>客户手机</nobr>
358
+ </th>
359
+ <th>
360
+ <nobr>表号</nobr>
361
+ </th>
362
+ <th>
363
+ <nobr>总分表</nobr>
364
+ </th>
365
+ <th>
366
+ <!-- <nobr>数据年月</nobr>-->
367
+ <data-order field="ym_data" name="数据年月"
368
+ :order.sync="$parent.$parent.$parent.orderFields.ym_data"></data-order>
369
+ </th>
370
+ <th>
371
+ <!-- <nobr>审核日期</nobr>-->
372
+ <data-order field="f_audit_date" name="审核日期"
373
+ :order.sync="$parent.$parent.$parent.orderFields.f_audit_date"></data-order>
374
+ </th>
375
+ <th>
376
+ <nobr>用气性质</nobr>
377
+ </th>
378
+ <th>
379
+ <nobr>上期底数</nobr>
380
+ </th>
381
+ <th>
382
+ <nobr>本期底数</nobr>
383
+ </th>
384
+ <th>
385
+ <nobr>用气量</nobr>
386
+ </th>
387
+ <!-- <th>-->
388
+ <!-- <nobr>违约金</nobr>-->
389
+ <!-- </th>-->
390
+ <th>
391
+ <nobr>用气金额</nobr>
392
+ </th>
393
+ <th>
394
+ <nobr>已交金额</nobr>
395
+ </th>
396
+ <th>
397
+ <nobr>欠费金额</nobr>
398
+ </th>
399
+ <th>
400
+ <nobr>优惠金额</nobr>
401
+ </th>
402
+ <th>
403
+ <nobr>上期余额</nobr>
404
+ </th>
405
+ <th>
406
+ <nobr>本期余额</nobr>
407
+ </th>
408
+ <th>
409
+ <nobr>下账状态</nobr>
410
+ </th>
411
+ <th>
412
+ <!-- <nobr>收费时间</nobr>-->
413
+ <data-order field="f_sellinggas_operate_date" name="收费时间"
414
+ :order.sync="$parent.$parent.$parent.orderFields.f_sellinggas_operate_date"></data-order>
415
+ </th>
416
+ <th>
417
+ <nobr>收费人员</nobr>
418
+ </th>
419
+ <!-- <th>-->
420
+ <!--&lt;!&ndash; <nobr>冲正时间</nobr>&ndash;&gt;-->
421
+ <!-- <data-order field="f_corrhand_date" name="冲正时间"-->
422
+ <!-- :order.sync="$parent.$parent.$parent.orderFields.f_corrhand_date"></data-order>-->
423
+ <!-- </th>-->
424
+ <!-- <th>-->
425
+ <!-- <nobr>冲正人员</nobr>-->
426
+ <!-- </th>-->
427
+ <th>
428
+ <!-- <nobr>下发日期</nobr>-->
429
+ <data-order field="f_hand_date" name="下发日期"
430
+ :order.sync="$parent.$parent.$parent.orderFields.f_hand_date"></data-order>
431
+ </th>
432
+ <th>
433
+ <!-- <nobr>所属年月</nobr>-->
434
+ <data-order field="belongmonth" name="所属年月"
435
+ :order.sync="$parent.$parent.$parent.orderFields.belongmonth"></data-order>
436
+ </th>
437
+ <th>
438
+ <!-- <nobr>录入日期</nobr>-->
439
+ <data-order field="f_input_date" name="录入日期"
440
+ :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
441
+ </th>
442
+ <th>
443
+ <nobr>气价名称</nobr>
444
+ </th>
445
+ <th>
446
+ <nobr>一阶气量</nobr>
447
+ </th>
448
+ <th>
449
+ <nobr>一阶单价</nobr>
450
+ </th>
451
+ <th>
452
+ <nobr>一阶气费</nobr>
453
+ </th>
454
+ <th>
455
+ <nobr>二阶气量</nobr>
456
+ </th>
457
+ <th>
458
+ <nobr>二阶单价</nobr>
459
+ </th>
460
+ <th>
461
+ <nobr>二阶气费</nobr>
462
+ </th>
463
+ <th>
464
+ <nobr>三阶气量</nobr>
465
+ </th>
466
+ <th>
467
+ <nobr>三阶单价</nobr>
468
+ </th>
469
+ <th>
470
+ <nobr>三阶气费</nobr>
471
+ </th>
472
+ <th>
473
+ <nobr>天数</nobr>
474
+ </th>
475
+ <th>
476
+ <nobr>抄表员</nobr>
477
+ </th>
478
+ <th>
479
+ <nobr>录入人员</nobr>
480
+ </th>
481
+ <th>
482
+ <nobr>是否缴费</nobr>
483
+ </th>
484
+
485
+ <th>
486
+ <nobr>抄表状态</nobr>
487
+ </th>
488
+ <th>
489
+ <nobr>状态</nobr>
490
+ </th>
491
+ <th>
492
+ <nobr>下发人员</nobr>
493
+ </th>
494
+ <th>
495
+ <nobr>部门</nobr>
496
+ </th>
497
+ <th>
498
+ <nobr>公司</nobr>
499
+ </th>
500
+ <th>
501
+ <nobr>附件</nobr>
502
+ </th>
503
+ </tr>
504
+ </template>
505
+ <template partial='body'>
506
+ <td style="text-align: center;">
507
+ <nobr>
508
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{ row.f_userinfo_code }}</a></span></nobr>
509
+ </td>
510
+ <td style="text-align: center;">
511
+ <nobr>{{ row.f_user_name }}</nobr>
512
+ </td>
513
+ <td style="text-align: center;">
514
+ <nobr>{{ row.f_olduserinfo_code }}</nobr>
515
+ </td>
516
+ <td style="text-align: center;">
517
+ <nobr>{{ row.f_zones }}</nobr>
518
+ </td>
519
+ <td style="text-align: center;">
520
+ <nobr>{{ row.f_book_slice_area }}</nobr>
521
+ </td>
522
+ <td style="text-align: center;">
523
+ <nobr>{{ row.f_address }}</nobr>
524
+ </td>
525
+
526
+ <td style="text-align: center;">
527
+ <nobr>{{ row.phone }}</nobr>
528
+ </td>
529
+ <td style="text-align: center;">
530
+ <nobr>{{ row.f_meternumber }}</nobr>
531
+ </td>
532
+ <td style="text-align: center;">
533
+ <nobr>{{ row.f_totalsplit_type }}</nobr>
534
+ </td>
535
+ <td style="text-align: center;">
536
+ <nobr>{{ row.ym_data }}</nobr>
537
+ </td>
538
+ <td style="text-align: center;">
539
+ <nobr>{{ row.f_audit_date }}</nobr>
540
+ </td>
541
+ <td style="text-align: center;">
542
+ <nobr>{{ row.f_gasproperties }}</nobr>
543
+ </td>
544
+ <td style="text-align: center;">
545
+ <nobr>{{ row.f_last_tablebase }}</nobr>
546
+ </td>
547
+ <td style="text-align: center;">
548
+ <nobr>{{ row.f_tablebase }}</nobr>
549
+ </td>
550
+ <td style="text-align: center;">
551
+ <nobr>{{ row.f_oughtamount }}</nobr>
552
+ </td>
553
+ <!-- <td style="text-align: center;">-->
554
+ <!-- <nobr>{{row.overdue}}</nobr>-->
555
+ <!-- </td>-->
556
+ <td style="text-align: center;">
557
+ <nobr>{{ row.f_oughtfee }}</nobr>
558
+ </td>
559
+ <td style="text-align: center;">
560
+ <nobr>{{ row.f_debt_money }}</nobr>
561
+ </td>
562
+ <td style="text-align: center;">
563
+ <nobr>{{ row.f_actual_arrears }}</nobr>
564
+ </td>
565
+ <td style="text-align: center;">
566
+ <nobr>{{ row.f_privilege_money }}</nobr>
567
+ </td>
568
+ <td style="text-align: center;">
569
+ <nobr>{{ row.f_balance }}</nobr>
570
+ </td>
571
+ <td style="text-align: center;">
572
+ <nobr>{{ row.f_curbalance }}</nobr>
573
+ </td>
574
+ <td style="text-align: center;">
575
+ <nobr>{{ row.f_accounts_state }}</nobr>
576
+ </td>
577
+ <td style="text-align: center;">
578
+ <nobr>{{ row.f_sellinggas_operate_date }}</nobr>
579
+ </td>
580
+ <td style="text-align: center;">
581
+ <nobr>{{ row.f_sell_operator }}</nobr>
582
+ </td>
583
+ <!-- <td style="text-align: center;">-->
584
+ <!-- <nobr>{{row.f_corrhand_date}}</nobr>-->
585
+ <!-- </td>-->
586
+ <!-- <td style="text-align: center;">-->
587
+ <!-- <nobr>{{row.f_corrhand_operator}}</nobr>-->
588
+ <!-- </td>-->
589
+ <td style="text-align: center;">
590
+ <nobr>{{ row.f_hand_date }}</nobr>
591
+ </td>
592
+ <td>
593
+ <nobr>{{ row.belongmonth }}</nobr>
594
+ </td>
595
+ <td style="text-align: center;">
596
+ <nobr>{{ row.f_input_date }}</nobr>
597
+ </td>
598
+ <td style="text-align: center;">
599
+ <nobr>{{ row.f_price_name }}</nobr>
600
+ </td>
601
+ <td style="text-align: center;">
602
+ <nobr>{{ row.f_stair1amount }}</nobr>
603
+ </td>
604
+ <td style="text-align: center;">
605
+ <nobr>{{ row.f_stair1price }}</nobr>
606
+ </td>
607
+ <td style="text-align: center;">
608
+ <nobr>{{ row.f_stair1fee }}</nobr>
609
+ </td>
610
+ <td style="text-align: center;">
611
+ <nobr>{{ row.f_stair2amount }}</nobr>
612
+ </td>
613
+ <td style="text-align: center;">
614
+ <nobr>{{ row.f_stair2price }}</nobr>
615
+ </td>
616
+ <td style="text-align: center;">
617
+ <nobr>{{ row.f_stair2fee }}</nobr>
618
+ </td>
619
+ <td style="text-align: center;">
620
+ <nobr>{{ row.f_stair3amount }}</nobr>
621
+ </td>
622
+ <td style="text-align: center;">
623
+ <nobr>{{ row.f_stair3price }}</nobr>
624
+ </td>
625
+ <td style="text-align: center;">
626
+ <nobr>{{ row.f_stair3fee }}</nobr>
627
+ </td>
628
+ <td style="text-align: center;">
629
+ <nobr>{{ row.dd }}</nobr>
630
+ </td>
631
+ <td style="text-align: center;">
632
+ <nobr>{{ row.f_inputtor }}</nobr>
633
+ </td>
634
+ <td style="text-align: center;">
635
+ <nobr>{{ row.f_input_person }}</nobr>
636
+ </td>
637
+ <td style="text-align: center;">
638
+ <nobr>{{ row.f_whether_pay }}</nobr>
639
+ </td>
640
+
641
+ <td style="text-align: center;">
642
+ <nobr>{{ row.f_meter_state }}</nobr>
643
+ </td>
644
+ <td style="text-align: center;">
645
+ <nobr>{{ row.f_hand_state }}</nobr>
646
+ </td>
647
+ <td style="text-align: center;">
648
+ <nobr>{{ row.f_operator }}</nobr>
649
+ </td>
650
+ <td style="text-align: center;">
651
+ <nobr>{{ row.f_depname }}</nobr>
652
+ </td>
653
+ <td style="text-align: center;">
654
+ <nobr>{{ row.f_orgname }}</nobr>
655
+ </td>
656
+ <td style="text-align: center;">
657
+ <nobr>
658
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">
659
+ 查看
660
+ </button>
661
+ <button v-if="row.f_notified_path" class="button_search button_spacing width-60"
662
+ @click.stop="$parent.$parent.$parent.imgShow(row.f_notified_path)">图像识别
663
+ </button>
664
+ </nobr>
665
+ </td>
666
+ </template>
667
+ <template partial='foot'></template>
668
+ </data-grid>
669
+ </criteria-paged>
670
+
671
+ <table class="table-hover">
672
+ <tr style="position: relative;margin-top: -16px;" class="table-bordered">
673
+ <td
674
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
675
+ 汇总信息
676
+ </td>
677
+ <td
678
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
679
+ 用气量合计:&emsp;{{ sumsmodel.f_oughtamount }}
680
+ </td>
681
+ <td
682
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
683
+ 气费合计:&emsp;{{ sumsmodel.f_oughtfee }}
684
+ </td>
685
+ <td
686
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
687
+ 已交金额合计:&emsp;{{ sumsmodel.f_debt_money }}
688
+ </td>
689
+ <td
690
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
691
+ 欠费金额合计:&emsp;{{ sumsmodel.f_actual_arrears }}
692
+ </td>
693
+ <td
694
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
695
+ 一阶气量合计:&emsp;{{ sumsmodel.f_stair1amount }}
696
+ </td>
697
+ <td
698
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
699
+ 一阶气费合计:&emsp;{{ sumsmodel.f_stair1fee }}
700
+ </td>
701
+ <td
702
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
703
+ 二阶气量合计:&emsp;{{ sumsmodel.f_stair2amount }}
704
+ </td>
705
+ <td
706
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
707
+ 二阶气费合计:&emsp;{{ sumsmodel.f_stair2fee }}
708
+ </td>
709
+ <td
710
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
711
+ 三阶气量合计:&emsp;{{ sumsmodel.f_stair3amount }}
712
+ </td>
713
+ <td
714
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
715
+ 三阶气费合计:&emsp;{{ sumsmodel.f_stair3fee }}
716
+ </td>
717
+ <td
718
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
719
+ 剩余气量合计:&emsp;{{ sumsmodel.f_surplus_gas }}
720
+ </td>
721
+ <td
722
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
723
+ 扣减气量合计:&emsp;{{ sumsmodel.f_haircut_gas }}
724
+ </td>
725
+ <td
726
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
727
+ 应交气量合计:&emsp;{{ sumsmodel.f_oughtamount }}
728
+ </td>
729
+ <td
730
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
731
+ 已交气费金额合计:&emsp;{{ sumsmodel.alloughtfee }}
732
+ </td>
733
+ </tr>
734
+ </table>
735
+ </div>
736
+ <modal :show.sync="batchmoneyShow" width="500px" title="反盘导入" v-ref:modal large backdrop="false">
737
+ <article slot="modal-body" class="modal-body">
738
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定"
739
+ multiple v-ref:file></file-upload>
740
+ </article>
741
+ <footer slot="modal-footer" class="modal-footer">
742
+ </footer>
743
+ </modal>
744
+ </div>
745
+ <div class="flex" v-if="show">
746
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id"
747
+ @cancel-main="cancel"></user-info-detail-manage-new>
748
+ </div>
749
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle
750
+ backdrop="false">
751
+ <article slot="modal-body">
752
+ <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false"
753
+ fusetype="机表抄表" :isremark="false" style="width:auto"></upload>
754
+ </article>
755
+ <footer slot="modal-footer" class="modal-footer">
756
+ </footer>
757
+ </modal>
758
+ <modal :show.sync="imgshow" v-ref:modal backdrop="true">
759
+ <header slot="modal-header" class="modal-header">
760
+ 抄表图像识别照片
761
+ </header>
762
+ <article slot="modal-body" class="modal-body">
763
+ <div class="from-group">
764
+ <img-self :src="imgfilename" width="500" height="500"></img-self>
765
+ </div>
766
+ </article>
767
+ </modal>
768
+
769
+ <modal :show.sync="progressShow" v-ref:modal backdrop="true" width="50%" style="width:auto;">
770
+ <header slot="modal-header" class="modal-header">
771
+ 反盘导入
772
+ </header>
773
+ <article slot="modal-body" class="modal-body">
774
+ <div class="progress" style="margin: 20px">
775
+ <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent+'%'}">
776
+ {{ percent }}%
777
+ </div>
778
+ </div>
779
+ </article>
780
+ <footer slot="modal-footer" class="modal-footer">
781
+ <button type="button" class="btn btn-default" @click='progressclose'>关闭</button>
782
+ </footer>
783
+ </modal>
784
+ <work-busy :is-busy="iswork" v-show="iswork"></work-busy>
785
+ </div>
786
+ </template>
787
+
788
+ <script>
789
+ import {PagedList, HttpResetClass} from 'vue-client'
790
+ import defaultPrint from './config/DefaultPrint'
791
+ import exportConfig from './config/exportConfig'
792
+ import axios from 'axios'
793
+
794
+ let readySomething = async function (self) {
795
+ //加载抄表册
796
+ self.$MagGetSaleParam.initinputtor();
797
+ self.getinputtores();
798
+ self.initmeterbook();
799
+ // await self.$LoadParams.loadMeterBook(self.f_filialeid)
800
+ // self.loadMeterBooks()
801
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
802
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
803
+ // self.$refs.paged.$refs.cri.model.handStartDate = self.$login.toStandardDateString() + ' 00:00:00'
804
+ // self.$refs.paged.$refs.cri.model.handEndDate = self.$login.toStandardDateString() + ' 23:59:59'
805
+
806
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
807
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
808
+ // await self.$refs.paged.$refs.cri.search()
809
+ await self.$getConfig(self, 'HandplanQuery')
810
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
811
+ await self.$MagLoadParams.loadParam()
812
+ // await self.$MagLoadParams.loadParam()
813
+ self.initParams()
814
+ console.log('开始查询')
815
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
816
+ }
817
+ export default {
818
+ props: ['data'],
819
+ title: '机表抄表查询',
820
+ data() {
821
+ return {
822
+ iswork: false,
823
+ other: [],
824
+ footer: [],
825
+ data: {},
826
+ model: new PagedList('api/af-revenue/sql/handplanQuery', 20, {
827
+ orderitem: this.orderitem ? '"' + this.orderitem + ' "' : `' z '`,
828
+ startDate: 'this.model.startDate',
829
+ endDate: 'this.model.endDate'
830
+ }, {
831
+ f_oughtamount: 0,
832
+ f_oughtfee: 0,
833
+ f_debt_money: 0,
834
+ f_actual_arrears: 0,
835
+ f_stair1amount: 0,
836
+ f_stair1fee: 0,
837
+ f_stair2amount: 0,
838
+ f_stair2fee: 0,
839
+ f_stair3amount: 0,
840
+ f_stair3fee: 0,
841
+ f_surplus_gas: 0,
842
+ f_haircut_gas: 0,
843
+ alloughtfee: 0
844
+ }),
845
+ //排序
846
+ orderitem: ' z ',
847
+ orderFields: {
848
+ f_userinfo_code: 'no'
849
+ },
850
+ initres: {
851
+ org: [this.$login.f.orgid],
852
+ dep: [],
853
+ user: [],
854
+ },
855
+ show: false,
856
+ rowdata: {},
857
+ criteriaShow: false,
858
+ residentialArea: [],
859
+ orgCondtionStr: '',
860
+ modelval: [],
861
+ gasproperties: [],
862
+ inputtouPerson: [],
863
+ meterbrands: [],
864
+ printshow: false,
865
+ f_filialeid: this.$login.f.f_orgid,
866
+ all: false,
867
+ fields: {},
868
+ thead: '',
869
+ tfoot: '',
870
+ showupload: false,
871
+ selected: {},
872
+
873
+ // 下拉框
874
+
875
+ //合计数据
876
+ sumsmodel: {},
877
+ defaultfield: [],
878
+ config: {
879
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
880
+ },
881
+ batchmoneyShow: false,
882
+ totalsplitTypes: [{label: '全部', value: ''}, {label: '总表', value: '总表'}, {label: '分表', value: '分表'}],
883
+ prices: [],
884
+ bgl: [{label: '全部', value: ''}, {label: '有', value: '1'}, {label: '无', value: '0'}],
885
+ meterbooks: [{label: '全部', value: ''}], //抄表册
886
+ tempfalg: false,
887
+ lastorgstr: '',
888
+ allorgid: [],
889
+ inputtores: [{label: '全部', value: ''}], //抄表员
890
+ //表册片区
891
+ bookSlice: [{label: '全部', value: ''}],
892
+ imgshow: false,
893
+ imgfilename: '',
894
+ percent: 0,
895
+ progressShow: false,
896
+ uuida: '',
897
+ timer: '',
898
+ }
899
+ },
900
+ ready() {
901
+ this.getaddress()
902
+ readySomething(this).then(() => {
903
+ this.$emit('ready')
904
+ }).catch((error) => {
905
+ this.$emit('error', error)
906
+ })
907
+ },
908
+ methods: {
909
+ getuuid() {
910
+ let uuidA = '';
911
+ var s = [];
912
+ var hexDigits = '0123456789abcdef';
913
+ for (var i = 0; i < 36; i++) {
914
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
915
+ }
916
+ s[14] = '4';
917
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
918
+ s[8] = s[13] = s[18] = s[23] = '-';
919
+ uuidA = s.join('');
920
+ this.uuida = uuidA;
921
+ },
922
+ progressclose() {
923
+ this.progressShow = false;
924
+ if (this.timer != null) {
925
+ clearInterval(this.timer);
926
+ }
927
+ },
928
+ async initmeterbook(orgstr) {
929
+ if (orgstr == null) {
930
+ orgstr = this.f_filialeid;
931
+ }
932
+ //获取新的抄表册,先去清理所有的抄表册
933
+ this.$GetSaleParam.meterbooks = [];
934
+ //开始加载新的抄表册
935
+ await this.$LoadParams.loadMeterBook(orgstr)
936
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
937
+ },
938
+ //初始化片区
939
+ async initSlice(val) {
940
+ if (val) {
941
+ let getAllArea = await this.$resetpost('/rs/search', {
942
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
943
+ userid: this.$login.f.id
944
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
945
+ let arr = getAllArea.data.filter((res) => {
946
+ return res.parentid == val
947
+ })
948
+ this.bookSlice = []
949
+ arr.forEach((res) => {
950
+ this.bookSlice.push({label: res.name, value: res.name})
951
+ })
952
+ }
953
+ },
954
+ //表册片区和抄表册关联
955
+ async inputtorchange() {
956
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book', []);
957
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
958
+ let val2 = this.$refs.paged.$refs.cri.model.f_book_slice_area
959
+ if ((val2.length > 0)) {
960
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
961
+ let aaa = '('
962
+ val2.forEach((item) => {
963
+ aaa = aaa + `'${item}',`
964
+ })
965
+ aaa = aaa + `'')`
966
+ condition = condition + ` and f_book_slice_area in ${aaa} `
967
+ let param = {
968
+ items: '*',
969
+ tablename: 't_meter_book',
970
+ condition: condition,
971
+ orderitem: 'id'
972
+ }
973
+ let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {
974
+ resolveMsg: null,
975
+ rejectMsg: '获取营收参数出错!!!'
976
+ })
977
+ if (getMeterBooks.data) {
978
+ if (getMeterBooks.data.length > 0) {
979
+ let rs = [];
980
+ getMeterBooks.data.forEach((item) => {
981
+ let temp = {
982
+ label: item.f_book_name,
983
+ value: item.id
984
+ };
985
+ rs.push(temp);
986
+
987
+ })
988
+ this.meterbooks = [{label: '全部', value: ''}, ...rs];
989
+ } else {
990
+ this.meterbooks = [{label: '全部', value: ''}];
991
+ }
992
+ }
993
+ } else {
994
+ this.meterbooks = [{label: '全部', value: ''}];
995
+ this.initmeterbook();
996
+ }
997
+ },
998
+ async initmeterbook(orgstr) {
999
+ if (orgstr == null) {
1000
+ orgstr = this.f_filialeid;
1001
+ }
1002
+ //获取新的抄表册,先去清理所有的抄表册
1003
+ this.$GetSaleParam.meterbooks = [];
1004
+ //开始加载新的抄表册
1005
+ await this.$LoadParams.loadMeterBook(orgstr)
1006
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
1007
+ },
1008
+
1009
+ async getinputtores() {
1010
+ // 获取抄表员
1011
+ let rs = []
1012
+ if (this.$login.f.f_gasman.length > 0) {
1013
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
1014
+ let temp = {
1015
+ label: this.$login.f.f_gasman[i].name,
1016
+ value: this.$login.f.f_gasman[i].name
1017
+ }
1018
+ rs.push(temp)
1019
+ }
1020
+ }
1021
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
1022
+ this.inputtores.push({label: "微信公众号", value: "微信公众号"})
1023
+ },
1024
+ async updateParams() {
1025
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
1026
+ this.inputtores = [];
1027
+ this.inputtores.push({label: "全部", value: ""})
1028
+ this.initSlice(this.f_filialeid)
1029
+ if (this.allorgid != null) {
1030
+ this.allorgid.forEach((res) => {
1031
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
1032
+ })
1033
+ }
1034
+ this.initParams()
1035
+ },
1036
+ view(row) {
1037
+ this.showupload = true
1038
+ this.selected = row
1039
+ },
1040
+ imgclose() {
1041
+ this.imgshow = false
1042
+ },
1043
+ imgShow(val) {
1044
+ this.imgfilename = `rs/image/file/` + val
1045
+ this.imgshow = true
1046
+ },
1047
+ initParams() {
1048
+ // 初始化气表品牌
1049
+ let brandArr = []
1050
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
1051
+ let temp = {}
1052
+ temp.label = item.label
1053
+ temp.value = item.value.f_meter_brand
1054
+ brandArr.push(temp)
1055
+ })
1056
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
1057
+ //初始化气价
1058
+ let result = []
1059
+ this.$MagGetSaleParam.prices.forEach((item) => {
1060
+ if (item.f_state === '有效' && this.$login.f.orgid == item.f_filialeid) {
1061
+ let value = {
1062
+ label: item.f_price_name,
1063
+ value: item.f_price_name
1064
+ }
1065
+ result.push(value)
1066
+ }
1067
+ })
1068
+ let hash = {}
1069
+ result = result.reduce((item, next) => {
1070
+ hash[next.label] ? '' : hash[next.label] = true && item.push(next)
1071
+ return item
1072
+ }, [])
1073
+ this.prices = Array.from(new Set(result))
1074
+ },
1075
+ getotherfooter() {
1076
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
1077
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
1078
+ this.other = [];
1079
+ this.footer = [];
1080
+ let exportdata = this.getCondition;
1081
+ let otherInData = [];
1082
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
1083
+ let footerData = [], exportfield = this.getfield;
1084
+ footerData.push("合计");
1085
+ let self = this;
1086
+ for (var field in self.sumsmodel) {
1087
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
1088
+ }
1089
+ this.footer.push(footerData);
1090
+ this.other.push(otherInData);
1091
+ },
1092
+ async getaddress() {
1093
+ let HttpReset = new HttpResetClass()
1094
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
1095
+ data: {
1096
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
1097
+ }
1098
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
1099
+ console.log('小区', data)
1100
+ let house = [{label: '全部', value: ''}]
1101
+ for (let row of data.data) {
1102
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
1103
+ }
1104
+ this.residentialArea = house
1105
+ },
1106
+ Fileinput() {
1107
+ this.batchmoneyShow = true;
1108
+ },
1109
+ search() {
1110
+ this.$refs.paged.$refs.cri.search()
1111
+ },
1112
+ cancel() {
1113
+ this.show = false
1114
+ },
1115
+ selfSearch(args) {
1116
+ if (this.data) {
1117
+ this.$parent.$parent.$parent.data.startDate = this.$refs.paged.$refs.cri.model.startDate
1118
+ this.$parent.$parent.$parent.data.endDate = this.$refs.paged.$refs.cri.model.endDate
1119
+ }
1120
+ if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === '') {
1121
+ this.$showMessage('请选择录入日期开始时间和结束时间!')
1122
+ return
1123
+ }
1124
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
1125
+ if (this.area.length !== 0) {
1126
+ let str = JSON.stringify(this.area)
1127
+ str = str.replace(/"/g, `'`)
1128
+ str = str.replace(/\[/g, ``)
1129
+ str = str.replace(/\]/g, ``)
1130
+ //查询多个小区时条件
1131
+ args.condition += ` and f_residential_area in ( ${str} )`
1132
+ }
1133
+ //抄表员查询条件
1134
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
1135
+ if (this.inputtouPerson.length !== 0) {
1136
+ let str = JSON.stringify(this.inputtouPerson)
1137
+ str = str.replace(/"/g, `'`)
1138
+ str = str.replace(/\[/g, ``)
1139
+ str = str.replace(/\]/g, ``)
1140
+ //查询多个抄表员时条件
1141
+ args.condition += ` and f_inputtor in ( ${str} )`
1142
+ }
1143
+
1144
+ args.condition = `${args.condition} ` + this.orgCondtionStr
1145
+ this.model.search(args.condition, args.model)
1146
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
1147
+ },
1148
+ clear() {
1149
+ //清空部门和人员
1150
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
1151
+ //部门和人员变为全选
1152
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
1153
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
1154
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
1155
+ this.$refs.paged.$refs.cri.model[key] = []
1156
+ })
1157
+ this.$refs.paged.$refs.cri.model.f_meter_classify = []
1158
+ },
1159
+ show() {
1160
+ this.criteriaShow = true
1161
+ },
1162
+ hidden() {
1163
+ this.criteriaShow = !this.criteriaShow
1164
+ },
1165
+ async getRes(condition, obj) {
1166
+ this.orgCondtionStr = condition
1167
+
1168
+ },
1169
+ stamp() {
1170
+ this.all = false
1171
+ //默认选择要打印的列
1172
+ this.modelval = defaultPrint.config
1173
+ this.fields = this.getfield
1174
+ this.printshow = true
1175
+ this.put()
1176
+ },
1177
+ put() {
1178
+ // 对Modelval进行排序
1179
+ this.sortModelval()
1180
+ this.thead = `<tr><th colspan=${this.modelval.length}>抄表查询统计报表</th></tr><tr>`
1181
+ for (let key of this.modelval) {
1182
+ this.thead += '<th>' + this.fields[key] + '</th>'
1183
+ }
1184
+ this.thead += '</tr>'
1185
+ },
1186
+ sort(field, rule) {
1187
+ // 将所有排序方式设为不排序,实现相互排斥
1188
+ for (let key in this.orderFields) {
1189
+ if (key === field) {
1190
+ this.orderFields[key] = rule
1191
+ } else {
1192
+ this.orderFields[key] = 'no'
1193
+ }
1194
+ }
1195
+ // 如果新规则不排序,还原为默认排序
1196
+ if (rule === 'no') {
1197
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
1198
+ } else {
1199
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
1200
+ }
1201
+
1202
+ this.search()
1203
+ },
1204
+ print() {
1205
+ this.$refs.print.PrintAsFile()
1206
+ this.printshow = false
1207
+ },
1208
+ dealmsg(val) {
1209
+ this.rowdata = val
1210
+ this.show = true
1211
+ val.model = this.model.model
1212
+ this.$dispatch('deal-msg', val)
1213
+ },
1214
+ close() {
1215
+ this.printshow = false
1216
+ this.all = false
1217
+ },
1218
+
1219
+ userTypeChange() {
1220
+ this.gasproperties = []
1221
+ if (this.$refs.paged.$refs.cri.model !== null) {
1222
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
1223
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
1224
+ } else {
1225
+ this.gasproperties = [{label: '全部', value: ''}]
1226
+ }
1227
+ },
1228
+ // 对选择的列进行排序
1229
+ sortModelval() {
1230
+ let sortModel = []
1231
+ Object.keys(this.fields).forEach((key) => {
1232
+ if (this.modelval.includes(key)) {
1233
+ sortModel.push(key)
1234
+ }
1235
+ })
1236
+ this.modelval = sortModel
1237
+ }
1238
+ },
1239
+ watch: {
1240
+ 'model.rows'(val) {
1241
+ if (val.length === 0) {
1242
+ this.sumsmodel = {}
1243
+ }
1244
+ },
1245
+ async 'orgCondtionStr'(val) {
1246
+ this.$refs.paged.$refs.cri.model.f_inputtor = []
1247
+ this.$refs.paged.$refs.cri.model.f_book_slice_area = []
1248
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
1249
+ this.meterbooks = [{label: '全部', value: ''}];
1250
+ if (this.lastorgstr != val) {
1251
+ this.tempfalg = true;
1252
+ this.lastorgstr = val;
1253
+ }
1254
+ if (this.tempfalg && val != null && val != '' && val.indexOf("(") > -1) {
1255
+ this.tempfalg = false;
1256
+ let a = val.substring(val.indexOf("(") + 2)
1257
+ await this.initmeterbook(a.substring(0, a.indexOf(")") - 1));
1258
+ }
1259
+ let res = val.match(/'(.*?)'/)
1260
+ console.log('正则提取:', res && res[1])
1261
+ if (res) {
1262
+ this.f_filialeid = res[1]
1263
+ if (res.input != null) {
1264
+ let resorgid = res.input.substring(res.input.indexOf("'"));
1265
+ if (resorgid != null && resorgid != '') {
1266
+ resorgid = resorgid.substring(0, resorgid.lastIndexOf("'") + 1);
1267
+ // resorgid = resorgid.replaceAll("'","");
1268
+ resorgid = resorgid.replace(/'/g, "");
1269
+ this.allorgid = resorgid.split(",")
1270
+ }
1271
+ }
1272
+ this.updateParams()
1273
+ }
1274
+ },
1275
+ 'all'(val) {
1276
+ if (val) {
1277
+ this.modelval = this.bodyData
1278
+ } else {
1279
+ this.modelval = defaultPrint.config
1280
+ this.put()
1281
+ }
1282
+ },
1283
+ 'modelval.length'() {
1284
+ this.put()
1285
+ },
1286
+ sumsmodel: {
1287
+ handler: function (val) {
1288
+ this.getotherfooter();
1289
+ },
1290
+ deep: true
1291
+ }
1292
+ },
1293
+ computed: {
1294
+
1295
+ metertypes() {
1296
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
1297
+ },
1298
+ banklist() {
1299
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('银行名称')]
1300
+ },
1301
+ getCondition() {
1302
+ return {
1303
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
1304
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
1305
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
1306
+ orderitem: this.orderitem ? `${this.orderitem}` : " z "
1307
+ }
1308
+ },
1309
+ getfield() {
1310
+ return exportConfig.handplanConfig
1311
+ },
1312
+ getBankfield() {
1313
+ return exportConfig.batchBankConfig2
1314
+ },
1315
+ usertypes() {
1316
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
1317
+ },
1318
+ accountsState() {
1319
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
1320
+ },
1321
+ meterstate() {
1322
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
1323
+ },
1324
+ handstate() {
1325
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
1326
+ },
1327
+ // inputtor() {
1328
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
1329
+ // },
1330
+ pricetypes() {
1331
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
1332
+ },
1333
+ getPricenames() {
1334
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1335
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1336
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1337
+ console.log("打印一下:", f_user_type, f_gasproperties, pricetype, this.f_filialeid, this.prices)
1338
+ if (this.$refs.paged.$refs.cri.model !== null) {
1339
+ let rs = []
1340
+ let priceArr = []
1341
+ if (pricetype.length > 0) {
1342
+ let params = {
1343
+ f_price_type: pricetype[0],
1344
+ filter: this.f_filialeid,
1345
+ prices: this.prices
1346
+ }
1347
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1348
+ let temp = {}
1349
+ temp.label = item.label
1350
+ temp.value = item.value.f_price_name
1351
+ priceArr.push(temp)
1352
+ })
1353
+ rs = [{label: '全部', value: ''}, ...priceArr]
1354
+ }
1355
+ if (rs.length === 0) {
1356
+ console.log('rs读出来是空')
1357
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
1358
+ }
1359
+ return rs
1360
+ }
1361
+ },
1362
+ inputtor() {
1363
+ // 获取抄表员
1364
+ console.log('获取抄表员', this.$login.f)
1365
+ let rs = []
1366
+ if (this.$login.f.f_gasman.length > 0) {
1367
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
1368
+ let temp = {
1369
+ label: this.$login.f.f_gasman[i].name,
1370
+ value: this.$login.f.f_gasman[i].name
1371
+ }
1372
+ rs.push(temp)
1373
+ }
1374
+ }
1375
+
1376
+ return [{label: '全部', value: ''}, ...rs]
1377
+ },
1378
+ whetherPay() {
1379
+ return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
1380
+ },
1381
+
1382
+ },
1383
+ events: {
1384
+ 'onFileUpload': async function (file, res) {
1385
+ if (this.batchmoneyShow) {
1386
+ this.percent = 0;
1387
+ this.getuuid();
1388
+ let param = {
1389
+ filepath: res.f_downloadpath,
1390
+ f_operator: this.$login.f.name,
1391
+ f_operatorid: this.$login.f.id,
1392
+ f_orgid: this.$login.f.orgid,
1393
+ f_orgname: this.$login.f.orgs,
1394
+ f_depid: this.$login.f.depids,
1395
+ f_depname: this.$login.f.deps,
1396
+ uuid: this.uuida
1397
+ }
1398
+ this.batchmoneyShow = false;
1399
+ try {
1400
+ await this.$resetpost('api/af-revenue/logic/SumSettleFileImport', {data: param}, {
1401
+ resolveMsg: null,
1402
+ rejectMsg: null
1403
+ }, 1000).then((res) => {
1404
+ if (res.data) {
1405
+ }
1406
+ })
1407
+ } catch (error) {
1408
+ }
1409
+ let getparam = {
1410
+ uuid: this.uuida
1411
+ }
1412
+ let self = this;
1413
+ this.progressShow = true;
1414
+ this.timer = setInterval(function () {
1415
+ self.$resetpost('/api/af-revenue/logic/getBatchOperaPro', {data: getparam}, {
1416
+ resolveMsg: null,
1417
+ rejectMsg: null
1418
+ }, 0).then((res) => {
1419
+ if (res.data) {
1420
+ if (res.data.speed) {
1421
+ if (res.data.speed >= 100) {
1422
+ clearInterval(self.timer);
1423
+ if (res.data.speed) {
1424
+ self.percent = 99;
1425
+ }
1426
+ setTimeout(() => {
1427
+ self.percent = 100;
1428
+ self.progressclose();
1429
+ self.$showMessage(`导入成功! 累计导入:${res.data.totalsum}, 成功:${res.data.successsum},失败:${res.data.errorsum}(包含之前导入${res.data.aftersum}),失败数据请在稽查查询中错误查询进行查看!!`);
1430
+ }, 600);
1431
+ } else {
1432
+ self.percent = res.data.speed
1433
+ }
1434
+ } else {
1435
+ self.percent = 0;
1436
+ }
1437
+ }
1438
+ });
1439
+ }, 3000);
1440
+ }
1441
+ }
1442
+ }
1443
+ }
1444
+ </script>