manage-client 4.0.21 → 4.0.23

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.
Files changed (39) hide show
  1. package/.gradle/8.5/checksums/checksums.lock +0 -0
  2. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/8.5/fileChanges/last-build.bin +0 -0
  7. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/8.5/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  11. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  12. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  13. package/.gradle/file-system.probe +0 -0
  14. package/.gradle/vcs-1/gc.properties +0 -0
  15. package/package.json +1 -1
  16. package/src/filiale/fugou/WebHandplanQuery.vue +1016 -0
  17. package/src/filiale/fugou/sale.js +4 -0
  18. package/src/filiale/tongchuan/ChangeMeterQuery.vue +702 -0
  19. package/src/filiale/tongchuan/ChangeUserQuery.vue +395 -0
  20. package/src/filiale/tongchuan/ChargeQuery.vue +7 -4
  21. package/src/filiale/tongchuan/DeviceQuery.vue +4 -2
  22. package/src/filiale/tongchuan/DisableQuery.vue +523 -0
  23. package/src/filiale/tongchuan/FillCardQuery.vue +573 -0
  24. package/src/filiale/tongchuan/FillGasQuery.vue +2 -2
  25. package/src/filiale/tongchuan/FmyGasDeviceQuery.vue +870 -0
  26. package/src/filiale/tongchuan/GasDeviceQuery.vue +982 -0
  27. package/src/filiale/tongchuan/HandplanQuery.vue +2 -1
  28. package/src/filiale/tongchuan/PriceChangeQuery.vue +6 -3
  29. package/src/filiale/tongchuan/ReverseQuery.vue +450 -0
  30. package/src/filiale/tongchuan/UserDeviceQuery.vue +4 -2
  31. package/src/filiale/tongchuan/UserQuery.vue +2 -1
  32. package/src/filiale/tongchuan/gasPriceQuery.vue +381 -0
  33. package/src/filiale/tongchuan/sale.js +36 -1
  34. package/src/filiale/tongchuan/sellingChargePrice.vue +714 -0
  35. package/src/filiale/yangchun/UserQuery.vue +26 -0
  36. package/src/filiale/yangchun/config/exportConfig.js +2 -1
  37. package/src/filiale/jinbin/exportConfig.js +0 -1110
  38. package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +0 -1372
  39. package/src/filiale/jinbin/sale.js +0 -7
@@ -0,0 +1,1016 @@
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 class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
19
+ </div>
20
+ <div class="span" style="float:right;">
21
+ <button class="button_search button_spacing" @click="search()">查询</button>
22
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
23
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
24
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
25
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="webhandplanQuery" template-name='物联网表抄表查询导出'
26
+ :choose-col="true"></export-excel>
27
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
28
+ :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
29
+ titletable="抄表查询"
30
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
31
+
32
+ <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>
33
+ </div>
34
+ </div>
35
+ <div class="row" v-show="$parent.$parent.criteriaShow">
36
+
37
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
38
+
39
+ <div class="col-sm-2 form-group">
40
+ <label for="startDate" class="font_normal_body">抄表日期</label>
41
+ <datepicker id="handStartDate" placeholder="开始日期" style="width:60%"
42
+ v-model="model.handStartDate"
43
+ :value.sync="model.handStartDate"
44
+ :format="'yyyy-MM-dd 00:00:00'"
45
+ :show-reset-button="true"
46
+ condition="f_input_date >= '{}'">
47
+ </datepicker>
48
+ </div>
49
+ <div class="col-sm-2 form-group">
50
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
51
+ <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
52
+ v-model="model.handEndDate"
53
+ :value.sync="model.handEndDate"
54
+ :format="'yyyy-MM-dd 23:59:59'"
55
+ :show-reset-button="true"
56
+ condition="f_input_date <= '{}'">
57
+ </datepicker>
58
+ </div>
59
+ <div class="col-sm-2 form-group">
60
+ <label class="font_normal_body">抄表状态</label>
61
+ <v-select :value.sync="model.f_meter_state"
62
+ v-model="model.f_meter_state"
63
+ :options='$parent.$parent.meterstate' placeholder='请选择'
64
+ condition="f_meter_state = '{}'"
65
+ close-on-select></v-select>
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">表单状态</label>
69
+ <v-select :value.sync="model.f_hand_state"
70
+ v-model="model.f_hand_state"
71
+ :options='$parent.$parent.handstate' placeholder='请选择'
72
+ condition="f_hand_state = '{}'"
73
+ close-on-select></v-select>
74
+ </div>
75
+
76
+
77
+
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">小区名称</label>
80
+ <v-select :value.sync="model.f_residential_area"
81
+ class="select_list select"
82
+ enter-push
83
+ multiple = "true"
84
+ v-model="model.f_residential_area"
85
+ style="width: 60%"
86
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
87
+ close-on-select>
88
+
89
+ </v-select>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">客户地址</label>
93
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
94
+ condition="f_address like '%{}%'" placeholder='客户地址'>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">录入人员</label>
98
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_input_person"
99
+ condition="f_input_person like '%{}%'" placeholder='录入人员'>
100
+ </div>
101
+
102
+ <div class="col-sm-2 form-group">
103
+ <label class="font_normal_body">客户类型</label>
104
+ <v-select :value.sync="model.f_user_type"
105
+ @change="$parent.$parent.userTypeChange()"
106
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
107
+ condition="f_user_type = '{}'"
108
+ close-on-select></v-select>
109
+ </div>
110
+ <div class="col-sm-2 form-group">
111
+ <label class="font_normal_body">用气性质</label>
112
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
113
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
114
+ condition="f_gasproperties = '{}'"
115
+ close-on-select></v-select>
116
+ </div>
117
+ <div class="col-sm-2 form-group">
118
+ <label class="font_normal_body">气价类型</label>
119
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
120
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
121
+ close-on-select v-ref:type>
122
+ </v-select>
123
+ </div>
124
+ <div class="col-sm-2 form-group">
125
+ <label class="font_normal_body">气价名称</label>
126
+ <v-select :value.sync="model.f_price_name"
127
+ v-model="model.f_price_name"
128
+ :options="$parent.$parent.getPricenames"
129
+ condition="f_price_name = '{}'"
130
+ close-on-select></v-select>
131
+ </div>
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body">用&ensp;气&ensp;量</label>
134
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
135
+ v-model="model.f_oughtamount_big" condition="f_oughtamount >= {}" placeholder='大于等于'>
136
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
137
+ v-model="model.f_oughtamount_small" condition="f_oughtamount <= {}" placeholder='小于等于'>
138
+ </div>
139
+ <div class="col-sm-2 form-group">
140
+ <label class="font_normal_body">&ensp;表&ensp;号&ensp;&ensp;</label>
141
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
142
+ condition="f_meternumber = '{}' " placeholder="表号">
143
+ </div>
144
+ <div class="col-sm-2 form-group">
145
+ <label class="font_normal_body">气表品牌</label>
146
+ <v-select :value.sync="model.f_meter_brand" multiple
147
+ v-model="model.f_meter_brand"
148
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
149
+ condition="f_meter_brand in {}"
150
+ close-on-select></v-select>
151
+ </div>
152
+ <div class="col-sm-2 form-group">
153
+ <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
154
+ <v-select :value.sync="model.f_inputtor"
155
+ v-model="model.f_inputtor"
156
+ :options='$parent.$parent.inputtores' placeholder='请选择'
157
+ condition="f_inputtor = '{}'"
158
+ close-on-select :search="false">
159
+ </v-select>
160
+ </div>
161
+ <!--表册片区-->
162
+ <div class="col-sm-2 form-group">
163
+ <label class="font_normal_body">表册片区</label>
164
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
165
+ @change="$parent.$parent.inputtorchange"
166
+ multiple
167
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
168
+ style="width:60%"
169
+ close-on-select
170
+ condition="f_book_slice_area in {}"></v-select>
171
+ </div>
172
+ <div class="col-sm-2 form-group">
173
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
174
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
175
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
176
+ style="width:60%"
177
+ multiple
178
+ close-on-select
179
+ condition="f_meter_book_num in {}"></v-select>
180
+ </div>
181
+ <div class="col-sm-2 form-group">
182
+ <label class="font_normal_body">阀门状态</label>
183
+ <v-select :value.sync="model.f_valve_state"
184
+ v-model="model.f_valve_state"
185
+ :options='$parent.$parent.valvestate' placeholder='阀门状态'
186
+ condition="f_valve_state = '{}'"
187
+ close-on-select></v-select>
188
+ </div>
189
+ <div class="col-sm-2 form-group">
190
+ <label class="font_normal_body">余额小于</label>
191
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_curbalance"
192
+ condition="f_curbalance < '{}' " placeholder="本期余额小于">
193
+ </div>
194
+ </div>
195
+ </div>
196
+ </criteria>
197
+
198
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
199
+ <template partial='head'>
200
+ <tr>
201
+ <th>
202
+ <nobr>客户编号</nobr>
203
+ </th>
204
+ <th>
205
+ <nobr>客户名称</nobr>
206
+ </th>
207
+ <th>
208
+ <nobr>档案编号</nobr>
209
+ </th>
210
+ <th>
211
+ <nobr>片区</nobr>
212
+ </th>
213
+ <th>
214
+ <nobr>表册片区</nobr>
215
+ </th>
216
+ <th>
217
+ <nobr>客户地址</nobr>
218
+ </th>
219
+ <th>
220
+ <nobr>客户手机</nobr>
221
+ </th>
222
+ <th>
223
+ <nobr>阀门状态</nobr>
224
+ </th>
225
+ <th>
226
+ <nobr>表号</nobr>
227
+ </th>
228
+ <th>
229
+ <nobr>数据年月</nobr>
230
+ </th>
231
+ <th>
232
+ <nobr>上期底数</nobr>
233
+ </th>
234
+ <th>
235
+ <nobr>本期底数</nobr>
236
+ </th>
237
+ <th>
238
+ <nobr>用气量</nobr>
239
+ </th>
240
+ <th>
241
+ <nobr>用气金额</nobr>
242
+ </th>
243
+ <th>
244
+ <nobr>上期余额</nobr>
245
+ </th>
246
+ <th>
247
+ <nobr>本期余额</nobr>
248
+ </th>
249
+
250
+ <th>
251
+ <nobr>抄表日期</nobr>
252
+ </th>
253
+ <th>
254
+ <nobr>所属年月</nobr>
255
+ </th>
256
+
257
+ <th>
258
+ <nobr>客户类型</nobr>
259
+ </th>
260
+ <th>
261
+ <nobr>用气性质</nobr>
262
+ </th>
263
+ <th>
264
+ <nobr>气表品牌</nobr>
265
+ </th>
266
+ <th>
267
+ <nobr>气价名称</nobr>
268
+ </th>
269
+ <th>
270
+ <nobr>一阶气量</nobr>
271
+ </th>
272
+ <th>
273
+ <nobr>一阶单价</nobr>
274
+ </th>
275
+ <th>
276
+ <nobr>一阶气费</nobr>
277
+ </th>
278
+ <th>
279
+ <nobr>二阶气量</nobr>
280
+ </th>
281
+ <th>
282
+ <nobr>二阶单价</nobr>
283
+ </th>
284
+ <th>
285
+ <nobr>二阶气费</nobr>
286
+ </th>
287
+ <th>
288
+ <nobr>三阶气量</nobr>
289
+ </th>
290
+ <th>
291
+ <nobr>三阶单价</nobr>
292
+ </th>
293
+ <th>
294
+ <nobr>三阶气费</nobr>
295
+ </th>
296
+ <th>
297
+ <nobr>天数</nobr>
298
+ </th>
299
+ <th>
300
+ <nobr>抄表员</nobr>
301
+ </th>
302
+ <th>
303
+ <nobr>录入人员</nobr>
304
+ </th>
305
+ <th>
306
+ <nobr>抄表状态</nobr>
307
+ </th>
308
+ <th>
309
+ <nobr>纪录状态</nobr>
310
+ </th>
311
+ <th>
312
+ <nobr>下发人员</nobr>
313
+ </th>
314
+ <th>
315
+ <nobr>部门</nobr>
316
+ </th>
317
+ <th>
318
+ <nobr>公司</nobr>
319
+ </th>
320
+ <th>
321
+ <nobr>抵扣单价</nobr>
322
+ </th>
323
+ <th>
324
+ <nobr>本次抵扣金额</nobr>
325
+ </th>
326
+ <th>
327
+ <nobr>剩余抵扣金额</nobr>
328
+ </th>
329
+ </tr>
330
+ </template>
331
+ <template partial='body'>
332
+ <td style="text-align: center;">
333
+ <nobr>
334
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
335
+ </td>
336
+ <td style="text-align: center;">
337
+ <nobr>{{row.f_user_name}}</nobr>
338
+ </td>
339
+ <td style="text-align: center;">
340
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
341
+ </td>
342
+ <td style="text-align: center;">
343
+ <nobr>{{row.f_zones}}</nobr>
344
+ </td>
345
+ <td style="text-align: center;">
346
+ <nobr>{{row.f_book_slice_area}}</nobr>
347
+ </td>
348
+ <td style="text-align: center;">
349
+ <nobr>{{row.f_address}}</nobr>
350
+ </td>
351
+
352
+ <td style="text-align: center;">
353
+ <nobr>{{row.phone}}</nobr>
354
+ </td>
355
+ <td style="text-align: center;">
356
+ <nobr>{{row.f_valve_state}}</nobr>
357
+ </td>
358
+
359
+ <td style="text-align: center;">
360
+ <nobr>{{row.f_meternumber}}</nobr>
361
+ </td>
362
+ <td style="text-align: center;">
363
+ <nobr>{{row.ym_data}}</nobr>
364
+ </td>
365
+ <td style="text-align: center;">
366
+ <nobr>{{row.f_last_tablebase}}</nobr>
367
+ </td>
368
+ <td style="text-align: center;">
369
+ <nobr>{{row.f_tablebase}}</nobr>
370
+ </td>
371
+ <td style="text-align: center;">
372
+ <nobr>{{row.f_oughtamount}}</nobr>
373
+ </td>
374
+ <td style="text-align: center;">
375
+ <nobr>{{row.f_oughtfee}}</nobr>
376
+ </td>
377
+ <td style="text-align: center;">
378
+ <nobr>{{row.f_balance}}</nobr>
379
+ </td>
380
+ <td style="text-align: center;">
381
+ <nobr>{{row.f_curbalance}}</nobr>
382
+ </td>
383
+
384
+ <td style="text-align: center;">
385
+ <nobr>{{row.f_hand_date}}</nobr>
386
+ </td>
387
+ <td>
388
+ <nobr>{{row.belongmonth}}</nobr>
389
+ </td>
390
+
391
+ <td style="text-align: center;">
392
+ <nobr>{{row.f_user_type}}</nobr>
393
+ </td>
394
+ <td style="text-align: center;">
395
+ <nobr>{{row.f_gasproperties}}</nobr>
396
+ </td>
397
+ <td style="text-align: center;">
398
+ <nobr>{{row.f_meter_brand}}</nobr>
399
+ </td>
400
+ <td style="text-align: center;">
401
+ <nobr>{{row.f_price_name}}</nobr>
402
+ </td>
403
+ <td style="text-align: center;">
404
+ <nobr>{{row.f_stair1amount}}</nobr>
405
+ </td>
406
+ <td style="text-align: center;">
407
+ <nobr>{{row.f_stair1price}}</nobr>
408
+ </td>
409
+ <td style="text-align: center;">
410
+ <nobr>{{row.f_stair1fee}}</nobr>
411
+ </td>
412
+ <td style="text-align: center;">
413
+ <nobr>{{row.f_stair2amount}}</nobr>
414
+ </td>
415
+ <td style="text-align: center;">
416
+ <nobr>{{row.f_stair2price}}</nobr>
417
+ </td>
418
+ <td style="text-align: center;">
419
+ <nobr>{{row.f_stair2fee}}</nobr>
420
+ </td>
421
+ <td style="text-align: center;">
422
+ <nobr>{{row.f_stair3amount}}</nobr>
423
+ </td>
424
+ <td style="text-align: center;">
425
+ <nobr>{{row.f_stair3price}}</nobr>
426
+ </td>
427
+ <td style="text-align: center;">
428
+ <nobr>{{row.f_stair3fee}}</nobr>
429
+ </td>
430
+ <td style="text-align: center;">
431
+ <nobr>{{row.dd}}</nobr>
432
+ </td>
433
+ <td style="text-align: center;">
434
+ <nobr>{{row.f_inputtor}}</nobr>
435
+ </td>
436
+ <td style="text-align: center;">
437
+ <nobr>{{row.f_input_person}}</nobr>
438
+ </td>
439
+
440
+ <td style="text-align: center;">
441
+ <nobr>{{row.f_meter_state}}</nobr>
442
+ </td>
443
+ <td style="text-align: center;">
444
+ <nobr>{{row.f_hand_state}}</nobr>
445
+ </td>
446
+ <td style="text-align: center;">
447
+ <nobr>{{row.f_operator}}</nobr>
448
+ </td>
449
+ <td style="text-align: center;">
450
+ <nobr>{{row.f_depname}}</nobr>
451
+ </td>
452
+ <td style="text-align: center;">
453
+ <nobr>{{row.f_orgname}}</nobr>
454
+ </td>
455
+ <td style="text-align: center;">
456
+ <nobr>{{ row.f_gas_type }}</nobr>
457
+ </td>
458
+ <td style="text-align: center;">
459
+ <nobr>{{ row.f_current_deduct_amount }}</nobr>
460
+ </td>
461
+ <td style="text-align: center;">
462
+ <nobr>{{ row.f_remaining_deduct_amount }}</nobr>
463
+ </td>
464
+ </template>
465
+ <template partial='foot'></template>
466
+ </data-grid>
467
+ </criteria-paged>
468
+
469
+ <table class="table-hover">
470
+ <tr style="position: relative;margin-top: -16px;" class="table-bordered">
471
+ <td
472
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
473
+ 汇总信息
474
+ </td>
475
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
476
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
477
+ </td>
478
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
479
+ 气费合计:&emsp;{{sumsmodel.f_oughtfee}}
480
+ </td>
481
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
482
+ 本期余额合计:&emsp;{{sumsmodel.f_curbalance}}
483
+ </td>
484
+ </tr>
485
+ </table>
486
+ </div>
487
+ </div>
488
+ <div class="flex" v-if="show">
489
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
490
+ </div>
491
+
492
+ <work-busy :is-busy="iswork" v-show="iswork"></work-busy>
493
+ </div>
494
+ </template>
495
+
496
+ <script>
497
+ import {PagedList, HttpResetClass} from 'vue-client'
498
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
499
+ import exportConfig from "../../components/sale/config/exportConfig";
500
+ import axios from 'axios'
501
+
502
+ let readySomething = async function (self) {
503
+ //加载抄表册
504
+ self.$MagGetSaleParam.initinputtor();
505
+ self.getinputtores();
506
+ self.initmeterbook();
507
+ self.$refs.paged.$refs.cri.model.handStartDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
508
+ self.$refs.paged.$refs.cri.model.handEndDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
509
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
510
+ await self.$MagLoadParams.loadParam()
511
+ await self.initParams()
512
+ console.log('开始查询')
513
+ await self.$getConfig(self, 'WebHandplanQuery')
514
+ }
515
+ export default {
516
+ props:['data'],
517
+ title: '物联网表抄表查询',
518
+ data() {
519
+ return {
520
+ iswork:false,
521
+ other:[],
522
+ footer:[],
523
+ data: {},
524
+ model: new PagedList('api/af-revenue/sql/webhandplanQuery', 20, {startDate: 'this.model.handStartDate', endDate: 'this.model.handEndDate'}, {
525
+ f_oughtamount: 0,
526
+ f_oughtfee: 0,
527
+ f_curbalance: 0
528
+ }),
529
+ initres: {
530
+ org:[this.$login.f.orgid],
531
+ dep:[],
532
+ user:[],
533
+ },
534
+ show:false,
535
+ rowdata:{},
536
+ criteriaShow: false,
537
+ residentialArea: [],
538
+ orgCondtionStr: '',
539
+ modelval: [],
540
+ gasproperties:[],
541
+ inputtouPerson: [],
542
+ meterbrands: [],
543
+ printshow: false,
544
+ f_filialeid: this.$login.f.f_orgid,
545
+ all: false,
546
+ fields: {},
547
+ thead: '',
548
+ tfoot: '',
549
+ selected:{},
550
+
551
+ // 下拉框
552
+
553
+ //合计数据
554
+ sumsmodel: {},
555
+ defaultfield: [],
556
+ config: {
557
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
558
+ },
559
+ prices: [],
560
+ bgl:[{label: '全部', value: ''},{label: '有', value: '1'},{label: '无', value: '0'}],
561
+ meterbooks:[{label: '全部',value: ''}], //抄表册
562
+ tempfalg :false,
563
+ lastorgstr:'',
564
+ allorgid:[],
565
+ inputtores:[{label: '全部',value: ''}], //抄表员
566
+ //表册片区
567
+ bookSlice:[{label: '全部',value: ''}],
568
+ imgfilename:'',
569
+ percent:0,
570
+ uuida:'',
571
+ timer:'',
572
+ }
573
+ },
574
+ ready() {
575
+ this.$refs.paged.$refs.cri.model.f_meter_state=['已抄表']
576
+ this.$refs.paged.$refs.cri.model.f_hand_state=['有效']
577
+ this.getaddress()
578
+ readySomething(this).then(() => {
579
+ this.$emit('ready')
580
+ }).catch((error) => {
581
+ this.$emit('error', error)
582
+ })
583
+ },
584
+ methods: {
585
+ getuuid(){
586
+ let uuidA = '';
587
+ var s = [];
588
+ var hexDigits = '0123456789abcdef';
589
+ for (var i = 0; i < 36; i++) {
590
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
591
+ }
592
+ s[14] = '4';
593
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
594
+ s[8] = s[13] = s[18] = s[23] = '-';
595
+ uuidA = s.join('');
596
+ this.uuida = uuidA;
597
+ },
598
+
599
+ //初始化片区
600
+ async initSlice (val) {
601
+ if (val) {
602
+ let getAllArea = await this.$resetpost('/rs/search', {
603
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
604
+ userid: this.$login.f.id
605
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
606
+ let arr = getAllArea.data.filter((res) => {
607
+ return res.parentid == val
608
+ })
609
+ this.bookSlice = []
610
+ arr.forEach((res) => {
611
+ this.bookSlice.push({label: res.name, value: res.name})
612
+ })
613
+ }
614
+ },
615
+ //表册片区和抄表册关联
616
+ async inputtorchange(){
617
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
618
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
619
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
620
+ if((val2.length>0)){
621
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
622
+ let aaa = '('
623
+ val2.forEach((item) => {
624
+ aaa = aaa + `'${item}',`
625
+ })
626
+ aaa = aaa + `'')`
627
+ condition = condition + ` and f_book_slice_area in ${aaa} `
628
+ let param={
629
+ items:'*',
630
+ tablename:'t_meter_book',
631
+ condition:condition,
632
+ orderitem:'id'
633
+ }
634
+ let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
635
+ if (getMeterBooks.data) {
636
+ if(getMeterBooks.data.length >0){
637
+ let rs = [];
638
+ getMeterBooks.data.forEach((item)=>{
639
+ let temp = {
640
+ label:item.f_book_name,
641
+ value:item.id
642
+ };
643
+ rs.push(temp);
644
+
645
+ })
646
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
647
+ }else{
648
+ this.meterbooks = [{label: '全部',value: ''}];
649
+ }
650
+ }
651
+ }else{
652
+ this.meterbooks = [{label: '全部',value: ''}];
653
+ this.initmeterbook();
654
+ }
655
+ },
656
+ async initmeterbook(orgstr){
657
+ if(orgstr == null ){
658
+ orgstr = this.f_filialeid;
659
+ }
660
+ //获取新的抄表册,先去清理所有的抄表册
661
+ this.$GetSaleParam.meterbooks = [];
662
+ //开始加载新的抄表册
663
+ await this.$LoadParams.loadMeterBook(orgstr)
664
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
665
+ },
666
+
667
+ async getinputtores () {
668
+ // 获取抄表员
669
+ let rs = []
670
+ if (this.$login.f.f_gasman.length > 0) {
671
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
672
+ let temp = {
673
+ label: this.$login.f.f_gasman[i].name,
674
+ value: this.$login.f.f_gasman[i].name
675
+ }
676
+ rs.push(temp)
677
+ }
678
+ }
679
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
680
+ this.inputtores.push({label: "微信公众号", value: "微信公众号"})
681
+ },
682
+ async updateParams() {
683
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
684
+ this.inputtores = [];
685
+ this.inputtores.push({label: "全部", value: ""})
686
+ this.initSlice(this.f_filialeid)
687
+ if(this.allorgid!=null){
688
+ this.allorgid.forEach((res)=>{
689
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
690
+ })
691
+ }
692
+ this.initParams()
693
+ },
694
+
695
+ async initParams() {
696
+ // 初始化气表品牌
697
+ let brandArr = []
698
+ await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
699
+ if (item.value.f_meter_type === '物联网表'){
700
+ let temp = {}
701
+ temp.label = item.label
702
+ temp.value = item.value.f_meter_brand
703
+ brandArr.push(temp)
704
+ }
705
+ })
706
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
707
+ //初始化气价
708
+ let result = []
709
+ await this.$MagGetSaleParam.prices.forEach((item) => {
710
+ if (item.f_state === '有效' && this.$login.f.orgid == item.f_filialeid) {
711
+ let value = {
712
+ label: item.f_price_name,
713
+ value: item.f_price_name
714
+ }
715
+ result.push(value)
716
+ }
717
+ })
718
+ let hash = {}
719
+ result = result.reduce((item, next) => {
720
+ hash[next.label] ? '' : hash[next.label] = true && item.push(next)
721
+ return item
722
+ }, [])
723
+ this.prices = Array.from(new Set(result))
724
+ },
725
+ async getaddress(){
726
+ let HttpReset = new HttpResetClass()
727
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
728
+ data: {
729
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
730
+ }
731
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
732
+ console.log('小区',data)
733
+ let house = [{label: '全部', value: ''}]
734
+ for (let row of data.data){
735
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
736
+ }
737
+ this.residentialArea = house
738
+ },
739
+ search(){
740
+ this.$refs.paged.$refs.cri.search()
741
+ },
742
+ cancel() {
743
+ this.show = false
744
+ },
745
+ selfSearch(args) {
746
+ if (this.data) {
747
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
748
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
749
+ }
750
+
751
+ if (!(this.$refs.paged.$refs.cri.model.handStartDate != '' && this.$refs.paged.$refs.cri.model.handEndDate != '')) {
752
+ this.$showMessage('请选择【抄表时间】开始时间和结束时间!')
753
+ return
754
+ }
755
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
756
+ if(this.area.length !== 0){
757
+ let str = JSON.stringify(this.area)
758
+ str = str.replace(/"/g,`'`)
759
+ str = str.replace(/\[/g,``)
760
+ str = str.replace(/\]/g,``)
761
+ //查询多个小区时条件
762
+ args.condition += ` and f_residential_area in ( ${str} )`
763
+ }
764
+ //抄表员查询条件
765
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
766
+ if(this.inputtouPerson.length !== 0){
767
+ let str = JSON.stringify(this.inputtouPerson)
768
+ str = str.replace(/"/g,`'`)
769
+ str = str.replace(/\[/g,``)
770
+ str = str.replace(/\]/g,``)
771
+ //查询多个抄表员时条件
772
+ args.condition += ` and f_inputtor in ( ${str} )`
773
+ }
774
+
775
+ args.condition = `${args.condition} ` + this.orgCondtionStr
776
+ this.model.search(args.condition, args.model)
777
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
778
+ },
779
+ clear() {
780
+ //清空部门和人员
781
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
782
+ //部门和人员变为全选
783
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
784
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
785
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
786
+ this.$refs.paged.$refs.cri.model[key] = []
787
+ })
788
+ },
789
+ show() {
790
+ this.criteriaShow = true
791
+ },
792
+ hidden() {
793
+ this.criteriaShow = !this.criteriaShow
794
+ },
795
+ async getRes(condition,obj) {
796
+ this.orgCondtionStr = condition
797
+
798
+ },
799
+ stamp() {
800
+ this.all = false
801
+ //默认选择要打印的列
802
+ this.modelval = defaultPrint.config
803
+ this.fields = this.getfield
804
+ this.printshow = true
805
+ this.put()
806
+ },
807
+ put() {
808
+ // 对Modelval进行排序
809
+ this.sortModelval()
810
+ this.thead = `<tr><th colspan=${this.modelval.length}>抄表查询统计报表</th></tr><tr>`
811
+ for (let key of this.modelval) {
812
+ this.thead += '<th>' + this.fields[key] + '</th>'
813
+ }
814
+ this.thead += '</tr>'
815
+ },
816
+ print() {
817
+ this.$refs.print.PrintAsFile()
818
+ this.printshow = false
819
+ },
820
+ dealmsg(val) {
821
+ this.rowdata=val
822
+ this.show=true
823
+ val.model = this.model.model
824
+ this.$dispatch('deal-msg', val)
825
+ },
826
+ close() {
827
+ this.printshow = false
828
+ this.all = false
829
+ },
830
+
831
+ userTypeChange () {
832
+ this.gasproperties=[]
833
+ if(this.$refs.paged.$refs.cri.model !==null) {
834
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
835
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
836
+ }
837
+ else{
838
+ this.gasproperties =[{label: '全部', value: ''}]
839
+ }
840
+ },
841
+ getotherfooter () {
842
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
843
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
844
+ this.other = [];
845
+ this.footer = [];
846
+ let exportdata = this.getCondition;
847
+ let otherInData = [];
848
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
849
+
850
+ // otherInData.push(``)
851
+ let footerData = [], exportfield = this.getfield;
852
+ footerData.push("合计");
853
+ let self = this;
854
+ for (var field in self.sumsmodel) {
855
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
856
+ }
857
+ this.footer.push(footerData);
858
+ this.other.push(otherInData);
859
+ let date = []
860
+ date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
861
+ date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
862
+ this.other.push(date)
863
+ // this.other.push(enddate)
864
+ },
865
+ // 对选择的列进行排序
866
+ sortModelval() {
867
+ let sortModel = []
868
+ Object.keys(this.fields).forEach((key) => {
869
+ if (this.modelval.includes(key)) {
870
+ sortModel.push(key)
871
+ }
872
+ })
873
+ this.modelval = sortModel
874
+ }
875
+ },
876
+ watch: {
877
+ 'model.rows'(val) {
878
+ if(val.length === 0){
879
+ this.sumsmodel = {}
880
+ }
881
+ },
882
+ async 'orgCondtionStr'(val) {
883
+ this.$refs.paged.$refs.cri.model.f_inputtor=[]
884
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
885
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
886
+ this.meterbooks = [{label: '全部',value: ''}];
887
+ if(this.lastorgstr != val){
888
+ this.tempfalg = true;
889
+ this.lastorgstr = val;
890
+ }
891
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
892
+ this.tempfalg = false;
893
+ let a = val.substring(val.indexOf("(")+2)
894
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
895
+ }
896
+ let res = val.match(/'(.*?)'/)
897
+ console.log('正则提取:',res && res[1])
898
+ if (res) {
899
+ this.f_filialeid = res[1]
900
+ if(res.input !=null){
901
+ let resorgid = res.input.substring(res.input.indexOf("'"));
902
+ if(resorgid!= null && resorgid!=''){
903
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
904
+ // resorgid = resorgid.replaceAll("'","");
905
+ resorgid = resorgid.replace(/'/g,"");
906
+ this.allorgid = resorgid.split(",")
907
+ }
908
+ }
909
+ this.updateParams()
910
+ }
911
+ },
912
+ 'all'(val) {
913
+ if (val) {
914
+ this.modelval = this.bodyData
915
+ } else {
916
+ this.modelval = defaultPrint.config
917
+ this.put()
918
+ }
919
+ },
920
+ sumsmodel:{
921
+ handler: function(val) {
922
+ this.getotherfooter();
923
+ },
924
+ deep: true
925
+ },
926
+ 'modelval.length'() {
927
+ this.put()
928
+ }
929
+ },
930
+ computed: {
931
+
932
+ getCondition() {
933
+ return {
934
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
935
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
936
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr }
937
+ },
938
+ getfield() {
939
+ return {
940
+ 'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_olduserinfo_code': '档案编号', 'f_address': '客户地址', 'f_zones': '片区', 'phone': '客户手机', 'f_valve_state': '阀门状态',
941
+ 'f_last_tablebase': '上期底数', 'f_tablebase': '本期底数', 'f_oughtamount': '用气量', 'f_oughtfee': '用气金额','f_meternumber': '表号', 'ym_data': '数据年月',
942
+ 'f_balance': '上期余额', 'f_curbalance': '本期余额', 'f_hand_date': '抄表日期','f_meter_state': '抄表状态', 'f_hand_state': '记录状态',
943
+ 'f_inputtor': '抄表员', 'f_book_slice_area': '表册片区', 'f_user_type': '客户类型', 'f_gasproperties': '用气性质', 'f_meter_brand': '气表品牌', 'f_operator': '操作员', 'f_depname': '部门', 'f_orgname': '公司',
944
+ 'f_stair1amount': '一阶气量', 'f_stair1price': '一阶单价', 'f_stair1fee': '一阶气费','f_stair2amount': '二阶气量', 'f_stair2price': '二阶单价', 'f_stair2fee': '二阶气费',
945
+ 'f_stair3amount': '三阶气量','f_stair3price': '三阶单价', 'f_stair3fee': '三阶气费', 'belongmonth': '所属年月','f_current_deduct_amount':'本次抵扣金额','f_remaining_deduct_amount':'剩余抵扣金额'
946
+ }
947
+ },
948
+ getBankfield(){
949
+ return exportConfig.batchBankConfig2
950
+ },
951
+ usertypes() {
952
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
953
+ },
954
+ meterstate() {
955
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
956
+ },
957
+ handstate() {
958
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
959
+ },
960
+ valvestate() {
961
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('阀门状态')]
962
+ },
963
+ pricetypes() {
964
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
965
+ },
966
+ getPricenames() {
967
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
968
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
969
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
970
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
971
+ if(this.$refs.paged.$refs.cri.model !==null) {
972
+ let rs = []
973
+ let priceArr = []
974
+ if ( pricetype.length >0) {
975
+ let params = {
976
+ f_price_type: pricetype[0],
977
+ filter: this.f_filialeid,
978
+ prices: this.prices
979
+ }
980
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
981
+ let temp = {}
982
+ temp.label = item.label
983
+ temp.value = item.value.f_price_name
984
+ priceArr.push(temp)
985
+ })
986
+ rs = [{label: '全部', value: ''}, ...priceArr]
987
+ }
988
+ if (rs.length === 0) {
989
+ console.log('rs读出来是空')
990
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
991
+ }
992
+ return rs
993
+ }
994
+ },
995
+ inputtor () {
996
+ // 获取抄表员
997
+ console.log('获取抄表员', this.$login.f)
998
+ let rs = []
999
+ if (this.$login.f.f_gasman.length > 0) {
1000
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
1001
+ let temp = {
1002
+ label: this.$login.f.f_gasman[i].name,
1003
+ value: this.$login.f.f_gasman[i].name
1004
+ }
1005
+ rs.push(temp)
1006
+ }
1007
+ }
1008
+
1009
+ return [{label: '全部', value: ''}, ...rs]
1010
+ },
1011
+
1012
+ },
1013
+ events:{
1014
+ }
1015
+ }
1016
+ </script>