manage-client 3.2.16 → 3.2.20

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 (88) hide show
  1. package/build/dev-server.js +8 -24
  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/GasBaozhuangFee.vue +237 -237
  6. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  7. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  8. package/src/components/SellReport/NonResidentGas.vue +203 -203
  9. package/src/components/SellReport/OutletTable.vue +258 -258
  10. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  11. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  12. package/src/components/SellReport/SellingTable.vue +220 -220
  13. package/src/components/SellReport/UserSellingGas.vue +177 -177
  14. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  15. package/src/components/daping/GMap.vue +636 -636
  16. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  17. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  18. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  19. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  20. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  21. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  22. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  23. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  24. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  25. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  26. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  27. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  28. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  29. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  30. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  31. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  32. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  33. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  34. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  35. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  36. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  37. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  38. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  39. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  40. package/src/components/webmeter/report/ReportList.vue +36 -22
  41. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  42. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  43. package/src/filiale/WEINAN/ReportDataQuery.vue +276 -249
  44. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  45. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  46. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  47. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  48. package/src/filiale/WEINAN/config/exportConfig.js +99 -83
  49. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  50. package/src/filiale/WEINAN/reportManage.js +12 -12
  51. package/src/filiale/WEINAN/sale.js +36 -36
  52. package/src/filiale/alashan/reportManage.js +10 -10
  53. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  54. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  55. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  56. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -612
  57. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  58. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  59. package/src/filiale/meihekou/YingShouMingXi.vue +538 -0
  60. package/src/filiale/meihekou/config/exportConfig.js +27 -0
  61. package/src/filiale/meihekou/sale.js +29 -26
  62. package/src/filiale/pingxiang/sale.js +9 -9
  63. package/src/filiale/qingtongxia/sale.js +13 -13
  64. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  65. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  66. package/src/filiale/rongchuang/reportManage.js +11 -11
  67. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  68. package/src/filiale/shaoguan/RecordInfoQuery.vue +80 -80
  69. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  70. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  71. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  72. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  73. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  74. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  75. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  76. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -302
  77. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  78. package/src/filiale/tongchuan/reportManage.js +5 -6
  79. package/src/main.js +4 -4
  80. package/static/wuhai.json +1610 -1610
  81. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  82. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  83. package/.gradle/5.4.1/gc.properties +0 -0
  84. package/src/.idea/misc.xml +0 -9
  85. package/src/.idea/modules.xml +0 -8
  86. package/src/.idea/src.iml +0 -9
  87. package/src/.idea/vcs.xml +0 -6
  88. package/src/.idea/workspace.xml +0 -93
@@ -1,314 +1,314 @@
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
-
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-2 form-group">
11
- <label for="startDate" class="font_normal_body" title="停用时间">开始日期</label>
12
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
- v-model="model.startDate"
14
- :value.sync="model.startDate"
15
- :format="'yyyy-MM-dd HH:mm:ss'"
16
- :show-reset-button="true"
17
- condition="f_inputdate >= '{}'">
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="endDate" class="font_normal_body" title="停用时间">结束日期</label>
22
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
- v-model="model.endDate"
24
- :value.sync="model.endDate"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="true"
27
- condition="f_inputdate <= '{}'">
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label class="font_normal_body">客户编号</label>
32
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
- condition="f_userid = '{}' " placeholder="客户编号">
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body">客户名称</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
- condition=" f_username like '%{}%'" placeholder='客户名称'>
39
- </div>
40
- <div class="col-sm-2 form-group">
41
- <label class="font_normal_body">客户地址</label>
42
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
43
- condition="f_address like '%{}%'" placeholder='客户地址'>
44
- </div>
45
- <div class="span" style="float:right;">
46
- <button class="button_search button_spacing" @click="search()">查询</button>
47
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
49
-
50
- <export-excel :data="$parent.$parent.getCondition"
51
- :field="$parent.$parent.getfield"
52
- :header="$parent.$parent.other"
53
- sqlurl="rs/logic/exportfile" sql-name="exemptQuery" template-name='免交查询导出'
54
- :choose-col="true"></export-excel>
55
- <!-- <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>-->
56
- </div>
57
- </div>
58
-
59
- <!-- <div class="row" v-show="$parent.$parent.criteriaShow">-->
60
- <!-- </div>-->
61
- </div>
62
- </criteria>
63
-
64
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
65
- <template partial='head'>
66
- <tr>
67
- <th>
68
- <nobr>客户编号</nobr>
69
- </th>
70
- <th>
71
- <nobr>客户名称</nobr>
72
- </th>
73
- <th>
74
- <nobr>客户类型</nobr>
75
- </th>
76
- <th>
77
- <nobr>地址</nobr>
78
- </th>
79
- <th>
80
- <nobr>门牌号</nobr>
81
- </th>
82
- <th>
83
- <nobr>免交金额</nobr>
84
- </th>
85
- <th>
86
- <nobr>免交类型</nobr>
87
- </th>
88
- <th>
89
- <nobr>备注</nobr>
90
- </th>
91
- <th>
92
- <nobr>网点</nobr>
93
- </th>
94
- <th>
95
- <nobr>日期</nobr>
96
- </th>
97
- <th>
98
- <nobr>操 作 员</nobr>
99
- </th>
100
- </tr>
101
- </template>
102
- <template partial='body'>
103
- <td style="text-align: center;">
104
- <nobr>{{row.f_userid}}</nobr>
105
- </td>
106
- <td style="text-align: center;">
107
- <nobr>{{row.f_username}}</nobr>
108
- </td>
109
- <td style="text-align: center;">
110
- <nobr>{{row.f_usertype}}</nobr>
111
- </td>
112
- <td style="text-align: center;">
113
- <nobr>{{row.f_address}}</nobr>
114
- </td>
115
- <td style="text-align: center;">
116
- <nobr>{{row.f_apartment}}</nobr>
117
- </td>
118
- <td style="text-align: center;">
119
- <nobr>{{row.f_mianfee}}</nobr>
120
- </td>
121
- <td style="text-align: center;">
122
- <nobr>{{row.f_miantype}}</nobr>
123
- </td>
124
- <td style="text-align: center;">
125
- <nobr>{{row.f_beizhu}}</nobr>
126
- </td>
127
- <td style="text-align: center;">
128
- <nobr>{{row.f_network}}</nobr>
129
- </td>
130
- <td style="text-align: center;">
131
- <nobr>{{row.f_inputdate}}</nobr>
132
- </td>
133
- <td style="text-align: center;">
134
- <nobr>{{row.f_operator}}</nobr>
135
- </td>
136
- </template>
137
- <template partial='foot'></template>
138
- </data-grid>
139
- </criteria-paged>
140
- </div>
141
- </div>
142
- </div>
143
- </template>
144
-
145
- <script>
146
- import {PagedList} from 'vue-client'
147
- import defaultPrint from '../../config/DefaultPrint'
148
- import exportConfig from '../../config/exportConfig'
149
- let readySomething = async function (self) {
150
-
151
- console.log("self.login",self.$login)
152
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
153
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
154
- self.$refs.paged.$refs.cri.model.startDate=self.data.startDate
155
- self.$refs.paged.$refs.cri.model.endDate=self.data.endDate
156
- self.search()
157
- }
158
- export default {
159
- props:['data'],
160
- title: '免交查询',
161
- data() {
162
- return {
163
- data: {},
164
- other: [],
165
- footer: [],
166
- model: new PagedList('rs/sql/exemptQuery', 20, {}),
167
- criteriaShow: false,
168
- orgCondtionStr: '',
169
- show:false,
170
- rowdata:{},
171
- modelval: [],
172
- fields: {},
173
- config: {
174
- defaultPrint: ['f_userid', 'f_username']
175
- },
176
- thead: '',
177
- showupload:false,
178
- selected:{},
179
- }
180
- },
181
- ready() {
182
- // this.initres.dep.push(this.$login.f.depids)
183
- readySomething(this).then(() => {
184
- this.$emit('ready')
185
- }).catch((error) => {
186
- this.$emit('error', error)
187
- })
188
- },
189
- methods: {
190
- getotherfooter() {
191
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
192
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
193
- this.other = [];
194
- this.footer = [];
195
- let exportdata = this.getCondition;
196
- let otherInData = [];
197
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
198
- let footerData = [], exportfield = this.getfield;
199
- footerData.push("合计");
200
- let self = this;
201
- for (var field in self.sumsmodel) {
202
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
203
- }
204
- this.footer.push(footerData);
205
- this.other.push(otherInData);
206
- },
207
- search(){
208
- this.$refs.paged.$refs.cri.search()
209
- },
210
- selfSearch(args) {
211
- if (this.data) {
212
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
213
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
214
- }
215
- args.condition = `${args.condition}` + this.orgCondtionStr
216
- this.model.search(args.condition, args.model)
217
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
218
- },
219
- clear() {
220
- //清空部门和人员
221
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
222
- //部门和人员变为全选
223
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
224
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
225
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
226
- this.$refs.paged.$refs.cri.model[key] = []
227
- })
228
- },
229
- show() {
230
- this.criteriaShow = true
231
- },
232
- hidden() {
233
- this.criteriaShow = !this.criteriaShow
234
- },
235
- getRes(obj) {
236
- this.orgCondtionStr = obj
237
- },
238
- stamp() {
239
- this.all = false
240
- //默认选择要打印的列
241
- this.modelval = defaultPrint.config
242
- this.fields = this.getfield
243
- console.log('所有打印字段', this.fields)
244
- this.printshow = true
245
- this.put()
246
- },
247
- put() {
248
- // 对Modelval进行排序
249
- this.sortModelval()
250
- this.thead = `<tr><th colspan=${this.modelval.length}>停用查询报表</th></tr><tr>`
251
- for (let key of this.modelval) {
252
- this.thead += '<th>' + this.fields[key] + '</th>'
253
- }
254
- this.thead += '</tr>'
255
- },
256
- cancel() {
257
- this.show = false
258
- },
259
- dealmsg(val) {
260
- console.log('---------------dealmsg')
261
- this.rowdata=val
262
- this.show=true
263
- val.model = this.model.model
264
- this.$dispatch('deal-msg', val)
265
- },
266
- print() {
267
- this.$refs.print.PrintAsFile()
268
- this.printshow = false
269
- },
270
- close() {
271
- this.printshow = false
272
- this.all = false
273
- },
274
- // 对选择的列进行排序
275
- sortModelval() {
276
- let sortModel = []
277
- Object.keys(this.fields).forEach((key) => {
278
- if (this.modelval.includes(key)) {
279
- sortModel.push(key)
280
- }
281
- })
282
- this.modelval = sortModel
283
- console.log('选择的打印的字段', this.modelval)
284
- }
285
- },
286
- watch: {
287
- 'all'(val) {
288
- if (val) {
289
- this.modelval = this.bodyData
290
- } else {
291
- this.modelval = defaultPrint.config
292
- this.put()
293
- }
294
- },
295
- sumsmodel: {
296
- handler: function (val) {
297
- this.getotherfooter();
298
- },
299
- deep: true
300
- },
301
- 'modelval.length'() {
302
- this.put()
303
- },
304
- },
305
- computed: {
306
- getCondition() {
307
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
308
- },
309
- getfield() {
310
- return exportConfig.exemptquery
311
- },
312
- }
313
- }
314
- </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
+
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label for="startDate" class="font_normal_body" title="停用时间">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ condition="f_inputdate >= '{}'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body" title="停用时间">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_inputdate <= '{}'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">客户编号</label>
32
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
+ condition="f_userid = '{}' " placeholder="客户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">客户名称</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
+ condition=" f_username like '%{}%'" placeholder='客户名称'>
39
+ </div>
40
+ <div class="col-sm-2 form-group">
41
+ <label class="font_normal_body">客户地址</label>
42
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
43
+ condition="f_address like '%{}%'" placeholder='客户地址'>
44
+ </div>
45
+ <div class="span" style="float:right;">
46
+ <button class="button_search button_spacing" @click="search()">查询</button>
47
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
49
+
50
+ <export-excel :data="$parent.$parent.getCondition"
51
+ :field="$parent.$parent.getfield"
52
+ :header="$parent.$parent.other"
53
+ sqlurl="rs/logic/exportfile" sql-name="exemptQuery" template-name='免交查询导出'
54
+ :choose-col="true"></export-excel>
55
+ <!-- <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>-->
56
+ </div>
57
+ </div>
58
+
59
+ <!-- <div class="row" v-show="$parent.$parent.criteriaShow">-->
60
+ <!-- </div>-->
61
+ </div>
62
+ </criteria>
63
+
64
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
65
+ <template partial='head'>
66
+ <tr>
67
+ <th>
68
+ <nobr>客户编号</nobr>
69
+ </th>
70
+ <th>
71
+ <nobr>客户名称</nobr>
72
+ </th>
73
+ <th>
74
+ <nobr>客户类型</nobr>
75
+ </th>
76
+ <th>
77
+ <nobr>地址</nobr>
78
+ </th>
79
+ <th>
80
+ <nobr>门牌号</nobr>
81
+ </th>
82
+ <th>
83
+ <nobr>免交金额</nobr>
84
+ </th>
85
+ <th>
86
+ <nobr>免交类型</nobr>
87
+ </th>
88
+ <th>
89
+ <nobr>备注</nobr>
90
+ </th>
91
+ <th>
92
+ <nobr>网点</nobr>
93
+ </th>
94
+ <th>
95
+ <nobr>日期</nobr>
96
+ </th>
97
+ <th>
98
+ <nobr>操 作 员</nobr>
99
+ </th>
100
+ </tr>
101
+ </template>
102
+ <template partial='body'>
103
+ <td style="text-align: center;">
104
+ <nobr>{{row.f_userid}}</nobr>
105
+ </td>
106
+ <td style="text-align: center;">
107
+ <nobr>{{row.f_username}}</nobr>
108
+ </td>
109
+ <td style="text-align: center;">
110
+ <nobr>{{row.f_usertype}}</nobr>
111
+ </td>
112
+ <td style="text-align: center;">
113
+ <nobr>{{row.f_address}}</nobr>
114
+ </td>
115
+ <td style="text-align: center;">
116
+ <nobr>{{row.f_apartment}}</nobr>
117
+ </td>
118
+ <td style="text-align: center;">
119
+ <nobr>{{row.f_mianfee}}</nobr>
120
+ </td>
121
+ <td style="text-align: center;">
122
+ <nobr>{{row.f_miantype}}</nobr>
123
+ </td>
124
+ <td style="text-align: center;">
125
+ <nobr>{{row.f_beizhu}}</nobr>
126
+ </td>
127
+ <td style="text-align: center;">
128
+ <nobr>{{row.f_network}}</nobr>
129
+ </td>
130
+ <td style="text-align: center;">
131
+ <nobr>{{row.f_inputdate}}</nobr>
132
+ </td>
133
+ <td style="text-align: center;">
134
+ <nobr>{{row.f_operator}}</nobr>
135
+ </td>
136
+ </template>
137
+ <template partial='foot'></template>
138
+ </data-grid>
139
+ </criteria-paged>
140
+ </div>
141
+ </div>
142
+ </div>
143
+ </template>
144
+
145
+ <script>
146
+ import {PagedList} from 'vue-client'
147
+ import defaultPrint from '../../config/DefaultPrint'
148
+ import exportConfig from '../../config/exportConfig'
149
+ let readySomething = async function (self) {
150
+
151
+ console.log("self.login",self.$login)
152
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
153
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
154
+ self.$refs.paged.$refs.cri.model.startDate=self.data.startDate
155
+ self.$refs.paged.$refs.cri.model.endDate=self.data.endDate
156
+ self.search()
157
+ }
158
+ export default {
159
+ props:['data'],
160
+ title: '免交查询',
161
+ data() {
162
+ return {
163
+ data: {},
164
+ other: [],
165
+ footer: [],
166
+ model: new PagedList('rs/sql/exemptQuery', 20, {}),
167
+ criteriaShow: false,
168
+ orgCondtionStr: '',
169
+ show:false,
170
+ rowdata:{},
171
+ modelval: [],
172
+ fields: {},
173
+ config: {
174
+ defaultPrint: ['f_userid', 'f_username']
175
+ },
176
+ thead: '',
177
+ showupload:false,
178
+ selected:{},
179
+ }
180
+ },
181
+ ready() {
182
+ // this.initres.dep.push(this.$login.f.depids)
183
+ readySomething(this).then(() => {
184
+ this.$emit('ready')
185
+ }).catch((error) => {
186
+ this.$emit('error', error)
187
+ })
188
+ },
189
+ methods: {
190
+ getotherfooter() {
191
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
192
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
193
+ this.other = [];
194
+ this.footer = [];
195
+ let exportdata = this.getCondition;
196
+ let otherInData = [];
197
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
198
+ let footerData = [], exportfield = this.getfield;
199
+ footerData.push("合计");
200
+ let self = this;
201
+ for (var field in self.sumsmodel) {
202
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
203
+ }
204
+ this.footer.push(footerData);
205
+ this.other.push(otherInData);
206
+ },
207
+ search(){
208
+ this.$refs.paged.$refs.cri.search()
209
+ },
210
+ selfSearch(args) {
211
+ if (this.data) {
212
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
213
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
214
+ }
215
+ args.condition = `${args.condition}` + this.orgCondtionStr
216
+ this.model.search(args.condition, args.model)
217
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
218
+ },
219
+ clear() {
220
+ //清空部门和人员
221
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
222
+ //部门和人员变为全选
223
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
224
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
225
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
226
+ this.$refs.paged.$refs.cri.model[key] = []
227
+ })
228
+ },
229
+ show() {
230
+ this.criteriaShow = true
231
+ },
232
+ hidden() {
233
+ this.criteriaShow = !this.criteriaShow
234
+ },
235
+ getRes(obj) {
236
+ this.orgCondtionStr = obj
237
+ },
238
+ stamp() {
239
+ this.all = false
240
+ //默认选择要打印的列
241
+ this.modelval = defaultPrint.config
242
+ this.fields = this.getfield
243
+ console.log('所有打印字段', this.fields)
244
+ this.printshow = true
245
+ this.put()
246
+ },
247
+ put() {
248
+ // 对Modelval进行排序
249
+ this.sortModelval()
250
+ this.thead = `<tr><th colspan=${this.modelval.length}>停用查询报表</th></tr><tr>`
251
+ for (let key of this.modelval) {
252
+ this.thead += '<th>' + this.fields[key] + '</th>'
253
+ }
254
+ this.thead += '</tr>'
255
+ },
256
+ cancel() {
257
+ this.show = false
258
+ },
259
+ dealmsg(val) {
260
+ console.log('---------------dealmsg')
261
+ this.rowdata=val
262
+ this.show=true
263
+ val.model = this.model.model
264
+ this.$dispatch('deal-msg', val)
265
+ },
266
+ print() {
267
+ this.$refs.print.PrintAsFile()
268
+ this.printshow = false
269
+ },
270
+ close() {
271
+ this.printshow = false
272
+ this.all = false
273
+ },
274
+ // 对选择的列进行排序
275
+ sortModelval() {
276
+ let sortModel = []
277
+ Object.keys(this.fields).forEach((key) => {
278
+ if (this.modelval.includes(key)) {
279
+ sortModel.push(key)
280
+ }
281
+ })
282
+ this.modelval = sortModel
283
+ console.log('选择的打印的字段', this.modelval)
284
+ }
285
+ },
286
+ watch: {
287
+ 'all'(val) {
288
+ if (val) {
289
+ this.modelval = this.bodyData
290
+ } else {
291
+ this.modelval = defaultPrint.config
292
+ this.put()
293
+ }
294
+ },
295
+ sumsmodel: {
296
+ handler: function (val) {
297
+ this.getotherfooter();
298
+ },
299
+ deep: true
300
+ },
301
+ 'modelval.length'() {
302
+ this.put()
303
+ },
304
+ },
305
+ computed: {
306
+ getCondition() {
307
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
308
+ },
309
+ getfield() {
310
+ return exportConfig.exemptquery
311
+ },
312
+ }
313
+ }
314
+ </script>