manage-client 3.2.98 → 3.2.99-1

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