manage-client 3.2.215 → 3.2.217

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 (31) hide show
  1. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  2. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  4. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  5. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  6. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  7. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  8. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  9. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  10. package/.gradle/7.1/gc.properties +0 -0
  11. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  12. package/build/dev-server.js +193 -191
  13. package/package.json +1 -1
  14. package/src/components/sale/filesquery/MeterQuery.vue +607 -627
  15. package/src/filiale/WEINAN/CancellationQuery.vue +526 -526
  16. package/src/filiale/WEINAN/ChargeQuery.vue +800 -800
  17. package/src/filiale/WEINAN/EnableQuery.vue +456 -456
  18. package/src/filiale/WEINAN/StatisticalAnalysis.vue +270 -0
  19. package/src/filiale/WEINAN/UserAddress.vue +655 -655
  20. package/src/filiale/WEINAN/UserAddressChange.vue +58 -58
  21. package/src/filiale/WEINAN/config/exportConfig.js +824 -824
  22. package/src/filiale/WEINAN/sale.js +54 -52
  23. package/src/filiale/jingwei/ChargeQuery.vue +10 -0
  24. package/src/filiale/wuhai/ChargeQuery.vue +2 -2
  25. package/src/filiale/wuhai/OtherChargeQuery.vue +5 -2
  26. package/src/filiale/wuhai/ReportList.vue +26 -2
  27. package/src/filiale/wuhai/config/DefaultPrint.js +6 -0
  28. package/src/filiale/wuhai/config/exportConfig.js +1090 -0
  29. package/src/filiale/wuhai/config/tableConfig.js +54 -0
  30. package/src/filiale/wuhai/webmeterManage.js +1 -1
  31. package/src/main.js +66 -66
@@ -1,800 +1,800 @@
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 @sort="sort">
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
- <div class="col-sm-2 form-group">
10
- <label for="startDate" class="font_normal_body">开始日期</label>
11
- <datepicker id="start_Date" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- condition="f_operate_date >= '{}'">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label for="endDate" class="font_normal_body">结束日期</label>
21
- <datepicker id="end_Date" placeholder="结束日期" style="width:60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- condition="f_operate_date <= '{}'">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group" v-show="false">
30
- <label class="font_normal_body">客户编号</label>
31
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
- </div>
34
- <div class="col-sm-2 form-group" v-show="false">
35
- <label class="font_normal_body">客户名称</label>
36
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
- condition="f_user_name like '%{}%'" placeholder="客户名称">
38
- </div>
39
-
40
- <div class="span" style="float:right;">
41
- <!--<read-idcard></read-idcard>-->
42
- <button class="button_search button_spacing" @click="search()">查询</button>
43
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
-
45
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
46
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
47
- :defaultselect="$parent.$parent.defaultexport"
48
- :chooserow="$parent.$parent.chooserow"
49
- sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'
50
- :choose-col="true">
51
- </export-excel>
52
-
53
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
54
- :defaultfield="$parent.$parent.defaultfield" print-name="收费查询"
55
- :chooserow="$parent.$parent.chooserow"
56
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
57
- <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>
58
-
59
- </div>
60
- </div>
61
- <div class="row" v-show="$parent.$parent.criteriaShow">
62
- <div v-if="!this.$login.r.includes('收费查询选择权限')">
63
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :show-component="$parent.$parent.showCom" v-ref:sel></res-select-group>
64
- <div class="col-sm-2 form-group">
65
- <label class="font_normal_body">客户类型</label>
66
- <v-select :value.sync="model.f_user_type"
67
- @change="$parent.$parent.userTypeChange()"
68
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
69
- condition="f_user_type = '{}'"
70
- close-on-select></v-select>
71
- </div>
72
- <div class="col-sm-2 form-group">
73
- <label class="font_normal_body">收费状态</label>
74
- <v-select :value.sync="model.f_state" multiple
75
- v-model="model.f_state"
76
- :options='$parent.$parent.charge_state' placeholder='请选择'
77
- condition="f_state in {}"
78
- close-on-select></v-select>
79
- </div>
80
- <div class="col-sm-2 form-group">
81
- <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
82
- <v-select :value.sync="model.f_payment" multiple
83
- v-model="model.f_payment"
84
- :options='$parent.$parent.payment' placeholder='请选择'
85
- condition="f_payment in {}"
86
- close-on-select></v-select>
87
- </div>
88
- </div>
89
- <div v-if="this.$login.r.includes('收费查询选择权限')">
90
- <res-select-group :show-component="$parent.$parent.resshow" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
91
- <div class="col-sm-2 form-group" v-show="false">
92
- <label class="font_normal_body">收费编号</label>
93
- <input type="text" style="width:60%" class="input_search" v-model="model.id"
94
- condition="id = '{}'" placeholder="收费编号">
95
- </div>
96
- <div class="col-sm-2 form-group" v-show="false">
97
- <label class="font_normal_body">客户电话</label>
98
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
99
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
100
- </div>
101
- <div class="col-sm-2 form-group" v-show="false">
102
- <label class="font_normal_body">身份证号</label>
103
- <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
104
- condition="f_idnumber like '%{}%'" placeholder="身份证号">
105
- </div>
106
- <div class="col-sm-2 form-group" v-show="false">
107
- <label class="font_normal_body">客户地址</label>
108
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
109
- condition="f_address like '%{}%'" placeholder='客户地址'>
110
- </div>
111
- <div class="col-sm-2 form-group">
112
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
113
- <v-select :value.sync="model.f_residential_area"
114
- class="select_list select"
115
- enter-push
116
- multiple = "true"
117
- v-model="model.f_residential_area"
118
- style="width: 60%"
119
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
120
- close-on-select>
121
-
122
- </v-select>
123
- </div>
124
- <div class="col-sm-2 form-group">
125
- <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
126
- <v-select :value.sync="model.f_payment" multiple
127
- v-model="model.f_payment"
128
- :options='$parent.$parent.payment' placeholder='请选择'
129
- condition="f_payment in {}"
130
- close-on-select></v-select>
131
- </div>
132
- <div class="col-sm-2 form-group">
133
- <label class="font_normal_body" title="参数:支付渠道查询">支付渠道</label>
134
- <v-select :value.sync="model.f_bank_type" multiple
135
- v-model="model.f_bank_type"
136
- :options='$parent.$parent.banktype' placeholder='请选择'
137
- condition="f_bank_type in {}"
138
- close-on-select></v-select>
139
- </div>
140
- <div class="col-sm-2 form-group">
141
- <label class="font_normal_body">收费类型</label>
142
- <!-- <v-select :value.sync="model.f_type"
143
- v-model="model.f_type"
144
- :options='$parent.$parent.chargetype' placeholder='请选择'
145
- condition="f_type = '{}'"
146
- close-on-select></v-select>-->
147
- <v-select :value.sync="model.f_type" multiple
148
- :options='$parent.$parent.chargetype' placeholder='请选择'
149
- close-on-select clear-button
150
- condition="f_type in {}"
151
- v-model="model.f_type"></v-select>
152
- </div>
153
- <div class="col-sm-2 form-group">
154
- <label class="font_normal_body">客户类型</label>
155
- <v-select :value.sync="model.f_user_type"
156
- @change="$parent.$parent.userTypeChange()"
157
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
158
- condition="f_user_type = '{}'"
159
- close-on-select></v-select>
160
- </div>
161
- <div class="col-sm-2 form-group">
162
- <label class="font_normal_body">用气性质</label>
163
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
164
- :options='$parent.$parent.gasproperties' placeholder='请选择'
165
- condition="f_gasproperties = '{}'"
166
- close-on-select></v-select>
167
- </div>
168
- <div class="col-sm-2 form-group">
169
- <label class="font_normal_body">气价类型</label>
170
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
171
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
172
- close-on-select v-ref:type>
173
- </v-select>
174
- </div>
175
- <div class="col-sm-2 form-group">
176
- <label class="font_normal_body">气价名称</label>
177
- <v-select :value.sync="model.f_price_name"
178
- v-model="model.f_price_name"
179
- :options="$parent.$parent.getPricenames"
180
- condition="f_price_name = '{}'"
181
- close-on-select></v-select>
182
- </div>
183
- <div class="col-sm-2 form-group">
184
- <label class="font_normal_body">客户编号</label>
185
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"
186
- condition="f_user_id = '{}'" placeholder='客户编号'>
187
- </div>
188
- <div class="col-sm-2 form-group">
189
- <label class="font_normal_body">气表类型</label>
190
- <v-select :value.sync="model.f_meter_type" multiple
191
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
192
- condition="f_meter_type in {}"
193
- close-on-select></v-select>
194
- </div>
195
- <div class="col-sm-2 form-group">
196
- <label class="font_normal_body">气表品牌</label>
197
- <v-select :value.sync="model.f_meter_brand" multiple
198
- v-model="model.f_meter_brand"
199
- :options='$parent.$parent.meterbrands' placeholder='请选择'
200
- condition="f_meter_brand in {}"
201
- close-on-select></v-select>
202
- </div>
203
-
204
- <div class="col-sm-2 form-group">
205
- <label class="font_normal_body">收费状态</label>
206
- <v-select :value.sync="model.f_state" multiple
207
- v-model="model.f_state"
208
- :options='$parent.$parent.charge_state' placeholder='请选择'
209
- condition="f_state in {}"
210
- close-on-select></v-select>
211
- </div>
212
- <!-- <div class="col-sm-2 form-group">-->
213
- <!-- <label class="font_normal_body">银行名称</label>-->
214
- <!-- <v-select :value.sync="model.f_bank_name"-->
215
- <!-- v-model="model.f_bank_name"-->
216
- <!-- :options='$parent.$parent.bank' placeholder='请选择'-->
217
- <!-- condition="f_bank_name = '{}'"-->
218
- <!-- close-on-select></v-select>-->
219
- <!-- </div>-->
220
- <!-- <div class="col-sm-2 form-group">-->
221
- <!-- <label class="font_normal_body">是否优惠</label>-->
222
- <!-- <v-select :value.sync="model.f_privilege_money"-->
223
- <!-- v-model="model.f_privilege_money"-->
224
- <!-- :options='$parent.$parent.privilege_money' placeholder='请选择'-->
225
- <!-- condition="f_privilege_money {}"-->
226
- <!-- close-on-select></v-select>-->
227
- <!-- </div>-->
228
- <!-- <div class="col-sm-2 form-group">-->
229
- <!-- <label class="font_normal_body">收&ensp;据&ensp;号</label>-->
230
- <!-- <input type="text" style="width:30%" class="input_search" title="大于等于"-->
231
- <!-- v-model="model.f_bill_number_big" condition="f_bill_number >= {}" placeholder='大于等于'>-->
232
- <!-- <input type="text" style="width:30%" class="input_search" title="小于等于"-->
233
- <!-- v-model="model.f_bill_number_small" condition="f_bill_number <= {}" placeholder='小于等于'>-->
234
- <!-- </div>-->
235
- <div class="col-sm-2 form-group" v-show="false">
236
- <label class="font_normal_body">发票号码</label>
237
- <input type="text" style="width:60%" class="input_search" v-model="model.f_invoice_num"
238
- condition="f_invoice_num = '{}'" placeholder='发票号码'>
239
- </div>
240
- <div class="col-sm-2 form-group" v-show="false">
241
- <label class="font_normal_body" title="发票类型查询">发票类型</label>
242
- <v-select :value.sync="model.f_invoice_type"
243
- v-model="model.f_invoice_type"
244
- :options='$parent.$parent.invoiceType' placeholder='请选择'
245
- condition="f_invoice_type = '{}'"
246
- close-on-select :value-single="true" :search="false">
247
- </v-select>
248
- </div>
249
- <div class="col-sm-2 form-group" v-show="false">
250
- <label class="font_normal_body">开&ensp;票&ensp;人</label>
251
- <input type="text" style="width:60%" class="input_search" v-model="model.f_invoiceuse_operator"
252
- condition="f_invoiceuse_operator like '%{}%'" placeholder='开票人'>
253
- </div>
254
- <div class="col-sm-2 form-group" v-show="false">
255
- <label for="startDate" class="font_normal_body">开票时间</label>
256
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
257
- v-model="model.invoice_startDate"
258
- :value.sync="model.invoice_startDate"
259
- :format="'yyyy-MM-dd'"
260
- :show-reset-button="true"
261
- condition="f_invoice_date >= '{}'">
262
- </datepicker>
263
- </div>
264
- <div class="col-sm-2 form-group" v-show="false">
265
- <label for="endDate" class="font_normal_body">开票时间</label>
266
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
267
- v-model="model.invoice_endDate"
268
- :value.sync="model.invoice_endDate"
269
- :format="'yyyy-MM-dd'"
270
- :show-reset-button="true"
271
- condition="f_invoice_date <= '{}'">
272
- </datepicker>
273
- </div>
274
- <div class="col-sm-2 form-group" v-show="false">
275
- <label for="endDate" class="font_normal_body">终端设备</label>
276
- <v-select :value.sync="model.equip"
277
- v-model="model.equip"
278
- :options='$parent.$parent.equip' placeholder='请选择'
279
- condition="f_terminal_num = '{}'"
280
- close-on-select :value-single="true" :search="false">
281
- </v-select>
282
- </div>
283
- </div>
284
- </div>
285
- </div>
286
- </criteria>
287
-
288
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
289
- <template partial='head'>
290
- <tr>
291
- <th>
292
- <data-order field="f_userinfo_code" name="用户编号"
293
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
294
- </th>
295
- <th>
296
- <nobr>用户名称</nobr>
297
- </th>
298
- <th>
299
- <nobr>用户表号</nobr>
300
- </th>
301
- <th>
302
- <nobr>用户卡号</nobr>
303
- </th>
304
- <th>
305
- <nobr>用户地址</nobr>
306
- </th>
307
- <th>
308
- <nobr>购气量</nobr>
309
- </th>
310
- <th>
311
- <nobr>缴费金额</nobr>
312
- </th>
313
- <th>
314
- <nobr>付款方式</nobr>
315
- </th>
316
- <th>
317
- <data-order field="f_operate_date" name="收费日期"
318
- :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
319
- </th>
320
- <th>
321
- <nobr>状态</nobr>
322
- </th>
323
- <th>
324
- <nobr>网点</nobr>
325
- </th>
326
- <th>
327
- <nobr>操作员</nobr>
328
- </th>
329
- <th>
330
- <nobr>阶一气量</nobr>
331
- </th>
332
- <th>
333
- <nobr>阶二气量</nobr>
334
- </th>
335
- <th>
336
- <nobr>阶三气量</nobr>
337
- </th>
338
- </tr>
339
- </template>
340
- <template partial='body'>
341
- <td style="text-align: center;"><nobr>
342
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
343
- </nobr> </td>
344
- <td style="text-align: center;">
345
- <nobr>{{row.f_user_name}}</nobr>
346
- </td>
347
- <td style="text-align: center;">
348
- <nobr>{{row.f_meternumber}}</nobr>
349
- </td>
350
- <td style="text-align: center;">
351
- <nobr>{{row.f_card_id}}</nobr>
352
- </td>
353
- <td style="text-align: center;">
354
- <nobr>{{row.f_address}}</nobr>
355
- </td>
356
- <td style="text-align: center;">
357
- <nobr>{{row.f_pregas.toFixed(0)}}</nobr>
358
- </td>
359
- <td style="text-align: center;">
360
- <nobr>{{row.f_collection}}</nobr>
361
- </td>
362
- <td style="text-align: center;">
363
- <nobr>{{row.f_payment}}</nobr>
364
- </td>
365
- <td style="text-align: center;">
366
- <nobr>{{row.f_operate_date}}</nobr>
367
- </td>
368
- <td style="text-align: center;">
369
- <nobr>{{row.f_state}}</nobr>
370
- </td>
371
- <td style="text-align: center;">
372
- <nobr> {{row.f_depname}}</nobr>
373
- </td>
374
- <td style="text-align: center;">
375
- <nobr>{{row.f_operator}}</nobr>
376
- </td>
377
- <td style="text-align: center;">
378
- <nobr>{{row.f_stairamount1}}</nobr>
379
- </td>
380
- <td style="text-align: center;">
381
- <nobr>{{row.f_stair2amount}}</nobr>
382
- </td>
383
- <td style="text-align: center;">
384
- <nobr>{{row.f_stair3amount}}</nobr>
385
- </td>
386
- </template>
387
- <template partial='foot'></template>
388
- </data-grid>
389
- </criteria-paged>
390
- <table class="table-hover">
391
- <tr style="position: relative" class="table-bordered">
392
- <td
393
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
394
- 汇总信息
395
- </td>
396
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
397
- 气量合计:&emsp;{{sumsmodel.f_pregas.toFixed(0)}}
398
- </td>
399
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
400
- 收费金额合计:&emsp;{{sumsmodel.f_collection}}
401
- </td>
402
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
403
- 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1.toFixed(0)}}
404
- </td>
405
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
406
- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
407
- </td>
408
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
409
- 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount.toFixed(0)}}
410
- </td>
411
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
412
- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
413
- </td>
414
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
415
- 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount.toFixed(0)}}
416
- </td>
417
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
418
- 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
419
- </td>
420
- </tr>
421
- </table>
422
- </div>
423
- <div v-if="show">
424
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
425
- </div>
426
- </div>
427
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
428
- <article slot="modal-body">
429
- <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="%收费" :isremark="false" style="width:auto" ></upload>
430
- </article>
431
- <footer slot="modal-footer" class="modal-footer">
432
- </footer>
433
- </modal>
434
- </div>
435
- </template>
436
-
437
- <script>
438
- import {HttpResetClass, PagedList} from 'vue-client'
439
- import exportConfig from './config/exportConfig'
440
-
441
- let readySomething = async function (self) {
442
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
443
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
444
- // self.$refs.paged.$refs.cri.search()
445
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
446
- await self.$MagLoadParams.loadParam()
447
- self.initParams()
448
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
449
- }
450
- export default {
451
- data() {
452
- return {
453
- resshow:['company','department','operator','slicearea'],
454
- other:[],
455
- footer:[],
456
- config: {
457
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_pregas', 'f_collection', 'f_stairamount1', 'f_stair2amount', 'f_stair3amount']
458
- },
459
- //排序
460
- orderitem:'f_userinfo_code',
461
- orderFields: {
462
- f_userinfo_id: 'no'
463
- },
464
- //f_price_name:[],
465
- gasproperties:[],
466
- showinfo: false,
467
- data: {},
468
- show:false,
469
- rowdata:{},
470
- showCom:['operator'],
471
- initres: {
472
- org:[this.$login.f.orgid],
473
- dep:[],
474
- user:[]
475
- },
476
- model: new PagedList('rs/sql/chargeQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code'`},{
477
- f_pregas: 0,
478
- f_preamount: 0,
479
- f_stairamount1: 0,
480
- f_stair1fee: 0,
481
- f_collection: 0,
482
- f_stair2amount: 0,
483
- f_stair2fee: 0,
484
- f_stair3amount: 0,
485
- f_stair3fee: 0
486
- }),
487
- criteriaShow: false,
488
- orgCondtionStr: '',
489
- // 下拉框
490
- meterbrands: [],
491
- pricenames: [],
492
- prices: [],
493
- area: [],
494
- //合计数据
495
- defaultfield: [],
496
- //小区
497
- residentialArea: [],
498
- sumsmodel: {},
499
- f_filialeid: this.$login.f.f_orgid,
500
- wxstate:[
501
- {label: '全部', value: ''},
502
- {label: '已退款', value: `= '3'`},
503
- {label: '未退款', value: `!= '3'`}
504
- ],
505
- privilege_money:[
506
- {label: '全部', value: ''},
507
- {label: '已优惠', value: '> 0'},
508
- {label: '未优惠', value: '= 0'}
509
- ],
510
- showupload:false,
511
- selected:{},
512
- equip:[]
513
- }
514
- },
515
- async ready() {
516
- await this.equipment()
517
- this.getaddress()
518
- console.log('this.$login.f:',this.$login.f)
519
- if(!this.$login.r.includes('收费查询选择权限')){
520
- this.initres.dep.push(this.$login.f.depids)
521
- this.initres.user.push(this.$login.f.id)
522
- // this.$refs.paged.$refs.cri.$refs.sel.$refs.
523
- }
524
- readySomething(this).then(() => {
525
- this.$emit('ready')
526
- }).catch((error) => {
527
- this.$emit('error', error)
528
- })
529
-
530
- },
531
- methods: {
532
-
533
- async equipment(){
534
- console.log('=========123123214124=============')
535
- let condition = `f_orgid = '${this.$login.f.orgid}'`
536
- let res = await this.$resetpost('rs/sql/getequipment', {data :{condition:condition}},{resolveMsg: null, rejectMsg: null})
537
- let array = []
538
- for(let row of res.data){
539
- array.push ({label: row.f_terminal_name,value : row.f_terminal_number})
540
- }
541
- this.equip = array
542
- },
543
- //显示附件
544
- view(row){
545
- this.showupload = true
546
- this.selected= row
547
- },
548
- getotherfooter () {
549
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
550
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
551
- this.other = [];
552
- this.footer = [];
553
- let exportdata = this.getCondition;
554
- let otherInData = [];
555
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
556
- let footerData = [], exportfield = this.getfield;
557
- footerData.push("合计");
558
- let self = this;
559
- for (var field in self.sumsmodel) {
560
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
561
- }
562
- this.footer.push(footerData);
563
- this.other.push(otherInData);
564
- },
565
- async getaddress(){
566
- let HttpReset = new HttpResetClass()
567
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
568
- data: {
569
- condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
570
- }
571
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
572
- console.log('小区',data)
573
- let house = [{label: '全部', value: ''}]
574
- for (let row of data.data){
575
- house.push({label: row.f_residential_area, value: row.f_residential_area})
576
- }
577
- this.residentialArea = house
578
- },
579
- //把数据库查询数据转换为下拉数据
580
- calculate(rows){
581
- let data = []
582
- rows.forEach((row, n) => {
583
- data[n] = {label: row.f_residential_area, value: row.id}
584
- })
585
- return data
586
- },
587
-
588
- search(){
589
- this.$refs.paged.$refs.cri.search()
590
- },
591
- cancel() {
592
- this.show = false
593
- },
594
- showmsg(obj){
595
- this.rowdata=obj
596
- this.show=true
597
- },
598
- userTypeChange () {
599
- this.gasproperties=[]
600
- if(this.$refs.paged.$refs.cri.model !==null) {
601
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
602
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
603
- }
604
- else{
605
- this.gasproperties =[{label: '全部', value: ''}]
606
- }
607
- },
608
- initParams() {
609
- // 初始化气表品牌
610
- let brandArr = []
611
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
612
- let temp = {}
613
- temp.label = item.label
614
- temp.value = item.value.f_meter_brand
615
- brandArr.push(temp)
616
- })
617
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
618
- //初始化气表价格
619
- this.prices = this.$MagGetSaleParam.getPrices();
620
- },
621
- selfSearch(args) {
622
- //小区查询条件
623
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
624
- if(this.area.length !== 0){
625
- let str = JSON.stringify(this.area)
626
- str = str.replace(/"/g,`'`)
627
- str = str.replace(/\[/g,``)
628
- str = str.replace(/\]/g,``)
629
- //查询多个小区时条件
630
- args.condition += ` and f_residential_area in ( ${str} )`
631
- }
632
- let f_orgstr = this.orgCondtionStr
633
- args.condition = `${args.condition} ` + f_orgstr
634
- this.model.search(args.condition, args.model)
635
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
636
-
637
- },
638
- clear() {
639
- //清空部门和人员
640
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
641
- //部门和人员变为全选
642
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
643
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
644
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
645
- this.$refs.paged.$refs.cri.model[key] = []
646
- })
647
-
648
- },
649
- dealmsg(val) {
650
- val.model = this.model.model
651
- this.$dispatch('deal-msg', val)
652
- },
653
- show() {
654
- this.criteriaShow = true
655
- },
656
- hidden() {
657
- this.criteriaShow = !this.criteriaShow
658
- },
659
- getRes(condition,obj) {
660
- this.orgCondtionStr = condition
661
- this.orgname = obj.orgnames[0]
662
- this.depname = obj.depnames[0]
663
- },
664
- async updateParams() {
665
- await this.$MagLoadParams.loadParam(this.f_filialeid)
666
- this.initParams()
667
- },
668
- sort (field, rule) {
669
- // 将所有排序方式设为不排序,实现相互排斥
670
- for (let key in this.orderFields) {
671
- if (key === field) {
672
- this.orderFields[key] = rule
673
- } else {
674
- this.orderFields[key] = 'no'
675
- }
676
- }
677
- // 如果新规则不排序,还原为默认排序
678
- if (rule === 'no') {
679
- this.model.paramSource.orderitem = `'${this.orderitem}'`
680
- } else {
681
- this.model.paramSource.orderitem = `'${field} ${rule}'`
682
- }
683
-
684
- this.search()
685
- }
686
-
687
- },
688
- events:{
689
- 'getidcard'(IdCard){
690
- // console.log(param)
691
- this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
692
- }
693
- },
694
- watch: {
695
- 'model.rows'(val) {
696
- if(val.length === 0){
697
- this.sumsmodel = {}
698
- }
699
- },
700
- 'orgCondtionStr'(val) {
701
- let res = val.match(/'(.*?)'/)
702
- console.log('正则提取:',res && res[1])
703
- if (res) {
704
- this.f_filialeid = res[1]
705
- this.updateParams()
706
- }
707
- },
708
- sumsmodel:{
709
- handler: function(val) {
710
- this.getotherfooter();
711
- },
712
- deep: true
713
- }
714
- },
715
- computed: {
716
- chooserow(){
717
- let aaa= true
718
- if(this.$login.r && this.$login.r.includes('打印项选择')){
719
- aaa = false
720
- }
721
- return aaa
722
- },
723
- getPricenames() {
724
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
725
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
726
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
727
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
728
- if(this.$refs.paged.$refs.cri.model !==null) {
729
- let rs = []
730
- let priceArr = []
731
- if ( pricetype.length >0) {
732
- let params = {
733
- f_price_type: pricetype[0],
734
- filter: this.f_filialeid,
735
- prices: this.prices
736
- }
737
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
738
- let temp = {}
739
- temp.label = item.label
740
- temp.value = item.value.f_price_name
741
- priceArr.push(temp)
742
- })
743
- rs = [{label: '全部', value: ''}, ...priceArr]
744
- }
745
- if (rs.length === 0) {
746
- console.log('rs读出来是空')
747
- this.$refs.paged.$refs.cri.model.f_price_name = ''
748
- }
749
- return rs
750
- }
751
- },
752
- getCondition() {
753
- return {
754
- startDate: this.$refs.paged.$refs.cri.model.startDate,
755
- endDate: this.$refs.paged.$refs.cri.model.endDate,
756
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
757
- orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code'`
758
- }
759
- },
760
- getfield() {
761
- return exportConfig.chargeConfig
762
- },
763
- defaultexport() {
764
- return exportConfig.chargeexportConfig
765
- },
766
- pricetypes() {
767
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
768
- },
769
-
770
- invoiceType() {
771
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('发票类型查询')]
772
- },
773
- usertypes() {
774
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
775
- },
776
- metertypes() {
777
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
778
- },
779
-
780
- tablestate() {
781
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
782
- },
783
- chargetype() {
784
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
785
- },
786
- payment() {
787
- return [...this.$appdata.getParam('付款方式查询')]
788
- },
789
- banktype() {
790
- return [...this.$appdata.getParam('支付渠道查询')]
791
- },
792
- charge_state() {
793
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
794
- },
795
- bank(){
796
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('银行名称')]
797
- }
798
- }
799
- }
800
- </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 @sort="sort">
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
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="start_Date" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ condition="f_operate_date >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="end_Date" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ condition="f_operate_date <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group" v-show="false">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group" v-show="false">
35
+ <label class="font_normal_body">客户名称</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
38
+ </div>
39
+
40
+ <div class="span" style="float:right;">
41
+ <!--<read-idcard></read-idcard>-->
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+
45
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
46
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
47
+ :defaultselect="$parent.$parent.defaultexport"
48
+ :chooserow="$parent.$parent.chooserow"
49
+ sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'
50
+ :choose-col="true">
51
+ </export-excel>
52
+
53
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
54
+ :defaultfield="$parent.$parent.defaultfield" print-name="收费查询"
55
+ :chooserow="$parent.$parent.chooserow"
56
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
57
+ <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>
58
+
59
+ </div>
60
+ </div>
61
+ <div class="row" v-show="$parent.$parent.criteriaShow">
62
+ <div v-if="!this.$login.r.includes('收费查询选择权限')">
63
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :show-component="$parent.$parent.showCom" v-ref:sel></res-select-group>
64
+ <div class="col-sm-2 form-group">
65
+ <label class="font_normal_body">客户类型</label>
66
+ <v-select :value.sync="model.f_user_type"
67
+ @change="$parent.$parent.userTypeChange()"
68
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
69
+ condition="f_user_type = '{}'"
70
+ close-on-select></v-select>
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">收费状态</label>
74
+ <v-select :value.sync="model.f_state" multiple
75
+ v-model="model.f_state"
76
+ :options='$parent.$parent.charge_state' placeholder='请选择'
77
+ condition="f_state in {}"
78
+ close-on-select></v-select>
79
+ </div>
80
+ <div class="col-sm-2 form-group">
81
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
82
+ <v-select :value.sync="model.f_payment" multiple
83
+ v-model="model.f_payment"
84
+ :options='$parent.$parent.payment' placeholder='请选择'
85
+ condition="f_payment in {}"
86
+ close-on-select></v-select>
87
+ </div>
88
+ </div>
89
+ <div v-if="this.$login.r.includes('收费查询选择权限')">
90
+ <res-select-group :show-component="$parent.$parent.resshow" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
91
+ <div class="col-sm-2 form-group" v-show="false">
92
+ <label class="font_normal_body">收费编号</label>
93
+ <input type="text" style="width:60%" class="input_search" v-model="model.id"
94
+ condition="id = '{}'" placeholder="收费编号">
95
+ </div>
96
+ <div class="col-sm-2 form-group" v-show="false">
97
+ <label class="font_normal_body">客户电话</label>
98
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
99
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
100
+ </div>
101
+ <div class="col-sm-2 form-group" v-show="false">
102
+ <label class="font_normal_body">身份证号</label>
103
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
104
+ condition="f_idnumber like '%{}%'" placeholder="身份证号">
105
+ </div>
106
+ <div class="col-sm-2 form-group" v-show="false">
107
+ <label class="font_normal_body">客户地址</label>
108
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
109
+ condition="f_address like '%{}%'" placeholder='客户地址'>
110
+ </div>
111
+ <div class="col-sm-2 form-group">
112
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
113
+ <v-select :value.sync="model.f_residential_area"
114
+ class="select_list select"
115
+ enter-push
116
+ multiple = "true"
117
+ v-model="model.f_residential_area"
118
+ style="width: 60%"
119
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
120
+ close-on-select>
121
+
122
+ </v-select>
123
+ </div>
124
+ <div class="col-sm-2 form-group">
125
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
126
+ <v-select :value.sync="model.f_payment" multiple
127
+ v-model="model.f_payment"
128
+ :options='$parent.$parent.payment' placeholder='请选择'
129
+ condition="f_payment in {}"
130
+ close-on-select></v-select>
131
+ </div>
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body" title="参数:支付渠道查询">支付渠道</label>
134
+ <v-select :value.sync="model.f_bank_type" multiple
135
+ v-model="model.f_bank_type"
136
+ :options='$parent.$parent.banktype' placeholder='请选择'
137
+ condition="f_bank_type in {}"
138
+ close-on-select></v-select>
139
+ </div>
140
+ <div class="col-sm-2 form-group">
141
+ <label class="font_normal_body">收费类型</label>
142
+ <!-- <v-select :value.sync="model.f_type"
143
+ v-model="model.f_type"
144
+ :options='$parent.$parent.chargetype' placeholder='请选择'
145
+ condition="f_type = '{}'"
146
+ close-on-select></v-select>-->
147
+ <v-select :value.sync="model.f_type" multiple
148
+ :options='$parent.$parent.chargetype' placeholder='请选择'
149
+ close-on-select clear-button
150
+ condition="f_type in {}"
151
+ v-model="model.f_type"></v-select>
152
+ </div>
153
+ <div class="col-sm-2 form-group">
154
+ <label class="font_normal_body">客户类型</label>
155
+ <v-select :value.sync="model.f_user_type"
156
+ @change="$parent.$parent.userTypeChange()"
157
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
158
+ condition="f_user_type = '{}'"
159
+ close-on-select></v-select>
160
+ </div>
161
+ <div class="col-sm-2 form-group">
162
+ <label class="font_normal_body">用气性质</label>
163
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
164
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
165
+ condition="f_gasproperties = '{}'"
166
+ close-on-select></v-select>
167
+ </div>
168
+ <div class="col-sm-2 form-group">
169
+ <label class="font_normal_body">气价类型</label>
170
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
171
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
172
+ close-on-select v-ref:type>
173
+ </v-select>
174
+ </div>
175
+ <div class="col-sm-2 form-group">
176
+ <label class="font_normal_body">气价名称</label>
177
+ <v-select :value.sync="model.f_price_name"
178
+ v-model="model.f_price_name"
179
+ :options="$parent.$parent.getPricenames"
180
+ condition="f_price_name = '{}'"
181
+ close-on-select></v-select>
182
+ </div>
183
+ <div class="col-sm-2 form-group">
184
+ <label class="font_normal_body">客户编号</label>
185
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"
186
+ condition="f_user_id = '{}'" placeholder='客户编号'>
187
+ </div>
188
+ <div class="col-sm-2 form-group">
189
+ <label class="font_normal_body">气表类型</label>
190
+ <v-select :value.sync="model.f_meter_type" multiple
191
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
192
+ condition="f_meter_type in {}"
193
+ close-on-select></v-select>
194
+ </div>
195
+ <div class="col-sm-2 form-group">
196
+ <label class="font_normal_body">气表品牌</label>
197
+ <v-select :value.sync="model.f_meter_brand" multiple
198
+ v-model="model.f_meter_brand"
199
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
200
+ condition="f_meter_brand in {}"
201
+ close-on-select></v-select>
202
+ </div>
203
+
204
+ <div class="col-sm-2 form-group">
205
+ <label class="font_normal_body">收费状态</label>
206
+ <v-select :value.sync="model.f_state" multiple
207
+ v-model="model.f_state"
208
+ :options='$parent.$parent.charge_state' placeholder='请选择'
209
+ condition="f_state in {}"
210
+ close-on-select></v-select>
211
+ </div>
212
+ <!-- <div class="col-sm-2 form-group">-->
213
+ <!-- <label class="font_normal_body">银行名称</label>-->
214
+ <!-- <v-select :value.sync="model.f_bank_name"-->
215
+ <!-- v-model="model.f_bank_name"-->
216
+ <!-- :options='$parent.$parent.bank' placeholder='请选择'-->
217
+ <!-- condition="f_bank_name = '{}'"-->
218
+ <!-- close-on-select></v-select>-->
219
+ <!-- </div>-->
220
+ <!-- <div class="col-sm-2 form-group">-->
221
+ <!-- <label class="font_normal_body">是否优惠</label>-->
222
+ <!-- <v-select :value.sync="model.f_privilege_money"-->
223
+ <!-- v-model="model.f_privilege_money"-->
224
+ <!-- :options='$parent.$parent.privilege_money' placeholder='请选择'-->
225
+ <!-- condition="f_privilege_money {}"-->
226
+ <!-- close-on-select></v-select>-->
227
+ <!-- </div>-->
228
+ <!-- <div class="col-sm-2 form-group">-->
229
+ <!-- <label class="font_normal_body">收&ensp;据&ensp;号</label>-->
230
+ <!-- <input type="text" style="width:30%" class="input_search" title="大于等于"-->
231
+ <!-- v-model="model.f_bill_number_big" condition="f_bill_number >= {}" placeholder='大于等于'>-->
232
+ <!-- <input type="text" style="width:30%" class="input_search" title="小于等于"-->
233
+ <!-- v-model="model.f_bill_number_small" condition="f_bill_number <= {}" placeholder='小于等于'>-->
234
+ <!-- </div>-->
235
+ <div class="col-sm-2 form-group" v-show="false">
236
+ <label class="font_normal_body">发票号码</label>
237
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_invoice_num"
238
+ condition="f_invoice_num = '{}'" placeholder='发票号码'>
239
+ </div>
240
+ <div class="col-sm-2 form-group" v-show="false">
241
+ <label class="font_normal_body" title="发票类型查询">发票类型</label>
242
+ <v-select :value.sync="model.f_invoice_type"
243
+ v-model="model.f_invoice_type"
244
+ :options='$parent.$parent.invoiceType' placeholder='请选择'
245
+ condition="f_invoice_type = '{}'"
246
+ close-on-select :value-single="true" :search="false">
247
+ </v-select>
248
+ </div>
249
+ <div class="col-sm-2 form-group" v-show="false">
250
+ <label class="font_normal_body">开&ensp;票&ensp;人</label>
251
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_invoiceuse_operator"
252
+ condition="f_invoiceuse_operator like '%{}%'" placeholder='开票人'>
253
+ </div>
254
+ <div class="col-sm-2 form-group" v-show="false">
255
+ <label for="startDate" class="font_normal_body">开票时间</label>
256
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
257
+ v-model="model.invoice_startDate"
258
+ :value.sync="model.invoice_startDate"
259
+ :format="'yyyy-MM-dd'"
260
+ :show-reset-button="true"
261
+ condition="f_invoice_date >= '{}'">
262
+ </datepicker>
263
+ </div>
264
+ <div class="col-sm-2 form-group" v-show="false">
265
+ <label for="endDate" class="font_normal_body">开票时间</label>
266
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
267
+ v-model="model.invoice_endDate"
268
+ :value.sync="model.invoice_endDate"
269
+ :format="'yyyy-MM-dd'"
270
+ :show-reset-button="true"
271
+ condition="f_invoice_date <= '{}'">
272
+ </datepicker>
273
+ </div>
274
+ <div class="col-sm-2 form-group" v-show="false">
275
+ <label for="endDate" class="font_normal_body">终端设备</label>
276
+ <v-select :value.sync="model.equip"
277
+ v-model="model.equip"
278
+ :options='$parent.$parent.equip' placeholder='请选择'
279
+ condition="f_terminal_num = '{}'"
280
+ close-on-select :value-single="true" :search="false">
281
+ </v-select>
282
+ </div>
283
+ </div>
284
+ </div>
285
+ </div>
286
+ </criteria>
287
+
288
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
289
+ <template partial='head'>
290
+ <tr>
291
+ <th>
292
+ <data-order field="f_userinfo_code" name="用户编号"
293
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
294
+ </th>
295
+ <th>
296
+ <nobr>用户名称</nobr>
297
+ </th>
298
+ <th>
299
+ <nobr>用户表号</nobr>
300
+ </th>
301
+ <th>
302
+ <nobr>用户卡号</nobr>
303
+ </th>
304
+ <th>
305
+ <nobr>用户地址</nobr>
306
+ </th>
307
+ <th>
308
+ <nobr>购气量</nobr>
309
+ </th>
310
+ <th>
311
+ <nobr>缴费金额</nobr>
312
+ </th>
313
+ <th>
314
+ <nobr>付款方式</nobr>
315
+ </th>
316
+ <th>
317
+ <data-order field="f_operate_date" name="收费日期"
318
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
319
+ </th>
320
+ <th>
321
+ <nobr>状态</nobr>
322
+ </th>
323
+ <th>
324
+ <nobr>网点</nobr>
325
+ </th>
326
+ <th>
327
+ <nobr>操作员</nobr>
328
+ </th>
329
+ <th>
330
+ <nobr>阶一气量</nobr>
331
+ </th>
332
+ <th>
333
+ <nobr>阶二气量</nobr>
334
+ </th>
335
+ <th>
336
+ <nobr>阶三气量</nobr>
337
+ </th>
338
+ </tr>
339
+ </template>
340
+ <template partial='body'>
341
+ <td style="text-align: center;"><nobr>
342
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
343
+ </nobr> </td>
344
+ <td style="text-align: center;">
345
+ <nobr>{{row.f_user_name}}</nobr>
346
+ </td>
347
+ <td style="text-align: center;">
348
+ <nobr>{{row.f_meternumber}}</nobr>
349
+ </td>
350
+ <td style="text-align: center;">
351
+ <nobr>{{row.f_card_id}}</nobr>
352
+ </td>
353
+ <td style="text-align: center;">
354
+ <nobr>{{row.f_address}}</nobr>
355
+ </td>
356
+ <td style="text-align: center;">
357
+ <nobr>{{row.f_pregas.toFixed(0)}}</nobr>
358
+ </td>
359
+ <td style="text-align: center;">
360
+ <nobr>{{row.f_collection}}</nobr>
361
+ </td>
362
+ <td style="text-align: center;">
363
+ <nobr>{{row.f_payment}}</nobr>
364
+ </td>
365
+ <td style="text-align: center;">
366
+ <nobr>{{row.f_operate_date}}</nobr>
367
+ </td>
368
+ <td style="text-align: center;">
369
+ <nobr>{{row.f_state}}</nobr>
370
+ </td>
371
+ <td style="text-align: center;">
372
+ <nobr> {{row.f_depname}}</nobr>
373
+ </td>
374
+ <td style="text-align: center;">
375
+ <nobr>{{row.f_operator}}</nobr>
376
+ </td>
377
+ <td style="text-align: center;">
378
+ <nobr>{{row.f_stairamount1}}</nobr>
379
+ </td>
380
+ <td style="text-align: center;">
381
+ <nobr>{{row.f_stair2amount}}</nobr>
382
+ </td>
383
+ <td style="text-align: center;">
384
+ <nobr>{{row.f_stair3amount}}</nobr>
385
+ </td>
386
+ </template>
387
+ <template partial='foot'></template>
388
+ </data-grid>
389
+ </criteria-paged>
390
+ <table class="table-hover">
391
+ <tr style="position: relative" class="table-bordered">
392
+ <td
393
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
394
+ 汇总信息
395
+ </td>
396
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
397
+ 气量合计:&emsp;{{sumsmodel.f_pregas.toFixed(0)}}
398
+ </td>
399
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
400
+ 收费金额合计:&emsp;{{sumsmodel.f_collection}}
401
+ </td>
402
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
403
+ 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1.toFixed(0)}}
404
+ </td>
405
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
406
+ 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
407
+ </td>
408
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
409
+ 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount.toFixed(0)}}
410
+ </td>
411
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
412
+ 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
413
+ </td>
414
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
415
+ 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount.toFixed(0)}}
416
+ </td>
417
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
418
+ 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
419
+ </td>
420
+ </tr>
421
+ </table>
422
+ </div>
423
+ <div v-if="show">
424
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
425
+ </div>
426
+ </div>
427
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
428
+ <article slot="modal-body">
429
+ <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="%收费" :isremark="false" style="width:auto" ></upload>
430
+ </article>
431
+ <footer slot="modal-footer" class="modal-footer">
432
+ </footer>
433
+ </modal>
434
+ </div>
435
+ </template>
436
+
437
+ <script>
438
+ import {HttpResetClass, PagedList} from 'vue-client'
439
+ import exportConfig from './config/exportConfig'
440
+
441
+ let readySomething = async function (self) {
442
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
443
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
444
+ // self.$refs.paged.$refs.cri.search()
445
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
446
+ await self.$MagLoadParams.loadParam()
447
+ self.initParams()
448
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
449
+ }
450
+ export default {
451
+ data() {
452
+ return {
453
+ resshow:['company','department','operator','slicearea'],
454
+ other:[],
455
+ footer:[],
456
+ config: {
457
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_pregas', 'f_collection', 'f_stairamount1', 'f_stair2amount', 'f_stair3amount']
458
+ },
459
+ //排序
460
+ orderitem:'f_userinfo_code',
461
+ orderFields: {
462
+ f_userinfo_id: 'no'
463
+ },
464
+ //f_price_name:[],
465
+ gasproperties:[],
466
+ showinfo: false,
467
+ data: {},
468
+ show:false,
469
+ rowdata:{},
470
+ showCom:['operator'],
471
+ initres: {
472
+ org:[this.$login.f.orgid],
473
+ dep:[],
474
+ user:[]
475
+ },
476
+ model: new PagedList('rs/sql/chargeQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code'`},{
477
+ f_pregas: 0,
478
+ f_preamount: 0,
479
+ f_stairamount1: 0,
480
+ f_stair1fee: 0,
481
+ f_collection: 0,
482
+ f_stair2amount: 0,
483
+ f_stair2fee: 0,
484
+ f_stair3amount: 0,
485
+ f_stair3fee: 0
486
+ }),
487
+ criteriaShow: false,
488
+ orgCondtionStr: '',
489
+ // 下拉框
490
+ meterbrands: [],
491
+ pricenames: [],
492
+ prices: [],
493
+ area: [],
494
+ //合计数据
495
+ defaultfield: [],
496
+ //小区
497
+ residentialArea: [],
498
+ sumsmodel: {},
499
+ f_filialeid: this.$login.f.f_orgid,
500
+ wxstate:[
501
+ {label: '全部', value: ''},
502
+ {label: '已退款', value: `= '3'`},
503
+ {label: '未退款', value: `!= '3'`}
504
+ ],
505
+ privilege_money:[
506
+ {label: '全部', value: ''},
507
+ {label: '已优惠', value: '> 0'},
508
+ {label: '未优惠', value: '= 0'}
509
+ ],
510
+ showupload:false,
511
+ selected:{},
512
+ equip:[]
513
+ }
514
+ },
515
+ async ready() {
516
+ await this.equipment()
517
+ this.getaddress()
518
+ console.log('this.$login.f:',this.$login.f)
519
+ if(!this.$login.r.includes('收费查询选择权限')){
520
+ this.initres.dep.push(this.$login.f.depids)
521
+ this.initres.user.push(this.$login.f.id)
522
+ // this.$refs.paged.$refs.cri.$refs.sel.$refs.
523
+ }
524
+ readySomething(this).then(() => {
525
+ this.$emit('ready')
526
+ }).catch((error) => {
527
+ this.$emit('error', error)
528
+ })
529
+
530
+ },
531
+ methods: {
532
+
533
+ async equipment(){
534
+ console.log('=========123123214124=============')
535
+ let condition = `f_orgid = '${this.$login.f.orgid}'`
536
+ let res = await this.$resetpost('rs/sql/getequipment', {data :{condition:condition}},{resolveMsg: null, rejectMsg: null})
537
+ let array = []
538
+ for(let row of res.data){
539
+ array.push ({label: row.f_terminal_name,value : row.f_terminal_number})
540
+ }
541
+ this.equip = array
542
+ },
543
+ //显示附件
544
+ view(row){
545
+ this.showupload = true
546
+ this.selected= row
547
+ },
548
+ getotherfooter () {
549
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
550
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
551
+ this.other = [];
552
+ this.footer = [];
553
+ let exportdata = this.getCondition;
554
+ let otherInData = [];
555
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
556
+ let footerData = [], exportfield = this.getfield;
557
+ footerData.push("合计");
558
+ let self = this;
559
+ for (var field in self.sumsmodel) {
560
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
561
+ }
562
+ this.footer.push(footerData);
563
+ this.other.push(otherInData);
564
+ },
565
+ async getaddress(){
566
+ let HttpReset = new HttpResetClass()
567
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
568
+ data: {
569
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
570
+ }
571
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
572
+ console.log('小区',data)
573
+ let house = [{label: '全部', value: ''}]
574
+ for (let row of data.data){
575
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
576
+ }
577
+ this.residentialArea = house
578
+ },
579
+ //把数据库查询数据转换为下拉数据
580
+ calculate(rows){
581
+ let data = []
582
+ rows.forEach((row, n) => {
583
+ data[n] = {label: row.f_residential_area, value: row.id}
584
+ })
585
+ return data
586
+ },
587
+
588
+ search(){
589
+ this.$refs.paged.$refs.cri.search()
590
+ },
591
+ cancel() {
592
+ this.show = false
593
+ },
594
+ showmsg(obj){
595
+ this.rowdata=obj
596
+ this.show=true
597
+ },
598
+ userTypeChange () {
599
+ this.gasproperties=[]
600
+ if(this.$refs.paged.$refs.cri.model !==null) {
601
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
602
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
603
+ }
604
+ else{
605
+ this.gasproperties =[{label: '全部', value: ''}]
606
+ }
607
+ },
608
+ initParams() {
609
+ // 初始化气表品牌
610
+ let brandArr = []
611
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
612
+ let temp = {}
613
+ temp.label = item.label
614
+ temp.value = item.value.f_meter_brand
615
+ brandArr.push(temp)
616
+ })
617
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
618
+ //初始化气表价格
619
+ this.prices = this.$MagGetSaleParam.getPrices();
620
+ },
621
+ selfSearch(args) {
622
+ //小区查询条件
623
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
624
+ if(this.area.length !== 0){
625
+ let str = JSON.stringify(this.area)
626
+ str = str.replace(/"/g,`'`)
627
+ str = str.replace(/\[/g,``)
628
+ str = str.replace(/\]/g,``)
629
+ //查询多个小区时条件
630
+ args.condition += ` and f_residential_area in ( ${str} )`
631
+ }
632
+ let f_orgstr = this.orgCondtionStr
633
+ args.condition = `${args.condition} ` + f_orgstr
634
+ this.model.search(args.condition, args.model)
635
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
636
+
637
+ },
638
+ clear() {
639
+ //清空部门和人员
640
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
641
+ //部门和人员变为全选
642
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
643
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
644
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
645
+ this.$refs.paged.$refs.cri.model[key] = []
646
+ })
647
+
648
+ },
649
+ dealmsg(val) {
650
+ val.model = this.model.model
651
+ this.$dispatch('deal-msg', val)
652
+ },
653
+ show() {
654
+ this.criteriaShow = true
655
+ },
656
+ hidden() {
657
+ this.criteriaShow = !this.criteriaShow
658
+ },
659
+ getRes(condition,obj) {
660
+ this.orgCondtionStr = condition
661
+ this.orgname = obj.orgnames[0]
662
+ this.depname = obj.depnames[0]
663
+ },
664
+ async updateParams() {
665
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
666
+ this.initParams()
667
+ },
668
+ sort (field, rule) {
669
+ // 将所有排序方式设为不排序,实现相互排斥
670
+ for (let key in this.orderFields) {
671
+ if (key === field) {
672
+ this.orderFields[key] = rule
673
+ } else {
674
+ this.orderFields[key] = 'no'
675
+ }
676
+ }
677
+ // 如果新规则不排序,还原为默认排序
678
+ if (rule === 'no') {
679
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
680
+ } else {
681
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
682
+ }
683
+
684
+ this.search()
685
+ }
686
+
687
+ },
688
+ events:{
689
+ 'getidcard'(IdCard){
690
+ // console.log(param)
691
+ this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
692
+ }
693
+ },
694
+ watch: {
695
+ 'model.rows'(val) {
696
+ if(val.length === 0){
697
+ this.sumsmodel = {}
698
+ }
699
+ },
700
+ 'orgCondtionStr'(val) {
701
+ let res = val.match(/'(.*?)'/)
702
+ console.log('正则提取:',res && res[1])
703
+ if (res) {
704
+ this.f_filialeid = res[1]
705
+ this.updateParams()
706
+ }
707
+ },
708
+ sumsmodel:{
709
+ handler: function(val) {
710
+ this.getotherfooter();
711
+ },
712
+ deep: true
713
+ }
714
+ },
715
+ computed: {
716
+ chooserow(){
717
+ let aaa= true
718
+ if(this.$login.r && this.$login.r.includes('打印项选择')){
719
+ aaa = false
720
+ }
721
+ return aaa
722
+ },
723
+ getPricenames() {
724
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
725
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
726
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
727
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
728
+ if(this.$refs.paged.$refs.cri.model !==null) {
729
+ let rs = []
730
+ let priceArr = []
731
+ if ( pricetype.length >0) {
732
+ let params = {
733
+ f_price_type: pricetype[0],
734
+ filter: this.f_filialeid,
735
+ prices: this.prices
736
+ }
737
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
738
+ let temp = {}
739
+ temp.label = item.label
740
+ temp.value = item.value.f_price_name
741
+ priceArr.push(temp)
742
+ })
743
+ rs = [{label: '全部', value: ''}, ...priceArr]
744
+ }
745
+ if (rs.length === 0) {
746
+ console.log('rs读出来是空')
747
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
748
+ }
749
+ return rs
750
+ }
751
+ },
752
+ getCondition() {
753
+ return {
754
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
755
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
756
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
757
+ orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code'`
758
+ }
759
+ },
760
+ getfield() {
761
+ return exportConfig.chargeConfig
762
+ },
763
+ defaultexport() {
764
+ return exportConfig.chargeexportConfig
765
+ },
766
+ pricetypes() {
767
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
768
+ },
769
+
770
+ invoiceType() {
771
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('发票类型查询')]
772
+ },
773
+ usertypes() {
774
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
775
+ },
776
+ metertypes() {
777
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
778
+ },
779
+
780
+ tablestate() {
781
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
782
+ },
783
+ chargetype() {
784
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
785
+ },
786
+ payment() {
787
+ return [...this.$appdata.getParam('付款方式查询')]
788
+ },
789
+ banktype() {
790
+ return [...this.$appdata.getParam('支付渠道查询')]
791
+ },
792
+ charge_state() {
793
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
794
+ },
795
+ bank(){
796
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('银行名称')]
797
+ }
798
+ }
799
+ }
800
+ </script>