manage-client 3.2.4 → 3.2.5

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 (55) hide show
  1. package/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  2. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/{5.2.1 → 7.1/dependencies-accessors}/gc.properties +0 -0
  4. package/.gradle/{5.2.1 → 7.1}/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/{5.2.1 → 7.1}/fileChanges/last-build.bin +0 -0
  7. package/.gradle/{5.2.1 → 7.1}/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/7.1/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  11. package/build/dev-server.js +6 -6
  12. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  13. package/build/tmp/jar/MANIFEST.MF +2 -0
  14. package/package.json +1 -1
  15. package/src/components/SellReport/AmountGas.vue +257 -257
  16. package/src/components/SellReport/BonSummary.vue +244 -244
  17. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  18. package/src/components/SellReport/BusinessReport.vue +256 -256
  19. package/src/components/SellReport/ChSellReport.vue +251 -251
  20. package/src/components/SellReport/ChargeBill.vue +244 -244
  21. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  22. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  23. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  24. package/src/components/SellReport/DeptHomePage.vue +299 -299
  25. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  26. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  27. package/src/components/SellReport/GasSummary.vue +257 -257
  28. package/src/components/SellReport/Gasc.vue +257 -257
  29. package/src/components/SellReport/GetUserNum.vue +240 -240
  30. package/src/components/SellReport/HandplanBili.vue +241 -241
  31. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  32. package/src/components/SellReport/ManageGasPrice.vue +241 -241
  33. package/src/components/SellReport/ManageGasSumChange.vue +265 -265
  34. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  35. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  36. package/src/components/SellReport/MeterPrice.vue +244 -244
  37. package/src/components/SellReport/MeterReader.vue +231 -231
  38. package/src/components/SellReport/NonResidentGas.vue +244 -244
  39. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  40. package/src/components/SellReport/OutletTable.vue +258 -258
  41. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  42. package/src/components/SellReport/PaymentMethod.vue +274 -274
  43. package/src/components/SellReport/QTXManageBusSummary.vue +236 -236
  44. package/src/components/SellReport/SellDepReport.vue +266 -266
  45. package/src/components/SellReport/UserGasFillCard.vue +441 -441
  46. package/src/components/SellReport/UserSellingGas.vue +251 -251
  47. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  48. package/src/components/SellReport/YuShouTable.vue +298 -298
  49. package/src/components/SellReport/chargeSchedule.vue +410 -410
  50. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  51. package/src/components/SellReport/userholds.vue +257 -257
  52. package/src/filiale/tongchuan/ReportList.vue +472 -472
  53. package/src/filiale/tongchuan/sale.js +16 -16
  54. package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
  55. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
@@ -1,410 +1,410 @@
1
-
2
- <template>
3
- <div id="unit" class="flex-row">
4
- <div class="basic-main" @keyup.enter="search">
5
- <div class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
9
- <div class="row">
10
- <div class="col-sm-2 form-group">
11
- <label for="startDate" class="font_normal_body">开始日期</label>
12
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
- v-model="model.startDate"
14
- :value.sync="model.startDate"
15
- :format="'yyyy-MM-dd 00:00:00'"
16
- :show-reset-button="true">
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 23:59:59'"
25
- :show-reset-button="true">
26
- </datepicker>
27
- </div>
28
- <div class="col-sm-2 form-group">
29
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
30
- <right-tree @re-res="$parent.$parent.getRes"></right-tree>
31
- </div>
32
- <div class="col-sm-2 form-group">
33
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
34
- <res-select restype='department'
35
- @res-select="$parent.$parent.getdep"
36
- :parentresid="$parent.$parent.depresid"
37
- :initresid='$parent.$parent.depid'>
38
- </res-select>
39
-
40
- </div>
41
- <div class="col-sm-2 form-group">
42
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
43
- <res-select restype='user'
44
- is-mul="false"
45
- @res-select="$parent.$parent.getuser"
46
- :parentresid="$parent.$parent.userresid"
47
- :initresid='$parent.$parent.operatorid'>
48
- </res-select>
49
- </div>
50
- <div class="span" style="float:right;">
51
- <button class="button_search button_spacing" @click="search()">查询</button>
52
-
53
- <export-excel :data="$parent.$parent.getCondition"
54
- :field="$parent.$parent.getfield"
55
- :footer="$parent.$parent.footer"
56
- :header="$parent.$parent.other"
57
- sqlurl="rs/logic/exportfile"
58
- sql-name="chargeSchedule"
59
- template-name='收费明细导出'
60
- :choose-col="true"></export-excel>
61
- <print-data :model="$parent.model" :field="$parent.$parent.getfield"
62
- :defaultfield="$parent.$parent.defaultfield" titletable="收费明细报表"
63
- :sumsmodel="$parent.$parent.sumsmodel" :sum-field="$parent.$parent.getfield" :page-sum="$parent.$parent.pageSum"
64
- :start-date="$parent.$parent.startDate" :end-date="$parent.$parent.endDate"
65
- ></print-data>
66
- </div>
67
- </div>
68
- </div>
69
- </criteria>
70
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
71
- <template partial='head'>
72
- <tr>
73
- <th>
74
- <nobr>流水号</nobr>
75
- </th>
76
- <th>
77
- <nobr>户号</nobr>
78
- </th>
79
- <th>
80
- <nobr>户主</nobr>
81
- </th>
82
- <th>
83
- <nobr>地址</nobr>
84
- </th>
85
- <th>
86
- <nobr>气量</nobr>
87
- </th>
88
- <th>
89
- <nobr>金额</nobr>
90
- </th>
91
- <th>
92
- <nobr>收费员</nobr>
93
- </th>
94
- <th>
95
- <nobr>营业点</nobr>
96
- </th>
97
- <th>
98
- <nobr>收费时间</nobr>
99
- </th>
100
- </tr>
101
- </template>
102
- <template partial='body'>
103
- <td style="text-align: center;">
104
- <nobr>{{row.f_serial_id}}</nobr>
105
- </td>
106
- <td style="text-align: center;">
107
- <nobr>{{row.f_userinfo_code}}</nobr>
108
- </td>
109
- <td style="text-align: center;">
110
- <nobr>{{row.f_user_name}}</nobr>
111
- </td>
112
- <td style="text-align: center;">
113
- <nobr>{{row.f_address}}</nobr>
114
- </td>
115
- <td style="text-align: center;">
116
- <nobr>{{row.a}}</nobr>
117
- </td>
118
- <td style="text-align: center;">
119
- <nobr>{{row.b}}</nobr>
120
- </td>
121
- <td style="text-align: center;">
122
- <nobr>{{row.f_operator}}</nobr>
123
- </td>
124
- <td style="text-align: center;">
125
- <nobr>{{row.f_depname}}</nobr>
126
- </td>
127
- <td style="text-align: center;">
128
- <nobr>{{row.f_operate_date}}</nobr>
129
- </td>
130
- </template>
131
- <template partial='foot'></template>
132
- </data-grid>
133
- </criteria-paged>
134
- <table class="table-hover">
135
- <tr style="position: relative" class="table-bordered">
136
- <td
137
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold" >
138
- 报表统计时间
139
- </td>
140
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-if="startDate==endDate">
141
- {{startDate}}
142
- </td>
143
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-else>
144
- {{startDate+" 至 "+endDate}}
145
- </td>
146
- </tr>
147
- <tr style="position: relative" class="table-bordered">
148
-
149
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
150
- 气量:&emsp;{{sumsmodel.a}}
151
- </td>
152
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
153
- 合计金额:&emsp;{{sumsmodel.b}}
154
- </td>
155
- </tr>
156
- </table>
157
- </div>
158
- </div>
159
- </div>
160
- </template>
161
- <script>
162
- import {PagedList, HttpResetClass} from 'vue-client'
163
- import defaultPrint from '../sale/config/DefaultPrint'
164
- import exportConfig from '../sale/config/exportConfig'
165
- // import defaultPrint from '../config/DefaultPrint'
166
- import PrintDataSelf from '../sale/common/PrintDataSelf'
167
-
168
- let readySomething = async function (self) {
169
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
170
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
171
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
172
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
173
- }
174
- export default {
175
- title: '收费明细报表',
176
- props: ['data'],
177
- data() {
178
- return {
179
- depresid: [],
180
- userresid: [],
181
- f_orgid: this.$login.f.orgid,
182
- f_depid: this.$login.f.depids,
183
- f_operatorid: this.$login.f.id,
184
- operatorid: [],
185
- depid: [],
186
- orgname: '',
187
- depname: [],
188
- operatorname: '',
189
- orgCondtionStr: '1=1',
190
- //默认打印列
191
- defaultfield: [],
192
- config: {
193
- defaultPrint: ['f_userinfo_code', 'f_user_name']
194
- },
195
- data: {},
196
- other:[],
197
- footer:[],
198
- model: new PagedList('rs/sql/chargeSchedule', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'},{
199
- a:0,
200
- b:0,
201
-
202
- }),
203
- gasproperties:[],
204
- show:false,
205
- rowdata:{},
206
- residentialArea: [],
207
- modelval: [],
208
- startDate:"",
209
- endDate:"",
210
- inputtouPerson: [],
211
- printshow: false,
212
- all: false,
213
- fields: {},
214
- thead: '',
215
- tfoot: '',
216
-
217
- // 下拉框
218
-
219
- //合计数据
220
- sumsmodel: {},
221
- sumField: {
222
- // 'a': '气量', 'b': '金额'
223
- },
224
- pageSum: {
225
- // '气量:a': '0.00',
226
- // '金额:b': '0.00',
227
-
228
- },
229
- batchmoneyShow:false
230
- }
231
- },
232
- ready() {
233
- readySomething(this).then(() => {
234
- this.$emit('ready')
235
- }).catch((error) => {
236
- this.$emit('error', error)
237
- })
238
- },
239
- methods: {
240
- getotherfooter(){
241
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
242
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
243
- this.other=[];
244
- this.footer=[];
245
- let exportdata = this.getCondition;
246
- let otherInData=[];
247
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
248
- let footerData=[],exportfield=this.getfield;
249
- footerData.push("合计");
250
- let self =this;
251
- for(var field in self.sumsmodel){
252
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
253
- }
254
- this.footer.push(footerData);
255
- this.other.push(otherInData);
256
- },
257
- search(){
258
- this.$refs.paged.$refs.cri.search()
259
- },
260
- selfSearch(args) {
261
- let f_dep=this.f_depid
262
- let orgcondition = ' ts.f_orgid = ' + this.f_orgid
263
- if (f_dep[0]) {
264
- orgcondition += " and ts.f_depid in('"+f_dep[0]+"'"
265
- for( let i=1;i<f_dep.length;i++){
266
- orgcondition += ",'"+f_dep[i]+"'"
267
- }
268
- orgcondition +=')'
269
- }
270
- if(this.f_operatorid[0]) {
271
- orgcondition += ' and ts.f_operatorid = ' + this.f_operatorid
272
- }
273
- this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
274
- this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
275
- this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
276
- this.model.search(args.f_orgid, args.model)
277
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
278
- },
279
- getRes (obj) {
280
- this.orgname = obj.res[0]
281
- this.depresid = obj.resids
282
- this.f_orgid = obj.resids
283
- },
284
- getdep (obj, val) {
285
- this.depname = val
286
- this.userresid = obj
287
- this.f_depid = obj
288
- },
289
- getuser ( obj, val) {
290
- this.operatorname = val[0]
291
- this.f_operatorid = 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
- put() {
303
- // 对Modelval进行排序
304
- this.sortModelval()
305
- this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
306
- for (let key of this.modelval) {
307
- this.thead += '<th>' + this.fields[key] + '</th>'
308
- }
309
- this.thead += '</tr>'
310
- },
311
- print() {
312
- this.$refs.print.PrintAsFile()
313
- this.printshow = false
314
- },
315
- dealmsg(val) {
316
- console.log('---------------dealmsg')
317
- this.rowdata=val
318
- this.show=true
319
- val.model = this.model.model
320
- this.$dispatch('deal-msg', val)
321
- },
322
- close() {
323
- this.printshow = false
324
- this.all = false
325
- },
326
- // 对选择的列进行排序
327
- sortModelval() {
328
- let sortModel = []
329
- Object.keys(this.fields).forEach((key) => {
330
- if (this.modelval.includes(key)) {
331
- sortModel.push(key)
332
- }
333
- })
334
- this.modelval = sortModel
335
- console.log('选择的打印的字段', this.modelval)
336
- },
337
- userTypeChange () {
338
- this.gasproperties=[]
339
- if(this.$refs.paged.$refs.criteria.model !==null) {
340
- this.$refs.paged.$refs.criteria.model.f_gasproperties=''
341
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
342
- }
343
- else{
344
- this.gasproperties =[{label: '全部', value: ''}]
345
- }
346
- },
347
- },
348
- watch: {
349
- 'all'(val) {
350
- if (val) {
351
- this.modelval = this.bodyData
352
- } else {
353
- this.modelval = defaultPrint.config
354
- this.put()
355
- }
356
- },
357
- 'modelval.length'() {
358
- this.put()
359
- },
360
- sumsmodel:{
361
- handler: function(val) {
362
- this.getotherfooter();
363
- },
364
- deep: true
365
- }
366
- },
367
- computed: {
368
- getfield() {
369
- return exportConfig.chargeSchedule
370
- },
371
- // getfield() {
372
- // let data = {}
373
- // this.bodyData.forEach((value, index) => {
374
- // data[this.bodyData[index]] = this.headData[index]
375
- // })
376
- // //合计字段打印
377
- // this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
378
- // if (this.sumsmodel) {
379
- // Object.keys(this.sumsmodel).forEach((key) => {
380
- // this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
381
- // })
382
- // } else {
383
- // this.tfoot += '暂无'
384
- // }
385
- // this.tfoot += '</th></tr>'
386
- // return data
387
- // },
388
- getCondition() {
389
- return {
390
- startDate: this.$refs.paged.$refs.cri.model.startDate,
391
- endDate: this.$refs.paged.$refs.cri.model.endDate,
392
- f_orgid: this.$refs.paged.$refs.cri.model.f_orgid
393
-
394
- }
395
-
396
- },
397
- whetherpaies () {
398
- return [
399
- {label: '全部', value: ''},
400
- {label: '已缴费', value: '是'},
401
- {label: '未缴费', value: '否'}
402
- ]
403
- },
404
- usertypes() {
405
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
406
- }
407
-
408
- }
409
- }
410
- </script>
1
+
2
+ <template>
3
+ <div id="unit" class="flex-row">
4
+ <div class="basic-main" @keyup.enter="search">
5
+ <div class="flex" v-if="!show">
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label for="startDate" class="font_normal_body">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd 00:00:00'"
16
+ :show-reset-button="true">
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 23:59:59'"
25
+ :show-reset-button="true">
26
+ </datepicker>
27
+ </div>
28
+ <div class="col-sm-2 form-group">
29
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
30
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
31
+ </div>
32
+ <div class="col-sm-2 form-group">
33
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
34
+ <res-select restype='department'
35
+ @res-select="$parent.$parent.getdep"
36
+ :parentresid="$parent.$parent.depresid"
37
+ :initresid='$parent.$parent.depid'>
38
+ </res-select>
39
+
40
+ </div>
41
+ <div class="col-sm-2 form-group">
42
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
43
+ <res-select restype='user'
44
+ is-mul="false"
45
+ @res-select="$parent.$parent.getuser"
46
+ :parentresid="$parent.$parent.userresid"
47
+ :initresid='$parent.$parent.operatorid'>
48
+ </res-select>
49
+ </div>
50
+ <div class="span" style="float:right;">
51
+ <button class="button_search button_spacing" @click="search()">查询</button>
52
+
53
+ <export-excel :data="$parent.$parent.getCondition"
54
+ :field="$parent.$parent.getfield"
55
+ :footer="$parent.$parent.footer"
56
+ :header="$parent.$parent.other"
57
+ sqlurl="rs/logic/exportfile"
58
+ sql-name="chargeSchedule"
59
+ template-name='收费明细导出'
60
+ :choose-col="true"></export-excel>
61
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield"
62
+ :defaultfield="$parent.$parent.defaultfield" titletable="收费明细报表"
63
+ :sumsmodel="$parent.$parent.sumsmodel" :sum-field="$parent.$parent.getfield" :page-sum="$parent.$parent.pageSum"
64
+ :start-date="$parent.$parent.startDate" :end-date="$parent.$parent.endDate"
65
+ ></print-data>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </criteria>
70
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
71
+ <template partial='head'>
72
+ <tr>
73
+ <th>
74
+ <nobr>流水号</nobr>
75
+ </th>
76
+ <th>
77
+ <nobr>户号</nobr>
78
+ </th>
79
+ <th>
80
+ <nobr>户主</nobr>
81
+ </th>
82
+ <th>
83
+ <nobr>地址</nobr>
84
+ </th>
85
+ <th>
86
+ <nobr>气量</nobr>
87
+ </th>
88
+ <th>
89
+ <nobr>金额</nobr>
90
+ </th>
91
+ <th>
92
+ <nobr>收费员</nobr>
93
+ </th>
94
+ <th>
95
+ <nobr>营业点</nobr>
96
+ </th>
97
+ <th>
98
+ <nobr>收费时间</nobr>
99
+ </th>
100
+ </tr>
101
+ </template>
102
+ <template partial='body'>
103
+ <td style="text-align: center;">
104
+ <nobr>{{row.f_serial_id}}</nobr>
105
+ </td>
106
+ <td style="text-align: center;">
107
+ <nobr>{{row.f_userinfo_code}}</nobr>
108
+ </td>
109
+ <td style="text-align: center;">
110
+ <nobr>{{row.f_user_name}}</nobr>
111
+ </td>
112
+ <td style="text-align: center;">
113
+ <nobr>{{row.f_address}}</nobr>
114
+ </td>
115
+ <td style="text-align: center;">
116
+ <nobr>{{row.a}}</nobr>
117
+ </td>
118
+ <td style="text-align: center;">
119
+ <nobr>{{row.b}}</nobr>
120
+ </td>
121
+ <td style="text-align: center;">
122
+ <nobr>{{row.f_operator}}</nobr>
123
+ </td>
124
+ <td style="text-align: center;">
125
+ <nobr>{{row.f_depname}}</nobr>
126
+ </td>
127
+ <td style="text-align: center;">
128
+ <nobr>{{row.f_operate_date}}</nobr>
129
+ </td>
130
+ </template>
131
+ <template partial='foot'></template>
132
+ </data-grid>
133
+ </criteria-paged>
134
+ <table class="table-hover">
135
+ <tr style="position: relative" class="table-bordered">
136
+ <td
137
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold" >
138
+ 报表统计时间
139
+ </td>
140
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-if="startDate==endDate">
141
+ {{startDate}}
142
+ </td>
143
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-else>
144
+ {{startDate+" 至 "+endDate}}
145
+ </td>
146
+ </tr>
147
+ <tr style="position: relative" class="table-bordered">
148
+
149
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
150
+ 气量:&emsp;{{sumsmodel.a}}
151
+ </td>
152
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
153
+ 合计金额:&emsp;{{sumsmodel.b}}
154
+ </td>
155
+ </tr>
156
+ </table>
157
+ </div>
158
+ </div>
159
+ </div>
160
+ </template>
161
+ <script>
162
+ import {PagedList, HttpResetClass} from 'vue-client'
163
+ import defaultPrint from '../sale/config/DefaultPrint'
164
+ import exportConfig from '../sale/config/exportConfig'
165
+ // import defaultPrint from '../config/DefaultPrint'
166
+ import PrintDataSelf from '../sale/common/PrintDataSelf'
167
+
168
+ let readySomething = async function (self) {
169
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
170
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
171
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
172
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
173
+ }
174
+ export default {
175
+ title: '收费明细报表',
176
+ props: ['data'],
177
+ data() {
178
+ return {
179
+ depresid: [],
180
+ userresid: [],
181
+ f_orgid: this.$login.f.orgid,
182
+ f_depid: this.$login.f.depids,
183
+ f_operatorid: this.$login.f.id,
184
+ operatorid: [],
185
+ depid: [],
186
+ orgname: '',
187
+ depname: [],
188
+ operatorname: '',
189
+ orgCondtionStr: '1=1',
190
+ //默认打印列
191
+ defaultfield: [],
192
+ config: {
193
+ defaultPrint: ['f_userinfo_code', 'f_user_name']
194
+ },
195
+ data: {},
196
+ other:[],
197
+ footer:[],
198
+ model: new PagedList('rs/sql/chargeSchedule', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'},{
199
+ a:0,
200
+ b:0,
201
+
202
+ }),
203
+ gasproperties:[],
204
+ show:false,
205
+ rowdata:{},
206
+ residentialArea: [],
207
+ modelval: [],
208
+ startDate:"",
209
+ endDate:"",
210
+ inputtouPerson: [],
211
+ printshow: false,
212
+ all: false,
213
+ fields: {},
214
+ thead: '',
215
+ tfoot: '',
216
+
217
+ // 下拉框
218
+
219
+ //合计数据
220
+ sumsmodel: {},
221
+ sumField: {
222
+ // 'a': '气量', 'b': '金额'
223
+ },
224
+ pageSum: {
225
+ // '气量:a': '0.00',
226
+ // '金额:b': '0.00',
227
+
228
+ },
229
+ batchmoneyShow:false
230
+ }
231
+ },
232
+ ready() {
233
+ readySomething(this).then(() => {
234
+ this.$emit('ready')
235
+ }).catch((error) => {
236
+ this.$emit('error', error)
237
+ })
238
+ },
239
+ methods: {
240
+ getotherfooter(){
241
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
242
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
243
+ this.other=[];
244
+ this.footer=[];
245
+ let exportdata = this.getCondition;
246
+ let otherInData=[];
247
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
248
+ let footerData=[],exportfield=this.getfield;
249
+ footerData.push("合计");
250
+ let self =this;
251
+ for(var field in self.sumsmodel){
252
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
253
+ }
254
+ this.footer.push(footerData);
255
+ this.other.push(otherInData);
256
+ },
257
+ search(){
258
+ this.$refs.paged.$refs.cri.search()
259
+ },
260
+ selfSearch(args) {
261
+ let f_dep=this.f_depid
262
+ let orgcondition = ' ts.f_orgid in (' + this.f_orgid + ')'
263
+ if (f_dep[0]) {
264
+ orgcondition += " and ts.f_depid in('"+f_dep[0]+"'"
265
+ for( let i=1;i<f_dep.length;i++){
266
+ orgcondition += ",'"+f_dep[i]+"'"
267
+ }
268
+ orgcondition +=')'
269
+ }
270
+ if(this.f_operatorid[0]) {
271
+ orgcondition += ' and ts.f_operatorid in (' + this.f_operatorid + ')'
272
+ }
273
+ this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
274
+ this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
275
+ this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
276
+ this.model.search(args.f_orgid, args.model)
277
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
278
+ },
279
+ getRes (obj) {
280
+ this.orgname = obj.res[0]
281
+ this.depresid = obj.resids
282
+ this.f_orgid = obj.resids
283
+ },
284
+ getdep (obj, val) {
285
+ this.depname = val
286
+ this.userresid = obj
287
+ this.f_depid = obj
288
+ },
289
+ getuser ( obj, val) {
290
+ this.operatorname = val[0]
291
+ this.f_operatorid = 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
+ put() {
303
+ // 对Modelval进行排序
304
+ this.sortModelval()
305
+ this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
306
+ for (let key of this.modelval) {
307
+ this.thead += '<th>' + this.fields[key] + '</th>'
308
+ }
309
+ this.thead += '</tr>'
310
+ },
311
+ print() {
312
+ this.$refs.print.PrintAsFile()
313
+ this.printshow = false
314
+ },
315
+ dealmsg(val) {
316
+ console.log('---------------dealmsg')
317
+ this.rowdata=val
318
+ this.show=true
319
+ val.model = this.model.model
320
+ this.$dispatch('deal-msg', val)
321
+ },
322
+ close() {
323
+ this.printshow = false
324
+ this.all = false
325
+ },
326
+ // 对选择的列进行排序
327
+ sortModelval() {
328
+ let sortModel = []
329
+ Object.keys(this.fields).forEach((key) => {
330
+ if (this.modelval.includes(key)) {
331
+ sortModel.push(key)
332
+ }
333
+ })
334
+ this.modelval = sortModel
335
+ console.log('选择的打印的字段', this.modelval)
336
+ },
337
+ userTypeChange () {
338
+ this.gasproperties=[]
339
+ if(this.$refs.paged.$refs.criteria.model !==null) {
340
+ this.$refs.paged.$refs.criteria.model.f_gasproperties=''
341
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
342
+ }
343
+ else{
344
+ this.gasproperties =[{label: '全部', value: ''}]
345
+ }
346
+ },
347
+ },
348
+ watch: {
349
+ 'all'(val) {
350
+ if (val) {
351
+ this.modelval = this.bodyData
352
+ } else {
353
+ this.modelval = defaultPrint.config
354
+ this.put()
355
+ }
356
+ },
357
+ 'modelval.length'() {
358
+ this.put()
359
+ },
360
+ sumsmodel:{
361
+ handler: function(val) {
362
+ this.getotherfooter();
363
+ },
364
+ deep: true
365
+ }
366
+ },
367
+ computed: {
368
+ getfield() {
369
+ return exportConfig.chargeSchedule
370
+ },
371
+ // getfield() {
372
+ // let data = {}
373
+ // this.bodyData.forEach((value, index) => {
374
+ // data[this.bodyData[index]] = this.headData[index]
375
+ // })
376
+ // //合计字段打印
377
+ // this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
378
+ // if (this.sumsmodel) {
379
+ // Object.keys(this.sumsmodel).forEach((key) => {
380
+ // this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
381
+ // })
382
+ // } else {
383
+ // this.tfoot += '暂无'
384
+ // }
385
+ // this.tfoot += '</th></tr>'
386
+ // return data
387
+ // },
388
+ getCondition() {
389
+ return {
390
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
391
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
392
+ f_orgid: this.$refs.paged.$refs.cri.model.f_orgid
393
+
394
+ }
395
+
396
+ },
397
+ whetherpaies () {
398
+ return [
399
+ {label: '全部', value: ''},
400
+ {label: '已缴费', value: '是'},
401
+ {label: '未缴费', value: '否'}
402
+ ]
403
+ },
404
+ usertypes() {
405
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
406
+ }
407
+
408
+ }
409
+ }
410
+ </script>