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,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_code = '{}' " 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
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="startDate" class="font_normal_body">开始日期</label>
22
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
23
- v-model="model.startDate"
24
- :value.sync="model.startDate"
25
- :format="'yyyy-MM-dd'"
26
- :show-reset-button="true"
27
- condition="f_operate_date >= '{} 00:00:00'">
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label for="endDate" class="font_normal_body">结束日期</label>
32
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
33
- v-model="model.endDate"
34
- :value.sync="model.endDate"
35
- :format="'yyyy-MM-dd'"
36
- :show-reset-button="true"
37
- condition="f_operate_date <= '{} 23:59:59'">
38
- </datepicker>
39
- </div>
40
- <div class="span" style="float:right;">
41
- <button class="button_search button_spacing" @click="search()">查询</button>
42
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
44
-
45
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
46
- :field="$parent.$parent.getfield"
47
- :defaultselect="$parent.$parent.selectfields"
48
- sqlurl="rs/logic/exportfile" sql-name="disableQuery" 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
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
55
- <div class="row" v-show="$parent.$parent.criteriaShow">
56
- <div class="col-sm-2 form-group">
57
- <label class="font_normal_body">客户地址</label>
58
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
59
- condition="f_address like '%{}%'" placeholder='客户地址'>
60
- </div>
61
- </div>
62
- </div>
63
- </criteria>
64
-
65
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
66
- <template partial='head'>
67
- <tr>
68
- <th>
69
- <nobr>客户编号</nobr>
70
- </th>
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
- </tr>
99
- </template>
100
- <template partial='body'>
101
- <td style="text-align: center;">
102
- <nobr>
103
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
104
- </td>
105
- <td style="text-align: center;">
106
- <nobr>{{row.f_user_name}}</nobr>
107
- </td>
108
- <td style="text-align: center;">
109
- <nobr>{{row.f_address}}</nobr>
110
- </td>
111
- <td style="text-align: center;">
112
- <nobr>{{row.f_disable_reason}}</nobr>
113
- </td>
114
- <td style="text-align: center;">
115
- <nobr>{{row.f_othereason}}</nobr>
116
- </td>
117
- <td style="text-align: center;">
118
- <nobr>{{row.f_state}}</nobr>
119
- </td>
120
- <td style="text-align: center;">
121
- <nobr>{{row.f_operate_date}}</nobr>
122
- </td>
123
- <td style="text-align: center;">
124
- <nobr>{{row.f_operator}}</nobr>
125
- </td>
126
- <td style="text-align: center;">
127
- <nobr>{{row.f_depname}}</nobr>
128
- </td>
129
- <td style="text-align: center;">
130
- <nobr>{{row.f_orgname}}</nobr>
131
- </td>
132
- </template>
133
- <template partial='foot'></template>
134
- </data-grid>
135
- </criteria-paged>
136
-
137
- <table class="table-hover">
138
- <tr style="position: relative" class="table-bordered">
139
- <td
140
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
141
- 汇总信息
142
- </td>
143
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计:&emsp;{{sumsmodel.f_pregas}}</td>
144
- </tr>
145
- </table>
146
- </div>
147
- <div v-if="show">
148
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
149
- </div>
150
- </div>
151
- </div>
152
- </template>
153
-
154
- <script>
155
- import {PagedList} from 'vue-client'
156
- import defaultPrint from '../config/DefaultPrint'
157
- import exportConfig from '../config/exportConfig'
158
-
159
- let readySomething = async function (self) {
160
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
161
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
162
- // await self.$refs.paged.$refs.cri.search()
163
- //self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
164
- await self.$MagLoadParams.loadParam()
165
-
166
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
167
- }
168
- export default {
169
- data() {
170
- return {
171
- data: {},
172
- model: new PagedList('rs/sql/disableQuery', 20, {}),
173
- criteriaShow: false,
174
- headData: ["客户编号", "客户名称", "操作人", "操作日期", "停用状态", "停用原因", "其他停用原因", "同步状态"],
175
- bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
176
- orgCondtionStr: '',
177
- show:false,
178
- rowdata:{},
179
- modelval: [],
180
- printshow: false,
181
- all: false,
182
- fields: {},
183
- thead: '',
184
- tfoot: '',
185
- initres: {
186
- org:[this.$login.f.orgid],
187
- dep:[],
188
- user:[],
189
- },
190
- //合计数据
191
- sumsmodel: {},
192
- selectfields:[]
193
- }
194
- },
195
- props:['selectorg'],
196
- ready() {
197
- if(this.selectorg != null){
198
- this.initres.org=[]
199
- this.initres.org.push(this.selectorg)
200
- }
201
- readySomething(this).then(() => {
202
- this.$emit('ready')
203
- }).catch((error) => {
204
- this.$emit('error', error)
205
- })
206
- for(var item in exportConfig.dataReportConfig){
207
- this.selectfields.push(item)
208
- }
209
- },
210
- methods: {
211
- search(){
212
- this.$refs.paged.$refs.cri.search()
213
- },
214
- selfSearch(args) {
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
- '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.disableConfig
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_code = '{}' " 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
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="startDate" class="font_normal_body">开始日期</label>
22
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
23
+ v-model="model.startDate"
24
+ :value.sync="model.startDate"
25
+ :format="'yyyy-MM-dd'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date >= '{} 00:00:00'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label for="endDate" class="font_normal_body">结束日期</label>
32
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
33
+ v-model="model.endDate"
34
+ :value.sync="model.endDate"
35
+ :format="'yyyy-MM-dd'"
36
+ :show-reset-button="true"
37
+ condition="f_operate_date <= '{} 23:59:59'">
38
+ </datepicker>
39
+ </div>
40
+ <div class="span" style="float:right;">
41
+ <button class="button_search button_spacing" @click="search()">查询</button>
42
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
44
+
45
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
46
+ :field="$parent.$parent.getfield"
47
+ :defaultselect="$parent.$parent.selectfields"
48
+ sqlurl="rs/logic/exportfile" sql-name="disableQuery" 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
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
55
+ <div class="row" v-show="$parent.$parent.criteriaShow">
56
+ <div class="col-sm-2 form-group">
57
+ <label class="font_normal_body">客户地址</label>
58
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
59
+ condition="f_address like '%{}%'" placeholder='客户地址'>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </criteria>
64
+
65
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
66
+ <template partial='head'>
67
+ <tr>
68
+ <th>
69
+ <nobr>客户编号</nobr>
70
+ </th>
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
+ </tr>
99
+ </template>
100
+ <template partial='body'>
101
+ <td style="text-align: center;">
102
+ <nobr>
103
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
104
+ </td>
105
+ <td style="text-align: center;">
106
+ <nobr>{{row.f_user_name}}</nobr>
107
+ </td>
108
+ <td style="text-align: center;">
109
+ <nobr>{{row.f_address}}</nobr>
110
+ </td>
111
+ <td style="text-align: center;">
112
+ <nobr>{{row.f_disable_reason}}</nobr>
113
+ </td>
114
+ <td style="text-align: center;">
115
+ <nobr>{{row.f_othereason}}</nobr>
116
+ </td>
117
+ <td style="text-align: center;">
118
+ <nobr>{{row.f_state}}</nobr>
119
+ </td>
120
+ <td style="text-align: center;">
121
+ <nobr>{{row.f_operate_date}}</nobr>
122
+ </td>
123
+ <td style="text-align: center;">
124
+ <nobr>{{row.f_operator}}</nobr>
125
+ </td>
126
+ <td style="text-align: center;">
127
+ <nobr>{{row.f_depname}}</nobr>
128
+ </td>
129
+ <td style="text-align: center;">
130
+ <nobr>{{row.f_orgname}}</nobr>
131
+ </td>
132
+ </template>
133
+ <template partial='foot'></template>
134
+ </data-grid>
135
+ </criteria-paged>
136
+
137
+ <table class="table-hover">
138
+ <tr style="position: relative" class="table-bordered">
139
+ <td
140
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
141
+ 汇总信息
142
+ </td>
143
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计:&emsp;{{sumsmodel.f_pregas}}</td>
144
+ </tr>
145
+ </table>
146
+ </div>
147
+ <div v-if="show">
148
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
149
+ </div>
150
+ </div>
151
+ </div>
152
+ </template>
153
+
154
+ <script>
155
+ import {PagedList} from 'vue-client'
156
+ import defaultPrint from '../config/DefaultPrint'
157
+ import exportConfig from '../config/exportConfig'
158
+
159
+ let readySomething = async function (self) {
160
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
161
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
162
+ // await self.$refs.paged.$refs.cri.search()
163
+ //self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
164
+ await self.$MagLoadParams.loadParam()
165
+
166
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
167
+ }
168
+ export default {
169
+ data() {
170
+ return {
171
+ data: {},
172
+ model: new PagedList('rs/sql/disableQuery', 20, {}),
173
+ criteriaShow: false,
174
+ headData: ["客户编号", "客户名称", "操作人", "操作日期", "停用状态", "停用原因", "其他停用原因", "同步状态"],
175
+ bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
176
+ orgCondtionStr: '',
177
+ show:false,
178
+ rowdata:{},
179
+ modelval: [],
180
+ printshow: false,
181
+ all: false,
182
+ fields: {},
183
+ thead: '',
184
+ tfoot: '',
185
+ initres: {
186
+ org:[this.$login.f.orgid],
187
+ dep:[],
188
+ user:[],
189
+ },
190
+ //合计数据
191
+ sumsmodel: {},
192
+ selectfields:[]
193
+ }
194
+ },
195
+ props:['selectorg'],
196
+ ready() {
197
+ if(this.selectorg != null){
198
+ this.initres.org=[]
199
+ this.initres.org.push(this.selectorg)
200
+ }
201
+ readySomething(this).then(() => {
202
+ this.$emit('ready')
203
+ }).catch((error) => {
204
+ this.$emit('error', error)
205
+ })
206
+ for(var item in exportConfig.dataReportConfig){
207
+ this.selectfields.push(item)
208
+ }
209
+ },
210
+ methods: {
211
+ search(){
212
+ this.$refs.paged.$refs.cri.search()
213
+ },
214
+ selfSearch(args) {
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
+ '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.disableConfig
312
+ }
313
+ }
314
+ }
315
+ </script>