manage-client 3.3.1 → 3.3.2

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 (51) hide show
  1. package/build/dev-server.js +180 -180
  2. package/lib/package_2022-12-01-14-30-50.json +109 -0
  3. package/package.json +1 -1
  4. package/src/components/sale/businessquery/GroupChargeQuery.vue +481 -481
  5. package/src/components/sale/businessquery/NewAreaGeneralQuery.vue +633 -633
  6. package/src/components/webmeter/recharge/RechargeList.vue +346 -346
  7. package/src/filiale/gehua/GroupChargeQuery.vue +486 -486
  8. package/src/filiale/huayin/ChargeQuery.vue +1305 -1305
  9. package/src/filiale/rongcheng/AreaBuildingDetailInfo.vue +281 -281
  10. package/src/filiale/rongcheng/AreaBuildingInfoSummary.vue +301 -301
  11. package/src/filiale/rongcheng/exportConfig.js +536 -536
  12. package/src/filiale/rongcheng/sale.js +22 -22
  13. package/src/filiale/shanxian/FillCardQuery.vue +569 -569
  14. package/src/filiale/shanxian/FillGasQuery.vue +588 -588
  15. package/src/filiale/shanxian/LostContactAnalysisList.vue +632 -632
  16. package/src/filiale/shanxian/OtherChargeQuery.vue +684 -684
  17. package/src/filiale/shanxian/UserLostContactAnalysis.vue +583 -583
  18. package/src/filiale/shanxian/UserQuery.vue +959 -959
  19. package/src/filiale/shanxian/sale.js +26 -26
  20. package/src/filiale/wenxi/ChangeMeterQuery.vue +704 -704
  21. package/src/filiale/wenxi/ChangeUserQuery.vue +371 -371
  22. package/src/filiale/wenxi/ChargeQuery.vue +1260 -1260
  23. package/src/filiale/wenxi/FmyGasDeviceQuery.vue +944 -944
  24. package/src/filiale/wenxi/GasDeviceQuery.vue +1041 -1041
  25. package/src/filiale/wenxi/GasStatistics.vue +515 -515
  26. package/src/filiale/wenxi/GetNoMetereadData.vue +374 -374
  27. package/src/filiale/wenxi/HandplanQuery.vue +1370 -1370
  28. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  29. package/src/filiale/wenxi/MeterQuery.vue +964 -964
  30. package/src/filiale/wenxi/NewGasStatistics.vue +522 -522
  31. package/src/filiale/wenxi/RecordInfoQuery.vue +1213 -1213
  32. package/src/filiale/wenxi/WebHandQuery.vue +475 -475
  33. package/src/filiale/wenxi/config/exportConfig.js +916 -916
  34. package/src/filiale/wenxi/sale.js +24 -24
  35. package/src/filiale/wenxi/webmeterManage.js +13 -13
  36. package/src/filiale/xinkang/EchartsBox.vue +139 -139
  37. package/src/filiale/xinkang/ManageBrandHouseCount.vue +347 -347
  38. package/src/filiale/xinkang/NewGasStatistics.vue +526 -526
  39. package/src/filiale/xinkang/exportConfig.js +1998 -1998
  40. package/src/filiale/xinkang/meterFaultChangeSummary.vue +196 -196
  41. package/src/filiale/xinkang/reportManage.js +15 -15
  42. package/src/filiale/xinkang/sale.js +13 -13
  43. package/src/filiale/xinkang/webmeterManage.js +9 -9
  44. package/src/filiale/zhongyi/GasStatistics.vue +521 -521
  45. package/src/main.js +72 -66
  46. package/.gradle/4.4/fileChanges/last-build.bin +0 -0
  47. package/.gradle/6.1/executionHistory/executionHistory.bin +0 -0
  48. package/.gradle/6.1/executionHistory/executionHistory.lock +0 -0
  49. package/.gradle/6.1/fileChanges/last-build.bin +0 -0
  50. package/.gradle/6.1/fileHashes/fileHashes.bin +0 -0
  51. package/.gradle/6.1/fileHashes/fileHashes.lock +0 -0
@@ -1,371 +1,371 @@
1
- <template>
2
- <div id="unit" class="flex-row" class="foot_tabset" @keyup.enter="search">
3
- <div class="basic-main">
4
- <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged @sort="sort">
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label class="font_normal_body">开始日期</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- condition="f_operate_date >= '{}'">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label class="font_normal_body">结束日期</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- condition="f_operate_date <= '{}'">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group ">
30
- <label class="font_normal_body">客户编号</label>
31
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
- </div>
34
-
35
-
36
- <div class="span" style="float:right;">
37
- <button class="button_search button_spacing" @click="search()">查询</button>
38
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
40
-
41
- <export-excel :data="$parent.$parent.getCondition"
42
- :field="$parent.$parent.getfield"
43
- :header="$parent.$parent.other"
44
- v-if="$parent.$parent.authArr.includes('档案查询导出')"
45
- sqlurl="rs/logic/exportfile" sql-name="changeuserquery" template-name='档案变更导出'
46
- :choose-col="true"></export-excel>
47
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
48
- :defaultfield="$parent.$parent.defaultfield"
49
- titletable="档案变更"
50
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
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
-
55
- <div class="row" v-show="$parent.$parent.criteriaShow">
56
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :show-component="['company','department','operator']" v-ref:sel></res-select-group>
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_user_name"
60
- condition="f_user_name like '%{}%'" placeholder="客户名称">
61
- </div>
62
- <div class="col-sm-2 form-group">
63
- <label class="font_normal_body">客户电话</label>
64
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
65
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
66
- </div>
67
- </div>
68
- </div>
69
- </criteria>
70
-
71
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
72
- <template partial='head'>
73
- <tr>
74
- <th>
75
- <!--<nobr>客户编号</nobr>-->
76
- <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
77
- </th>
78
- <th>
79
- <nobr>客户名称</nobr>
80
- </th>
81
- <th>
82
- <nobr>档案编号</nobr>
83
- </th>
84
- <th>
85
- <nobr>客户电话</nobr>
86
- </th>
87
- <th>
88
- <nobr>更改内容</nobr>
89
- </th>
90
- <th>
91
- <nobr>更改前</nobr>
92
- </th>
93
- <th>
94
- <nobr>更改后</nobr>
95
- </th>
96
- <th>
97
- <nobr>操作人</nobr>
98
- </th>
99
- <th>
100
- <!--<nobr>操作日期</nobr>-->
101
- <data-order field="f_operate_date" name="操作日期" :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
102
- </th>
103
- <th>
104
- <nobr>部门</nobr>
105
- </th>
106
- <th>
107
- <nobr>公司</nobr>
108
- </th>
109
- <th>
110
- <nobr>修改原因</nobr>
111
- </th>
112
- </tr>
113
- </template>
114
- <template partial='body'>
115
- <td style="text-align: center;"><nobr>
116
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
117
- </nobr> </td>
118
- <td style="text-align: center;">
119
- <nobr>{{row.f_user_name}}</nobr>
120
- </td>
121
- <td style="text-align: center;">
122
- <nobr>{{row.f_olduserinfo_code}}</nobr>
123
- </td>
124
- <td style="text-align: center;">
125
- <nobr>{{row.f_user_phone}}</nobr>
126
- </td>
127
- <td style="text-align: center;">
128
- <nobr>{{row.f_field_name}}</nobr>
129
- </td>
130
- <td style="text-align: center;">
131
- <nobr>{{row.f_used_content}}</nobr>
132
- </td>
133
- <td style="text-align: center;">
134
- <nobr>{{row.f_new_content}}</nobr>
135
- </td>
136
- <td style="text-align: center;">
137
- <nobr>{{row.f_operator}}</nobr>
138
- </td>
139
- <td style="text-align: center;">
140
- <nobr>{{row.f_operate_date}}</nobr>
141
- </td>
142
- <td style="text-align: center;">
143
- <nobr>{{row.f_depname}}</nobr>
144
- </td>
145
- <td style="text-align: center;">
146
- <nobr>{{row.f_orgname}}</nobr>
147
- </td>
148
- <td style="text-align: center;">
149
- <nobr>{{row.f_comments}}</nobr>
150
- </td>
151
- </template>
152
- <template partial='foot'></template>
153
- </data-grid>
154
- </criteria-paged>
155
- </div>
156
- <div class="flex" v-if="show">
157
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
158
- </div>
159
- </div>
160
- </div>
161
- </template>
162
-
163
- <script>
164
- import {PagedList} from 'vue-client'
165
- import defaultPrint from './config/DefaultPrint'
166
- import exportConfig from './config/exportConfig'
167
-
168
- let readySomething = async function (self) {
169
-
170
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
171
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
172
- // self.$refs.paged.$refs.cri.search()
173
- await self.$MagLoadParams.loadParam()
174
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
175
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
176
- }
177
- export default {
178
- title: '档案变更记录',
179
- data() {
180
- return {
181
- data: {},
182
- other:[],
183
- footer:[],
184
- meterbrands: [],
185
- pricenames: [],
186
- model: new PagedList('rs/sql/changeuserquery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}),
187
- criteriaShow: false,
188
- orgCondtionStr: '',
189
- modelval: [],
190
- printshow: false,
191
- all: false,
192
- fields: {},
193
- //排序
194
- orderitem:'f_operate_date desc',
195
- orderFields: {
196
- f_operate_date: 'no'
197
- },
198
- initres: {
199
- org:[this.$login.f.orgid],
200
- dep:[],
201
- user:[],
202
- },
203
- defaultfield: [],
204
- config: {
205
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
206
- },
207
- show:false,
208
- rowdata:{},
209
- thead: '',
210
- tfoot: '',
211
-
212
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
213
-
214
-
215
- //合计数据
216
- sumsmodel: {}
217
- }
218
- },
219
- ready() {
220
- readySomething(this)
221
- },
222
- methods: {
223
- getotherfooter () {
224
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
225
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
226
- this.other = [];
227
- this.footer = [];
228
- let exportdata = this.getCondition;
229
- let otherInData = [];
230
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
231
- // let footerData = [], exportfield = this.getfield;
232
- // footerData.push("合计");
233
- // let self = this;
234
- // for (var field in self.sumsmodel) {
235
- // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
236
- // }
237
- // this.footer.push(footerData);
238
- this.other.push(otherInData);
239
- },
240
- search(){
241
- this.$refs.paged.$refs.cri.search()
242
- },
243
- cancel() {
244
- this.show = false
245
- },
246
- showmsg(obj){
247
- this.rowdata=obj
248
- this.show=true
249
- },
250
-
251
- selfSearch(args) {
252
- args.condition = `${args.condition}` + this.orgCondtionStr
253
- this.model.search(args.condition, args.model)
254
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
255
- },
256
- clear() {
257
- //清空部门和人员
258
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
259
- //部门和人员变为全选
260
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
261
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
262
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
263
- this.$refs.paged.$refs.cri.model[key] = []
264
- })
265
- },
266
- show() {
267
- this.criteriaShow = true
268
- },
269
- hidden() {
270
- this.criteriaShow = !this.criteriaShow
271
- },
272
- getRes(obj) {
273
- console.log(obj,"========")
274
- this.orgCondtionStr = obj
275
- },
276
- stamp() {
277
- this.all = false
278
- //默认选择要打印的列
279
- this.modelval = defaultPrint.config
280
- this.fields = this.getfield
281
- console.log('所有打印字段', this.fields)
282
- this.printshow = true
283
- this.put()
284
- },
285
- dealmsg(val) {
286
- console.log('---------------dealmsg')
287
- val.model = this.model.model
288
- this.$dispatch('deal-msg', val)
289
- },
290
- put() {
291
- // 对Modelval进行排序
292
- this.sortModelval()
293
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
294
- for (let key of this.modelval) {
295
- this.thead += '<th>' + this.fields[key] + '</th>'
296
- }
297
- this.thead += '</tr>'
298
- },
299
- print() {
300
- this.$refs.print.PrintAsFile()
301
- this.printshow = false
302
- },
303
- close() {
304
- this.printshow = false
305
- this.all = false
306
- },
307
- // 对选择的列进行排序
308
- sortModelval() {
309
- let sortModel = []
310
- Object.keys(this.fields).forEach((key) => {
311
- if (this.modelval.includes(key)) {
312
- sortModel.push(key)
313
- }
314
- })
315
- this.modelval = sortModel
316
- console.log('选择的打印的字段', this.modelval)
317
- },
318
- sort (field, rule) {
319
- // 将所有排序方式设为不排序,实现相互排斥
320
- for (let key in this.orderFields) {
321
- if (key === field) {
322
- this.orderFields[key] = rule
323
- } else {
324
- this.orderFields[key] = 'no'
325
- }
326
- }
327
- // 如果新规则不排序,还原为默认排序
328
- if (rule === 'no') {
329
- this.model.paramSource.orderitem = `'${this.orderitem}'`
330
- } else {
331
- this.model.paramSource.orderitem = `'${field} ${rule}'`
332
- }
333
-
334
- this.search()
335
- }
336
- },
337
- watch: {
338
- 'all'(val) {
339
- if (val) {
340
- this.modelval = this.bodyData
341
- } else {
342
- this.modelval = defaultPrint.config
343
- this.put()
344
- }
345
- },
346
- 'modelval.length'() {
347
- this.put()
348
- },
349
- sumsmodel:{
350
- handler: function(val) {
351
- this.getotherfooter();
352
- },
353
- deep: true
354
- },
355
- },
356
- computed: {
357
- authArr () {
358
- return this.$login.r ? this.$login.r : []
359
- },
360
- getCondition() {
361
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
362
- },
363
- getfield() {
364
- return exportConfig.changUserConfig
365
- },
366
- field_name() {
367
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('更改内容')]
368
- }
369
- }
370
- }
371
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row" class="foot_tabset" @keyup.enter="search">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ condition="f_operate_date >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ condition="f_operate_date <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group ">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+
35
+
36
+ <div class="span" style="float:right;">
37
+ <button class="button_search button_spacing" @click="search()">查询</button>
38
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
40
+
41
+ <export-excel :data="$parent.$parent.getCondition"
42
+ :field="$parent.$parent.getfield"
43
+ :header="$parent.$parent.other"
44
+ v-if="$parent.$parent.authArr.includes('档案查询导出')"
45
+ sqlurl="rs/logic/exportfile" sql-name="changeuserquery" template-name='档案变更导出'
46
+ :choose-col="true"></export-excel>
47
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
48
+ :defaultfield="$parent.$parent.defaultfield"
49
+ titletable="档案变更"
50
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
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
+
55
+ <div class="row" v-show="$parent.$parent.criteriaShow">
56
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :show-component="['company','department','operator']" v-ref:sel></res-select-group>
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_user_name"
60
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
61
+ </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">客户电话</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
65
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </criteria>
70
+
71
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
72
+ <template partial='head'>
73
+ <tr>
74
+ <th>
75
+ <!--<nobr>客户编号</nobr>-->
76
+ <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
77
+ </th>
78
+ <th>
79
+ <nobr>客户名称</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>档案编号</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>客户电话</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>更改内容</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>更改前</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>更改后</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>操作人</nobr>
98
+ </th>
99
+ <th>
100
+ <!--<nobr>操作日期</nobr>-->
101
+ <data-order field="f_operate_date" name="操作日期" :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
102
+ </th>
103
+ <th>
104
+ <nobr>部门</nobr>
105
+ </th>
106
+ <th>
107
+ <nobr>公司</nobr>
108
+ </th>
109
+ <th>
110
+ <nobr>修改原因</nobr>
111
+ </th>
112
+ </tr>
113
+ </template>
114
+ <template partial='body'>
115
+ <td style="text-align: center;"><nobr>
116
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
117
+ </nobr> </td>
118
+ <td style="text-align: center;">
119
+ <nobr>{{row.f_user_name}}</nobr>
120
+ </td>
121
+ <td style="text-align: center;">
122
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
123
+ </td>
124
+ <td style="text-align: center;">
125
+ <nobr>{{row.f_user_phone}}</nobr>
126
+ </td>
127
+ <td style="text-align: center;">
128
+ <nobr>{{row.f_field_name}}</nobr>
129
+ </td>
130
+ <td style="text-align: center;">
131
+ <nobr>{{row.f_used_content}}</nobr>
132
+ </td>
133
+ <td style="text-align: center;">
134
+ <nobr>{{row.f_new_content}}</nobr>
135
+ </td>
136
+ <td style="text-align: center;">
137
+ <nobr>{{row.f_operator}}</nobr>
138
+ </td>
139
+ <td style="text-align: center;">
140
+ <nobr>{{row.f_operate_date}}</nobr>
141
+ </td>
142
+ <td style="text-align: center;">
143
+ <nobr>{{row.f_depname}}</nobr>
144
+ </td>
145
+ <td style="text-align: center;">
146
+ <nobr>{{row.f_orgname}}</nobr>
147
+ </td>
148
+ <td style="text-align: center;">
149
+ <nobr>{{row.f_comments}}</nobr>
150
+ </td>
151
+ </template>
152
+ <template partial='foot'></template>
153
+ </data-grid>
154
+ </criteria-paged>
155
+ </div>
156
+ <div class="flex" v-if="show">
157
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
158
+ </div>
159
+ </div>
160
+ </div>
161
+ </template>
162
+
163
+ <script>
164
+ import {PagedList} from 'vue-client'
165
+ import defaultPrint from './config/DefaultPrint'
166
+ import exportConfig from './config/exportConfig'
167
+
168
+ let readySomething = async function (self) {
169
+
170
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
171
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
172
+ // self.$refs.paged.$refs.cri.search()
173
+ await self.$MagLoadParams.loadParam()
174
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
175
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
176
+ }
177
+ export default {
178
+ title: '档案变更记录',
179
+ data() {
180
+ return {
181
+ data: {},
182
+ other:[],
183
+ footer:[],
184
+ meterbrands: [],
185
+ pricenames: [],
186
+ model: new PagedList('rs/sql/changeuserquery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}),
187
+ criteriaShow: false,
188
+ orgCondtionStr: '',
189
+ modelval: [],
190
+ printshow: false,
191
+ all: false,
192
+ fields: {},
193
+ //排序
194
+ orderitem:'f_operate_date desc',
195
+ orderFields: {
196
+ f_operate_date: 'no'
197
+ },
198
+ initres: {
199
+ org:[this.$login.f.orgid],
200
+ dep:[],
201
+ user:[],
202
+ },
203
+ defaultfield: [],
204
+ config: {
205
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
206
+ },
207
+ show:false,
208
+ rowdata:{},
209
+ thead: '',
210
+ tfoot: '',
211
+
212
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
213
+
214
+
215
+ //合计数据
216
+ sumsmodel: {}
217
+ }
218
+ },
219
+ ready() {
220
+ readySomething(this)
221
+ },
222
+ methods: {
223
+ getotherfooter () {
224
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
225
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
226
+ this.other = [];
227
+ this.footer = [];
228
+ let exportdata = this.getCondition;
229
+ let otherInData = [];
230
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
231
+ // let footerData = [], exportfield = this.getfield;
232
+ // footerData.push("合计");
233
+ // let self = this;
234
+ // for (var field in self.sumsmodel) {
235
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
236
+ // }
237
+ // this.footer.push(footerData);
238
+ this.other.push(otherInData);
239
+ },
240
+ search(){
241
+ this.$refs.paged.$refs.cri.search()
242
+ },
243
+ cancel() {
244
+ this.show = false
245
+ },
246
+ showmsg(obj){
247
+ this.rowdata=obj
248
+ this.show=true
249
+ },
250
+
251
+ selfSearch(args) {
252
+ args.condition = `${args.condition}` + this.orgCondtionStr
253
+ this.model.search(args.condition, args.model)
254
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
255
+ },
256
+ clear() {
257
+ //清空部门和人员
258
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
259
+ //部门和人员变为全选
260
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
261
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
262
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
263
+ this.$refs.paged.$refs.cri.model[key] = []
264
+ })
265
+ },
266
+ show() {
267
+ this.criteriaShow = true
268
+ },
269
+ hidden() {
270
+ this.criteriaShow = !this.criteriaShow
271
+ },
272
+ getRes(obj) {
273
+ console.log(obj,"========")
274
+ this.orgCondtionStr = obj
275
+ },
276
+ stamp() {
277
+ this.all = false
278
+ //默认选择要打印的列
279
+ this.modelval = defaultPrint.config
280
+ this.fields = this.getfield
281
+ console.log('所有打印字段', this.fields)
282
+ this.printshow = true
283
+ this.put()
284
+ },
285
+ dealmsg(val) {
286
+ console.log('---------------dealmsg')
287
+ val.model = this.model.model
288
+ this.$dispatch('deal-msg', val)
289
+ },
290
+ put() {
291
+ // 对Modelval进行排序
292
+ this.sortModelval()
293
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
294
+ for (let key of this.modelval) {
295
+ this.thead += '<th>' + this.fields[key] + '</th>'
296
+ }
297
+ this.thead += '</tr>'
298
+ },
299
+ print() {
300
+ this.$refs.print.PrintAsFile()
301
+ this.printshow = false
302
+ },
303
+ close() {
304
+ this.printshow = false
305
+ this.all = false
306
+ },
307
+ // 对选择的列进行排序
308
+ sortModelval() {
309
+ let sortModel = []
310
+ Object.keys(this.fields).forEach((key) => {
311
+ if (this.modelval.includes(key)) {
312
+ sortModel.push(key)
313
+ }
314
+ })
315
+ this.modelval = sortModel
316
+ console.log('选择的打印的字段', this.modelval)
317
+ },
318
+ sort (field, rule) {
319
+ // 将所有排序方式设为不排序,实现相互排斥
320
+ for (let key in this.orderFields) {
321
+ if (key === field) {
322
+ this.orderFields[key] = rule
323
+ } else {
324
+ this.orderFields[key] = 'no'
325
+ }
326
+ }
327
+ // 如果新规则不排序,还原为默认排序
328
+ if (rule === 'no') {
329
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
330
+ } else {
331
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
332
+ }
333
+
334
+ this.search()
335
+ }
336
+ },
337
+ watch: {
338
+ 'all'(val) {
339
+ if (val) {
340
+ this.modelval = this.bodyData
341
+ } else {
342
+ this.modelval = defaultPrint.config
343
+ this.put()
344
+ }
345
+ },
346
+ 'modelval.length'() {
347
+ this.put()
348
+ },
349
+ sumsmodel:{
350
+ handler: function(val) {
351
+ this.getotherfooter();
352
+ },
353
+ deep: true
354
+ },
355
+ },
356
+ computed: {
357
+ authArr () {
358
+ return this.$login.r ? this.$login.r : []
359
+ },
360
+ getCondition() {
361
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
362
+ },
363
+ getfield() {
364
+ return exportConfig.changUserConfig
365
+ },
366
+ field_name() {
367
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('更改内容')]
368
+ }
369
+ }
370
+ }
371
+ </script>