manage-client 3.2.16 → 3.2.20

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 (88) hide show
  1. package/build/dev-server.js +8 -24
  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/GasBaozhuangFee.vue +237 -237
  6. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  7. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  8. package/src/components/SellReport/NonResidentGas.vue +203 -203
  9. package/src/components/SellReport/OutletTable.vue +258 -258
  10. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  11. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  12. package/src/components/SellReport/SellingTable.vue +220 -220
  13. package/src/components/SellReport/UserSellingGas.vue +177 -177
  14. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  15. package/src/components/daping/GMap.vue +636 -636
  16. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  17. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  18. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  19. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  20. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  21. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  22. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  23. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  24. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  25. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  26. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  27. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  28. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  29. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  30. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  31. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  32. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  33. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  34. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  35. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  36. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  37. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  38. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  39. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  40. package/src/components/webmeter/report/ReportList.vue +36 -22
  41. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  42. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  43. package/src/filiale/WEINAN/ReportDataQuery.vue +276 -249
  44. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  45. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  46. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  47. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  48. package/src/filiale/WEINAN/config/exportConfig.js +99 -83
  49. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  50. package/src/filiale/WEINAN/reportManage.js +12 -12
  51. package/src/filiale/WEINAN/sale.js +36 -36
  52. package/src/filiale/alashan/reportManage.js +10 -10
  53. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  54. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  55. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  56. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -612
  57. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  58. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  59. package/src/filiale/meihekou/YingShouMingXi.vue +538 -0
  60. package/src/filiale/meihekou/config/exportConfig.js +27 -0
  61. package/src/filiale/meihekou/sale.js +29 -26
  62. package/src/filiale/pingxiang/sale.js +9 -9
  63. package/src/filiale/qingtongxia/sale.js +13 -13
  64. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  65. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  66. package/src/filiale/rongchuang/reportManage.js +11 -11
  67. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  68. package/src/filiale/shaoguan/RecordInfoQuery.vue +80 -80
  69. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  70. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  71. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  72. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  73. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  74. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  75. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  76. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -302
  77. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  78. package/src/filiale/tongchuan/reportManage.js +5 -6
  79. package/src/main.js +4 -4
  80. package/static/wuhai.json +1610 -1610
  81. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  82. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  83. package/.gradle/5.4.1/gc.properties +0 -0
  84. package/src/.idea/misc.xml +0 -9
  85. package/src/.idea/modules.xml +0 -8
  86. package/src/.idea/src.iml +0 -9
  87. package/src/.idea/vcs.xml +0 -6
  88. package/src/.idea/workspace.xml +0 -93
@@ -1,612 +1,612 @@
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
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label for="startDate" class="font_normal_body">开始日期</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- condition="f_hand_date >= '{}'">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label for="endDate" class="font_normal_body">结束日期</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- condition="f_hand_date <= '{}'">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body">客户编号</label>
31
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
- </div>
34
-
35
-
36
- <div class="span" style="float:right;">
37
- <button class="button_search button_spacing" @click="search()">查询</button>
38
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
40
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
41
- sqlurl="rs/logic/exportfile" sql-name="cardhandplanQuery" template-name='卡表抄表查询导出'
42
- :choose-col="true"></export-excel>
43
- <print-data :model="$parent.model" :field="$parent.$parent.getfield"
44
- :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
45
-
46
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
47
-
48
- <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>
49
- </div>
50
- </div>
51
- <div class="row" v-show="$parent.$parent.criteriaShow">
52
- <div class="col-sm-2 form-group">
53
- <label class="font_normal_body">客户名称</label>
54
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
55
- condition="f_user_name like '%{}%'" placeholder="客户名称">
56
- </div>
57
- <div class="col-sm-2 form-group">
58
- <label class="font_normal_body">客户地址</label>
59
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
60
- condition="f_address like '%{}%'" placeholder='客户地址'>
61
- </div>
62
- <div class="col-sm-2 form-group">
63
- <label class="font_normal_body">小区名称</label>
64
- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
65
- condition="f_residential_area like '%{}%'" placeholder="小区">
66
- </div>
67
- <div class="col-sm-2 form-group">
68
- <label class="font_normal_body">楼&emsp;栋&emsp;</label>
69
- <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
70
- condition="f_building = '{}'" placeholder="楼栋">
71
- </div>
72
- <!-- add -->
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;单元&nbsp;&nbsp;&nbsp;</label>
75
- <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
76
- condition="f_unit = '{}'" placeholder="单元"/>
77
- </div>
78
- <div class="col-sm-2 form-group">
79
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;</label>
80
- <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
81
- condition="f_floor = '{}'" placeholder="楼层"/>
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
85
- <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
86
- condition="f_room = '{}'" placeholder="门牌号">
87
- </div>
88
- <!-- end-->
89
- <div class="col-sm-2 form-group">
90
- <label class="font_normal_body">抄表状态</label>
91
- <v-select :value.sync="model.f_meter_state"
92
- v-model="model.f_meter_state"
93
- :options='$parent.$parent.meterstate' placeholder='请选择'
94
- condition="f_meter_state = '{}'"
95
- close-on-select></v-select>
96
- </div>
97
- <!--<div class="col-sm-2 form-group">
98
- <label class="font_normal_body">表单状态</label>
99
- <v-select :value.sync="model.f_hand_state"
100
- v-model="model.f_hand_state"
101
- :options='$parent.$parent.handstate' placeholder='请选择'
102
- condition="f_hand_state = '{}'"
103
- close-on-select></v-select>
104
- </div>-->
105
- <div class="col-sm-2 form-group">
106
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
107
- <v-select :value.sync="model.f_inputtor"
108
- v-model="model.f_inputtor"
109
- :options='$parent.$parent.inputtor' placeholder='请选择'
110
- multiple = "true"
111
- close-on-select></v-select>
112
- </div>
113
- <div class="col-sm-2 form-group">
114
- <label class="font_normal_body">客户类型</label>
115
- <v-select :value.sync="model.f_user_type"
116
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
117
- condition="f_user_type = '{}'"
118
- close-on-select></v-select>
119
- </div>
120
- <div class="col-sm-2 form-group">
121
- <label class="font_normal_body">抄表结果状态</label>
122
- <v-select :value.sync="model.f_result_state"
123
- v-model="model.f_result_state"
124
- :options='$parent.$parent.attimehandstate' placeholder='请选择'
125
- condition="f_result_state = '{}'"
126
- close-on-select></v-select>
127
- </div>
128
- <!--<div class="col-sm-2 form-group">
129
- <label class="font_normal_body">是否缴费</label>
130
- <v-select :value.sync="model.f_whether_pay"
131
- :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_whether_pay"
132
- condition="f_whether_pay = '{}'"
133
- close-on-select></v-select>
134
- </div>-->
135
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
136
- </div>
137
- </div>
138
- </criteria>
139
-
140
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
141
- <template partial='head'>
142
- <tr>
143
- <th>
144
- <nobr>客户编号</nobr>
145
- </th>
146
- <th>
147
- <nobr>客户名称</nobr>
148
- </th>
149
- <th>
150
- <nobr>客户地址</nobr>
151
- </th>
152
- <th>
153
- <nobr>表号</nobr>
154
- </th>
155
- <th>
156
- <nobr>地址</nobr>
157
- </th>
158
- <th>
159
- <nobr>上期底数</nobr>
160
- </th>
161
- <th>
162
- <nobr>本期底数</nobr>
163
- </th>
164
- <th>
165
- <nobr>气量</nobr>
166
- </th>
167
- <th>
168
- <nobr>抄表结果状态</nobr>
169
- </th>
170
- <th>
171
- <nobr>总购气量</nobr>
172
- </th>
173
- <th>
174
- <nobr>余量</nobr>
175
- </th>
176
- <th>
177
- <nobr>录入日期</nobr>
178
- </th>
179
- <th>
180
- <nobr>抄表员</nobr>
181
- </th>
182
-
183
- <th>
184
- <nobr>抄表状态</nobr>
185
- </th>
186
- <th>
187
- <nobr>一阶气量</nobr>
188
- </th>
189
- <th>
190
- <nobr>一阶单价</nobr>
191
- </th>
192
- <th>
193
- <nobr>一阶气费</nobr>
194
- </th>
195
- <th>
196
- <nobr>二阶气量</nobr>
197
- </th>
198
- <th>
199
- <nobr>二阶单价</nobr>
200
- </th>
201
- <th>
202
- <nobr>二阶气费</nobr>
203
- </th>
204
- <th>
205
- <nobr>三阶气量</nobr>
206
- </th>
207
- <th>
208
- <nobr>三阶单价</nobr>
209
- </th>
210
- <th>
211
- <nobr>三阶气费</nobr>
212
- </th>
213
- <th>
214
- <nobr>人员</nobr>
215
- </th>
216
- <th>
217
- <nobr>部门</nobr>
218
- </th>
219
- <!-- <th>-->
220
- <!-- <nobr>公司</nobr>-->
221
- <!-- </th>-->
222
- </tr>
223
- </template>
224
- <template partial='body'>
225
- <td style="text-align: center;">
226
- <nobr>
227
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
228
- </td>
229
- <td style="text-align: center;">
230
- <nobr>{{row.f_user_name}}</nobr>
231
- </td>
232
- <td style="text-align: center;">
233
- <nobr>{{row.f_address}}</nobr>
234
- </td>
235
- <td style="text-align: center;">
236
- <nobr>{{row.f_meternumber}}</nobr>
237
- </td>
238
- <td style="text-align: center;">
239
- <nobr>{{row.f_address}}</nobr>
240
- </td>
241
- <td style="text-align: center;">
242
- <nobr>{{row.f_last_tablebase}}</nobr>
243
- </td>
244
- <td style="text-align: center;">
245
- <nobr>{{row.f_tablebase}}</nobr>
246
- </td>
247
- <td style="text-align: center;">
248
- <nobr>{{row.f_real_amount}}</nobr>
249
- </td>
250
- <td style="text-align: center;">
251
- <nobr>{{row.f_result_state}}</nobr>
252
- </td>
253
- <td style="text-align: center;">
254
- <nobr>{{row.f_card_total_gas}}</nobr>
255
- </td>
256
- <td style="text-align: center;">
257
- <nobr>{{row.f_unused_gas}}</nobr>
258
- </td>
259
- <td style="text-align: center;">
260
- <nobr>{{row.f_hand_date}}</nobr>
261
- </td>
262
- <td style="text-align: center;">
263
- <nobr>{{row.f_inputtor}}</nobr>
264
- </td>
265
-
266
- <td style="text-align: center;">
267
- <nobr>{{row.f_meter_state}}</nobr>
268
- </td>
269
- <td style="text-align: center;">
270
- <nobr>{{row.f_stairamount1}}</nobr>
271
- </td>
272
- <td style="text-align: center;">
273
- <nobr>{{row.f_stair1price}}</nobr>
274
- </td>
275
- <td style="text-align: center;">
276
- <nobr>{{(row.f_stair1fee - 0).toFixed(2)}}</nobr>
277
- </td>
278
- <td style="text-align: center;">
279
- <nobr>{{row.f_stair2amount}}</nobr>
280
- </td>
281
- <td style="text-align: center;">
282
- <nobr>{{row.f_stair2price}}</nobr>
283
- </td>
284
- <td style="text-align: center;">
285
- <nobr>{{(row.f_stair2fee - 0).toFixed(2)}}</nobr>
286
- </td>
287
- <td style="text-align: center;">
288
- <nobr>{{row.f_stair3amount}}</nobr>
289
- </td>
290
- <td style="text-align: center;">
291
- <nobr>{{row.f_stair3price}}</nobr>
292
- </td>
293
- <td style="text-align: center;">
294
- <nobr>{{(row.f_stair3fee - 0).toFixed(2)}}</nobr>
295
- </td>
296
- <td style="text-align: center;">
297
- <nobr>{{row.f_operator}}</nobr>
298
- </td>
299
- <td style="text-align: center;">
300
- <nobr>{{row.f_depname}}</nobr>
301
- </td>
302
- <!-- <td style="text-align: center;">-->
303
- <!-- <nobr>{{row.f_orgname}}</nobr>-->
304
- <!-- </td>-->
305
- </template>
306
- <template partial='foot'></template>
307
- </data-grid>
308
- </criteria-paged>
309
- <table class="table-hover">
310
- <tr style="position: relative;margin-top: -16px;" class="table-bordered">
311
- <td
312
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
313
- 汇总信息
314
- </td>
315
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
316
- 气量合计:&emsp;{{sumsmodel.f_real_amount}}
317
- </td>
318
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
319
- 总购气量合计:&emsp;{{sumsmodel.f_card_total_gas}}
320
- </td>
321
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
322
- 余量合计:&emsp;{{sumsmodel.f_yuliang}}
323
- </td>
324
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
325
- 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}
326
- </td>
327
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
328
- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
329
- </td>
330
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
331
- 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
332
- </td>
333
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
334
- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
335
- </td>
336
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
337
- 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
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_stair3fee}}
341
- </td>
342
- </tr>
343
- </table>
344
- </div>
345
- <modal :show.sync="batchmoneyShow" width="500px" title="反盘导入" v-ref:modal large backdrop="false">
346
- <article slot="modal-body" class="modal-body">
347
- <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
348
- </article>
349
- <footer slot="modal-footer" class="modal-footer">
350
- </footer>
351
- </modal>
352
- <div class="flex" v-if="show">
353
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
354
- </div>
355
- </div>
356
- </div>
357
- </template>
358
-
359
- <script>
360
- import {PagedList, HttpResetClass} from 'vue-client'
361
- import defaultPrint from './config/DefaultPrint'
362
- import exportConfig from './config/exportConfig'
363
-
364
- let readySomething = async function (self) {
365
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
366
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
367
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
368
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
369
- // await self.$refs.paged.$refs.cri.search()
370
- await self.$getConfig(self, 'CardHandplanQuery')
371
- console.log('抄表查询获取默认配置', self.config)
372
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
373
- console.log('开始初始化参数', self.defaultfield)
374
- await self.$MagLoadParams.loadParam()
375
- // await self.$MagLoadParams.loadParam()
376
- // self.initParams()
377
- console.log('开始查询')
378
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
379
- }
380
- export default {
381
- props:['data'],
382
- title: '卡表抄表查询',
383
- data() {
384
- return {
385
- other:[],
386
- footer:[],
387
- data: {},
388
- model: new PagedList('rs/sql/cardhandplanQuery', 20, {},{f_real_amount:0,f_card_total_gas:0,f_yuliang:0,f_stairamount1:0,
389
- f_stair1fee:0,
390
- f_stair2amount:0,
391
- f_stair2fee:0,
392
- f_stair3amount:0,
393
- f_stair3fee:0}),
394
- initres: {
395
- org:[this.$login.f.orgid],
396
- dep:[],
397
- user:[],
398
- },
399
- show:false,
400
- rowdata:{},
401
- criteriaShow: false,
402
- orgCondtionStr: '',
403
- modelval: [],
404
- inputtouPerson: [],
405
- printshow: false,
406
- all: false,
407
- fields: {},
408
- thead: '',
409
- tfoot: '',
410
-
411
- // 下拉框
412
-
413
- //合计数据
414
- sumsmodel: {},
415
- defaultfield: [],
416
- config: {
417
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
418
- },
419
- batchmoneyShow:false
420
- }
421
- },
422
- ready() {
423
- readySomething(this).then(() => {
424
- this.$emit('ready')
425
- }).catch((error) => {
426
- this.$emit('error', error)
427
- })
428
- },
429
- methods: {
430
- getotherfooter(){
431
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
432
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
433
- this.other=[];
434
- this.footer=[];
435
- let exportdata = this.getCondition;
436
- let otherInData=[];
437
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
438
- let footerData=[],exportfield=this.getfield;
439
- footerData.push("合计");
440
- let self = this;
441
- for(var field in self.sumsmodel){
442
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
443
- }
444
- this.footer.push(footerData);
445
- this.other.push(otherInData);
446
- },
447
- Fileinput(){
448
- this.batchmoneyShow=true;
449
- },
450
- search(){
451
- this.$refs.paged.$refs.cri.search()
452
- },
453
- cancel() {
454
- this.show = false
455
- },
456
- selfSearch(args) {
457
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
458
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
459
- //抄表员查询条件
460
- this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
461
- if(this.inputtouPerson.length !== 0){
462
- let str = JSON.stringify(this.inputtouPerson)
463
- str = str.replace(/"/g,`'`)
464
- str = str.replace(/\[/g,``)
465
- str = str.replace(/\]/g,``)
466
- //查询多个抄表员时条件
467
- args.condition += ` and f_inputtor in ( ${str} )`
468
- }
469
-
470
- args.condition = `${args.condition} ` + this.orgCondtionStr
471
- this.model.search(args.condition, args.model)
472
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
473
- },
474
- clear() {
475
- //清空部门和人员
476
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
477
- //部门和人员变为全选
478
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
479
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
480
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
481
- this.$refs.paged.$refs.cri.model[key] = []
482
- })
483
- },
484
- show() {
485
- this.criteriaShow = true
486
- },
487
- hidden() {
488
- this.criteriaShow = !this.criteriaShow
489
- },
490
- getRes(obj) {
491
- this.orgCondtionStr = obj
492
- },
493
- stamp() {
494
- this.all = false
495
- //默认选择要打印的列
496
- this.modelval = defaultPrint.config
497
- this.fields = this.getfield
498
- console.log('所有打印字段', this.fields)
499
- this.printshow = true
500
- this.put()
501
- },
502
- put() {
503
- // 对Modelval进行排序
504
- this.sortModelval()
505
- this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
506
- for (let key of this.modelval) {
507
- this.thead += '<th>' + this.fields[key] + '</th>'
508
- }
509
- this.thead += '</tr>'
510
- },
511
- print() {
512
- this.$refs.print.PrintAsFile()
513
- this.printshow = false
514
- },
515
- dealmsg(val) {
516
- console.log('---------------dealmsg')
517
- this.rowdata=val
518
- this.show=true
519
- val.model = this.model.model
520
- this.$dispatch('deal-msg', val)
521
- },
522
- close() {
523
- this.printshow = false
524
- this.all = false
525
- },
526
- // 对选择的列进行排序
527
- sortModelval() {
528
- let sortModel = []
529
- Object.keys(this.fields).forEach((key) => {
530
- if (this.modelval.includes(key)) {
531
- sortModel.push(key)
532
- }
533
- })
534
- this.modelval = sortModel
535
- console.log('选择的打印的字段', this.modelval)
536
- }
537
- },
538
- watch: {
539
- 'all'(val) {
540
- if (val) {
541
- this.modelval = this.bodyData
542
- } else {
543
- this.modelval = defaultPrint.config
544
- this.put()
545
- }
546
- },
547
- 'modelval.length'() {
548
- this.put()
549
- },
550
- 'model.rows'(val) {
551
- if(val.length === 0){
552
- this.sumsmodel = {}
553
- }
554
- },
555
- sumsmodel:{
556
- handler: function(val) {
557
- this.getotherfooter();
558
- },
559
- deep: true
560
- }
561
- },
562
- computed: {
563
- getCondition() {
564
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
565
- },
566
- getfield() {
567
- return exportConfig.cardhandplanConfig
568
- },
569
- usertypes() {
570
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
571
- },
572
- accountsState() {
573
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
574
- },
575
- meterstate() {
576
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
577
- },
578
- handstate() {
579
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
580
- },
581
- attimehandstate() {
582
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表结果状态')]
583
- },
584
- inputtor() {
585
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
586
- },
587
- whetherPay() {
588
- return [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}]
589
- }
590
- },
591
- events:{
592
- 'onFileUpload': function (file, res) {
593
- if (this.batchmoneyShow) {
594
- let param = {
595
- filepath: res.f_downloadpath,
596
- f_operator: this.$login.f.name,
597
- f_operatorid: this.$login.f.id,
598
- f_orgid: this.$login.f.orgid,
599
- f_orgname: this.$login.f.orgs,
600
- f_depid: this.$login.f.depids,
601
- f_depname: this.$login.f.deps
602
- }
603
- let http = new HttpResetClass();
604
- http.load('POST', 'rs/logic/SumSettleFileImport', {data: param}, {
605
- resolveMsg: null,
606
- rejectMsg: '上传失败'
607
- });
608
- }
609
- }
610
- }
611
- }
612
- </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
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ condition="f_hand_date >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ condition="f_hand_date <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+
35
+
36
+ <div class="span" style="float:right;">
37
+ <button class="button_search button_spacing" @click="search()">查询</button>
38
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
40
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
41
+ sqlurl="rs/logic/exportfile" sql-name="cardhandplanQuery" template-name='卡表抄表查询导出'
42
+ :choose-col="true"></export-excel>
43
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield"
44
+ :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
45
+
46
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
47
+
48
+ <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>
49
+ </div>
50
+ </div>
51
+ <div class="row" v-show="$parent.$parent.criteriaShow">
52
+ <div class="col-sm-2 form-group">
53
+ <label class="font_normal_body">客户名称</label>
54
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
55
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
56
+ </div>
57
+ <div class="col-sm-2 form-group">
58
+ <label class="font_normal_body">客户地址</label>
59
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
60
+ condition="f_address like '%{}%'" placeholder='客户地址'>
61
+ </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">小区名称</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
65
+ condition="f_residential_area like '%{}%'" placeholder="小区">
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">楼&emsp;栋&emsp;</label>
69
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
70
+ condition="f_building = '{}'" placeholder="楼栋">
71
+ </div>
72
+ <!-- add -->
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;单元&nbsp;&nbsp;&nbsp;</label>
75
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
76
+ condition="f_unit = '{}'" placeholder="单元"/>
77
+ </div>
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;</label>
80
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
81
+ condition="f_floor = '{}'" placeholder="楼层"/>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
85
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
86
+ condition="f_room = '{}'" placeholder="门牌号">
87
+ </div>
88
+ <!-- end-->
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body">抄表状态</label>
91
+ <v-select :value.sync="model.f_meter_state"
92
+ v-model="model.f_meter_state"
93
+ :options='$parent.$parent.meterstate' placeholder='请选择'
94
+ condition="f_meter_state = '{}'"
95
+ close-on-select></v-select>
96
+ </div>
97
+ <!--<div class="col-sm-2 form-group">
98
+ <label class="font_normal_body">表单状态</label>
99
+ <v-select :value.sync="model.f_hand_state"
100
+ v-model="model.f_hand_state"
101
+ :options='$parent.$parent.handstate' placeholder='请选择'
102
+ condition="f_hand_state = '{}'"
103
+ close-on-select></v-select>
104
+ </div>-->
105
+ <div class="col-sm-2 form-group">
106
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
107
+ <v-select :value.sync="model.f_inputtor"
108
+ v-model="model.f_inputtor"
109
+ :options='$parent.$parent.inputtor' placeholder='请选择'
110
+ multiple = "true"
111
+ close-on-select></v-select>
112
+ </div>
113
+ <div class="col-sm-2 form-group">
114
+ <label class="font_normal_body">客户类型</label>
115
+ <v-select :value.sync="model.f_user_type"
116
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
117
+ condition="f_user_type = '{}'"
118
+ close-on-select></v-select>
119
+ </div>
120
+ <div class="col-sm-2 form-group">
121
+ <label class="font_normal_body">抄表结果状态</label>
122
+ <v-select :value.sync="model.f_result_state"
123
+ v-model="model.f_result_state"
124
+ :options='$parent.$parent.attimehandstate' placeholder='请选择'
125
+ condition="f_result_state = '{}'"
126
+ close-on-select></v-select>
127
+ </div>
128
+ <!--<div class="col-sm-2 form-group">
129
+ <label class="font_normal_body">是否缴费</label>
130
+ <v-select :value.sync="model.f_whether_pay"
131
+ :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_whether_pay"
132
+ condition="f_whether_pay = '{}'"
133
+ close-on-select></v-select>
134
+ </div>-->
135
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
136
+ </div>
137
+ </div>
138
+ </criteria>
139
+
140
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
141
+ <template partial='head'>
142
+ <tr>
143
+ <th>
144
+ <nobr>客户编号</nobr>
145
+ </th>
146
+ <th>
147
+ <nobr>客户名称</nobr>
148
+ </th>
149
+ <th>
150
+ <nobr>客户地址</nobr>
151
+ </th>
152
+ <th>
153
+ <nobr>表号</nobr>
154
+ </th>
155
+ <th>
156
+ <nobr>地址</nobr>
157
+ </th>
158
+ <th>
159
+ <nobr>上期底数</nobr>
160
+ </th>
161
+ <th>
162
+ <nobr>本期底数</nobr>
163
+ </th>
164
+ <th>
165
+ <nobr>气量</nobr>
166
+ </th>
167
+ <th>
168
+ <nobr>抄表结果状态</nobr>
169
+ </th>
170
+ <th>
171
+ <nobr>总购气量</nobr>
172
+ </th>
173
+ <th>
174
+ <nobr>余量</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>录入日期</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>抄表员</nobr>
181
+ </th>
182
+
183
+ <th>
184
+ <nobr>抄表状态</nobr>
185
+ </th>
186
+ <th>
187
+ <nobr>一阶气量</nobr>
188
+ </th>
189
+ <th>
190
+ <nobr>一阶单价</nobr>
191
+ </th>
192
+ <th>
193
+ <nobr>一阶气费</nobr>
194
+ </th>
195
+ <th>
196
+ <nobr>二阶气量</nobr>
197
+ </th>
198
+ <th>
199
+ <nobr>二阶单价</nobr>
200
+ </th>
201
+ <th>
202
+ <nobr>二阶气费</nobr>
203
+ </th>
204
+ <th>
205
+ <nobr>三阶气量</nobr>
206
+ </th>
207
+ <th>
208
+ <nobr>三阶单价</nobr>
209
+ </th>
210
+ <th>
211
+ <nobr>三阶气费</nobr>
212
+ </th>
213
+ <th>
214
+ <nobr>人员</nobr>
215
+ </th>
216
+ <th>
217
+ <nobr>部门</nobr>
218
+ </th>
219
+ <!-- <th>-->
220
+ <!-- <nobr>公司</nobr>-->
221
+ <!-- </th>-->
222
+ </tr>
223
+ </template>
224
+ <template partial='body'>
225
+ <td style="text-align: center;">
226
+ <nobr>
227
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
228
+ </td>
229
+ <td style="text-align: center;">
230
+ <nobr>{{row.f_user_name}}</nobr>
231
+ </td>
232
+ <td style="text-align: center;">
233
+ <nobr>{{row.f_address}}</nobr>
234
+ </td>
235
+ <td style="text-align: center;">
236
+ <nobr>{{row.f_meternumber}}</nobr>
237
+ </td>
238
+ <td style="text-align: center;">
239
+ <nobr>{{row.f_address}}</nobr>
240
+ </td>
241
+ <td style="text-align: center;">
242
+ <nobr>{{row.f_last_tablebase}}</nobr>
243
+ </td>
244
+ <td style="text-align: center;">
245
+ <nobr>{{row.f_tablebase}}</nobr>
246
+ </td>
247
+ <td style="text-align: center;">
248
+ <nobr>{{row.f_real_amount}}</nobr>
249
+ </td>
250
+ <td style="text-align: center;">
251
+ <nobr>{{row.f_result_state}}</nobr>
252
+ </td>
253
+ <td style="text-align: center;">
254
+ <nobr>{{row.f_card_total_gas}}</nobr>
255
+ </td>
256
+ <td style="text-align: center;">
257
+ <nobr>{{row.f_unused_gas}}</nobr>
258
+ </td>
259
+ <td style="text-align: center;">
260
+ <nobr>{{row.f_hand_date}}</nobr>
261
+ </td>
262
+ <td style="text-align: center;">
263
+ <nobr>{{row.f_inputtor}}</nobr>
264
+ </td>
265
+
266
+ <td style="text-align: center;">
267
+ <nobr>{{row.f_meter_state}}</nobr>
268
+ </td>
269
+ <td style="text-align: center;">
270
+ <nobr>{{row.f_stairamount1}}</nobr>
271
+ </td>
272
+ <td style="text-align: center;">
273
+ <nobr>{{row.f_stair1price}}</nobr>
274
+ </td>
275
+ <td style="text-align: center;">
276
+ <nobr>{{(row.f_stair1fee - 0).toFixed(2)}}</nobr>
277
+ </td>
278
+ <td style="text-align: center;">
279
+ <nobr>{{row.f_stair2amount}}</nobr>
280
+ </td>
281
+ <td style="text-align: center;">
282
+ <nobr>{{row.f_stair2price}}</nobr>
283
+ </td>
284
+ <td style="text-align: center;">
285
+ <nobr>{{(row.f_stair2fee - 0).toFixed(2)}}</nobr>
286
+ </td>
287
+ <td style="text-align: center;">
288
+ <nobr>{{row.f_stair3amount}}</nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.f_stair3price}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{(row.f_stair3fee - 0).toFixed(2)}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_operator}}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{row.f_depname}}</nobr>
301
+ </td>
302
+ <!-- <td style="text-align: center;">-->
303
+ <!-- <nobr>{{row.f_orgname}}</nobr>-->
304
+ <!-- </td>-->
305
+ </template>
306
+ <template partial='foot'></template>
307
+ </data-grid>
308
+ </criteria-paged>
309
+ <table class="table-hover">
310
+ <tr style="position: relative;margin-top: -16px;" class="table-bordered">
311
+ <td
312
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
313
+ 汇总信息
314
+ </td>
315
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
316
+ 气量合计:&emsp;{{sumsmodel.f_real_amount}}
317
+ </td>
318
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
319
+ 总购气量合计:&emsp;{{sumsmodel.f_card_total_gas}}
320
+ </td>
321
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
322
+ 余量合计:&emsp;{{sumsmodel.f_yuliang}}
323
+ </td>
324
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
325
+ 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}
326
+ </td>
327
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
328
+ 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
329
+ </td>
330
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
331
+ 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
332
+ </td>
333
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
334
+ 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
335
+ </td>
336
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
337
+ 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
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_stair3fee}}
341
+ </td>
342
+ </tr>
343
+ </table>
344
+ </div>
345
+ <modal :show.sync="batchmoneyShow" width="500px" title="反盘导入" v-ref:modal large backdrop="false">
346
+ <article slot="modal-body" class="modal-body">
347
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
348
+ </article>
349
+ <footer slot="modal-footer" class="modal-footer">
350
+ </footer>
351
+ </modal>
352
+ <div class="flex" v-if="show">
353
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
354
+ </div>
355
+ </div>
356
+ </div>
357
+ </template>
358
+
359
+ <script>
360
+ import {PagedList, HttpResetClass} from 'vue-client'
361
+ import defaultPrint from './config/DefaultPrint'
362
+ import exportConfig from './config/exportConfig'
363
+
364
+ let readySomething = async function (self) {
365
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
366
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
367
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
368
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
369
+ // await self.$refs.paged.$refs.cri.search()
370
+ await self.$getConfig(self, 'CardHandplanQuery')
371
+ console.log('抄表查询获取默认配置', self.config)
372
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
373
+ console.log('开始初始化参数', self.defaultfield)
374
+ await self.$MagLoadParams.loadParam()
375
+ // await self.$MagLoadParams.loadParam()
376
+ // self.initParams()
377
+ console.log('开始查询')
378
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
379
+ }
380
+ export default {
381
+ props:['data'],
382
+ title: '卡表抄表查询',
383
+ data() {
384
+ return {
385
+ other:[],
386
+ footer:[],
387
+ data: {},
388
+ model: new PagedList('rs/sql/cardhandplanQuery', 20, {},{f_real_amount:0,f_card_total_gas:0,f_yuliang:0,f_stairamount1:0,
389
+ f_stair1fee:0,
390
+ f_stair2amount:0,
391
+ f_stair2fee:0,
392
+ f_stair3amount:0,
393
+ f_stair3fee:0}),
394
+ initres: {
395
+ org:[this.$login.f.orgid],
396
+ dep:[],
397
+ user:[],
398
+ },
399
+ show:false,
400
+ rowdata:{},
401
+ criteriaShow: false,
402
+ orgCondtionStr: '',
403
+ modelval: [],
404
+ inputtouPerson: [],
405
+ printshow: false,
406
+ all: false,
407
+ fields: {},
408
+ thead: '',
409
+ tfoot: '',
410
+
411
+ // 下拉框
412
+
413
+ //合计数据
414
+ sumsmodel: {},
415
+ defaultfield: [],
416
+ config: {
417
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
418
+ },
419
+ batchmoneyShow:false
420
+ }
421
+ },
422
+ ready() {
423
+ readySomething(this).then(() => {
424
+ this.$emit('ready')
425
+ }).catch((error) => {
426
+ this.$emit('error', error)
427
+ })
428
+ },
429
+ methods: {
430
+ getotherfooter(){
431
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
432
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
433
+ this.other=[];
434
+ this.footer=[];
435
+ let exportdata = this.getCondition;
436
+ let otherInData=[];
437
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
438
+ let footerData=[],exportfield=this.getfield;
439
+ footerData.push("合计");
440
+ let self = this;
441
+ for(var field in self.sumsmodel){
442
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
443
+ }
444
+ this.footer.push(footerData);
445
+ this.other.push(otherInData);
446
+ },
447
+ Fileinput(){
448
+ this.batchmoneyShow=true;
449
+ },
450
+ search(){
451
+ this.$refs.paged.$refs.cri.search()
452
+ },
453
+ cancel() {
454
+ this.show = false
455
+ },
456
+ selfSearch(args) {
457
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
458
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
459
+ //抄表员查询条件
460
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
461
+ if(this.inputtouPerson.length !== 0){
462
+ let str = JSON.stringify(this.inputtouPerson)
463
+ str = str.replace(/"/g,`'`)
464
+ str = str.replace(/\[/g,``)
465
+ str = str.replace(/\]/g,``)
466
+ //查询多个抄表员时条件
467
+ args.condition += ` and f_inputtor in ( ${str} )`
468
+ }
469
+
470
+ args.condition = `${args.condition} ` + this.orgCondtionStr
471
+ this.model.search(args.condition, args.model)
472
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
473
+ },
474
+ clear() {
475
+ //清空部门和人员
476
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
477
+ //部门和人员变为全选
478
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
479
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
480
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
481
+ this.$refs.paged.$refs.cri.model[key] = []
482
+ })
483
+ },
484
+ show() {
485
+ this.criteriaShow = true
486
+ },
487
+ hidden() {
488
+ this.criteriaShow = !this.criteriaShow
489
+ },
490
+ getRes(obj) {
491
+ this.orgCondtionStr = obj
492
+ },
493
+ stamp() {
494
+ this.all = false
495
+ //默认选择要打印的列
496
+ this.modelval = defaultPrint.config
497
+ this.fields = this.getfield
498
+ console.log('所有打印字段', this.fields)
499
+ this.printshow = true
500
+ this.put()
501
+ },
502
+ put() {
503
+ // 对Modelval进行排序
504
+ this.sortModelval()
505
+ this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
506
+ for (let key of this.modelval) {
507
+ this.thead += '<th>' + this.fields[key] + '</th>'
508
+ }
509
+ this.thead += '</tr>'
510
+ },
511
+ print() {
512
+ this.$refs.print.PrintAsFile()
513
+ this.printshow = false
514
+ },
515
+ dealmsg(val) {
516
+ console.log('---------------dealmsg')
517
+ this.rowdata=val
518
+ this.show=true
519
+ val.model = this.model.model
520
+ this.$dispatch('deal-msg', val)
521
+ },
522
+ close() {
523
+ this.printshow = false
524
+ this.all = false
525
+ },
526
+ // 对选择的列进行排序
527
+ sortModelval() {
528
+ let sortModel = []
529
+ Object.keys(this.fields).forEach((key) => {
530
+ if (this.modelval.includes(key)) {
531
+ sortModel.push(key)
532
+ }
533
+ })
534
+ this.modelval = sortModel
535
+ console.log('选择的打印的字段', this.modelval)
536
+ }
537
+ },
538
+ watch: {
539
+ 'all'(val) {
540
+ if (val) {
541
+ this.modelval = this.bodyData
542
+ } else {
543
+ this.modelval = defaultPrint.config
544
+ this.put()
545
+ }
546
+ },
547
+ 'modelval.length'() {
548
+ this.put()
549
+ },
550
+ 'model.rows'(val) {
551
+ if(val.length === 0){
552
+ this.sumsmodel = {}
553
+ }
554
+ },
555
+ sumsmodel:{
556
+ handler: function(val) {
557
+ this.getotherfooter();
558
+ },
559
+ deep: true
560
+ }
561
+ },
562
+ computed: {
563
+ getCondition() {
564
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
565
+ },
566
+ getfield() {
567
+ return exportConfig.cardhandplanConfig
568
+ },
569
+ usertypes() {
570
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
571
+ },
572
+ accountsState() {
573
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
574
+ },
575
+ meterstate() {
576
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
577
+ },
578
+ handstate() {
579
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
580
+ },
581
+ attimehandstate() {
582
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表结果状态')]
583
+ },
584
+ inputtor() {
585
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
586
+ },
587
+ whetherPay() {
588
+ return [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}]
589
+ }
590
+ },
591
+ events:{
592
+ 'onFileUpload': function (file, res) {
593
+ if (this.batchmoneyShow) {
594
+ let param = {
595
+ filepath: res.f_downloadpath,
596
+ f_operator: this.$login.f.name,
597
+ f_operatorid: this.$login.f.id,
598
+ f_orgid: this.$login.f.orgid,
599
+ f_orgname: this.$login.f.orgs,
600
+ f_depid: this.$login.f.depids,
601
+ f_depname: this.$login.f.deps
602
+ }
603
+ let http = new HttpResetClass();
604
+ http.load('POST', 'rs/logic/SumSettleFileImport', {data: param}, {
605
+ resolveMsg: null,
606
+ rejectMsg: '上传失败'
607
+ });
608
+ }
609
+ }
610
+ }
611
+ }
612
+ </script>