manage-client 3.2.14 → 3.2.18

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 (73) hide show
  1. package/build/dev-server.js +6 -4
  2. package/package.json +1 -1
  3. package/src/components/BasisEcharts/BarChart.vue +247 -247
  4. package/src/components/SellReport/BonSummary.vue +178 -178
  5. package/src/components/SellReport/CivilGasReport.vue +194 -0
  6. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  7. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  8. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  9. package/src/components/SellReport/NonResidentGas.vue +203 -203
  10. package/src/components/SellReport/OutletTable.vue +258 -258
  11. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  12. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  13. package/src/components/SellReport/SellingTable.vue +220 -220
  14. package/src/components/SellReport/UnCivilGasReport.vue +194 -0
  15. package/src/components/SellReport/UserSellingGas.vue +177 -177
  16. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  17. package/src/components/daping/GMap.vue +636 -636
  18. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  19. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  20. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  21. package/src/components/sale/businessquery/BusinesQuery.vue +348 -348
  22. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  23. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  24. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  25. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  26. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  27. package/src/components/sale/config/exportConfig.js +887 -887
  28. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  29. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  30. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  31. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  32. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  33. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  34. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  35. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  36. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  37. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  38. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  39. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  40. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  41. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  42. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  43. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  44. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  45. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  46. package/src/filiale/WEINAN/reportManage.js +12 -12
  47. package/src/filiale/WEINAN/sale.js +36 -36
  48. package/src/filiale/alashan/reportManage.js +10 -10
  49. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  50. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  51. package/src/filiale/meihekou/CardHandplanQuery.vue +78 -7
  52. package/src/filiale/meihekou/RecordInfoQuery.vue +3 -3
  53. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  54. package/src/filiale/meihekou/YingShouMingXi.vue +538 -0
  55. package/src/filiale/meihekou/config/exportConfig.js +831 -804
  56. package/src/filiale/meihekou/sale.js +29 -26
  57. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  58. package/src/filiale/rongchuang/reportManage.js +11 -11
  59. package/src/filiale/shaoguan/sale/businessquery/oldMeterList.vue +295 -295
  60. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -302
  61. package/src/filiale/tongchuan/reportManage.js +5 -6
  62. package/src/reportManage.js +8 -0
  63. package/static/wuhai.json +1610 -1610
  64. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  65. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  66. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  67. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  68. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  69. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  70. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  71. package/.gradle/7.1/gc.properties +0 -0
  72. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  73. package/.gradle/configuration-cache/gc.properties +0 -0
@@ -1,467 +1,467 @@
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-inline 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 HH:mm:ss'"
15
- :show-reset-button="true"
16
- >
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 HH:mm:ss'"
25
- :show-reset-button="true"
26
- >
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body">客户编号</label>
31
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body">客户名称</label>
36
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
- condition="f_user_name like '%{}%'" placeholder="客户名称">
38
- </div>
39
-
40
- <div class="span" style="float:right;">
41
- <button class="button_search button_spacing" @click="search()">查询</button>
42
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
- <export-excel :data="$parent.$parent.getCondition"
44
- :field="$parent.$parent.getfield"
45
- :footer="$parent.$parent.footer"
46
- :header="$parent.$parent.other"
47
- sqlurl="rs/logic/exportfile"
48
- sql-name="MonthGasQuery"
49
- template-name='月用气导出'
50
- :choose-col="true"></export-excel>
51
-
52
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
53
- :defaultfield="$parent.$parent.defaultfield"
54
- titletable="月用气导出"
55
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
56
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
57
- </div>
58
- </div>
59
- <div class="row" v-show="$parent.$parent.criteriaShow">
60
- <div class="col-sm-2 form-group">
61
- <label class="font_normal_body">客户地址</label>
62
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
63
- condition="f_address like '%{}%'" placeholder='客户地址'>
64
- </div>
65
-
66
- <div class="col-sm-2 form-group">
67
- <label class="font_normal_body" title="参数名称:用户类型">客户类型</label>
68
- <v-select :value.sync="model.f_user_type"
69
- @change="$parent.$parent.userTypeChange()"
70
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
71
- condition="f_user_type = '{}'"
72
- close-on-select></v-select>
73
- </div>
74
-
75
- <div class="col-sm-2 form-group">
76
- <label class="font_normal_body">用气性质</label>
77
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
78
- :options='$parent.$parent.gasproperties' placeholder='请选择'
79
- condition="f_gasproperties = '{}'"
80
- close-on-select></v-select>
81
- </div>
82
- <div class="col-sm-2 form-group">
83
- <label class="font_normal_body">状态</label>
84
- <v-select :value.sync="model.f_state" v-model="model.f_state"
85
- :options='$parent.$parent.f_state' placeholder='请选择'
86
- multiple
87
- :search="false"
88
- condition="f_state in {} "
89
- close-on-select></v-select>
90
- </div>
91
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
92
- <div class="col-sm-2 form-group">
93
- <label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
94
- <v-select :value.sync="model.f_meter_style"
95
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_style"
96
- condition="f_meter_style = '{}'"
97
- close-on-select></v-select>
98
- </div>
99
- </div>
100
- </div>
101
- </criteria>
102
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
103
- <template partial='head'>
104
- <tr>
105
- <th><nobr>客户编号</nobr></th>
106
- <th><nobr>客户名称</nobr></th>
107
- <th><nobr>一月</nobr></th>
108
- <th><nobr>二月</nobr></th>
109
- <th><nobr>三月</nobr></th>
110
- <th><nobr>四月</nobr></th>
111
- <th><nobr>五月</nobr></th>
112
- <th><nobr>六月</nobr></th>
113
- <th><nobr>七月</nobr></th>
114
- <th><nobr>八月</nobr></th>
115
- <th><nobr>九月</nobr></th>
116
- <th><nobr>十月</nobr></th>
117
- <th><nobr>十一月</nobr></th>
118
- <th><nobr>十二月</nobr></th>
119
- <th><nobr>累计气量</nobr></th>
120
- <th><nobr>累计金额</nobr></th>
121
- <th><nobr>月平均气量</nobr></th>
122
- <th><nobr>往年月平均气量</nobr></th>
123
- <th><nobr>气表类型</nobr></th>
124
- </tr>
125
- </template>
126
- <template partial='body'>
127
- <td style="text-align: center;">
128
- <nobr>{{row.code}}</nobr>
129
- </td>
130
- <td style="text-align: center;">
131
- <nobr>{{row.username}}</nobr>
132
- </td>
133
- <td style="text-align: center;">
134
- <nobr>{{row.jan}}</nobr>
135
- </td>
136
- <td style="text-align: center;">
137
- <nobr>{{row.feb}}</nobr>
138
- </td>
139
- <td style="text-align: center;">
140
- <nobr>{{row.mar}}</nobr>
141
- </td>
142
- <td style="text-align: center;">
143
- <nobr>{{row.apr}}</nobr>
144
- </td>
145
- <td style="text-align: center;">
146
- <nobr>{{row.may}}</nobr>
147
- </td>
148
- <td style="text-align: center;">
149
- <nobr>{{row.jun}}</nobr>
150
- </td>
151
- <td style="text-align: center;">
152
- <nobr>{{row.jul}}</nobr>
153
- </td>
154
- <td style="text-align: center;">
155
- <nobr>{{row.jug}}</nobr>
156
- </td>
157
- <td style="text-align: center;">
158
- <nobr>{{row.sep}}</nobr>
159
- </td>
160
- <td style="text-align: center;">
161
- <nobr>{{row.oct}}</nobr>
162
- </td>
163
- <td style="text-align: center;">
164
- <nobr>{{row.nov}}</nobr>
165
- </td>
166
- <td style="text-align: center;">
167
- <nobr>{{row.dec}}</nobr>
168
- </td>
169
- <td style="text-align: center;">
170
- <nobr>{{row.sum_oughtamount}}</nobr>
171
- </td>
172
- <td style="text-align: center;">
173
- <nobr>{{row.f_oughtfee}}</nobr>
174
- </td>
175
- <td style="text-align: center;">
176
- <nobr>{{row.avg_oughtamount}}</nobr>
177
- </td>
178
- <td style="text-align: center;">
179
- <nobr>{{row.avg_qunianoughtamount}}</nobr>
180
- </td>
181
- <td style="text-align: center;">
182
- <nobr>{{row.f_meter_style}}</nobr>
183
- </td>
184
- </template>
185
- <template partial='foot'></template>
186
- </data-grid>
187
- </criteria-paged>
188
- <table class="table-hover">
189
- <tr style="position: relative" class="table-bordered">
190
- <td
191
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
192
- 汇总信息
193
- </td>
194
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
195
- 1月合计:&emsp;{{sumsmodel.jan}}
196
- </td>
197
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
198
- 2月合计:&emsp;{{sumsmodel.feb}}
199
- </td>
200
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
201
- 3月合计:&emsp;{{sumsmodel.mar}}
202
- </td>
203
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
204
- 4月合计:&emsp;{{sumsmodel.apr}}
205
- </td>
206
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
207
- 5月合计:&emsp;{{sumsmodel.may}}
208
- </td>
209
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
210
- 6月合计:&emsp;{{sumsmodel.jun}}
211
- </td>
212
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
213
- 7月合计:&emsp;{{sumsmodel.jul}}
214
- </td>
215
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
216
- 8月合计:&emsp;{{sumsmodel.jug}}
217
- </td>
218
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
219
- 9月合计:&emsp;{{sumsmodel.sep}}
220
- </td>
221
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
222
- 10月合计:&emsp;{{sumsmodel.oct}}
223
- </td>
224
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
225
- 11月合计:&emsp;{{sumsmodel.nov}}
226
- </td>
227
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
228
- 12月合计:&emsp;{{sumsmodel.dec}}
229
- </td>
230
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
231
- 累计用气量合计:&emsp;{{sumsmodel.sum_oughtamount}}
232
- </td>
233
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
234
- 累计金额合计:&emsp;{{sumsmodel.f_oughtfee}}
235
- </td>
236
- </tr>
237
- </table>
238
- </div>
239
- <div v-if="show">
240
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
241
- </div>
242
- </div>
243
- </div>
244
- </template>
245
- <script>
246
- import { PagedList } from 'vue-client'
247
- import defaultPrint from '../config/DefaultPrint'
248
- import exportConfig from '../config/exportConfig.js'
249
- let readySomething = async function(self) {
250
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
251
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
252
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
253
- await self.$MagLoadParams.loadParam()
254
- self.smallareas=[{label: '全部',value: ''},...await self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid)]
255
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
256
- }
257
- export default {
258
- title: '月用气查询',
259
- name: 'MonthGasQuery',
260
- data () {
261
- return {
262
- model: new PagedList('rs/sql/MonthGasQuery', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
263
- jan: 0,
264
- feb: 0,
265
- mar: 0,
266
- apr: 0,
267
- may: 0,
268
- jun: 0,
269
- jul: 0,
270
- jug: 0,
271
- sep: 0,
272
- oct: 0,
273
- nov: 0,
274
- dec: 0,
275
- sum_oughtamount: 0,
276
- f_oughtfee: 0
277
- }),
278
- initres: {
279
- org:[this.$login.f.orgid],
280
- dep:[],
281
- user:[],
282
- },
283
- other: [],
284
- footer: [],
285
- gasproperties:[],
286
- show:false,
287
- rowdata:{},
288
- criteriaShow: false,
289
- orgCondtionStr: '',
290
- modelval: [],
291
- printshow: false,
292
- all: false,
293
- fields: {},
294
- thead: '',
295
- tfoot: '',
296
- defaultfield: [],
297
- config: {
298
- defaultPrint: ['f_oughtfee', 'avg_oughtamount']
299
- },
300
- smallareas:[{label: '全部',value: ''}], //区域
301
- //合计数据
302
- sumsmodel: {},
303
- f_filialeid: this.$login.f.f_orgid,
304
- f_orgid: this.$login.f.orgid,
305
- f_depid: this.$login.f.depids,
306
- f_operatorid: this.$login.f.id
307
- }
308
- },
309
- ready () {
310
- readySomething(this)
311
- },
312
- methods: {
313
- getotherfooter() {
314
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
315
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
316
- this.other = [];
317
- this.footer = [];
318
- // let exportdata = this.getCondition;
319
- let otherInData = [];
320
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
321
- let footerData = [], exportfield = this.getfield;
322
- footerData.push("合计");
323
- let self = this;
324
- for (var field in self.sumsmodel) {
325
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
326
- }
327
- this.footer.push(footerData);
328
- this.other.push(otherInData);
329
- },
330
- userTypeChange () {
331
- this.gasproperties=[]
332
- if(this.$refs.paged.$refs.cri.model !==null) {
333
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
334
-
335
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
336
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
337
- }
338
- else{
339
- this.gasproperties =[{label: '全部', value: ''}]
340
- }
341
- },
342
- search(){
343
- this.$refs.paged.$refs.cri.search()
344
- },
345
- cancel() {
346
- this.show = false
347
- },
348
- selfSearch(args) {
349
- args.condition = `${args.condition} ` + this.orgCondtionStr
350
- let f_orgstr = this.orgCondtionStr + 'and f_orgid = ' + this.f_orgid
351
- args.condition = `${args.condition} ` + f_orgstr
352
- this.model.search(args.condition, args.model)
353
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
354
- },
355
- clear() {
356
- //清空部门和人员
357
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
358
- //部门和人员变为全选
359
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
360
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
361
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
362
- this.$refs.paged.$refs.cri.model[key] = []
363
- })
364
- },
365
- show() {
366
- this.criteriaShow = true
367
- },
368
- hidden() {
369
- this.criteriaShow = !this.criteriaShow
370
- },
371
- showmsg(obj){
372
- this.rowdata=obj
373
- this.show=true
374
- },
375
- getRes(condition,obj) {
376
- this.orgCondtionStr = condition
377
- this.orgname = obj.orgnames[0]
378
- this.depname = obj.depnames[0]
379
- },
380
- put() {
381
- // 对Modelval进行排序
382
- this.sortModelval()
383
- this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
384
- for (let key of this.modelval) {
385
- this.thead += '<th>' + this.fields[key] + '</th>'
386
- }
387
- this.thead += '</tr>'
388
- },
389
- print() {
390
- this.$refs.print.PrintAsFile()
391
- this.printshow = false
392
- },
393
- dealmsg(val) {
394
- this.rowdata=val
395
- this.show=true
396
- val.model = this.model.model
397
- this.$dispatch('deal-msg', val)
398
- },
399
- close() {
400
- this.printshow = false
401
- this.all = false
402
- },
403
- // 对选择的列进行排序
404
- sortModelval() {
405
- let sortModel = []
406
- Object.keys(this.fields).forEach((key) => {
407
- if (this.modelval.includes(key)) {
408
- sortModel.push(key)
409
- }
410
- })
411
- this.modelval = sortModel
412
- console.log('选择的打印的字段', this.modelval)
413
- }
414
- },
415
- computed: {
416
- getCondition() {
417
- return {
418
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
419
- startDate: this.$refs.paged.$refs.cri.model.startDate,
420
- endDate: this.$refs.paged.$refs.cri.model.endDate
421
- }
422
- },
423
- getfield() {
424
- return exportConfig.monthGasConfig
425
- },
426
- usertypes() {
427
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
428
- },
429
- f_state() {
430
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费状态')]
431
- },
432
- metertypes() {
433
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
434
- },
435
- },
436
- events: {
437
-
438
- },
439
- watch: {
440
- 'all'(val) {
441
- if (val) {
442
- this.modelval = this.bodyData
443
- } else {
444
- this.modelval = defaultPrint.config
445
- this.put()
446
- }
447
- },
448
- 'modelval.length'() {
449
- this.put()
450
- },
451
- sumsmodel: {
452
- handler: function (val) {
453
- this.getotherfooter();
454
- },
455
- deep: true
456
- }
457
- }
458
- }
459
- </script>
460
- <style>
461
- .datapanel {
462
- color: #333;
463
- background-color: white;
464
- padding: 10px 20px;
465
- border-radius:15px;
466
- }
467
- </style>
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-inline 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 HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ >
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 HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ >
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body">客户名称</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
38
+ </div>
39
+
40
+ <div class="span" style="float:right;">
41
+ <button class="button_search button_spacing" @click="search()">查询</button>
42
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
+ <export-excel :data="$parent.$parent.getCondition"
44
+ :field="$parent.$parent.getfield"
45
+ :footer="$parent.$parent.footer"
46
+ :header="$parent.$parent.other"
47
+ sqlurl="rs/logic/exportfile"
48
+ sql-name="MonthGasQuery"
49
+ template-name='月用气导出'
50
+ :choose-col="true"></export-excel>
51
+
52
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
53
+ :defaultfield="$parent.$parent.defaultfield"
54
+ titletable="月用气导出"
55
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
56
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
57
+ </div>
58
+ </div>
59
+ <div class="row" v-show="$parent.$parent.criteriaShow">
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body">客户地址</label>
62
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
63
+ condition="f_address like '%{}%'" placeholder='客户地址'>
64
+ </div>
65
+
66
+ <div class="col-sm-2 form-group">
67
+ <label class="font_normal_body" title="参数名称:用户类型">客户类型</label>
68
+ <v-select :value.sync="model.f_user_type"
69
+ @change="$parent.$parent.userTypeChange()"
70
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
71
+ condition="f_user_type = '{}'"
72
+ close-on-select></v-select>
73
+ </div>
74
+
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">用气性质</label>
77
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
78
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
79
+ condition="f_gasproperties = '{}'"
80
+ close-on-select></v-select>
81
+ </div>
82
+ <div class="col-sm-2 form-group">
83
+ <label class="font_normal_body">状态</label>
84
+ <v-select :value.sync="model.f_state" v-model="model.f_state"
85
+ :options='$parent.$parent.f_state' placeholder='请选择'
86
+ multiple
87
+ :search="false"
88
+ condition="f_state in {} "
89
+ close-on-select></v-select>
90
+ </div>
91
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
92
+ <div class="col-sm-2 form-group">
93
+ <label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
94
+ <v-select :value.sync="model.f_meter_style"
95
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_style"
96
+ condition="f_meter_style = '{}'"
97
+ close-on-select></v-select>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ </criteria>
102
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
103
+ <template partial='head'>
104
+ <tr>
105
+ <th><nobr>客户编号</nobr></th>
106
+ <th><nobr>客户名称</nobr></th>
107
+ <th><nobr>一月</nobr></th>
108
+ <th><nobr>二月</nobr></th>
109
+ <th><nobr>三月</nobr></th>
110
+ <th><nobr>四月</nobr></th>
111
+ <th><nobr>五月</nobr></th>
112
+ <th><nobr>六月</nobr></th>
113
+ <th><nobr>七月</nobr></th>
114
+ <th><nobr>八月</nobr></th>
115
+ <th><nobr>九月</nobr></th>
116
+ <th><nobr>十月</nobr></th>
117
+ <th><nobr>十一月</nobr></th>
118
+ <th><nobr>十二月</nobr></th>
119
+ <th><nobr>累计气量</nobr></th>
120
+ <th><nobr>累计金额</nobr></th>
121
+ <th><nobr>月平均气量</nobr></th>
122
+ <th><nobr>往年月平均气量</nobr></th>
123
+ <th><nobr>气表类型</nobr></th>
124
+ </tr>
125
+ </template>
126
+ <template partial='body'>
127
+ <td style="text-align: center;">
128
+ <nobr>{{row.code}}</nobr>
129
+ </td>
130
+ <td style="text-align: center;">
131
+ <nobr>{{row.username}}</nobr>
132
+ </td>
133
+ <td style="text-align: center;">
134
+ <nobr>{{row.jan}}</nobr>
135
+ </td>
136
+ <td style="text-align: center;">
137
+ <nobr>{{row.feb}}</nobr>
138
+ </td>
139
+ <td style="text-align: center;">
140
+ <nobr>{{row.mar}}</nobr>
141
+ </td>
142
+ <td style="text-align: center;">
143
+ <nobr>{{row.apr}}</nobr>
144
+ </td>
145
+ <td style="text-align: center;">
146
+ <nobr>{{row.may}}</nobr>
147
+ </td>
148
+ <td style="text-align: center;">
149
+ <nobr>{{row.jun}}</nobr>
150
+ </td>
151
+ <td style="text-align: center;">
152
+ <nobr>{{row.jul}}</nobr>
153
+ </td>
154
+ <td style="text-align: center;">
155
+ <nobr>{{row.jug}}</nobr>
156
+ </td>
157
+ <td style="text-align: center;">
158
+ <nobr>{{row.sep}}</nobr>
159
+ </td>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.oct}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.nov}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.dec}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.sum_oughtamount}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_oughtfee}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.avg_oughtamount}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.avg_qunianoughtamount}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_meter_style}}</nobr>
183
+ </td>
184
+ </template>
185
+ <template partial='foot'></template>
186
+ </data-grid>
187
+ </criteria-paged>
188
+ <table class="table-hover">
189
+ <tr style="position: relative" class="table-bordered">
190
+ <td
191
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
192
+ 汇总信息
193
+ </td>
194
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
195
+ 1月合计:&emsp;{{sumsmodel.jan}}
196
+ </td>
197
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
198
+ 2月合计:&emsp;{{sumsmodel.feb}}
199
+ </td>
200
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
201
+ 3月合计:&emsp;{{sumsmodel.mar}}
202
+ </td>
203
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
204
+ 4月合计:&emsp;{{sumsmodel.apr}}
205
+ </td>
206
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
207
+ 5月合计:&emsp;{{sumsmodel.may}}
208
+ </td>
209
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
210
+ 6月合计:&emsp;{{sumsmodel.jun}}
211
+ </td>
212
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
213
+ 7月合计:&emsp;{{sumsmodel.jul}}
214
+ </td>
215
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
216
+ 8月合计:&emsp;{{sumsmodel.jug}}
217
+ </td>
218
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
219
+ 9月合计:&emsp;{{sumsmodel.sep}}
220
+ </td>
221
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
222
+ 10月合计:&emsp;{{sumsmodel.oct}}
223
+ </td>
224
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
225
+ 11月合计:&emsp;{{sumsmodel.nov}}
226
+ </td>
227
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
228
+ 12月合计:&emsp;{{sumsmodel.dec}}
229
+ </td>
230
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
231
+ 累计用气量合计:&emsp;{{sumsmodel.sum_oughtamount}}
232
+ </td>
233
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
234
+ 累计金额合计:&emsp;{{sumsmodel.f_oughtfee}}
235
+ </td>
236
+ </tr>
237
+ </table>
238
+ </div>
239
+ <div v-if="show">
240
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
241
+ </div>
242
+ </div>
243
+ </div>
244
+ </template>
245
+ <script>
246
+ import { PagedList } from 'vue-client'
247
+ import defaultPrint from '../config/DefaultPrint'
248
+ import exportConfig from '../config/exportConfig.js'
249
+ let readySomething = async function(self) {
250
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
251
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
252
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
253
+ await self.$MagLoadParams.loadParam()
254
+ self.smallareas=[{label: '全部',value: ''},...await self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid)]
255
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
256
+ }
257
+ export default {
258
+ title: '月用气查询',
259
+ name: 'MonthGasQuery',
260
+ data () {
261
+ return {
262
+ model: new PagedList('rs/sql/MonthGasQuery', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
263
+ jan: 0,
264
+ feb: 0,
265
+ mar: 0,
266
+ apr: 0,
267
+ may: 0,
268
+ jun: 0,
269
+ jul: 0,
270
+ jug: 0,
271
+ sep: 0,
272
+ oct: 0,
273
+ nov: 0,
274
+ dec: 0,
275
+ sum_oughtamount: 0,
276
+ f_oughtfee: 0
277
+ }),
278
+ initres: {
279
+ org:[this.$login.f.orgid],
280
+ dep:[],
281
+ user:[],
282
+ },
283
+ other: [],
284
+ footer: [],
285
+ gasproperties:[],
286
+ show:false,
287
+ rowdata:{},
288
+ criteriaShow: false,
289
+ orgCondtionStr: '',
290
+ modelval: [],
291
+ printshow: false,
292
+ all: false,
293
+ fields: {},
294
+ thead: '',
295
+ tfoot: '',
296
+ defaultfield: [],
297
+ config: {
298
+ defaultPrint: ['f_oughtfee', 'avg_oughtamount']
299
+ },
300
+ smallareas:[{label: '全部',value: ''}], //区域
301
+ //合计数据
302
+ sumsmodel: {},
303
+ f_filialeid: this.$login.f.f_orgid,
304
+ f_orgid: this.$login.f.orgid,
305
+ f_depid: this.$login.f.depids,
306
+ f_operatorid: this.$login.f.id
307
+ }
308
+ },
309
+ ready () {
310
+ readySomething(this)
311
+ },
312
+ methods: {
313
+ getotherfooter() {
314
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
315
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
316
+ this.other = [];
317
+ this.footer = [];
318
+ // let exportdata = this.getCondition;
319
+ let otherInData = [];
320
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
321
+ let footerData = [], exportfield = this.getfield;
322
+ footerData.push("合计");
323
+ let self = this;
324
+ for (var field in self.sumsmodel) {
325
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
326
+ }
327
+ this.footer.push(footerData);
328
+ this.other.push(otherInData);
329
+ },
330
+ userTypeChange () {
331
+ this.gasproperties=[]
332
+ if(this.$refs.paged.$refs.cri.model !==null) {
333
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
334
+
335
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
336
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
337
+ }
338
+ else{
339
+ this.gasproperties =[{label: '全部', value: ''}]
340
+ }
341
+ },
342
+ search(){
343
+ this.$refs.paged.$refs.cri.search()
344
+ },
345
+ cancel() {
346
+ this.show = false
347
+ },
348
+ selfSearch(args) {
349
+ args.condition = `${args.condition} ` + this.orgCondtionStr
350
+ let f_orgstr = this.orgCondtionStr + 'and f_orgid = ' + this.f_orgid
351
+ args.condition = `${args.condition} ` + f_orgstr
352
+ this.model.search(args.condition, args.model)
353
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
354
+ },
355
+ clear() {
356
+ //清空部门和人员
357
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
358
+ //部门和人员变为全选
359
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
360
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
361
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
362
+ this.$refs.paged.$refs.cri.model[key] = []
363
+ })
364
+ },
365
+ show() {
366
+ this.criteriaShow = true
367
+ },
368
+ hidden() {
369
+ this.criteriaShow = !this.criteriaShow
370
+ },
371
+ showmsg(obj){
372
+ this.rowdata=obj
373
+ this.show=true
374
+ },
375
+ getRes(condition,obj) {
376
+ this.orgCondtionStr = condition
377
+ this.orgname = obj.orgnames[0]
378
+ this.depname = obj.depnames[0]
379
+ },
380
+ put() {
381
+ // 对Modelval进行排序
382
+ this.sortModelval()
383
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
384
+ for (let key of this.modelval) {
385
+ this.thead += '<th>' + this.fields[key] + '</th>'
386
+ }
387
+ this.thead += '</tr>'
388
+ },
389
+ print() {
390
+ this.$refs.print.PrintAsFile()
391
+ this.printshow = false
392
+ },
393
+ dealmsg(val) {
394
+ this.rowdata=val
395
+ this.show=true
396
+ val.model = this.model.model
397
+ this.$dispatch('deal-msg', val)
398
+ },
399
+ close() {
400
+ this.printshow = false
401
+ this.all = false
402
+ },
403
+ // 对选择的列进行排序
404
+ sortModelval() {
405
+ let sortModel = []
406
+ Object.keys(this.fields).forEach((key) => {
407
+ if (this.modelval.includes(key)) {
408
+ sortModel.push(key)
409
+ }
410
+ })
411
+ this.modelval = sortModel
412
+ console.log('选择的打印的字段', this.modelval)
413
+ }
414
+ },
415
+ computed: {
416
+ getCondition() {
417
+ return {
418
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
419
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
420
+ endDate: this.$refs.paged.$refs.cri.model.endDate
421
+ }
422
+ },
423
+ getfield() {
424
+ return exportConfig.monthGasConfig
425
+ },
426
+ usertypes() {
427
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
428
+ },
429
+ f_state() {
430
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费状态')]
431
+ },
432
+ metertypes() {
433
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
434
+ },
435
+ },
436
+ events: {
437
+
438
+ },
439
+ watch: {
440
+ 'all'(val) {
441
+ if (val) {
442
+ this.modelval = this.bodyData
443
+ } else {
444
+ this.modelval = defaultPrint.config
445
+ this.put()
446
+ }
447
+ },
448
+ 'modelval.length'() {
449
+ this.put()
450
+ },
451
+ sumsmodel: {
452
+ handler: function (val) {
453
+ this.getotherfooter();
454
+ },
455
+ deep: true
456
+ }
457
+ }
458
+ }
459
+ </script>
460
+ <style>
461
+ .datapanel {
462
+ color: #333;
463
+ background-color: white;
464
+ padding: 10px 20px;
465
+ border-radius:15px;
466
+ }
467
+ </style>