manage-client 3.2.65-aode → 3.2.66-aode

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 (69) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/client.iml +14 -14
  4. package/package.json +1 -1
  5. package/src/Util.js +383 -383
  6. package/src/components/MeterManage/MeterList.vue +336 -336
  7. package/src/components/WebReport/UserGasAll.vue +214 -214
  8. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  9. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  10. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  11. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  13. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  14. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  15. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  16. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  17. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  18. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  19. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  20. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  21. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  22. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  23. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  24. package/src/components/sale/filesquery/ChangeUserQuery.vue +394 -0
  25. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  26. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  27. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  28. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  29. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  30. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  31. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  32. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  33. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  34. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  35. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  36. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  37. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  38. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  39. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  40. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  41. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  42. package/src/components/sale/report/aode/iot/ReportQuery.vue +387 -387
  43. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  44. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  45. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  46. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  47. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  48. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  49. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  50. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  51. package/src/components/webmeter/DrillData/NewUserGasAll.vue +564 -564
  52. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  53. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  54. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  55. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  56. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  57. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  58. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  59. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  60. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  61. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  62. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  63. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  64. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  65. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  66. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  67. package/src/components/webmeter/report/ReportList.vue +211 -211
  68. package/src/main.js +56 -56
  69. package/src/saleManage.js +4 -0
@@ -1,274 +1,274 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main">
4
- <div class="flex">
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">
11
- <label class="font_normal_body">客户编号</label>
12
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_id"
13
- condition="f_userinfo_id = '{}' " placeholder="客户编号">
14
- </div>
15
- <div class="col-sm-2">
16
- <label class="font_normal_body">客户名称</label>
17
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
- condition=" f_user_name like '%{}%'" placeholder='客户名称'
19
- :size="model.f_user_name ? model.f_user_name.length * 2 : 1">
20
- </div>
21
- <div class="col-sm-2">
22
- <label for="startDate" class="font_normal_body">开始日期</label>
23
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
24
- v-model="model.startDate"
25
- :value.sync="model.startDate"
26
- :format="'yyyy-MM-dd'"
27
- :show-reset-button="true"
28
- condition="f_operate_date >= '{} 00:00:00'">
29
- </datepicker>
30
- </div>
31
- <div class="col-sm-2">
32
- <label for="endDate" class="font_normal_body">结束日期</label>
33
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
34
- v-model="model.endDate"
35
- :value.sync="model.endDate"
36
- :format="'yyyy-MM-dd'"
37
- :show-reset-button="true"
38
- condition="f_operate_date <= '{} 23:59:59'">
39
- </datepicker>
40
- </div>
41
- <div class="span" style="float:right;">
42
- <button class="button_search button_spacing" @click="search()">查询</button>
43
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
-
46
- <export-excel :data="$parent.$parent.getCondition"
47
- :field="$parent.$parent.getfield"
48
- sqlurl="rs/logic/exportfile" sql-name="enableQuery" template-name='启用查询导出'
49
- :choose-col="true"></export-excel>
50
-
51
- <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>
52
- </div>
53
- </div>
54
- <div class="row" v-show="$parent.$parent.criteriaShow">
55
- <div class="col-sm-2">
56
- <label class="font_normal_body">客户地址</label>
57
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
58
- condition="f_address like '%{}%'" placeholder='客户地址'>
59
- </div>
60
- <res-select-group @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
61
- </div>
62
-
63
-
64
- </div>
65
- </criteria>
66
-
67
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
68
- <template partial='head'>
69
- <tr>
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
- </tr>
98
- </template>
99
- <template partial='body'>
100
- <td style="text-align: center;">
101
- <nobr>
102
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
103
- </td>
104
- <td style="text-align: center;">
105
- <nobr>{{row.f_user_name}}</nobr>
106
- </td>
107
- <td style="text-align: center;">
108
- <nobr>{{row.f_address}}</nobr>
109
- </td>
110
- <td style="text-align: center;">
111
- <nobr>{{row.f_enable_reason}}</nobr>
112
- </td>
113
- <td style="text-align: center;">
114
- <nobr>{{row.f_state}}</nobr>
115
- </td>
116
- <td style="text-align: center;">
117
- <nobr>{{row.f_operate_date}}</nobr>
118
- </td>
119
- <td style="text-align: center;">
120
- <nobr>{{row.f_operator}}</nobr>
121
- </td>
122
- <td style="text-align: center;">
123
- <nobr>{{row.f_depname}}</nobr>
124
- </td>
125
- <td style="text-align: center;">
126
- <nobr>{{row.f_orgname}}</nobr>
127
- </td>
128
- </template>
129
- <template partial='foot'></template>
130
- </data-grid>
131
- </criteria-paged>
132
-
133
- <table class="table-hover">
134
- <tr style="position: relative" class="table-bordered">
135
- <td
136
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
137
- 汇总信息
138
- </td>
139
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计:&emsp;{{sumsmodel.f_pregas}}</td>
140
- </tr>
141
- </table>
142
- </div>
143
- </div>
144
- </div>
145
- </template>
146
-
147
- <script>
148
- import {PagedList} from 'vue-client'
149
- // import defaultPrint from '../config/DefaultPrint'
150
- // import exportConfig from '../config/exportConfig'
151
-
152
- let readySomething = async function (self) {
153
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
154
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
155
- await self.$MagLoadParams.loadParam(self.$login.f)
156
- await self.$refs.paged.$refs.cri.search()
157
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
158
- }
159
- export default {
160
- data() {
161
- return {
162
- data: {},
163
- model: new PagedList('rs/sql/enableQuery', 20, {}),
164
- criteriaShow: false,
165
- headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
166
- bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
167
- orgCondtionStr: '',
168
- modelval: [],
169
- printshow: false,
170
- all: false,
171
- fields: {},
172
- thead: '',
173
- tfoot: '',
174
- //合计数据
175
- sumsmodel: {}
176
- }
177
- },
178
- ready() {
179
- readySomething(this).then(() => {
180
- this.$emit('ready')
181
- }).catch((error) => {
182
- this.$emit('error', error)
183
- })
184
- },
185
- methods: {
186
-
187
- selfSearch(args) {
188
- args.condition = `${args.condition} ` + this.orgCondtionStr
189
- this.model.search(args.condition, args.model)
190
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
191
- },
192
-
193
- clear() {
194
- //清空部门和人员
195
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
196
- //部门和人员变为全选
197
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
198
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
199
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
200
- this.$refs.paged.$refs.cri.model[key] = ''
201
- })
202
- },
203
- dealmsg(val) {
204
- console.log('---------------dealmsg')
205
- val.model = this.model.model
206
- this.$dispatch('deal-msg', val)
207
- },
208
- hidden() {
209
- this.criteriaShow = !this.criteriaShow
210
- },
211
- getRes(obj) {
212
- this.orgCondtionStr = obj
213
- },
214
- stamp() {
215
- this.all = false
216
- //默认选择要打印的列
217
- this.modelval = defaultPrint.config
218
- this.fields = this.getfield
219
- console.log('所有打印字段', this.fields)
220
- this.printshow = true
221
- this.put()
222
- },
223
- put() {
224
- // 对Modelval进行排序
225
- this.sortModelval()
226
- this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
227
- for (let key of this.modelval) {
228
- this.thead += '<th>' + this.fields[key] + '</th>'
229
- }
230
- this.thead += '</tr>'
231
- },
232
- print() {
233
- this.$refs.print.PrintAsFile()
234
- this.printshow = false
235
- },
236
- close() {
237
- this.printshow = false
238
- this.all = false
239
- },
240
- // 对选择的列进行排序
241
- sortModelval() {
242
- let sortModel = []
243
- Object.keys(this.fields).forEach((key) => {
244
- if (this.modelval.includes(key)) {
245
- sortModel.push(key)
246
- }
247
- })
248
- this.modelval = sortModel
249
- console.log('选择的打印的字段', this.modelval)
250
- }
251
- },
252
- watch: {
253
- 'all'(val) {
254
- if (val) {
255
- this.modelval = this.bodyData
256
- } else {
257
- this.modelval = defaultPrint.config
258
- this.put()
259
- }
260
- },
261
- 'modelval.length'() {
262
- this.put()
263
- },
264
- },
265
- computed: {
266
- getCondition() {
267
- return {condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr}
268
- },
269
- getfield() {
270
- return exportConfig.enableConfig
271
- }
272
- }
273
- }
274
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex">
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">
11
+ <label class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_id"
13
+ condition="f_userinfo_id = '{}' " placeholder="客户编号">
14
+ </div>
15
+ <div class="col-sm-2">
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
+ condition=" f_user_name like '%{}%'" placeholder='客户名称'
19
+ :size="model.f_user_name ? model.f_user_name.length * 2 : 1">
20
+ </div>
21
+ <div class="col-sm-2">
22
+ <label for="startDate" class="font_normal_body">开始日期</label>
23
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
24
+ v-model="model.startDate"
25
+ :value.sync="model.startDate"
26
+ :format="'yyyy-MM-dd'"
27
+ :show-reset-button="true"
28
+ condition="f_operate_date >= '{} 00:00:00'">
29
+ </datepicker>
30
+ </div>
31
+ <div class="col-sm-2">
32
+ <label for="endDate" class="font_normal_body">结束日期</label>
33
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
34
+ v-model="model.endDate"
35
+ :value.sync="model.endDate"
36
+ :format="'yyyy-MM-dd'"
37
+ :show-reset-button="true"
38
+ condition="f_operate_date <= '{} 23:59:59'">
39
+ </datepicker>
40
+ </div>
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getfield"
48
+ sqlurl="rs/logic/exportfile" sql-name="enableQuery" template-name='启用查询导出'
49
+ :choose-col="true"></export-excel>
50
+
51
+ <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>
52
+ </div>
53
+ </div>
54
+ <div class="row" v-show="$parent.$parent.criteriaShow">
55
+ <div class="col-sm-2">
56
+ <label class="font_normal_body">客户地址</label>
57
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
58
+ condition="f_address like '%{}%'" placeholder='客户地址'>
59
+ </div>
60
+ <res-select-group @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
61
+ </div>
62
+
63
+
64
+ </div>
65
+ </criteria>
66
+
67
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
68
+ <template partial='head'>
69
+ <tr>
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
+ </tr>
98
+ </template>
99
+ <template partial='body'>
100
+ <td style="text-align: center;">
101
+ <nobr>
102
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
103
+ </td>
104
+ <td style="text-align: center;">
105
+ <nobr>{{row.f_user_name}}</nobr>
106
+ </td>
107
+ <td style="text-align: center;">
108
+ <nobr>{{row.f_address}}</nobr>
109
+ </td>
110
+ <td style="text-align: center;">
111
+ <nobr>{{row.f_enable_reason}}</nobr>
112
+ </td>
113
+ <td style="text-align: center;">
114
+ <nobr>{{row.f_state}}</nobr>
115
+ </td>
116
+ <td style="text-align: center;">
117
+ <nobr>{{row.f_operate_date}}</nobr>
118
+ </td>
119
+ <td style="text-align: center;">
120
+ <nobr>{{row.f_operator}}</nobr>
121
+ </td>
122
+ <td style="text-align: center;">
123
+ <nobr>{{row.f_depname}}</nobr>
124
+ </td>
125
+ <td style="text-align: center;">
126
+ <nobr>{{row.f_orgname}}</nobr>
127
+ </td>
128
+ </template>
129
+ <template partial='foot'></template>
130
+ </data-grid>
131
+ </criteria-paged>
132
+
133
+ <table class="table-hover">
134
+ <tr style="position: relative" class="table-bordered">
135
+ <td
136
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
137
+ 汇总信息
138
+ </td>
139
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计:&emsp;{{sumsmodel.f_pregas}}</td>
140
+ </tr>
141
+ </table>
142
+ </div>
143
+ </div>
144
+ </div>
145
+ </template>
146
+
147
+ <script>
148
+ import {PagedList} from 'vue-client'
149
+ // import defaultPrint from '../config/DefaultPrint'
150
+ // import exportConfig from '../config/exportConfig'
151
+
152
+ let readySomething = async function (self) {
153
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
154
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
155
+ await self.$MagLoadParams.loadParam(self.$login.f)
156
+ await self.$refs.paged.$refs.cri.search()
157
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
158
+ }
159
+ export default {
160
+ data() {
161
+ return {
162
+ data: {},
163
+ model: new PagedList('rs/sql/enableQuery', 20, {}),
164
+ criteriaShow: false,
165
+ headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
166
+ bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
167
+ orgCondtionStr: '',
168
+ modelval: [],
169
+ printshow: false,
170
+ all: false,
171
+ fields: {},
172
+ thead: '',
173
+ tfoot: '',
174
+ //合计数据
175
+ sumsmodel: {}
176
+ }
177
+ },
178
+ ready() {
179
+ readySomething(this).then(() => {
180
+ this.$emit('ready')
181
+ }).catch((error) => {
182
+ this.$emit('error', error)
183
+ })
184
+ },
185
+ methods: {
186
+
187
+ selfSearch(args) {
188
+ args.condition = `${args.condition} ` + this.orgCondtionStr
189
+ this.model.search(args.condition, args.model)
190
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
191
+ },
192
+
193
+ clear() {
194
+ //清空部门和人员
195
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
196
+ //部门和人员变为全选
197
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
198
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
199
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
200
+ this.$refs.paged.$refs.cri.model[key] = ''
201
+ })
202
+ },
203
+ dealmsg(val) {
204
+ console.log('---------------dealmsg')
205
+ val.model = this.model.model
206
+ this.$dispatch('deal-msg', val)
207
+ },
208
+ hidden() {
209
+ this.criteriaShow = !this.criteriaShow
210
+ },
211
+ getRes(obj) {
212
+ this.orgCondtionStr = obj
213
+ },
214
+ stamp() {
215
+ this.all = false
216
+ //默认选择要打印的列
217
+ this.modelval = defaultPrint.config
218
+ this.fields = this.getfield
219
+ console.log('所有打印字段', this.fields)
220
+ this.printshow = true
221
+ this.put()
222
+ },
223
+ put() {
224
+ // 对Modelval进行排序
225
+ this.sortModelval()
226
+ this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
227
+ for (let key of this.modelval) {
228
+ this.thead += '<th>' + this.fields[key] + '</th>'
229
+ }
230
+ this.thead += '</tr>'
231
+ },
232
+ print() {
233
+ this.$refs.print.PrintAsFile()
234
+ this.printshow = false
235
+ },
236
+ close() {
237
+ this.printshow = false
238
+ this.all = false
239
+ },
240
+ // 对选择的列进行排序
241
+ sortModelval() {
242
+ let sortModel = []
243
+ Object.keys(this.fields).forEach((key) => {
244
+ if (this.modelval.includes(key)) {
245
+ sortModel.push(key)
246
+ }
247
+ })
248
+ this.modelval = sortModel
249
+ console.log('选择的打印的字段', this.modelval)
250
+ }
251
+ },
252
+ watch: {
253
+ 'all'(val) {
254
+ if (val) {
255
+ this.modelval = this.bodyData
256
+ } else {
257
+ this.modelval = defaultPrint.config
258
+ this.put()
259
+ }
260
+ },
261
+ 'modelval.length'() {
262
+ this.put()
263
+ },
264
+ },
265
+ computed: {
266
+ getCondition() {
267
+ return {condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr}
268
+ },
269
+ getfield() {
270
+ return exportConfig.enableConfig
271
+ }
272
+ }
273
+ }
274
+ </script>