manage-client 3.2.12 → 3.2.16

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 (87) hide show
  1. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.4.1/gc.properties +0 -0
  4. package/build/dev-server.js +24 -8
  5. package/package.json +1 -1
  6. package/src/.idea/misc.xml +9 -0
  7. package/src/.idea/modules.xml +8 -0
  8. package/src/.idea/src.iml +9 -0
  9. package/src/.idea/vcs.xml +6 -0
  10. package/src/.idea/workspace.xml +93 -0
  11. package/src/components/BasisEcharts/BarChart.vue +247 -247
  12. package/src/components/SellReport/BonSummary.vue +178 -178
  13. package/src/components/SellReport/CivilGasReport.vue +194 -0
  14. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  15. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  16. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  17. package/src/components/SellReport/NonResidentGas.vue +203 -203
  18. package/src/components/SellReport/OutletTable.vue +258 -258
  19. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  20. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  21. package/src/components/SellReport/SellingTable.vue +220 -220
  22. package/src/components/SellReport/UnCivilGasReport.vue +194 -0
  23. package/src/components/SellReport/UserSellingGas.vue +177 -177
  24. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  25. package/src/components/daping/GMap.vue +636 -636
  26. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  27. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  28. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  29. package/src/components/sale/businessquery/BusinesQuery.vue +2 -3
  30. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  31. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  32. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  33. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  34. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  35. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  36. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  37. package/src/components/sale/config/exportConfig.js +1 -1
  38. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  39. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  40. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  41. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  42. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  43. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  44. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +4 -5
  45. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  46. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  47. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  48. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  49. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  50. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  51. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  52. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  53. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  54. package/src/filiale/WEINAN/ReportDataQuery.vue +249 -249
  55. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  56. package/src/filiale/WEINAN/UserGasAll.vue +577 -579
  57. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  58. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  59. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  60. package/src/filiale/WEINAN/reportManage.js +12 -12
  61. package/src/filiale/WEINAN/sale.js +36 -36
  62. package/src/filiale/alashan/reportManage.js +10 -10
  63. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  64. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  65. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  66. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -541
  67. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  68. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  69. package/src/filiale/meihekou/config/exportConfig.js +804 -804
  70. package/src/filiale/meihekou/sale.js +26 -26
  71. package/src/filiale/pingxiang/sale.js +9 -9
  72. package/src/filiale/qingtongxia/sale.js +13 -13
  73. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  74. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  75. package/src/filiale/rongchuang/reportManage.js +11 -11
  76. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  77. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  78. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  79. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  80. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  81. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  82. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  83. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  84. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  85. package/src/main.js +5 -5
  86. package/src/reportManage.js +8 -0
  87. package/static/wuhai.json +1610 -1610
@@ -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>