manage-client 3.2.12 → 3.2.16

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 (87) hide show
  1. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.4.1/gc.properties +0 -0
  4. package/build/dev-server.js +24 -8
  5. package/package.json +1 -1
  6. package/src/.idea/misc.xml +9 -0
  7. package/src/.idea/modules.xml +8 -0
  8. package/src/.idea/src.iml +9 -0
  9. package/src/.idea/vcs.xml +6 -0
  10. package/src/.idea/workspace.xml +93 -0
  11. package/src/components/BasisEcharts/BarChart.vue +247 -247
  12. package/src/components/SellReport/BonSummary.vue +178 -178
  13. package/src/components/SellReport/CivilGasReport.vue +194 -0
  14. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  15. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  16. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  17. package/src/components/SellReport/NonResidentGas.vue +203 -203
  18. package/src/components/SellReport/OutletTable.vue +258 -258
  19. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  20. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  21. package/src/components/SellReport/SellingTable.vue +220 -220
  22. package/src/components/SellReport/UnCivilGasReport.vue +194 -0
  23. package/src/components/SellReport/UserSellingGas.vue +177 -177
  24. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  25. package/src/components/daping/GMap.vue +636 -636
  26. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  27. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  28. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  29. package/src/components/sale/businessquery/BusinesQuery.vue +2 -3
  30. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  31. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  32. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  33. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  34. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  35. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  36. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  37. package/src/components/sale/config/exportConfig.js +1 -1
  38. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  39. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  40. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  41. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  42. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  43. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  44. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +4 -5
  45. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  46. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  47. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  48. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  49. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  50. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  51. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  52. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  53. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  54. package/src/filiale/WEINAN/ReportDataQuery.vue +249 -249
  55. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  56. package/src/filiale/WEINAN/UserGasAll.vue +577 -579
  57. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  58. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  59. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  60. package/src/filiale/WEINAN/reportManage.js +12 -12
  61. package/src/filiale/WEINAN/sale.js +36 -36
  62. package/src/filiale/alashan/reportManage.js +10 -10
  63. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  64. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  65. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  66. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -541
  67. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  68. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  69. package/src/filiale/meihekou/config/exportConfig.js +804 -804
  70. package/src/filiale/meihekou/sale.js +26 -26
  71. package/src/filiale/pingxiang/sale.js +9 -9
  72. package/src/filiale/qingtongxia/sale.js +13 -13
  73. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  74. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  75. package/src/filiale/rongchuang/reportManage.js +11 -11
  76. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  77. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  78. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  79. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  80. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  81. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  82. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  83. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  84. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  85. package/src/main.js +5 -5
  86. package/src/reportManage.js +8 -0
  87. package/static/wuhai.json +1610 -1610
@@ -1,541 +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
- <th>
183
- <nobr>抄表员</nobr>
184
- </th>
185
-
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
- </tr>
199
- </template>
200
- <template partial='body'>
201
- <td style="text-align: center;">
202
- <nobr>
203
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
204
- </td>
205
- <td style="text-align: center;">
206
- <nobr>{{row.f_user_name}}</nobr>
207
- </td>
208
- <td style="text-align: center;">
209
- <nobr>{{row.f_address}}</nobr>
210
- </td>
211
- <td style="text-align: center;">
212
- <nobr>{{row.f_meternumber}}</nobr>
213
- </td>
214
- <td style="text-align: center;">
215
- <nobr>{{row.f_address}}</nobr>
216
- </td>
217
- <td style="text-align: center;">
218
- <nobr>{{row.f_last_tablebase}}</nobr>
219
- </td>
220
- <td style="text-align: center;">
221
- <nobr>{{row.f_tablebase}}</nobr>
222
- </td>
223
- <td style="text-align: center;">
224
- <nobr>{{row.f_real_amount}}</nobr>
225
- </td>
226
- <td style="text-align: center;">
227
- <nobr>{{row.f_price}}</nobr>
228
- </td>
229
- <td style="text-align: center;">
230
- <nobr>{{row.f_result_state}}</nobr>
231
- </td>
232
- <td style="text-align: center;">
233
- <nobr>{{row.f_card_total_gas}}</nobr>
234
- </td>
235
- <td style="text-align: center;">
236
- <nobr>{{row.f_unused_gas}}</nobr>
237
- </td>
238
- <td style="text-align: center;">
239
- <nobr>{{row.f_hand_date}}</nobr>
240
- </td>
241
- <td style="text-align: center;">
242
- <nobr>{{row.f_inputtor}}</nobr>
243
- </td>
244
-
245
- <td style="text-align: center;">
246
- <nobr>{{row.f_meter_state}}</nobr>
247
- </td>
248
- <td style="text-align: center;">
249
- <nobr>{{row.f_operator}}</nobr>
250
- </td>
251
- <td style="text-align: center;">
252
- <nobr>{{row.f_depname}}</nobr>
253
- </td>
254
- <!-- <td style="text-align: center;">-->
255
- <!-- <nobr>{{row.f_orgname}}</nobr>-->
256
- <!-- </td>-->
257
- </template>
258
- <template partial='foot'></template>
259
- </data-grid>
260
- </criteria-paged>
261
- <table class="table-hover">
262
- <tr style="position: relative;margin-top: -16px;" class="table-bordered">
263
- <td
264
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
265
- 汇总信息
266
- </td>
267
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
268
- 气量合计:&emsp;{{sumsmodel.f_real_amount}}
269
- </td>
270
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
271
- 总购气量合计:&emsp;{{sumsmodel.f_card_total_gas}}
272
- </td>
273
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
274
- 余量合计:&emsp;{{sumsmodel.f_yuliang}}
275
- </td>
276
- </tr>
277
- </table>
278
- </div>
279
- <modal :show.sync="batchmoneyShow" width="500px" title="反盘导入" v-ref:modal large backdrop="false">
280
- <article slot="modal-body" class="modal-body">
281
- <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
282
- </article>
283
- <footer slot="modal-footer" class="modal-footer">
284
- </footer>
285
- </modal>
286
- <div class="flex" v-if="show">
287
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
288
- </div>
289
- </div>
290
- </div>
291
- </template>
292
-
293
- <script>
294
- import {PagedList, HttpResetClass} from 'vue-client'
295
- import defaultPrint from './config/DefaultPrint'
296
- import exportConfig from './config/exportConfig'
297
-
298
- let readySomething = async function (self) {
299
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
300
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
301
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
302
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
303
- // await self.$refs.paged.$refs.cri.search()
304
- await self.$getConfig(self, 'CardHandplanQuery')
305
- console.log('抄表查询获取默认配置', self.config)
306
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
307
- console.log('开始初始化参数', self.defaultfield)
308
- await self.$MagLoadParams.loadParam()
309
- // await self.$MagLoadParams.loadParam()
310
- // self.initParams()
311
- console.log('开始查询')
312
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
313
- }
314
- export default {
315
- props:['data'],
316
- title: '卡表抄表查询',
317
- data() {
318
- return {
319
- other:[],
320
- footer:[],
321
- data: {},
322
- model: new PagedList('rs/sql/cardhandplanQuery', 20, {},{f_real_amount:0,f_card_total_gas:0,f_yuliang:0}),
323
- initres: {
324
- org:[this.$login.f.orgid],
325
- dep:[],
326
- user:[],
327
- },
328
- show:false,
329
- rowdata:{},
330
- criteriaShow: false,
331
- orgCondtionStr: '',
332
- modelval: [],
333
- inputtouPerson: [],
334
- printshow: false,
335
- all: false,
336
- fields: {},
337
- thead: '',
338
- tfoot: '',
339
-
340
- // 下拉框
341
-
342
- //合计数据
343
- sumsmodel: {},
344
- defaultfield: [],
345
- config: {
346
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
347
- },
348
- batchmoneyShow:false
349
- }
350
- },
351
- ready() {
352
- readySomething(this).then(() => {
353
- this.$emit('ready')
354
- }).catch((error) => {
355
- this.$emit('error', error)
356
- })
357
- },
358
- methods: {
359
- getotherfooter(){
360
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
361
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
362
- this.other=[];
363
- this.footer=[];
364
- let exportdata = this.getCondition;
365
- let otherInData=[];
366
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
367
- let footerData=[],exportfield=this.getfield;
368
- footerData.push("合计");
369
- let self = this;
370
- for(var field in self.sumsmodel){
371
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
372
- }
373
- this.footer.push(footerData);
374
- this.other.push(otherInData);
375
- },
376
- Fileinput(){
377
- this.batchmoneyShow=true;
378
- },
379
- search(){
380
- this.$refs.paged.$refs.cri.search()
381
- },
382
- cancel() {
383
- this.show = false
384
- },
385
- selfSearch(args) {
386
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
387
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
388
- //抄表员查询条件
389
- this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
390
- if(this.inputtouPerson.length !== 0){
391
- let str = JSON.stringify(this.inputtouPerson)
392
- str = str.replace(/"/g,`'`)
393
- str = str.replace(/\[/g,``)
394
- str = str.replace(/\]/g,``)
395
- //查询多个抄表员时条件
396
- args.condition += ` and f_inputtor in ( ${str} )`
397
- }
398
-
399
- args.condition = `${args.condition} ` + this.orgCondtionStr
400
- this.model.search(args.condition, args.model)
401
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
402
- },
403
- clear() {
404
- //清空部门和人员
405
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
406
- //部门和人员变为全选
407
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
408
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
409
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
410
- this.$refs.paged.$refs.cri.model[key] = []
411
- })
412
- },
413
- show() {
414
- this.criteriaShow = true
415
- },
416
- hidden() {
417
- this.criteriaShow = !this.criteriaShow
418
- },
419
- getRes(obj) {
420
- this.orgCondtionStr = obj
421
- },
422
- stamp() {
423
- this.all = false
424
- //默认选择要打印的列
425
- this.modelval = defaultPrint.config
426
- this.fields = this.getfield
427
- console.log('所有打印字段', this.fields)
428
- this.printshow = true
429
- this.put()
430
- },
431
- put() {
432
- // 对Modelval进行排序
433
- this.sortModelval()
434
- this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
435
- for (let key of this.modelval) {
436
- this.thead += '<th>' + this.fields[key] + '</th>'
437
- }
438
- this.thead += '</tr>'
439
- },
440
- print() {
441
- this.$refs.print.PrintAsFile()
442
- this.printshow = false
443
- },
444
- dealmsg(val) {
445
- console.log('---------------dealmsg')
446
- this.rowdata=val
447
- this.show=true
448
- val.model = this.model.model
449
- this.$dispatch('deal-msg', val)
450
- },
451
- close() {
452
- this.printshow = false
453
- this.all = false
454
- },
455
- // 对选择的列进行排序
456
- sortModelval() {
457
- let sortModel = []
458
- Object.keys(this.fields).forEach((key) => {
459
- if (this.modelval.includes(key)) {
460
- sortModel.push(key)
461
- }
462
- })
463
- this.modelval = sortModel
464
- console.log('选择的打印的字段', this.modelval)
465
- }
466
- },
467
- watch: {
468
- 'all'(val) {
469
- if (val) {
470
- this.modelval = this.bodyData
471
- } else {
472
- this.modelval = defaultPrint.config
473
- this.put()
474
- }
475
- },
476
- 'modelval.length'() {
477
- this.put()
478
- },
479
- 'model.rows'(val) {
480
- if(val.length === 0){
481
- this.sumsmodel = {}
482
- }
483
- },
484
- sumsmodel:{
485
- handler: function(val) {
486
- this.getotherfooter();
487
- },
488
- deep: true
489
- }
490
- },
491
- computed: {
492
- getCondition() {
493
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
494
- },
495
- getfield() {
496
- return exportConfig.cardhandplanConfig
497
- },
498
- usertypes() {
499
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
500
- },
501
- accountsState() {
502
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
503
- },
504
- meterstate() {
505
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
506
- },
507
- handstate() {
508
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
509
- },
510
- attimehandstate() {
511
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表结果状态')]
512
- },
513
- inputtor() {
514
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
515
- },
516
- whetherPay() {
517
- return [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}]
518
- }
519
- },
520
- events:{
521
- 'onFileUpload': function (file, res) {
522
- if (this.batchmoneyShow) {
523
- let param = {
524
- filepath: res.f_downloadpath,
525
- f_operator: this.$login.f.name,
526
- f_operatorid: this.$login.f.id,
527
- f_orgid: this.$login.f.orgid,
528
- f_orgname: this.$login.f.orgs,
529
- f_depid: this.$login.f.depids,
530
- f_depname: this.$login.f.deps
531
- }
532
- let http = new HttpResetClass();
533
- http.load('POST', 'rs/logic/SumSettleFileImport', {data: param}, {
534
- resolveMsg: null,
535
- rejectMsg: '上传失败'
536
- });
537
- }
538
- }
539
- }
540
- }
541
- </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>