manage-client 3.2.42 → 3.2.43

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