manage-client 3.2.97 → 3.2.99-2

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