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