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