manage-client 3.2.29 → 3.2.33

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 (83) hide show
  1. package/build/dev-server.js +6 -4
  2. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  3. package/package.json +1 -1
  4. package/src/components/BasisEcharts/BarChart.vue +247 -247
  5. package/src/components/SellReport/BonSummary.vue +178 -178
  6. package/src/components/SellReport/ChargePrick.vue +205 -205
  7. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  8. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  9. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  10. package/src/components/SellReport/NonResidentGas.vue +203 -203
  11. package/src/components/SellReport/OutletTable.vue +258 -258
  12. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  13. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  14. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  15. package/src/components/SellReport/SellingTable.vue +220 -220
  16. package/src/components/SellReport/UserSellingGas.vue +228 -228
  17. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  18. package/src/components/daping/GMap.vue +636 -636
  19. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  20. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  21. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  22. package/src/components/sale/businessquery/BusinesQuery.vue +10 -0
  23. package/src/components/sale/businessquery/ChangeMeterQuery.vue +7 -7
  24. package/src/components/sale/businessquery/ChangeUserQuery.vue +10 -1
  25. package/src/components/sale/businessquery/ChargeQuery.vue +10 -0
  26. package/src/components/sale/businessquery/DisableQuery.vue +10 -0
  27. package/src/components/sale/businessquery/EnableQuery.vue +10 -0
  28. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  29. package/src/components/sale/businessquery/FillCardQuery.vue +6 -1
  30. package/src/components/sale/businessquery/FillGasQuery.vue +6 -1
  31. package/src/components/sale/businessquery/InspectListUser.vue +43 -64
  32. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  33. package/src/components/sale/businessquery/OtherChargeQuery.vue +10 -0
  34. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  35. package/src/components/sale/businessquery/ReverseQuery.vue +10 -0
  36. package/src/components/sale/businessquery/TransferQuery.vue +10 -0
  37. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  38. package/src/components/sale/businessquery/usergas.vue +311 -311
  39. package/src/components/sale/filesquery/ArchivesManage.vue +57 -57
  40. package/src/components/sale/filesquery/DeviceQuery.vue +10 -0
  41. package/src/components/sale/filesquery/FireQuery.vue +477 -477
  42. package/src/components/sale/filesquery/RecordInfoQuery.vue +10 -0
  43. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  44. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  45. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  46. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  47. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  48. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  49. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  50. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  51. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  52. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  53. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  54. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  55. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  56. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  57. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  58. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  59. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  60. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  61. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  62. package/src/filiale/WEINAN/reportManage.js +12 -12
  63. package/src/filiale/WEINAN/sale.js +36 -36
  64. package/src/filiale/alashan/reportManage.js +10 -10
  65. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  66. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  67. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  68. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  69. package/src/filiale/meihekou/CardHandplanQuery.vue +1 -1
  70. package/src/filiale/meihekou/DeviceQuery.vue +545 -0
  71. package/src/filiale/meihekou/RecordInfoQuery.vue +10 -0
  72. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  73. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  74. package/src/filiale/meihekou/config/exportConfig.js +2 -2
  75. package/src/filiale/meihekou/sale.js +3 -1
  76. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  77. package/src/filiale/rongchuang/reportManage.js +11 -11
  78. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  79. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  80. package/src/filiale/tongchuan/reportManage.js +5 -5
  81. package/src/main.js +4 -4
  82. package/src/saleManage.js +529 -529
  83. package/static/wuhai.json +1610 -1610
@@ -1,371 +1,371 @@
1
- <template>
2
- <div id="unit" class="flex-row" class="foot_tabset" @keyup.enter="search">
3
- <div class="basic-main">
4
- <div class="flex">
5
-
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-2 form-group">
11
- <label class="font_normal_body">开始日期</label>
12
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
- v-model="model.startDate"
14
- :value.sync="model.startDate"
15
- :format="'yyyy-MM-dd HH:mm:ss'"
16
- :show-reset-button="true"
17
- >
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label class="font_normal_body">结束日期</label>
22
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
- v-model="model.endDate"
24
- :value.sync="model.endDate"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="true"
27
- >
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group ">
31
- <label class="font_normal_body">客户编号</label>
32
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body">客户名称</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
- condition="f_user_name like '%{}%'" placeholder="客户名称">
39
- </div>
40
-
41
- <div class="span" style="float:right;">
42
- <button class="button_search button_spacing" @click="search()">查询</button>
43
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
-
46
- <export-excel :data="$parent.$parent.getCondition"
47
- :field="$parent.$parent.getfield"
48
- :footer="$parent.$parent.footer"
49
- :header="$parent.$parent.other"
50
- sqlurl="rs/logic/exportfile"
51
- sql-name="getPreGasListNew"
52
- template-name='气费预收款情况导出'
53
- :choose-col="true"></export-excel>
54
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
55
- :defaultfield="$parent.$parent.defaultfield"
56
- titletable="气费预收款情况"
57
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
58
-
59
- <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>
60
- </div>
61
- </div>
62
- <div class="row" v-show="$parent.$parent.criteriaShow">
63
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
64
- <div class="col-sm-2 form-group">
65
- <label class="font_normal_body">客户电话</label>
66
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
67
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
68
- </div>
69
- <div class="col-sm-2 form-group">
70
- <label class="font_normal_body">客户地址</label>
71
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
72
- condition="f_address like '%{}%'" placeholder='客户地址'>
73
- </div>
74
-
75
- </div>
76
- </div>
77
- </criteria>
78
-
79
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
80
- <template partial='head'>
81
- <tr>
82
- <th rowspan=2><nobr>月份</nobr></th>
83
- <th rowspan=2><nobr>期初余额</nobr></th>
84
- <th colspan="3"><nobr>本期预收款金额</nobr></th>
85
-
86
- <th rowspan=2>
87
- <nobr>小计</nobr>
88
- </th>
89
- <th rowspan=2>
90
- <nobr>本期预收抵减金额</nobr>
91
- </th>
92
- <th rowspan=2>
93
- <nobr>期末余额</nobr>
94
- </th>
95
- </tr>
96
- <tr>
97
- <th>
98
- <nobr>微信</nobr>
99
- </th>
100
- <th>
101
- <nobr>现金</nobr>
102
- </th>
103
- <th>
104
- <nobr>银行转账</nobr>
105
- </th>
106
-
107
- </tr>
108
-
109
- </template>
110
- <template partial='body'>
111
- <td style="text-align: center;"><nobr>
112
- <span ><a>{{row.f_month}}</a></span>
113
- </nobr> </td>
114
- <td style="text-align: center;">
115
- <nobr>{{row.f_last_balance}}</nobr>
116
- </td>
117
- <td style="text-align: center;">
118
- <nobr>{{row.f_wechat_pay}}</nobr>
119
- </td>
120
- <td style="text-align: center;">
121
- <nobr>{{row.f_money_pay}}</nobr>
122
- </td>
123
-
124
- <td style="text-align: center;">
125
- <nobr>{{row.f_bank_pay}}</nobr>
126
- </td>
127
-
128
- <td style="text-align: center;">
129
- <nobr>{{row.f_sum_pay}}</nobr>
130
- </td>
131
- <td style="text-align: center;">
132
- <nobr>{{row.f_pre_deduct_money}}</nobr>
133
- </td>
134
- <td style="text-align: center;">
135
- <nobr>{{row.f_balance}}</nobr>
136
- </td>
137
- </template>
138
- <template partial='foot'>
139
- <td style="text-align: center;background-color: mistyrose"><nobr>
140
- <span >合计</span>
141
- </nobr> </td>
142
- <td style="text-align: center;background-color: mistyrose">
143
- <nobr>{{model.sums.f_last_balance}}</nobr>
144
- </td>
145
- <td style="text-align: center;background-color: mistyrose">
146
- <nobr>{{model.sums.f_wechat_pay}}</nobr>
147
- </td>
148
- <td style="text-align: center;background-color: mistyrose">
149
- <nobr>{{model.sums.f_money_pay}}</nobr>
150
- </td>
151
- <td style="text-align: center;background-color: mistyrose">
152
- <nobr>{{model.sums.f_bank_pay}}</nobr>
153
- </td>
154
-
155
- <td style="text-align: center;background-color: mistyrose">
156
- <nobr>{{model.sums.f_sum_pay}}</nobr>
157
- </td>
158
-
159
- <td style="text-align: center;background-color: mistyrose">
160
- <nobr>{{model.sums.f_pre_deduct_money}}</nobr>
161
- </td>
162
- <td style="text-align: center;background-color: mistyrose">
163
- <nobr>{{model.sums.f_balance}}</nobr>
164
- </td>
165
- </template>
166
- </data-grid>
167
-
168
- </criteria-paged>
169
-
170
-
171
- </div>
172
-
173
- </div>
174
- </div>
175
- </template>
176
-
177
- <script>
178
- import {HttpResetClass, PagedList} from 'vue-client'
179
- import defaultPrint from '../../config/DefaultPrint'
180
- import exportConfig from '../../config/exportConfig'
181
-
182
- let readySomething = async function (self) {
183
-
184
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
185
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
186
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
187
- }
188
- export default {
189
- title: '气费预收款情况汇总',
190
- data() {
191
- return {
192
- data: {},
193
- other:[],
194
- footer:[],
195
- //默认打印列
196
- defaultfield: [],
197
- config: {
198
- defaultPrint: ['f_wechat_pay', 'f_bank_pay', 'f_pre_deduct_money']
199
- },
200
- model: new PagedList('rs/sql/getPreGasListNew', 20,{
201
- startDate: 'this.model.startDate', endDate: 'this.model.endDate',
202
- id: 'this.model.id'
203
- },{
204
- f_last_balance:0,
205
- f_wechat_pay:0,
206
- f_money_pay:0,
207
- f_bank_pay:0,
208
- f_sum_pay:0,
209
- f_pre_deduct_money:0,
210
- f_balance:0
211
- }),
212
- criteriaShow: false,
213
- orgCondtionStr: '',
214
- modelval: [],
215
- printshow: false,
216
- all: false,
217
- fields: {},
218
- initres: {
219
- org:[this.$login.f.orgid],
220
- dep:[],
221
- user:[],
222
- },
223
- thead: '',
224
- tfoot: '',
225
-
226
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
227
-
228
-
229
- //合计数据
230
- sumsmodel: {}
231
- }
232
- },
233
- ready() {
234
- readySomething(this)
235
- },
236
- methods: {
237
- getotherfooter(){
238
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
239
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
240
- this.other=[];
241
- this.footer=[];
242
- let exportdata = this.getCondition;
243
- let otherInData=[];
244
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
245
- let footerData=[],exportfield=this.getfield;
246
- footerData.push("合计");
247
- let self =this;
248
- for(var field in self.sumsmodel){
249
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
250
- }
251
- this.footer.push(footerData);
252
- this.other.push(otherInData);
253
- },
254
- search(){
255
- this.$refs.paged.$refs.cri.search()
256
- },
257
-
258
-
259
- selfSearch(args) {
260
- args.condition = `${args.condition}` + this.orgCondtionStr
261
- args.model.id = this.$login.f.id
262
- new HttpResetClass().load('POST','rs/logic/getPreGasListNewLogic',
263
- {
264
- condition:args.condition,
265
- startDate:args.model.startDate,
266
- endDate:args.model.endDate,
267
- id: args.model.id
268
- }).then(res =>{
269
- this.model.search(args.condition, args.model)
270
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
271
- })
272
- },
273
- clear() {
274
- //清空部门和人员
275
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
276
- //部门和人员变为全选
277
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
278
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
279
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
280
- this.$refs.paged.$refs.cri.model[key] = []
281
- })
282
- },
283
- show() {
284
- this.criteriaShow = true
285
- },
286
- hidden() {
287
- this.criteriaShow = !this.criteriaShow
288
- },
289
- getRes(obj) {
290
- console.log(obj,"========")
291
- this.orgCondtionStr = obj
292
- },
293
- stamp() {
294
- this.all = false
295
- //默认选择要打印的列
296
- this.modelval = defaultPrint.config
297
- this.fields = this.getfield
298
- console.log('所有打印字段', this.fields)
299
- this.printshow = true
300
- this.put()
301
- },
302
- dealmsg(val) {
303
- console.log('---------------dealmsg')
304
- val.model = this.model.model
305
- this.$dispatch('deal-msg', val)
306
- },
307
- put() {
308
- // 对Modelval进行排序
309
- this.sortModelval()
310
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
311
- for (let key of this.modelval) {
312
- this.thead += '<th>' + this.fields[key] + '</th>'
313
- }
314
- this.thead += '</tr>'
315
- },
316
- print() {
317
- this.$refs.print.PrintAsFile()
318
- this.printshow = false
319
- },
320
- close() {
321
- this.printshow = false
322
- this.all = false
323
- },
324
- // 对选择的列进行排序
325
- sortModelval() {
326
- let sortModel = []
327
- Object.keys(this.fields).forEach((key) => {
328
- if (this.modelval.includes(key)) {
329
- sortModel.push(key)
330
- }
331
- })
332
- this.modelval = sortModel
333
- console.log('选择的打印的字段', this.modelval)
334
- }
335
- },
336
- watch: {
337
- 'all'(val) {
338
- if (val) {
339
- this.modelval = this.bodyData
340
- } else {
341
- this.modelval = defaultPrint.config
342
- this.put()
343
- }
344
- },
345
- 'modelval.length'() {
346
- this.put()
347
- },
348
- sumsmodel:{
349
- handler: function(val) {
350
- this.getotherfooter();
351
- },
352
- deep: true
353
- }
354
- },
355
- computed: {
356
- getCondition() {
357
- return {
358
- startDate: this.$refs.paged.$refs.cri.model.startDate,
359
- endDate: this.$refs.paged.$refs.cri.model.endDate,
360
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
361
- id: this.$refs.paged.$refs.cri.model.id
362
- }
363
-
364
- },
365
- getfield() {
366
- return exportConfig.pregaslistConfig
367
- }
368
-
369
- }
370
- }
371
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row" class="foot_tabset" @keyup.enter="search">
3
+ <div class="basic-main">
4
+ <div class="flex">
5
+
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label class="font_normal_body">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ >
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label class="font_normal_body">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ >
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group ">
31
+ <label class="font_normal_body">客户编号</label>
32
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">客户名称</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
39
+ </div>
40
+
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getfield"
48
+ :footer="$parent.$parent.footer"
49
+ :header="$parent.$parent.other"
50
+ sqlurl="rs/logic/exportfile"
51
+ sql-name="getPreGasListNew"
52
+ template-name='气费预收款情况导出'
53
+ :choose-col="true"></export-excel>
54
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
55
+ :defaultfield="$parent.$parent.defaultfield"
56
+ titletable="气费预收款情况"
57
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
58
+
59
+ <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>
60
+ </div>
61
+ </div>
62
+ <div class="row" v-show="$parent.$parent.criteriaShow">
63
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
64
+ <div class="col-sm-2 form-group">
65
+ <label class="font_normal_body">客户电话</label>
66
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
67
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
68
+ </div>
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">客户地址</label>
71
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
72
+ condition="f_address like '%{}%'" placeholder='客户地址'>
73
+ </div>
74
+
75
+ </div>
76
+ </div>
77
+ </criteria>
78
+
79
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
80
+ <template partial='head'>
81
+ <tr>
82
+ <th rowspan=2><nobr>月份</nobr></th>
83
+ <th rowspan=2><nobr>期初余额</nobr></th>
84
+ <th colspan="3"><nobr>本期预收款金额</nobr></th>
85
+
86
+ <th rowspan=2>
87
+ <nobr>小计</nobr>
88
+ </th>
89
+ <th rowspan=2>
90
+ <nobr>本期预收抵减金额</nobr>
91
+ </th>
92
+ <th rowspan=2>
93
+ <nobr>期末余额</nobr>
94
+ </th>
95
+ </tr>
96
+ <tr>
97
+ <th>
98
+ <nobr>微信</nobr>
99
+ </th>
100
+ <th>
101
+ <nobr>现金</nobr>
102
+ </th>
103
+ <th>
104
+ <nobr>银行转账</nobr>
105
+ </th>
106
+
107
+ </tr>
108
+
109
+ </template>
110
+ <template partial='body'>
111
+ <td style="text-align: center;"><nobr>
112
+ <span ><a>{{row.f_month}}</a></span>
113
+ </nobr> </td>
114
+ <td style="text-align: center;">
115
+ <nobr>{{row.f_last_balance}}</nobr>
116
+ </td>
117
+ <td style="text-align: center;">
118
+ <nobr>{{row.f_wechat_pay}}</nobr>
119
+ </td>
120
+ <td style="text-align: center;">
121
+ <nobr>{{row.f_money_pay}}</nobr>
122
+ </td>
123
+
124
+ <td style="text-align: center;">
125
+ <nobr>{{row.f_bank_pay}}</nobr>
126
+ </td>
127
+
128
+ <td style="text-align: center;">
129
+ <nobr>{{row.f_sum_pay}}</nobr>
130
+ </td>
131
+ <td style="text-align: center;">
132
+ <nobr>{{row.f_pre_deduct_money}}</nobr>
133
+ </td>
134
+ <td style="text-align: center;">
135
+ <nobr>{{row.f_balance}}</nobr>
136
+ </td>
137
+ </template>
138
+ <template partial='foot'>
139
+ <td style="text-align: center;background-color: mistyrose"><nobr>
140
+ <span >合计</span>
141
+ </nobr> </td>
142
+ <td style="text-align: center;background-color: mistyrose">
143
+ <nobr>{{model.sums.f_last_balance}}</nobr>
144
+ </td>
145
+ <td style="text-align: center;background-color: mistyrose">
146
+ <nobr>{{model.sums.f_wechat_pay}}</nobr>
147
+ </td>
148
+ <td style="text-align: center;background-color: mistyrose">
149
+ <nobr>{{model.sums.f_money_pay}}</nobr>
150
+ </td>
151
+ <td style="text-align: center;background-color: mistyrose">
152
+ <nobr>{{model.sums.f_bank_pay}}</nobr>
153
+ </td>
154
+
155
+ <td style="text-align: center;background-color: mistyrose">
156
+ <nobr>{{model.sums.f_sum_pay}}</nobr>
157
+ </td>
158
+
159
+ <td style="text-align: center;background-color: mistyrose">
160
+ <nobr>{{model.sums.f_pre_deduct_money}}</nobr>
161
+ </td>
162
+ <td style="text-align: center;background-color: mistyrose">
163
+ <nobr>{{model.sums.f_balance}}</nobr>
164
+ </td>
165
+ </template>
166
+ </data-grid>
167
+
168
+ </criteria-paged>
169
+
170
+
171
+ </div>
172
+
173
+ </div>
174
+ </div>
175
+ </template>
176
+
177
+ <script>
178
+ import {HttpResetClass, PagedList} from 'vue-client'
179
+ import defaultPrint from '../../config/DefaultPrint'
180
+ import exportConfig from '../../config/exportConfig'
181
+
182
+ let readySomething = async function (self) {
183
+
184
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
185
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
186
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
187
+ }
188
+ export default {
189
+ title: '气费预收款情况汇总',
190
+ data() {
191
+ return {
192
+ data: {},
193
+ other:[],
194
+ footer:[],
195
+ //默认打印列
196
+ defaultfield: [],
197
+ config: {
198
+ defaultPrint: ['f_wechat_pay', 'f_bank_pay', 'f_pre_deduct_money']
199
+ },
200
+ model: new PagedList('rs/sql/getPreGasListNew', 20,{
201
+ startDate: 'this.model.startDate', endDate: 'this.model.endDate',
202
+ id: 'this.model.id'
203
+ },{
204
+ f_last_balance:0,
205
+ f_wechat_pay:0,
206
+ f_money_pay:0,
207
+ f_bank_pay:0,
208
+ f_sum_pay:0,
209
+ f_pre_deduct_money:0,
210
+ f_balance:0
211
+ }),
212
+ criteriaShow: false,
213
+ orgCondtionStr: '',
214
+ modelval: [],
215
+ printshow: false,
216
+ all: false,
217
+ fields: {},
218
+ initres: {
219
+ org:[this.$login.f.orgid],
220
+ dep:[],
221
+ user:[],
222
+ },
223
+ thead: '',
224
+ tfoot: '',
225
+
226
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
227
+
228
+
229
+ //合计数据
230
+ sumsmodel: {}
231
+ }
232
+ },
233
+ ready() {
234
+ readySomething(this)
235
+ },
236
+ methods: {
237
+ getotherfooter(){
238
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
239
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
240
+ this.other=[];
241
+ this.footer=[];
242
+ let exportdata = this.getCondition;
243
+ let otherInData=[];
244
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
245
+ let footerData=[],exportfield=this.getfield;
246
+ footerData.push("合计");
247
+ let self =this;
248
+ for(var field in self.sumsmodel){
249
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
250
+ }
251
+ this.footer.push(footerData);
252
+ this.other.push(otherInData);
253
+ },
254
+ search(){
255
+ this.$refs.paged.$refs.cri.search()
256
+ },
257
+
258
+
259
+ selfSearch(args) {
260
+ args.condition = `${args.condition}` + this.orgCondtionStr
261
+ args.model.id = this.$login.f.id
262
+ new HttpResetClass().load('POST','rs/logic/getPreGasListNewLogic',
263
+ {
264
+ condition:args.condition,
265
+ startDate:args.model.startDate,
266
+ endDate:args.model.endDate,
267
+ id: args.model.id
268
+ }).then(res =>{
269
+ this.model.search(args.condition, args.model)
270
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
271
+ })
272
+ },
273
+ clear() {
274
+ //清空部门和人员
275
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
276
+ //部门和人员变为全选
277
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
278
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
279
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
280
+ this.$refs.paged.$refs.cri.model[key] = []
281
+ })
282
+ },
283
+ show() {
284
+ this.criteriaShow = true
285
+ },
286
+ hidden() {
287
+ this.criteriaShow = !this.criteriaShow
288
+ },
289
+ getRes(obj) {
290
+ console.log(obj,"========")
291
+ this.orgCondtionStr = obj
292
+ },
293
+ stamp() {
294
+ this.all = false
295
+ //默认选择要打印的列
296
+ this.modelval = defaultPrint.config
297
+ this.fields = this.getfield
298
+ console.log('所有打印字段', this.fields)
299
+ this.printshow = true
300
+ this.put()
301
+ },
302
+ dealmsg(val) {
303
+ console.log('---------------dealmsg')
304
+ val.model = this.model.model
305
+ this.$dispatch('deal-msg', val)
306
+ },
307
+ put() {
308
+ // 对Modelval进行排序
309
+ this.sortModelval()
310
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
311
+ for (let key of this.modelval) {
312
+ this.thead += '<th>' + this.fields[key] + '</th>'
313
+ }
314
+ this.thead += '</tr>'
315
+ },
316
+ print() {
317
+ this.$refs.print.PrintAsFile()
318
+ this.printshow = false
319
+ },
320
+ close() {
321
+ this.printshow = false
322
+ this.all = false
323
+ },
324
+ // 对选择的列进行排序
325
+ sortModelval() {
326
+ let sortModel = []
327
+ Object.keys(this.fields).forEach((key) => {
328
+ if (this.modelval.includes(key)) {
329
+ sortModel.push(key)
330
+ }
331
+ })
332
+ this.modelval = sortModel
333
+ console.log('选择的打印的字段', this.modelval)
334
+ }
335
+ },
336
+ watch: {
337
+ 'all'(val) {
338
+ if (val) {
339
+ this.modelval = this.bodyData
340
+ } else {
341
+ this.modelval = defaultPrint.config
342
+ this.put()
343
+ }
344
+ },
345
+ 'modelval.length'() {
346
+ this.put()
347
+ },
348
+ sumsmodel:{
349
+ handler: function(val) {
350
+ this.getotherfooter();
351
+ },
352
+ deep: true
353
+ }
354
+ },
355
+ computed: {
356
+ getCondition() {
357
+ return {
358
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
359
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
360
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
361
+ id: this.$refs.paged.$refs.cri.model.id
362
+ }
363
+
364
+ },
365
+ getfield() {
366
+ return exportConfig.pregaslistConfig
367
+ }
368
+
369
+ }
370
+ }
371
+ </script>