manage-client 3.2.52-aode → 3.2.53-aode

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 (68) hide show
  1. package/build/dev-server.js +6 -6
  2. package/client.iml +14 -14
  3. package/package.json +1 -1
  4. package/src/Util.js +383 -383
  5. package/src/components/MeterManage/MeterList.vue +336 -336
  6. package/src/components/WebReport/UserGasAll.vue +214 -214
  7. package/src/components/sale/businessquery/ChangeMeterQuery.vue +627 -627
  8. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  9. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  10. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  11. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  13. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  14. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  15. package/src/components/sale/businessquery/InspectListGas.vue +453 -453
  16. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  17. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  18. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  19. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  20. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  21. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  22. package/src/components/sale/config/exportConfig.js +1 -1
  23. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  35. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  36. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  37. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  38. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  39. package/src/components/sale/report/aode/iot/ReportQuery.vue +344 -344
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +408 -408
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +392 -392
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +530 -530
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +560 -560
  49. package/src/components/webmeter/DrillData/UserGasAll.vue +515 -507
  50. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +488 -488
  51. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  52. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  53. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  54. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  55. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  56. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  57. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  58. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  59. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  60. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  61. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  62. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  63. package/src/components/webmeter/newwebmeter/UserGasList.vue +293 -293
  64. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  65. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  66. package/src/components/webmeter/report/ReportList.vue +211 -211
  67. package/src/main.js +56 -56
  68. package/src/saleManage.js +256 -256
@@ -1,705 +1,705 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
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
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
-
12
- <div class="span" style="float:right;">
13
- <button class="button_search button_spacing" @click="search()">查询</button>
14
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
15
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
16
- :field="$parent.$parent.getfield"
17
- :defaultselect="$parent.$parent.selectfields"
18
- sqlurl="rs/logic/exportfile" sql-name="handplanQuery" template-name='业务查询抄表查询导出'
19
- :choose-col="true"></export-excel>
20
- <print-data :model="$parent.model" :field="$parent.$parent.getfield"
21
- :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
22
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
23
-
24
- <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>
25
- </div>
26
- </div>
27
- <div class="row" v-show="$parent.$parent.criteriaShow">
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="col-sm-2 form-group">
39
- <label for="startDate" class="font_normal_body">录入日期</label>
40
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
41
- v-model="model.startDate"
42
- :value.sync="model.startDate"
43
- :format="'yyyy-MM-dd HH:mm:ss'"
44
- :show-reset-button="true"
45
- condition="f_input_date >= '{}'">
46
- </datepicker>
47
- </div>
48
- <div class="col-sm-2 form-group">
49
- <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</label>
50
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
51
- v-model="model.endDate"
52
- :value.sync="model.endDate"
53
- :format="'yyyy-MM-dd HH:mm:ss'"
54
- :show-reset-button="true"
55
- condition="f_input_date <= '{}'">
56
- </datepicker>
57
- </div>
58
-
59
- <div class="col-sm-2 form-group">
60
- <label class="font_normal_body">客户地址</label>
61
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
62
- condition="f_address like '%{}%'" placeholder='客户地址'>
63
- </div>
64
- <div class="col-sm-2 form-group">
65
- <label class="font_normal_body">抄表状态</label>
66
- <v-select :value.sync="model.f_meter_state"
67
- v-model="model.f_meter_state"
68
- :options='$parent.$parent.meterstate' placeholder='请选择'
69
- condition="f_meter_state = '{}'"
70
- close-on-select></v-select>
71
- </div>
72
- <div class="col-sm-2 form-group">
73
- <label class="font_normal_body">表单状态</label>
74
- <v-select :value.sync="model.f_hand_state"
75
- v-model="model.f_hand_state"
76
- :options='$parent.$parent.handstate' placeholder='请选择'
77
- condition="f_hand_state = '{}'"
78
- close-on-select></v-select>
79
- </div>
80
- <div class="col-sm-2 form-group">
81
- <label class="font_normal_body">收费状态</label>
82
- <v-select :value.sync="model.f_whether_pay"
83
- v-model="model.f_whether_pay"
84
- :options='$parent.$parent.whetherPay' placeholder='请选择'
85
- condition="f_whether_pay = '{}'"
86
- close-on-select></v-select>
87
- </div>
88
- <div class="col-sm-2 form-group">
89
- <label class="font_normal_body">客户类型</label>
90
- <v-select :value.sync="model.f_user_type"
91
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
92
- condition="f_user_type = '{}'"
93
- close-on-select></v-select>
94
- </div>
95
- <div class="col-sm-2 form-group">
96
- <label class="font_normal_body">下账状态</label>
97
- <v-select :value.sync="model.f_accounts_state"
98
- :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_accounts_state"
99
- condition="f_accounts_state = '{}'"
100
- close-on-select></v-select>
101
- </div>
102
- <div class="col-sm-2 form-group">
103
- <label class="font_normal_body">气表类型</label>
104
- <v-select :value.sync="model.f_meter_classify" multiple
105
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
106
- condition="f_meter_classify in {}"
107
- close-on-select></v-select>
108
- </div>
109
- <div class="col-sm-2 form-group">
110
- <label class="font_normal_body">气表品牌</label>
111
- <v-select :value.sync="model.f_meter_brand" multiple
112
- v-model="model.f_meter_brand"
113
- :options='$parent.$parent.meterbrands' placeholder='请选择'
114
- condition="f_meter_brand in {}"
115
- close-on-select></v-select>
116
- </div>
117
- <div class="col-sm-2 form-group">
118
- <label for="startDate" class="font_normal_body">下发日期</label>
119
- <datepicker id="handStartDate" placeholder="开始日期" style="width:60%"
120
- v-model="model.handStartDate"
121
- :value.sync="model.handStartDate"
122
- :format="'yyyy-MM-dd 00:00:00'"
123
- :show-reset-button="true"
124
- condition="f_hand_date >= '{}'">
125
- </datepicker>
126
- </div>
127
- <div class="col-sm-2 form-group">
128
- <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
129
- <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
130
- v-model="model.handEndDate"
131
- :value.sync="model.handEndDate"
132
- :format="'yyyy-MM-dd 23:59:59'"
133
- :show-reset-button="true"
134
- condition="f_hand_date <= '{}'">
135
- </datepicker>
136
- </div>
137
- <div class="col-sm-2 form-group">
138
- <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
139
- <v-select :value.sync="model.f_inputtor"
140
- v-model="model.f_inputtor"
141
- :options='$parent.$parent.inputtores' placeholder='请选择'
142
- condition="f_inputtor = '{}'"
143
- close-on-select :value-single="true" :search="false">
144
- </v-select>
145
- </div>
146
- <div class="col-sm-2 form-group">
147
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
148
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
149
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
150
- style="width:60%"
151
- close-on-select
152
- condition="f_meter_book_num = '{}'"></v-select>
153
- </div>
154
-
155
- </div>
156
- </div>
157
- </criteria>
158
-
159
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
160
- <template partial='head'>
161
- <tr>
162
- <th>
163
- <nobr>客户编号</nobr>
164
- </th>
165
- <th>
166
- <nobr>客户名称</nobr>
167
- </th>
168
- <th>
169
- <nobr>客户地址</nobr>
170
- </th>
171
- <th>
172
- <nobr>表号</nobr>
173
- </th>
174
- <th>
175
- <nobr>电话号码</nobr>
176
- </th>
177
- <th>
178
- <nobr>身份证号</nobr>
179
- </th>
180
- <th>
181
- <nobr>上期底数</nobr>
182
- </th>
183
- <th>
184
- <nobr>本期底数</nobr>
185
- </th>
186
- <th>
187
- <nobr>用气量</nobr>
188
- </th>
189
- <th>
190
- <nobr>用气金额</nobr>
191
- </th>
192
- <th>
193
- <nobr>已交金额</nobr>
194
- </th>
195
- <th>
196
- <nobr>下账状态</nobr>
197
- </th>
198
- <th>
199
- <nobr>一阶气量</nobr>
200
- </th>
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
- <th>
250
- <nobr>部门</nobr>
251
- </th>
252
- </tr>
253
- </template>
254
- <template partial='body'>
255
- <td style="text-align: center;">
256
- <nobr>
257
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
258
- </td>
259
- <td style="text-align: center;">
260
- <nobr>{{row.f_user_name}}</nobr>
261
- </td>
262
- <td style="text-align: center;">
263
- <nobr>{{row.f_address}}</nobr>
264
- </td>
265
- <td style="text-align: center;">
266
- <nobr>{{row.f_meternumber}}</nobr>
267
- </td>
268
- <td style="text-align: center;">
269
- <nobr>{{row.userphone}}</nobr>
270
- </td>
271
- <td style="text-align: center;">
272
- <nobr>{{row.f_idnumber}}</nobr>
273
- </td>
274
- <td style="text-align: center;">
275
- <nobr>{{row.f_last_tablebase}}</nobr>
276
- </td>
277
- <td style="text-align: center;">
278
- <nobr>{{row.f_tablebase}}</nobr>
279
- </td>
280
- <td style="text-align: center;">
281
- <nobr>{{row.f_oughtamount}}</nobr>
282
- </td>
283
- <td style="text-align: center;">
284
- <nobr>{{row.f_oughtfee}}</nobr>
285
- </td>
286
- <td style="text-align: center;">
287
- <nobr>{{row.f_debt_money}}</nobr>
288
- </td>
289
- <td style="text-align: center;">
290
- <nobr>{{row.f_accounts_state}}</nobr>
291
- </td>
292
- <td style="text-align: center;">
293
- <nobr>{{row.f_stair1amount}}</nobr>
294
- </td>
295
- <td style="text-align: center;">
296
- <nobr>{{row.f_stair1price}}</nobr>
297
- </td>
298
- <td style="text-align: center;">
299
- <nobr>{{row.f_stair1fee}}</nobr>
300
- </td>
301
- <td style="text-align: center;">
302
- <nobr>{{row.f_stair2amount}}</nobr>
303
- </td>
304
- <td style="text-align: center;">
305
- <nobr>{{row.f_stair2price}}</nobr>
306
- </td>
307
- <td style="text-align: center;">
308
- <nobr>{{row.f_stair2fee}}</nobr>
309
- </td>
310
- <td style="text-align: center;">
311
- <nobr>{{row.f_stair3amount}}</nobr>
312
- </td>
313
- <td style="text-align: center;">
314
- <nobr>{{row.f_stair3price}}</nobr>
315
- </td>
316
- <td style="text-align: center;">
317
- <nobr>{{row.f_stair3fee}}</nobr>
318
- </td>
319
- <td style="text-align: center;">
320
- <nobr>{{row.f_inputtor}}</nobr>
321
- </td>
322
- <td style="text-align: center;">
323
- <nobr>{{row.f_whether_pay}}</nobr>
324
- </td>
325
- <td style="text-align: center;">
326
- <nobr>{{row.f_hand_date}}</nobr>
327
- </td>
328
- <td style="text-align: center;">
329
- <nobr>{{row.f_input_date}}</nobr>
330
- </td>
331
- <td style="text-align: center;">
332
- <nobr>{{row.f_meter_state}}</nobr>
333
- </td>
334
- <td style="text-align: center;">
335
- <nobr>{{row.f_hand_state}}</nobr>
336
- </td>
337
- <td style="text-align: center;">
338
- <nobr>{{row.f_operator}}</nobr>
339
- </td>
340
- <td style="text-align: center;">
341
- <nobr>{{row.f_orgname}}</nobr>
342
- </td>
343
- <td style="text-align: center;">
344
- <nobr>{{row.f_depname}}</nobr>
345
- </td>
346
- </template>
347
- <template partial='foot'></template>
348
- </data-grid>
349
- </criteria-paged>
350
-
351
- <table class="table-hover">
352
- <tr style="position: relative" class="table-bordered">
353
- <td
354
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
355
- 汇总信息
356
- </td>
357
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
358
- 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
359
- </td>
360
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
361
- 气费合计:&emsp;{{sumsmodel.f_oughtfee}}
362
- </td>
363
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
364
- 一阶气量合计:&emsp;{{sumsmodel.f_stair1amount}}
365
- </td>
366
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
367
- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
368
- </td>
369
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
370
- 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
371
- </td>
372
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
373
- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
374
- </td>
375
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
376
- 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
377
- </td>
378
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
379
- 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
380
- </td>
381
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
382
- 剩余气量合计:&emsp;{{sumsmodel.f_surplus_gas}}
383
- </td>
384
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
385
- 扣减气量合计:&emsp;{{sumsmodel.f_haircut_gas}}
386
- </td>
387
- </tr>
388
- </table>
389
- </div>
390
- <div v-if="show">
391
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
392
- </div>
393
- </div>
394
- </div>
395
- </template>
396
-
397
- <script>
398
- import {PagedList} from 'vue-client'
399
- import defaultPrint from '../config/DefaultPrint'
400
- import exportConfig from '../config/exportConfig'
401
-
402
- let readySomething = async function (self) {
403
- self.$MagGetSaleParam.initinputtor();
404
- self.getinputtores();
405
- self.initmeterbook();
406
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
407
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
408
- self.$refs.paged.$refs.cri.model.f_meter_classify = ['机表']
409
- // await self.$refs.paged.$refs.cri.search()
410
- await self.$getConfig(self, 'HandplanQuery')
411
- console.log('抄表查询获取默认配置', self.config)
412
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
413
- console.log('开始初始化参数', self.defaultfield)
414
- await self.$MagLoadParams.loadParam()
415
- // await self.$MagLoadParams.loadParam()
416
- // self.initParams()
417
- console.log('开始查询')
418
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
419
- }
420
- export default {
421
- data() {
422
- return {
423
- selectfields:[],
424
- data: {},
425
- model: new PagedList('rs/sql/handplanQuery', 20, {}, {
426
- f_oughtamount: 0,
427
- f_oughtfee: 0,
428
- f_stair1amount: 0,
429
- f_stair1fee: 0,
430
- f_stair2amount: 0,
431
- f_stair2fee: 0,
432
- f_stair3amount: 0,
433
- f_stair3fee: 0,
434
- f_surplus_gas: 0,
435
- f_haircut_gas: 0
436
- }),
437
- initres: {
438
- org:[this.$login.f.orgid],
439
- dep:[],
440
- user:[],
441
- },
442
- show:false,
443
- rowdata:{},
444
- criteriaShow: false,
445
- orgCondtionStr: '',
446
- modelval: [],
447
- printshow: false,
448
- all: false,
449
- fields: {},
450
- thead: '',
451
- tfoot: '',
452
-
453
- // 下拉框
454
-
455
- //合计数据
456
- sumsmodel: {},
457
- defaultfield: [],
458
- config: {
459
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
460
- },
461
- tempfalg :false,
462
- lastorgstr:'',
463
- allorgid:[],
464
- meterbooks:[{label: '全部',value: ''}], //抄表册
465
- inputtores:[{label: '全部',value: ''}], //抄表员
466
- meterbrands:[{label: '全部',value: ''}],
467
- }
468
- },
469
- props:['selectorg'],
470
- ready() {
471
- if(this.selectorg != null && this.selectorg != null != ''){
472
- this.initres.org=[]
473
- this.initres.org.push(this.selectorg);
474
- }
475
- readySomething(this).then(() => {
476
- this.$emit('ready')
477
- }).catch((error) => {
478
- this.$emit('error', error)
479
- })
480
- for(var item in exportConfig.handplanConfig){
481
- this.selectfields.push(item)
482
- }
483
- },
484
- methods: {
485
- async initmeterbook(orgstr){
486
- if(orgstr == null ){
487
- orgstr = this.f_filialeid;
488
- }
489
- //获取新的抄表册,先去清理所有的抄表册
490
- this.$GetSaleParam.meterbooks = [];
491
- //开始加载新的抄表册
492
- await this.$LoadParams.loadMeterBook(orgstr)
493
- this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
494
- },
495
- async getinputtores () {
496
- // 获取抄表员
497
- let rs = []
498
- if (this.$login.f.f_gasman.length > 0) {
499
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
500
- let temp = {
501
- label: this.$login.f.f_gasman[i].name,
502
- value: this.$login.f.f_gasman[i].name
503
- }
504
- rs.push(temp)
505
- }
506
- }
507
- this.inputtores = [{label: '全部', value: ''}, ...rs]
508
- },
509
- async updateParams() {
510
- await this.$MagLoadParams.loadParam(this.f_filialeid)
511
- this.inputtores = [];
512
- this.inputtores.push({label: "全部", value: ""})
513
- if(this.allorgid!=null){
514
- this.allorgid.forEach((res)=>{
515
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
516
- })
517
- }
518
- this.initParams()
519
- },
520
- search(){
521
- this.$refs.paged.$refs.cri.search()
522
- },
523
- cancel() {
524
- this.show = false
525
- },
526
- initParams() {
527
- // 初始化气表品牌
528
- let brandArr = []
529
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
530
- let temp = {}
531
- temp.label = item.label
532
- temp.value = item.value.f_meter_brand
533
- if(item.value.f_meter_type=='机表'){
534
- brandArr.push(temp)
535
- }
536
- })
537
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
538
- //初始化气价
539
- let result = []
540
- this.$MagGetSaleParam.prices.forEach((item) => {
541
- if (item.f_state === '有效' && this.$login.f.orgid == item.f_filialeid) {
542
- let value = {
543
- label: item.f_price_name,
544
- value: item.f_price_name
545
- }
546
- result.push(value)
547
- }
548
- })
549
- let hash = {}
550
- result = result.reduce((item, next) => {
551
- hash[next.label] ? '' : hash[next.label] = true && item.push(next)
552
- return item
553
- }, [])
554
- this.prices = Array.from(new Set(result))
555
- },
556
- selfSearch(args) {
557
- //抄表员查询条件
558
- this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
559
- if(this.inputtouPerson.length !== 0){
560
- let str = JSON.stringify(this.inputtouPerson)
561
- str = str.replace(/"/g,`'`)
562
- str = str.replace(/\[/g,``)
563
- str = str.replace(/\]/g,``)
564
- //查询多个抄表员时条件
565
- args.condition += ` and f_inputtor in ( ${str} )`
566
- }
567
- args.condition = `${args.condition} ` + this.orgCondtionStr
568
- this.model.search(args.condition, args.model)
569
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
570
- },
571
- clear() {
572
- //清空部门和人员
573
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
574
- //部门和人员变为全选
575
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
576
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
577
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
578
- this.$refs.paged.$refs.cri.model[key] = ''
579
- })
580
- },
581
- show() {
582
- this.criteriaShow = true
583
- },
584
- hidden() {
585
- this.criteriaShow = !this.criteriaShow
586
- },
587
- getRes(obj) {
588
- this.orgCondtionStr = obj
589
- },
590
- stamp() {
591
- this.all = false
592
- //默认选择要打印的列
593
- this.modelval = defaultPrint.config
594
- this.fields = this.getfield
595
- console.log('所有打印字段', this.fields)
596
- this.printshow = true
597
- this.put()
598
- },
599
- put() {
600
- // 对Modelval进行排序
601
- this.sortModelval()
602
- this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
603
- for (let key of this.modelval) {
604
- this.thead += '<th>' + this.fields[key] + '</th>'
605
- }
606
- this.thead += '</tr>'
607
- },
608
- print() {
609
- this.$refs.print.PrintAsFile()
610
- this.printshow = false
611
- },
612
- dealmsg(val) {
613
- console.log('---------------dealmsg')
614
- this.rowdata=val
615
- this.show=true
616
- val.model = this.model.model
617
- this.$dispatch('deal-msg', val)
618
- },
619
- close() {
620
- this.printshow = false
621
- this.all = false
622
- },
623
- // 对选择的列进行排序
624
- sortModelval() {
625
- let sortModel = []
626
- Object.keys(this.fields).forEach((key) => {
627
- if (this.modelval.includes(key)) {
628
- sortModel.push(key)
629
- }
630
- })
631
- this.modelval = sortModel
632
- console.log('选择的打印的字段', this.modelval)
633
- }
634
- },
635
- watch: {
636
- 'all'(val) {
637
- if (val) {
638
- this.modelval = this.bodyData
639
- } else {
640
- this.modelval = defaultPrint.config
641
- this.put()
642
- }
643
- },
644
- 'modelval.length'() {
645
- this.put()
646
- },
647
- async 'orgCondtionStr'(val) {
648
- this.meterbooks = [{label: '全部',value: ''}];
649
- if(this.lastorgstr != val){
650
- this.tempfalg = true;
651
- this.lastorgstr = val;
652
- }
653
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
654
- this.tempfalg = false;
655
- let a = val.substring(val.indexOf("(")+2)
656
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
657
- }
658
- let res = val.match(/'(.*?)'/)
659
- console.log('正则提取:',res && res[1])
660
- if (res) {
661
- this.f_filialeid = res[1]
662
- if(res.input !=null){
663
- let resorgid = res.input.substring(res.input.indexOf("'"));
664
- if(resorgid!= null && resorgid!=''){
665
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
666
- // resorgid = resorgid.replaceAll("'","");
667
- resorgid = resorgid.replace(/'/g,"");
668
- this.allorgid = resorgid.split(",")
669
- }
670
- }
671
- this.updateParams()
672
- }
673
- },
674
- },
675
- computed: {
676
- getCondition() {
677
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
678
- },
679
- getfield() {
680
- return exportConfig.handplanConfig
681
- },
682
- usertypes() {
683
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
684
- },
685
- accountsState() {
686
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
687
- },
688
- meterstate() {
689
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
690
- },
691
- handstate() {
692
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
693
- },
694
- inputtor() {
695
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
696
- },
697
- whetherPay() {
698
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('是否缴费')]
699
- },
700
- metertypes() {
701
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('机表抄表气表类型')]
702
- },
703
- }
704
- }
705
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
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
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
+
12
+ <div class="span" style="float:right;">
13
+ <button class="button_search button_spacing" @click="search()">查询</button>
14
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
15
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
16
+ :field="$parent.$parent.getfield"
17
+ :defaultselect="$parent.$parent.selectfields"
18
+ sqlurl="rs/logic/exportfile" sql-name="handplanQuery" template-name='业务查询抄表查询导出'
19
+ :choose-col="true"></export-excel>
20
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield"
21
+ :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
22
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
23
+
24
+ <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>
25
+ </div>
26
+ </div>
27
+ <div class="row" v-show="$parent.$parent.criteriaShow">
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="col-sm-2 form-group">
39
+ <label for="startDate" class="font_normal_body">录入日期</label>
40
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
41
+ v-model="model.startDate"
42
+ :value.sync="model.startDate"
43
+ :format="'yyyy-MM-dd HH:mm:ss'"
44
+ :show-reset-button="true"
45
+ condition="f_input_date >= '{}'">
46
+ </datepicker>
47
+ </div>
48
+ <div class="col-sm-2 form-group">
49
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</label>
50
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
51
+ v-model="model.endDate"
52
+ :value.sync="model.endDate"
53
+ :format="'yyyy-MM-dd HH:mm:ss'"
54
+ :show-reset-button="true"
55
+ condition="f_input_date <= '{}'">
56
+ </datepicker>
57
+ </div>
58
+
59
+ <div class="col-sm-2 form-group">
60
+ <label class="font_normal_body">客户地址</label>
61
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
62
+ condition="f_address like '%{}%'" placeholder='客户地址'>
63
+ </div>
64
+ <div class="col-sm-2 form-group">
65
+ <label class="font_normal_body">抄表状态</label>
66
+ <v-select :value.sync="model.f_meter_state"
67
+ v-model="model.f_meter_state"
68
+ :options='$parent.$parent.meterstate' placeholder='请选择'
69
+ condition="f_meter_state = '{}'"
70
+ close-on-select></v-select>
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">表单状态</label>
74
+ <v-select :value.sync="model.f_hand_state"
75
+ v-model="model.f_hand_state"
76
+ :options='$parent.$parent.handstate' placeholder='请选择'
77
+ condition="f_hand_state = '{}'"
78
+ close-on-select></v-select>
79
+ </div>
80
+ <div class="col-sm-2 form-group">
81
+ <label class="font_normal_body">收费状态</label>
82
+ <v-select :value.sync="model.f_whether_pay"
83
+ v-model="model.f_whether_pay"
84
+ :options='$parent.$parent.whetherPay' placeholder='请选择'
85
+ condition="f_whether_pay = '{}'"
86
+ close-on-select></v-select>
87
+ </div>
88
+ <div class="col-sm-2 form-group">
89
+ <label class="font_normal_body">客户类型</label>
90
+ <v-select :value.sync="model.f_user_type"
91
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
92
+ condition="f_user_type = '{}'"
93
+ close-on-select></v-select>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">下账状态</label>
97
+ <v-select :value.sync="model.f_accounts_state"
98
+ :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_accounts_state"
99
+ condition="f_accounts_state = '{}'"
100
+ close-on-select></v-select>
101
+ </div>
102
+ <div class="col-sm-2 form-group">
103
+ <label class="font_normal_body">气表类型</label>
104
+ <v-select :value.sync="model.f_meter_classify" multiple
105
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
106
+ condition="f_meter_classify in {}"
107
+ close-on-select></v-select>
108
+ </div>
109
+ <div class="col-sm-2 form-group">
110
+ <label class="font_normal_body">气表品牌</label>
111
+ <v-select :value.sync="model.f_meter_brand" multiple
112
+ v-model="model.f_meter_brand"
113
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
114
+ condition="f_meter_brand in {}"
115
+ close-on-select></v-select>
116
+ </div>
117
+ <div class="col-sm-2 form-group">
118
+ <label for="startDate" class="font_normal_body">下发日期</label>
119
+ <datepicker id="handStartDate" placeholder="开始日期" style="width:60%"
120
+ v-model="model.handStartDate"
121
+ :value.sync="model.handStartDate"
122
+ :format="'yyyy-MM-dd 00:00:00'"
123
+ :show-reset-button="true"
124
+ condition="f_hand_date >= '{}'">
125
+ </datepicker>
126
+ </div>
127
+ <div class="col-sm-2 form-group">
128
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
129
+ <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
130
+ v-model="model.handEndDate"
131
+ :value.sync="model.handEndDate"
132
+ :format="'yyyy-MM-dd 23:59:59'"
133
+ :show-reset-button="true"
134
+ condition="f_hand_date <= '{}'">
135
+ </datepicker>
136
+ </div>
137
+ <div class="col-sm-2 form-group">
138
+ <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
139
+ <v-select :value.sync="model.f_inputtor"
140
+ v-model="model.f_inputtor"
141
+ :options='$parent.$parent.inputtores' placeholder='请选择'
142
+ condition="f_inputtor = '{}'"
143
+ close-on-select :value-single="true" :search="false">
144
+ </v-select>
145
+ </div>
146
+ <div class="col-sm-2 form-group">
147
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
148
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
149
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
150
+ style="width:60%"
151
+ close-on-select
152
+ condition="f_meter_book_num = '{}'"></v-select>
153
+ </div>
154
+
155
+ </div>
156
+ </div>
157
+ </criteria>
158
+
159
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
160
+ <template partial='head'>
161
+ <tr>
162
+ <th>
163
+ <nobr>客户编号</nobr>
164
+ </th>
165
+ <th>
166
+ <nobr>客户名称</nobr>
167
+ </th>
168
+ <th>
169
+ <nobr>客户地址</nobr>
170
+ </th>
171
+ <th>
172
+ <nobr>表号</nobr>
173
+ </th>
174
+ <th>
175
+ <nobr>电话号码</nobr>
176
+ </th>
177
+ <th>
178
+ <nobr>身份证号</nobr>
179
+ </th>
180
+ <th>
181
+ <nobr>上期底数</nobr>
182
+ </th>
183
+ <th>
184
+ <nobr>本期底数</nobr>
185
+ </th>
186
+ <th>
187
+ <nobr>用气量</nobr>
188
+ </th>
189
+ <th>
190
+ <nobr>用气金额</nobr>
191
+ </th>
192
+ <th>
193
+ <nobr>已交金额</nobr>
194
+ </th>
195
+ <th>
196
+ <nobr>下账状态</nobr>
197
+ </th>
198
+ <th>
199
+ <nobr>一阶气量</nobr>
200
+ </th>
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
+ <th>
250
+ <nobr>部门</nobr>
251
+ </th>
252
+ </tr>
253
+ </template>
254
+ <template partial='body'>
255
+ <td style="text-align: center;">
256
+ <nobr>
257
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
258
+ </td>
259
+ <td style="text-align: center;">
260
+ <nobr>{{row.f_user_name}}</nobr>
261
+ </td>
262
+ <td style="text-align: center;">
263
+ <nobr>{{row.f_address}}</nobr>
264
+ </td>
265
+ <td style="text-align: center;">
266
+ <nobr>{{row.f_meternumber}}</nobr>
267
+ </td>
268
+ <td style="text-align: center;">
269
+ <nobr>{{row.userphone}}</nobr>
270
+ </td>
271
+ <td style="text-align: center;">
272
+ <nobr>{{row.f_idnumber}}</nobr>
273
+ </td>
274
+ <td style="text-align: center;">
275
+ <nobr>{{row.f_last_tablebase}}</nobr>
276
+ </td>
277
+ <td style="text-align: center;">
278
+ <nobr>{{row.f_tablebase}}</nobr>
279
+ </td>
280
+ <td style="text-align: center;">
281
+ <nobr>{{row.f_oughtamount}}</nobr>
282
+ </td>
283
+ <td style="text-align: center;">
284
+ <nobr>{{row.f_oughtfee}}</nobr>
285
+ </td>
286
+ <td style="text-align: center;">
287
+ <nobr>{{row.f_debt_money}}</nobr>
288
+ </td>
289
+ <td style="text-align: center;">
290
+ <nobr>{{row.f_accounts_state}}</nobr>
291
+ </td>
292
+ <td style="text-align: center;">
293
+ <nobr>{{row.f_stair1amount}}</nobr>
294
+ </td>
295
+ <td style="text-align: center;">
296
+ <nobr>{{row.f_stair1price}}</nobr>
297
+ </td>
298
+ <td style="text-align: center;">
299
+ <nobr>{{row.f_stair1fee}}</nobr>
300
+ </td>
301
+ <td style="text-align: center;">
302
+ <nobr>{{row.f_stair2amount}}</nobr>
303
+ </td>
304
+ <td style="text-align: center;">
305
+ <nobr>{{row.f_stair2price}}</nobr>
306
+ </td>
307
+ <td style="text-align: center;">
308
+ <nobr>{{row.f_stair2fee}}</nobr>
309
+ </td>
310
+ <td style="text-align: center;">
311
+ <nobr>{{row.f_stair3amount}}</nobr>
312
+ </td>
313
+ <td style="text-align: center;">
314
+ <nobr>{{row.f_stair3price}}</nobr>
315
+ </td>
316
+ <td style="text-align: center;">
317
+ <nobr>{{row.f_stair3fee}}</nobr>
318
+ </td>
319
+ <td style="text-align: center;">
320
+ <nobr>{{row.f_inputtor}}</nobr>
321
+ </td>
322
+ <td style="text-align: center;">
323
+ <nobr>{{row.f_whether_pay}}</nobr>
324
+ </td>
325
+ <td style="text-align: center;">
326
+ <nobr>{{row.f_hand_date}}</nobr>
327
+ </td>
328
+ <td style="text-align: center;">
329
+ <nobr>{{row.f_input_date}}</nobr>
330
+ </td>
331
+ <td style="text-align: center;">
332
+ <nobr>{{row.f_meter_state}}</nobr>
333
+ </td>
334
+ <td style="text-align: center;">
335
+ <nobr>{{row.f_hand_state}}</nobr>
336
+ </td>
337
+ <td style="text-align: center;">
338
+ <nobr>{{row.f_operator}}</nobr>
339
+ </td>
340
+ <td style="text-align: center;">
341
+ <nobr>{{row.f_orgname}}</nobr>
342
+ </td>
343
+ <td style="text-align: center;">
344
+ <nobr>{{row.f_depname}}</nobr>
345
+ </td>
346
+ </template>
347
+ <template partial='foot'></template>
348
+ </data-grid>
349
+ </criteria-paged>
350
+
351
+ <table class="table-hover">
352
+ <tr style="position: relative" class="table-bordered">
353
+ <td
354
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
355
+ 汇总信息
356
+ </td>
357
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
358
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
359
+ </td>
360
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
361
+ 气费合计:&emsp;{{sumsmodel.f_oughtfee}}
362
+ </td>
363
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
364
+ 一阶气量合计:&emsp;{{sumsmodel.f_stair1amount}}
365
+ </td>
366
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
367
+ 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
368
+ </td>
369
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
370
+ 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
371
+ </td>
372
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
373
+ 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
374
+ </td>
375
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
376
+ 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
377
+ </td>
378
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
379
+ 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
380
+ </td>
381
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
382
+ 剩余气量合计:&emsp;{{sumsmodel.f_surplus_gas}}
383
+ </td>
384
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
385
+ 扣减气量合计:&emsp;{{sumsmodel.f_haircut_gas}}
386
+ </td>
387
+ </tr>
388
+ </table>
389
+ </div>
390
+ <div v-if="show">
391
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
392
+ </div>
393
+ </div>
394
+ </div>
395
+ </template>
396
+
397
+ <script>
398
+ import {PagedList} from 'vue-client'
399
+ import defaultPrint from '../config/DefaultPrint'
400
+ import exportConfig from '../config/exportConfig'
401
+
402
+ let readySomething = async function (self) {
403
+ self.$MagGetSaleParam.initinputtor();
404
+ self.getinputtores();
405
+ self.initmeterbook();
406
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
407
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
408
+ self.$refs.paged.$refs.cri.model.f_meter_classify = ['机表']
409
+ // await self.$refs.paged.$refs.cri.search()
410
+ await self.$getConfig(self, 'HandplanQuery')
411
+ console.log('抄表查询获取默认配置', self.config)
412
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
413
+ console.log('开始初始化参数', self.defaultfield)
414
+ await self.$MagLoadParams.loadParam()
415
+ // await self.$MagLoadParams.loadParam()
416
+ // self.initParams()
417
+ console.log('开始查询')
418
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
419
+ }
420
+ export default {
421
+ data() {
422
+ return {
423
+ selectfields:[],
424
+ data: {},
425
+ model: new PagedList('rs/sql/handplanQuery', 20, {}, {
426
+ f_oughtamount: 0,
427
+ f_oughtfee: 0,
428
+ f_stair1amount: 0,
429
+ f_stair1fee: 0,
430
+ f_stair2amount: 0,
431
+ f_stair2fee: 0,
432
+ f_stair3amount: 0,
433
+ f_stair3fee: 0,
434
+ f_surplus_gas: 0,
435
+ f_haircut_gas: 0
436
+ }),
437
+ initres: {
438
+ org:[this.$login.f.orgid],
439
+ dep:[],
440
+ user:[],
441
+ },
442
+ show:false,
443
+ rowdata:{},
444
+ criteriaShow: false,
445
+ orgCondtionStr: '',
446
+ modelval: [],
447
+ printshow: false,
448
+ all: false,
449
+ fields: {},
450
+ thead: '',
451
+ tfoot: '',
452
+
453
+ // 下拉框
454
+
455
+ //合计数据
456
+ sumsmodel: {},
457
+ defaultfield: [],
458
+ config: {
459
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
460
+ },
461
+ tempfalg :false,
462
+ lastorgstr:'',
463
+ allorgid:[],
464
+ meterbooks:[{label: '全部',value: ''}], //抄表册
465
+ inputtores:[{label: '全部',value: ''}], //抄表员
466
+ meterbrands:[{label: '全部',value: ''}],
467
+ }
468
+ },
469
+ props:['selectorg'],
470
+ ready() {
471
+ if(this.selectorg != null && this.selectorg != null != ''){
472
+ this.initres.org=[]
473
+ this.initres.org.push(this.selectorg);
474
+ }
475
+ readySomething(this).then(() => {
476
+ this.$emit('ready')
477
+ }).catch((error) => {
478
+ this.$emit('error', error)
479
+ })
480
+ for(var item in exportConfig.handplanConfig){
481
+ this.selectfields.push(item)
482
+ }
483
+ },
484
+ methods: {
485
+ async initmeterbook(orgstr){
486
+ if(orgstr == null ){
487
+ orgstr = this.f_filialeid;
488
+ }
489
+ //获取新的抄表册,先去清理所有的抄表册
490
+ this.$GetSaleParam.meterbooks = [];
491
+ //开始加载新的抄表册
492
+ await this.$LoadParams.loadMeterBook(orgstr)
493
+ this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
494
+ },
495
+ async getinputtores () {
496
+ // 获取抄表员
497
+ let rs = []
498
+ if (this.$login.f.f_gasman.length > 0) {
499
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
500
+ let temp = {
501
+ label: this.$login.f.f_gasman[i].name,
502
+ value: this.$login.f.f_gasman[i].name
503
+ }
504
+ rs.push(temp)
505
+ }
506
+ }
507
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
508
+ },
509
+ async updateParams() {
510
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
511
+ this.inputtores = [];
512
+ this.inputtores.push({label: "全部", value: ""})
513
+ if(this.allorgid!=null){
514
+ this.allorgid.forEach((res)=>{
515
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
516
+ })
517
+ }
518
+ this.initParams()
519
+ },
520
+ search(){
521
+ this.$refs.paged.$refs.cri.search()
522
+ },
523
+ cancel() {
524
+ this.show = false
525
+ },
526
+ initParams() {
527
+ // 初始化气表品牌
528
+ let brandArr = []
529
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
530
+ let temp = {}
531
+ temp.label = item.label
532
+ temp.value = item.value.f_meter_brand
533
+ if(item.value.f_meter_type=='机表'){
534
+ brandArr.push(temp)
535
+ }
536
+ })
537
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
538
+ //初始化气价
539
+ let result = []
540
+ this.$MagGetSaleParam.prices.forEach((item) => {
541
+ if (item.f_state === '有效' && this.$login.f.orgid == item.f_filialeid) {
542
+ let value = {
543
+ label: item.f_price_name,
544
+ value: item.f_price_name
545
+ }
546
+ result.push(value)
547
+ }
548
+ })
549
+ let hash = {}
550
+ result = result.reduce((item, next) => {
551
+ hash[next.label] ? '' : hash[next.label] = true && item.push(next)
552
+ return item
553
+ }, [])
554
+ this.prices = Array.from(new Set(result))
555
+ },
556
+ selfSearch(args) {
557
+ //抄表员查询条件
558
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
559
+ if(this.inputtouPerson.length !== 0){
560
+ let str = JSON.stringify(this.inputtouPerson)
561
+ str = str.replace(/"/g,`'`)
562
+ str = str.replace(/\[/g,``)
563
+ str = str.replace(/\]/g,``)
564
+ //查询多个抄表员时条件
565
+ args.condition += ` and f_inputtor in ( ${str} )`
566
+ }
567
+ args.condition = `${args.condition} ` + this.orgCondtionStr
568
+ this.model.search(args.condition, args.model)
569
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
570
+ },
571
+ clear() {
572
+ //清空部门和人员
573
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
574
+ //部门和人员变为全选
575
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
576
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
577
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
578
+ this.$refs.paged.$refs.cri.model[key] = ''
579
+ })
580
+ },
581
+ show() {
582
+ this.criteriaShow = true
583
+ },
584
+ hidden() {
585
+ this.criteriaShow = !this.criteriaShow
586
+ },
587
+ getRes(obj) {
588
+ this.orgCondtionStr = obj
589
+ },
590
+ stamp() {
591
+ this.all = false
592
+ //默认选择要打印的列
593
+ this.modelval = defaultPrint.config
594
+ this.fields = this.getfield
595
+ console.log('所有打印字段', this.fields)
596
+ this.printshow = true
597
+ this.put()
598
+ },
599
+ put() {
600
+ // 对Modelval进行排序
601
+ this.sortModelval()
602
+ this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
603
+ for (let key of this.modelval) {
604
+ this.thead += '<th>' + this.fields[key] + '</th>'
605
+ }
606
+ this.thead += '</tr>'
607
+ },
608
+ print() {
609
+ this.$refs.print.PrintAsFile()
610
+ this.printshow = false
611
+ },
612
+ dealmsg(val) {
613
+ console.log('---------------dealmsg')
614
+ this.rowdata=val
615
+ this.show=true
616
+ val.model = this.model.model
617
+ this.$dispatch('deal-msg', val)
618
+ },
619
+ close() {
620
+ this.printshow = false
621
+ this.all = false
622
+ },
623
+ // 对选择的列进行排序
624
+ sortModelval() {
625
+ let sortModel = []
626
+ Object.keys(this.fields).forEach((key) => {
627
+ if (this.modelval.includes(key)) {
628
+ sortModel.push(key)
629
+ }
630
+ })
631
+ this.modelval = sortModel
632
+ console.log('选择的打印的字段', this.modelval)
633
+ }
634
+ },
635
+ watch: {
636
+ 'all'(val) {
637
+ if (val) {
638
+ this.modelval = this.bodyData
639
+ } else {
640
+ this.modelval = defaultPrint.config
641
+ this.put()
642
+ }
643
+ },
644
+ 'modelval.length'() {
645
+ this.put()
646
+ },
647
+ async 'orgCondtionStr'(val) {
648
+ this.meterbooks = [{label: '全部',value: ''}];
649
+ if(this.lastorgstr != val){
650
+ this.tempfalg = true;
651
+ this.lastorgstr = val;
652
+ }
653
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
654
+ this.tempfalg = false;
655
+ let a = val.substring(val.indexOf("(")+2)
656
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
657
+ }
658
+ let res = val.match(/'(.*?)'/)
659
+ console.log('正则提取:',res && res[1])
660
+ if (res) {
661
+ this.f_filialeid = res[1]
662
+ if(res.input !=null){
663
+ let resorgid = res.input.substring(res.input.indexOf("'"));
664
+ if(resorgid!= null && resorgid!=''){
665
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
666
+ // resorgid = resorgid.replaceAll("'","");
667
+ resorgid = resorgid.replace(/'/g,"");
668
+ this.allorgid = resorgid.split(",")
669
+ }
670
+ }
671
+ this.updateParams()
672
+ }
673
+ },
674
+ },
675
+ computed: {
676
+ getCondition() {
677
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
678
+ },
679
+ getfield() {
680
+ return exportConfig.handplanConfig
681
+ },
682
+ usertypes() {
683
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
684
+ },
685
+ accountsState() {
686
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
687
+ },
688
+ meterstate() {
689
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
690
+ },
691
+ handstate() {
692
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
693
+ },
694
+ inputtor() {
695
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
696
+ },
697
+ whetherPay() {
698
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('是否缴费')]
699
+ },
700
+ metertypes() {
701
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('机表抄表气表类型')]
702
+ },
703
+ }
704
+ }
705
+ </script>