manage-client 3.2.24 → 3.2.28

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 (84) hide show
  1. package/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  2. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  7. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/7.1/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  11. package/build/dev-server.js +7 -9
  12. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  13. package/build/tmp/jar/MANIFEST.MF +2 -0
  14. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  15. package/package.json +3 -3
  16. package/src/components/SellReport/AmountGas.vue +257 -257
  17. package/src/components/SellReport/BusinessClassify.vue +268 -317
  18. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  19. package/src/components/SellReport/BusinessReport.vue +256 -256
  20. package/src/components/SellReport/ChSellReport.vue +251 -251
  21. package/src/components/SellReport/ChargeBill.vue +244 -244
  22. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  23. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  24. package/src/components/SellReport/ChargePrick.vue +43 -122
  25. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  26. package/src/components/SellReport/DepartmentPrick.vue +243 -288
  27. package/src/components/SellReport/DeptHomePage.vue +299 -299
  28. package/src/components/SellReport/FinanceSellType.vue +254 -254
  29. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  30. package/src/components/SellReport/GasMoneyPublicReport.vue +263 -263
  31. package/src/components/SellReport/GasMoneyReport.vue +252 -254
  32. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  33. package/src/components/SellReport/GasSummary.vue +257 -257
  34. package/src/components/SellReport/Gasc.vue +257 -257
  35. package/src/components/SellReport/GetUserNum.vue +240 -240
  36. package/src/components/SellReport/HandplanBili.vue +241 -241
  37. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  38. package/src/components/SellReport/ManageGasSumChange.vue +265 -265
  39. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  40. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  41. package/src/components/SellReport/MarketMonth.vue +251 -297
  42. package/src/components/SellReport/MeterPrice.vue +244 -244
  43. package/src/components/SellReport/MeterReader.vue +231 -231
  44. package/src/components/SellReport/OperatorCheckoutTwo.vue +263 -263
  45. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  46. package/src/components/SellReport/OtherChargePublicReport.vue +262 -262
  47. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  48. package/src/components/SellReport/PaymentMethod.vue +274 -274
  49. package/src/components/SellReport/QTXManageBusSummary.vue +236 -236
  50. package/src/components/SellReport/SellDepReport.vue +264 -266
  51. package/src/components/SellReport/UserClassify.vue +222 -271
  52. package/src/components/SellReport/UserGasFillCard.vue +441 -441
  53. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  54. package/src/components/SellReport/YuShouTable.vue +298 -298
  55. package/src/components/SellReport/chargeSchedule.vue +410 -410
  56. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  57. package/src/components/SellReport/userholds.vue +257 -257
  58. package/src/components/sale/businessquery/ChangeMeterQuery.vue +8 -3
  59. package/src/components/sale/businessquery/FillCardQuery.vue +7 -3
  60. package/src/components/sale/businessquery/FillGasQuery.vue +19 -4
  61. package/src/components/sale/businessquery/InspectListUser.vue +3 -3
  62. package/src/components/sale/businessquery/OtherChargeQuery.vue +10 -5
  63. package/src/components/sale/businessquery/TransferQuery.vue +6 -2
  64. package/src/components/sale/config/exportConfig.js +898 -890
  65. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  66. package/src/components/sale/filesquery/FireQuery.vue +473 -0
  67. package/src/components/webmeter/DrillData/UserGasAll.vue +17 -6
  68. package/src/components/webmeter/gasStatistics/GasStatistics.vue +467 -0
  69. package/src/components/webmeter/newwebmeter/ArrearageQuery.vue +307 -0
  70. package/src/components/webmeter/recharge/RechargeList.vue +343 -345
  71. package/src/components/webmeter/report/ReportList.vue +0 -14
  72. package/src/filiale/WEINAN/BankManager.vue +139 -0
  73. package/src/filiale/WEINAN/config/exportConfig.js +833 -833
  74. package/src/filiale/WEINAN/reportManage.js +13 -12
  75. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  76. package/src/filiale/macheng/ArrearsQuery.vue +823 -823
  77. package/src/filiale/macheng/RecordInfoQuery.vue +14 -20
  78. package/src/filiale/tongchuan/ChargeQuery.vue +19 -1
  79. package/src/filiale/tongchuan/FillGasQuery.vue +19 -4
  80. package/src/filiale/tongchuan/config/exportConfig.js +1 -1
  81. package/src/main.js +2 -2
  82. package/src/reportManage.js +498 -498
  83. package/src/saleManage.js +5 -0
  84. package/src/webmeterManage.js +117 -113
@@ -1,823 +1,823 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
10
-
11
- <div class="span" style="float:right;">
12
- <button class="button_search button_spacing" @click="search()">查询</button>
13
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
14
-
15
- <export-excel :data="$parent.$parent.getCondition"
16
- :field="$parent.$parent.getfield"
17
- :footer="$parent.$parent.footer"
18
- :header="$parent.$parent.other"
19
- sqlurl="rs/logic/exportfile"
20
- sql-name="arrearsQuery"
21
- template-name='用户欠费查询导出'
22
- :choose-col="true"></export-excel>
23
-
24
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
25
- :defaultfield="$parent.$parent.defaultfield"
26
- titletable="用户欠费查询导出"
27
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
28
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
29
- 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
30
-
31
- </div>
32
- </div>
33
-
34
- <div class="row" v-show="$parent.$parent.criteriaShow">
35
- <div class="col-sm-2 form-group">
36
-
37
- <label for="startDate" class="font_normal_body">开始日期</label>
38
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
39
- v-model="model.startDate"
40
- :value.sync="model.startDate"
41
- :format="'yyyy-MM-dd HH:mm:ss'"
42
- :show-reset-button="true"
43
- >
44
- </datepicker>
45
- </div>
46
- <div class="col-sm-2 form-group">
47
- <label for="endDate" class="font_normal_body">结束日期</label>
48
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
49
- v-model="model.endDate"
50
- :value.sync="model.endDate"
51
- :format="'yyyy-MM-dd HH:mm:ss'"
52
- :show-reset-button="true"
53
- >
54
- </datepicker>
55
- </div>
56
- <div class="col-sm-2 form-group">
57
-
58
- <label for="inputstartDate" class="font_normal_body">抄表日期</label>
59
- <datepicker id="inputstartDate" placeholder="开始日期" style="width:60%"
60
- v-model="model.inputstartDate"
61
- :value.sync="model.inputstartDate"
62
- :format="'yyyy-MM-dd 00:00:00'"
63
- :show-reset-button="true"
64
- condition="f_input_date >= '{}'"
65
- >
66
- </datepicker>
67
- </div>
68
- <div class="col-sm-2 form-group">
69
- <label for="inputendDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
70
- <datepicker id="inputendDate" placeholder="结束日期" style="width:60%"
71
- v-model="model.inputendDate"
72
- :value.sync="model.inputendDate"
73
- :format="'yyyy-MM-dd 23:59:59'"
74
- :show-reset-button="true"
75
- condition="f_input_date <= '{}'"
76
- >
77
- </datepicker>
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">客户编号</label>
81
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
82
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
83
- </div>
84
- <div class="col-sm-2 form-group">
85
- <label class="font_normal_body">客户名称</label>
86
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
87
- condition="f_user_name like '%{}%'" placeholder="客户名称">
88
- </div>
89
-
90
- <!--<div class="col-sm-2 form-group">-->
91
- <!--<label class="font_normal_body">收费编号</label>-->
92
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.id"-->
93
- <!--condition="id = '{}'" placeholder="收费编号">-->
94
- <!--</div>-->
95
- <div class="col-sm-2 form-group">
96
- <label class="font_normal_body">客户电话</label>
97
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
98
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
99
- </div>
100
- <!--<div class="col-sm-2 form-group">-->
101
- <!--<label class="font_normal_body">身份证号</label>-->
102
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"-->
103
- <!--condition="f_idnumber like '%{}%'" placeholder="身份证号">-->
104
- <!--</div>-->
105
- <div class="col-sm-2 form-group">
106
- <label class="font_normal_body">客户地址</label>
107
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
108
- condition="f_address like '%{}%'" placeholder='客户地址'>
109
- </div>
110
- <div class="col-sm-2 form-group">
111
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
112
- <v-select :value.sync="model.f_residential_area"
113
- class="select_list select"
114
- enter-push
115
- multiple
116
- condition="f_residential_area in {}"
117
- v-model="model.f_residential_area"
118
- style="width: 60%"
119
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
120
- close-on-select>
121
-
122
- </v-select>
123
- </div>
124
- <div class="col-sm-2 form-group">
125
- <label class="font_normal_body" >缴费类型</label>
126
- <v-select :value.sync="model.f_payment" multiple
127
- v-model="model.f_payment"
128
- :options='$parent.$parent.dypayment' placeholder='请选择'
129
- condition="f_cost_type in {}"
130
- close-on-select></v-select>
131
- </div>
132
- <!--<div class="col-sm-2 form-group">-->
133
- <!--<label class="font_normal_body" title="参数:付款方式查询">付款方式</label>-->
134
- <!--<v-select :value.sync="model.f_payment" multiple-->
135
- <!--v-model="model.f_payment"-->
136
- <!--:options='$parent.$parent.payment' placeholder='请选择'-->
137
- <!--condition="f_payment in {}"-->
138
- <!--close-on-select></v-select>-->
139
- <!--</div>-->
140
- <!--<div class="col-sm-2 form-group">-->
141
- <!--<label class="font_normal_body">收费类型</label>-->
142
- <!--&lt;!&ndash; <v-select :value.sync="model.f_type"-->
143
- <!--v-model="model.f_type"-->
144
- <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
145
- <!--condition="f_type = '{}'"-->
146
- <!--close-on-select></v-select>&ndash;&gt;-->
147
- <!--<v-select :value.sync="model.f_type" multiple-->
148
- <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
149
- <!--close-on-select clear-button-->
150
- <!--condition="f_type in {}"-->
151
- <!--v-model="model.f_type"></v-select>-->
152
- <!--</div>-->
153
- <div class="col-sm-2 form-group">
154
- <label class="font_normal_body">客户类型</label>
155
- <v-select :value.sync="model.f_user_type"
156
- @change="$parent.$parent.userTypeChange()"
157
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
158
- condition="f_user_type = '{}'"
159
- close-on-select></v-select>
160
- </div>
161
- <div class="col-sm-2 form-group">
162
- <label class="font_normal_body">用气性质</label>
163
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
164
- :options='$parent.$parent.gasproperties' placeholder='请选择'
165
- condition="f_gasproperties = '{}'"
166
- close-on-select></v-select>
167
- </div>
168
- <div class="col-sm-2 form-group">
169
- <label class="font_normal_body">气价类型</label>
170
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
171
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
172
- close-on-select v-ref:type>
173
- </v-select>
174
- </div>
175
- <div class="col-sm-2 form-group">
176
- <label class="font_normal_body">气价名称</label>
177
- <v-select :value.sync="model.f_price_name"
178
- v-model="model.f_price_name"
179
- :options="$parent.$parent.getPricenames"
180
- condition="f_price_name = '{}'"
181
- close-on-select></v-select>
182
- </div>
183
- <div class="col-sm-2 form-group">
184
- <label class="font_normal_body" title="欠费气量大于">欠费气量</label>
185
- <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtamount"
186
- condition="f_oughtamount > '{}'" placeholder="欠费气量大于">
187
- </div>
188
- <div class="col-sm-2 form-group">
189
- <label class="font_normal_body" title="气费金额大于">气费金额</label>
190
- <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtfee_new"
191
- condition="f_oughtfee_new > '{}'" placeholder="气费金额大于">
192
- </div>
193
- <div class="col-sm-2 form-group">
194
- <label class="font_normal_body" title="欠费金额大于">欠费金额</label>
195
- <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtfee_all"
196
- condition="f_oughtfee_all > '{}'" placeholder="欠费金额大于">
197
- </div>
198
- <div class="col-sm-2 form-group">
199
- <label class="font_normal_body">欠费期数</label>
200
- <input type="text" style="width:60%" class="input_search" v-model="model.c"
201
- condition="c > '{}'" placeholder='欠费期数大于'>
202
- </div>
203
- <div class="col-sm-2 form-group">
204
- <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
205
- <v-select :value.sync="model.f_inputtor"
206
- v-model="model.f_inputtor"
207
- :options='$parent.$parent.inputtores' placeholder='请选择'
208
- condition="f_inputtor = '{}'"
209
- @change="$parent.$parent.inputtorchange"
210
- close-on-select :value-single="true" :search="false">
211
- </v-select>
212
- </div>
213
- <div class="col-sm-2 form-group">
214
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
215
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
216
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
217
- style="width:60%"
218
- close-on-select
219
- condition="f_meter_book_num = '{}'"></v-select>
220
- </div>
221
- <!--<div class="col-sm-2 form-group">-->
222
- <!--<label class="font_normal_body">气价类型</label>-->
223
- <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
224
- <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
225
- <!--close-on-select v-ref:type>-->
226
- <!--</v-select>-->
227
- <!--</div>-->
228
- <!--<div class="col-sm-2 form-group">-->
229
- <!--<label class="font_normal_body">气价名称</label>-->
230
- <!--<v-select :value.sync="model.f_price_name"-->
231
- <!--v-model="model.f_price_name"-->
232
- <!--:options="$parent.$parent.getPricenames"-->
233
- <!--condition="f_price_name = '{}'"-->
234
- <!--close-on-select></v-select>-->
235
- <!--</div>-->
236
- <!--<div class="col-sm-2 form-group">-->
237
- <!--<label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>-->
238
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"-->
239
- <!--condition="f_user_id = '{}'" placeholder='表编号'>-->
240
- <!--</div>-->
241
- </div>
242
- </div>
243
- </criteria>
244
-
245
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
246
- <template partial='head'>
247
- <tr>
248
- <th>
249
- <nobr>序号</nobr>
250
- </th>
251
- <th>
252
- <nobr>客户编号</nobr>
253
- </th>
254
- <th>
255
- <nobr>客户姓名</nobr>
256
- </th>
257
- <th>
258
- <nobr>小区名称</nobr>
259
- </th>
260
- <th>
261
- <nobr>地址</nobr>
262
- </th>
263
- <th>
264
- <nobr>客户电话</nobr>
265
- </th>
266
- <th>
267
- <nobr>备用电话</nobr>
268
- </th>
269
-
270
-
271
- <th>
272
- <nobr>欠费期数</nobr>
273
- </th>
274
- <th>
275
- <nobr>欠费区间</nobr>
276
- </th>
277
- <th>
278
- <nobr>上期抄表底数</nobr>
279
- </th>
280
- <th>
281
- <nobr>本期抄表底数</nobr>
282
- </th>
283
- <th>
284
- <nobr>用气量</nobr>
285
- </th>
286
- <th>
287
- <nobr>用气金额</nobr>
288
- </th>
289
- <th>
290
- <nobr>缴费时间</nobr>
291
- </th>
292
- <th>
293
- <nobr>已交金额</nobr>
294
- </th>
295
- <!--<th>-->
296
- <!--<nobr>回收率</nobr>-->
297
- <!--</th>-->
298
- <th>
299
- <nobr>应交气费</nobr>
300
- </th>
301
- <th>
302
- <nobr>滞纳金</nobr>
303
- </th>
304
- <th>
305
- <nobr>附加费</nobr>
306
- </th>
307
- <th>
308
- <nobr>上期余额</nobr>
309
- </th>
310
- <th>
311
- <nobr>合计欠费</nobr>
312
- </th>
313
- <th>
314
- <nobr>抄表员</nobr>
315
- </th>
316
- <th>
317
- <nobr>抄表册</nobr>
318
- </th>
319
- <th>
320
- <nobr>客户类型</nobr>
321
- </th>
322
- <th>
323
- <nobr>缴费类型</nobr>
324
- </th>
325
- <th>
326
- <nobr>用气性质</nobr>
327
- </th>
328
- <th>
329
- <nobr>备&nbsp;&nbsp;&nbsp;&nbsp;注</nobr>
330
- </th>
331
- </tr>
332
- </template>
333
- <template partial='body'>
334
- <td style="text-align:center">
335
- <nobr>{{$index+1}}</nobr>
336
- </td>
337
- <td style="text-align: center;">
338
- <nobr>{{row.f_userinfo_code}}</nobr>
339
- </td>
340
- <td style="text-align: center;">
341
- <nobr>{{row.f_user_name}}</nobr>
342
- </td>
343
- <td style="text-align: center;">
344
- <nobr>{{row.f_residential_area}}</nobr>
345
- </td>
346
- <td style="text-align: center;">
347
- <nobr>{{row.f_address}}</nobr>
348
- </td>
349
- <td style="text-align: center;">
350
- <nobr>{{row.f_user_phone}}</nobr>
351
- </td>
352
- <td style="text-align: center;">
353
- <nobr>{{row.f_rent_phone}}</nobr>
354
- </td>
355
-
356
- <td style="text-align: center;">
357
- <nobr>{{row.c}}</nobr>
358
- </td>
359
- <td style="text-align: center;">
360
- <nobr>{{row.f_hand_date}}</nobr>
361
- </td>
362
- <td style="text-align: center;">
363
- <nobr>{{row.f_last_tablebase}}</nobr>
364
- </td>
365
- <td style="text-align: center;">
366
- <nobr>{{row.f_tablebase}}</nobr>
367
- </td>
368
- <td style="text-align: center;">
369
- <nobr>{{row.f_oughtamount}}</nobr>
370
- </td>
371
- <td style="text-align: center;">
372
- <nobr>{{row.f_oughtfee}}</nobr>
373
- </td>
374
- <td style="text-align: center;">
375
- <nobr>{{row.f_operate_date}}</nobr>
376
- </td>
377
- <td style="text-align: center;">
378
- <nobr>{{row.f_debt_money}}</nobr>
379
- </td>
380
- <!--<td style="text-align: center;">-->
381
- <!--<nobr>{{row.f_hand_bv}}</nobr>-->
382
- <!--</td>-->
383
- <td style="text-align: center;">
384
- <nobr>{{row.f_oughtfee_new}}</nobr>
385
- </td>
386
- <td style="text-align: center;">
387
- <nobr>{{row.overdue}}</nobr>
388
- </td>
389
- <td style="text-align: center;">
390
- <nobr>{{row.f_garbage_fee}}</nobr>
391
- </td>
392
- <td style="text-align: center;">
393
- <nobr>{{row.f_balance}}</nobr>
394
- </td>
395
- <td style="text-align: center;">
396
- <nobr>{{row.f_oughtfee_all}}</nobr>
397
- </td>
398
- <td style="text-align: center;">
399
- <nobr>{{row.f_inputtor}}</nobr>
400
- </td>
401
- <td style="text-align: center;">
402
- <nobr>{{row.f_book_name}}</nobr>
403
- </td>
404
- <td style="text-align: center;">
405
- <nobr>{{row.f_user_type}}</nobr>
406
- </td>
407
- <td style="text-align: center;">
408
- <nobr>{{row.f_gasproperties}}</nobr>
409
- </td>
410
- <td style="text-align: center;">
411
- <nobr>{{row.f_cost_type}}</nobr>
412
- </td>
413
- <td style="text-align: center;">
414
- <nobr>{{row.f_comments}}</nobr>
415
- </td>
416
- </template>
417
- <template partial='foot'></template>
418
- </data-grid>
419
- </criteria-paged>
420
- <table class="table-hover">
421
- <tr style="position: relative" class="table-bordered">
422
- <td
423
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
424
- 汇总信息
425
- </td>
426
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
427
- 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
428
- </td>
429
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
430
- 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
431
- </td>
432
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
433
- 已交金额合计:&emsp;{{sumsmodel.f_debt_money}}
434
- </td>
435
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
436
- 气费金额合计:&emsp;{{sumsmodel.f_oughtfee_new}}
437
- </td>
438
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
439
- 滞纳金合计:&emsp;{{sumsmodel.overdue}}
440
- </td>
441
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
442
- 附加费合计:&emsp;{{sumsmodel.f_garbage_fee}}
443
- </td>
444
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
445
- 上期余额合计:&emsp;{{sumsmodel.f_balance}}
446
- </td>
447
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
448
- 合计欠费:&emsp;{{parseFloat((sumsmodel.f_oughtfee_all.toFixed(2)-sumsmodel.f_balance.toFixed(2)).toFixed(2))}}
449
- </td>
450
- </tr>
451
- </table>
452
- </div>
453
- <div v-if="show">
454
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
455
- </div>
456
- </div>
457
- </div>
458
- </template>
459
-
460
- <script>
461
- import {HttpResetClass, PagedList} from 'vue-client'
462
- import exportConfig from './config/exportConfig'
463
-
464
- let readySomething = async function (self) {
465
- self.$MagGetSaleParam.initinputtor();
466
- self.getinputtores();
467
- //加载抄表册
468
- self.initmeterbook();
469
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
470
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
471
- // self.$refs.paged.$refs.cri.search()
472
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
473
- await self.$MagLoadParams.loadParam()
474
- self.initParams()
475
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
476
- }
477
- export default {
478
- data() {
479
- return {
480
- config: {
481
- defaultPrint: ['f_userinfo_code', 'f_address']
482
- },
483
- other:[],
484
- footer:[],
485
- //f_price_name:[],
486
- gasproperties:[],
487
- showinfo: false,
488
- data: {},
489
- show:false,
490
- rowdata:{},
491
- initres: {
492
- org:[this.$login.f.orgid],
493
- dep:[],
494
- user:[]
495
- },
496
- model: new PagedList('rs/sql/arrearsQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
497
- f_oughtamount: 0,
498
- f_oughtfee: 0,
499
- f_debt_money: 0,
500
- f_oughtfee_new: 0,
501
- overdue: 0,
502
- f_garbage_fee: 0,
503
- f_balance:0,
504
- f_oughtfee_all: 0
505
- }),
506
- criteriaShow: false,
507
- orgCondtionStr: '',
508
- // 下拉框
509
- meterbrands: [],
510
- pricenames: [],
511
- prices: [],
512
- area: [],
513
- //合计数据
514
- defaultfield: [],
515
- //小区
516
- residentialArea: [],
517
- sumsmodel: {},
518
- f_filialeid: this.$login.f.f_orgid,
519
- meterbooks:[{label: '全部',value: ''}], //抄表册
520
- inputtores:[{label: '全部',value: ''}],
521
- allorgid:[],
522
- tempfalg :false,
523
- lastorgstr:'',
524
- dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
525
- }
526
- },
527
- ready() {
528
- this.getaddress()
529
- readySomething(this).then(() => {
530
- this.$emit('ready')
531
- }).catch((error) => {
532
- this.$emit('error', error)
533
- })
534
- },
535
- methods: {
536
- async inputtorchange(){
537
- let val = this.$refs.paged.$refs.cri.model.f_inputtor;
538
- if(val!=null && val !=""){
539
- let param={
540
- items:'*',
541
- tablename:'t_meter_book',
542
- condition:` 1=1 and f_inputtor = '${val}' and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `,
543
- orderitem:'id'
544
-
545
- }
546
- let getMeterBooks = await this.$resetpost('rs/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
547
- if (getMeterBooks.data) {
548
- if(getMeterBooks.data.length >0){
549
- let rs = [];
550
- getMeterBooks.data.forEach((item)=>{
551
- let temp = {
552
- label:item.f_book_name,
553
- value:item.id
554
- };
555
- rs.push(temp);
556
-
557
- })
558
- this.meterbooks = [{label: '全部',value: ''}, ...rs];
559
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[getMeterBooks.data[0].id]);
560
- }else{
561
- this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
562
- this.meterbooks = [{label: '全部',value: ''}];
563
- }
564
- }
565
- }else{
566
- this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
567
- this.meterbooks = [{label: '全部',value: ''}];
568
- this.initmeterbook();
569
- }
570
- },
571
- async initmeterbook(orgstr){
572
- if(orgstr == null ){
573
- orgstr = this.f_filialeid;
574
- }
575
- //获取新的抄表册,先去清理所有的抄表册
576
- this.$GetSaleParam.meterbooks = [];
577
- //开始加载新的抄表册
578
- await this.$LoadParams.loadMeterBook(orgstr)
579
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
580
- },
581
- getinputtores () {
582
- // 获取抄表员
583
- let rs = []
584
- if (this.$login.f.f_gasman.length > 0) {
585
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
586
- let temp = {
587
- label: this.$login.f.f_gasman[i].name,
588
- value: this.$login.f.f_gasman[i].name
589
- }
590
- rs.push(temp)
591
- }
592
- }
593
- return [{label: '全部', value: ''}, ...rs]
594
- },
595
- //加载抄表册
596
- loadMeterBooks(){
597
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
598
- },
599
- getotherfooter(){
600
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
601
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
602
- this.other=[];
603
- this.footer=[];
604
- let exportdata = this.getCondition;
605
- let otherInData=[];
606
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
607
- let footerData=[],exportfield=this.getfield;
608
- footerData.push("合计");
609
- let self =this;
610
- for(var field in self.sumsmodel){
611
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
612
- }
613
- this.footer.push(footerData);
614
- this.other.push(otherInData);
615
- },
616
- async getaddress(){
617
- console.log('开始获取小区')
618
- let HttpReset = new HttpResetClass()
619
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
620
- data: {
621
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
622
- }
623
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
624
- console.log('小区',data)
625
- let house = [{label: '全部', value: ''}]
626
- for (let row of data.data){
627
- console.log('开始保存小区')
628
- house.push({label: row.f_residential_area, value: row.f_residential_area})
629
- }
630
- this.residentialArea = house
631
- },
632
- //把数据库查询数据转换为下拉数据
633
- calculate(rows){
634
- let data = []
635
- rows.forEach((row, n) => {
636
- data[n] = {label: row.f_residential_area, value: row.id}
637
- })
638
- return data
639
- },
640
-
641
- search(){
642
- this.$refs.paged.$refs.cri.search()
643
- },
644
- cancel() {
645
- this.show = false
646
- },
647
- showmsg(obj){
648
- this.rowdata=obj
649
- this.show=true
650
- },
651
- userTypeChange () {
652
- this.gasproperties=[]
653
- if(this.$refs.paged.$refs.cri.model !==null) {
654
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
655
-
656
- console.log("查看客户类型是什么",this.$refs.paged.$refs.cri.model.f_user_type[0])
657
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
658
- // this.gasproperties.push({label: '全部', value: ''})
659
- }
660
- else{
661
- this.gasproperties =[{label: '全部', value: ''}]
662
- }
663
- },
664
- initParams() {
665
- // 初始化气表品牌
666
- let brandArr = []
667
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
668
- let temp = {}
669
- temp.label = item.label
670
- temp.value = item.value.f_meter_brand
671
- brandArr.push(temp)
672
- })
673
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
674
- //初始化气表价格
675
- this.prices = this.$MagGetSaleParam.getPrices();
676
- },
677
- selfSearch(args) {
678
- console.log('开始时间',this.$refs.paged.$refs.cri.model.startDate)
679
- if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === ''){
680
- this.$refs.paged.$refs.cri.model.startDate='2010-01-01 00:00:00'
681
- this.$refs.paged.$refs.cri.model.endDate=new Date()
682
- }
683
- //小区查询条件
684
- let f_orgstr = this.orgCondtionStr
685
- args.condition = `${args.condition} ` + f_orgstr
686
- this.model.search(args.condition, args.model)
687
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
688
- },
689
- clear() {
690
- //清空部门和人员
691
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
692
- //部门和人员变为全选
693
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
694
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
695
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
696
- this.$refs.paged.$refs.cri.model[key] = []
697
- })
698
-
699
- },
700
- dealmsg(val) {
701
- val.model = this.model.model
702
- this.$dispatch('deal-msg', val)
703
- },
704
- show() {
705
- this.criteriaShow = true
706
- },
707
- hidden() {
708
- this.criteriaShow = !this.criteriaShow
709
- },
710
- async getRes(condition,obj) {
711
- this.orgCondtionStr = condition
712
- this.orgname = obj.orgnames[0]
713
- this.depname = obj.depnames[0]
714
-
715
- },
716
- async updateParams() {
717
- await this.$MagLoadParams.loadParam(this.f_filialeid)
718
- this.inputtores = [];
719
- this.inputtores.push({label: "全部", value: ""})
720
- if(this.allorgid!=null){
721
- this.allorgid.forEach((res)=>{
722
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
723
- })
724
- }
725
- this.initParams()
726
- },
727
- },
728
- events:{
729
- 'getidcard'(IdCard){
730
- this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
731
- }
732
- },
733
- watch: {
734
- 'model'(val) {
735
- },
736
- async 'orgCondtionStr'(val) {
737
- this.meterbooks = [{label: '全部',value: ''}];
738
- if(this.lastorgstr != val){
739
- this.tempfalg = true;
740
- this.lastorgstr = val;
741
- }
742
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
743
- this.tempfalg = false;
744
- let a = val.substring(val.indexOf("(")+2)
745
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
746
- }
747
- let res = val.match(/'(.*?)'/)
748
- if (res) {
749
- this.f_filialeid = res[1]
750
- if(res.input !=null){
751
- let resorgid = res.input.substring(res.input.indexOf("'"));
752
- if(resorgid!= null && resorgid!=''){
753
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
754
- // resorgid = resorgid.replaceAll("'","");
755
- resorgid = resorgid.replace(/'/g,"");
756
- this.allorgid = resorgid.split(",")
757
- }
758
- }
759
- this.updateParams()
760
- }
761
- },
762
- sumsmodel:{
763
- handler: function(val) {
764
- this.getotherfooter();
765
- },
766
- deep: true
767
- }
768
- },
769
- computed: {
770
- pricetypes() {
771
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
772
- },
773
-
774
- getPricenames() {
775
- let f_user_type = this.$refs.paged.model.model.f_user_type;
776
- let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
777
- let pricetype = this.$refs.paged.model.model.pricetype;
778
- if(this.$refs.paged.model.model !==null) {
779
- let rs = []
780
- let priceArr = []
781
- if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
782
- let params = {
783
- f_user_type: f_user_type[0],
784
- f_gasproperties: f_gasproperties[0],
785
- f_price_type: pricetype[0],
786
- filter: this.f_filialeid,
787
- prices: this.prices
788
- }
789
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
790
- let temp = {}
791
- temp.label = item.label
792
- temp.value = item.value.f_price_name
793
- priceArr.push(temp)
794
- })
795
- rs = [{label: '全部', value: ''}, ...priceArr]
796
- }
797
- if (rs.length === 0) {
798
- this.$refs.paged.model.model.f_price_name = ''
799
- }
800
- return rs
801
- }
802
- },
803
- getCondition() {
804
- return {
805
- startDate: this.$refs.paged.$refs.cri.model.startDate,
806
- endDate: this.$refs.paged.$refs.cri.model.endDate,
807
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
808
- },
809
- getfield() {
810
- return exportConfig.arrearsConfig
811
- },
812
- usertypes() {
813
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
814
- },
815
- metertypes() {
816
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
817
- },
818
- chargetype() {
819
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
820
- }
821
- }
822
- }
823
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
10
+
11
+ <div class="span" style="float:right;">
12
+ <button class="button_search button_spacing" @click="search()">查询</button>
13
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
14
+
15
+ <export-excel :data="$parent.$parent.getCondition"
16
+ :field="$parent.$parent.getfield"
17
+ :footer="$parent.$parent.footer"
18
+ :header="$parent.$parent.other"
19
+ sqlurl="rs/logic/exportfile"
20
+ sql-name="arrearsQuery"
21
+ template-name='用户欠费查询导出'
22
+ :choose-col="true"></export-excel>
23
+
24
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
25
+ :defaultfield="$parent.$parent.defaultfield"
26
+ titletable="用户欠费查询导出"
27
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
28
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
29
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
30
+
31
+ </div>
32
+ </div>
33
+
34
+ <div class="row" v-show="$parent.$parent.criteriaShow">
35
+ <div class="col-sm-2 form-group">
36
+
37
+ <label for="startDate" class="font_normal_body">开始日期</label>
38
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
39
+ v-model="model.startDate"
40
+ :value.sync="model.startDate"
41
+ :format="'yyyy-MM-dd HH:mm:ss'"
42
+ :show-reset-button="true"
43
+ >
44
+ </datepicker>
45
+ </div>
46
+ <div class="col-sm-2 form-group">
47
+ <label for="endDate" class="font_normal_body">结束日期</label>
48
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
49
+ v-model="model.endDate"
50
+ :value.sync="model.endDate"
51
+ :format="'yyyy-MM-dd HH:mm:ss'"
52
+ :show-reset-button="true"
53
+ >
54
+ </datepicker>
55
+ </div>
56
+ <div class="col-sm-2 form-group">
57
+
58
+ <label for="inputstartDate" class="font_normal_body">抄表日期</label>
59
+ <datepicker id="inputstartDate" placeholder="开始日期" style="width:60%"
60
+ v-model="model.inputstartDate"
61
+ :value.sync="model.inputstartDate"
62
+ :format="'yyyy-MM-dd 00:00:00'"
63
+ :show-reset-button="true"
64
+ condition="f_input_date >= '{}'"
65
+ >
66
+ </datepicker>
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label for="inputendDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
70
+ <datepicker id="inputendDate" placeholder="结束日期" style="width:60%"
71
+ v-model="model.inputendDate"
72
+ :value.sync="model.inputendDate"
73
+ :format="'yyyy-MM-dd 23:59:59'"
74
+ :show-reset-button="true"
75
+ condition="f_input_date <= '{}'"
76
+ >
77
+ </datepicker>
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">客户编号</label>
81
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
82
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
83
+ </div>
84
+ <div class="col-sm-2 form-group">
85
+ <label class="font_normal_body">客户名称</label>
86
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
87
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
88
+ </div>
89
+
90
+ <!--<div class="col-sm-2 form-group">-->
91
+ <!--<label class="font_normal_body">收费编号</label>-->
92
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.id"-->
93
+ <!--condition="id = '{}'" placeholder="收费编号">-->
94
+ <!--</div>-->
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">客户电话</label>
97
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
98
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
99
+ </div>
100
+ <!--<div class="col-sm-2 form-group">-->
101
+ <!--<label class="font_normal_body">身份证号</label>-->
102
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"-->
103
+ <!--condition="f_idnumber like '%{}%'" placeholder="身份证号">-->
104
+ <!--</div>-->
105
+ <div class="col-sm-2 form-group">
106
+ <label class="font_normal_body">客户地址</label>
107
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
108
+ condition="f_address like '%{}%'" placeholder='客户地址'>
109
+ </div>
110
+ <div class="col-sm-2 form-group">
111
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
112
+ <v-select :value.sync="model.f_residential_area"
113
+ class="select_list select"
114
+ enter-push
115
+ multiple
116
+ condition="f_residential_area in {}"
117
+ v-model="model.f_residential_area"
118
+ style="width: 60%"
119
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
120
+ close-on-select>
121
+
122
+ </v-select>
123
+ </div>
124
+ <div class="col-sm-2 form-group">
125
+ <label class="font_normal_body" >缴费类型</label>
126
+ <v-select :value.sync="model.f_payment" multiple
127
+ v-model="model.f_payment"
128
+ :options='$parent.$parent.dypayment' placeholder='请选择'
129
+ condition="f_cost_type in {}"
130
+ close-on-select></v-select>
131
+ </div>
132
+ <!--<div class="col-sm-2 form-group">-->
133
+ <!--<label class="font_normal_body" title="参数:付款方式查询">付款方式</label>-->
134
+ <!--<v-select :value.sync="model.f_payment" multiple-->
135
+ <!--v-model="model.f_payment"-->
136
+ <!--:options='$parent.$parent.payment' placeholder='请选择'-->
137
+ <!--condition="f_payment in {}"-->
138
+ <!--close-on-select></v-select>-->
139
+ <!--</div>-->
140
+ <!--<div class="col-sm-2 form-group">-->
141
+ <!--<label class="font_normal_body">收费类型</label>-->
142
+ <!--&lt;!&ndash; <v-select :value.sync="model.f_type"-->
143
+ <!--v-model="model.f_type"-->
144
+ <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
145
+ <!--condition="f_type = '{}'"-->
146
+ <!--close-on-select></v-select>&ndash;&gt;-->
147
+ <!--<v-select :value.sync="model.f_type" multiple-->
148
+ <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
149
+ <!--close-on-select clear-button-->
150
+ <!--condition="f_type in {}"-->
151
+ <!--v-model="model.f_type"></v-select>-->
152
+ <!--</div>-->
153
+ <div class="col-sm-2 form-group">
154
+ <label class="font_normal_body">客户类型</label>
155
+ <v-select :value.sync="model.f_user_type"
156
+ @change="$parent.$parent.userTypeChange()"
157
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
158
+ condition="f_user_type = '{}'"
159
+ close-on-select></v-select>
160
+ </div>
161
+ <div class="col-sm-2 form-group">
162
+ <label class="font_normal_body">用气性质</label>
163
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
164
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
165
+ condition="f_gasproperties = '{}'"
166
+ close-on-select></v-select>
167
+ </div>
168
+ <div class="col-sm-2 form-group">
169
+ <label class="font_normal_body">气价类型</label>
170
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
171
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
172
+ close-on-select v-ref:type>
173
+ </v-select>
174
+ </div>
175
+ <div class="col-sm-2 form-group">
176
+ <label class="font_normal_body">气价名称</label>
177
+ <v-select :value.sync="model.f_price_name"
178
+ v-model="model.f_price_name"
179
+ :options="$parent.$parent.getPricenames"
180
+ condition="f_price_name = '{}'"
181
+ close-on-select></v-select>
182
+ </div>
183
+ <div class="col-sm-2 form-group">
184
+ <label class="font_normal_body" title="欠费气量大于">欠费气量</label>
185
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtamount"
186
+ condition="f_oughtamount > '{}'" placeholder="欠费气量大于">
187
+ </div>
188
+ <div class="col-sm-2 form-group">
189
+ <label class="font_normal_body" title="气费金额大于">气费金额</label>
190
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtfee_new"
191
+ condition="f_oughtfee_new > '{}'" placeholder="气费金额大于">
192
+ </div>
193
+ <div class="col-sm-2 form-group">
194
+ <label class="font_normal_body" title="欠费金额大于">欠费金额</label>
195
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtfee_all"
196
+ condition="f_oughtfee_all > '{}'" placeholder="欠费金额大于">
197
+ </div>
198
+ <div class="col-sm-2 form-group">
199
+ <label class="font_normal_body">欠费期数</label>
200
+ <input type="text" style="width:60%" class="input_search" v-model="model.c"
201
+ condition="c > '{}'" placeholder='欠费期数大于'>
202
+ </div>
203
+ <div class="col-sm-2 form-group">
204
+ <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
205
+ <v-select :value.sync="model.f_inputtor"
206
+ v-model="model.f_inputtor"
207
+ :options='$parent.$parent.inputtores' placeholder='请选择'
208
+ condition="f_inputtor = '{}'"
209
+ @change="$parent.$parent.inputtorchange"
210
+ close-on-select :value-single="true" :search="false">
211
+ </v-select>
212
+ </div>
213
+ <div class="col-sm-2 form-group">
214
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
215
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
216
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
217
+ style="width:60%"
218
+ close-on-select
219
+ condition="f_meter_book_num = '{}'"></v-select>
220
+ </div>
221
+ <!--<div class="col-sm-2 form-group">-->
222
+ <!--<label class="font_normal_body">气价类型</label>-->
223
+ <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
224
+ <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
225
+ <!--close-on-select v-ref:type>-->
226
+ <!--</v-select>-->
227
+ <!--</div>-->
228
+ <!--<div class="col-sm-2 form-group">-->
229
+ <!--<label class="font_normal_body">气价名称</label>-->
230
+ <!--<v-select :value.sync="model.f_price_name"-->
231
+ <!--v-model="model.f_price_name"-->
232
+ <!--:options="$parent.$parent.getPricenames"-->
233
+ <!--condition="f_price_name = '{}'"-->
234
+ <!--close-on-select></v-select>-->
235
+ <!--</div>-->
236
+ <!--<div class="col-sm-2 form-group">-->
237
+ <!--<label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>-->
238
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"-->
239
+ <!--condition="f_user_id = '{}'" placeholder='表编号'>-->
240
+ <!--</div>-->
241
+ </div>
242
+ </div>
243
+ </criteria>
244
+
245
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
246
+ <template partial='head'>
247
+ <tr>
248
+ <th>
249
+ <nobr>序号</nobr>
250
+ </th>
251
+ <th>
252
+ <nobr>客户编号</nobr>
253
+ </th>
254
+ <th>
255
+ <nobr>客户姓名</nobr>
256
+ </th>
257
+ <th>
258
+ <nobr>小区名称</nobr>
259
+ </th>
260
+ <th>
261
+ <nobr>地址</nobr>
262
+ </th>
263
+ <th>
264
+ <nobr>客户电话</nobr>
265
+ </th>
266
+ <th>
267
+ <nobr>备用电话</nobr>
268
+ </th>
269
+
270
+
271
+ <th>
272
+ <nobr>欠费期数</nobr>
273
+ </th>
274
+ <th>
275
+ <nobr>欠费区间</nobr>
276
+ </th>
277
+ <th>
278
+ <nobr>上期抄表底数</nobr>
279
+ </th>
280
+ <th>
281
+ <nobr>本期抄表底数</nobr>
282
+ </th>
283
+ <th>
284
+ <nobr>用气量</nobr>
285
+ </th>
286
+ <th>
287
+ <nobr>用气金额</nobr>
288
+ </th>
289
+ <th>
290
+ <nobr>缴费时间</nobr>
291
+ </th>
292
+ <th>
293
+ <nobr>已交金额</nobr>
294
+ </th>
295
+ <!--<th>-->
296
+ <!--<nobr>回收率</nobr>-->
297
+ <!--</th>-->
298
+ <th>
299
+ <nobr>应交气费</nobr>
300
+ </th>
301
+ <th>
302
+ <nobr>滞纳金</nobr>
303
+ </th>
304
+ <th>
305
+ <nobr>附加费</nobr>
306
+ </th>
307
+ <th>
308
+ <nobr>上期余额</nobr>
309
+ </th>
310
+ <th>
311
+ <nobr>合计欠费</nobr>
312
+ </th>
313
+ <th>
314
+ <nobr>抄表员</nobr>
315
+ </th>
316
+ <th>
317
+ <nobr>抄表册</nobr>
318
+ </th>
319
+ <th>
320
+ <nobr>客户类型</nobr>
321
+ </th>
322
+ <th>
323
+ <nobr>缴费类型</nobr>
324
+ </th>
325
+ <th>
326
+ <nobr>用气性质</nobr>
327
+ </th>
328
+ <th>
329
+ <nobr>备&nbsp;&nbsp;&nbsp;&nbsp;注</nobr>
330
+ </th>
331
+ </tr>
332
+ </template>
333
+ <template partial='body'>
334
+ <td style="text-align:center">
335
+ <nobr>{{$index+1}}</nobr>
336
+ </td>
337
+ <td style="text-align: center;">
338
+ <nobr>{{row.f_userinfo_code}}</nobr>
339
+ </td>
340
+ <td style="text-align: center;">
341
+ <nobr>{{row.f_user_name}}</nobr>
342
+ </td>
343
+ <td style="text-align: center;">
344
+ <nobr>{{row.f_residential_area}}</nobr>
345
+ </td>
346
+ <td style="text-align: center;">
347
+ <nobr>{{row.f_address}}</nobr>
348
+ </td>
349
+ <td style="text-align: center;">
350
+ <nobr>{{row.f_user_phone}}</nobr>
351
+ </td>
352
+ <td style="text-align: center;">
353
+ <nobr>{{row.f_rent_phone}}</nobr>
354
+ </td>
355
+
356
+ <td style="text-align: center;">
357
+ <nobr>{{row.c}}</nobr>
358
+ </td>
359
+ <td style="text-align: center;">
360
+ <nobr>{{row.f_hand_date}}</nobr>
361
+ </td>
362
+ <td style="text-align: center;">
363
+ <nobr>{{row.f_last_tablebase}}</nobr>
364
+ </td>
365
+ <td style="text-align: center;">
366
+ <nobr>{{row.f_tablebase}}</nobr>
367
+ </td>
368
+ <td style="text-align: center;">
369
+ <nobr>{{row.f_oughtamount}}</nobr>
370
+ </td>
371
+ <td style="text-align: center;">
372
+ <nobr>{{row.f_oughtfee}}</nobr>
373
+ </td>
374
+ <td style="text-align: center;">
375
+ <nobr>{{row.f_operate_date}}</nobr>
376
+ </td>
377
+ <td style="text-align: center;">
378
+ <nobr>{{row.f_debt_money}}</nobr>
379
+ </td>
380
+ <!--<td style="text-align: center;">-->
381
+ <!--<nobr>{{row.f_hand_bv}}</nobr>-->
382
+ <!--</td>-->
383
+ <td style="text-align: center;">
384
+ <nobr>{{row.f_oughtfee_new}}</nobr>
385
+ </td>
386
+ <td style="text-align: center;">
387
+ <nobr>{{row.overdue}}</nobr>
388
+ </td>
389
+ <td style="text-align: center;">
390
+ <nobr>{{row.f_garbage_fee}}</nobr>
391
+ </td>
392
+ <td style="text-align: center;">
393
+ <nobr>{{row.f_balance}}</nobr>
394
+ </td>
395
+ <td style="text-align: center;">
396
+ <nobr>{{row.f_oughtfee_all}}</nobr>
397
+ </td>
398
+ <td style="text-align: center;">
399
+ <nobr>{{row.f_inputtor}}</nobr>
400
+ </td>
401
+ <td style="text-align: center;">
402
+ <nobr>{{row.f_book_name}}</nobr>
403
+ </td>
404
+ <td style="text-align: center;">
405
+ <nobr>{{row.f_user_type}}</nobr>
406
+ </td>
407
+ <td style="text-align: center;">
408
+ <nobr>{{row.f_gasproperties}}</nobr>
409
+ </td>
410
+ <td style="text-align: center;">
411
+ <nobr>{{row.f_cost_type}}</nobr>
412
+ </td>
413
+ <td style="text-align: center;">
414
+ <nobr>{{row.f_comments}}</nobr>
415
+ </td>
416
+ </template>
417
+ <template partial='foot'></template>
418
+ </data-grid>
419
+ </criteria-paged>
420
+ <table class="table-hover">
421
+ <tr style="position: relative" class="table-bordered">
422
+ <td
423
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
424
+ 汇总信息
425
+ </td>
426
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
427
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
428
+ </td>
429
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
430
+ 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
431
+ </td>
432
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
433
+ 已交金额合计:&emsp;{{sumsmodel.f_debt_money}}
434
+ </td>
435
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
436
+ 气费金额合计:&emsp;{{sumsmodel.f_oughtfee_new}}
437
+ </td>
438
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
439
+ 滞纳金合计:&emsp;{{sumsmodel.overdue}}
440
+ </td>
441
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
442
+ 附加费合计:&emsp;{{sumsmodel.f_garbage_fee}}
443
+ </td>
444
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
445
+ 上期余额合计:&emsp;{{sumsmodel.f_balance}}
446
+ </td>
447
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
448
+ 合计欠费:&emsp;{{sumsmodel.f_oughtfee_all}}
449
+ </td>
450
+ </tr>
451
+ </table>
452
+ </div>
453
+ <div v-if="show">
454
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
455
+ </div>
456
+ </div>
457
+ </div>
458
+ </template>
459
+
460
+ <script>
461
+ import {HttpResetClass, PagedList} from 'vue-client'
462
+ import exportConfig from './config/exportConfig'
463
+
464
+ let readySomething = async function (self) {
465
+ self.$MagGetSaleParam.initinputtor();
466
+ self.getinputtores();
467
+ //加载抄表册
468
+ self.initmeterbook();
469
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
470
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
471
+ // self.$refs.paged.$refs.cri.search()
472
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
473
+ await self.$MagLoadParams.loadParam()
474
+ self.initParams()
475
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
476
+ }
477
+ export default {
478
+ data() {
479
+ return {
480
+ config: {
481
+ defaultPrint: ['f_userinfo_code', 'f_address']
482
+ },
483
+ other:[],
484
+ footer:[],
485
+ //f_price_name:[],
486
+ gasproperties:[],
487
+ showinfo: false,
488
+ data: {},
489
+ show:false,
490
+ rowdata:{},
491
+ initres: {
492
+ org:[this.$login.f.orgid],
493
+ dep:[],
494
+ user:[]
495
+ },
496
+ model: new PagedList('rs/sql/arrearsQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
497
+ f_oughtamount: 0,
498
+ f_oughtfee: 0,
499
+ f_debt_money: 0,
500
+ f_oughtfee_new: 0,
501
+ overdue: 0,
502
+ f_garbage_fee: 0,
503
+ f_balance:0,
504
+ f_oughtfee_all: 0
505
+ }),
506
+ criteriaShow: false,
507
+ orgCondtionStr: '',
508
+ // 下拉框
509
+ meterbrands: [],
510
+ pricenames: [],
511
+ prices: [],
512
+ area: [],
513
+ //合计数据
514
+ defaultfield: [],
515
+ //小区
516
+ residentialArea: [],
517
+ sumsmodel: {},
518
+ f_filialeid: this.$login.f.f_orgid,
519
+ meterbooks:[{label: '全部',value: ''}], //抄表册
520
+ inputtores:[{label: '全部',value: ''}],
521
+ allorgid:[],
522
+ tempfalg :false,
523
+ lastorgstr:'',
524
+ dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
525
+ }
526
+ },
527
+ ready() {
528
+ this.getaddress()
529
+ readySomething(this).then(() => {
530
+ this.$emit('ready')
531
+ }).catch((error) => {
532
+ this.$emit('error', error)
533
+ })
534
+ },
535
+ methods: {
536
+ async inputtorchange(){
537
+ let val = this.$refs.paged.$refs.cri.model.f_inputtor;
538
+ if(val!=null && val !=""){
539
+ let param={
540
+ items:'*',
541
+ tablename:'t_meter_book',
542
+ condition:` 1=1 and f_inputtor = '${val}' and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `,
543
+ orderitem:'id'
544
+
545
+ }
546
+ let getMeterBooks = await this.$resetpost('rs/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
547
+ if (getMeterBooks.data) {
548
+ if(getMeterBooks.data.length >0){
549
+ let rs = [];
550
+ getMeterBooks.data.forEach((item)=>{
551
+ let temp = {
552
+ label:item.f_book_name,
553
+ value:item.id
554
+ };
555
+ rs.push(temp);
556
+
557
+ })
558
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
559
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[getMeterBooks.data[0].id]);
560
+ }else{
561
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
562
+ this.meterbooks = [{label: '全部',value: ''}];
563
+ }
564
+ }
565
+ }else{
566
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
567
+ this.meterbooks = [{label: '全部',value: ''}];
568
+ this.initmeterbook();
569
+ }
570
+ },
571
+ async initmeterbook(orgstr){
572
+ if(orgstr == null ){
573
+ orgstr = this.f_filialeid;
574
+ }
575
+ //获取新的抄表册,先去清理所有的抄表册
576
+ this.$GetSaleParam.meterbooks = [];
577
+ //开始加载新的抄表册
578
+ await this.$LoadParams.loadMeterBook(orgstr)
579
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
580
+ },
581
+ getinputtores () {
582
+ // 获取抄表员
583
+ let rs = []
584
+ if (this.$login.f.f_gasman.length > 0) {
585
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
586
+ let temp = {
587
+ label: this.$login.f.f_gasman[i].name,
588
+ value: this.$login.f.f_gasman[i].name
589
+ }
590
+ rs.push(temp)
591
+ }
592
+ }
593
+ return [{label: '全部', value: ''}, ...rs]
594
+ },
595
+ //加载抄表册
596
+ loadMeterBooks(){
597
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
598
+ },
599
+ getotherfooter(){
600
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
601
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
602
+ this.other=[];
603
+ this.footer=[];
604
+ let exportdata = this.getCondition;
605
+ let otherInData=[];
606
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
607
+ let footerData=[],exportfield=this.getfield;
608
+ footerData.push("合计");
609
+ let self =this;
610
+ for(var field in self.sumsmodel){
611
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
612
+ }
613
+ this.footer.push(footerData);
614
+ this.other.push(otherInData);
615
+ },
616
+ async getaddress(){
617
+ console.log('开始获取小区')
618
+ let HttpReset = new HttpResetClass()
619
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
620
+ data: {
621
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
622
+ }
623
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
624
+ console.log('小区',data)
625
+ let house = [{label: '全部', value: ''}]
626
+ for (let row of data.data){
627
+ console.log('开始保存小区')
628
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
629
+ }
630
+ this.residentialArea = house
631
+ },
632
+ //把数据库查询数据转换为下拉数据
633
+ calculate(rows){
634
+ let data = []
635
+ rows.forEach((row, n) => {
636
+ data[n] = {label: row.f_residential_area, value: row.id}
637
+ })
638
+ return data
639
+ },
640
+
641
+ search(){
642
+ this.$refs.paged.$refs.cri.search()
643
+ },
644
+ cancel() {
645
+ this.show = false
646
+ },
647
+ showmsg(obj){
648
+ this.rowdata=obj
649
+ this.show=true
650
+ },
651
+ userTypeChange () {
652
+ this.gasproperties=[]
653
+ if(this.$refs.paged.$refs.cri.model !==null) {
654
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
655
+
656
+ console.log("查看客户类型是什么",this.$refs.paged.$refs.cri.model.f_user_type[0])
657
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
658
+ // this.gasproperties.push({label: '全部', value: ''})
659
+ }
660
+ else{
661
+ this.gasproperties =[{label: '全部', value: ''}]
662
+ }
663
+ },
664
+ initParams() {
665
+ // 初始化气表品牌
666
+ let brandArr = []
667
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
668
+ let temp = {}
669
+ temp.label = item.label
670
+ temp.value = item.value.f_meter_brand
671
+ brandArr.push(temp)
672
+ })
673
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
674
+ //初始化气表价格
675
+ this.prices = this.$MagGetSaleParam.getPrices();
676
+ },
677
+ selfSearch(args) {
678
+ console.log('开始时间',this.$refs.paged.$refs.cri.model.startDate)
679
+ if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === ''){
680
+ this.$refs.paged.$refs.cri.model.startDate='2010-01-01 00:00:00'
681
+ this.$refs.paged.$refs.cri.model.endDate=new Date()
682
+ }
683
+ //小区查询条件
684
+ let f_orgstr = this.orgCondtionStr
685
+ args.condition = `${args.condition} ` + f_orgstr
686
+ this.model.search(args.condition, args.model)
687
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
688
+ },
689
+ clear() {
690
+ //清空部门和人员
691
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
692
+ //部门和人员变为全选
693
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
694
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
695
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
696
+ this.$refs.paged.$refs.cri.model[key] = []
697
+ })
698
+
699
+ },
700
+ dealmsg(val) {
701
+ val.model = this.model.model
702
+ this.$dispatch('deal-msg', val)
703
+ },
704
+ show() {
705
+ this.criteriaShow = true
706
+ },
707
+ hidden() {
708
+ this.criteriaShow = !this.criteriaShow
709
+ },
710
+ async getRes(condition,obj) {
711
+ this.orgCondtionStr = condition
712
+ this.orgname = obj.orgnames[0]
713
+ this.depname = obj.depnames[0]
714
+
715
+ },
716
+ async updateParams() {
717
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
718
+ this.inputtores = [];
719
+ this.inputtores.push({label: "全部", value: ""})
720
+ if(this.allorgid!=null){
721
+ this.allorgid.forEach((res)=>{
722
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
723
+ })
724
+ }
725
+ this.initParams()
726
+ },
727
+ },
728
+ events:{
729
+ 'getidcard'(IdCard){
730
+ this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
731
+ }
732
+ },
733
+ watch: {
734
+ 'model'(val) {
735
+ },
736
+ async 'orgCondtionStr'(val) {
737
+ this.meterbooks = [{label: '全部',value: ''}];
738
+ if(this.lastorgstr != val){
739
+ this.tempfalg = true;
740
+ this.lastorgstr = val;
741
+ }
742
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
743
+ this.tempfalg = false;
744
+ let a = val.substring(val.indexOf("(")+2)
745
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
746
+ }
747
+ let res = val.match(/'(.*?)'/)
748
+ if (res) {
749
+ this.f_filialeid = res[1]
750
+ if(res.input !=null){
751
+ let resorgid = res.input.substring(res.input.indexOf("'"));
752
+ if(resorgid!= null && resorgid!=''){
753
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
754
+ // resorgid = resorgid.replaceAll("'","");
755
+ resorgid = resorgid.replace(/'/g,"");
756
+ this.allorgid = resorgid.split(",")
757
+ }
758
+ }
759
+ this.updateParams()
760
+ }
761
+ },
762
+ sumsmodel:{
763
+ handler: function(val) {
764
+ this.getotherfooter();
765
+ },
766
+ deep: true
767
+ }
768
+ },
769
+ computed: {
770
+ pricetypes() {
771
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
772
+ },
773
+
774
+ getPricenames() {
775
+ let f_user_type = this.$refs.paged.model.model.f_user_type;
776
+ let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
777
+ let pricetype = this.$refs.paged.model.model.pricetype;
778
+ if(this.$refs.paged.model.model !==null) {
779
+ let rs = []
780
+ let priceArr = []
781
+ if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
782
+ let params = {
783
+ f_user_type: f_user_type[0],
784
+ f_gasproperties: f_gasproperties[0],
785
+ f_price_type: pricetype[0],
786
+ filter: this.f_filialeid,
787
+ prices: this.prices
788
+ }
789
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
790
+ let temp = {}
791
+ temp.label = item.label
792
+ temp.value = item.value.f_price_name
793
+ priceArr.push(temp)
794
+ })
795
+ rs = [{label: '全部', value: ''}, ...priceArr]
796
+ }
797
+ if (rs.length === 0) {
798
+ this.$refs.paged.model.model.f_price_name = ''
799
+ }
800
+ return rs
801
+ }
802
+ },
803
+ getCondition() {
804
+ return {
805
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
806
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
807
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
808
+ },
809
+ getfield() {
810
+ return exportConfig.arrearsConfig
811
+ },
812
+ usertypes() {
813
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
814
+ },
815
+ metertypes() {
816
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
817
+ },
818
+ chargetype() {
819
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
820
+ }
821
+ }
822
+ }
823
+ </script>