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,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>