manage-client 3.1.45 → 3.1.46

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