manage-client 3.3.57 → 3.3.59

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 (44) hide show
  1. package/build/dev-server.js +21 -34
  2. package/package.json +1 -1
  3. package/src/components/webmeter/instruction/NewQueryInstruct.vue +61 -7
  4. package/src/components/webmeter/reportdata/ReportDataQuery.vue +0 -6
  5. package/src/filiale/WEINAN/CancellationQuery.vue +74 -0
  6. package/src/filiale/WEINAN/ChargeQuery.vue +58 -1
  7. package/src/filiale/WEINAN/DeviceQuery.vue +63 -0
  8. package/src/filiale/WEINAN/DisableQuery.vue +74 -0
  9. package/src/filiale/WEINAN/EnableQuery.vue +74 -0
  10. package/src/filiale/WEINAN/FillGasQuery.vue +74 -0
  11. package/src/filiale/WEINAN/InspectListUser.vue +35 -0
  12. package/src/filiale/WEINAN/MergeFileQuery.vue +77 -1
  13. package/src/filiale/WEINAN/MeterQuery.vue +58 -0
  14. package/src/filiale/WEINAN/NewAccountQuery.vue +58 -0
  15. package/src/filiale/WEINAN/OtherChargeQuery.vue +58 -0
  16. package/src/filiale/WEINAN/RecordInfoQuery.vue +58 -0
  17. package/src/filiale/WEINAN/UserGasAll.vue +63 -0
  18. package/src/filiale/WEINAN/UserGasList.vue +59 -0
  19. package/src/filiale/WEINAN/UserLostContactAnalysis.vue +63 -0
  20. package/src/filiale/WEINAN/UserQuery.vue +63 -0
  21. package/src/filiale/WEINAN/businessquery/FillCardQuery.vue +643 -0
  22. package/src/filiale/WEINAN/businessquery/HandplanQuery.vue +1428 -0
  23. package/src/filiale/WEINAN/businessquery/MoveMeterQuery.vue +477 -0
  24. package/src/filiale/WEINAN/businessquery/ReverseQuery.vue +512 -0
  25. package/src/filiale/WEINAN/businessquery/TransferQuery.vue +553 -0
  26. package/src/filiale/WEINAN/businessquery/UserInsured.vue +483 -0
  27. package/src/filiale/WEINAN/businessquery/priceadjustQuery.vue +535 -0
  28. package/src/filiale/WEINAN/config/exportConfig.js +41 -38
  29. package/src/filiale/WEINAN/filesquery/ChangeUserQuery.vue +468 -0
  30. package/src/filiale/WEINAN/filesquery/FmyGasDeviceQuery.vue +911 -0
  31. package/src/filiale/WEINAN/filesquery/GasDeviceQuery.vue +1021 -0
  32. package/src/filiale/WEINAN/filesquery/PriceChangeQuery.vue +468 -0
  33. package/src/filiale/WEINAN/filesquery/UserDeviceQuery.vue +505 -0
  34. package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +63 -0
  35. package/src/filiale/WEINAN/sale.js +23 -2
  36. package/src/filiale/WEINAN/webmeter/LostContactAnalysisList.vue +692 -0
  37. package/src/filiale/WEINAN/webmeter/NewQueryInstruct.vue +564 -0
  38. package/src/filiale/WEINAN/webmeter/ReportList.vue +483 -0
  39. package/src/filiale/WEINAN/webmeter/TotalExceptionByMeter.vue +665 -0
  40. package/src/filiale/WEINAN/webmeter/UserInstructEchartsList.vue +242 -0
  41. package/src/filiale/WEINAN/webmeter/UserInstructList.vue +390 -0
  42. package/src/filiale/WEINAN/webmeterManage.js +13 -0
  43. package/src/filiale/lixianV3/BusinessManage.vue +3 -0
  44. package/src/filiale/shanxian/UserLostContactAnalysis.vue +35 -3
@@ -0,0 +1,553 @@
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
+ <div class="col-sm-2 form-group">
11
+ <label for="startDate" class="font_normal_body">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ condition="f_operate_date >= '{}'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date <= '{}'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">客户编号</label>
32
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
38
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
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
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
45
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
46
+ sqlurl="rs/logic/exportfile" sql-name="transferQuery" template-name='过户查询导出'
47
+ :choose-col="true"></export-excel>
48
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
49
+ :defaultfield="$parent.$parent.defaultfield"
50
+ titletable="过户记录"
51
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
52
+ <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>
53
+ </div>
54
+ </div>
55
+ <div class="row" v-show="$parent.$parent.criteriaShow">
56
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :cascade =true v-ref:sel></res-select-group>
57
+
58
+ <div class="col-sm-2 form-group">
59
+ <label class="font_normal_body">客户地址</label>
60
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
61
+ condition="f_address like '%{}%'" placeholder='客户地址'>
62
+ </div>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
65
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
66
+ condition="f_meternumber = '{}'" placeholder='表号'>
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
70
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
71
+ condition="f_card_id = '{}'" placeholder='卡号'>
72
+ </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">过户状态</label>
75
+ <v-select :value.sync="model.f_state"
76
+ v-model="model.f_state"
77
+ :options='$parent.$parent.transferstate' placeholder='请选择'
78
+ condition="f_state = '{}'"
79
+ close-on-select></v-select>
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label class="font_normal_body">原户姓名</label>
83
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
84
+ placeholder="原户姓名"
85
+ condition="f_user_name = '{}'">
86
+ </div>
87
+ <div class="col-sm-2 form-group">
88
+ <label class="font_normal_body">新户姓名</label>
89
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_name"
90
+ condition="f_newuser_name like '%{}%' " placeholder="新户姓名">
91
+ </div>
92
+ <div class="col-sm-2 form-group">
93
+ <label class="font_normal_body">原户电话</label>
94
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
95
+ condition="f_user_phone like '%{}%' " placeholder="原户电话">
96
+ </div>
97
+ <div class="col-sm-2 form-group">
98
+ <label class="font_normal_body">新户电话</label>
99
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_phone"
100
+ condition="f_newuser_phone like '%{}%' " placeholder="新户电话">
101
+ </div>
102
+ <div class="col-sm-2 form-group">
103
+ <label class="font_normal_body">用户类型</label>
104
+ <v-select :value.sync="model.f_user_type"
105
+ v-model="model.f_user_type"
106
+ @change="$parent.$parent.userTypeChange()"
107
+ :options='$parent.$parent.userTypes' placeholder='请选择'
108
+ condition="f_user_type = '{}'"
109
+ close-on-select></v-select>
110
+ </div>
111
+ <div class="col-sm-2 form-group">
112
+ <label for="f_user_usetype" class="font_normal_body ">用气类型</label>
113
+ <v-select :value.sync="model.f_user_usetype" :search="false"
114
+ @change="$parent.$parent.userUseTypeChange()"
115
+ v-model="model.f_user_usetype"
116
+ :options='$parent.$parent.userusetypes'
117
+ condition="f_user_usetype = '{}'"
118
+ placeholder='用气类型'
119
+ value-single="true"
120
+ close-on-select>
121
+ </v-select>
122
+ </div>
123
+ <div class="col-sm-2 form-group">
124
+ <label for="f_use_institution" class="font_normal_body">用气机构</label>
125
+ <v-select :value.sync="model.f_use_institution" :search="false"
126
+ @change="$parent.$parent.userUseInstitutionChange()"
127
+ v-model="model.f_use_institution"
128
+ :options='$parent.$parent.useinstitutions'
129
+ condition="f_use_institution = '{}'"
130
+ placeholder='用气机构'
131
+ value-single="true"
132
+ close-on-select>
133
+ </v-select>
134
+ </div>
135
+ <div class="col-sm-2 form-group">
136
+ <label for="f_user_usenature" class="font_normal_body ">使用性质</label>
137
+ <v-select :value.sync="model.f_user_usenature" :search="false"
138
+ v-model="model.f_user_usenature"
139
+ :options='$parent.$parent.userusenatures'
140
+ condition="f_user_usenature = '{}'"
141
+ placeholder='使用性质'
142
+ value-single="true"
143
+ close-on-select>
144
+ </v-select>
145
+ </div>
146
+ </div>
147
+ </div>
148
+ </criteria>
149
+
150
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
151
+ <template partial='head'>
152
+ <tr>
153
+ <th>
154
+ <!-- <nobr>客户编号</nobr>-->
155
+ <data-order field="f_userinfo_code" name="客户编号"
156
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
157
+ </th>
158
+ <th>
159
+ <nobr>客户名称</nobr>
160
+ </th>
161
+ <th>
162
+ <nobr>档案编号</nobr>
163
+ </th>
164
+ <th>
165
+ <!-- <nobr>客户地址</nobr>-->
166
+ <data-order field="f_address" name="客户地址"
167
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
168
+ </th>
169
+ <th>
170
+ <nobr>表号</nobr>
171
+ </th>
172
+ <th>
173
+ <nobr>原客户名称</nobr>
174
+ </th>
175
+ <th>
176
+ <nobr>新客户电话</nobr>
177
+ </th>
178
+ <th>
179
+ <nobr>新客户身份证</nobr>
180
+ </th>
181
+ <th>
182
+ <nobr>原客户电话</nobr>
183
+ </th>
184
+ <th>
185
+ <nobr>原客户身份证</nobr>
186
+ </th>
187
+ <th>
188
+ <nobr>过户费</nobr>
189
+ </th>
190
+ <th>
191
+ <!-- <nobr>过户日期</nobr>-->
192
+ <data-order field="f_operate_date" name="过户日期"
193
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
194
+ </th>
195
+ <th>
196
+ <nobr>备注</nobr>
197
+ </th>
198
+ <th>
199
+ <nobr>操作员</nobr>
200
+ </th>
201
+ <th>
202
+ <nobr>部门</nobr>
203
+ </th>
204
+ <th>
205
+ <nobr>公司</nobr>
206
+ </th>
207
+ <th><nobr>附件</nobr></th>
208
+ </tr>
209
+ </template>
210
+ <template partial='body'>
211
+ <td style="text-align: center;">
212
+ <nobr>
213
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
214
+ </td>
215
+ <td style="text-align: center;">
216
+ <nobr>{{row.f_newuser_name}}</nobr>
217
+ </td>
218
+ <td style="text-align: center;">
219
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
220
+ </td>
221
+ <td style="text-align: center;">
222
+ <nobr>{{row.f_address}}</nobr>
223
+ </td>
224
+ <td style="text-align: center;">
225
+ <nobr>{{row.f_meternumber}}</nobr>
226
+ </td>
227
+ <td style="text-align: center;">
228
+ <nobr>{{row.f_user_name}}</nobr>
229
+ </td>
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.f_newuser_phone}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.f_newidnumber}}</nobr>
235
+ </td>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.f_user_phone}}</nobr>
238
+ </td>
239
+ <td style="text-align: center;">
240
+ <nobr>{{row.f_idnumber}}</nobr>
241
+ </td>
242
+ <td style="text-align: center;">
243
+ <nobr>{{row.f_transfer_fees}}</nobr>
244
+ </td>
245
+ <td style="text-align: center;">
246
+ <nobr>{{row.f_operate_date}}</nobr>
247
+ </td>
248
+ <td style="text-align: center;">
249
+ <nobr>{{row.f_comments}}</nobr>
250
+ </td>
251
+ <td style="text-align: center;">
252
+ <nobr>{{row.f_operator}}</nobr>
253
+ </td>
254
+ <td style="text-align: center;">
255
+ <nobr>{{row.f_depname}}</nobr>
256
+ </td>
257
+ <td style="text-align: center;">
258
+ <nobr>{{row.f_orgname}}</nobr>
259
+ </td>
260
+ <td style="text-align: center;"><nobr>
261
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
262
+ </nobr></td>
263
+ </template>
264
+ <template partial='foot'></template>
265
+ </data-grid>
266
+ </criteria-paged>
267
+
268
+ <table class="table-hover">
269
+ <tr style="position: relative" class="table-bordered">
270
+ <td
271
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
272
+ 汇总信息
273
+ </td>
274
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
275
+ 过户费合计:&emsp;{{sumsmodel.f_transfer_fees}}
276
+ </td>
277
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
278
+ 户数合计:&emsp;{{sumsmodel.hushu}}
279
+ </td>
280
+ </tr>
281
+ </table>
282
+ </div>
283
+ <div class="flex" v-if="show">
284
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
285
+ </div>
286
+ </div>
287
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
288
+ <article slot="modal-body">
289
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="过户管理" :isremark="false" style="width:auto" ></upload>
290
+ </article>
291
+ <footer slot="modal-footer" class="modal-footer">
292
+ </footer>
293
+ </modal>
294
+ </div>
295
+ </template>
296
+
297
+ <script>
298
+ import {PagedList} from 'vue-client'
299
+ import defaultPrint from './../config/DefaultPrint'
300
+ import exportConfig from './../config/exportConfig'
301
+
302
+ let readySomething = async function (self) {
303
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
304
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
305
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
306
+ // await self.$refs.paged.$refs.cri.search()
307
+ await self.$MagLoadParams.loadParam(self.$login.f)
308
+
309
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
310
+ }
311
+ export default {
312
+ props:['data'],
313
+ title: '过户查询',
314
+ data() {
315
+ return {
316
+ data: {},
317
+ other:[],
318
+ footer:[],
319
+ show:false,
320
+ rowdata:{},
321
+ model: new PagedList('rs/sql/transferQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_transfer_fees: 0,hushu:0}),
322
+ criteriaShow: false,
323
+ initres: {
324
+ org:[this.$login.f.orgid],
325
+ dep:[],
326
+ user:[],
327
+ },
328
+ headData: ["客户编号", "新户姓名", "新户电话", "客户地址", "过户状态", "原户姓名", "原户电话", "客户类型", "用气性质", "气价名称", "过户费", "过户日期", "人员", "部门", "公司"],
329
+ bodyData: ["f_userinfo_code", "f_newuser_name", "f_newuser_phone", "address", "f_state", "f_user_name", "f_user_phone", "f_user_type", "f_gasproperties", "f_price_name", "f_transfer_fees", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
330
+ orgCondtionStr: '',
331
+ modelval: [],
332
+ printshow: false,
333
+ all: false,
334
+ fields: {},
335
+ config: {
336
+ defaultPrint: ["f_userinfo_code", "f_newuser_name", "f_newuser_phone", "address", "f_state", "f_user_name","f_transfer_fees", "f_operate_date", "f_operator", "f_depname", "f_orgname"]
337
+ },
338
+ //排序
339
+ orderitem:'f_operate_date desc',
340
+ orderFields: {
341
+ f_operate_date: 'no'
342
+ },
343
+ //默认打印列
344
+ defaultfield: [],
345
+ thead: '',
346
+ tfoot: '',
347
+ showupload:false,
348
+ selected:{},
349
+
350
+ transferstate: this.$appdata.getParam('过户状态') ? [{
351
+ label: '全部',
352
+ value: ''
353
+ }, ...this.$appdata.getParam('过户状态')] : [],
354
+ userusetypes: [],
355
+ useinstitutions: [],
356
+ userusenatures: [],
357
+ //合计数据
358
+ sumsmodel: {}
359
+ }
360
+ },
361
+ ready() {
362
+ console.log(this.$login.f)
363
+ readySomething(this).then(() => {
364
+ this.$emit('ready')
365
+ }).catch((error) => {
366
+ this.$emit('error', error)
367
+ })
368
+ },
369
+ methods: {
370
+ userUseInstitutionChange () {
371
+ this.userusenatures = []
372
+ this.$refs.paged.$refs.cri.model.f_user_usenature = ''
373
+ if (this.$refs.paged.$refs.cri.model.f_use_institution) {
374
+ let str = this.$refs.paged.$refs.cri.model.f_use_institution + '使用性质'
375
+ this.userusenatures = this.$appdata.getParam(str)
376
+ }
377
+ },
378
+ userUseTypeChange () {
379
+ this.useinstitutions = []
380
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
381
+ if (this.$refs.paged.$refs.cri.model.f_user_usetype) {
382
+ let str = this.$refs.paged.$refs.cri.model.f_user_usetype + '机构'
383
+ this.useinstitutions = this.$appdata.getParam(str)
384
+ }
385
+ },
386
+ userTypeChange () {
387
+ this.userusetypes = []
388
+ if(this.$refs.paged.$refs.cri.model !==null) {
389
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
390
+ let str = this.$refs.paged.$refs.cri.model.f_user_type[0] + '用气类型'
391
+ this.userusetypes = this.$appdata.getParam(str)
392
+ }
393
+ },
394
+ view(row){
395
+ this.showupload = true
396
+ this.selected= row
397
+ },
398
+ getotherfooter(){
399
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
400
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
401
+ this.other=[];
402
+ this.footer=[];
403
+ let exportdata = this.getCondition;
404
+ let otherInData=[];
405
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
406
+ let footerData=[],exportfield=this.getfield;
407
+ footerData.push("合计");
408
+ let self = this;
409
+ for(var field in self.sumsmodel){
410
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
411
+ }
412
+ this.footer.push(footerData);
413
+ this.other.push(otherInData);
414
+ },
415
+ search(){
416
+ this.$refs.paged.$refs.cri.search()
417
+ },
418
+ dblclick(obj) {
419
+ this.data = obj
420
+ this.showinfo = true
421
+ },
422
+ async selfSearch(args) {
423
+ if (this.data) {
424
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
425
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
426
+ }
427
+ args.condition = `${args.condition}` + this.orgCondtionStr
428
+ // console.log('我的阐述', JSON.stringify(args.condition))
429
+ await this.model.search(args.condition, args.model)
430
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
431
+ this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
432
+
433
+ console.log('合计字段', this.sumsmodel)
434
+ },
435
+ dealmsg(val) {
436
+ console.log('---------------dealmsg')
437
+ this.rowdata=val
438
+ this.show=true
439
+ val.model = this.model.model
440
+ this.$dispatch('deal-msg', val)
441
+ },
442
+ cancel() {
443
+ this.show = false
444
+ },
445
+ clear() {
446
+ //清空部门和人员
447
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
448
+ //部门和人员变为全选
449
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
450
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
451
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
452
+ this.$refs.paged.$refs.cri.model[key] = []
453
+ })
454
+ },
455
+ show() {
456
+ this.criteriaShow = true
457
+ },
458
+ hidden() {
459
+ this.criteriaShow = !this.criteriaShow
460
+ },
461
+ getRes(obj) {
462
+ this.orgCondtionStr = obj
463
+ },
464
+ stamp() {
465
+ this.all = false
466
+ //默认选择要打印的列
467
+ this.modelval = defaultPrint.config
468
+ this.fields = this.getfield
469
+ console.log('所有打印字段', this.fields)
470
+ this.printshow = true
471
+ this.put()
472
+ },
473
+ put() {
474
+ // 对Modelval进行排序
475
+ this.sortModelval()
476
+ this.thead = `<tr><th colspan=${this.modelval.length}>过户查询统计报表</th></tr><tr>`
477
+ for (let key of this.modelval) {
478
+ this.thead += '<th>' + this.fields[key] + '</th>'
479
+ }
480
+ this.thead += '</tr>'
481
+ },
482
+ print() {
483
+ this.$refs.print.PrintAsFile()
484
+ this.printshow = false
485
+ },
486
+ close() {
487
+ this.printshow = false
488
+ this.all = false
489
+ },
490
+ // 对选择的列进行排序
491
+ sortModelval() {
492
+ let sortModel = []
493
+ Object.keys(this.fields).forEach((key) => {
494
+ if (this.modelval.includes(key)) {
495
+ sortModel.push(key)
496
+ }
497
+ })
498
+ this.modelval = sortModel
499
+ console.log('选择的打印的字段', this.modelval)
500
+ },
501
+ sort (field, rule) {
502
+ // 将所有排序方式设为不排序,实现相互排斥
503
+ for (let key in this.orderFields) {
504
+ if (key === field) {
505
+ this.orderFields[key] = rule
506
+ } else {
507
+ this.orderFields[key] = 'no'
508
+ }
509
+ }
510
+ // 如果新规则不排序,还原为默认排序
511
+ if (rule === 'no') {
512
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
513
+ } else {
514
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
515
+ }
516
+
517
+ this.search()
518
+ }
519
+ },
520
+ watch: {
521
+ 'all'(val) {
522
+ if (val) {
523
+ this.modelval = this.bodyData
524
+ } else {
525
+ this.modelval = defaultPrint.config
526
+ this.put()
527
+ }
528
+ },
529
+ 'modelval.length'() {
530
+ this.put()
531
+ },
532
+ sumsmodel:{
533
+ handler: function(val) {
534
+ this.getotherfooter();
535
+ },
536
+ deep: true
537
+ }
538
+ },
539
+ computed: {
540
+ userTypes() {
541
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
542
+ },
543
+ getCondition() {
544
+ return {
545
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
546
+ orderitem: this.orderitem?`${this.orderitem}`: `'f_operate_date desc'` }
547
+ },
548
+ getfield() {
549
+ return exportConfig.transferConfig
550
+ }
551
+ }
552
+ }
553
+ </script>