manage-client 3.3.2 → 3.3.5

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 (63) hide show
  1. package/build/dev-server.js +180 -180
  2. package/package.json +1 -1
  3. package/src/components/sale/businessquery/GroupChargeQuery.vue +481 -481
  4. package/src/components/sale/businessquery/NewAreaGeneralQuery.vue +633 -633
  5. package/src/components/webmeter/recharge/RechargeList.vue +346 -346
  6. package/src/filiale/gehua/GroupChargeQuery.vue +486 -486
  7. package/src/filiale/huayin/ChargeQuery.vue +1305 -1305
  8. package/src/filiale/macheng/config/exportConfig.js +1 -1
  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/CancellationQuery.vue +426 -0
  14. package/src/filiale/shanxian/ChangeUserQuery.vue +395 -0
  15. package/src/filiale/shanxian/DeviceQuery.vue +586 -0
  16. package/src/filiale/shanxian/DisableQuery.vue +528 -0
  17. package/src/filiale/shanxian/EnableQuery.vue +461 -0
  18. package/src/filiale/shanxian/FMYGasQuery.vue +731 -0
  19. package/src/filiale/shanxian/FillCardQuery.vue +569 -569
  20. package/src/filiale/shanxian/FillGasQuery.vue +588 -588
  21. package/src/filiale/shanxian/FmyGasDeviceQuery.vue +68 -33
  22. package/src/filiale/shanxian/InspectListUserNew.vue +18 -16
  23. package/src/filiale/shanxian/LostContactAnalysisList.vue +633 -632
  24. package/src/filiale/shanxian/MeterQuery.vue +968 -0
  25. package/src/filiale/shanxian/MonthGasQuery.vue +481 -0
  26. package/src/filiale/shanxian/NewQueryInstruct.vue +457 -0
  27. package/src/filiale/shanxian/OtherChargeQuery.vue +684 -684
  28. package/src/filiale/shanxian/ReverseQuery.vue +454 -0
  29. package/src/filiale/shanxian/TransferQuery.vue +469 -0
  30. package/src/filiale/shanxian/UserGasAll.vue +15 -14
  31. package/src/filiale/shanxian/UserLostContactAnalysis.vue +584 -583
  32. package/src/filiale/shanxian/UserQuery.vue +960 -959
  33. package/src/filiale/shanxian/config/exportConfig.js +100 -100
  34. package/src/filiale/shanxian/newwebmeter/TotalExceptionByMeter.vue +608 -0
  35. package/src/filiale/shanxian/sale.js +46 -26
  36. package/src/filiale/shanxian/webmeterManage.js +4 -0
  37. package/src/filiale/wenxi/ChangeMeterQuery.vue +704 -704
  38. package/src/filiale/wenxi/ChangeUserQuery.vue +371 -371
  39. package/src/filiale/wenxi/ChargeQuery.vue +1260 -1260
  40. package/src/filiale/wenxi/FmyGasDeviceQuery.vue +944 -944
  41. package/src/filiale/wenxi/GasDeviceQuery.vue +1041 -1041
  42. package/src/filiale/wenxi/GasStatistics.vue +515 -515
  43. package/src/filiale/wenxi/GetNoMetereadData.vue +374 -374
  44. package/src/filiale/wenxi/HandplanQuery.vue +1370 -1370
  45. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  46. package/src/filiale/wenxi/MeterQuery.vue +937 -964
  47. package/src/filiale/wenxi/NewGasStatistics.vue +522 -522
  48. package/src/filiale/wenxi/RecordInfoQuery.vue +1213 -1213
  49. package/src/filiale/wenxi/WebHandQuery.vue +475 -475
  50. package/src/filiale/wenxi/config/exportConfig.js +916 -916
  51. package/src/filiale/wenxi/sale.js +24 -24
  52. package/src/filiale/wenxi/webmeterManage.js +13 -13
  53. package/src/filiale/xinkang/EchartsBox.vue +139 -139
  54. package/src/filiale/xinkang/ManageBrandHouseCount.vue +347 -347
  55. package/src/filiale/xinkang/NewGasStatistics.vue +526 -526
  56. package/src/filiale/xinkang/exportConfig.js +1998 -1998
  57. package/src/filiale/xinkang/meterFaultChangeSummary.vue +196 -196
  58. package/src/filiale/xinkang/reportManage.js +15 -15
  59. package/src/filiale/xinkang/sale.js +13 -13
  60. package/src/filiale/xinkang/webmeterManage.js +9 -9
  61. package/src/filiale/zhongyi/GasStatistics.vue +521 -521
  62. package/src/main.js +66 -72
  63. package/lib/package_2022-12-01-14-30-50.json +0 -109
@@ -1,22 +1,22 @@
1
- // 分公司特殊组件页面注册
2
- import Vue from 'vue'
3
-
4
- export default function () {
5
- // 欠费查询
6
- Vue.component('arrears-query', (resolve) => { require(['./ArrearsQuery'], resolve) })
7
- // 收费查询
8
- Vue.component('charge-query', (resolve) => { require(['./ChargeQuery'], resolve) })
9
- // 用户查询
10
- Vue.component('user-query', (resolve) => { require(['./UserQuery'], resolve) })
11
- // 综合档案信息查询
12
- Vue.component('record-info-query', (resolve) => { require(['./RecordInfoQuery'], resolve) })
13
- // 月用气查询
14
- Vue.component('month-gas-query', (resolve) => { require(['./MonthGasQuery'], resolve) })
15
- // 表具查询
16
- Vue.component('meter-query', (resolve) => { require(['./MeterQuery'], resolve) })
17
- // 表具设备查询
18
- Vue.component('equipment-query', (resolve) => { require(['./DeviceQuery'], resolve) })
19
- // 小区楼栋汇总信息
20
- Vue.component('area-building-info-summary', (resolve) => { require(['./AreaBuildingInfoSummary'], resolve) })
21
- Vue.component('area-building-detail-info', (resolve) => { require(['./AreaBuildingDetailInfo'], resolve) })
22
- }
1
+ // 分公司特殊组件页面注册
2
+ import Vue from 'vue'
3
+
4
+ export default function () {
5
+ // 欠费查询
6
+ Vue.component('arrears-query', (resolve) => { require(['./ArrearsQuery'], resolve) })
7
+ // 收费查询
8
+ Vue.component('charge-query', (resolve) => { require(['./ChargeQuery'], resolve) })
9
+ // 用户查询
10
+ Vue.component('user-query', (resolve) => { require(['./UserQuery'], resolve) })
11
+ // 综合档案信息查询
12
+ Vue.component('record-info-query', (resolve) => { require(['./RecordInfoQuery'], resolve) })
13
+ // 月用气查询
14
+ Vue.component('month-gas-query', (resolve) => { require(['./MonthGasQuery'], resolve) })
15
+ // 表具查询
16
+ Vue.component('meter-query', (resolve) => { require(['./MeterQuery'], resolve) })
17
+ // 表具设备查询
18
+ Vue.component('equipment-query', (resolve) => { require(['./DeviceQuery'], resolve) })
19
+ // 小区楼栋汇总信息
20
+ Vue.component('area-building-info-summary', (resolve) => { require(['./AreaBuildingInfoSummary'], resolve) })
21
+ Vue.component('area-building-detail-info', (resolve) => { require(['./AreaBuildingDetailInfo'], resolve) })
22
+ }
@@ -0,0 +1,426 @@
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 @sort="sort">
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
+
11
+ <div class="col-sm-2 form-group">
12
+ <label class="font_normal_body">{{$parent.$parent.usertitle}}名称</label>
13
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
14
+ condition=" f_user_name like '%{}%'" placeholder={{$parent.$parent.usertitle}}名称>
15
+ </div>
16
+ <div class="col-sm-2 form-group">
17
+ <label class="font_normal_body">{{$parent.$parent.usertitle}}地址</label>
18
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
19
+ condition="f_address like '%{}%'" placeholder={{$parent.$parent.usertitle}}地址>
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label class="font_normal_body">{{$parent.$parent.usertitle}}编号</label>
23
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
24
+ condition="f_userinfo_code = '{}' " placeholder={{$parent.$parent.usertitle}}编号>
25
+ </div>
26
+ <div class="col-sm-2 form-group">
27
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
28
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
29
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
30
+ </div>
31
+
32
+ <div class="span" style="float:right;">
33
+ <button class="button_search button_spacing" @click="search()">查询</button>
34
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
35
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
36
+
37
+ <export-excel :data="$parent.$parent.getCondition"
38
+ :field="$parent.$parent.getfield"
39
+ :header="$parent.$parent.other"
40
+ sqlurl="rs/logic/exportfile" sql-name="CancellationQuery" template-name='销户查询导出'
41
+ :choose-col="true"></export-excel>
42
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
43
+ :defaultfield="$parent.$parent.defaultfield"
44
+ titletable="销户记录"
45
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
46
+ <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>
47
+ </div>
48
+ </div>
49
+
50
+ <div class="row" v-show="$parent.$parent.criteriaShow">
51
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
52
+ <div class="col-sm-2 form-group">
53
+ <label for="startDate" class="font_normal_body">开始日期</label>
54
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
55
+ v-model="model.startDate"
56
+ :value.sync="model.startDate"
57
+ :format="'yyyy-MM-dd HH:mm:ss'"
58
+ :show-reset-button="true"
59
+ condition="f_operate_date >= '{}'">
60
+ </datepicker>
61
+ </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label for="endDate" class="font_normal_body">结束日期</label>
64
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
65
+ v-model="model.endDate"
66
+ :value.sync="model.endDate"
67
+ :format="'yyyy-MM-dd HH:mm:ss'"
68
+ :show-reset-button="true"
69
+ condition="f_operate_date <= '{}'">
70
+ </datepicker>
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">操作类型</label>
74
+ <v-select :value.sync="model.f_operat_type"
75
+ v-model="model.f_operat_type"
76
+ :options='$parent.$parent.operattype' placeholder='请选择'
77
+ condition="f_operat_type = '{}'"
78
+ close-on-select></v-select>
79
+ </div>
80
+ </div>
81
+ </div>
82
+ </criteria>
83
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
84
+ <template partial='head'>
85
+ <tr>
86
+ <th>
87
+ <!-- <nobr>客户编号</nobr>-->
88
+ <data-order field="f_userinfo_code" :name=`${$parent.$parent.$parent.usertitle}编号`
89
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
90
+ </th>
91
+ <th>
92
+ <nobr>{{$parent.$parent.$parent.usertitle}}名称</nobr>
93
+ </th>
94
+ <th>
95
+ <nobr>档案编号</nobr>
96
+ </th>
97
+ <th>
98
+ <nobr>{{$parent.$parent.$parent.usertitle}}类型</nobr>
99
+ </th>
100
+ <th>
101
+ <nobr>联系电话</nobr>
102
+ </th>
103
+ <th>
104
+ <!-- <nobr>客户地址</nobr>-->
105
+ <data-order field="f_address" :name.sync=`${$parent.$parent.$parent.usertitle}地址`
106
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
107
+ </th>
108
+ <th>
109
+ <nobr>表号</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>销户原因</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>状态</nobr>
116
+ </th>
117
+ <th>
118
+ <!-- <nobr>销户日期</nobr>-->
119
+ <data-order field="f_operate_date" name="销户日期"
120
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
121
+ </th>
122
+ <th>
123
+ <nobr>操作类型</nobr>
124
+ </th>
125
+ <th>
126
+ <nobr>人员</nobr>
127
+ </th>
128
+ <th>
129
+ <nobr>部门</nobr>
130
+ </th>
131
+ <th>
132
+ <nobr>公司</nobr>
133
+ </th>
134
+ <th><nobr>附件</nobr></th>
135
+ </tr>
136
+ </template>
137
+ <template partial='body'>
138
+ <td style="text-align: center;">
139
+ <nobr>
140
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
141
+ </td>
142
+ <td style="text-align: center;">
143
+ <nobr>{{row.f_user_name}}</nobr>
144
+ </td>
145
+ <td style="text-align: center;">
146
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
147
+ </td>
148
+ <td style="text-align: center;">
149
+ <nobr>{{row.f_user_type}}</nobr>
150
+ </td>
151
+ <td style="text-align: center;">
152
+ <nobr>{{row.f_user_phone}}</nobr>
153
+ </td>
154
+ <td style="text-align: center;">
155
+ <nobr>{{row.f_address}}</nobr>
156
+ </td>
157
+ <td style="text-align: center;">
158
+ <nobr>{{row.f_meternumber}}</nobr>
159
+ </td>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.f_comments}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.f_state}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.f_operate_date}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.f_operat_type}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_operator}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.f_depname}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_orgname}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;"><nobr>
182
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
183
+ </nobr></td>
184
+ </template>
185
+ <template partial='foot'></template>
186
+ </data-grid>
187
+ </criteria-paged>
188
+ <!-- <table class="table-hover">-->
189
+ <!-- <tr style="position: relative" class="table-bordered">-->
190
+ <!-- <td-->
191
+ <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
192
+ <!-- 汇总信息-->
193
+ <!-- </td>-->
194
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">合计:&emsp;{{sumsmodel.f_pregas}}</td>-->
195
+ <!-- </tr>-->
196
+ <!-- </table>-->
197
+ </div>
198
+ <div class="flex" v-if="show">
199
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
200
+ </div>
201
+ </div>
202
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
203
+ <article slot="modal-body">
204
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="销户" :isremark="false" style="width:auto" ></upload>
205
+ </article>
206
+ <footer slot="modal-footer" class="modal-footer">
207
+ </footer>
208
+ </modal>
209
+ </div>
210
+ </template>
211
+
212
+ <script>
213
+ import {PagedList} from 'vue-client'
214
+ import defaultPrint from './config/DefaultPrint'
215
+ import exportConfig from './config/exportConfig'
216
+
217
+ let readySomething = async function (self) {
218
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
219
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
220
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
221
+ // await self.$refs.paged.$refs.cri.search()
222
+ //self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
223
+ await self.$MagLoadParams.loadParam()
224
+
225
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
226
+ }
227
+ export default {
228
+ props:['data'],
229
+ title: '销户查询',
230
+ data() {
231
+ return {
232
+ data: {},
233
+ other: [],
234
+ footer: [],
235
+ model: new PagedList('rs/sql/CancellationQuery', 20, {orderitem: this.orderitem?`${this.orderitem}`: " 'f_operate_date desc '"}),
236
+ criteriaShow: false,
237
+ headData: ["用户编号", "用户名称", "操作人", "操作日期", "销户状态", "销户原因", "同步状态"],
238
+ bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_sendsuccess"],
239
+ orgCondtionStr: '',
240
+ show:false,
241
+ rowdata:{},
242
+ modelval: [],
243
+ printshow: false,
244
+ all: false,
245
+ fields: {},
246
+ thead: '',
247
+ showupload:false,
248
+ usertitle: this.$appdata.getSingleValue('用户名称前缀') ? this.$appdata.getSingleValue('用户名称前缀') : '客户',
249
+ config: {
250
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_type', 'f_changemeter_fee', 'f_meternumber_old', 'f_meternumber', 'f_change_operator', 'f_state', 'f_operate_date']
251
+ },
252
+ //排序
253
+ orderitem:'f_operate_date desc',
254
+ orderFields: {
255
+ f_operate_date: 'no'
256
+ },
257
+ defaultfield: [],
258
+ selected:{},
259
+ tfoot: '',
260
+ initres: {
261
+ org:[this.$login.f.orgid],
262
+ dep:[],
263
+ user:[],
264
+ },
265
+ //合计数据
266
+ sumsmodel: {},
267
+ operattype:[{label: '全部', value: ''},{label: '销户', value: '销户'},{label: '销户启用', value: '销户启用'}]
268
+ }
269
+ },
270
+ ready() {
271
+ readySomething(this).then(() => {
272
+ this.$emit('ready')
273
+ }).catch((error) => {
274
+ this.$emit('error', error)
275
+ })
276
+ },
277
+ methods: {
278
+ view(row){
279
+ this.showupload = true
280
+ this.selected= row
281
+ },
282
+ getotherfooter() {
283
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
284
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
285
+ this.other = [];
286
+ this.footer = [];
287
+ let exportdata = this.getCondition;
288
+ let otherInData = [];
289
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
290
+ let footerData = [], exportfield = this.getfield;
291
+ footerData.push("合计");
292
+ let self = this;
293
+ for (var field in self.sumsmodel) {
294
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
295
+ }
296
+ this.footer.push(footerData);
297
+ this.other.push(otherInData);
298
+ },
299
+ search(){
300
+ this.$refs.paged.$refs.cri.search()
301
+ },
302
+ selfSearch(args) {
303
+ if (this.data) {
304
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
305
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
306
+ }
307
+ args.condition = `${args.condition}` + this.orgCondtionStr
308
+ this.model.search(args.condition, args.model)
309
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
310
+ },
311
+ clear() {
312
+ //清空部门和人员
313
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
314
+ //部门和人员变为全选
315
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
316
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
317
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
318
+ this.$refs.paged.$refs.cri.model[key] = []
319
+ })
320
+ },
321
+ show() {
322
+ this.criteriaShow = true
323
+ },
324
+ hidden() {
325
+ this.criteriaShow = !this.criteriaShow
326
+ },
327
+ getRes(obj) {
328
+ this.orgCondtionStr = obj
329
+ },
330
+ stamp() {
331
+ this.all = false
332
+ //默认选择要打印的列
333
+ this.modelval = defaultPrint.config
334
+ this.fields = this.getfield
335
+ console.log('所有打印字段', this.fields)
336
+ this.printshow = true
337
+ this.put()
338
+ },
339
+ sort (field, rule) {
340
+ // 将所有排序方式设为不排序,实现相互排斥
341
+ for (let key in this.orderFields) {
342
+ if (key === field) {
343
+ this.orderFields[key] = rule
344
+ } else {
345
+ this.orderFields[key] = 'no'
346
+ }
347
+ }
348
+ // 如果新规则不排序,还原为默认排序
349
+ if (rule === 'no') {
350
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
351
+ } else {
352
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
353
+ }
354
+
355
+ this.search()
356
+ },
357
+
358
+ put() {
359
+ // 对Modelval进行排序
360
+ this.sortModelval()
361
+ this.thead = `<tr><th colspan=${this.modelval.length}>销户查询报表</th></tr><tr>`
362
+ for (let key of this.modelval) {
363
+ this.thead += '<th>' + this.fields[key] + '</th>'
364
+ }
365
+ this.thead += '</tr>'
366
+ },
367
+ cancel() {
368
+ this.show = false
369
+ },
370
+ dealmsg(val) {
371
+ console.log('---------------dealmsg')
372
+ this.rowdata=val
373
+ this.show=true
374
+ val.model = this.model.model
375
+ this.$dispatch('deal-msg', val)
376
+ },
377
+ print() {
378
+ this.$refs.print.PrintAsFile()
379
+ this.printshow = false
380
+ },
381
+ close() {
382
+ this.printshow = false
383
+ this.all = false
384
+ },
385
+ // 对选择的列进行排序
386
+ sortModelval() {
387
+ let sortModel = []
388
+ Object.keys(this.fields).forEach((key) => {
389
+ if (this.modelval.includes(key)) {
390
+ sortModel.push(key)
391
+ }
392
+ })
393
+ this.modelval = sortModel
394
+ console.log('选择的打印的字段', this.modelval)
395
+ }
396
+ },
397
+ watch: {
398
+ 'all'(val) {
399
+ if (val) {
400
+ this.modelval = this.bodyData
401
+ } else {
402
+ this.modelval = defaultPrint.config
403
+ this.put()
404
+ }
405
+ },
406
+ sumsmodel: {
407
+ handler: function (val) {
408
+ this.getotherfooter();
409
+ },
410
+ deep: true
411
+ },
412
+ 'modelval.length'() {
413
+ this.put()
414
+ },
415
+ },
416
+ computed: {
417
+ getCondition() {
418
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
419
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
420
+ },
421
+ getfield() {
422
+ return exportConfig.CancellationConfig
423
+ }
424
+ }
425
+ }
426
+ </script>