manage-client 3.2.70-aode → 3.2.71-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 (65) 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/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  35. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  36. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  37. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  38. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  39. package/src/components/sale/report/aode/iot/ReportQuery.vue +387 -387
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +568 -568
  49. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  50. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  51. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  52. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  53. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  54. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  55. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  56. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  57. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  58. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  59. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  60. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  61. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  62. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  63. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  64. package/src/components/webmeter/report/ReportList.vue +211 -211
  65. package/src/main.js +56 -56
@@ -1,315 +1,315 @@
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 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 form-group">
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 form-group">
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 form-group">
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" :defaultselect="$parent.$parent.selectfields"
47
- :field="$parent.$parent.getfield"
48
- :defaultselect="$parent.$parent.selectfields"
49
- sqlurl="rs/logic/exportfile" sql-name="enableQuery" template-name='启用查询导出'
50
- :choose-col="true"></export-excel>
51
-
52
- <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>
53
- </div>
54
- </div>
55
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
56
- <div class="row" v-show="$parent.$parent.criteriaShow">
57
- <div class="col-sm-2 form-group">
58
- <label class="font_normal_body">客户地址</label>
59
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
60
- condition="f_address like '%{}%'" placeholder='客户地址'>
61
- </div>
62
- </div>
63
-
64
-
65
- </div>
66
- </criteria>
67
-
68
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
69
- <template partial='head'>
70
- <tr>
71
- <th>
72
- <nobr>客户编号</nobr>
73
- </th>
74
- <th>
75
- <nobr>客户名称</nobr>
76
- </th>
77
- <th>
78
- <nobr>客户地址</nobr>
79
- </th>
80
- <th>
81
- <nobr>启用原因</nobr>
82
- </th>
83
- <th>
84
- <nobr>其他原因</nobr>
85
- </th>
86
- <th>
87
- <nobr>状态</nobr>
88
- </th>
89
- <th>
90
- <nobr>启用日期</nobr>
91
- </th>
92
- <th>
93
- <nobr>人员</nobr>
94
- </th>
95
- <th>
96
- <nobr>部门</nobr>
97
- </th>
98
- <th>
99
- <nobr>公司</nobr>
100
- </th>
101
- </tr>
102
- </template>
103
- <template partial='body'>
104
- <td style="text-align: center;">
105
- <nobr>
106
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
107
- </td>
108
- <td style="text-align: center;">
109
- <nobr>{{row.f_user_name}}</nobr>
110
- </td>
111
- <td style="text-align: center;">
112
- <nobr>{{row.f_address}}</nobr>
113
- </td>
114
- <td style="text-align: center;">
115
- <nobr>{{row.f_enable_reason}}</nobr>
116
- </td>
117
- <td style="text-align: center;">
118
- <nobr>{{row.f_othereason}}</nobr>
119
- </td>
120
- <td style="text-align: center;">
121
- <nobr>{{row.f_state}}</nobr>
122
- </td>
123
- <td style="text-align: center;">
124
- <nobr>{{row.f_operate_date}}</nobr>
125
- </td>
126
- <td style="text-align: center;">
127
- <nobr>{{row.f_operator}}</nobr>
128
- </td>
129
- <td style="text-align: center;">
130
- <nobr>{{row.f_depname}}</nobr>
131
- </td>
132
- <td style="text-align: center;">
133
- <nobr>{{row.f_orgname}}</nobr>
134
- </td>
135
- </template>
136
- <template partial='foot'></template>
137
- </data-grid>
138
- </criteria-paged>
139
-
140
- <table class="table-hover">
141
- <tr style="position: relative" class="table-bordered">
142
- <td
143
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
144
- 汇总信息
145
- </td>
146
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计:&emsp;{{sumsmodel.f_pregas}}</td>
147
- </tr>
148
- </table>
149
- </div>
150
- <div v-if="show">
151
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
152
- </div>
153
- </div>
154
- </div>
155
- </template>
156
-
157
- <script>
158
- import {PagedList} from 'vue-client'
159
- import defaultPrint from '../config/DefaultPrint'
160
- import exportConfig from '../config/exportConfig'
161
-
162
- let readySomething = async function (self) {
163
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
164
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
165
- // await self.$refs.paged.$refs.cri.search()
166
- await self.$MagLoadParams.loadParam()
167
-
168
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
169
- }
170
- export default {
171
- data() {
172
- return {
173
- data: {},
174
- model: new PagedList('rs/sql/enableQuery', 20, {}),
175
- criteriaShow: false,
176
- headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
177
- bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
178
- orgCondtionStr: '',
179
- modelval: [],
180
- printshow: false,
181
- all: false,
182
- fields: {},
183
- initres: {
184
- org:[this.$login.f.orgid],
185
- dep:[],
186
- user:[],
187
- },
188
- show:false,
189
- rowdata:{},
190
- thead: '',
191
- tfoot: '',
192
- //合计数据
193
- sumsmodel: {},
194
- selectfields:[]
195
- }
196
- },
197
- props:['selectorg'],
198
- ready() {
199
- if(this.selectorg != null && this.selectorg != null != ''){
200
- this.initres.org=[]
201
- this.initres.org.push(this.selectorg);
202
- }
203
- readySomething(this).then(() => {
204
- this.$emit('ready')
205
- }).catch((error) => {
206
- this.$emit('error', error)
207
- })
208
- for(var item in exportConfig.dataReportConfig){
209
- this.selectfields.push(item)
210
- }
211
- },
212
- methods: {
213
- search(){
214
- this.$refs.paged.$refs.cri.search()
215
- },
216
- cancel() {
217
- this.show = false
218
- },
219
- selfSearch(args) {
220
- args.condition = `${args.condition} ` + this.orgCondtionStr
221
- this.model.search(args.condition, args.model)
222
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
223
- },
224
-
225
- clear() {
226
- //清空部门和人员
227
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
228
- //部门和人员变为全选
229
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
230
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
231
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
232
- this.$refs.paged.$refs.cri.model[key] = ''
233
- })
234
- },
235
- dealmsg(val) {
236
- console.log('---------------dealmsg')
237
- this.rowdata=val
238
- this.show=true
239
- val.model = this.model.model
240
- this.$dispatch('deal-msg', val)
241
- },
242
- hidden() {
243
- this.criteriaShow = !this.criteriaShow
244
- },
245
- getRes(obj) {
246
- this.orgCondtionStr = obj
247
- },
248
- stamp() {
249
- this.all = false
250
- //默认选择要打印的列
251
- this.modelval = defaultPrint.config
252
- this.fields = this.getfield
253
- console.log('所有打印字段', this.fields)
254
- this.printshow = true
255
- this.put()
256
- },
257
- put() {
258
- // 对Modelval进行排序
259
- this.sortModelval()
260
- this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
261
- for (let key of this.modelval) {
262
- this.thead += '<th>' + this.fields[key] + '</th>'
263
- }
264
- this.thead += '</tr>'
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
- 'modelval.length'() {
296
- this.put()
297
- },
298
- 'orgCondtionStr'(val) {
299
- let res = val.match(/'(.*?)'/)
300
- console.log('正则提取:',res && res[1])
301
- if (res) {
302
- this.selectorg = res[1]
303
- }
304
- }
305
- },
306
- computed: {
307
- getCondition() {
308
- return {condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr}
309
- },
310
- getfield() {
311
- return exportConfig.enableConfig
312
- }
313
- }
314
- }
315
- </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 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 form-group">
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 form-group">
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 form-group">
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" :defaultselect="$parent.$parent.selectfields"
47
+ :field="$parent.$parent.getfield"
48
+ :defaultselect="$parent.$parent.selectfields"
49
+ sqlurl="rs/logic/exportfile" sql-name="enableQuery" template-name='启用查询导出'
50
+ :choose-col="true"></export-excel>
51
+
52
+ <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>
53
+ </div>
54
+ </div>
55
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
56
+ <div class="row" v-show="$parent.$parent.criteriaShow">
57
+ <div class="col-sm-2 form-group">
58
+ <label class="font_normal_body">客户地址</label>
59
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
60
+ condition="f_address like '%{}%'" placeholder='客户地址'>
61
+ </div>
62
+ </div>
63
+
64
+
65
+ </div>
66
+ </criteria>
67
+
68
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
69
+ <template partial='head'>
70
+ <tr>
71
+ <th>
72
+ <nobr>客户编号</nobr>
73
+ </th>
74
+ <th>
75
+ <nobr>客户名称</nobr>
76
+ </th>
77
+ <th>
78
+ <nobr>客户地址</nobr>
79
+ </th>
80
+ <th>
81
+ <nobr>启用原因</nobr>
82
+ </th>
83
+ <th>
84
+ <nobr>其他原因</nobr>
85
+ </th>
86
+ <th>
87
+ <nobr>状态</nobr>
88
+ </th>
89
+ <th>
90
+ <nobr>启用日期</nobr>
91
+ </th>
92
+ <th>
93
+ <nobr>人员</nobr>
94
+ </th>
95
+ <th>
96
+ <nobr>部门</nobr>
97
+ </th>
98
+ <th>
99
+ <nobr>公司</nobr>
100
+ </th>
101
+ </tr>
102
+ </template>
103
+ <template partial='body'>
104
+ <td style="text-align: center;">
105
+ <nobr>
106
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
107
+ </td>
108
+ <td style="text-align: center;">
109
+ <nobr>{{row.f_user_name}}</nobr>
110
+ </td>
111
+ <td style="text-align: center;">
112
+ <nobr>{{row.f_address}}</nobr>
113
+ </td>
114
+ <td style="text-align: center;">
115
+ <nobr>{{row.f_enable_reason}}</nobr>
116
+ </td>
117
+ <td style="text-align: center;">
118
+ <nobr>{{row.f_othereason}}</nobr>
119
+ </td>
120
+ <td style="text-align: center;">
121
+ <nobr>{{row.f_state}}</nobr>
122
+ </td>
123
+ <td style="text-align: center;">
124
+ <nobr>{{row.f_operate_date}}</nobr>
125
+ </td>
126
+ <td style="text-align: center;">
127
+ <nobr>{{row.f_operator}}</nobr>
128
+ </td>
129
+ <td style="text-align: center;">
130
+ <nobr>{{row.f_depname}}</nobr>
131
+ </td>
132
+ <td style="text-align: center;">
133
+ <nobr>{{row.f_orgname}}</nobr>
134
+ </td>
135
+ </template>
136
+ <template partial='foot'></template>
137
+ </data-grid>
138
+ </criteria-paged>
139
+
140
+ <table class="table-hover">
141
+ <tr style="position: relative" class="table-bordered">
142
+ <td
143
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
144
+ 汇总信息
145
+ </td>
146
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计:&emsp;{{sumsmodel.f_pregas}}</td>
147
+ </tr>
148
+ </table>
149
+ </div>
150
+ <div v-if="show">
151
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
152
+ </div>
153
+ </div>
154
+ </div>
155
+ </template>
156
+
157
+ <script>
158
+ import {PagedList} from 'vue-client'
159
+ import defaultPrint from '../config/DefaultPrint'
160
+ import exportConfig from '../config/exportConfig'
161
+
162
+ let readySomething = async function (self) {
163
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
164
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
165
+ // await self.$refs.paged.$refs.cri.search()
166
+ await self.$MagLoadParams.loadParam()
167
+
168
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
169
+ }
170
+ export default {
171
+ data() {
172
+ return {
173
+ data: {},
174
+ model: new PagedList('rs/sql/enableQuery', 20, {}),
175
+ criteriaShow: false,
176
+ headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
177
+ bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
178
+ orgCondtionStr: '',
179
+ modelval: [],
180
+ printshow: false,
181
+ all: false,
182
+ fields: {},
183
+ initres: {
184
+ org:[this.$login.f.orgid],
185
+ dep:[],
186
+ user:[],
187
+ },
188
+ show:false,
189
+ rowdata:{},
190
+ thead: '',
191
+ tfoot: '',
192
+ //合计数据
193
+ sumsmodel: {},
194
+ selectfields:[]
195
+ }
196
+ },
197
+ props:['selectorg'],
198
+ ready() {
199
+ if(this.selectorg != null && this.selectorg != null != ''){
200
+ this.initres.org=[]
201
+ this.initres.org.push(this.selectorg);
202
+ }
203
+ readySomething(this).then(() => {
204
+ this.$emit('ready')
205
+ }).catch((error) => {
206
+ this.$emit('error', error)
207
+ })
208
+ for(var item in exportConfig.dataReportConfig){
209
+ this.selectfields.push(item)
210
+ }
211
+ },
212
+ methods: {
213
+ search(){
214
+ this.$refs.paged.$refs.cri.search()
215
+ },
216
+ cancel() {
217
+ this.show = false
218
+ },
219
+ selfSearch(args) {
220
+ args.condition = `${args.condition} ` + this.orgCondtionStr
221
+ this.model.search(args.condition, args.model)
222
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
223
+ },
224
+
225
+ clear() {
226
+ //清空部门和人员
227
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
228
+ //部门和人员变为全选
229
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
230
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
231
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
232
+ this.$refs.paged.$refs.cri.model[key] = ''
233
+ })
234
+ },
235
+ dealmsg(val) {
236
+ console.log('---------------dealmsg')
237
+ this.rowdata=val
238
+ this.show=true
239
+ val.model = this.model.model
240
+ this.$dispatch('deal-msg', val)
241
+ },
242
+ hidden() {
243
+ this.criteriaShow = !this.criteriaShow
244
+ },
245
+ getRes(obj) {
246
+ this.orgCondtionStr = obj
247
+ },
248
+ stamp() {
249
+ this.all = false
250
+ //默认选择要打印的列
251
+ this.modelval = defaultPrint.config
252
+ this.fields = this.getfield
253
+ console.log('所有打印字段', this.fields)
254
+ this.printshow = true
255
+ this.put()
256
+ },
257
+ put() {
258
+ // 对Modelval进行排序
259
+ this.sortModelval()
260
+ this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
261
+ for (let key of this.modelval) {
262
+ this.thead += '<th>' + this.fields[key] + '</th>'
263
+ }
264
+ this.thead += '</tr>'
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
+ 'modelval.length'() {
296
+ this.put()
297
+ },
298
+ 'orgCondtionStr'(val) {
299
+ let res = val.match(/'(.*?)'/)
300
+ console.log('正则提取:',res && res[1])
301
+ if (res) {
302
+ this.selectorg = res[1]
303
+ }
304
+ }
305
+ },
306
+ computed: {
307
+ getCondition() {
308
+ return {condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr}
309
+ },
310
+ getfield() {
311
+ return exportConfig.enableConfig
312
+ }
313
+ }
314
+ }
315
+ </script>