manage-client 3.2.22 → 3.2.23

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 (114) 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/7.1/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  7. package/.gradle/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 -8
  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/BasisEcharts/BarChart.vue +247 -247
  16. package/src/components/SellReport/AmountGas.vue +257 -257
  17. package/src/components/SellReport/BonSummary.vue +178 -178
  18. package/src/components/SellReport/BusinessClassify.vue +268 -317
  19. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  20. package/src/components/SellReport/BusinessReport.vue +256 -256
  21. package/src/components/SellReport/ChSellReport.vue +251 -251
  22. package/src/components/SellReport/ChargeBill.vue +244 -244
  23. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  24. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  25. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  26. package/src/components/SellReport/DepartmentPrick.vue +243 -288
  27. package/src/components/SellReport/DeptHomePage.vue +299 -299
  28. package/src/components/SellReport/FinanceSellType.vue +254 -254
  29. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  30. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  31. package/src/components/SellReport/GasMoneyPublicReport.vue +263 -0
  32. package/src/components/SellReport/GasMoneyReport.vue +252 -254
  33. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  34. package/src/components/SellReport/GasSummary.vue +257 -257
  35. package/src/components/SellReport/Gasc.vue +257 -257
  36. package/src/components/SellReport/GetUserNum.vue +240 -240
  37. package/src/components/SellReport/HandplanBili.vue +241 -241
  38. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  39. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  40. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  41. package/src/components/SellReport/ManageGasSumChange.vue +265 -265
  42. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  43. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  44. package/src/components/SellReport/MarketMonth.vue +251 -297
  45. package/src/components/SellReport/MeterPrice.vue +244 -244
  46. package/src/components/SellReport/MeterReader.vue +231 -231
  47. package/src/components/SellReport/NonResidentGas.vue +203 -203
  48. package/src/components/SellReport/OperatorCheckoutTwo.vue +263 -263
  49. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  50. package/src/components/SellReport/OtherChargePublicReport.vue +262 -0
  51. package/src/components/SellReport/OutletTable.vue +258 -258
  52. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  53. package/src/components/SellReport/PaymentMethod.vue +274 -274
  54. package/src/components/SellReport/QTXManageBusSummary.vue +236 -236
  55. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  56. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  57. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  58. package/src/components/SellReport/SellDepReport.vue +264 -266
  59. package/src/components/SellReport/SellingTable.vue +220 -220
  60. package/src/components/SellReport/UserClassify.vue +222 -271
  61. package/src/components/SellReport/UserGasFillCard.vue +441 -441
  62. package/src/components/SellReport/UserSellingGas.vue +228 -228
  63. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  64. package/src/components/SellReport/YuShouTable.vue +298 -298
  65. package/src/components/SellReport/chargeSchedule.vue +410 -410
  66. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  67. package/src/components/SellReport/userholds.vue +257 -257
  68. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  69. package/src/components/daping/GMap.vue +636 -636
  70. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  71. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  72. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  73. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  74. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  75. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  76. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  77. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  78. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  79. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  80. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  81. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  82. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  83. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  84. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  85. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  86. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  87. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  88. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  89. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  90. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  91. package/src/components/webmeter/report/ReportList.vue +434 -434
  92. package/src/filiale/WEINAN/BankManager.vue +139 -0
  93. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  94. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  95. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  96. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  97. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  98. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  99. package/src/filiale/WEINAN/config/exportConfig.js +833 -833
  100. package/src/filiale/WEINAN/reportManage.js +1 -0
  101. package/src/filiale/WEINAN/sale.js +36 -36
  102. package/src/filiale/alashan/reportManage.js +10 -10
  103. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  104. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  105. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  106. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  107. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  108. package/src/filiale/meihekou/sale.js +29 -29
  109. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  110. package/src/filiale/rongchuang/reportManage.js +11 -11
  111. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  112. package/src/filiale/tongchuan/reportManage.js +5 -5
  113. package/src/reportManage.js +498 -490
  114. package/static/wuhai.json +1610 -1610
@@ -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 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>
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>