manage-client 3.2.5 → 3.2.6

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