manage-client 3.2.33 → 3.2.34

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 (67) hide show
  1. package/.gradle/{4.4 → 5.5}/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.5/gc.properties +0 -0
  4. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  5. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  6. package/build/dev-server.js +4 -6
  7. package/package.json +1 -1
  8. package/src/components/BasisEcharts/BarChart.vue +247 -247
  9. package/src/components/SellReport/BonSummary.vue +178 -178
  10. package/src/components/SellReport/ChargePrick.vue +205 -205
  11. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  12. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  13. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  14. package/src/components/SellReport/NonResidentGas.vue +203 -203
  15. package/src/components/SellReport/OutletTable.vue +258 -258
  16. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  17. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  18. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  19. package/src/components/SellReport/SellingTable.vue +220 -220
  20. package/src/components/SellReport/UserSellingGas.vue +228 -228
  21. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  22. package/src/components/daping/GMap.vue +636 -636
  23. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  24. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  25. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  26. package/src/components/sale/businessquery/ChargeQuery.vue +1250 -1245
  27. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  28. package/src/components/sale/businessquery/InspectListUser.vue +412 -412
  29. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  30. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  31. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  32. package/src/components/sale/businessquery/usergas.vue +311 -311
  33. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  34. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  35. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  36. package/src/components/webmeter/DrillData/UserGasAll.vue +607 -607
  37. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  38. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  39. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  40. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  41. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  42. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  43. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  44. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  45. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  46. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  47. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  48. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  49. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  50. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  51. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  52. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  53. package/src/filiale/WEINAN/reportManage.js +12 -12
  54. package/src/filiale/WEINAN/sale.js +36 -36
  55. package/src/filiale/alashan/reportManage.js +10 -10
  56. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  57. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  58. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  59. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  60. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  61. package/src/filiale/rongchuang/reportManage.js +11 -11
  62. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  63. package/src/filiale/tongchuan/reportManage.js +5 -5
  64. package/src/main.js +2 -2
  65. package/static/wuhai.json +1610 -1610
  66. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  67. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
@@ -1,1243 +1,1243 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" :class="{showbottom:showbottomsum}" 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="startDate" 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="endDate" 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">
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">
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
- <button class="button_search button_spacing" v-show="false" @click="$parent.$parent.ReadIDCard()">读取身份证</button>
42
- <read-card :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-ref:readcard></read-card>
43
- <button class="button_search button_spacing" @click="search()">查询</button>
44
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
45
-
46
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
- :defaultselect="$parent.$parent.defaultexport"
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"
55
- titletable="缴费记录报表" :starthead="$parent.$parent.getstart"
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
- <res-select-group :show-component="$parent.$parent.resshow" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
63
- <div class="col-sm-2 form-group">
64
- <label class="font_normal_body">收费编号</label>
65
- <input type="text" style="width:60%" class="input_search" v-model="model.id"
66
- condition="id = '{}'" placeholder="收费编号">
67
- </div>
68
- <div class="col-sm-2 form-group">
69
- <label class="font_normal_body">客户电话</label>
70
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
71
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
72
- </div>
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">身份证号</label>
75
- <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
76
- condition="f_idnumber like '%{}%'" placeholder="身份证号">
77
- </div>
78
- <div class="col-sm-2 form-group">
79
- <label class="font_normal_body">客户地址</label>
80
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
81
- condition="f_address like '%{}%'" placeholder='客户地址'>
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">小&emsp;&emsp;区</label>
85
- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
86
- condition="f_residential_area like '%{}%'" placeholder='小区'>
87
- </div>
88
- <div class="col-sm-2 form-group">
89
- <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
90
- <v-select :value.sync="model.f_payment"
91
- v-model="model.f_payment"
92
- :options='$parent.$parent.payment' placeholder='请选择'
93
- condition="f_payment = '{}'"
94
- close-on-select></v-select>
95
- </div>
96
- <div class="col-sm-2 form-group">
97
- <label class="font_normal_body" title="参数:支付渠道查询">支付渠道</label>
98
- <v-select :value.sync="model.f_bank_type"
99
- v-model="model.f_bank_type"
100
- :options='$parent.$parent.banktype' placeholder='请选择'
101
- condition="f_bank_type = '{}'"
102
- close-on-select></v-select>
103
- </div>
104
- <div class="col-sm-2 form-group">
105
- <label class="font_normal_body">收费类型</label>
106
- <!-- <v-select :value.sync="model.f_type"
107
- v-model="model.f_type"
108
- :options='$parent.$parent.chargetype' placeholder='请选择'
109
- condition="f_type = '{}'"
110
- close-on-select></v-select>-->
111
- <v-select :value.sync="model.f_type"
112
- :options='$parent.$parent.chargetype' placeholder='请选择'
113
- close-on-select clear-button
114
- condition="f_type = '{}'"
115
- v-model="model.f_type"></v-select>
116
- </div>
117
- <div class="col-sm-2 form-group">
118
- <label class="font_normal_body">客户类型</label>
119
- <v-select :value.sync="model.f_user_type"
120
- @change="$parent.$parent.userTypeChange()"
121
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
122
- condition="f_user_type = '{}'"
123
- close-on-select></v-select>
124
- </div>
125
- <div class="col-sm-2 form-group">
126
- <label class="font_normal_body">用气性质</label>
127
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
128
- :options='$parent.$parent.gasproperties' placeholder='请选择'
129
- condition="f_gasproperties = '{}'"
130
- close-on-select></v-select>
131
- </div>
132
- <div class="col-sm-2 form-group">
133
- <label class="font_normal_body">气价类型</label>
134
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
135
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
136
- close-on-select v-ref:type>
137
- </v-select>
138
- </div>
139
- <div class="col-sm-2 form-group">
140
- <label class="font_normal_body">气价名称</label>
141
- <v-select :value.sync="model.f_price_name"
142
- v-model="model.f_price_name"
143
- :options="$parent.$parent.getPricenames"
144
- condition="f_price_name = '{}'"
145
- close-on-select></v-select>
146
- </div>
147
- <div class="col-sm-2 form-group">
148
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>
149
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"
150
- condition="f_user_id = '{}'" placeholder='表编号'>
151
- </div>
152
- <div class="col-sm-2 form-group">
153
- <label class="font_normal_body">气表类型</label>
154
- <v-select :value.sync="model.f_meter_type"
155
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
156
- condition="f_meter_type = '{}'"
157
- close-on-select></v-select>
158
- </div>
159
- <div class="col-sm-2 form-group">
160
- <label class="font_normal_body">气表品牌</label>
161
- <v-select :value.sync="model.f_meter_brand"
162
- v-model="model.f_meter_brand"
163
- :options='$parent.$parent.meterbrands' placeholder='请选择'
164
- condition="f_meter_brand = '{}'"
165
- close-on-select></v-select>
166
- </div>
167
-
168
- <div class="col-sm-2 form-group">
169
- <label class="font_normal_body">收费状态</label>
170
- <v-select :value.sync="model.f_state"
171
- v-model="model.f_state"
172
- :options='$parent.$parent.charge_state' placeholder='请选择'
173
- condition="f_state = '{}'"
174
- close-on-select></v-select>
175
- </div>
176
- <div class="col-sm-2 form-group">
177
- <label class="font_normal_body">银行名称</label>
178
- <v-select :value.sync="model.f_bank_name"
179
- v-model="model.f_bank_name"
180
- :options='$parent.$parent.bank' placeholder='请选择'
181
- condition="f_bank_name = '{}'"
182
- close-on-select></v-select>
183
- </div>
184
- <div class="col-sm-2 form-group">
185
- <label class="font_normal_body">是否优惠</label>
186
- <v-select :value.sync="model.f_privilege_money"
187
- v-model="model.f_privilege_money"
188
- :options='$parent.$parent.privilege_money' placeholder='请选择'
189
- condition="f_privilege_money {}"
190
- close-on-select></v-select>
191
- </div>
192
- <div class="col-sm-2 form-group">
193
- <label class="font_normal_body">收&ensp;据&ensp;号</label>
194
- <input type="text" style="width:30%" class="input_search" title="大于等于"
195
- v-model="model.f_bill_number_big" condition="f_bill_number >= {}" placeholder='大于等于'>
196
- <input type="text" style="width:30%" class="input_search" title="小于等于"
197
- v-model="model.f_bill_number_small" condition="f_bill_number <= {}" placeholder='小于等于'>
198
- </div>
199
- <div class="col-sm-2 form-group">
200
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;流水号</label>
201
- <input type="text" style="width:60%" class="input_search" v-model="model.f_serial_id"
202
- condition="f_serial_id = '{}'" placeholder='流水号'>
203
- </div>
204
- <div class="col-sm-2 form-group">
205
- <label class="font_normal_body">发票号码</label>
206
- <input type="text" style="width:60%" class="input_search" v-model="model.f_invoice_num"
207
- condition="f_invoice_num = '{}'" placeholder='发票号码'>
208
- </div>
209
- <div class="col-sm-2 form-group">
210
- <label class="font_normal_body" title="发票类型查询">发票类型</label>
211
- <v-select :value.sync="model.f_invoice_type"
212
- v-model="model.f_invoice_type"
213
- :options='$parent.$parent.invoiceType' placeholder='请选择'
214
- condition="f_invoice_type = '{}'"
215
- close-on-select :value-single="true" :search="false">
216
- </v-select>
217
- </div>
218
- <div class="col-sm-2 form-group">
219
- <label class="font_normal_body">开&ensp;票&ensp;人</label>
220
- <input type="text" style="width:60%" class="input_search" v-model="model.f_invoiceuse_operator"
221
- condition="f_invoiceuse_operator like '%{}%'" placeholder='开票人'>
222
- </div>
223
- <div class="col-sm-2 form-group">
224
- <label for="startDate" class="font_normal_body">开票时间</label>
225
- <datepicker id="startDate1" placeholder="开始日期" style="width:60%"
226
- v-model="model.invoice_startDate"
227
- :value.sync="model.invoice_startDate"
228
- :format="'yyyy-MM-dd'"
229
- :show-reset-button="true"
230
- condition="f_invoice_date >= '{}'">
231
- </datepicker>
232
- </div>
233
- <div class="col-sm-2 form-group">
234
- <label for="endDate" class="font_normal_body">开票时间</label>
235
- <datepicker id="endDate1" placeholder="结束日期" style="width:60%"
236
- v-model="model.invoice_endDate"
237
- :value.sync="model.invoice_endDate"
238
- :format="'yyyy-MM-dd'"
239
- :show-reset-button="true"
240
- condition="f_invoice_date <= '{}'">
241
- </datepicker>
242
- </div>
243
- <div class="col-sm-2 form-group">
244
- <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
245
- <v-select :value.sync="model.f_inputtor"
246
- v-model="model.f_inputtor"
247
- :options='$parent.$parent.inputtores' placeholder='请选择'
248
- condition="f_inputtor = '{}'"
249
- close-on-select :search="false">
250
- </v-select>
251
- </div>
252
- <div class="col-sm-2 form-group">
253
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
254
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
255
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
256
- style="width:60%"
257
- close-on-select
258
- condition="f_meter_book_num = '{}'"></v-select>
259
- </div>
260
- <div class="col-sm-2 form-group">
261
- <label class="font_normal_body">写卡状态</label>
262
- <v-select :value.sync="model.f_write_card" v-model="model.f_write_card"
263
- :options='$parent.$parent.writecard' placeholder='写卡状态'
264
- style="width:60%"
265
- close-on-select
266
- condition="f_write_card = '{}'"></v-select>
267
- </div>
268
- <div class="col-sm-2 form-group">
269
- <label class="font_normal_body">街&ensp;&ensp;&ensp;&ensp;道</label>
270
- <input type="text" style="width:60%" class="input_search" v-model="model.f_street"
271
- condition="f_street like '%{}%'" placeholder='街道'>
272
- </div>
273
- <div class="col-sm-2 form-group">
274
- <label class="font_normal_body">数&ensp;据&ensp;包</label>
275
- <v-select :value.sync="model.f_bluetooth_package" v-model="model.f_bluetooth_package"
276
- :options='$parent.$parent.bluetoothpackage' placeholder='数据包状态'
277
- style="width:60%"
278
- close-on-select
279
- condition="f_bluetooth_package = '{}'"></v-select>
280
- </div>
281
- <div class="col-sm-2 form-group">
282
- <label class="font_normal_body">pos设备&nbsp;</label>
283
- <v-select :value.sync="model.f_terminal_name"
284
- v-model="model.f_terminal_name"
285
- :options='$parent.$parent.posEquipment' placeholder='请选择'
286
- condition="f_operator = '{}'"
287
- close-on-select></v-select>
288
- </div>
289
- </div>
290
- </div>
291
- </criteria>
292
-
293
- <data-grid :model="model" partial='list' class="list_area table_sy" style="height: 95%" v-ref:grid>
294
- <template partial='head'>
295
- <tr>
296
- <th>
297
- <nobr>收费编号</nobr>
298
- </th>
299
- <th>
300
- <!-- <nobr>客户编号</nobr>-->
301
- <data-order field="f_userinfo_code" name="客户编号"
302
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
303
- </th>
304
- <th><nobr>小区</nobr></th>
305
- <th><nobr>街道</nobr></th>
306
- <th>
307
- <nobr>客户名称</nobr>
308
- </th>
309
- <th>
310
- <nobr>片区</nobr>
311
- </th>
312
- <th>
313
- <nobr>小区</nobr>
314
- </th>
315
- <th>
316
- <!-- <nobr>客户地址</nobr>-->
317
- <data-order field="f_address" name="客户地址"
318
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></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
- <th>
339
- <nobr>气量</nobr>
340
- </th>
341
- <th>
342
- <nobr>金额</nobr>
343
- </th>
344
- <th>
345
- <nobr>收款</nobr>
346
- </th>
347
- <th>
348
- <nobr>燃气费</nobr>
349
- </th>
350
- <th>
351
- <nobr>清缴金额</nobr>
352
- </th>
353
- <th>
354
- <nobr>预存金额</nobr>
355
- </th>
356
- <th>
357
- <nobr>上期结余</nobr>
358
- </th>
359
- <th>
360
- <nobr>滞纳金</nobr>
361
- </th>
362
- <!--<th>-->
363
- <!--&lt;!&ndash; <nobr>所属年月</nobr>&ndash;&gt;-->
364
- <!--<data-order field="f_rest_date" name="所属年月"-->
365
- <!--:order.sync="$parent.$parent.$parent.orderFields.f_rest_date"></data-order>-->
366
-
367
- <!--</th>-->
368
- <th>
369
- <!-- <nobr>收费日期</nobr>-->
370
- <data-order field="f_operate_date" name="收费日期"
371
- :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
372
- </th>
373
- <th>
374
- <nobr>优惠金额</nobr>
375
- </th>
376
- <th>
377
- <nobr>本期结余</nobr>
378
- </th>
379
- <th>
380
- <nobr>付款方式</nobr>
381
- </th>
382
- <th>
383
- <nobr>写卡状态</nobr>
384
- </th>
385
- <th>
386
- <nobr>支付渠道</nobr>
387
- </th>
388
- <th>
389
- <nobr>银行名称</nobr>
390
- </th>
391
- <th>
392
- <nobr>收费类型</nobr>
393
- </th>
394
- <th>
395
- <nobr>终端号</nobr>
396
- </th>
397
- <th>
398
- <nobr>蓝牙数据包状态</nobr>
399
- </th>
400
- <th>
401
- <nobr>状态</nobr>
402
- </th>
403
-
404
- <th>
405
- <nobr>备注</nobr>
406
- </th>
407
- <th>
408
- <nobr>补打次数</nobr>
409
- </th>
410
- <th>
411
- <nobr>人员</nobr>
412
- </th>
413
- <th>
414
- <nobr>部门</nobr>
415
- </th>
416
- <th>
417
- <nobr>公司</nobr>
418
- </th>
419
- <th>
420
- <nobr>流水号</nobr>
421
- </th>
422
- <th>
423
- <nobr>收据号</nobr>
424
- </th>
425
- <th>
426
- <nobr>业务单号</nobr>
427
- </th>
428
- <th>
429
- <nobr>发票号码</nobr>
430
- </th>
431
- <th>
432
- <nobr>发票类型</nobr>
433
- </th>
434
- <th>
435
- <nobr>开票人</nobr>
436
- </th>
437
- <th>
438
- <nobr>开票时间</nobr>
439
- </th>
440
- <th>
441
- <nobr>累计写卡气量</nobr>
442
- </th>
443
- <th>
444
- <nobr>实际写卡金额</nobr>
445
- </th>
446
- <th>
447
- <nobr>冲正人</nobr>
448
- </th>
449
- <th>
450
- <nobr>冲正时间</nobr>
451
- </th>
452
- <th>
453
- <nobr>一阶气量</nobr>
454
- </th>
455
- <th>
456
- <nobr>一阶单价</nobr>
457
- </th>
458
- <th>
459
- <nobr>一阶气费</nobr>
460
- </th>
461
- <th>
462
- <nobr>二阶气量</nobr>
463
- </th>
464
- <th>
465
- <nobr>二阶单价</nobr>
466
- </th>
467
- <th>
468
- <nobr>二阶气费</nobr>
469
- </th>
470
- <th>
471
- <nobr>三阶气量</nobr>
472
- </th>
473
- <th>
474
- <nobr>三阶单价</nobr>
475
- </th>
476
- <th>
477
- <nobr>三阶气费</nobr>
478
- </th>
479
- <th><nobr>附件</nobr></th>
480
- </tr>
481
- </template>
482
- <template partial='body'>
483
- <td style="text-align: center;">
484
- <nobr>{{row.id}}</nobr>
485
- </td>
486
- <td style="text-align: center;"><nobr>
487
- <nobr>{{row.f_userinfo_code}}</nobr>
488
- </nobr> </td>
489
- <td style="text-align: center;">
490
- <nobr>{{row.f_residential_area}}</nobr>
491
- </td>
492
- <td style="text-align: center;">
493
- <nobr>{{row.f_street}}</nobr>
494
- </td>
495
- <td style="text-align: center;">
496
- <nobr>{{row.f_user_name}}</nobr>
497
- </td>
498
- <td style="text-align: center;">
499
- <nobr>{{row.f_zones}}</nobr>
500
- </td>
501
- <td style="text-align: center;">
502
- <nobr>{{row.f_residential_area}}</nobr>
503
- </td>
504
- <td style="text-align: center;">
505
- <nobr>{{row.f_address}}</nobr>
506
- </td>
507
- <td style="text-align: center;">
508
- <nobr>{{row.f_user_type}}</nobr>
509
- </td>
510
- <td style="text-align: center;">
511
- <nobr>{{row.f_gasproperties}}</nobr>
512
- </td>
513
- <td style="text-align: center;">
514
- <nobr>{{row.f_meternumber}}</nobr>
515
- </td>
516
- <td style="text-align: center;">
517
- <nobr>{{row.f_meter_brand}}</nobr>
518
- </td>
519
- <td style="text-align: center;">
520
- <nobr>{{row.f_card_id}}</nobr>
521
- </td>
522
- <td style="text-align: center;">
523
- <nobr>{{row.f_times}}</nobr>
524
- </td>
525
- <td style="text-align: center;">
526
- <nobr>{{row.f_pregas}}</nobr>
527
- </td>
528
- <td style="text-align: center;">
529
- <nobr>{{row.fee}}</nobr>
530
- </td>
531
- <td style="text-align: center;">
532
- <nobr>{{row.f_collection}}</nobr>
533
- </td>
534
- <td style="text-align: center;">
535
- <nobr>{{row.f_preamount}}</nobr>
536
- </td>
537
- <td style="text-align: center;">
538
- <nobr>{{row.f_charge_money}}</nobr>
539
- </td>
540
- <td style="text-align: center;">
541
- <nobr>{{row.f_yucun}}</nobr>
542
- </td>
543
- <td style="text-align: center;">
544
- <nobr v-if="row.f_meter_type === '物联网表'">{{row.f_balance_amount}}</nobr>
545
- <nobr v-else>{{row.f_balance}}</nobr>
546
- </td>
547
- <td style="text-align: center;">
548
- <nobr>{{row.f_delaypay}}</nobr>
549
- </td>
550
- <!--<td style="text-align: center;">-->
551
- <!--<nobr>{{row.f_rest_date}}</nobr>-->
552
- <!--</td>-->
553
- <td style="text-align: center;">
554
- <nobr>{{row.f_operate_date}}</nobr>
555
- </td>
556
- <td style="text-align: center;">
557
- <nobr>{{row.f_privilege_money}}</nobr>
558
- </td>
559
-
560
-
561
- <td style="text-align: center;">
562
- <nobr v-if="row.f_meter_type === '物联网表'">{{row.f_curbalance_amount}}</nobr>
563
- <nobr v-else>{{row.f_curbalance}}</nobr>
564
- </td>
565
- <td style="text-align: center;">
566
- <nobr>{{row.f_payment}}</nobr>
567
- </td>
568
- <td style="text-align: center;">
569
- <nobr>{{row.f_write_card}}</nobr>
570
- </td>
571
- <td style="text-align: center;">
572
- <nobr>{{row.f_bank_type}}</nobr>
573
- </td>
574
- <td style="text-align: center;">
575
- <nobr>{{row.f_bank_name}}</nobr>
576
- </td>
577
- <td style="text-align: center;">
578
- <nobr>{{row.f_type}}</nobr>
579
- </td>
580
- <td style="text-align: center;">
581
- <nobr>{{row.f_terminal_num}}</nobr>
582
- </td>
583
- <td style="text-align: center;">
584
- <nobr>{{row.f_bluetooth_package}}</nobr>
585
- </td>
586
- <td style="text-align: center;">
587
- <nobr>{{row.f_state}}</nobr>
588
- </td>
589
-
590
- <td style="text-align: center;">
591
- <nobr>{{row.f_comments}}</nobr>
592
- </td>
593
- <td style="text-align: center;">
594
- <nobr>{{row.filltimes}}</nobr>
595
- </td>
596
- <td style="text-align: center;">
597
- <nobr>{{row.f_operator}}</nobr>
598
- </td>
599
- <td style="text-align: center;">
600
- <nobr>{{row.f_depname}}</nobr>
601
- </td>
602
- <td style="text-align: center;">
603
- <nobr>{{row.f_orgname}}</nobr>
604
- </td>
605
- <td style="text-align: center;">
606
- <nobr>{{row.f_serial_id}}</nobr>
607
- </td>
608
- <td style="text-align: center;">
609
- <nobr>{{row.f_bill_number}}</nobr>
610
- </td>
611
- <td style="text-align: center;">
612
- <nobr>{{row.f_serial_number}}</nobr>
613
- </td>
614
- <td style="text-align: center;">
615
- <nobr>{{row.f_invoice_num}}</nobr>
616
- </td>
617
- <td style="text-align: center;">
618
- <nobr>{{row.f_invoice_type}}</nobr>
619
- </td>
620
- <td style="text-align: center;">
621
- <nobr>{{row.f_invoiceuse_operator}}</nobr>
622
- </td>
623
- <td style="text-align: center;">
624
- <nobr>{{row.f_invoice_date}}</nobr>
625
- </td>
626
- <td style="text-align: center;">
627
- <nobr>{{row.f_write_totalgas}}</nobr>
628
- </td>
629
- <td style="text-align: center;">
630
- <nobr>{{row.f_write_money}}</nobr>
631
- </td>
632
- <td style="text-align: center;">
633
- <nobr>{{row.f_corr_operator}}</nobr>
634
- </td>
635
- <td style="text-align: center;">
636
- <nobr>{{row.f_corr_operate_date}}</nobr>
637
- </td>
638
- <td style="text-align: center;">
639
- <nobr>{{row.f_stairamount1}}</nobr>
640
- </td>
641
- <td style="text-align: center;">
642
- <nobr>{{row.f_stair1price}}</nobr>
643
- </td>
644
- <td style="text-align: center;">
645
- <nobr>{{(row.f_stair1fee - 0).toFixed(2)}}</nobr>
646
- </td>
647
- <td style="text-align: center;">
648
- <nobr>{{row.f_stair2amount}}</nobr>
649
- </td>
650
- <td style="text-align: center;">
651
- <nobr>{{row.f_stair2price}}</nobr>
652
- </td>
653
- <td style="text-align: center;">
654
- <nobr>{{(row.f_stair2fee - 0).toFixed(2)}}</nobr>
655
- </td>
656
- <td style="text-align: center;">
657
- <nobr>{{row.f_stair3amount}}</nobr>
658
- </td>
659
- <td style="text-align: center;">
660
- <nobr>{{row.f_stair3price}}</nobr>
661
- </td>
662
- <td style="text-align: center;">
663
- <nobr>{{(row.f_stair3fee - 0).toFixed(2)}}</nobr>
664
- </td>
665
- <td style="text-align: center;"><nobr>
666
- <button style=" height: 28px;line-height: 16px;" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
667
- </nobr></td>
668
- </template>
669
- <template partial='foot'></template>
670
- </data-grid>
671
- </criteria-paged>
672
- <table class="table-hover">
673
- <tr style="position: relative" class="table-bordered">
674
- <td
675
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
676
- 汇总信息
677
- </td>
678
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
679
- 气量合计:&emsp;{{sumsmodel.f_pregas}}
680
- </td>
681
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
682
- 应交金额合计:&emsp;{{sumsmodel.fee}}
683
- </td>
684
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
685
- 滞纳金合计:&emsp;{{sumsmodel.f_delaypay}}
686
- </td>
687
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
688
- 燃气费合计:&emsp;{{sumsmodel.f_preamount}}
689
- </td>
690
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
691
- 预存金额合计:&emsp;{{sumsmodel.f_yucun}}
692
- </td>
693
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
694
- 收款合计:&emsp;{{sumsmodel.f_collection}}
695
- </td>
696
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
697
- 优惠合计:&emsp;{{sumsmodel.f_privilege_money}}
698
- </td>
699
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
700
- 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}
701
- </td>
702
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
703
- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
704
- </td>
705
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
706
- 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
707
- </td>
708
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
709
- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
710
- </td>
711
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
712
- 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
713
- </td>
714
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
715
- 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
716
- </td>
717
- </tr>
718
- </table>
719
- </div>
720
- <!--<div v-if="show">-->
721
- <!--<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>-->
722
- <!--</div>-->
723
- </div>
724
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
725
- <article slot="modal-body">
726
- <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="%收费" :isremark="false" style="width:auto" ></upload>
727
- </article>
728
- <footer slot="modal-footer" class="modal-footer">
729
- </footer>
730
- </modal>
731
- </div>
732
- <high-meter-idcard :show.sync="false" v-ref:highcard ></high-meter-idcard>
733
- </template>
734
-
735
- <script>
736
- import {HttpResetClass, PagedList} from 'vue-client'
737
- import exportConfig from './config/exportConfig'
738
- let cardBtnGen = async function (self, val) {
739
- self.cardInfo = val.data
740
-
741
- // 判断读卡是否需要卡密码
742
- console.log('读卡上的信息', self.cardInfo)
743
-
744
- if (self.cardInfo.NewParam) {
745
- if (self.cardInfo.NewParam.error) {
746
- if (self.cardInfo.NewParam.error === '0001') {
747
- // 需要重新读卡并传卡密码
748
- if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
749
- self.readCardParam = self.model.rows[0].f_card_password
750
- self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
751
- } else {
752
- self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
753
- return
754
- }
755
- }
756
- }
757
- }
758
- self.card=self.cardInfo.CardID
759
- self.search()
760
- }
761
- let readySomething = async function (self) {
762
- //加载抄表册
763
- self.initmeterbook();
764
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
765
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
766
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
767
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
768
- // self.$refs.paged.$refs.cri.model.f_state=['有效'];
769
- // self.$refs.paged.$refs.cri.search()
770
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
771
- await self.$MagLoadParams.loadParam()
772
- self.initParams()
773
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
774
- }
775
- export default {
776
- props:['data'],
777
- title: '收费查询',
778
- data() {
779
- return {
780
- IdCardInfo:'',
781
- card:'',
782
- isSingleUser: null,
783
- startDate1:'',
784
- endDate1:'',
785
- resshow:['company','department','operator','slicearea'],
786
- other:[],
787
-
788
- footer:[],
789
- config: {
790
- defaultPrint: [
791
- 'f_residential_area', 'id', 'f_userinfo_code', 'f_user_name', 'f_address', 'f_user_type',
792
- 'f_gasproperties', 'f_pregas', 'fee', 'f_collection', 'f_balance',
793
- 'f_curbalance', 'f_type', 'f_payment', 'f_operate_date', 'f_operator',
794
- 'f_stairamount1', 'f_stair1price', 'f_stair2amount', 'f_stair2price',
795
- 'f_stair3amount', 'f_stair3price'
796
- ]
797
- },
798
- //排序
799
- orderitem:'f_operate_date desc',
800
- orderFields: {
801
- f_operate_date: 'no'
802
- },
803
- //f_price_name:[],
804
- gasproperties:[],
805
- showinfo: false,
806
- data: {},
807
- getstart:'',
808
- show:false,
809
- rowdata:{},
810
- initres: {
811
- org:[this.$login.f.orgid],
812
- dep:[],
813
- user:[]
814
- },
815
- model: new PagedList('rs/sql/chargeQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`},{
816
- f_pregas: 0,
817
- f_preamount: 0,
818
- f_delaypay: 0,
819
- fee:0,
820
- f_yucun:0,
821
- f_privilege_money: 0,
822
- f_collection: 0,
823
- f_stairamount1:0,
824
- f_stair1fee:0,
825
- f_stair2amount:0,
826
- f_stair2fee:0,
827
- f_stair3amount:0,
828
- f_stair3fee:0,
829
- }),
830
- criteriaShow: false,
831
- orgCondtionStr: '',
832
- // 下拉框
833
- meterbrands: [],
834
- pricenames: [],
835
- prices: [],
836
- area: [],
837
- //默认打印列
838
- defaultfield: [],
839
- //小区
840
- residentialArea: [],
841
- sumsmodel: {},
842
- f_filialeid: this.$login.f.orgid,
843
- wxstate:[
844
- {label: '全部', value: ''},
845
- {label: '已退款', value: `= '3'`},
846
- {label: '未退款', value: `!= '3'`}
847
- ],
848
- privilege_money:[
849
- {label: '全部', value: ''},
850
- {label: '已优惠', value: '> 0'},
851
- {label: '未优惠', value: '= 0'}
852
- ],
853
- showupload:false,
854
- selected:{},
855
- meterbooks:[{label: '全部',value: ''}], //抄表册
856
- inputtores:[{label: '全部',value: ''}],
857
- writecard:[{label: '全部',value: ''},{label: '已写卡',value: '已写卡'},{label: '未写卡',value: '未写卡'}],
858
- bluetoothpackage:[{label: '全部',value: ''},{label: '发送成功',value: '发送成功'},{label: '执行成功',value: '执行成功'}],
859
- allorgid:[],
860
- tempfalg :false,
861
- lastorgstr:'',
862
- // pos设备列表
863
- posEquipment: [{label: '全部',value: ''}],
864
- showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
865
- }
866
- },
867
- ready() {
868
- this.$refs.paged.$refs.cri.model.f_state=['有效']
869
- this.getaddress()
870
- this.getEquipment()
871
- //加载抄表册
872
- this.$MagGetSaleParam.initinputtor();
873
- this.getinputtores();
874
- // this.initres.dep.push(this.$login.f.depids)
875
- readySomething(this).then(() => {
876
- this.$emit('ready')
877
- }).catch((error) => {
878
- this.$emit('error', error)
879
- })
880
- },
881
- methods: {
882
- // 获取设备下拉选
883
- async getEquipment () {
884
- let HttpReset = new HttpResetClass()
885
- let param = {
886
- items: 'f_terminal_name',
887
- tablename: 't_equipment',
888
- condition: `f_equipment_type = 'POS' and f_state = '正常' and f_orgid = '${this.$login.f.orgid}'`,
889
- orderitem: 'id'
890
- }
891
- var data = await HttpReset.load('POST', 'rs/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取设备列表失败!'})
892
- for (let row of data.data) {
893
- this.posEquipment.push({label: row.f_terminal_name, value: row.f_terminal_name})
894
- }
895
- },
896
- ReadIDCard(){
897
- this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
898
- console.log('======',msg)
899
- if(msg.err !== 0){ return}
900
- this.IdCardInfo=msg.strID
901
- })
902
- if(this.IdCardInfo) {
903
- this.search()
904
- }else{
905
- alert("读取失败,找不到用户信息")
906
- }
907
- },
908
- cardBtn (val) {
909
- // this.clear()
910
- cardBtnGen(this, val)
911
- },
912
- async initmeterbook(orgstr){
913
- if(orgstr == null ){
914
- orgstr = this.f_filialeid;
915
- }
916
- //获取新的抄表册,先去清理所有的抄表册
917
- this.$GetSaleParam.meterbooks = [];
918
- //开始加载新的抄表册
919
- await this.$LoadParams.loadMeterBook(orgstr)
920
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
921
- },
922
- async getinputtores () {
923
- // 获取抄表员
924
- let rs = []
925
- if (this.$login.f.f_gasman.length > 0) {
926
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
927
- let temp = {
928
- label: this.$login.f.f_gasman[i].name,
929
- value: this.$login.f.f_gasman[i].name
930
- }
931
- rs.push(temp)
932
- }
933
- }
934
- this.inputtores = [{label: '全部', value: ''}, ...rs]
935
- },
936
- //显示附件
937
- view(row){
938
- this.showupload = true
939
- this.selected= row
940
- },
941
- getotherfooter () {
942
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
943
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
944
- this.other = [];
945
- this.footer = [];
946
- let exportdata = this.getCondition;
947
- let otherInData = [];
948
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
949
- let footerData = [], exportfield = this.getfield;
950
- footerData.push("合计");
951
- let self = this;
952
- for (var field in self.sumsmodel) {
953
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
954
- }
955
- this.footer.push(footerData);
956
- this.other.push(otherInData);
957
- },
958
- async getaddress(){
959
- let HttpReset = new HttpResetClass()
960
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
961
- data: {
962
- condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
963
- }
964
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
965
- console.log('小区',data)
966
- let house = [{label: '全部', value: ''}]
967
- for (let row of data.data){
968
- house.push({label: row.f_residential_area, value: row.f_residential_area})
969
- }
970
- this.residentialArea = house
971
- },
972
- //把数据库查询数据转换为下拉数据
973
- calculate(rows){
974
- let data = []
975
- rows.forEach((row, n) => {
976
- data[n] = {label: row.f_residential_area, value: row.id}
977
- })
978
- return data
979
- },
980
-
981
- search(){
982
-
983
- this.$refs.paged.$refs.cri.search()
984
- },
985
- cancel() {
986
- this.show = false
987
- },
988
- showmsg(obj){
989
- this.rowdata=obj
990
- this.show=true
991
- },
992
- userTypeChange () {
993
- this.gasproperties=[]
994
- if(this.$refs.paged.$refs.cri.model !==null) {
995
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
996
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
997
- }
998
- else{
999
- this.gasproperties =[{label: '全部', value: ''}]
1000
- }
1001
- },
1002
- initParams() {
1003
- // 初始化气表品牌
1004
- let brandArr = []
1005
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
1006
- let temp = {}
1007
- temp.label = item.label
1008
- temp.value = item.value.f_meter_brand
1009
- brandArr.push(temp)
1010
- })
1011
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
1012
- //初始化气表价格
1013
- this.prices = this.$MagGetSaleParam.getPrices();
1014
- },
1015
- selfSearch(args) {
1016
- if (this.data) {
1017
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
1018
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
1019
- }
1020
-
1021
- let f_orgstr = this.orgCondtionStr
1022
- args.condition = `${args.condition} ` + f_orgstr
1023
- if(this.card!=''){
1024
- args.condition+=` and f_card_id='${this.card}'`
1025
- }
1026
- if(this.IdCardInfo!=''){
1027
- args.condition +=` and f_idnumber='${this.IdCardInfo}'`
1028
- }
1029
- this.model.search(args.condition, args.model)
1030
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
1031
- this.card=''
1032
- this.IdCardInfo=''
1033
- },
1034
- clear() {
1035
- //清空部门和人员
1036
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
1037
- //部门和人员变为全选
1038
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
1039
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
1040
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
1041
- this.$refs.paged.$refs.cri.model[key] = []
1042
- })
1043
-
1044
- },
1045
- dealmsg(val,startDate,endDate) {
1046
- val.model = this.model.model
1047
- startDate=this.startDate1
1048
- endDate=this.endDate1
1049
- this.$dispatch('deal-msg', val,startDate,endDate)
1050
- },
1051
- show() {
1052
- this.criteriaShow = true
1053
- },
1054
- hidden() {
1055
- this.criteriaShow = !this.criteriaShow
1056
- },
1057
- async getRes(condition,obj) {
1058
- this.orgCondtionStr = condition
1059
- this.orgname = obj.orgnames[0]
1060
- this.depname = obj.depnames[0]
1061
-
1062
-
1063
- },
1064
- async updateParams() {
1065
- await this.$MagLoadParams.loadParam(this.f_filialeid)
1066
- this.inputtores = [];
1067
- this.inputtores.push({label: "全部", value: ""})
1068
- if(this.allorgid!=null){
1069
- this.allorgid.forEach((res)=>{
1070
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
1071
- })
1072
- }
1073
- this.initParams()
1074
- },
1075
- sort (field, rule) {
1076
- // 将所有排序方式设为不排序,实现相互排斥
1077
- for (let key in this.orderFields) {
1078
- if (key === field) {
1079
- this.orderFields[key] = rule
1080
- } else {
1081
- this.orderFields[key] = 'no'
1082
- }
1083
- }
1084
- // 如果新规则不排序,还原为默认排序
1085
- if (rule === 'no') {
1086
- this.model.paramSource.orderitem = `'${this.orderitem}'`
1087
- } else {
1088
- this.model.paramSource.orderitem = `'${field} ${rule}'`
1089
- }
1090
-
1091
- this.search()
1092
- }
1093
-
1094
- },
1095
- events:{
1096
- 'getidcard'(IdCard){
1097
- // console.log(param)
1098
- this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
1099
- }
1100
- },
1101
- watch: {
1102
- 'model.rows'(val) {
1103
- //如果有合计 这里为true, 其他为false ,反正相反
1104
- this.showbottomsum=true;
1105
- if(val.length === 0){
1106
- this.sumsmodel = {}
1107
- this.showbottomsum=false;
1108
- }
1109
- },
1110
- 'model.rows.length' () {
1111
- this.isSingleUser = this.model.rows
1112
- },
1113
- async 'orgCondtionStr'(val) {
1114
- //更新抄表册
1115
- this.$refs.paged.$refs.cri.model.f_inputtor=[]
1116
- this.$refs.paged.$refs.cri.model.f_meter_book = []
1117
- this.meterbooks = [{label: '全部',value: ''}];
1118
- if(this.lastorgstr != val){
1119
- this.tempfalg = true;
1120
- this.lastorgstr = val;
1121
- }
1122
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
1123
- this.tempfalg = false;
1124
- let a = val.substring(val.indexOf("(")+2)
1125
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
1126
- }
1127
- let res = val.match(/'(.*?)'/)
1128
- console.log('正则提取:',res && res[1])
1129
- if (res) {
1130
- this.f_filialeid = res[1]
1131
- if(res.input !=null){
1132
- let resorgid = res.input.substring(res.input.indexOf("'"));
1133
- if(resorgid!= null && resorgid!=''){
1134
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
1135
- // resorgid = resorgid.replaceAll("'","");
1136
- resorgid = resorgid.replace(/'/g,"");
1137
- this.allorgid = resorgid.split(",")
1138
- }
1139
- }
1140
- this.updateParams()
1141
- }
1142
- },
1143
- sumsmodel:{
1144
- handler: function(val) {
1145
- this.getotherfooter();
1146
- },
1147
- deep: true
1148
- }
1149
- },
1150
- computed: {
1151
- getstart(){
1152
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
1153
- },
1154
- chooserow(){
1155
- let aaa= true
1156
- if(this.$login.r && this.$login.r.includes('打印项选择')){
1157
- aaa = false
1158
- }
1159
- return aaa
1160
- },
1161
- getPricenames() {
1162
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1163
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1164
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1165
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
1166
- if(this.$refs.paged.$refs.cri.model !==null) {
1167
- let rs = []
1168
- let priceArr = []
1169
- if ( pricetype.length >0) {
1170
- let params = {
1171
- f_price_type: pricetype[0],
1172
- filter: this.f_filialeid,
1173
- prices: this.prices
1174
- }
1175
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1176
- let temp = {}
1177
- temp.label = item.label
1178
- temp.value = item.value.f_price_name
1179
- priceArr.push(temp)
1180
- })
1181
- rs = [{label: '全部', value: ''}, ...priceArr]
1182
- }
1183
- if (rs.length === 0) {
1184
- console.log('rs读出来是空')
1185
- this.$refs.paged.$refs.cri.model.f_price_name = ''
1186
- }
1187
- return rs
1188
- }
1189
- },
1190
- getCondition() {
1191
- return {
1192
- startDate: this.$refs.paged.$refs.cri.model.startDate,
1193
- endDate: this.$refs.paged.$refs.cri.model.endDate,
1194
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
1195
- orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"
1196
- }
1197
- },
1198
- getfield() {
1199
- return exportConfig.chargeConfig
1200
- },
1201
- defaultexport() {
1202
- return exportConfig.chargeexportConfig
1203
- },
1204
- pricetypes() {
1205
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
1206
- },
1207
-
1208
- invoiceType() {
1209
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('发票类型查询')]
1210
- },
1211
- usertypes() {
1212
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
1213
- },
1214
- metertypes() {
1215
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
1216
- },
1217
-
1218
- tablestate() {
1219
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
1220
- },
1221
- chargetype() {
1222
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
1223
- },
1224
- payment() {
1225
- return [...this.$appdata.getParam('付款方式查询')]
1226
- },
1227
- banktype() {
1228
- return [...this.$appdata.getParam('支付渠道查询')]
1229
- },
1230
- charge_state() {
1231
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
1232
- },
1233
- bank(){
1234
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('银行名称')]
1235
- }
1236
- }
1237
- }
1238
- </script>
1239
- <style scoped>
1240
- .showbottom{
1241
- height:95%
1242
- }
1243
- </style>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" :class="{showbottom:showbottomsum}" 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="startDate" 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="endDate" 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">
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">
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
+ <button class="button_search button_spacing" v-show="false" @click="$parent.$parent.ReadIDCard()">读取身份证</button>
42
+ <read-card :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-ref:readcard></read-card>
43
+ <button class="button_search button_spacing" @click="search()">查询</button>
44
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
45
+
46
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
+ :defaultselect="$parent.$parent.defaultexport"
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"
55
+ titletable="缴费记录报表" :starthead="$parent.$parent.getstart"
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
+ <res-select-group :show-component="$parent.$parent.resshow" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">收费编号</label>
65
+ <input type="text" style="width:60%" class="input_search" v-model="model.id"
66
+ condition="id = '{}'" placeholder="收费编号">
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body">客户电话</label>
70
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
71
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
72
+ </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">身份证号</label>
75
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
76
+ condition="f_idnumber like '%{}%'" placeholder="身份证号">
77
+ </div>
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">客户地址</label>
80
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
81
+ condition="f_address like '%{}%'" placeholder='客户地址'>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
85
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
86
+ condition="f_residential_area like '%{}%'" placeholder='小区'>
87
+ </div>
88
+ <div class="col-sm-2 form-group">
89
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
90
+ <v-select :value.sync="model.f_payment"
91
+ v-model="model.f_payment"
92
+ :options='$parent.$parent.payment' placeholder='请选择'
93
+ condition="f_payment = '{}'"
94
+ close-on-select></v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body" title="参数:支付渠道查询">支付渠道</label>
98
+ <v-select :value.sync="model.f_bank_type"
99
+ v-model="model.f_bank_type"
100
+ :options='$parent.$parent.banktype' placeholder='请选择'
101
+ condition="f_bank_type = '{}'"
102
+ close-on-select></v-select>
103
+ </div>
104
+ <div class="col-sm-2 form-group">
105
+ <label class="font_normal_body">收费类型</label>
106
+ <!-- <v-select :value.sync="model.f_type"
107
+ v-model="model.f_type"
108
+ :options='$parent.$parent.chargetype' placeholder='请选择'
109
+ condition="f_type = '{}'"
110
+ close-on-select></v-select>-->
111
+ <v-select :value.sync="model.f_type"
112
+ :options='$parent.$parent.chargetype' placeholder='请选择'
113
+ close-on-select clear-button
114
+ condition="f_type = '{}'"
115
+ v-model="model.f_type"></v-select>
116
+ </div>
117
+ <div class="col-sm-2 form-group">
118
+ <label class="font_normal_body">客户类型</label>
119
+ <v-select :value.sync="model.f_user_type"
120
+ @change="$parent.$parent.userTypeChange()"
121
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
122
+ condition="f_user_type = '{}'"
123
+ close-on-select></v-select>
124
+ </div>
125
+ <div class="col-sm-2 form-group">
126
+ <label class="font_normal_body">用气性质</label>
127
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
128
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
129
+ condition="f_gasproperties = '{}'"
130
+ close-on-select></v-select>
131
+ </div>
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body">气价类型</label>
134
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
135
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
136
+ close-on-select v-ref:type>
137
+ </v-select>
138
+ </div>
139
+ <div class="col-sm-2 form-group">
140
+ <label class="font_normal_body">气价名称</label>
141
+ <v-select :value.sync="model.f_price_name"
142
+ v-model="model.f_price_name"
143
+ :options="$parent.$parent.getPricenames"
144
+ condition="f_price_name = '{}'"
145
+ close-on-select></v-select>
146
+ </div>
147
+ <div class="col-sm-2 form-group">
148
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>
149
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"
150
+ condition="f_user_id = '{}'" placeholder='表编号'>
151
+ </div>
152
+ <div class="col-sm-2 form-group">
153
+ <label class="font_normal_body">气表类型</label>
154
+ <v-select :value.sync="model.f_meter_type"
155
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
156
+ condition="f_meter_type = '{}'"
157
+ close-on-select></v-select>
158
+ </div>
159
+ <div class="col-sm-2 form-group">
160
+ <label class="font_normal_body">气表品牌</label>
161
+ <v-select :value.sync="model.f_meter_brand"
162
+ v-model="model.f_meter_brand"
163
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
164
+ condition="f_meter_brand = '{}'"
165
+ close-on-select></v-select>
166
+ </div>
167
+
168
+ <div class="col-sm-2 form-group">
169
+ <label class="font_normal_body">收费状态</label>
170
+ <v-select :value.sync="model.f_state"
171
+ v-model="model.f_state"
172
+ :options='$parent.$parent.charge_state' placeholder='请选择'
173
+ condition="f_state = '{}'"
174
+ close-on-select></v-select>
175
+ </div>
176
+ <div class="col-sm-2 form-group">
177
+ <label class="font_normal_body">银行名称</label>
178
+ <v-select :value.sync="model.f_bank_name"
179
+ v-model="model.f_bank_name"
180
+ :options='$parent.$parent.bank' placeholder='请选择'
181
+ condition="f_bank_name = '{}'"
182
+ close-on-select></v-select>
183
+ </div>
184
+ <div class="col-sm-2 form-group">
185
+ <label class="font_normal_body">是否优惠</label>
186
+ <v-select :value.sync="model.f_privilege_money"
187
+ v-model="model.f_privilege_money"
188
+ :options='$parent.$parent.privilege_money' placeholder='请选择'
189
+ condition="f_privilege_money {}"
190
+ close-on-select></v-select>
191
+ </div>
192
+ <div class="col-sm-2 form-group">
193
+ <label class="font_normal_body">收&ensp;据&ensp;号</label>
194
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
195
+ v-model="model.f_bill_number_big" condition="f_bill_number >= {}" placeholder='大于等于'>
196
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
197
+ v-model="model.f_bill_number_small" condition="f_bill_number <= {}" placeholder='小于等于'>
198
+ </div>
199
+ <div class="col-sm-2 form-group">
200
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;流水号</label>
201
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_serial_id"
202
+ condition="f_serial_id = '{}'" placeholder='流水号'>
203
+ </div>
204
+ <div class="col-sm-2 form-group">
205
+ <label class="font_normal_body">发票号码</label>
206
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_invoice_num"
207
+ condition="f_invoice_num = '{}'" placeholder='发票号码'>
208
+ </div>
209
+ <div class="col-sm-2 form-group">
210
+ <label class="font_normal_body" title="发票类型查询">发票类型</label>
211
+ <v-select :value.sync="model.f_invoice_type"
212
+ v-model="model.f_invoice_type"
213
+ :options='$parent.$parent.invoiceType' placeholder='请选择'
214
+ condition="f_invoice_type = '{}'"
215
+ close-on-select :value-single="true" :search="false">
216
+ </v-select>
217
+ </div>
218
+ <div class="col-sm-2 form-group">
219
+ <label class="font_normal_body">开&ensp;票&ensp;人</label>
220
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_invoiceuse_operator"
221
+ condition="f_invoiceuse_operator like '%{}%'" placeholder='开票人'>
222
+ </div>
223
+ <div class="col-sm-2 form-group">
224
+ <label for="startDate" class="font_normal_body">开票时间</label>
225
+ <datepicker id="startDate1" placeholder="开始日期" style="width:60%"
226
+ v-model="model.invoice_startDate"
227
+ :value.sync="model.invoice_startDate"
228
+ :format="'yyyy-MM-dd'"
229
+ :show-reset-button="true"
230
+ condition="f_invoice_date >= '{}'">
231
+ </datepicker>
232
+ </div>
233
+ <div class="col-sm-2 form-group">
234
+ <label for="endDate" class="font_normal_body">开票时间</label>
235
+ <datepicker id="endDate1" placeholder="结束日期" style="width:60%"
236
+ v-model="model.invoice_endDate"
237
+ :value.sync="model.invoice_endDate"
238
+ :format="'yyyy-MM-dd'"
239
+ :show-reset-button="true"
240
+ condition="f_invoice_date <= '{}'">
241
+ </datepicker>
242
+ </div>
243
+ <div class="col-sm-2 form-group">
244
+ <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
245
+ <v-select :value.sync="model.f_inputtor"
246
+ v-model="model.f_inputtor"
247
+ :options='$parent.$parent.inputtores' placeholder='请选择'
248
+ condition="f_inputtor = '{}'"
249
+ close-on-select :search="false">
250
+ </v-select>
251
+ </div>
252
+ <div class="col-sm-2 form-group">
253
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
254
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
255
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
256
+ style="width:60%"
257
+ close-on-select
258
+ condition="f_meter_book_num = '{}'"></v-select>
259
+ </div>
260
+ <div class="col-sm-2 form-group">
261
+ <label class="font_normal_body">写卡状态</label>
262
+ <v-select :value.sync="model.f_write_card" v-model="model.f_write_card"
263
+ :options='$parent.$parent.writecard' placeholder='写卡状态'
264
+ style="width:60%"
265
+ close-on-select
266
+ condition="f_write_card = '{}'"></v-select>
267
+ </div>
268
+ <div class="col-sm-2 form-group">
269
+ <label class="font_normal_body">街&ensp;&ensp;&ensp;&ensp;道</label>
270
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_street"
271
+ condition="f_street like '%{}%'" placeholder='街道'>
272
+ </div>
273
+ <div class="col-sm-2 form-group">
274
+ <label class="font_normal_body">数&ensp;据&ensp;包</label>
275
+ <v-select :value.sync="model.f_bluetooth_package" v-model="model.f_bluetooth_package"
276
+ :options='$parent.$parent.bluetoothpackage' placeholder='数据包状态'
277
+ style="width:60%"
278
+ close-on-select
279
+ condition="f_bluetooth_package = '{}'"></v-select>
280
+ </div>
281
+ <div class="col-sm-2 form-group">
282
+ <label class="font_normal_body">pos设备&nbsp;</label>
283
+ <v-select :value.sync="model.f_terminal_name"
284
+ v-model="model.f_terminal_name"
285
+ :options='$parent.$parent.posEquipment' placeholder='请选择'
286
+ condition="f_operator = '{}'"
287
+ close-on-select></v-select>
288
+ </div>
289
+ </div>
290
+ </div>
291
+ </criteria>
292
+
293
+ <data-grid :model="model" partial='list' class="list_area table_sy" style="height: 95%" v-ref:grid>
294
+ <template partial='head'>
295
+ <tr>
296
+ <th>
297
+ <nobr>收费编号</nobr>
298
+ </th>
299
+ <th>
300
+ <!-- <nobr>客户编号</nobr>-->
301
+ <data-order field="f_userinfo_code" name="客户编号"
302
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
303
+ </th>
304
+ <th><nobr>小区</nobr></th>
305
+ <th><nobr>街道</nobr></th>
306
+ <th>
307
+ <nobr>客户名称</nobr>
308
+ </th>
309
+ <th>
310
+ <nobr>片区</nobr>
311
+ </th>
312
+ <th>
313
+ <nobr>小区</nobr>
314
+ </th>
315
+ <th>
316
+ <!-- <nobr>客户地址</nobr>-->
317
+ <data-order field="f_address" name="客户地址"
318
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></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
+ <th>
339
+ <nobr>气量</nobr>
340
+ </th>
341
+ <th>
342
+ <nobr>金额</nobr>
343
+ </th>
344
+ <th>
345
+ <nobr>收款</nobr>
346
+ </th>
347
+ <th>
348
+ <nobr>燃气费</nobr>
349
+ </th>
350
+ <th>
351
+ <nobr>清缴金额</nobr>
352
+ </th>
353
+ <th>
354
+ <nobr>预存金额</nobr>
355
+ </th>
356
+ <th>
357
+ <nobr>上期结余</nobr>
358
+ </th>
359
+ <th>
360
+ <nobr>滞纳金</nobr>
361
+ </th>
362
+ <!--<th>-->
363
+ <!--&lt;!&ndash; <nobr>所属年月</nobr>&ndash;&gt;-->
364
+ <!--<data-order field="f_rest_date" name="所属年月"-->
365
+ <!--:order.sync="$parent.$parent.$parent.orderFields.f_rest_date"></data-order>-->
366
+
367
+ <!--</th>-->
368
+ <th>
369
+ <!-- <nobr>收费日期</nobr>-->
370
+ <data-order field="f_operate_date" name="收费日期"
371
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
372
+ </th>
373
+ <th>
374
+ <nobr>优惠金额</nobr>
375
+ </th>
376
+ <th>
377
+ <nobr>本期结余</nobr>
378
+ </th>
379
+ <th>
380
+ <nobr>付款方式</nobr>
381
+ </th>
382
+ <th>
383
+ <nobr>写卡状态</nobr>
384
+ </th>
385
+ <th>
386
+ <nobr>支付渠道</nobr>
387
+ </th>
388
+ <th>
389
+ <nobr>银行名称</nobr>
390
+ </th>
391
+ <th>
392
+ <nobr>收费类型</nobr>
393
+ </th>
394
+ <th>
395
+ <nobr>终端号</nobr>
396
+ </th>
397
+ <th>
398
+ <nobr>蓝牙数据包状态</nobr>
399
+ </th>
400
+ <th>
401
+ <nobr>状态</nobr>
402
+ </th>
403
+
404
+ <th>
405
+ <nobr>备注</nobr>
406
+ </th>
407
+ <th>
408
+ <nobr>补打次数</nobr>
409
+ </th>
410
+ <th>
411
+ <nobr>人员</nobr>
412
+ </th>
413
+ <th>
414
+ <nobr>部门</nobr>
415
+ </th>
416
+ <th>
417
+ <nobr>公司</nobr>
418
+ </th>
419
+ <th>
420
+ <nobr>流水号</nobr>
421
+ </th>
422
+ <th>
423
+ <nobr>收据号</nobr>
424
+ </th>
425
+ <th>
426
+ <nobr>业务单号</nobr>
427
+ </th>
428
+ <th>
429
+ <nobr>发票号码</nobr>
430
+ </th>
431
+ <th>
432
+ <nobr>发票类型</nobr>
433
+ </th>
434
+ <th>
435
+ <nobr>开票人</nobr>
436
+ </th>
437
+ <th>
438
+ <nobr>开票时间</nobr>
439
+ </th>
440
+ <th>
441
+ <nobr>累计写卡气量</nobr>
442
+ </th>
443
+ <th>
444
+ <nobr>实际写卡金额</nobr>
445
+ </th>
446
+ <th>
447
+ <nobr>冲正人</nobr>
448
+ </th>
449
+ <th>
450
+ <nobr>冲正时间</nobr>
451
+ </th>
452
+ <th>
453
+ <nobr>一阶气量</nobr>
454
+ </th>
455
+ <th>
456
+ <nobr>一阶单价</nobr>
457
+ </th>
458
+ <th>
459
+ <nobr>一阶气费</nobr>
460
+ </th>
461
+ <th>
462
+ <nobr>二阶气量</nobr>
463
+ </th>
464
+ <th>
465
+ <nobr>二阶单价</nobr>
466
+ </th>
467
+ <th>
468
+ <nobr>二阶气费</nobr>
469
+ </th>
470
+ <th>
471
+ <nobr>三阶气量</nobr>
472
+ </th>
473
+ <th>
474
+ <nobr>三阶单价</nobr>
475
+ </th>
476
+ <th>
477
+ <nobr>三阶气费</nobr>
478
+ </th>
479
+ <th><nobr>附件</nobr></th>
480
+ </tr>
481
+ </template>
482
+ <template partial='body'>
483
+ <td style="text-align: center;">
484
+ <nobr>{{row.id}}</nobr>
485
+ </td>
486
+ <td style="text-align: center;"><nobr>
487
+ <nobr>{{row.f_userinfo_code}}</nobr>
488
+ </nobr> </td>
489
+ <td style="text-align: center;">
490
+ <nobr>{{row.f_residential_area}}</nobr>
491
+ </td>
492
+ <td style="text-align: center;">
493
+ <nobr>{{row.f_street}}</nobr>
494
+ </td>
495
+ <td style="text-align: center;">
496
+ <nobr>{{row.f_user_name}}</nobr>
497
+ </td>
498
+ <td style="text-align: center;">
499
+ <nobr>{{row.f_zones}}</nobr>
500
+ </td>
501
+ <td style="text-align: center;">
502
+ <nobr>{{row.f_residential_area}}</nobr>
503
+ </td>
504
+ <td style="text-align: center;">
505
+ <nobr>{{row.f_address}}</nobr>
506
+ </td>
507
+ <td style="text-align: center;">
508
+ <nobr>{{row.f_user_type}}</nobr>
509
+ </td>
510
+ <td style="text-align: center;">
511
+ <nobr>{{row.f_gasproperties}}</nobr>
512
+ </td>
513
+ <td style="text-align: center;">
514
+ <nobr>{{row.f_meternumber}}</nobr>
515
+ </td>
516
+ <td style="text-align: center;">
517
+ <nobr>{{row.f_meter_brand}}</nobr>
518
+ </td>
519
+ <td style="text-align: center;">
520
+ <nobr>{{row.f_card_id}}</nobr>
521
+ </td>
522
+ <td style="text-align: center;">
523
+ <nobr>{{row.f_times}}</nobr>
524
+ </td>
525
+ <td style="text-align: center;">
526
+ <nobr>{{row.f_pregas}}</nobr>
527
+ </td>
528
+ <td style="text-align: center;">
529
+ <nobr>{{row.fee}}</nobr>
530
+ </td>
531
+ <td style="text-align: center;">
532
+ <nobr>{{row.f_collection}}</nobr>
533
+ </td>
534
+ <td style="text-align: center;">
535
+ <nobr>{{row.f_preamount}}</nobr>
536
+ </td>
537
+ <td style="text-align: center;">
538
+ <nobr>{{row.f_charge_money}}</nobr>
539
+ </td>
540
+ <td style="text-align: center;">
541
+ <nobr>{{row.f_yucun}}</nobr>
542
+ </td>
543
+ <td style="text-align: center;">
544
+ <nobr v-if="row.f_meter_type === '物联网表'">{{row.f_balance_amount}}</nobr>
545
+ <nobr v-else>{{row.f_balance}}</nobr>
546
+ </td>
547
+ <td style="text-align: center;">
548
+ <nobr>{{row.f_delaypay}}</nobr>
549
+ </td>
550
+ <!--<td style="text-align: center;">-->
551
+ <!--<nobr>{{row.f_rest_date}}</nobr>-->
552
+ <!--</td>-->
553
+ <td style="text-align: center;">
554
+ <nobr>{{row.f_operate_date}}</nobr>
555
+ </td>
556
+ <td style="text-align: center;">
557
+ <nobr>{{row.f_privilege_money}}</nobr>
558
+ </td>
559
+
560
+
561
+ <td style="text-align: center;">
562
+ <nobr v-if="row.f_meter_type === '物联网表'">{{row.f_curbalance_amount}}</nobr>
563
+ <nobr v-else>{{row.f_curbalance}}</nobr>
564
+ </td>
565
+ <td style="text-align: center;">
566
+ <nobr>{{row.f_payment}}</nobr>
567
+ </td>
568
+ <td style="text-align: center;">
569
+ <nobr>{{row.f_write_card}}</nobr>
570
+ </td>
571
+ <td style="text-align: center;">
572
+ <nobr>{{row.f_bank_type}}</nobr>
573
+ </td>
574
+ <td style="text-align: center;">
575
+ <nobr>{{row.f_bank_name}}</nobr>
576
+ </td>
577
+ <td style="text-align: center;">
578
+ <nobr>{{row.f_type}}</nobr>
579
+ </td>
580
+ <td style="text-align: center;">
581
+ <nobr>{{row.f_terminal_num}}</nobr>
582
+ </td>
583
+ <td style="text-align: center;">
584
+ <nobr>{{row.f_bluetooth_package}}</nobr>
585
+ </td>
586
+ <td style="text-align: center;">
587
+ <nobr>{{row.f_state}}</nobr>
588
+ </td>
589
+
590
+ <td style="text-align: center;">
591
+ <nobr>{{row.f_comments}}</nobr>
592
+ </td>
593
+ <td style="text-align: center;">
594
+ <nobr>{{row.filltimes}}</nobr>
595
+ </td>
596
+ <td style="text-align: center;">
597
+ <nobr>{{row.f_operator}}</nobr>
598
+ </td>
599
+ <td style="text-align: center;">
600
+ <nobr>{{row.f_depname}}</nobr>
601
+ </td>
602
+ <td style="text-align: center;">
603
+ <nobr>{{row.f_orgname}}</nobr>
604
+ </td>
605
+ <td style="text-align: center;">
606
+ <nobr>{{row.f_serial_id}}</nobr>
607
+ </td>
608
+ <td style="text-align: center;">
609
+ <nobr>{{row.f_bill_number}}</nobr>
610
+ </td>
611
+ <td style="text-align: center;">
612
+ <nobr>{{row.f_serial_number}}</nobr>
613
+ </td>
614
+ <td style="text-align: center;">
615
+ <nobr>{{row.f_invoice_num}}</nobr>
616
+ </td>
617
+ <td style="text-align: center;">
618
+ <nobr>{{row.f_invoice_type}}</nobr>
619
+ </td>
620
+ <td style="text-align: center;">
621
+ <nobr>{{row.f_invoiceuse_operator}}</nobr>
622
+ </td>
623
+ <td style="text-align: center;">
624
+ <nobr>{{row.f_invoice_date}}</nobr>
625
+ </td>
626
+ <td style="text-align: center;">
627
+ <nobr>{{row.f_write_totalgas}}</nobr>
628
+ </td>
629
+ <td style="text-align: center;">
630
+ <nobr>{{row.f_write_money}}</nobr>
631
+ </td>
632
+ <td style="text-align: center;">
633
+ <nobr>{{row.f_corr_operator}}</nobr>
634
+ </td>
635
+ <td style="text-align: center;">
636
+ <nobr>{{row.f_corr_operate_date}}</nobr>
637
+ </td>
638
+ <td style="text-align: center;">
639
+ <nobr>{{row.f_stairamount1}}</nobr>
640
+ </td>
641
+ <td style="text-align: center;">
642
+ <nobr>{{row.f_stair1price}}</nobr>
643
+ </td>
644
+ <td style="text-align: center;">
645
+ <nobr>{{(row.f_stair1fee - 0).toFixed(2)}}</nobr>
646
+ </td>
647
+ <td style="text-align: center;">
648
+ <nobr>{{row.f_stair2amount}}</nobr>
649
+ </td>
650
+ <td style="text-align: center;">
651
+ <nobr>{{row.f_stair2price}}</nobr>
652
+ </td>
653
+ <td style="text-align: center;">
654
+ <nobr>{{(row.f_stair2fee - 0).toFixed(2)}}</nobr>
655
+ </td>
656
+ <td style="text-align: center;">
657
+ <nobr>{{row.f_stair3amount}}</nobr>
658
+ </td>
659
+ <td style="text-align: center;">
660
+ <nobr>{{row.f_stair3price}}</nobr>
661
+ </td>
662
+ <td style="text-align: center;">
663
+ <nobr>{{(row.f_stair3fee - 0).toFixed(2)}}</nobr>
664
+ </td>
665
+ <td style="text-align: center;"><nobr>
666
+ <button style=" height: 28px;line-height: 16px;" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
667
+ </nobr></td>
668
+ </template>
669
+ <template partial='foot'></template>
670
+ </data-grid>
671
+ </criteria-paged>
672
+ <table class="table-hover">
673
+ <tr style="position: relative" class="table-bordered">
674
+ <td
675
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
676
+ 汇总信息
677
+ </td>
678
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
679
+ 气量合计:&emsp;{{sumsmodel.f_pregas}}
680
+ </td>
681
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
682
+ 应交金额合计:&emsp;{{sumsmodel.fee}}
683
+ </td>
684
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
685
+ 滞纳金合计:&emsp;{{sumsmodel.f_delaypay}}
686
+ </td>
687
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
688
+ 燃气费合计:&emsp;{{sumsmodel.f_preamount}}
689
+ </td>
690
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
691
+ 预存金额合计:&emsp;{{sumsmodel.f_yucun}}
692
+ </td>
693
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
694
+ 收款合计:&emsp;{{sumsmodel.f_collection}}
695
+ </td>
696
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
697
+ 优惠合计:&emsp;{{sumsmodel.f_privilege_money}}
698
+ </td>
699
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
700
+ 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}
701
+ </td>
702
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
703
+ 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
704
+ </td>
705
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
706
+ 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
707
+ </td>
708
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
709
+ 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
710
+ </td>
711
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
712
+ 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
713
+ </td>
714
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
715
+ 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
716
+ </td>
717
+ </tr>
718
+ </table>
719
+ </div>
720
+ <!--<div v-if="show">-->
721
+ <!--<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>-->
722
+ <!--</div>-->
723
+ </div>
724
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
725
+ <article slot="modal-body">
726
+ <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="%收费" :isremark="false" style="width:auto" ></upload>
727
+ </article>
728
+ <footer slot="modal-footer" class="modal-footer">
729
+ </footer>
730
+ </modal>
731
+ </div>
732
+ <high-meter-idcard :show.sync="false" v-ref:highcard ></high-meter-idcard>
733
+ </template>
734
+
735
+ <script>
736
+ import {HttpResetClass, PagedList} from 'vue-client'
737
+ import exportConfig from './config/exportConfig'
738
+ let cardBtnGen = async function (self, val) {
739
+ self.cardInfo = val.data
740
+
741
+ // 判断读卡是否需要卡密码
742
+ console.log('读卡上的信息', self.cardInfo)
743
+
744
+ if (self.cardInfo.NewParam) {
745
+ if (self.cardInfo.NewParam.error) {
746
+ if (self.cardInfo.NewParam.error === '0001') {
747
+ // 需要重新读卡并传卡密码
748
+ if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
749
+ self.readCardParam = self.model.rows[0].f_card_password
750
+ self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
751
+ } else {
752
+ self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
753
+ return
754
+ }
755
+ }
756
+ }
757
+ }
758
+ self.card=self.cardInfo.CardID
759
+ self.search()
760
+ }
761
+ let readySomething = async function (self) {
762
+ //加载抄表册
763
+ self.initmeterbook();
764
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
765
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
766
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
767
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
768
+ // self.$refs.paged.$refs.cri.model.f_state=['有效'];
769
+ // self.$refs.paged.$refs.cri.search()
770
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
771
+ await self.$MagLoadParams.loadParam()
772
+ self.initParams()
773
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
774
+ }
775
+ export default {
776
+ props:['data'],
777
+ title: '收费查询',
778
+ data() {
779
+ return {
780
+ IdCardInfo:'',
781
+ card:'',
782
+ isSingleUser: null,
783
+ startDate1:'',
784
+ endDate1:'',
785
+ resshow:['company','department','operator','slicearea'],
786
+ other:[],
787
+
788
+ footer:[],
789
+ config: {
790
+ defaultPrint: [
791
+ 'f_residential_area', 'id', 'f_userinfo_code', 'f_user_name', 'f_address', 'f_user_type',
792
+ 'f_gasproperties', 'f_pregas', 'fee', 'f_collection', 'f_balance',
793
+ 'f_curbalance', 'f_type', 'f_payment', 'f_operate_date', 'f_operator',
794
+ 'f_stairamount1', 'f_stair1price', 'f_stair2amount', 'f_stair2price',
795
+ 'f_stair3amount', 'f_stair3price'
796
+ ]
797
+ },
798
+ //排序
799
+ orderitem:'f_operate_date desc',
800
+ orderFields: {
801
+ f_operate_date: 'no'
802
+ },
803
+ //f_price_name:[],
804
+ gasproperties:[],
805
+ showinfo: false,
806
+ data: {},
807
+ getstart:'',
808
+ show:false,
809
+ rowdata:{},
810
+ initres: {
811
+ org:[this.$login.f.orgid],
812
+ dep:[],
813
+ user:[]
814
+ },
815
+ model: new PagedList('rs/sql/chargeQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`},{
816
+ f_pregas: 0,
817
+ f_preamount: 0,
818
+ f_delaypay: 0,
819
+ fee:0,
820
+ f_yucun:0,
821
+ f_privilege_money: 0,
822
+ f_collection: 0,
823
+ f_stairamount1:0,
824
+ f_stair1fee:0,
825
+ f_stair2amount:0,
826
+ f_stair2fee:0,
827
+ f_stair3amount:0,
828
+ f_stair3fee:0,
829
+ }),
830
+ criteriaShow: false,
831
+ orgCondtionStr: '',
832
+ // 下拉框
833
+ meterbrands: [],
834
+ pricenames: [],
835
+ prices: [],
836
+ area: [],
837
+ //默认打印列
838
+ defaultfield: [],
839
+ //小区
840
+ residentialArea: [],
841
+ sumsmodel: {},
842
+ f_filialeid: this.$login.f.orgid,
843
+ wxstate:[
844
+ {label: '全部', value: ''},
845
+ {label: '已退款', value: `= '3'`},
846
+ {label: '未退款', value: `!= '3'`}
847
+ ],
848
+ privilege_money:[
849
+ {label: '全部', value: ''},
850
+ {label: '已优惠', value: '> 0'},
851
+ {label: '未优惠', value: '= 0'}
852
+ ],
853
+ showupload:false,
854
+ selected:{},
855
+ meterbooks:[{label: '全部',value: ''}], //抄表册
856
+ inputtores:[{label: '全部',value: ''}],
857
+ writecard:[{label: '全部',value: ''},{label: '已写卡',value: '已写卡'},{label: '未写卡',value: '未写卡'}],
858
+ bluetoothpackage:[{label: '全部',value: ''},{label: '发送成功',value: '发送成功'},{label: '执行成功',value: '执行成功'}],
859
+ allorgid:[],
860
+ tempfalg :false,
861
+ lastorgstr:'',
862
+ // pos设备列表
863
+ posEquipment: [{label: '全部',value: ''}],
864
+ showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
865
+ }
866
+ },
867
+ ready() {
868
+ this.$refs.paged.$refs.cri.model.f_state=['有效']
869
+ this.getaddress()
870
+ this.getEquipment()
871
+ //加载抄表册
872
+ this.$MagGetSaleParam.initinputtor();
873
+ this.getinputtores();
874
+ // this.initres.dep.push(this.$login.f.depids)
875
+ readySomething(this).then(() => {
876
+ this.$emit('ready')
877
+ }).catch((error) => {
878
+ this.$emit('error', error)
879
+ })
880
+ },
881
+ methods: {
882
+ // 获取设备下拉选
883
+ async getEquipment () {
884
+ let HttpReset = new HttpResetClass()
885
+ let param = {
886
+ items: 'f_terminal_name',
887
+ tablename: 't_equipment',
888
+ condition: `f_equipment_type = 'POS' and f_state = '正常' and f_orgid = '${this.$login.f.orgid}'`,
889
+ orderitem: 'id'
890
+ }
891
+ var data = await HttpReset.load('POST', 'rs/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取设备列表失败!'})
892
+ for (let row of data.data) {
893
+ this.posEquipment.push({label: row.f_terminal_name, value: row.f_terminal_name})
894
+ }
895
+ },
896
+ ReadIDCard(){
897
+ this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
898
+ console.log('======',msg)
899
+ if(msg.err !== 0){ return}
900
+ this.IdCardInfo=msg.strID
901
+ })
902
+ if(this.IdCardInfo) {
903
+ this.search()
904
+ }else{
905
+ alert("读取失败,找不到用户信息")
906
+ }
907
+ },
908
+ cardBtn (val) {
909
+ // this.clear()
910
+ cardBtnGen(this, val)
911
+ },
912
+ async initmeterbook(orgstr){
913
+ if(orgstr == null ){
914
+ orgstr = this.f_filialeid;
915
+ }
916
+ //获取新的抄表册,先去清理所有的抄表册
917
+ this.$GetSaleParam.meterbooks = [];
918
+ //开始加载新的抄表册
919
+ await this.$LoadParams.loadMeterBook(orgstr)
920
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
921
+ },
922
+ async getinputtores () {
923
+ // 获取抄表员
924
+ let rs = []
925
+ if (this.$login.f.f_gasman.length > 0) {
926
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
927
+ let temp = {
928
+ label: this.$login.f.f_gasman[i].name,
929
+ value: this.$login.f.f_gasman[i].name
930
+ }
931
+ rs.push(temp)
932
+ }
933
+ }
934
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
935
+ },
936
+ //显示附件
937
+ view(row){
938
+ this.showupload = true
939
+ this.selected= row
940
+ },
941
+ getotherfooter () {
942
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
943
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
944
+ this.other = [];
945
+ this.footer = [];
946
+ let exportdata = this.getCondition;
947
+ let otherInData = [];
948
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
949
+ let footerData = [], exportfield = this.getfield;
950
+ footerData.push("合计");
951
+ let self = this;
952
+ for (var field in self.sumsmodel) {
953
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
954
+ }
955
+ this.footer.push(footerData);
956
+ this.other.push(otherInData);
957
+ },
958
+ async getaddress(){
959
+ let HttpReset = new HttpResetClass()
960
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
961
+ data: {
962
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
963
+ }
964
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
965
+ console.log('小区',data)
966
+ let house = [{label: '全部', value: ''}]
967
+ for (let row of data.data){
968
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
969
+ }
970
+ this.residentialArea = house
971
+ },
972
+ //把数据库查询数据转换为下拉数据
973
+ calculate(rows){
974
+ let data = []
975
+ rows.forEach((row, n) => {
976
+ data[n] = {label: row.f_residential_area, value: row.id}
977
+ })
978
+ return data
979
+ },
980
+
981
+ search(){
982
+
983
+ this.$refs.paged.$refs.cri.search()
984
+ },
985
+ cancel() {
986
+ this.show = false
987
+ },
988
+ showmsg(obj){
989
+ this.rowdata=obj
990
+ this.show=true
991
+ },
992
+ userTypeChange () {
993
+ this.gasproperties=[]
994
+ if(this.$refs.paged.$refs.cri.model !==null) {
995
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
996
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
997
+ }
998
+ else{
999
+ this.gasproperties =[{label: '全部', value: ''}]
1000
+ }
1001
+ },
1002
+ initParams() {
1003
+ // 初始化气表品牌
1004
+ let brandArr = []
1005
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
1006
+ let temp = {}
1007
+ temp.label = item.label
1008
+ temp.value = item.value.f_meter_brand
1009
+ brandArr.push(temp)
1010
+ })
1011
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
1012
+ //初始化气表价格
1013
+ this.prices = this.$MagGetSaleParam.getPrices();
1014
+ },
1015
+ selfSearch(args) {
1016
+ if (this.data) {
1017
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
1018
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
1019
+ }
1020
+
1021
+ let f_orgstr = this.orgCondtionStr
1022
+ args.condition = `${args.condition} ` + f_orgstr
1023
+ if(this.card!=''){
1024
+ args.condition+=` and f_card_id='${this.card}'`
1025
+ }
1026
+ if(this.IdCardInfo!=''){
1027
+ args.condition +=` and f_idnumber='${this.IdCardInfo}'`
1028
+ }
1029
+ this.model.search(args.condition, args.model)
1030
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
1031
+ this.card=''
1032
+ this.IdCardInfo=''
1033
+ },
1034
+ clear() {
1035
+ //清空部门和人员
1036
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
1037
+ //部门和人员变为全选
1038
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
1039
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
1040
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
1041
+ this.$refs.paged.$refs.cri.model[key] = []
1042
+ })
1043
+
1044
+ },
1045
+ dealmsg(val,startDate,endDate) {
1046
+ val.model = this.model.model
1047
+ startDate=this.startDate1
1048
+ endDate=this.endDate1
1049
+ this.$dispatch('deal-msg', val,startDate,endDate)
1050
+ },
1051
+ show() {
1052
+ this.criteriaShow = true
1053
+ },
1054
+ hidden() {
1055
+ this.criteriaShow = !this.criteriaShow
1056
+ },
1057
+ async getRes(condition,obj) {
1058
+ this.orgCondtionStr = condition
1059
+ this.orgname = obj.orgnames[0]
1060
+ this.depname = obj.depnames[0]
1061
+
1062
+
1063
+ },
1064
+ async updateParams() {
1065
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
1066
+ this.inputtores = [];
1067
+ this.inputtores.push({label: "全部", value: ""})
1068
+ if(this.allorgid!=null){
1069
+ this.allorgid.forEach((res)=>{
1070
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
1071
+ })
1072
+ }
1073
+ this.initParams()
1074
+ },
1075
+ sort (field, rule) {
1076
+ // 将所有排序方式设为不排序,实现相互排斥
1077
+ for (let key in this.orderFields) {
1078
+ if (key === field) {
1079
+ this.orderFields[key] = rule
1080
+ } else {
1081
+ this.orderFields[key] = 'no'
1082
+ }
1083
+ }
1084
+ // 如果新规则不排序,还原为默认排序
1085
+ if (rule === 'no') {
1086
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
1087
+ } else {
1088
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
1089
+ }
1090
+
1091
+ this.search()
1092
+ }
1093
+
1094
+ },
1095
+ events:{
1096
+ 'getidcard'(IdCard){
1097
+ // console.log(param)
1098
+ this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
1099
+ }
1100
+ },
1101
+ watch: {
1102
+ 'model.rows'(val) {
1103
+ //如果有合计 这里为true, 其他为false ,反正相反
1104
+ this.showbottomsum=true;
1105
+ if(val.length === 0){
1106
+ this.sumsmodel = {}
1107
+ this.showbottomsum=false;
1108
+ }
1109
+ },
1110
+ 'model.rows.length' () {
1111
+ this.isSingleUser = this.model.rows
1112
+ },
1113
+ async 'orgCondtionStr'(val) {
1114
+ //更新抄表册
1115
+ this.$refs.paged.$refs.cri.model.f_inputtor=[]
1116
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
1117
+ this.meterbooks = [{label: '全部',value: ''}];
1118
+ if(this.lastorgstr != val){
1119
+ this.tempfalg = true;
1120
+ this.lastorgstr = val;
1121
+ }
1122
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
1123
+ this.tempfalg = false;
1124
+ let a = val.substring(val.indexOf("(")+2)
1125
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
1126
+ }
1127
+ let res = val.match(/'(.*?)'/)
1128
+ console.log('正则提取:',res && res[1])
1129
+ if (res) {
1130
+ this.f_filialeid = res[1]
1131
+ if(res.input !=null){
1132
+ let resorgid = res.input.substring(res.input.indexOf("'"));
1133
+ if(resorgid!= null && resorgid!=''){
1134
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
1135
+ // resorgid = resorgid.replaceAll("'","");
1136
+ resorgid = resorgid.replace(/'/g,"");
1137
+ this.allorgid = resorgid.split(",")
1138
+ }
1139
+ }
1140
+ this.updateParams()
1141
+ }
1142
+ },
1143
+ sumsmodel:{
1144
+ handler: function(val) {
1145
+ this.getotherfooter();
1146
+ },
1147
+ deep: true
1148
+ }
1149
+ },
1150
+ computed: {
1151
+ getstart(){
1152
+ return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
1153
+ },
1154
+ chooserow(){
1155
+ let aaa= true
1156
+ if(this.$login.r && this.$login.r.includes('打印项选择')){
1157
+ aaa = false
1158
+ }
1159
+ return aaa
1160
+ },
1161
+ getPricenames() {
1162
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1163
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1164
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1165
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
1166
+ if(this.$refs.paged.$refs.cri.model !==null) {
1167
+ let rs = []
1168
+ let priceArr = []
1169
+ if ( pricetype.length >0) {
1170
+ let params = {
1171
+ f_price_type: pricetype[0],
1172
+ filter: this.f_filialeid,
1173
+ prices: this.prices
1174
+ }
1175
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1176
+ let temp = {}
1177
+ temp.label = item.label
1178
+ temp.value = item.value.f_price_name
1179
+ priceArr.push(temp)
1180
+ })
1181
+ rs = [{label: '全部', value: ''}, ...priceArr]
1182
+ }
1183
+ if (rs.length === 0) {
1184
+ console.log('rs读出来是空')
1185
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
1186
+ }
1187
+ return rs
1188
+ }
1189
+ },
1190
+ getCondition() {
1191
+ return {
1192
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
1193
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
1194
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
1195
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"
1196
+ }
1197
+ },
1198
+ getfield() {
1199
+ return exportConfig.chargeConfig
1200
+ },
1201
+ defaultexport() {
1202
+ return exportConfig.chargeexportConfig
1203
+ },
1204
+ pricetypes() {
1205
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
1206
+ },
1207
+
1208
+ invoiceType() {
1209
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('发票类型查询')]
1210
+ },
1211
+ usertypes() {
1212
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
1213
+ },
1214
+ metertypes() {
1215
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
1216
+ },
1217
+
1218
+ tablestate() {
1219
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
1220
+ },
1221
+ chargetype() {
1222
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
1223
+ },
1224
+ payment() {
1225
+ return [...this.$appdata.getParam('付款方式查询')]
1226
+ },
1227
+ banktype() {
1228
+ return [...this.$appdata.getParam('支付渠道查询')]
1229
+ },
1230
+ charge_state() {
1231
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
1232
+ },
1233
+ bank(){
1234
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('银行名称')]
1235
+ }
1236
+ }
1237
+ }
1238
+ </script>
1239
+ <style scoped>
1240
+ .showbottom{
1241
+ height:95%
1242
+ }
1243
+ </style>