manage-client 3.2.53-aode → 3.2.54-aode

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/build/dev-server.js +6 -6
  2. package/client.iml +14 -14
  3. package/package.json +1 -1
  4. package/src/Util.js +383 -383
  5. package/src/components/MeterManage/MeterList.vue +336 -336
  6. package/src/components/WebReport/UserGasAll.vue +214 -214
  7. package/src/components/sale/businessquery/ChangeMeterQuery.vue +634 -627
  8. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  9. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  10. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  11. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  13. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  14. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  15. package/src/components/sale/businessquery/InspectListGas.vue +453 -453
  16. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  17. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  18. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  19. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  20. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  21. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  22. package/src/components/sale/config/exportConfig.js +1 -1
  23. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  35. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  36. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  37. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  38. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  39. package/src/components/sale/report/aode/iot/ReportQuery.vue +344 -344
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +408 -408
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +392 -392
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +530 -530
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +560 -560
  49. package/src/components/webmeter/DrillData/UserGasAll.vue +515 -515
  50. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +488 -488
  51. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  52. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  53. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  54. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  55. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  56. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  57. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  58. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  59. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  60. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  61. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  62. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  63. package/src/components/webmeter/newwebmeter/UserGasList.vue +293 -293
  64. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  65. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  66. package/src/components/webmeter/report/ReportList.vue +211 -211
  67. package/src/main.js +56 -56
  68. package/src/saleManage.js +256 -256
@@ -1,663 +1,663 @@
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.sync="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
10
- <div class="span" style="float:right;">
11
- <button class="button_search button_spacing" @click="search()">查询</button>
12
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
13
-
14
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
15
- :field="$parent.$parent.getfield"
16
- sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'
17
- :choose-col="true"></export-excel>
18
-
19
- <print-data :model="$parent.model" :field="$parent.$parent.getfield"
20
- :defaultfield="$parent.$parent.defaultfield" print-name="收费查询"
21
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
22
- <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>
23
-
24
- </div>
25
- </div>
26
-
27
- <div class="row" v-show="$parent.$parent.criteriaShow">
28
- <div class="col-sm-2 form-group">
29
- <label class="font_normal_body">客户编号</label>
30
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
31
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
32
- </div>
33
- <div class="col-sm-2 form-group">
34
- <label class="font_normal_body">客户名称</label>
35
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
36
- condition="f_user_name like '%{}%'" placeholder="客户名称">
37
- </div>
38
- <div class="col-sm-2 form-group">
39
- <label class="font_normal_body">收费编号</label>
40
- <input type="text" style="width:60%" class="input_search" v-model="model.id"
41
- condition="id = '{}'" placeholder="收费编号">
42
- </div>
43
- <div class="col-sm-2 form-group">
44
- <label class="font_normal_body">交易编号</label>
45
- <input type="text" style="width:60%" class="input_search" v-model="model.f_serial_id"
46
- condition="f_serial_id = '{}'" placeholder="交易号">
47
- </div>
48
- <div class="col-sm-2 form-group">
49
- <label for="startDate" class="font_normal_body">开始日期</label>
50
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
51
- v-model="model.startDate"
52
- :value.sync="model.startDate"
53
- :format="'yyyy-MM-dd HH:mm:ss'"
54
- :show-reset-button="true"
55
- condition="f_operate_date >= '{}'">
56
- </datepicker>
57
- </div>
58
- <div class="col-sm-2 form-group">
59
- <label for="endDate" class="font_normal_body">结束日期</label>
60
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
61
- v-model="model.endDate"
62
- :value.sync="model.endDate"
63
- :format="'yyyy-MM-dd HH:mm:ss'"
64
- :show-reset-button="true"
65
- condition="f_operate_date <= '{}'">
66
- </datepicker>
67
- </div>
68
-
69
- <div class="col-sm-2 form-group">
70
- <label class="font_normal_body">客户电话</label>
71
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
72
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
73
- </div>
74
- <div class="col-sm-2 form-group">
75
- <label class="font_normal_body">身份证号</label>
76
- <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
77
- condition="f_idnumber like '%{}%'" placeholder="身份证号">
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
81
- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
82
- condition="f_residential_area like '%{}%'" 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_address"
87
- condition="f_address like '%{}%'" placeholder='客户地址'>
88
- </div>
89
- <div class="col-sm-2 form-group">
90
- <label class="font_normal_body">付款方式</label>
91
- <v-select :value.sync="model.f_payment"
92
- v-model="model.f_payment"
93
- :options='$parent.$parent.payment' placeholder='请选择'
94
- condition="f_payment = '{}'"
95
- close-on-select></v-select>
96
- </div>
97
- <div class="col-sm-2 form-group">
98
- <label class="font_normal_body">收费类型</label>
99
- <v-select :value.sync="model.f_type"
100
- v-model="model.f_type"
101
- :options='$parent.$parent.chargetype' placeholder='请选择'
102
- condition="f_type = '{}'"
103
- close-on-select></v-select>
104
- </div>
105
- <div class="col-sm-2 form-group">
106
- <label class="font_normal_body">客户类型</label>
107
- <v-select :value.sync="model.f_user_type"
108
- @change="$parent.$parent.userTypeChange()"
109
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
110
- condition="f_user_type = '{}'"
111
- close-on-select></v-select>
112
- </div>
113
- <div class="col-sm-2 form-group">
114
- <label class="font_normal_body">用气性质</label>
115
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
116
- :options='$parent.$parent.gasproperties' placeholder='请选择'
117
- condition="f_gasproperties = '{}'"
118
- close-on-select></v-select>
119
- </div>
120
- <div class="col-sm-2 form-group">
121
- <label class="font_normal_body">气价类型</label>
122
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
123
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
124
- close-on-select v-ref:type>
125
- </v-select>
126
- </div>
127
- <div class="col-sm-2 form-group">
128
- <label class="font_normal_body">气价名称</label>
129
- <v-select :value.sync="model.f_price_name"
130
- v-model="model.f_price_name"
131
- :options="$parent.$parent.getPricenames"
132
- condition="f_price_name = '{}'"
133
- close-on-select></v-select>
134
- </div>
135
- <div class="col-sm-2 form-group">
136
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>
137
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"
138
- condition="f_user_id = '{}'" placeholder='表编号'>
139
- </div>
140
- <div class="col-sm-2 form-group">
141
- <label class="font_normal_body">气表类型</label>
142
- <v-select :value.sync="model.f_meter_type"
143
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
144
- condition="f_meter_type = '{}'"
145
- close-on-select></v-select>
146
- </div>
147
- <div class="col-sm-2 form-group">
148
- <label class="font_normal_body">气表品牌</label>
149
- <v-select :value.sync="model.f_meter_brand"
150
- v-model="model.f_meter_brand"
151
- :options='$parent.$parent.meterbrands' placeholder='请选择'
152
- condition="f_meter_brand = '{}'"
153
- close-on-select></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_table_state"-->
158
- <!-- v-model="model.f_table_state"-->
159
- <!-- :options='$parent.$parent.tablestate' placeholder='请选择'-->
160
- <!-- condition="f_table_state in {}"-->
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_state"
166
- v-model="model.f_state"
167
- :options='$parent.$parent.charge_state' placeholder='请选择'
168
- condition="f_state = '{}'"
169
- close-on-select></v-select>
170
- </div>
171
- <div class="col-sm-2">
172
- <label class="font_normal_body">壁&nbsp;&nbsp;挂&nbsp;炉</label>
173
- <v-select :value.sync="model.isbgl" v-model="model.isbgl"
174
- :options='$parent.$parent.bgl' placeholder='请选择'
175
- condition="isbgl = '{}'"
176
- close-on-select></v-select>
177
- </div>
178
- <div class="col-sm-2">
179
- <label class="font_normal_body">煤&nbsp;&nbsp;改&nbsp;气</label>
180
- <v-select :value.sync="model.f_is_mgq" v-model="model.f_is_mgq"
181
- :options='$parent.$parent.ismgq' placeholder='是否煤改气'
182
- condition="f_is_mgq = '{}'"
183
- close-on-select></v-select>
184
- </div>
185
- </div>
186
- </div>
187
- </criteria>
188
-
189
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
190
- <template partial='head'>
191
- <tr>
192
- <th>
193
- <nobr>收费编号</nobr>
194
- </th>
195
- <th>
196
- <nobr>订单号</nobr>
197
- </th>
198
- <th>
199
- <nobr>客户编号</nobr>
200
- </th>
201
- <th>
202
- <nobr>客户名称</nobr>
203
- </th>
204
- <th>
205
- <nobr>身份证号</nobr>
206
- </th>
207
- <th>
208
- <nobr>客户地址</nobr>
209
- </th>
210
- <th>
211
- <nobr>气价类型</nobr>
212
- </th>
213
-
214
- <th>
215
- <nobr>表号</nobr>
216
- </th>
217
- <th>
218
- <nobr>购气次数</nobr>
219
- </th>
220
- <th>
221
- <nobr >1单价</nobr>
222
- </th>
223
- <th>
224
- <nobr >1气量</nobr>
225
- </th>
226
- <th>
227
- <nobr >1气费</nobr>
228
- </th>
229
- <th>
230
- <nobr >2单价</nobr>
231
- </th>
232
- <th>
233
- <nobr >2气量</nobr>
234
- </th>
235
- <th>
236
- <nobr >2气费</nobr>
237
- </th>
238
- <th>
239
- <nobr >3单价</nobr>
240
- </th>
241
- <th>
242
- <nobr >3气量</nobr>
243
- </th>
244
- <th>
245
- <nobr >3气费</nobr>
246
- </th>
247
- <th>
248
- <nobr>气量</nobr>
249
- </th>
250
-
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
- <th>
270
- <nobr>本期结余</nobr>
271
- </th>
272
- <th>
273
- <nobr>付款方式</nobr>
274
- </th>
275
- <th>
276
- <nobr>收费类型</nobr>
277
- </th>
278
- <th>
279
- <nobr>状态</nobr>
280
- </th>
281
- <th>
282
- <nobr>收费日期</nobr>
283
- </th>
284
- <th>
285
- <nobr>备注</nobr>
286
- </th>
287
- <th>
288
- <nobr>补打次数</nobr>
289
- </th>
290
- <th>
291
- <nobr>是否壁挂炉</nobr>
292
- </th>
293
- <th>
294
- <nobr>是否煤改气</nobr>
295
- </th>
296
- <th>
297
- <nobr>人员</nobr>
298
- </th>
299
- <th>
300
- <nobr>部门</nobr>
301
- </th>
302
- <th>
303
- <nobr>公司</nobr>
304
- </th>
305
- </tr>
306
- </template>
307
- <template partial='body'>
308
- <td style="text-align: center;">
309
- <nobr>{{row.id}}</nobr>
310
- </td>
311
- <td style="text-align: center;">
312
- <nobr>{{row.f_serial_id}}</nobr>
313
- </td>
314
- <td style="text-align: center;"><nobr>
315
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
316
- </nobr> </td>
317
- <td style="text-align: center;">
318
- <nobr>{{row.f_user_name}}</nobr>
319
- </td>
320
- <td style="text-align: center;">
321
- <nobr>{{row.f_idnumber}}</nobr>
322
- </td>
323
- <td style="text-align: center;">
324
- <nobr>{{row.f_address}}</nobr>
325
- </td>
326
- <td style="text-align: center;">
327
- <nobr>{{row.f_price_type}}</nobr>
328
- </td>
329
- <td style="text-align: center;">
330
- <nobr>{{row.f_meternumber}}</nobr>
331
- </td>
332
- <td style="text-align: center;">
333
- <nobr>{{row.f_times}}</nobr>
334
- </td>
335
- <td style="text-align: center;" ><nobr>{{row.f_stair1price==null?0:row.f_stair1price}}</nobr></td>
336
- <td style="text-align: center;" ><nobr>{{row.f_stairamount1==null?0:row.f_stairamount1}}</nobr></td>
337
- <td style="text-align: center;" ><nobr>{{row.f_stair1fee==null?0:row.f_stair1fee}}</nobr></td>
338
- <td style="text-align: center;" ><nobr>{{row.f_stair2price==null?0:row.f_stair2price}}</nobr></td>
339
- <td style="text-align: center;" ><nobr>{{row.f_stair2amount==null?0:row.f_stair2amount}}</nobr></td>
340
- <td style="text-align: center;" ><nobr>{{row.f_stair2fee==null?0:row.f_stair2fee}}</nobr></td>
341
- <td style="text-align: center;" ><nobr>{{row.f_stair3price==null?0:row.f_stair3price}}</nobr></td>
342
- <td style="text-align: center;" ><nobr>{{row.f_stair3amount==null?0:row.f_stair3amount}}</nobr></td>
343
- <td style="text-align: center;" ><nobr>{{row.f_stair3fee==null?0:row.f_stair3fee}}</nobr></td>
344
- <td style="text-align: center;">
345
- <nobr>{{row.f_pregas}}</nobr>
346
- </td>
347
- <td style="text-align: center;">
348
- <nobr>{{row.f_preamount}}</nobr>
349
- </td>
350
- <td style="text-align: center;">
351
- <nobr>{{row.f_delaypay}}</nobr>
352
- </td>
353
- <td style="text-align: center;">
354
- <nobr>{{row.f_collection}}</nobr>
355
- </td>
356
- <td style="text-align: center;">
357
- <nobr>{{row.f_charge_money}}</nobr>
358
- </td>
359
- <td style="text-align: center;">
360
- <nobr>{{row.f_yucun}}</nobr>
361
- </td>
362
- <td style="text-align: center;">
363
- <nobr>{{row.f_balance}}</nobr>
364
- </td>
365
- <td style="text-align: center;">
366
- <nobr>{{row.f_curbalance}}</nobr>
367
- </td>
368
- <td style="text-align: center;">
369
- <nobr>{{row.f_payment}}</nobr>
370
- </td>
371
- <td style="text-align: center;">
372
- <nobr>{{row.f_type}}</nobr>
373
- </td>
374
- <td style="text-align: center;">
375
- <nobr>{{row.f_state}}</nobr>
376
- </td>
377
- <td style="text-align: center;">
378
- <nobr>{{row.f_operate_date}}</nobr>
379
- </td>
380
- <td style="text-align: center;">
381
- <nobr>{{row.f_comments}}</nobr>
382
- </td>
383
- <td style="text-align: center;">
384
- <nobr>{{row.filltimes}}</nobr>
385
- </td>
386
- <td style="text-align: center;">
387
- <nobr>{{row.isbgl}}</nobr>
388
- </td>
389
- <td style="text-align: center;">
390
- <nobr>{{row.f_is_mgq}}</nobr>
391
- </td>
392
- <td style="text-align: center;">
393
- <nobr>{{row.f_operator}}</nobr>
394
- </td>
395
- <td style="text-align: center;">
396
- <nobr>{{row.f_depname}}</nobr>
397
- </td>
398
- <td style="text-align: center;">
399
- <nobr>{{row.f_orgname}}</nobr>
400
- </td>
401
- </template>
402
- <template partial='foot'></template>
403
- </data-grid>
404
-
405
- </criteria-paged>
406
-
407
- <table class="table-hover">
408
- <tr style="position: relative" class="table-bordered">
409
- <td
410
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
411
- 汇总信息
412
- </td>
413
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
414
- 气量合计:&emsp;{{sumsmodel.f_pregas}}
415
- </td>
416
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
417
- 应交金额合计:&emsp;{{sumsmodel.f_preamount}}
418
- </td>
419
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
420
- 滞纳金合计:&emsp;{{sumsmodel.f_delaypay}}
421
- </td>
422
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
423
- 收款合计:&emsp;{{sumsmodel.f_collection}}
424
- </td>
425
- </tr>
426
- </table>
427
- </div>
428
- <div v-if="show">
429
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
430
- </div>
431
- </div>
432
- </div>
433
- </template>
434
-
435
- <script>
436
- import {PagedList} from 'vue-client'
437
- import exportConfig from '../config/exportConfig'
438
- import * as Util from '../../../Util'
439
- let readySomething = async function (self) {
440
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
441
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
442
- // self.$refs.paged.$refs.cri.search()
443
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
444
- await self.$MagLoadParams.loadParam()
445
- self.initParams()
446
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
447
- }
448
- export default {
449
- data() {
450
- return {
451
- config: {
452
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
453
- },
454
- //f_price_name:[],
455
- gasproperties:[],
456
- showinfo: false,
457
- data: {},
458
- show:false,
459
- rowdata:{},
460
- initres: {
461
- org:[this.$login.f.orgid],
462
- dep:[],
463
- user:[],
464
- },
465
- model: new PagedList('rs/sql/chargeQuery', 20, {}, {
466
- f_pregas: 0,
467
- f_preamount: 0,
468
- f_delaypay: 0,
469
- f_collection: 0
470
- }),
471
- criteriaShow: false,
472
- orgCondtionStr: '',
473
- // 下拉框
474
- meterbrands: [],
475
- pricenames: [],
476
- prices: [],
477
- //合计数据
478
- defaultfield: [],
479
- sumsmodel: {},
480
- f_filialeid: this.$login.f.f_orgid,
481
- selectfields:[]
482
- }
483
- },
484
- props:['selectorg'],
485
- ready() {
486
- if(this.selectorg != null && this.selectorg != null != ''){
487
- this.initres.org=[]
488
- this.initres.org.push(this.selectorg);
489
- }
490
- readySomething(this).then(() => {
491
- this.$emit('ready')
492
- }).catch((error) => {
493
- this.$emit('error', error)
494
- })
495
- for(var item in exportConfig.chargeConfig){
496
- this.selectfields.push(item)
497
- }
498
- },
499
- methods: {
500
- search(){
501
- this.$refs.paged.$refs.cri.search()
502
- },
503
- cancel() {
504
- this.show = false
505
- },
506
- showmsg(obj){
507
- this.rowdata=obj
508
- this.show=true
509
- },
510
- userTypeChange () {
511
- this.gasproperties=[]
512
- if(this.$refs.paged.$refs.cri.model !==null) {
513
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
514
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
515
- }
516
- // if(this.$refs.paged.$refs.cri.model ===null) {
517
- // this.$refs.paged.$refs.cri.model.f_gasproperties=''
518
- //
519
- // console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
520
- // this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
521
- // // this.gasproperties.push({label: '全部', value: ''})
522
- // }
523
- else{
524
- this.gasproperties =[{label: '全部', value: ''}]
525
- }
526
- },
527
- initParams() {
528
- // 初始化气表品牌
529
- let brandArr = []
530
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
531
- let temp = {}
532
- temp.label = item.label
533
- temp.value = item.value.f_meter_brand
534
- brandArr.push(temp)
535
- })
536
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
537
- //初始化气表价格
538
- this.prices = this.$MagGetSaleParam.getPrices();
539
- },
540
- selfSearch(args) {
541
- let f_orgstr = this.orgCondtionStr
542
- if(!this.$refs.paged.$refs.cri.model.startDate||!this.$refs.paged.$refs.cri.model.startDate)
543
- return this.$showMessage('请输入完整时间段')
544
- let day = Util.getDaysBetween(this.$refs.paged.$refs.cri.model.startDate,this.$refs.paged.$refs.cri.model.endDate )
545
- if(day>92)
546
- return this.$showMessage('时间间隔不得大于3个月')
547
- args.condition = `${args.condition} ` + f_orgstr
548
- this.model.search(args.condition, args.model)
549
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
550
- },
551
- clear() {
552
- //清空部门和人员
553
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
554
- //部门和人员变为全选
555
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
556
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
557
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
558
- this.$refs.paged.$refs.cri.model[key] = []
559
- })
560
-
561
- },
562
- dealmsg(val) {
563
- val.model = this.model.model
564
- this.$dispatch('deal-msg', val)
565
- },
566
- show() {
567
- this.criteriaShow = true
568
- },
569
- hidden() {
570
- this.criteriaShow = !this.criteriaShow
571
- },
572
- getRes(condition,obj) {
573
- this.orgCondtionStr = condition
574
- },
575
- async updateParams() {
576
- await this.$MagLoadParams.loadParam(this.f_filialeid)
577
- this.initParams()
578
- },
579
- },
580
- watch: {
581
- 'model'(val) {
582
- console.log(val, "12222222222222222222")
583
- },
584
- 'orgCondtionStr'(val) {
585
- let res = val.match(/'(.*?)'/)
586
- console.log('正则提取:',res && res[1])
587
- if (res) {
588
- this.selectorg = res[1]
589
- this.f_filialeid = res[1]
590
- this.updateParams()
591
- }
592
- }
593
- },
594
- computed: {
595
- getPricenames() {
596
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
597
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
598
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
599
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
600
- if(this.$refs.paged.$refs.cri.model !==null) {
601
- let rs = []
602
- let priceArr = []
603
- if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
604
- let params = {
605
- f_user_type: f_user_type[0],
606
- f_gasproperties: f_gasproperties[0],
607
- f_price_type: pricetype[0],
608
- filter: this.f_filialeid,
609
- prices: this.prices
610
- }
611
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
612
- let temp = {}
613
- temp.label = item.label
614
- temp.value = item.value.f_price_name
615
- priceArr.push(temp)
616
- })
617
- rs = [{label: '全部', value: ''}, ...priceArr]
618
- }
619
- if (rs.length === 0) {
620
- console.log('rs读出来是空')
621
- this.$refs.paged.$refs.cri.model.f_price_name = ''
622
- }
623
- return rs
624
- }
625
- },
626
- getCondition() {
627
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
628
- },
629
- getfield() {
630
- return exportConfig.chargeConfig
631
- },
632
- pricetypes() {
633
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
634
- },
635
-
636
- usertypes() {
637
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
638
- },
639
- metertypes() {
640
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
641
- },
642
-
643
- tablestate() {
644
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
645
- },
646
- chargetype() {
647
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
648
- },
649
- payment() {
650
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('付款方式')]
651
- },
652
- charge_state() {
653
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
654
- },
655
- bgl(){
656
- return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
657
- },
658
- ismgq(){
659
- return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
660
- }
661
- }
662
- }
663
- </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.sync="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
10
+ <div class="span" style="float:right;">
11
+ <button class="button_search button_spacing" @click="search()">查询</button>
12
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
13
+
14
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
15
+ :field="$parent.$parent.getfield"
16
+ sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'
17
+ :choose-col="true"></export-excel>
18
+
19
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield"
20
+ :defaultfield="$parent.$parent.defaultfield" print-name="收费查询"
21
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
22
+ <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>
23
+
24
+ </div>
25
+ </div>
26
+
27
+ <div class="row" v-show="$parent.$parent.criteriaShow">
28
+ <div class="col-sm-2 form-group">
29
+ <label class="font_normal_body">客户编号</label>
30
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
31
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
32
+ </div>
33
+ <div class="col-sm-2 form-group">
34
+ <label class="font_normal_body">客户名称</label>
35
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
36
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
37
+ </div>
38
+ <div class="col-sm-2 form-group">
39
+ <label class="font_normal_body">收费编号</label>
40
+ <input type="text" style="width:60%" class="input_search" v-model="model.id"
41
+ condition="id = '{}'" placeholder="收费编号">
42
+ </div>
43
+ <div class="col-sm-2 form-group">
44
+ <label class="font_normal_body">交易编号</label>
45
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_serial_id"
46
+ condition="f_serial_id = '{}'" placeholder="交易号">
47
+ </div>
48
+ <div class="col-sm-2 form-group">
49
+ <label for="startDate" class="font_normal_body">开始日期</label>
50
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
51
+ v-model="model.startDate"
52
+ :value.sync="model.startDate"
53
+ :format="'yyyy-MM-dd HH:mm:ss'"
54
+ :show-reset-button="true"
55
+ condition="f_operate_date >= '{}'">
56
+ </datepicker>
57
+ </div>
58
+ <div class="col-sm-2 form-group">
59
+ <label for="endDate" class="font_normal_body">结束日期</label>
60
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
61
+ v-model="model.endDate"
62
+ :value.sync="model.endDate"
63
+ :format="'yyyy-MM-dd HH:mm:ss'"
64
+ :show-reset-button="true"
65
+ condition="f_operate_date <= '{}'">
66
+ </datepicker>
67
+ </div>
68
+
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">客户电话</label>
71
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
72
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
73
+ </div>
74
+ <div class="col-sm-2 form-group">
75
+ <label class="font_normal_body">身份证号</label>
76
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
77
+ condition="f_idnumber like '%{}%'" placeholder="身份证号">
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
81
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
82
+ condition="f_residential_area like '%{}%'" 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_address"
87
+ condition="f_address like '%{}%'" placeholder='客户地址'>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body">付款方式</label>
91
+ <v-select :value.sync="model.f_payment"
92
+ v-model="model.f_payment"
93
+ :options='$parent.$parent.payment' placeholder='请选择'
94
+ condition="f_payment = '{}'"
95
+ close-on-select></v-select>
96
+ </div>
97
+ <div class="col-sm-2 form-group">
98
+ <label class="font_normal_body">收费类型</label>
99
+ <v-select :value.sync="model.f_type"
100
+ v-model="model.f_type"
101
+ :options='$parent.$parent.chargetype' placeholder='请选择'
102
+ condition="f_type = '{}'"
103
+ close-on-select></v-select>
104
+ </div>
105
+ <div class="col-sm-2 form-group">
106
+ <label class="font_normal_body">客户类型</label>
107
+ <v-select :value.sync="model.f_user_type"
108
+ @change="$parent.$parent.userTypeChange()"
109
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
110
+ condition="f_user_type = '{}'"
111
+ close-on-select></v-select>
112
+ </div>
113
+ <div class="col-sm-2 form-group">
114
+ <label class="font_normal_body">用气性质</label>
115
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
116
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
117
+ condition="f_gasproperties = '{}'"
118
+ close-on-select></v-select>
119
+ </div>
120
+ <div class="col-sm-2 form-group">
121
+ <label class="font_normal_body">气价类型</label>
122
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
123
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
124
+ close-on-select v-ref:type>
125
+ </v-select>
126
+ </div>
127
+ <div class="col-sm-2 form-group">
128
+ <label class="font_normal_body">气价名称</label>
129
+ <v-select :value.sync="model.f_price_name"
130
+ v-model="model.f_price_name"
131
+ :options="$parent.$parent.getPricenames"
132
+ condition="f_price_name = '{}'"
133
+ close-on-select></v-select>
134
+ </div>
135
+ <div class="col-sm-2 form-group">
136
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>
137
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"
138
+ condition="f_user_id = '{}'" placeholder='表编号'>
139
+ </div>
140
+ <div class="col-sm-2 form-group">
141
+ <label class="font_normal_body">气表类型</label>
142
+ <v-select :value.sync="model.f_meter_type"
143
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
144
+ condition="f_meter_type = '{}'"
145
+ close-on-select></v-select>
146
+ </div>
147
+ <div class="col-sm-2 form-group">
148
+ <label class="font_normal_body">气表品牌</label>
149
+ <v-select :value.sync="model.f_meter_brand"
150
+ v-model="model.f_meter_brand"
151
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
152
+ condition="f_meter_brand = '{}'"
153
+ close-on-select></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_table_state"-->
158
+ <!-- v-model="model.f_table_state"-->
159
+ <!-- :options='$parent.$parent.tablestate' placeholder='请选择'-->
160
+ <!-- condition="f_table_state in {}"-->
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_state"
166
+ v-model="model.f_state"
167
+ :options='$parent.$parent.charge_state' placeholder='请选择'
168
+ condition="f_state = '{}'"
169
+ close-on-select></v-select>
170
+ </div>
171
+ <div class="col-sm-2">
172
+ <label class="font_normal_body">壁&nbsp;&nbsp;挂&nbsp;炉</label>
173
+ <v-select :value.sync="model.isbgl" v-model="model.isbgl"
174
+ :options='$parent.$parent.bgl' placeholder='请选择'
175
+ condition="isbgl = '{}'"
176
+ close-on-select></v-select>
177
+ </div>
178
+ <div class="col-sm-2">
179
+ <label class="font_normal_body">煤&nbsp;&nbsp;改&nbsp;气</label>
180
+ <v-select :value.sync="model.f_is_mgq" v-model="model.f_is_mgq"
181
+ :options='$parent.$parent.ismgq' placeholder='是否煤改气'
182
+ condition="f_is_mgq = '{}'"
183
+ close-on-select></v-select>
184
+ </div>
185
+ </div>
186
+ </div>
187
+ </criteria>
188
+
189
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
190
+ <template partial='head'>
191
+ <tr>
192
+ <th>
193
+ <nobr>收费编号</nobr>
194
+ </th>
195
+ <th>
196
+ <nobr>订单号</nobr>
197
+ </th>
198
+ <th>
199
+ <nobr>客户编号</nobr>
200
+ </th>
201
+ <th>
202
+ <nobr>客户名称</nobr>
203
+ </th>
204
+ <th>
205
+ <nobr>身份证号</nobr>
206
+ </th>
207
+ <th>
208
+ <nobr>客户地址</nobr>
209
+ </th>
210
+ <th>
211
+ <nobr>气价类型</nobr>
212
+ </th>
213
+
214
+ <th>
215
+ <nobr>表号</nobr>
216
+ </th>
217
+ <th>
218
+ <nobr>购气次数</nobr>
219
+ </th>
220
+ <th>
221
+ <nobr >1单价</nobr>
222
+ </th>
223
+ <th>
224
+ <nobr >1气量</nobr>
225
+ </th>
226
+ <th>
227
+ <nobr >1气费</nobr>
228
+ </th>
229
+ <th>
230
+ <nobr >2单价</nobr>
231
+ </th>
232
+ <th>
233
+ <nobr >2气量</nobr>
234
+ </th>
235
+ <th>
236
+ <nobr >2气费</nobr>
237
+ </th>
238
+ <th>
239
+ <nobr >3单价</nobr>
240
+ </th>
241
+ <th>
242
+ <nobr >3气量</nobr>
243
+ </th>
244
+ <th>
245
+ <nobr >3气费</nobr>
246
+ </th>
247
+ <th>
248
+ <nobr>气量</nobr>
249
+ </th>
250
+
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
+ <th>
270
+ <nobr>本期结余</nobr>
271
+ </th>
272
+ <th>
273
+ <nobr>付款方式</nobr>
274
+ </th>
275
+ <th>
276
+ <nobr>收费类型</nobr>
277
+ </th>
278
+ <th>
279
+ <nobr>状态</nobr>
280
+ </th>
281
+ <th>
282
+ <nobr>收费日期</nobr>
283
+ </th>
284
+ <th>
285
+ <nobr>备注</nobr>
286
+ </th>
287
+ <th>
288
+ <nobr>补打次数</nobr>
289
+ </th>
290
+ <th>
291
+ <nobr>是否壁挂炉</nobr>
292
+ </th>
293
+ <th>
294
+ <nobr>是否煤改气</nobr>
295
+ </th>
296
+ <th>
297
+ <nobr>人员</nobr>
298
+ </th>
299
+ <th>
300
+ <nobr>部门</nobr>
301
+ </th>
302
+ <th>
303
+ <nobr>公司</nobr>
304
+ </th>
305
+ </tr>
306
+ </template>
307
+ <template partial='body'>
308
+ <td style="text-align: center;">
309
+ <nobr>{{row.id}}</nobr>
310
+ </td>
311
+ <td style="text-align: center;">
312
+ <nobr>{{row.f_serial_id}}</nobr>
313
+ </td>
314
+ <td style="text-align: center;"><nobr>
315
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
316
+ </nobr> </td>
317
+ <td style="text-align: center;">
318
+ <nobr>{{row.f_user_name}}</nobr>
319
+ </td>
320
+ <td style="text-align: center;">
321
+ <nobr>{{row.f_idnumber}}</nobr>
322
+ </td>
323
+ <td style="text-align: center;">
324
+ <nobr>{{row.f_address}}</nobr>
325
+ </td>
326
+ <td style="text-align: center;">
327
+ <nobr>{{row.f_price_type}}</nobr>
328
+ </td>
329
+ <td style="text-align: center;">
330
+ <nobr>{{row.f_meternumber}}</nobr>
331
+ </td>
332
+ <td style="text-align: center;">
333
+ <nobr>{{row.f_times}}</nobr>
334
+ </td>
335
+ <td style="text-align: center;" ><nobr>{{row.f_stair1price==null?0:row.f_stair1price}}</nobr></td>
336
+ <td style="text-align: center;" ><nobr>{{row.f_stairamount1==null?0:row.f_stairamount1}}</nobr></td>
337
+ <td style="text-align: center;" ><nobr>{{row.f_stair1fee==null?0:row.f_stair1fee}}</nobr></td>
338
+ <td style="text-align: center;" ><nobr>{{row.f_stair2price==null?0:row.f_stair2price}}</nobr></td>
339
+ <td style="text-align: center;" ><nobr>{{row.f_stair2amount==null?0:row.f_stair2amount}}</nobr></td>
340
+ <td style="text-align: center;" ><nobr>{{row.f_stair2fee==null?0:row.f_stair2fee}}</nobr></td>
341
+ <td style="text-align: center;" ><nobr>{{row.f_stair3price==null?0:row.f_stair3price}}</nobr></td>
342
+ <td style="text-align: center;" ><nobr>{{row.f_stair3amount==null?0:row.f_stair3amount}}</nobr></td>
343
+ <td style="text-align: center;" ><nobr>{{row.f_stair3fee==null?0:row.f_stair3fee}}</nobr></td>
344
+ <td style="text-align: center;">
345
+ <nobr>{{row.f_pregas}}</nobr>
346
+ </td>
347
+ <td style="text-align: center;">
348
+ <nobr>{{row.f_preamount}}</nobr>
349
+ </td>
350
+ <td style="text-align: center;">
351
+ <nobr>{{row.f_delaypay}}</nobr>
352
+ </td>
353
+ <td style="text-align: center;">
354
+ <nobr>{{row.f_collection}}</nobr>
355
+ </td>
356
+ <td style="text-align: center;">
357
+ <nobr>{{row.f_charge_money}}</nobr>
358
+ </td>
359
+ <td style="text-align: center;">
360
+ <nobr>{{row.f_yucun}}</nobr>
361
+ </td>
362
+ <td style="text-align: center;">
363
+ <nobr>{{row.f_balance}}</nobr>
364
+ </td>
365
+ <td style="text-align: center;">
366
+ <nobr>{{row.f_curbalance}}</nobr>
367
+ </td>
368
+ <td style="text-align: center;">
369
+ <nobr>{{row.f_payment}}</nobr>
370
+ </td>
371
+ <td style="text-align: center;">
372
+ <nobr>{{row.f_type}}</nobr>
373
+ </td>
374
+ <td style="text-align: center;">
375
+ <nobr>{{row.f_state}}</nobr>
376
+ </td>
377
+ <td style="text-align: center;">
378
+ <nobr>{{row.f_operate_date}}</nobr>
379
+ </td>
380
+ <td style="text-align: center;">
381
+ <nobr>{{row.f_comments}}</nobr>
382
+ </td>
383
+ <td style="text-align: center;">
384
+ <nobr>{{row.filltimes}}</nobr>
385
+ </td>
386
+ <td style="text-align: center;">
387
+ <nobr>{{row.isbgl}}</nobr>
388
+ </td>
389
+ <td style="text-align: center;">
390
+ <nobr>{{row.f_is_mgq}}</nobr>
391
+ </td>
392
+ <td style="text-align: center;">
393
+ <nobr>{{row.f_operator}}</nobr>
394
+ </td>
395
+ <td style="text-align: center;">
396
+ <nobr>{{row.f_depname}}</nobr>
397
+ </td>
398
+ <td style="text-align: center;">
399
+ <nobr>{{row.f_orgname}}</nobr>
400
+ </td>
401
+ </template>
402
+ <template partial='foot'></template>
403
+ </data-grid>
404
+
405
+ </criteria-paged>
406
+
407
+ <table class="table-hover">
408
+ <tr style="position: relative" class="table-bordered">
409
+ <td
410
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
411
+ 汇总信息
412
+ </td>
413
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
414
+ 气量合计:&emsp;{{sumsmodel.f_pregas}}
415
+ </td>
416
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
417
+ 应交金额合计:&emsp;{{sumsmodel.f_preamount}}
418
+ </td>
419
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
420
+ 滞纳金合计:&emsp;{{sumsmodel.f_delaypay}}
421
+ </td>
422
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
423
+ 收款合计:&emsp;{{sumsmodel.f_collection}}
424
+ </td>
425
+ </tr>
426
+ </table>
427
+ </div>
428
+ <div v-if="show">
429
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
430
+ </div>
431
+ </div>
432
+ </div>
433
+ </template>
434
+
435
+ <script>
436
+ import {PagedList} from 'vue-client'
437
+ import exportConfig from '../config/exportConfig'
438
+ import * as Util from '../../../Util'
439
+ let readySomething = async function (self) {
440
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
441
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
442
+ // self.$refs.paged.$refs.cri.search()
443
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
444
+ await self.$MagLoadParams.loadParam()
445
+ self.initParams()
446
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
447
+ }
448
+ export default {
449
+ data() {
450
+ return {
451
+ config: {
452
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
453
+ },
454
+ //f_price_name:[],
455
+ gasproperties:[],
456
+ showinfo: false,
457
+ data: {},
458
+ show:false,
459
+ rowdata:{},
460
+ initres: {
461
+ org:[this.$login.f.orgid],
462
+ dep:[],
463
+ user:[],
464
+ },
465
+ model: new PagedList('rs/sql/chargeQuery', 20, {}, {
466
+ f_pregas: 0,
467
+ f_preamount: 0,
468
+ f_delaypay: 0,
469
+ f_collection: 0
470
+ }),
471
+ criteriaShow: false,
472
+ orgCondtionStr: '',
473
+ // 下拉框
474
+ meterbrands: [],
475
+ pricenames: [],
476
+ prices: [],
477
+ //合计数据
478
+ defaultfield: [],
479
+ sumsmodel: {},
480
+ f_filialeid: this.$login.f.f_orgid,
481
+ selectfields:[]
482
+ }
483
+ },
484
+ props:['selectorg'],
485
+ ready() {
486
+ if(this.selectorg != null && this.selectorg != null != ''){
487
+ this.initres.org=[]
488
+ this.initres.org.push(this.selectorg);
489
+ }
490
+ readySomething(this).then(() => {
491
+ this.$emit('ready')
492
+ }).catch((error) => {
493
+ this.$emit('error', error)
494
+ })
495
+ for(var item in exportConfig.chargeConfig){
496
+ this.selectfields.push(item)
497
+ }
498
+ },
499
+ methods: {
500
+ search(){
501
+ this.$refs.paged.$refs.cri.search()
502
+ },
503
+ cancel() {
504
+ this.show = false
505
+ },
506
+ showmsg(obj){
507
+ this.rowdata=obj
508
+ this.show=true
509
+ },
510
+ userTypeChange () {
511
+ this.gasproperties=[]
512
+ if(this.$refs.paged.$refs.cri.model !==null) {
513
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
514
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
515
+ }
516
+ // if(this.$refs.paged.$refs.cri.model ===null) {
517
+ // this.$refs.paged.$refs.cri.model.f_gasproperties=''
518
+ //
519
+ // console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
520
+ // this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
521
+ // // this.gasproperties.push({label: '全部', value: ''})
522
+ // }
523
+ else{
524
+ this.gasproperties =[{label: '全部', value: ''}]
525
+ }
526
+ },
527
+ initParams() {
528
+ // 初始化气表品牌
529
+ let brandArr = []
530
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
531
+ let temp = {}
532
+ temp.label = item.label
533
+ temp.value = item.value.f_meter_brand
534
+ brandArr.push(temp)
535
+ })
536
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
537
+ //初始化气表价格
538
+ this.prices = this.$MagGetSaleParam.getPrices();
539
+ },
540
+ selfSearch(args) {
541
+ let f_orgstr = this.orgCondtionStr
542
+ if(!this.$refs.paged.$refs.cri.model.startDate||!this.$refs.paged.$refs.cri.model.startDate)
543
+ return this.$showMessage('请输入完整时间段')
544
+ let day = Util.getDaysBetween(this.$refs.paged.$refs.cri.model.startDate,this.$refs.paged.$refs.cri.model.endDate )
545
+ if(day>92)
546
+ return this.$showMessage('时间间隔不得大于3个月')
547
+ args.condition = `${args.condition} ` + f_orgstr
548
+ this.model.search(args.condition, args.model)
549
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
550
+ },
551
+ clear() {
552
+ //清空部门和人员
553
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
554
+ //部门和人员变为全选
555
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
556
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
557
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
558
+ this.$refs.paged.$refs.cri.model[key] = []
559
+ })
560
+
561
+ },
562
+ dealmsg(val) {
563
+ val.model = this.model.model
564
+ this.$dispatch('deal-msg', val)
565
+ },
566
+ show() {
567
+ this.criteriaShow = true
568
+ },
569
+ hidden() {
570
+ this.criteriaShow = !this.criteriaShow
571
+ },
572
+ getRes(condition,obj) {
573
+ this.orgCondtionStr = condition
574
+ },
575
+ async updateParams() {
576
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
577
+ this.initParams()
578
+ },
579
+ },
580
+ watch: {
581
+ 'model'(val) {
582
+ console.log(val, "12222222222222222222")
583
+ },
584
+ 'orgCondtionStr'(val) {
585
+ let res = val.match(/'(.*?)'/)
586
+ console.log('正则提取:',res && res[1])
587
+ if (res) {
588
+ this.selectorg = res[1]
589
+ this.f_filialeid = res[1]
590
+ this.updateParams()
591
+ }
592
+ }
593
+ },
594
+ computed: {
595
+ getPricenames() {
596
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
597
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
598
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
599
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
600
+ if(this.$refs.paged.$refs.cri.model !==null) {
601
+ let rs = []
602
+ let priceArr = []
603
+ if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
604
+ let params = {
605
+ f_user_type: f_user_type[0],
606
+ f_gasproperties: f_gasproperties[0],
607
+ f_price_type: pricetype[0],
608
+ filter: this.f_filialeid,
609
+ prices: this.prices
610
+ }
611
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
612
+ let temp = {}
613
+ temp.label = item.label
614
+ temp.value = item.value.f_price_name
615
+ priceArr.push(temp)
616
+ })
617
+ rs = [{label: '全部', value: ''}, ...priceArr]
618
+ }
619
+ if (rs.length === 0) {
620
+ console.log('rs读出来是空')
621
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
622
+ }
623
+ return rs
624
+ }
625
+ },
626
+ getCondition() {
627
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
628
+ },
629
+ getfield() {
630
+ return exportConfig.chargeConfig
631
+ },
632
+ pricetypes() {
633
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
634
+ },
635
+
636
+ usertypes() {
637
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
638
+ },
639
+ metertypes() {
640
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
641
+ },
642
+
643
+ tablestate() {
644
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
645
+ },
646
+ chargetype() {
647
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
648
+ },
649
+ payment() {
650
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('付款方式')]
651
+ },
652
+ charge_state() {
653
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
654
+ },
655
+ bgl(){
656
+ return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
657
+ },
658
+ ismgq(){
659
+ return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
660
+ }
661
+ }
662
+ }
663
+ </script>