manage-client 3.2.22 → 3.2.23

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 (114) hide show
  1. package/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  2. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  7. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/7.1/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  11. package/build/dev-server.js +6 -8
  12. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  13. package/build/tmp/jar/MANIFEST.MF +2 -0
  14. package/package.json +1 -1
  15. package/src/components/BasisEcharts/BarChart.vue +247 -247
  16. package/src/components/SellReport/AmountGas.vue +257 -257
  17. package/src/components/SellReport/BonSummary.vue +178 -178
  18. package/src/components/SellReport/BusinessClassify.vue +268 -317
  19. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  20. package/src/components/SellReport/BusinessReport.vue +256 -256
  21. package/src/components/SellReport/ChSellReport.vue +251 -251
  22. package/src/components/SellReport/ChargeBill.vue +244 -244
  23. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  24. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  25. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  26. package/src/components/SellReport/DepartmentPrick.vue +243 -288
  27. package/src/components/SellReport/DeptHomePage.vue +299 -299
  28. package/src/components/SellReport/FinanceSellType.vue +254 -254
  29. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  30. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  31. package/src/components/SellReport/GasMoneyPublicReport.vue +263 -0
  32. package/src/components/SellReport/GasMoneyReport.vue +252 -254
  33. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  34. package/src/components/SellReport/GasSummary.vue +257 -257
  35. package/src/components/SellReport/Gasc.vue +257 -257
  36. package/src/components/SellReport/GetUserNum.vue +240 -240
  37. package/src/components/SellReport/HandplanBili.vue +241 -241
  38. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  39. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  40. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  41. package/src/components/SellReport/ManageGasSumChange.vue +265 -265
  42. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  43. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  44. package/src/components/SellReport/MarketMonth.vue +251 -297
  45. package/src/components/SellReport/MeterPrice.vue +244 -244
  46. package/src/components/SellReport/MeterReader.vue +231 -231
  47. package/src/components/SellReport/NonResidentGas.vue +203 -203
  48. package/src/components/SellReport/OperatorCheckoutTwo.vue +263 -263
  49. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  50. package/src/components/SellReport/OtherChargePublicReport.vue +262 -0
  51. package/src/components/SellReport/OutletTable.vue +258 -258
  52. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  53. package/src/components/SellReport/PaymentMethod.vue +274 -274
  54. package/src/components/SellReport/QTXManageBusSummary.vue +236 -236
  55. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  56. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  57. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  58. package/src/components/SellReport/SellDepReport.vue +264 -266
  59. package/src/components/SellReport/SellingTable.vue +220 -220
  60. package/src/components/SellReport/UserClassify.vue +222 -271
  61. package/src/components/SellReport/UserGasFillCard.vue +441 -441
  62. package/src/components/SellReport/UserSellingGas.vue +228 -228
  63. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  64. package/src/components/SellReport/YuShouTable.vue +298 -298
  65. package/src/components/SellReport/chargeSchedule.vue +410 -410
  66. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  67. package/src/components/SellReport/userholds.vue +257 -257
  68. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  69. package/src/components/daping/GMap.vue +636 -636
  70. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  71. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  72. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  73. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  74. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  75. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  76. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  77. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  78. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  79. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  80. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  81. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  82. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  83. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  84. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  85. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  86. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  87. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  88. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  89. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  90. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  91. package/src/components/webmeter/report/ReportList.vue +434 -434
  92. package/src/filiale/WEINAN/BankManager.vue +139 -0
  93. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  94. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  95. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  96. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  97. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  98. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  99. package/src/filiale/WEINAN/config/exportConfig.js +833 -833
  100. package/src/filiale/WEINAN/reportManage.js +1 -0
  101. package/src/filiale/WEINAN/sale.js +36 -36
  102. package/src/filiale/alashan/reportManage.js +10 -10
  103. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  104. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  105. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  106. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  107. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  108. package/src/filiale/meihekou/sale.js +29 -29
  109. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  110. package/src/filiale/rongchuang/reportManage.js +11 -11
  111. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  112. package/src/filiale/tongchuan/reportManage.js +5 -5
  113. package/src/reportManage.js +498 -490
  114. package/static/wuhai.json +1610 -1610
@@ -1,619 +1,619 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
-
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-2 form-group">
11
- <label for="startDate" class="font_normal_body">开始日期</label>
12
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
- v-model="model.startDate"
14
- :value.sync="model.startDate"
15
- :format="'yyyy-MM-dd HH:mm:ss'"
16
- :show-reset-button="true"
17
- condition="f_operate_date >= '{}'">
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="endDate" class="font_normal_body">结束日期</label>
22
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
- v-model="model.endDate"
24
- :value.sync="model.endDate"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="true"
27
- condition="f_operate_date <= '{}'">
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label class="font_normal_body">客户编号</label>
32
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body">客户名称</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
- condition="f_user_name like '%{}%'" placeholder="客户名称">
39
- </div>
40
-
41
- <div class="span" style="float:right;">
42
- <button class="button_search button_spacing" @click="search()">查询</button>
43
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
-
46
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
- sqlurl="rs/logic/exportfile" sql-name="otherChargeQuery" template-name='其他收费查询导出'
49
- :choose-col="true"></export-excel>
50
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
51
- :defaultfield="$parent.$parent.defaultfield"
52
- titletable="其他收费记录"
53
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
54
- <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>
55
- </div>
56
- </div>
57
-
58
- <div class="row" v-show="$parent.$parent.criteriaShow">
59
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
- <div class="col-sm-2 form-group">
61
- <label class="font_normal_body">客户地址</label>
62
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
63
- condition="f_address like '%{}%'" placeholder='客户地址'>
64
- </div>
65
- <div class="col-sm-2 form-group">
66
- <label class="font_normal_body">收费类型</label>
67
- <v-select v-model="model.f_brand_spec"
68
- placeholder='请选择'
69
- condition="f_brand_spec in {}"
70
- :value.sync="model.f_brand_spec" multiple
71
- :options='$parent.$parent.chargetype'
72
- @change="$parent.$parent.setTypename"
73
- close-on-select clear-button></v-select>
74
- </div>
75
- <div class="col-sm-2 form-group">
76
- <label class="font_normal_body">品名规格</label>
77
- <v-select v-model="model.f_typename"
78
- placeholder='请选择'
79
- condition="f_typename in {}"
80
- :value.sync="model.f_typename" multiple
81
- :options='$parent.$parent.typeNameList'
82
- @change="$parent.$parent.setTypenumber"
83
- close-on-select clear-button>
84
- </v-select>
85
- </div>
86
- <div class="col-sm-2 form-group">
87
- <label class="font_normal_body">型&emsp;&emsp;号</label>
88
- <v-select v-model="model.f_typenumber"
89
- placeholder='请选择'
90
- condition="f_typenumber = '{}'"
91
- :value.sync="model.f_typenumber"
92
- :options='$parent.$parent.typenumberList'
93
- close-on-select clear-button>
94
- </v-select>
95
- </div>
96
- <div class="col-sm-2 form-group">
97
- <label class="font_normal_body">用户类型</label>
98
- <v-select id="f_user_type"
99
- v-model="model.f_user_type"
100
- placeholder='请选择'
101
- condition="f_user_type ='{}'"
102
- :value.sync="model.f_user_type"
103
- @change="$parent.$parent.userTypeChange(model.f_user_type)"
104
- :options='$parent.$parent.userTypes'
105
- close-on-select clear-button></v-select>
106
- </div>
107
- <div class="col-sm-2 form-group">
108
- <label class="font_normal_body">用气性质</label>
109
- <v-select id="f_gasproperties"
110
- v-model="model.f_gasproperties"
111
- placeholder='请选择'
112
- condition="f_gasproperties ='{}'"
113
- :value.sync="model.f_gasproperties"
114
- :options='$parent.$parent.gasproperties'
115
- close-on-select clear-button></v-select>
116
- </div>
117
- <div class="col-sm-2 form-group">
118
- <label class="font_normal_body">收费状态</label>
119
- <v-select id="f_state"
120
- v-model="model.f_state"
121
- placeholder='请选择'
122
- condition="f_state in {}"
123
- multiple="true"
124
- :value.sync="model.f_state"
125
- :options='$parent.$parent.chargeState'
126
- close-on-select clear-button>
127
- </v-select>
128
- </div>
129
-
130
- <div class="col-sm-2 form-group">
131
- <label class="font_normal_body">付款方式</label>
132
- <v-select id="f_payment"
133
- v-model="model.f_payment"
134
- placeholder='请选择'
135
- condition="f_payment in {}"
136
- multiple="true"
137
- :value.sync="model.f_payment"
138
- :options='$parent.$parent.payments'
139
- close-on-select clear-button>
140
- </v-select>
141
- </div>
142
- <div class="col-sm-2 form-group">
143
- <label class="font_normal_body">服务人员</label>
144
- <v-select id="f_service_person"
145
- v-model="model.f_service_person"
146
- placeholder='请选择'
147
- condition="f_service_person ='{}'"
148
- :value.sync="model.f_service_person"
149
- :options='$parent.$parent.service_person'
150
- close-on-select clear-button>
151
- </v-select>
152
- </div>
153
- <div class="col-sm-2 form-group">
154
- <label class="font_normal_body">气表类型</label>
155
- <v-select :value.sync="model.f_meter_classify" multiple
156
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
157
- condition="f_meter_classify in {}"
158
- close-on-select></v-select>
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_brand" multiple
163
- v-model="model.f_meter_brand"
164
- :options='$parent.$parent.meterbrands' placeholder='请选择'
165
- condition="f_meter_brand in {}"
166
- close-on-select></v-select>
167
- </div>
168
- </div>
169
- </div>
170
- </criteria>
171
-
172
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
173
- <template partial='head'>
174
- <tr>
175
- <th>
176
- <nobr>客户编号</nobr>
177
- </th>
178
- <th>
179
- <nobr>收费编号</nobr>
180
- </th>
181
- <th>
182
- <nobr>客户名称</nobr>
183
- </th>
184
- <th>
185
- <nobr>客户地址</nobr>
186
- </th>
187
- <th>
188
- <nobr>客户电话</nobr>
189
- </th>
190
- <th>
191
- <nobr>气表类型</nobr>
192
- </th>
193
- <th>
194
- <nobr>气表品牌</nobr>
195
- </th>
196
- <th>
197
- <nobr>卡号</nobr>
198
- </th>
199
- <th>
200
- <nobr>收据票号</nobr>
201
- </th>
202
-
203
- <th>
204
- <nobr>收费类型</nobr>
205
- </th>
206
- <th>
207
- <nobr>品名规格</nobr>
208
- </th>
209
- <th>
210
- <nobr>型号</nobr>
211
- </th>
212
- <th>
213
- <nobr>单价</nobr>
214
- </th>
215
- <th>
216
- <nobr>数量</nobr>
217
- </th>
218
- <th>
219
- <nobr>收款</nobr>
220
- </th>
221
- <th>
222
- <nobr>付款方式</nobr>
223
- </th>
224
- <th>
225
- <nobr>状态</nobr>
226
- </th>
227
- <th>
228
- <nobr>收费日期</nobr>
229
- </th>
230
- <th>
231
- <nobr>服务人员</nobr>
232
- </th>
233
- <th>
234
- <nobr>备注</nobr>
235
- </th>
236
- <th>
237
- <nobr>人员</nobr>
238
- </th>
239
- <th>
240
- <nobr>部门</nobr>
241
- </th>
242
- <th>
243
- <nobr>公司</nobr>
244
- </th>
245
- <th><nobr>附件</nobr></th>
246
- <!--<th><nobr>查看详情</nobr></th>-->
247
- </tr>
248
- </template>
249
- <template partial='body'>
250
- <td style="text-align: center;">
251
- <nobr>
252
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
253
- </td>
254
- <td style="text-align: center;">
255
- <nobr>{{row.id}}</nobr>
256
- </td>
257
- <td style="text-align: center;">
258
- <nobr>{{row.f_user_name}}</nobr>
259
- </td>
260
- <td style="text-align: center;">
261
- <nobr>{{row.f_address}}</nobr>
262
- </td>
263
- <td style="text-align: center;">
264
- <nobr>{{row.f_user_phone}}</nobr>
265
- </td>
266
- <td style="text-align: center;">
267
- <nobr>{{row.f_meter_classify}}</nobr>
268
- </td>
269
- <td style="text-align: center;">
270
- <nobr>{{row.f_meter_brand}}</nobr>
271
- </td>
272
- <td style="text-align: center;">
273
- <nobr>{{row.f_card_id}}</nobr>
274
- </td>
275
-
276
- <td style="text-align: center;">
277
- <nobr>{{row.f_bill_number}}</nobr>
278
- </td>
279
- <td style="text-align: center;">
280
- <nobr>{{row.f_brand_spec}}</nobr>
281
- </td>
282
- <td style="text-align: center;">
283
- <nobr>{{row.f_typename}}</nobr>
284
- </td>
285
- <td style="text-align: center;">
286
- <nobr>{{row.f_typenumber}}</nobr>
287
- </td>
288
- <td style="text-align: center;">
289
- <nobr>{{row.f_unitprice}}</nobr>
290
- </td>
291
- <td style="text-align: center;">
292
- <nobr>{{row.f_number}}</nobr>
293
- </td>
294
- <td style="text-align: center;">
295
- <nobr>{{row.f_money}}</nobr>
296
- </td>
297
- <td style="text-align: center;">
298
- <nobr>{{row.f_payment}}</nobr>
299
- </td>
300
- <td style="text-align: center;">
301
- <nobr>{{row.f_state}}</nobr>
302
- </td>
303
- <td style="text-align: center;">
304
- <nobr>{{row.f_operate_date}}</nobr>
305
- </td>
306
- <td style="text-align: center;">
307
- <nobr>{{row.f_service_person}}</nobr>
308
- </td>
309
- <td style="text-align: center;">
310
- <nobr>{{row.f_comments}}</nobr>
311
- </td>
312
- <td style="text-align: center;">
313
- <nobr>{{row.f_operator}}</nobr>
314
- </td>
315
- <td style="text-align: center;">
316
- <nobr>{{row.f_depname}}</nobr>
317
- </td>
318
- <td style="text-align: center;">
319
- <nobr>{{row.f_orgname}}</nobr>
320
- </td>
321
- <td style="text-align: center;"><nobr>
322
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
323
- </nobr></td>
324
- <!--<td style="text-align: center;">-->
325
- <!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
326
- <!--</td>-->
327
- </template>
328
- <template partial='foot'></template>
329
- </data-grid>
330
-
331
- </criteria-paged>
332
-
333
- <table class="table-hover">
334
- <tr style="position: relative" class="table-bordered">
335
- <td
336
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
337
- 汇总信息
338
- </td>
339
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
340
- 收款合计:&emsp;{{sumsmodel.f_money}}
341
- </td>
342
- </tr>
343
- </table>
344
-
345
- </div>
346
- <div class="flex" v-if="show">
347
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
348
- </div>
349
- </div>
350
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
351
- <article slot="modal-body">
352
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="收费" :isremark="false" style="width:auto" ></upload>
353
- </article>
354
- <footer slot="modal-footer" class="modal-footer">
355
- </footer>
356
- </modal>
357
- </div>
358
-
359
- <modal v-if="showdetail" :show.sync="showdetail" title="详细记录" v-ref:modal large backdrop="false">
360
- <article slot="modal-body" class="modal-body">
361
- <other-charge-detail-query :otherchargeid="otherchargeid" ></other-charge-detail-query>
362
- </article>
363
- <footer slot="modal-footer" class="modal-footer">
364
- </footer>
365
- </modal>
366
-
367
- </template>
368
-
369
- <script>
370
- import {PagedList} from 'vue-client'
371
- import defaultPrint from '../config/DefaultPrint'
372
- import exportConfig from '../config/exportConfig'
373
- import OtherChargeDetailQuery from "./OtherChargeDetailQuery";
374
-
375
- let readySomething = async function (self) {
376
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
377
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
378
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
379
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
380
- // await self.$refs.paged.$refs.cri.search()
381
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
382
- await self.$MagLoadParams.loadParam()
383
-
384
- self.initParams()
385
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
386
- }
387
- export default {
388
- components: {
389
- OtherChargeDetailQuery
390
- },
391
- props:['data'],
392
- title: '其他收费查询',
393
- data() {
394
- return {
395
- data: {},
396
- other:[],
397
- footer:[],
398
- model: new PagedList('rs/sql/otherChargeQuery', 20, {}, {f_money: 0}),
399
- criteriaShow: false,
400
- orgCondtionStr: '',
401
- modelval: [],
402
- printshow: false,
403
- all: false,
404
- fields: {},
405
- config: {
406
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_brand_spec', 'f_typename', 'f_typenumber', 'f_unitprice', 'f_number', 'f_money','f_operate_date', 'f_operator']
407
- },
408
- //默认打印列
409
- defaultfield: [],
410
- thead: '',
411
- tfoot: '',
412
- initres: {
413
- org:[this.$login.f.orgid],
414
- dep:[],
415
- user:[],
416
- },
417
- show:false,
418
- showdetail:false,
419
- otherchargeid:'',
420
- rowdata:{},
421
- meterbrands: [],
422
- //合计数据
423
- sumsmodel: {},
424
- showupload:false,
425
- selected:{},
426
- // 用气性质
427
- gasproperties: [],
428
- // 品名规格
429
- typeNameList: [],
430
- // 型号
431
- typenumberList: []
432
- }
433
- },
434
- ready() {
435
- readySomething(this).then(() => {
436
- this.$emit('ready')
437
- }).catch((error) => {
438
- this.$emit('error', error)
439
- })
440
- },
441
- methods: {
442
- view(row){
443
- this.showupload = true
444
- this.selected= row
445
- },
446
- initParams() {
447
- // 初始化气表品牌
448
- let brandArr = []
449
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
450
- let temp = {}
451
- temp.label = item.label
452
- temp.value = item.value.f_meter_brand
453
- brandArr.push(temp)
454
- })
455
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
456
- },
457
- getotherfooter(){
458
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
459
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
460
- this.other=[];
461
- this.footer=[];
462
- let exportdata = this.getCondition;
463
- let otherInData=[];
464
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
465
- let footerData=[],exportfield=this.getfield;
466
- footerData.push("合计");
467
- let self = this;
468
- for(var field in self.sumsmodel){
469
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
470
- }
471
- this.footer.push(footerData);
472
- this.other.push(otherInData);
473
- },
474
- search(){
475
- this.$refs.paged.$refs.cri.search()
476
- },
477
- selfSearch(args) {
478
- if (this.data) {
479
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
480
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
481
- }
482
- args.condition = `${args.condition}` + this.orgCondtionStr
483
- this.model.search(args.condition, args.model)
484
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
485
- },
486
- clear() {
487
- //清空部门和人员
488
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
489
- //部门和人员变为全选
490
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
491
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
492
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
493
- this.$refs.paged.$refs.cri.model[key] = []
494
- })
495
- },
496
- show() {
497
- this.criteriaShow = true
498
- },
499
- hidden() {
500
- this.criteriaShow = !this.criteriaShow
501
- },
502
- getRes(obj) {
503
- this.orgCondtionStr = obj
504
- },
505
- cancel() {
506
- this.show = false
507
- },
508
- dealmsg(val) {
509
- console.log('---------------dealmsg')
510
- this.rowdata=val
511
- this.show=true
512
- val.model = this.model.model
513
- this.$dispatch('deal-msg', val)
514
- },
515
- stamp() {
516
- this.all = false
517
- //默认选择要打印的列
518
- this.modelval = defaultPrint.config
519
- this.fields = this.getfield
520
- console.log('所有打印字段', this.fields)
521
- this.printshow = true
522
- this.put()
523
- },
524
- put() {
525
- // 对Modelval进行排序
526
- this.sortModelval()
527
- this.thead = `<tr><th colspan=${this.modelval.length}>其他收费查询统计报表</th></tr><tr>`
528
- for (let key of this.modelval) {
529
- this.thead += '<th>' + this.fields[key] + '</th>'
530
- }
531
- this.thead += '</tr>'
532
- },
533
- print() {
534
- this.$refs.print.PrintAsFile()
535
- this.printshow = false
536
- },
537
- close() {
538
- this.printshow = false
539
- this.all = false
540
- },
541
- // 对选择的列进行排序
542
- sortModelval() {
543
- let sortModel = []
544
- Object.keys(this.fields).forEach((key) => {
545
- if (this.modelval.includes(key)) {
546
- sortModel.push(key)
547
- }
548
- })
549
- this.modelval = sortModel
550
- console.log('选择的打印的字段', this.modelval)
551
- },
552
- showchargedetail(row){
553
- this.showdetail=true
554
- this.otherchargeid=row.id
555
- },
556
- userTypeChange (f_user_type) {
557
- this.gasproperties = []
558
- if (f_user_type) {
559
- this.$refs.paged.$refs.cri.model.f_gasproperties = ''
560
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
561
- } else {
562
- this.gasproperties = [{label: '全部', value: ''}]
563
- }
564
- },
565
- setTypename (val) {
566
- this.typenumberList = []
567
- this.typeNameList = this.$appdata.getParam(val)
568
- },
569
- setTypenumber (val) {
570
- this.typenumberList = this.$appdata.getParam(val)
571
- }
572
- },
573
- watch: {
574
- 'all'(val) {
575
- if (val) {
576
- this.modelval = this.bodyData
577
- } else {
578
- this.modelval = defaultPrint.config
579
- this.put()
580
- }
581
- },
582
- 'modelval.length'() {
583
- this.put()
584
- },
585
- sumsmodel:{
586
- handler: function(val) {
587
- this.getotherfooter();
588
- },
589
- deep: true
590
- }
591
- },
592
- computed: {
593
- getCondition() {
594
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
595
- },
596
- service_person() {
597
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
598
- },
599
- getfield() {
600
- return exportConfig.otherchargeConfig
601
- },
602
- chargetype() {
603
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('品名及规格')]
604
- },
605
- userTypes() {
606
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
607
- },
608
- chargeState() {
609
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
610
- },
611
- metertypes() {
612
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
613
- },
614
- payments() {
615
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
616
- }
617
- }
618
- }
619
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label for="startDate" class="font_normal_body">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ condition="f_operate_date >= '{}'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date <= '{}'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">客户编号</label>
32
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">客户名称</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
39
+ </div>
40
+
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
+ sqlurl="rs/logic/exportfile" sql-name="otherChargeQuery" template-name='其他收费查询导出'
49
+ :choose-col="true"></export-excel>
50
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
51
+ :defaultfield="$parent.$parent.defaultfield"
52
+ titletable="其他收费记录"
53
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
54
+ <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>
55
+ </div>
56
+ </div>
57
+
58
+ <div class="row" v-show="$parent.$parent.criteriaShow">
59
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body">客户地址</label>
62
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
63
+ condition="f_address like '%{}%'" placeholder='客户地址'>
64
+ </div>
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body">收费类型</label>
67
+ <v-select v-model="model.f_brand_spec"
68
+ placeholder='请选择'
69
+ condition="f_brand_spec in {}"
70
+ :value.sync="model.f_brand_spec" multiple
71
+ :options='$parent.$parent.chargetype'
72
+ @change="$parent.$parent.setTypename"
73
+ close-on-select clear-button></v-select>
74
+ </div>
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">品名规格</label>
77
+ <v-select v-model="model.f_typename"
78
+ placeholder='请选择'
79
+ condition="f_typename in {}"
80
+ :value.sync="model.f_typename" multiple
81
+ :options='$parent.$parent.typeNameList'
82
+ @change="$parent.$parent.setTypenumber"
83
+ close-on-select clear-button>
84
+ </v-select>
85
+ </div>
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">型&emsp;&emsp;号</label>
88
+ <v-select v-model="model.f_typenumber"
89
+ placeholder='请选择'
90
+ condition="f_typenumber = '{}'"
91
+ :value.sync="model.f_typenumber"
92
+ :options='$parent.$parent.typenumberList'
93
+ close-on-select clear-button>
94
+ </v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">用户类型</label>
98
+ <v-select id="f_user_type"
99
+ v-model="model.f_user_type"
100
+ placeholder='请选择'
101
+ condition="f_user_type ='{}'"
102
+ :value.sync="model.f_user_type"
103
+ @change="$parent.$parent.userTypeChange(model.f_user_type)"
104
+ :options='$parent.$parent.userTypes'
105
+ close-on-select clear-button></v-select>
106
+ </div>
107
+ <div class="col-sm-2 form-group">
108
+ <label class="font_normal_body">用气性质</label>
109
+ <v-select id="f_gasproperties"
110
+ v-model="model.f_gasproperties"
111
+ placeholder='请选择'
112
+ condition="f_gasproperties ='{}'"
113
+ :value.sync="model.f_gasproperties"
114
+ :options='$parent.$parent.gasproperties'
115
+ close-on-select clear-button></v-select>
116
+ </div>
117
+ <div class="col-sm-2 form-group">
118
+ <label class="font_normal_body">收费状态</label>
119
+ <v-select id="f_state"
120
+ v-model="model.f_state"
121
+ placeholder='请选择'
122
+ condition="f_state in {}"
123
+ multiple="true"
124
+ :value.sync="model.f_state"
125
+ :options='$parent.$parent.chargeState'
126
+ close-on-select clear-button>
127
+ </v-select>
128
+ </div>
129
+
130
+ <div class="col-sm-2 form-group">
131
+ <label class="font_normal_body">付款方式</label>
132
+ <v-select id="f_payment"
133
+ v-model="model.f_payment"
134
+ placeholder='请选择'
135
+ condition="f_payment in {}"
136
+ multiple="true"
137
+ :value.sync="model.f_payment"
138
+ :options='$parent.$parent.payments'
139
+ close-on-select clear-button>
140
+ </v-select>
141
+ </div>
142
+ <div class="col-sm-2 form-group">
143
+ <label class="font_normal_body">服务人员</label>
144
+ <v-select id="f_service_person"
145
+ v-model="model.f_service_person"
146
+ placeholder='请选择'
147
+ condition="f_service_person ='{}'"
148
+ :value.sync="model.f_service_person"
149
+ :options='$parent.$parent.service_person'
150
+ close-on-select clear-button>
151
+ </v-select>
152
+ </div>
153
+ <div class="col-sm-2 form-group">
154
+ <label class="font_normal_body">气表类型</label>
155
+ <v-select :value.sync="model.f_meter_classify" multiple
156
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
157
+ condition="f_meter_classify in {}"
158
+ close-on-select></v-select>
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_brand" multiple
163
+ v-model="model.f_meter_brand"
164
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
165
+ condition="f_meter_brand in {}"
166
+ close-on-select></v-select>
167
+ </div>
168
+ </div>
169
+ </div>
170
+ </criteria>
171
+
172
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
173
+ <template partial='head'>
174
+ <tr>
175
+ <th>
176
+ <nobr>客户编号</nobr>
177
+ </th>
178
+ <th>
179
+ <nobr>收费编号</nobr>
180
+ </th>
181
+ <th>
182
+ <nobr>客户名称</nobr>
183
+ </th>
184
+ <th>
185
+ <nobr>客户地址</nobr>
186
+ </th>
187
+ <th>
188
+ <nobr>客户电话</nobr>
189
+ </th>
190
+ <th>
191
+ <nobr>气表类型</nobr>
192
+ </th>
193
+ <th>
194
+ <nobr>气表品牌</nobr>
195
+ </th>
196
+ <th>
197
+ <nobr>卡号</nobr>
198
+ </th>
199
+ <th>
200
+ <nobr>收据票号</nobr>
201
+ </th>
202
+
203
+ <th>
204
+ <nobr>收费类型</nobr>
205
+ </th>
206
+ <th>
207
+ <nobr>品名规格</nobr>
208
+ </th>
209
+ <th>
210
+ <nobr>型号</nobr>
211
+ </th>
212
+ <th>
213
+ <nobr>单价</nobr>
214
+ </th>
215
+ <th>
216
+ <nobr>数量</nobr>
217
+ </th>
218
+ <th>
219
+ <nobr>收款</nobr>
220
+ </th>
221
+ <th>
222
+ <nobr>付款方式</nobr>
223
+ </th>
224
+ <th>
225
+ <nobr>状态</nobr>
226
+ </th>
227
+ <th>
228
+ <nobr>收费日期</nobr>
229
+ </th>
230
+ <th>
231
+ <nobr>服务人员</nobr>
232
+ </th>
233
+ <th>
234
+ <nobr>备注</nobr>
235
+ </th>
236
+ <th>
237
+ <nobr>人员</nobr>
238
+ </th>
239
+ <th>
240
+ <nobr>部门</nobr>
241
+ </th>
242
+ <th>
243
+ <nobr>公司</nobr>
244
+ </th>
245
+ <th><nobr>附件</nobr></th>
246
+ <!--<th><nobr>查看详情</nobr></th>-->
247
+ </tr>
248
+ </template>
249
+ <template partial='body'>
250
+ <td style="text-align: center;">
251
+ <nobr>
252
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
253
+ </td>
254
+ <td style="text-align: center;">
255
+ <nobr>{{row.id}}</nobr>
256
+ </td>
257
+ <td style="text-align: center;">
258
+ <nobr>{{row.f_user_name}}</nobr>
259
+ </td>
260
+ <td style="text-align: center;">
261
+ <nobr>{{row.f_address}}</nobr>
262
+ </td>
263
+ <td style="text-align: center;">
264
+ <nobr>{{row.f_user_phone}}</nobr>
265
+ </td>
266
+ <td style="text-align: center;">
267
+ <nobr>{{row.f_meter_classify}}</nobr>
268
+ </td>
269
+ <td style="text-align: center;">
270
+ <nobr>{{row.f_meter_brand}}</nobr>
271
+ </td>
272
+ <td style="text-align: center;">
273
+ <nobr>{{row.f_card_id}}</nobr>
274
+ </td>
275
+
276
+ <td style="text-align: center;">
277
+ <nobr>{{row.f_bill_number}}</nobr>
278
+ </td>
279
+ <td style="text-align: center;">
280
+ <nobr>{{row.f_brand_spec}}</nobr>
281
+ </td>
282
+ <td style="text-align: center;">
283
+ <nobr>{{row.f_typename}}</nobr>
284
+ </td>
285
+ <td style="text-align: center;">
286
+ <nobr>{{row.f_typenumber}}</nobr>
287
+ </td>
288
+ <td style="text-align: center;">
289
+ <nobr>{{row.f_unitprice}}</nobr>
290
+ </td>
291
+ <td style="text-align: center;">
292
+ <nobr>{{row.f_number}}</nobr>
293
+ </td>
294
+ <td style="text-align: center;">
295
+ <nobr>{{row.f_money}}</nobr>
296
+ </td>
297
+ <td style="text-align: center;">
298
+ <nobr>{{row.f_payment}}</nobr>
299
+ </td>
300
+ <td style="text-align: center;">
301
+ <nobr>{{row.f_state}}</nobr>
302
+ </td>
303
+ <td style="text-align: center;">
304
+ <nobr>{{row.f_operate_date}}</nobr>
305
+ </td>
306
+ <td style="text-align: center;">
307
+ <nobr>{{row.f_service_person}}</nobr>
308
+ </td>
309
+ <td style="text-align: center;">
310
+ <nobr>{{row.f_comments}}</nobr>
311
+ </td>
312
+ <td style="text-align: center;">
313
+ <nobr>{{row.f_operator}}</nobr>
314
+ </td>
315
+ <td style="text-align: center;">
316
+ <nobr>{{row.f_depname}}</nobr>
317
+ </td>
318
+ <td style="text-align: center;">
319
+ <nobr>{{row.f_orgname}}</nobr>
320
+ </td>
321
+ <td style="text-align: center;"><nobr>
322
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
323
+ </nobr></td>
324
+ <!--<td style="text-align: center;">-->
325
+ <!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
326
+ <!--</td>-->
327
+ </template>
328
+ <template partial='foot'></template>
329
+ </data-grid>
330
+
331
+ </criteria-paged>
332
+
333
+ <table class="table-hover">
334
+ <tr style="position: relative" class="table-bordered">
335
+ <td
336
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
337
+ 汇总信息
338
+ </td>
339
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
340
+ 收款合计:&emsp;{{sumsmodel.f_money}}
341
+ </td>
342
+ </tr>
343
+ </table>
344
+
345
+ </div>
346
+ <div class="flex" v-if="show">
347
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
348
+ </div>
349
+ </div>
350
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
351
+ <article slot="modal-body">
352
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="收费" :isremark="false" style="width:auto" ></upload>
353
+ </article>
354
+ <footer slot="modal-footer" class="modal-footer">
355
+ </footer>
356
+ </modal>
357
+ </div>
358
+
359
+ <modal v-if="showdetail" :show.sync="showdetail" title="详细记录" v-ref:modal large backdrop="false">
360
+ <article slot="modal-body" class="modal-body">
361
+ <other-charge-detail-query :otherchargeid="otherchargeid" ></other-charge-detail-query>
362
+ </article>
363
+ <footer slot="modal-footer" class="modal-footer">
364
+ </footer>
365
+ </modal>
366
+
367
+ </template>
368
+
369
+ <script>
370
+ import {PagedList} from 'vue-client'
371
+ import defaultPrint from '../config/DefaultPrint'
372
+ import exportConfig from '../config/exportConfig'
373
+ import OtherChargeDetailQuery from "./OtherChargeDetailQuery";
374
+
375
+ let readySomething = async function (self) {
376
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
377
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
378
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
379
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
380
+ // await self.$refs.paged.$refs.cri.search()
381
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
382
+ await self.$MagLoadParams.loadParam()
383
+
384
+ self.initParams()
385
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
386
+ }
387
+ export default {
388
+ components: {
389
+ OtherChargeDetailQuery
390
+ },
391
+ props:['data'],
392
+ title: '其他收费查询',
393
+ data() {
394
+ return {
395
+ data: {},
396
+ other:[],
397
+ footer:[],
398
+ model: new PagedList('rs/sql/otherChargeQuery', 20, {}, {f_money: 0}),
399
+ criteriaShow: false,
400
+ orgCondtionStr: '',
401
+ modelval: [],
402
+ printshow: false,
403
+ all: false,
404
+ fields: {},
405
+ config: {
406
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_brand_spec', 'f_typename', 'f_typenumber', 'f_unitprice', 'f_number', 'f_money','f_operate_date', 'f_operator']
407
+ },
408
+ //默认打印列
409
+ defaultfield: [],
410
+ thead: '',
411
+ tfoot: '',
412
+ initres: {
413
+ org:[this.$login.f.orgid],
414
+ dep:[],
415
+ user:[],
416
+ },
417
+ show:false,
418
+ showdetail:false,
419
+ otherchargeid:'',
420
+ rowdata:{},
421
+ meterbrands: [],
422
+ //合计数据
423
+ sumsmodel: {},
424
+ showupload:false,
425
+ selected:{},
426
+ // 用气性质
427
+ gasproperties: [],
428
+ // 品名规格
429
+ typeNameList: [],
430
+ // 型号
431
+ typenumberList: []
432
+ }
433
+ },
434
+ ready() {
435
+ readySomething(this).then(() => {
436
+ this.$emit('ready')
437
+ }).catch((error) => {
438
+ this.$emit('error', error)
439
+ })
440
+ },
441
+ methods: {
442
+ view(row){
443
+ this.showupload = true
444
+ this.selected= row
445
+ },
446
+ initParams() {
447
+ // 初始化气表品牌
448
+ let brandArr = []
449
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
450
+ let temp = {}
451
+ temp.label = item.label
452
+ temp.value = item.value.f_meter_brand
453
+ brandArr.push(temp)
454
+ })
455
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
456
+ },
457
+ getotherfooter(){
458
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
459
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
460
+ this.other=[];
461
+ this.footer=[];
462
+ let exportdata = this.getCondition;
463
+ let otherInData=[];
464
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
465
+ let footerData=[],exportfield=this.getfield;
466
+ footerData.push("合计");
467
+ let self = this;
468
+ for(var field in self.sumsmodel){
469
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
470
+ }
471
+ this.footer.push(footerData);
472
+ this.other.push(otherInData);
473
+ },
474
+ search(){
475
+ this.$refs.paged.$refs.cri.search()
476
+ },
477
+ selfSearch(args) {
478
+ if (this.data) {
479
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
480
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
481
+ }
482
+ args.condition = `${args.condition}` + this.orgCondtionStr
483
+ this.model.search(args.condition, args.model)
484
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
485
+ },
486
+ clear() {
487
+ //清空部门和人员
488
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
489
+ //部门和人员变为全选
490
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
491
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
492
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
493
+ this.$refs.paged.$refs.cri.model[key] = []
494
+ })
495
+ },
496
+ show() {
497
+ this.criteriaShow = true
498
+ },
499
+ hidden() {
500
+ this.criteriaShow = !this.criteriaShow
501
+ },
502
+ getRes(obj) {
503
+ this.orgCondtionStr = obj
504
+ },
505
+ cancel() {
506
+ this.show = false
507
+ },
508
+ dealmsg(val) {
509
+ console.log('---------------dealmsg')
510
+ this.rowdata=val
511
+ this.show=true
512
+ val.model = this.model.model
513
+ this.$dispatch('deal-msg', val)
514
+ },
515
+ stamp() {
516
+ this.all = false
517
+ //默认选择要打印的列
518
+ this.modelval = defaultPrint.config
519
+ this.fields = this.getfield
520
+ console.log('所有打印字段', this.fields)
521
+ this.printshow = true
522
+ this.put()
523
+ },
524
+ put() {
525
+ // 对Modelval进行排序
526
+ this.sortModelval()
527
+ this.thead = `<tr><th colspan=${this.modelval.length}>其他收费查询统计报表</th></tr><tr>`
528
+ for (let key of this.modelval) {
529
+ this.thead += '<th>' + this.fields[key] + '</th>'
530
+ }
531
+ this.thead += '</tr>'
532
+ },
533
+ print() {
534
+ this.$refs.print.PrintAsFile()
535
+ this.printshow = false
536
+ },
537
+ close() {
538
+ this.printshow = false
539
+ this.all = false
540
+ },
541
+ // 对选择的列进行排序
542
+ sortModelval() {
543
+ let sortModel = []
544
+ Object.keys(this.fields).forEach((key) => {
545
+ if (this.modelval.includes(key)) {
546
+ sortModel.push(key)
547
+ }
548
+ })
549
+ this.modelval = sortModel
550
+ console.log('选择的打印的字段', this.modelval)
551
+ },
552
+ showchargedetail(row){
553
+ this.showdetail=true
554
+ this.otherchargeid=row.id
555
+ },
556
+ userTypeChange (f_user_type) {
557
+ this.gasproperties = []
558
+ if (f_user_type) {
559
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
560
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
561
+ } else {
562
+ this.gasproperties = [{label: '全部', value: ''}]
563
+ }
564
+ },
565
+ setTypename (val) {
566
+ this.typenumberList = []
567
+ this.typeNameList = this.$appdata.getParam(val)
568
+ },
569
+ setTypenumber (val) {
570
+ this.typenumberList = this.$appdata.getParam(val)
571
+ }
572
+ },
573
+ watch: {
574
+ 'all'(val) {
575
+ if (val) {
576
+ this.modelval = this.bodyData
577
+ } else {
578
+ this.modelval = defaultPrint.config
579
+ this.put()
580
+ }
581
+ },
582
+ 'modelval.length'() {
583
+ this.put()
584
+ },
585
+ sumsmodel:{
586
+ handler: function(val) {
587
+ this.getotherfooter();
588
+ },
589
+ deep: true
590
+ }
591
+ },
592
+ computed: {
593
+ getCondition() {
594
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
595
+ },
596
+ service_person() {
597
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
598
+ },
599
+ getfield() {
600
+ return exportConfig.otherchargeConfig
601
+ },
602
+ chargetype() {
603
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('品名及规格')]
604
+ },
605
+ userTypes() {
606
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
607
+ },
608
+ chargeState() {
609
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
610
+ },
611
+ metertypes() {
612
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
613
+ },
614
+ payments() {
615
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
616
+ }
617
+ }
618
+ }
619
+ </script>