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,404 +1,404 @@
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-3 form-group" >
31
- <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
32
- <right-tree id="org"
33
- @re-res="$parent.$parent.getRes" style="width: 60%">
34
- </right-tree>
35
- </div>
36
- <!-- <res-select-group-->
37
- <!-- :initres="$parent.$parent.initres"-->
38
- <!-- :show-component="['company']"-->
39
- <!-- @re-res="$parent.$parent.getRes" v-ref:sel>-->
40
- <!-- </res-select-group>-->
41
- <!-- <div class="col-sm-2 form-group ">-->
42
- <!-- <label class="font_normal_body">客户编号</label>-->
43
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"-->
44
- <!-- condition="f_userinfo_code = '{}' " placeholder="客户编号">-->
45
- <!-- </div>-->
46
- <!-- <div class="col-sm-2 form-group">-->
47
- <!-- <label class="font_normal_body">客户名称</label>-->
48
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"-->
49
- <!-- condition="f_user_name like '%{}%'" placeholder="客户名称">-->
50
- <!-- </div>-->
51
-
52
- <div class="span" style="float:right;">
53
- <button class="button_search button_spacing" @click="search()">查询</button>
54
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
55
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
56
-
57
- <export-excel :data="$parent.$parent.getCondition"
58
- :field="$parent.$parent.getfield"
59
- :footer="$parent.$parent.footer"
60
- :header="$parent.$parent.other"
61
- sqlurl="rs/logic/exportfile"
62
- sql-name="getSellinggasListNew"
63
- template-name='气费收款情况导出'
64
- :choose-col="true"></export-excel>
65
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
66
- :defaultfield="$parent.$parent.defaultfield"
67
- titletable="气费收款情况"
68
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
69
-
70
- <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>
71
- </div>
72
- </div>
73
- <!-- <div class="row" v-show="$parent.$parent.criteriaShow">-->
74
- <!-- -->
75
- <!-- <div class="col-sm-2 form-group">-->
76
- <!-- <label class="font_normal_body">客户电话</label>-->
77
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"-->
78
- <!-- condition="f_user_phone like '%{}%'" placeholder="客户电话">-->
79
- <!-- </div>-->
80
- <!-- <div class="col-sm-2 form-group">-->
81
- <!-- <label class="font_normal_body">客户地址</label>-->
82
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"-->
83
- <!-- condition="f_address like '%{}%'" placeholder='客户地址'>-->
84
- <!-- </div>-->
85
-
86
- <!-- </div>-->
87
- </div>
88
- </criteria>
89
-
90
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
91
- <template partial='head'>
92
- <tr><th rowspan=2><nobr>月份</nobr></th>
93
- <th rowspan=2><nobr>期初余额</nobr></th>
94
- <th rowspan=2><nobr>本期发生额</nobr></th>
95
- <th colspan="4"><nobr>本期收款额</nobr></th>
96
- <th rowspan=2>
97
- <nobr>小计</nobr>
98
- </th>
99
- <th rowspan=2>
100
- <nobr>期末余额</nobr>
101
- </th>
102
- </tr>
103
- <tr>
104
- <th>
105
- <nobr>微信</nobr>
106
- </th>
107
- <th>
108
- <nobr>现金</nobr>
109
- </th>
110
- <th>
111
- <nobr>银行转账</nobr>
112
- </th>
113
- <th>
114
- <nobr>预付账款抵减</nobr>
115
- </th>
116
- </tr>
117
-
118
- </template>
119
- <template partial='body'>
120
- <td style="text-align: center;"><nobr>
121
- <span ><a>{{row.f_month}}</a></span>
122
- </nobr> </td>
123
- <td style="text-align: center;">
124
- <nobr>{{row.f_last_balance}}</nobr>
125
- </td>
126
- <td style="text-align: center;">
127
- <nobr>{{row.f_account}}</nobr>
128
- </td>
129
- <td style="text-align: center;">
130
- <nobr>{{row.f_wechat_pay}}</nobr>
131
- </td>
132
- <td style="text-align: center;">
133
- <nobr>{{row.f_money_pay}}</nobr>
134
- </td>
135
-
136
- <td style="text-align: center;">
137
- <nobr>{{row.f_bank_pay}}</nobr>
138
- </td>
139
-
140
- <td style="text-align: center;">
141
- <nobr>{{row.f_pre_pay}}</nobr>
142
- </td>
143
- <td style="text-align: center;">
144
- <nobr>{{row.f_sum_pay}}</nobr>
145
- </td>
146
- <td style="text-align: center;">
147
- <nobr>{{row.f_balance}}</nobr>
148
- </td>
149
- </template>
150
- <template partial='foot'>
151
- <td style="text-align: center;background-color: mistyrose"><nobr>
152
- <span >合计</span>
153
- </nobr> </td>
154
- <td style="text-align: center;background-color: mistyrose">
155
- <nobr>{{model.sums.f_last_balance}}</nobr>
156
- </td>
157
- <td style="text-align: center;background-color: mistyrose">
158
- <nobr>{{model.sums.f_account}}</nobr>
159
- </td>
160
- <td style="text-align: center;background-color: mistyrose">
161
- <nobr>{{model.sums.f_wechat_pay}}</nobr>
162
- </td>
163
- <td style="text-align: center;background-color: mistyrose">
164
- <nobr>{{model.sums.f_money_pay}}</nobr>
165
- </td>
166
-
167
- <td style="text-align: center;background-color: mistyrose">
168
- <nobr>{{model.sums.f_bank_pay}}</nobr>
169
- </td>
170
-
171
- <td style="text-align: center;background-color: mistyrose">
172
- <nobr>{{model.sums.f_pre_pay}}</nobr>
173
- </td>
174
- <td style="text-align: center;background-color: mistyrose">
175
- <nobr>{{model.sums.f_sum_pay}}</nobr>
176
- </td>
177
- <td style="text-align: center;background-color: mistyrose">
178
- <nobr>{{model.sums.f_balance}}</nobr>
179
- </td>
180
- </template>
181
- </data-grid>
182
-
183
- </criteria-paged>
184
-
185
-
186
- </div>
187
-
188
- </div>
189
- </div>
190
- </template>
191
-
192
- <script>
193
- import {HttpResetClass, PagedList} from 'vue-client'
194
- import defaultPrint from '../../config/DefaultPrint'
195
- import exportConfig from '../../config/exportConfig'
196
-
197
- let readySomething = async function (self) {
198
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
199
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
200
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
201
- }
202
- export default {
203
- title: '气费收款情况汇总',
204
- data() {
205
- return {
206
- data: {},
207
- other:[],
208
- //默认打印列
209
- defaultfield: [],
210
- config: {
211
- defaultPrint: ['f_account', 'f_pre_pay', 'f_month']
212
- },
213
- footer:[],
214
- model: new PagedList('rs/sql/getSellinggasListNew', 20,
215
- {startDate: 'this.model.startDate', endDate: 'this.model.endDate', temp: 'this.model.temp',id: 'this.model.id'},
216
- {
217
- f_last_balance:0,
218
- f_account:0,
219
- f_wechat_pay:0,
220
- f_money_pay:0,
221
- f_bank_pay:0,
222
- f_pre_pay:0,
223
- f_sum_pay:0,
224
- f_balance:0
225
- }),
226
- f_orgid: '',
227
- orgname: '',
228
- criteriaShow: false,
229
- orgCondtionStr: '',
230
- modelval: [],
231
- printshow: false,
232
- all: false,
233
- fields: {},
234
- initres: {
235
- org:[this.$login.f.orgid],
236
- dep:[],
237
- user:[],
238
- },
239
- thead: '',
240
- tfoot: '',
241
-
242
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
243
-
244
-
245
- //合计数据
246
- sumsmodel: {}
247
- }
248
- },
249
- ready() {
250
- readySomething(this)
251
- },
252
- methods: {
253
- getotherfooter(){
254
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
255
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
256
- this.other=[];
257
- this.footer=[];
258
- let exportdata = this.getCondition;
259
- let otherInData=[];
260
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
261
- let footerData=[],exportfield=this.getfield;
262
- footerData.push("合计");
263
- let self =this;
264
- for(var field in self.sumsmodel){
265
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
266
- }
267
- this.footer.push(footerData);
268
- this.other.push(otherInData);
269
- },
270
- search(){
271
- this.$refs.paged.$refs.cri.search()
272
- },
273
-
274
-
275
- selfSearch(args) {
276
- let orgcondition = '1=1'
277
- if(this.f_orgid[0]){
278
- orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
279
- }
280
- args.condition = orgcondition
281
- args.model.id = this.$login.f.id
282
- let s = new Date(new Date().getFullYear(), new Date().getMonth(), 1)
283
- let e = new Date(args.model.endDate)
284
- if (s <= e) {
285
- args.model.temp = true
286
- new HttpResetClass().load('POST','rs/logic/getSellinggasListNewLogic',
287
- {
288
- condition:args.condition,
289
- startDate:args.model.startDate,
290
- endDate:args.model.endDate,
291
- id: args.model.id
292
- }).then(res =>{
293
- this.model.search(args.condition, args.model)
294
- })
295
- }else {
296
- args.model.temp = false
297
- this.model.search(args.condition, args.model)
298
- }
299
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
300
-
301
- },
302
- clear() {
303
- //清空部门和人员
304
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
305
- //部门和人员变为全选
306
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
307
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
308
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
309
- this.$refs.paged.$refs.cri.model[key] = []
310
- })
311
- },
312
- show() {
313
- this.criteriaShow = true
314
- },
315
- hidden() {
316
- this.criteriaShow = !this.criteriaShow
317
- },
318
- // getRes(obj) {
319
- // console.log(obj,"========")
320
- // this.orgCondtionStr = obj
321
- // },
322
- getRes (obj) {
323
- this.orgname = obj.res[0]
324
- this.f_orgid = obj.resids
325
- },
326
- stamp() {
327
- this.all = false
328
- //默认选择要打印的列
329
- this.modelval = defaultPrint.config
330
- this.fields = this.getfield
331
- console.log('所有打印字段', this.fields)
332
- this.printshow = true
333
- this.put()
334
- },
335
- dealmsg(val) {
336
- console.log('---------------dealmsg')
337
- val.model = this.model.model
338
- this.$dispatch('deal-msg', val)
339
- },
340
- put() {
341
- // 对Modelval进行排序
342
- this.sortModelval()
343
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
344
- for (let key of this.modelval) {
345
- this.thead += '<th>' + this.fields[key] + '</th>'
346
- }
347
- this.thead += '</tr>'
348
- },
349
- print() {
350
- this.$refs.print.PrintAsFile()
351
- this.printshow = false
352
- },
353
- close() {
354
- this.printshow = false
355
- this.all = false
356
- },
357
- // 对选择的列进行排序
358
- sortModelval() {
359
- let sortModel = []
360
- Object.keys(this.fields).forEach((key) => {
361
- if (this.modelval.includes(key)) {
362
- sortModel.push(key)
363
- }
364
- })
365
- this.modelval = sortModel
366
- console.log('选择的打印的字段', this.modelval)
367
- }
368
- },
369
- watch: {
370
- 'all'(val) {
371
- if (val) {
372
- this.modelval = this.bodyData
373
- } else {
374
- this.modelval = defaultPrint.config
375
- this.put()
376
- }
377
- },
378
- 'modelval.length'() {
379
- this.put()
380
- },
381
- sumsmodel:{
382
- handler: function(val) {
383
- this.getotherfooter();
384
- },
385
- deep: true
386
- }
387
- },
388
- computed: {
389
- getCondition() {
390
- return {
391
- startDate: this.$refs.paged.$refs.cri.model.startDate,
392
- endDate: this.$refs.paged.$refs.cri.model.endDate,
393
- condition: this.$refs.paged.model.condition,
394
- temp: this.$refs.paged.$refs.cri.model.temp,
395
- id: this.$refs.paged.$refs.cri.model.id
396
- }
397
- },
398
- getfield() {
399
- return exportConfig.sellinggaslistConfig
400
- }
401
-
402
- }
403
- }
404
- </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-3 form-group" >
31
+ <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
32
+ <right-tree id="org"
33
+ @re-res="$parent.$parent.getRes" style="width: 60%">
34
+ </right-tree>
35
+ </div>
36
+ <!-- <res-select-group-->
37
+ <!-- :initres="$parent.$parent.initres"-->
38
+ <!-- :show-component="['company']"-->
39
+ <!-- @re-res="$parent.$parent.getRes" v-ref:sel>-->
40
+ <!-- </res-select-group>-->
41
+ <!-- <div class="col-sm-2 form-group ">-->
42
+ <!-- <label class="font_normal_body">客户编号</label>-->
43
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"-->
44
+ <!-- condition="f_userinfo_code = '{}' " placeholder="客户编号">-->
45
+ <!-- </div>-->
46
+ <!-- <div class="col-sm-2 form-group">-->
47
+ <!-- <label class="font_normal_body">客户名称</label>-->
48
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"-->
49
+ <!-- condition="f_user_name like '%{}%'" placeholder="客户名称">-->
50
+ <!-- </div>-->
51
+
52
+ <div class="span" style="float:right;">
53
+ <button class="button_search button_spacing" @click="search()">查询</button>
54
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
55
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
56
+
57
+ <export-excel :data="$parent.$parent.getCondition"
58
+ :field="$parent.$parent.getfield"
59
+ :footer="$parent.$parent.footer"
60
+ :header="$parent.$parent.other"
61
+ sqlurl="rs/logic/exportfile"
62
+ sql-name="getSellinggasListNew"
63
+ template-name='气费收款情况导出'
64
+ :choose-col="true"></export-excel>
65
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
66
+ :defaultfield="$parent.$parent.defaultfield"
67
+ titletable="气费收款情况"
68
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
69
+
70
+ <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>
71
+ </div>
72
+ </div>
73
+ <!-- <div class="row" v-show="$parent.$parent.criteriaShow">-->
74
+ <!-- -->
75
+ <!-- <div class="col-sm-2 form-group">-->
76
+ <!-- <label class="font_normal_body">客户电话</label>-->
77
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"-->
78
+ <!-- condition="f_user_phone like '%{}%'" placeholder="客户电话">-->
79
+ <!-- </div>-->
80
+ <!-- <div class="col-sm-2 form-group">-->
81
+ <!-- <label class="font_normal_body">客户地址</label>-->
82
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"-->
83
+ <!-- condition="f_address like '%{}%'" placeholder='客户地址'>-->
84
+ <!-- </div>-->
85
+
86
+ <!-- </div>-->
87
+ </div>
88
+ </criteria>
89
+
90
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
91
+ <template partial='head'>
92
+ <tr><th rowspan=2><nobr>月份</nobr></th>
93
+ <th rowspan=2><nobr>期初余额</nobr></th>
94
+ <th rowspan=2><nobr>本期发生额</nobr></th>
95
+ <th colspan="4"><nobr>本期收款额</nobr></th>
96
+ <th rowspan=2>
97
+ <nobr>小计</nobr>
98
+ </th>
99
+ <th rowspan=2>
100
+ <nobr>期末余额</nobr>
101
+ </th>
102
+ </tr>
103
+ <tr>
104
+ <th>
105
+ <nobr>微信</nobr>
106
+ </th>
107
+ <th>
108
+ <nobr>现金</nobr>
109
+ </th>
110
+ <th>
111
+ <nobr>银行转账</nobr>
112
+ </th>
113
+ <th>
114
+ <nobr>预付账款抵减</nobr>
115
+ </th>
116
+ </tr>
117
+
118
+ </template>
119
+ <template partial='body'>
120
+ <td style="text-align: center;"><nobr>
121
+ <span ><a>{{row.f_month}}</a></span>
122
+ </nobr> </td>
123
+ <td style="text-align: center;">
124
+ <nobr>{{row.f_last_balance}}</nobr>
125
+ </td>
126
+ <td style="text-align: center;">
127
+ <nobr>{{row.f_account}}</nobr>
128
+ </td>
129
+ <td style="text-align: center;">
130
+ <nobr>{{row.f_wechat_pay}}</nobr>
131
+ </td>
132
+ <td style="text-align: center;">
133
+ <nobr>{{row.f_money_pay}}</nobr>
134
+ </td>
135
+
136
+ <td style="text-align: center;">
137
+ <nobr>{{row.f_bank_pay}}</nobr>
138
+ </td>
139
+
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.f_pre_pay}}</nobr>
142
+ </td>
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.f_sum_pay}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.f_balance}}</nobr>
148
+ </td>
149
+ </template>
150
+ <template partial='foot'>
151
+ <td style="text-align: center;background-color: mistyrose"><nobr>
152
+ <span >合计</span>
153
+ </nobr> </td>
154
+ <td style="text-align: center;background-color: mistyrose">
155
+ <nobr>{{model.sums.f_last_balance}}</nobr>
156
+ </td>
157
+ <td style="text-align: center;background-color: mistyrose">
158
+ <nobr>{{model.sums.f_account}}</nobr>
159
+ </td>
160
+ <td style="text-align: center;background-color: mistyrose">
161
+ <nobr>{{model.sums.f_wechat_pay}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;background-color: mistyrose">
164
+ <nobr>{{model.sums.f_money_pay}}</nobr>
165
+ </td>
166
+
167
+ <td style="text-align: center;background-color: mistyrose">
168
+ <nobr>{{model.sums.f_bank_pay}}</nobr>
169
+ </td>
170
+
171
+ <td style="text-align: center;background-color: mistyrose">
172
+ <nobr>{{model.sums.f_pre_pay}}</nobr>
173
+ </td>
174
+ <td style="text-align: center;background-color: mistyrose">
175
+ <nobr>{{model.sums.f_sum_pay}}</nobr>
176
+ </td>
177
+ <td style="text-align: center;background-color: mistyrose">
178
+ <nobr>{{model.sums.f_balance}}</nobr>
179
+ </td>
180
+ </template>
181
+ </data-grid>
182
+
183
+ </criteria-paged>
184
+
185
+
186
+ </div>
187
+
188
+ </div>
189
+ </div>
190
+ </template>
191
+
192
+ <script>
193
+ import {HttpResetClass, PagedList} from 'vue-client'
194
+ import defaultPrint from '../../config/DefaultPrint'
195
+ import exportConfig from '../../config/exportConfig'
196
+
197
+ let readySomething = async function (self) {
198
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
199
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
200
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
201
+ }
202
+ export default {
203
+ title: '气费收款情况汇总',
204
+ data() {
205
+ return {
206
+ data: {},
207
+ other:[],
208
+ //默认打印列
209
+ defaultfield: [],
210
+ config: {
211
+ defaultPrint: ['f_account', 'f_pre_pay', 'f_month']
212
+ },
213
+ footer:[],
214
+ model: new PagedList('rs/sql/getSellinggasListNew', 20,
215
+ {startDate: 'this.model.startDate', endDate: 'this.model.endDate', temp: 'this.model.temp',id: 'this.model.id'},
216
+ {
217
+ f_last_balance:0,
218
+ f_account:0,
219
+ f_wechat_pay:0,
220
+ f_money_pay:0,
221
+ f_bank_pay:0,
222
+ f_pre_pay:0,
223
+ f_sum_pay:0,
224
+ f_balance:0
225
+ }),
226
+ f_orgid: '',
227
+ orgname: '',
228
+ criteriaShow: false,
229
+ orgCondtionStr: '',
230
+ modelval: [],
231
+ printshow: false,
232
+ all: false,
233
+ fields: {},
234
+ initres: {
235
+ org:[this.$login.f.orgid],
236
+ dep:[],
237
+ user:[],
238
+ },
239
+ thead: '',
240
+ tfoot: '',
241
+
242
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
243
+
244
+
245
+ //合计数据
246
+ sumsmodel: {}
247
+ }
248
+ },
249
+ ready() {
250
+ readySomething(this)
251
+ },
252
+ methods: {
253
+ getotherfooter(){
254
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
255
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
256
+ this.other=[];
257
+ this.footer=[];
258
+ let exportdata = this.getCondition;
259
+ let otherInData=[];
260
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
261
+ let footerData=[],exportfield=this.getfield;
262
+ footerData.push("合计");
263
+ let self =this;
264
+ for(var field in self.sumsmodel){
265
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
266
+ }
267
+ this.footer.push(footerData);
268
+ this.other.push(otherInData);
269
+ },
270
+ search(){
271
+ this.$refs.paged.$refs.cri.search()
272
+ },
273
+
274
+
275
+ selfSearch(args) {
276
+ let orgcondition = '1=1'
277
+ if(this.f_orgid[0]){
278
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
279
+ }
280
+ args.condition = orgcondition
281
+ args.model.id = this.$login.f.id
282
+ let s = new Date(new Date().getFullYear(), new Date().getMonth(), 1)
283
+ let e = new Date(args.model.endDate)
284
+ if (s <= e) {
285
+ args.model.temp = true
286
+ new HttpResetClass().load('POST','rs/logic/getSellinggasListNewLogic',
287
+ {
288
+ condition:args.condition,
289
+ startDate:args.model.startDate,
290
+ endDate:args.model.endDate,
291
+ id: args.model.id
292
+ }).then(res =>{
293
+ this.model.search(args.condition, args.model)
294
+ })
295
+ }else {
296
+ args.model.temp = false
297
+ this.model.search(args.condition, args.model)
298
+ }
299
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
300
+
301
+ },
302
+ clear() {
303
+ //清空部门和人员
304
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
305
+ //部门和人员变为全选
306
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
307
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
308
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
309
+ this.$refs.paged.$refs.cri.model[key] = []
310
+ })
311
+ },
312
+ show() {
313
+ this.criteriaShow = true
314
+ },
315
+ hidden() {
316
+ this.criteriaShow = !this.criteriaShow
317
+ },
318
+ // getRes(obj) {
319
+ // console.log(obj,"========")
320
+ // this.orgCondtionStr = obj
321
+ // },
322
+ getRes (obj) {
323
+ this.orgname = obj.res[0]
324
+ this.f_orgid = obj.resids
325
+ },
326
+ stamp() {
327
+ this.all = false
328
+ //默认选择要打印的列
329
+ this.modelval = defaultPrint.config
330
+ this.fields = this.getfield
331
+ console.log('所有打印字段', this.fields)
332
+ this.printshow = true
333
+ this.put()
334
+ },
335
+ dealmsg(val) {
336
+ console.log('---------------dealmsg')
337
+ val.model = this.model.model
338
+ this.$dispatch('deal-msg', val)
339
+ },
340
+ put() {
341
+ // 对Modelval进行排序
342
+ this.sortModelval()
343
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
344
+ for (let key of this.modelval) {
345
+ this.thead += '<th>' + this.fields[key] + '</th>'
346
+ }
347
+ this.thead += '</tr>'
348
+ },
349
+ print() {
350
+ this.$refs.print.PrintAsFile()
351
+ this.printshow = false
352
+ },
353
+ close() {
354
+ this.printshow = false
355
+ this.all = false
356
+ },
357
+ // 对选择的列进行排序
358
+ sortModelval() {
359
+ let sortModel = []
360
+ Object.keys(this.fields).forEach((key) => {
361
+ if (this.modelval.includes(key)) {
362
+ sortModel.push(key)
363
+ }
364
+ })
365
+ this.modelval = sortModel
366
+ console.log('选择的打印的字段', this.modelval)
367
+ }
368
+ },
369
+ watch: {
370
+ 'all'(val) {
371
+ if (val) {
372
+ this.modelval = this.bodyData
373
+ } else {
374
+ this.modelval = defaultPrint.config
375
+ this.put()
376
+ }
377
+ },
378
+ 'modelval.length'() {
379
+ this.put()
380
+ },
381
+ sumsmodel:{
382
+ handler: function(val) {
383
+ this.getotherfooter();
384
+ },
385
+ deep: true
386
+ }
387
+ },
388
+ computed: {
389
+ getCondition() {
390
+ return {
391
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
392
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
393
+ condition: this.$refs.paged.model.condition,
394
+ temp: this.$refs.paged.$refs.cri.model.temp,
395
+ id: this.$refs.paged.$refs.cri.model.id
396
+ }
397
+ },
398
+ getfield() {
399
+ return exportConfig.sellinggaslistConfig
400
+ }
401
+
402
+ }
403
+ }
404
+ </script>