manage-client 3.2.32 → 3.2.36

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 (59) hide show
  1. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.4.1/gc.properties +0 -0
  4. package/build/dev-server.js +28 -9
  5. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  6. package/package.json +1 -1
  7. package/src/.idea/misc.xml +9 -0
  8. package/src/.idea/modules.xml +8 -0
  9. package/src/.idea/src.iml +9 -0
  10. package/src/.idea/vcs.xml +6 -0
  11. package/src/.idea/workspace.xml +93 -0
  12. package/src/components/sale/businessquery/AreaChargeQuery.vue +380 -0
  13. package/src/components/sale/businessquery/BusinesQuery.vue +358 -358
  14. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  15. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -357
  16. package/src/components/sale/businessquery/ChargeQuery.vue +8 -3
  17. package/src/components/sale/businessquery/CollectManage.vue +3 -0
  18. package/src/components/sale/businessquery/DisableQuery.vue +451 -451
  19. package/src/components/sale/businessquery/EnableQuery.vue +408 -408
  20. package/src/components/sale/businessquery/FillCardQuery.vue +486 -486
  21. package/src/components/sale/businessquery/FillGasQuery.vue +511 -511
  22. package/src/components/sale/businessquery/InspectListUser.vue +412 -433
  23. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -634
  24. package/src/components/sale/businessquery/ReverseQuery.vue +402 -402
  25. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  26. package/src/components/sale/businessquery/TransferQuery.vue +418 -418
  27. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  28. package/src/components/sale/config/exportConfig.js +3 -0
  29. package/src/components/sale/filesquery/ArchivesManage.vue +57 -57
  30. package/src/components/sale/filesquery/DeviceQuery.vue +534 -534
  31. package/src/components/sale/filesquery/FireQuery.vue +477 -477
  32. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1260
  33. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  34. package/src/components/statistical/DendrogramManage.vue +239 -204
  35. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  36. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  37. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  38. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  39. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  40. package/src/filiale/meihekou/DeviceQuery.vue +545 -545
  41. package/src/filiale/meihekou/RecordInfoQuery.vue +1168 -1168
  42. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  43. package/src/filiale/meihekou/sale.js +31 -31
  44. package/src/filiale/pingxiang/sale.js +9 -9
  45. package/src/filiale/qingtongxia/sale.js +13 -13
  46. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  47. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  48. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  49. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  50. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  51. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  52. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  53. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  54. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  55. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1270
  56. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  57. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  58. package/src/main.js +10 -10
  59. package/src/saleManage.js +533 -529
@@ -1,357 +1,357 @@
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>
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
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body">客户名称</label>
36
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
- condition="f_user_name like '%{}%'" placeholder="客户名称">
38
- </div>
39
-
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"
46
- :field="$parent.$parent.getfield"
47
- :header="$parent.$parent.other"
48
- v-if="$parent.$parent.authArr.includes('档案查询导出')"
49
- sqlurl="rs/logic/exportfile" sql-name="changeuserquery" template-name='档案变更导出'
50
- :choose-col="true"></export-excel>
51
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
52
- :defaultfield="$parent.$parent.defaultfield"
53
- titletable="档案变更"
54
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
55
- <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>
56
- </div>
57
- </div>
58
-
59
- <div class="row" v-show="$parent.$parent.criteriaShow">
60
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
61
- <div class="col-sm-2 form-group">
62
- <label class="font_normal_body">客户电话</label>
63
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
64
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
65
- </div>
66
- <div class="col-sm-2 form-group">
67
- <label class="font_normal_body">表&emsp;&emsp;号</label>
68
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meter_number"
69
- condition="f_meternumber = '{}'" placeholder='表号'>
70
- </div>
71
- <div class="col-sm-2 form-group">
72
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
73
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
74
- condition="f_card_id = '{}'" placeholder='卡号'>
75
- </div>
76
- <div class="col-sm-2 form-group">
77
- <label class="font_normal_body">更改内容</label>
78
- <v-select :value.sync="model.f_field_name"
79
- v-model="model.f_field_name"
80
- :options='$parent.$parent.field_name' placeholder='请选择'
81
- condition="f_field_name = '{}'"
82
- close-on-select></v-select>
83
- </div>
84
- </div>
85
- </div>
86
- </criteria>
87
-
88
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
89
- <template partial='head'>
90
- <tr>
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
- <th>
107
- <nobr>更改后</nobr>
108
- </th>
109
- <th>
110
- <nobr>操作人</nobr>
111
- </th>
112
- <th>
113
- <nobr>操作日期</nobr>
114
- </th>
115
- <th>
116
- <nobr>部门</nobr>
117
- </th>
118
- <th>
119
- <nobr>公司</nobr>
120
- </th>
121
- <th>
122
- <nobr>修改原因</nobr>
123
- </th>
124
- </tr>
125
- </template>
126
- <template partial='body'>
127
- <td style="text-align: center;"><nobr>
128
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
129
- </nobr> </td>
130
- <td style="text-align: center;">
131
- <nobr>{{row.f_user_name}}</nobr>
132
- </td>
133
- <td style="text-align: center;">
134
- <nobr>{{row.f_user_phone}}</nobr>
135
- </td>
136
- <td style="text-align: center;">
137
- <nobr>{{row.f_field_name}}</nobr>
138
- </td>
139
- <td style="text-align: center;">
140
- <nobr>{{row.f_used_content}}</nobr>
141
- </td>
142
- <td style="text-align: center;">
143
- <nobr>{{row.f_new_content}}</nobr>
144
- </td>
145
- <td style="text-align: center;">
146
- <nobr>{{row.f_operator}}</nobr>
147
- </td>
148
- <td style="text-align: center;">
149
- <nobr>{{row.f_operate_date}}</nobr>
150
- </td>
151
- <td style="text-align: center;">
152
- <nobr>{{row.f_depname}}</nobr>
153
- </td>
154
- <td style="text-align: center;">
155
- <nobr>{{row.f_orgname}}</nobr>
156
- </td>
157
- <td style="text-align: center;">
158
- <nobr>{{row.f_comments}}</nobr>
159
- </td>
160
- </template>
161
- <template partial='foot'></template>
162
- </data-grid>
163
- </criteria-paged>
164
- </div>
165
- <div class="flex" v-if="show">
166
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
167
- </div>
168
- </div>
169
- </div>
170
- </template>
171
-
172
- <script>
173
- import {PagedList} from 'vue-client'
174
- import defaultPrint from '../config/DefaultPrint'
175
- import exportConfig from '../config/exportConfig'
176
-
177
- let readySomething = async function (self) {
178
-
179
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
180
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
181
- // self.$refs.paged.$refs.cri.search()
182
- await self.$MagLoadParams.loadParam()
183
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
184
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
185
- }
186
- export default {
187
- title: '综合档案信息查询',
188
- data() {
189
- return {
190
- data: {},
191
- other:[],
192
- footer:[],
193
- meterbrands: [],
194
- pricenames: [],
195
- model: new PagedList('rs/sql/changeuserquery', 20),
196
- criteriaShow: false,
197
- orgCondtionStr: '',
198
- modelval: [],
199
- printshow: false,
200
- all: false,
201
- fields: {},
202
- initres: {
203
- org:[this.$login.f.orgid],
204
- dep:[],
205
- user:[],
206
- },
207
- defaultfield: [],
208
- config: {
209
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
210
- },
211
- show:false,
212
- rowdata:{},
213
- thead: '',
214
- tfoot: '',
215
-
216
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
217
-
218
-
219
- //合计数据
220
- sumsmodel: {}
221
- }
222
- },
223
- ready() {
224
- readySomething(this)
225
- },
226
- methods: {
227
- getotherfooter () {
228
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
229
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
230
- this.other = [];
231
- this.footer = [];
232
- let exportdata = this.getCondition;
233
- let otherInData = [];
234
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
235
- // let footerData = [], exportfield = this.getfield;
236
- // footerData.push("合计");
237
- // let self = this;
238
- // for (var field in self.sumsmodel) {
239
- // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
240
- // }
241
- // this.footer.push(footerData);
242
- this.other.push(otherInData);
243
- },
244
- search(){
245
- this.$refs.paged.$refs.cri.search()
246
- },
247
- cancel() {
248
- this.show = false
249
- },
250
- showmsg(obj){
251
- this.rowdata=obj
252
- this.show=true
253
- },
254
-
255
- selfSearch(args) {
256
- args.condition = `${args.condition}` + this.orgCondtionStr
257
- this.model.search(args.condition, args.model)
258
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
259
- },
260
- clear() {
261
- //清空部门和人员
262
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
263
- //部门和人员变为全选
264
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
265
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
266
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
267
- this.$refs.paged.$refs.cri.model[key] = []
268
- })
269
- },
270
- show() {
271
- this.criteriaShow = true
272
- },
273
- hidden() {
274
- this.criteriaShow = !this.criteriaShow
275
- },
276
- getRes(obj) {
277
- console.log(obj,"========")
278
- this.orgCondtionStr = obj
279
- },
280
- stamp() {
281
- this.all = false
282
- //默认选择要打印的列
283
- this.modelval = defaultPrint.config
284
- this.fields = this.getfield
285
- console.log('所有打印字段', this.fields)
286
- this.printshow = true
287
- this.put()
288
- },
289
- dealmsg(val) {
290
- console.log('---------------dealmsg')
291
- val.model = this.model.model
292
- this.$dispatch('deal-msg', val)
293
- },
294
- put() {
295
- // 对Modelval进行排序
296
- this.sortModelval()
297
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
298
- for (let key of this.modelval) {
299
- this.thead += '<th>' + this.fields[key] + '</th>'
300
- }
301
- this.thead += '</tr>'
302
- },
303
- print() {
304
- this.$refs.print.PrintAsFile()
305
- this.printshow = false
306
- },
307
- close() {
308
- this.printshow = false
309
- this.all = false
310
- },
311
- // 对选择的列进行排序
312
- sortModelval() {
313
- let sortModel = []
314
- Object.keys(this.fields).forEach((key) => {
315
- if (this.modelval.includes(key)) {
316
- sortModel.push(key)
317
- }
318
- })
319
- this.modelval = sortModel
320
- console.log('选择的打印的字段', this.modelval)
321
- }
322
- },
323
- watch: {
324
- 'all'(val) {
325
- if (val) {
326
- this.modelval = this.bodyData
327
- } else {
328
- this.modelval = defaultPrint.config
329
- this.put()
330
- }
331
- },
332
- 'modelval.length'() {
333
- this.put()
334
- },
335
- sumsmodel:{
336
- handler: function(val) {
337
- this.getotherfooter();
338
- },
339
- deep: true
340
- },
341
- },
342
- computed: {
343
- authArr () {
344
- return this.$login.r ? this.$login.r : []
345
- },
346
- getCondition() {
347
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
348
- },
349
- getfield() {
350
- return exportConfig.changUserConfig
351
- },
352
- field_name() {
353
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('更改内容')]
354
- }
355
- }
356
- }
357
- </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>
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
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body">客户名称</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
38
+ </div>
39
+
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"
46
+ :field="$parent.$parent.getfield"
47
+ :header="$parent.$parent.other"
48
+ v-if="$parent.$parent.authArr.includes('档案查询导出')"
49
+ sqlurl="rs/logic/exportfile" sql-name="changeuserquery" template-name='档案变更导出'
50
+ :choose-col="true"></export-excel>
51
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
52
+ :defaultfield="$parent.$parent.defaultfield"
53
+ titletable="档案变更"
54
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
55
+ <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>
56
+ </div>
57
+ </div>
58
+
59
+ <div class="row" v-show="$parent.$parent.criteriaShow">
60
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">客户电话</label>
63
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
64
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
65
+ </div>
66
+ <div class="col-sm-2 form-group">
67
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
68
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meter_number"
69
+ condition="f_meternumber = '{}'" placeholder='表号'>
70
+ </div>
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
73
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
74
+ condition="f_card_id = '{}'" placeholder='卡号'>
75
+ </div>
76
+ <div class="col-sm-2 form-group">
77
+ <label class="font_normal_body">更改内容</label>
78
+ <v-select :value.sync="model.f_field_name"
79
+ v-model="model.f_field_name"
80
+ :options='$parent.$parent.field_name' placeholder='请选择'
81
+ condition="f_field_name = '{}'"
82
+ close-on-select></v-select>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ </criteria>
87
+
88
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
89
+ <template partial='head'>
90
+ <tr>
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
+ <th>
107
+ <nobr>更改后</nobr>
108
+ </th>
109
+ <th>
110
+ <nobr>操作人</nobr>
111
+ </th>
112
+ <th>
113
+ <nobr>操作日期</nobr>
114
+ </th>
115
+ <th>
116
+ <nobr>部门</nobr>
117
+ </th>
118
+ <th>
119
+ <nobr>公司</nobr>
120
+ </th>
121
+ <th>
122
+ <nobr>修改原因</nobr>
123
+ </th>
124
+ </tr>
125
+ </template>
126
+ <template partial='body'>
127
+ <td style="text-align: center;"><nobr>
128
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
129
+ </nobr> </td>
130
+ <td style="text-align: center;">
131
+ <nobr>{{row.f_user_name}}</nobr>
132
+ </td>
133
+ <td style="text-align: center;">
134
+ <nobr>{{row.f_user_phone}}</nobr>
135
+ </td>
136
+ <td style="text-align: center;">
137
+ <nobr>{{row.f_field_name}}</nobr>
138
+ </td>
139
+ <td style="text-align: center;">
140
+ <nobr>{{row.f_used_content}}</nobr>
141
+ </td>
142
+ <td style="text-align: center;">
143
+ <nobr>{{row.f_new_content}}</nobr>
144
+ </td>
145
+ <td style="text-align: center;">
146
+ <nobr>{{row.f_operator}}</nobr>
147
+ </td>
148
+ <td style="text-align: center;">
149
+ <nobr>{{row.f_operate_date}}</nobr>
150
+ </td>
151
+ <td style="text-align: center;">
152
+ <nobr>{{row.f_depname}}</nobr>
153
+ </td>
154
+ <td style="text-align: center;">
155
+ <nobr>{{row.f_orgname}}</nobr>
156
+ </td>
157
+ <td style="text-align: center;">
158
+ <nobr>{{row.f_comments}}</nobr>
159
+ </td>
160
+ </template>
161
+ <template partial='foot'></template>
162
+ </data-grid>
163
+ </criteria-paged>
164
+ </div>
165
+ <div class="flex" v-if="show">
166
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
167
+ </div>
168
+ </div>
169
+ </div>
170
+ </template>
171
+
172
+ <script>
173
+ import {PagedList} from 'vue-client'
174
+ import defaultPrint from '../config/DefaultPrint'
175
+ import exportConfig from '../config/exportConfig'
176
+
177
+ let readySomething = async function (self) {
178
+
179
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
180
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
181
+ // self.$refs.paged.$refs.cri.search()
182
+ await self.$MagLoadParams.loadParam()
183
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
184
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
185
+ }
186
+ export default {
187
+ title: '综合档案信息查询',
188
+ data() {
189
+ return {
190
+ data: {},
191
+ other:[],
192
+ footer:[],
193
+ meterbrands: [],
194
+ pricenames: [],
195
+ model: new PagedList('rs/sql/changeuserquery', 20),
196
+ criteriaShow: false,
197
+ orgCondtionStr: '',
198
+ modelval: [],
199
+ printshow: false,
200
+ all: false,
201
+ fields: {},
202
+ initres: {
203
+ org:[this.$login.f.orgid],
204
+ dep:[],
205
+ user:[],
206
+ },
207
+ defaultfield: [],
208
+ config: {
209
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
210
+ },
211
+ show:false,
212
+ rowdata:{},
213
+ thead: '',
214
+ tfoot: '',
215
+
216
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
217
+
218
+
219
+ //合计数据
220
+ sumsmodel: {}
221
+ }
222
+ },
223
+ ready() {
224
+ readySomething(this)
225
+ },
226
+ methods: {
227
+ getotherfooter () {
228
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
229
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
230
+ this.other = [];
231
+ this.footer = [];
232
+ let exportdata = this.getCondition;
233
+ let otherInData = [];
234
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
235
+ // let footerData = [], exportfield = this.getfield;
236
+ // footerData.push("合计");
237
+ // let self = this;
238
+ // for (var field in self.sumsmodel) {
239
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
240
+ // }
241
+ // this.footer.push(footerData);
242
+ this.other.push(otherInData);
243
+ },
244
+ search(){
245
+ this.$refs.paged.$refs.cri.search()
246
+ },
247
+ cancel() {
248
+ this.show = false
249
+ },
250
+ showmsg(obj){
251
+ this.rowdata=obj
252
+ this.show=true
253
+ },
254
+
255
+ selfSearch(args) {
256
+ args.condition = `${args.condition}` + this.orgCondtionStr
257
+ this.model.search(args.condition, args.model)
258
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
259
+ },
260
+ clear() {
261
+ //清空部门和人员
262
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
263
+ //部门和人员变为全选
264
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
265
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
266
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
267
+ this.$refs.paged.$refs.cri.model[key] = []
268
+ })
269
+ },
270
+ show() {
271
+ this.criteriaShow = true
272
+ },
273
+ hidden() {
274
+ this.criteriaShow = !this.criteriaShow
275
+ },
276
+ getRes(obj) {
277
+ console.log(obj,"========")
278
+ this.orgCondtionStr = obj
279
+ },
280
+ stamp() {
281
+ this.all = false
282
+ //默认选择要打印的列
283
+ this.modelval = defaultPrint.config
284
+ this.fields = this.getfield
285
+ console.log('所有打印字段', this.fields)
286
+ this.printshow = true
287
+ this.put()
288
+ },
289
+ dealmsg(val) {
290
+ console.log('---------------dealmsg')
291
+ val.model = this.model.model
292
+ this.$dispatch('deal-msg', val)
293
+ },
294
+ put() {
295
+ // 对Modelval进行排序
296
+ this.sortModelval()
297
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
298
+ for (let key of this.modelval) {
299
+ this.thead += '<th>' + this.fields[key] + '</th>'
300
+ }
301
+ this.thead += '</tr>'
302
+ },
303
+ print() {
304
+ this.$refs.print.PrintAsFile()
305
+ this.printshow = false
306
+ },
307
+ close() {
308
+ this.printshow = false
309
+ this.all = false
310
+ },
311
+ // 对选择的列进行排序
312
+ sortModelval() {
313
+ let sortModel = []
314
+ Object.keys(this.fields).forEach((key) => {
315
+ if (this.modelval.includes(key)) {
316
+ sortModel.push(key)
317
+ }
318
+ })
319
+ this.modelval = sortModel
320
+ console.log('选择的打印的字段', this.modelval)
321
+ }
322
+ },
323
+ watch: {
324
+ 'all'(val) {
325
+ if (val) {
326
+ this.modelval = this.bodyData
327
+ } else {
328
+ this.modelval = defaultPrint.config
329
+ this.put()
330
+ }
331
+ },
332
+ 'modelval.length'() {
333
+ this.put()
334
+ },
335
+ sumsmodel:{
336
+ handler: function(val) {
337
+ this.getotherfooter();
338
+ },
339
+ deep: true
340
+ },
341
+ },
342
+ computed: {
343
+ authArr () {
344
+ return this.$login.r ? this.$login.r : []
345
+ },
346
+ getCondition() {
347
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
348
+ },
349
+ getfield() {
350
+ return exportConfig.changUserConfig
351
+ },
352
+ field_name() {
353
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('更改内容')]
354
+ }
355
+ }
356
+ }
357
+ </script>