manage-client 3.2.29 → 3.2.33

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 (83) hide show
  1. package/build/dev-server.js +6 -4
  2. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  3. package/package.json +1 -1
  4. package/src/components/BasisEcharts/BarChart.vue +247 -247
  5. package/src/components/SellReport/BonSummary.vue +178 -178
  6. package/src/components/SellReport/ChargePrick.vue +205 -205
  7. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  8. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  9. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  10. package/src/components/SellReport/NonResidentGas.vue +203 -203
  11. package/src/components/SellReport/OutletTable.vue +258 -258
  12. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  13. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  14. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  15. package/src/components/SellReport/SellingTable.vue +220 -220
  16. package/src/components/SellReport/UserSellingGas.vue +228 -228
  17. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  18. package/src/components/daping/GMap.vue +636 -636
  19. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  20. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  21. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  22. package/src/components/sale/businessquery/BusinesQuery.vue +10 -0
  23. package/src/components/sale/businessquery/ChangeMeterQuery.vue +7 -7
  24. package/src/components/sale/businessquery/ChangeUserQuery.vue +10 -1
  25. package/src/components/sale/businessquery/ChargeQuery.vue +10 -0
  26. package/src/components/sale/businessquery/DisableQuery.vue +10 -0
  27. package/src/components/sale/businessquery/EnableQuery.vue +10 -0
  28. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  29. package/src/components/sale/businessquery/FillCardQuery.vue +6 -1
  30. package/src/components/sale/businessquery/FillGasQuery.vue +6 -1
  31. package/src/components/sale/businessquery/InspectListUser.vue +43 -64
  32. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  33. package/src/components/sale/businessquery/OtherChargeQuery.vue +10 -0
  34. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  35. package/src/components/sale/businessquery/ReverseQuery.vue +10 -0
  36. package/src/components/sale/businessquery/TransferQuery.vue +10 -0
  37. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  38. package/src/components/sale/businessquery/usergas.vue +311 -311
  39. package/src/components/sale/filesquery/ArchivesManage.vue +57 -57
  40. package/src/components/sale/filesquery/DeviceQuery.vue +10 -0
  41. package/src/components/sale/filesquery/FireQuery.vue +477 -477
  42. package/src/components/sale/filesquery/RecordInfoQuery.vue +10 -0
  43. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  44. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  45. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  46. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  47. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  48. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  49. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  50. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  51. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  52. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  53. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  54. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  55. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  56. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  57. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  58. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  59. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  60. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  61. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  62. package/src/filiale/WEINAN/reportManage.js +12 -12
  63. package/src/filiale/WEINAN/sale.js +36 -36
  64. package/src/filiale/alashan/reportManage.js +10 -10
  65. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  66. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  67. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  68. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  69. package/src/filiale/meihekou/CardHandplanQuery.vue +1 -1
  70. package/src/filiale/meihekou/DeviceQuery.vue +545 -0
  71. package/src/filiale/meihekou/RecordInfoQuery.vue +10 -0
  72. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  73. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  74. package/src/filiale/meihekou/config/exportConfig.js +2 -2
  75. package/src/filiale/meihekou/sale.js +3 -1
  76. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  77. package/src/filiale/rongchuang/reportManage.js +11 -11
  78. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  79. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  80. package/src/filiale/tongchuan/reportManage.js +5 -5
  81. package/src/main.js +4 -4
  82. package/src/saleManage.js +529 -529
  83. package/static/wuhai.json +1610 -1610
@@ -1,311 +1,311 @@
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
- <v-select :value.sync="model.f_user_type"
32
- :options='$parent.$parent.usertypes'
33
- @change="$parent.$parent.userTypeChange()"
34
- placeholder='请选择' v-model="model.f_user_type"
35
- condition="f_user_type = '{}'"
36
- close-on-select></v-select>
37
- </div>
38
-
39
- <div class="span" style="float:right;">
40
- <button class="button_search button_spacing" @click="search()">查询</button>
41
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
42
- <export-excel :data="$parent.$parent.getCondition"
43
- :field="$parent.$parent.getfield"
44
- :footer="$parent.$parent.footer"
45
- :header="$parent.$parent.other"
46
- sqlurl="rs/logic/exportfile"
47
- sql-name="usergaszong"
48
- template-name='用户用气费用表'
49
- :choose-col="true"></export-excel>
50
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
51
- :defaultfield="$parent.$parent.defaultfield"
52
- titletable="用户用气费用表"
53
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
54
- <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>
55
- </div>
56
- </div>
57
- <div class="row" v-show="$parent.$parent.criteriaShow">
58
- <res-select-group :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
59
- </div>
60
- </div>
61
- </criteria>
62
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
63
- <template partial='head'>
64
- <tr>
65
- <th><nobr>用户名称</nobr></th>
66
- <th><nobr>气价</nobr></th>
67
- <th><nobr>售气量</nobr></th>
68
- <th><nobr>金额</nobr></th>
69
- </tr>
70
- </template>
71
- <template partial='body'>
72
- <td style="text-align: center;">
73
- <nobr>{{row.f_user_name}}</nobr>
74
- </td>
75
- <td style="text-align: center;">
76
- <nobr>{{row.f_price}}</nobr>
77
- </td>
78
- <td style="text-align: center;">
79
- <nobr>{{row.a}}</nobr>
80
- </td>
81
- <td style="text-align: center;">
82
- <nobr>{{row.b}}</nobr>
83
- </td>
84
- </template>
85
- <template partial='foot'></template>
86
- </data-grid>
87
- </criteria-paged>
88
- <table class="table-hover">
89
- <tr style="position: relative" class="table-bordered">
90
- <td
91
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
92
- 汇总信息
93
- </td>
94
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
95
- 累计售气量合计:&emsp;{{sumsmodel.a}}
96
- </td>
97
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
98
- 累计金额合计:&emsp;{{sumsmodel.b}}
99
- </td>
100
- </tr>
101
- </table>
102
- </div>
103
- <div v-if="show">
104
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
105
- </div>
106
- </div>
107
- </div>
108
- </template>
109
- <script>
110
- import { PagedList } from 'vue-client'
111
- import defaultPrint from '../config/DefaultPrint'
112
- import exportConfig from '../config/exportConfig.js'
113
- let readySomething = async function(self) {
114
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
115
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
116
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
117
- await self.$MagLoadParams.loadParam()
118
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
119
- }
120
- export default {
121
- title: '用户用气查询',
122
- name: 'userags',
123
- data () {
124
- return {
125
- defaultfield: [],
126
- config: {
127
- defaultPrint: ['f_price','f_user_type']
128
- },
129
- model: new PagedList('rs/sql/usergaszong', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
130
- a: 0,
131
- b: 0,
132
- }),
133
- other: [],
134
- footer: [],
135
- gasproperties:[],
136
- show:false,
137
- rowdata:{},
138
- criteriaShow: false,
139
- orgCondtionStr: '',
140
- modelval: [],
141
- printshow: false,
142
- all: false,
143
- fields: {},
144
- thead: '',
145
- tfoot: '',
146
- //合计数据
147
- sumsmodel: {},
148
- f_filialeid: this.$login.f.f_orgid,
149
- f_orgid: this.$login.f.orgid,
150
- f_depid: this.$login.f.depids,
151
- f_operatorid: this.$login.f.id
152
- }
153
- },
154
- ready () {
155
- console.log('选择的打印的字段')
156
- console.log('hhhhhhhhh'+ this.$login.f.orgid)
157
- // readySomething(this)
158
- readySomething(this).then(() => {
159
- this.$emit('ready')
160
- }).catch((error) => {
161
- this.$emit('error', error)
162
- })
163
- },
164
- methods: {
165
- getotherfooter() {
166
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
167
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
168
- this.other = [];
169
- this.footer = [];
170
- // let exportdata = this.getCondition;
171
- let otherInData = [];
172
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
173
- let footerData = [], exportfield = this.getfield;
174
- footerData.push("合计");
175
- let self = this;
176
- for (var field in self.sumsmodel) {
177
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
178
- }
179
- this.footer.push(footerData);
180
- this.other.push(otherInData);
181
- },
182
- userTypeChange () {
183
- this.gasproperties=[]
184
- if(this.$refs.paged.$refs.cri.model !==null) {
185
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
186
-
187
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
188
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
189
- }
190
- else{
191
- this.gasproperties =[{label: '全部', value: ''}]
192
- }
193
- },
194
- search(){
195
- this.$refs.paged.$refs.cri.search()
196
- },
197
- cancel() {
198
- this.show = false
199
- },
200
- selfSearch(args) {
201
- args.condition = `${args.condition} ` + this.orgCondtionStr
202
- this.model.search(args.condition, args.model)
203
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
204
- },
205
- clear() {
206
- //清空部门和人员
207
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
208
- //部门和人员变为全选
209
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
210
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
211
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
212
- this.$refs.paged.$refs.cri.model[key] = []
213
- })
214
- },
215
- show() {
216
- this.criteriaShow = true
217
- },
218
- hidden() {
219
- this.criteriaShow = !this.criteriaShow
220
- },
221
- showmsg(obj){
222
- this.rowdata=obj
223
- this.show=true
224
- },
225
- getRes(condition,obj) {
226
- this.orgCondtionStr = condition
227
- this.orgname = obj.orgnames[0]
228
- this.depname = obj.depnames[0]
229
- },
230
- put() {
231
- // 对Modelval进行排序
232
- this.sortModelval()
233
- this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
234
- for (let key of this.modelval) {
235
- this.thead += '<th>' + this.fields[key] + '</th>'
236
- }
237
- this.thead += '</tr>'
238
- },
239
- print() {
240
- this.$refs.print.PrintAsFile()
241
- this.printshow = false
242
- },
243
- dealmsg(val) {
244
- this.rowdata=val
245
- this.show=true
246
- val.model = this.model.model
247
- this.$dispatch('deal-msg', val)
248
- },
249
- close() {
250
- this.printshow = false
251
- this.all = false
252
- },
253
- // 对选择的列进行排序
254
- sortModelval() {
255
- let sortModel = []
256
- Object.keys(this.fields).forEach((key) => {
257
- if (this.modelval.includes(key)) {
258
- sortModel.push(key)
259
- }
260
- })
261
- this.modelval = sortModel
262
- console.log('选择的打印的字段', this.modelval)
263
- }
264
- },
265
- computed: {
266
- getCondition() {
267
- return {
268
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
269
- startDate: this.$refs.paged.$refs.cri.model.startDate,
270
- endDate: this.$refs.paged.$refs.cri.model.endDate
271
- }
272
- },
273
- getfield() {
274
- return exportConfig.usergas1
275
- },
276
- usertypes() {
277
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
278
- },
279
- },
280
- events: {
281
-
282
- },
283
- watch: {
284
- 'all'(val) {
285
- if (val) {
286
- this.modelval = this.bodyData
287
- } else {
288
- this.modelval = defaultPrint.config
289
- this.put()
290
- }
291
- },
292
- 'modelval.length'() {
293
- this.put()
294
- },
295
- sumsmodel: {
296
- handler: function (val) {
297
- this.getotherfooter();
298
- },
299
- deep: true
300
- }
301
- }
302
- }
303
- </script>
304
- <style>
305
- .datapanel {
306
- color: #333;
307
- background-color: white;
308
- padding: 10px 20px;
309
- border-radius:15px;
310
- }
311
- </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
+ <v-select :value.sync="model.f_user_type"
32
+ :options='$parent.$parent.usertypes'
33
+ @change="$parent.$parent.userTypeChange()"
34
+ placeholder='请选择' v-model="model.f_user_type"
35
+ condition="f_user_type = '{}'"
36
+ close-on-select></v-select>
37
+ </div>
38
+
39
+ <div class="span" style="float:right;">
40
+ <button class="button_search button_spacing" @click="search()">查询</button>
41
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
42
+ <export-excel :data="$parent.$parent.getCondition"
43
+ :field="$parent.$parent.getfield"
44
+ :footer="$parent.$parent.footer"
45
+ :header="$parent.$parent.other"
46
+ sqlurl="rs/logic/exportfile"
47
+ sql-name="usergaszong"
48
+ template-name='用户用气费用表'
49
+ :choose-col="true"></export-excel>
50
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
51
+ :defaultfield="$parent.$parent.defaultfield"
52
+ titletable="用户用气费用表"
53
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
54
+ <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>
55
+ </div>
56
+ </div>
57
+ <div class="row" v-show="$parent.$parent.criteriaShow">
58
+ <res-select-group :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
59
+ </div>
60
+ </div>
61
+ </criteria>
62
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
63
+ <template partial='head'>
64
+ <tr>
65
+ <th><nobr>用户名称</nobr></th>
66
+ <th><nobr>气价</nobr></th>
67
+ <th><nobr>售气量</nobr></th>
68
+ <th><nobr>金额</nobr></th>
69
+ </tr>
70
+ </template>
71
+ <template partial='body'>
72
+ <td style="text-align: center;">
73
+ <nobr>{{row.f_user_name}}</nobr>
74
+ </td>
75
+ <td style="text-align: center;">
76
+ <nobr>{{row.f_price}}</nobr>
77
+ </td>
78
+ <td style="text-align: center;">
79
+ <nobr>{{row.a}}</nobr>
80
+ </td>
81
+ <td style="text-align: center;">
82
+ <nobr>{{row.b}}</nobr>
83
+ </td>
84
+ </template>
85
+ <template partial='foot'></template>
86
+ </data-grid>
87
+ </criteria-paged>
88
+ <table class="table-hover">
89
+ <tr style="position: relative" class="table-bordered">
90
+ <td
91
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
92
+ 汇总信息
93
+ </td>
94
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
95
+ 累计售气量合计:&emsp;{{sumsmodel.a}}
96
+ </td>
97
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
98
+ 累计金额合计:&emsp;{{sumsmodel.b}}
99
+ </td>
100
+ </tr>
101
+ </table>
102
+ </div>
103
+ <div v-if="show">
104
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
105
+ </div>
106
+ </div>
107
+ </div>
108
+ </template>
109
+ <script>
110
+ import { PagedList } from 'vue-client'
111
+ import defaultPrint from '../config/DefaultPrint'
112
+ import exportConfig from '../config/exportConfig.js'
113
+ let readySomething = async function(self) {
114
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
115
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
116
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
117
+ await self.$MagLoadParams.loadParam()
118
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
119
+ }
120
+ export default {
121
+ title: '用户用气查询',
122
+ name: 'userags',
123
+ data () {
124
+ return {
125
+ defaultfield: [],
126
+ config: {
127
+ defaultPrint: ['f_price','f_user_type']
128
+ },
129
+ model: new PagedList('rs/sql/usergaszong', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
130
+ a: 0,
131
+ b: 0,
132
+ }),
133
+ other: [],
134
+ footer: [],
135
+ gasproperties:[],
136
+ show:false,
137
+ rowdata:{},
138
+ criteriaShow: false,
139
+ orgCondtionStr: '',
140
+ modelval: [],
141
+ printshow: false,
142
+ all: false,
143
+ fields: {},
144
+ thead: '',
145
+ tfoot: '',
146
+ //合计数据
147
+ sumsmodel: {},
148
+ f_filialeid: this.$login.f.f_orgid,
149
+ f_orgid: this.$login.f.orgid,
150
+ f_depid: this.$login.f.depids,
151
+ f_operatorid: this.$login.f.id
152
+ }
153
+ },
154
+ ready () {
155
+ console.log('选择的打印的字段')
156
+ console.log('hhhhhhhhh'+ this.$login.f.orgid)
157
+ // readySomething(this)
158
+ readySomething(this).then(() => {
159
+ this.$emit('ready')
160
+ }).catch((error) => {
161
+ this.$emit('error', error)
162
+ })
163
+ },
164
+ methods: {
165
+ getotherfooter() {
166
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
167
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
168
+ this.other = [];
169
+ this.footer = [];
170
+ // let exportdata = this.getCondition;
171
+ let otherInData = [];
172
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
173
+ let footerData = [], exportfield = this.getfield;
174
+ footerData.push("合计");
175
+ let self = this;
176
+ for (var field in self.sumsmodel) {
177
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
178
+ }
179
+ this.footer.push(footerData);
180
+ this.other.push(otherInData);
181
+ },
182
+ userTypeChange () {
183
+ this.gasproperties=[]
184
+ if(this.$refs.paged.$refs.cri.model !==null) {
185
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
186
+
187
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
188
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
189
+ }
190
+ else{
191
+ this.gasproperties =[{label: '全部', value: ''}]
192
+ }
193
+ },
194
+ search(){
195
+ this.$refs.paged.$refs.cri.search()
196
+ },
197
+ cancel() {
198
+ this.show = false
199
+ },
200
+ selfSearch(args) {
201
+ args.condition = `${args.condition} ` + this.orgCondtionStr
202
+ this.model.search(args.condition, args.model)
203
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
204
+ },
205
+ clear() {
206
+ //清空部门和人员
207
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
208
+ //部门和人员变为全选
209
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
210
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
211
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
212
+ this.$refs.paged.$refs.cri.model[key] = []
213
+ })
214
+ },
215
+ show() {
216
+ this.criteriaShow = true
217
+ },
218
+ hidden() {
219
+ this.criteriaShow = !this.criteriaShow
220
+ },
221
+ showmsg(obj){
222
+ this.rowdata=obj
223
+ this.show=true
224
+ },
225
+ getRes(condition,obj) {
226
+ this.orgCondtionStr = condition
227
+ this.orgname = obj.orgnames[0]
228
+ this.depname = obj.depnames[0]
229
+ },
230
+ put() {
231
+ // 对Modelval进行排序
232
+ this.sortModelval()
233
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
234
+ for (let key of this.modelval) {
235
+ this.thead += '<th>' + this.fields[key] + '</th>'
236
+ }
237
+ this.thead += '</tr>'
238
+ },
239
+ print() {
240
+ this.$refs.print.PrintAsFile()
241
+ this.printshow = false
242
+ },
243
+ dealmsg(val) {
244
+ this.rowdata=val
245
+ this.show=true
246
+ val.model = this.model.model
247
+ this.$dispatch('deal-msg', val)
248
+ },
249
+ close() {
250
+ this.printshow = false
251
+ this.all = false
252
+ },
253
+ // 对选择的列进行排序
254
+ sortModelval() {
255
+ let sortModel = []
256
+ Object.keys(this.fields).forEach((key) => {
257
+ if (this.modelval.includes(key)) {
258
+ sortModel.push(key)
259
+ }
260
+ })
261
+ this.modelval = sortModel
262
+ console.log('选择的打印的字段', this.modelval)
263
+ }
264
+ },
265
+ computed: {
266
+ getCondition() {
267
+ return {
268
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
269
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
270
+ endDate: this.$refs.paged.$refs.cri.model.endDate
271
+ }
272
+ },
273
+ getfield() {
274
+ return exportConfig.usergas1
275
+ },
276
+ usertypes() {
277
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
278
+ },
279
+ },
280
+ events: {
281
+
282
+ },
283
+ watch: {
284
+ 'all'(val) {
285
+ if (val) {
286
+ this.modelval = this.bodyData
287
+ } else {
288
+ this.modelval = defaultPrint.config
289
+ this.put()
290
+ }
291
+ },
292
+ 'modelval.length'() {
293
+ this.put()
294
+ },
295
+ sumsmodel: {
296
+ handler: function (val) {
297
+ this.getotherfooter();
298
+ },
299
+ deep: true
300
+ }
301
+ }
302
+ }
303
+ </script>
304
+ <style>
305
+ .datapanel {
306
+ color: #333;
307
+ background-color: white;
308
+ padding: 10px 20px;
309
+ border-radius:15px;
310
+ }
311
+ </style>