manage-client 3.2.42 → 3.2.43

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