manage-client 3.1.46 → 3.1.47

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