manage-client 3.2.29 → 3.2.30

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 (53) 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 +28 -9
  5. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  6. package/package.json +1 -1
  7. package/src/.idea/misc.xml +9 -0
  8. package/src/.idea/modules.xml +8 -0
  9. package/src/.idea/src.iml +9 -0
  10. package/src/.idea/vcs.xml +6 -0
  11. package/src/.idea/workspace.xml +93 -0
  12. package/src/components/sale/businessquery/BusinesQuery.vue +358 -348
  13. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  14. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -348
  15. package/src/components/sale/businessquery/ChargeQuery.vue +1245 -1235
  16. package/src/components/sale/businessquery/DisableQuery.vue +451 -441
  17. package/src/components/sale/businessquery/EnableQuery.vue +408 -398
  18. package/src/components/sale/businessquery/FillCardQuery.vue +486 -481
  19. package/src/components/sale/businessquery/FillGasQuery.vue +511 -506
  20. package/src/components/sale/businessquery/InspectListUser.vue +433 -433
  21. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -624
  22. package/src/components/sale/businessquery/ReverseQuery.vue +402 -392
  23. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  24. package/src/components/sale/businessquery/TransferQuery.vue +418 -408
  25. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  26. package/src/components/sale/filesquery/ArchivesManage.vue +57 -57
  27. package/src/components/sale/filesquery/DeviceQuery.vue +534 -524
  28. package/src/components/sale/filesquery/FireQuery.vue +477 -477
  29. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1250
  30. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  31. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  32. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  33. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  34. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  35. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  36. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -612
  37. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  38. package/src/filiale/pingxiang/sale.js +9 -9
  39. package/src/filiale/qingtongxia/sale.js +13 -13
  40. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  41. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  42. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  43. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  44. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  45. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  46. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  47. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  48. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  49. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1270
  50. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  51. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  52. package/src/main.js +11 -11
  53. package/src/saleManage.js +529 -529
@@ -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>