manage-client 3.2.263 → 3.2.265

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 (33) hide show
  1. package/build/dev-server.js +180 -180
  2. package/package.json +111 -111
  3. package/src/filiale/kelai/ChargeQuery.vue +1341 -0
  4. package/src/filiale/kelai/sale.js +2 -1
  5. package/src/filiale/ningjin/CallReport/CallReportMainPage.vue +146 -0
  6. package/src/filiale/ningjin/CallReport/DropDownBox.vue +64 -0
  7. package/src/filiale/ningjin/CallReport/IncomingTelegram.vue +187 -0
  8. package/src/filiale/ningjin/CallReport/PercentageComplete.vue +413 -0
  9. package/src/filiale/ningjin/CallReport/PercentageCompleteEchart.vue +150 -0
  10. package/src/filiale/ningjin/CallReport/RateBottom.vue +143 -0
  11. package/src/filiale/ningjin/CallReport/RateTop.vue +144 -0
  12. package/src/filiale/ningjin/CallReport/ScrollContent.vue +143 -0
  13. package/src/filiale/ningjin/CallReport/ServiceStatus.vue +371 -0
  14. package/src/filiale/ningjin/CallReport/SwiperTools.vue +145 -0
  15. package/src/filiale/ningjin/CallReport/SwiperTools2.vue +176 -0
  16. package/src/filiale/ningjin/CallReport/Time.vue +100 -0
  17. package/src/filiale/ningjin/CallReport/Userinfo.vue +69 -0
  18. package/src/filiale/ningjin/CallReport/WeatherData.vue +108 -0
  19. package/src/filiale/ningjin/CallReport/WorkOrderPage.vue +260 -0
  20. package/src/filiale/ningjin/FillCardQuery.vue +581 -0
  21. package/src/filiale/ningjin/GasStatistics.vue +39 -20
  22. package/src/filiale/ningjin/LostContactAnalysisList.vue +676 -0
  23. package/src/filiale/ningjin/ManageBusSummaryPeng.vue +241 -0
  24. package/src/filiale/ningjin/ManageHandSellMoney.vue +247 -0
  25. package/src/filiale/ningjin/ManageSellType.vue +284 -0
  26. package/src/filiale/ningjin/MeterExceptionList.vue +54 -9
  27. package/src/filiale/ningjin/UserLostContactAnalysis.vue +592 -0
  28. package/src/filiale/ningjin/config/exportConfig.js +35 -34
  29. package/src/filiale/ningjin/reportManage.js +6 -1
  30. package/src/filiale/ningjin/sale.js +26 -0
  31. package/src/filiale/ningjin/webmeterManage.js +5 -1
  32. package/src/filiale/wenxi/GasDeviceQuery.vue +975 -0
  33. package/src/filiale/wenxi/sale.js +2 -0
@@ -0,0 +1,581 @@
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
+
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
+ sqlurl="rs/logic/exportfile" sql-name="fillCardQuery" template-name='补卡查询导出'
49
+ :choose-col="true"></export-excel>
50
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
51
+ :defaultfield="$parent.$parent.defaultfield"
52
+ titletable="补卡记录"
53
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
54
+ <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>
55
+ </div>
56
+ </div>
57
+
58
+ <div class="row" v-show="$parent.$parent.criteriaShow">
59
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body">客户名称</label>
62
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
63
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
64
+ </div>
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body">客户地址</label>
67
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
68
+ condition="f_address like '%{}%'" placeholder='客户地址'>
69
+ </div>
70
+ <div class="col-sm-2 form-group">
71
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
72
+ <v-select :value.sync="model.f_residential_area"
73
+ class="select_list select"
74
+ v-model="model.f_residential_area"
75
+ style="width: 60%"
76
+ multiple
77
+ condition="f_residential_area in {}"
78
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
79
+ close-on-select>
80
+
81
+ </v-select>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">补卡类型</label>
85
+ <v-select :value.sync="model.f_type"
86
+ v-model="model.f_type"
87
+ :value-single="true"
88
+ :options='$parent.$parent.fillCardTypes' placeholder='请选择'
89
+ condition=" f_type = '{}'"
90
+ close-on-select clear-button></v-select>
91
+ </div>
92
+
93
+ <div class="col-sm-2 form-group">
94
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
95
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
96
+ condition="f_card_id like '%{}%'" placeholder='卡号'>
97
+ </div>
98
+ <div class="col-sm-2 form-group">
99
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
100
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
101
+ condition="f_meternumber = '{}'" placeholder='表号'>
102
+ </div>
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">气表品牌</label>
105
+ <v-select :value.sync="model.f_meter_brand"
106
+ v-model="model.f_meter_brand"
107
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
108
+ condition="f_meter_brand = '{}'"
109
+ close-on-select></v-select>
110
+ </div>
111
+ <div class="col-sm-2 form-group">
112
+ <label class="font_normal_body">补卡状态</label>
113
+ <v-select :value.sync="model.f_state"
114
+ v-model="model.f_state"
115
+ :options='$parent.$parent.chargeState' placeholder='请选择'
116
+ condition="f_state = '{}'"
117
+ close-on-select></v-select>
118
+ </div>
119
+ <div class="col-sm-2 form-group">
120
+ <label class="font_normal_body">付款方式</label>
121
+ <v-select id="f_payment"
122
+ v-model="model.f_payment"
123
+ placeholder='请选择'
124
+ condition="f_payment ='{}'"
125
+ :value.sync="model.f_payment"
126
+ :options='$parent.$parent.payments'
127
+ close-on-select clear-button>
128
+ </v-select>
129
+ </div>
130
+ <div class="col-sm-2 flex-row" style="white-space: nowrap" >
131
+ <label class="font_normal_body">卡费</label>
132
+ <div class="row">
133
+ <input type="text" style="width:30%" class="input_search" v-model="model.f_cardfeesmin"
134
+ condition="f_cardfees >= {} " placeholder="">
135
+ <label class="font_normal_body"> ≤ x ≤ </label>
136
+ <input type="text" style="width:30%" class="input_search" v-model="model.f_cardfeesmax"
137
+ condition="f_cardfees <= {} " placeholder="">
138
+ </div>
139
+ </div>
140
+ </div>
141
+
142
+ </div>
143
+ </criteria>
144
+
145
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
146
+ <template partial='head'>
147
+ <tr>
148
+ <th>
149
+ <!-- <nobr>客户编号</nobr>-->
150
+ <data-order field="f_userinfo_code" name="客户编号"
151
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
152
+ </th>
153
+ <th>
154
+ <nobr>客户名称</nobr>
155
+ </th>
156
+ <th>
157
+ <nobr>档案编号</nobr>
158
+ </th>
159
+ <th>
160
+ <nobr>收据票号</nobr>
161
+ </th>
162
+ <th>
163
+ <!-- <nobr>客户地址</nobr>-->
164
+ <data-order field="f_address" name="客户地址"
165
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
166
+ </th>
167
+ <th>
168
+ <nobr>表号</nobr>
169
+ </th>
170
+ <th>
171
+ <nobr>小区</nobr>
172
+ </th>
173
+ <th>
174
+ <nobr>卡号</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>气表品牌</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>补卡类型</nobr>
181
+ </th>
182
+ <th>
183
+ <nobr>补卡种类</nobr>
184
+ </th>
185
+ <th>
186
+ <nobr>补卡原因</nobr>
187
+ </th>
188
+ <th>
189
+ <nobr>卡费</nobr>
190
+ </th>
191
+ <th>
192
+ <!-- <nobr>补卡日期</nobr>-->
193
+ <data-order field="f_operate_date" name="补卡日期"
194
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
195
+ </th>
196
+ <th>
197
+ <nobr>付款方式</nobr>
198
+ </th>
199
+ <th>
200
+ <nobr>人员</nobr>
201
+ </th>
202
+ <th>
203
+ <nobr>部门</nobr>
204
+ </th>
205
+ <th>
206
+ <nobr>公司</nobr>
207
+ </th>
208
+ <th><nobr>附件</nobr></th>
209
+ </tr>
210
+ </template>
211
+ <template partial='body'>
212
+ <td style="text-align: center;">
213
+ <nobr>
214
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
215
+ </td>
216
+ <td style="text-align: center;">
217
+ <nobr>{{row.f_user_name}}</nobr>
218
+ </td>
219
+ <td style="text-align: center;">
220
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
221
+ </td>
222
+ <td style="text-align: center;">
223
+ <nobr>{{row.f_bill_number}}</nobr>
224
+ </td>
225
+ <td style="text-align: center;">
226
+ <nobr>{{row.f_address}}</nobr>
227
+ </td>
228
+ <td style="text-align: center;">
229
+ <nobr>{{row.f_meternumber}}</nobr>
230
+ </td>
231
+ <td style="text-align: center;">
232
+ <nobr>{{row.f_residential_area}}</nobr>
233
+ </td>
234
+ <td style="text-align: center;">
235
+ <nobr>{{row.f_card_id}}</nobr>
236
+ </td>
237
+ <td style="text-align: center;">
238
+ <nobr>{{row.f_meter_brand}}</nobr>
239
+ </td>
240
+ <td style="text-align: center;">
241
+ <nobr>{{row. f_type}}</nobr>
242
+ </td>
243
+ <td style="text-align: center;">
244
+ <nobr>{{row. f_fill_type}}</nobr>
245
+ </td>
246
+ <td style="text-align: center;">
247
+ <nobr>{{row.f_comments}}</nobr>
248
+ </td>
249
+ <td style="text-align: center;">
250
+ <nobr>{{row.f_cardfees}}</nobr>
251
+ </td>
252
+ <td style="text-align: center;">
253
+ <nobr>{{row.f_operate_date}}</nobr>
254
+ </td>
255
+ <td style="text-align: center;">
256
+ <nobr>{{row.f_payment}}</nobr>
257
+ </td>
258
+ <td style="text-align: center;">
259
+ <nobr>{{row.f_operator}}</nobr>
260
+ </td>
261
+ <td style="text-align: center;">
262
+ <nobr>{{row.f_depname}}</nobr>
263
+ </td>
264
+ <td style="text-align: center;">
265
+ <nobr>{{row.f_orgname}}</nobr>
266
+ </td>
267
+ <td style="text-align: center;"><nobr>
268
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
269
+ </nobr></td>
270
+ </template>
271
+ <template partial='foot'></template>
272
+ </data-grid>
273
+
274
+ </criteria-paged>
275
+
276
+ <table class="table-hover">
277
+ <tr style="position: relative" class="table-bordered">
278
+ <td
279
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
280
+ 汇总信息
281
+ </td>
282
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
283
+ 卡费合计:&emsp;{{sumsmodel.f_cardfees}}
284
+ </td>
285
+ </tr>
286
+ </table>
287
+ </div>
288
+ <div class="flex" v-if="show">
289
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
290
+ </div>
291
+ </div>
292
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
293
+ <article slot="modal-body">
294
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="补卡" :isremark="false" style="width:auto" ></upload>
295
+ </article>
296
+ <footer slot="modal-footer" class="modal-footer">
297
+ </footer>
298
+ </modal>
299
+ </div>
300
+ </template>
301
+
302
+ <script>
303
+ import {HttpResetClass, PagedList} from 'vue-client'
304
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
305
+ import exportConfig from './config/exportConfig'
306
+
307
+ let readySomething = async function (self) {
308
+
309
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
310
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
311
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
312
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
313
+ // await self.$refs.paged.$refs.cri.search()
314
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
315
+ await self.$MagLoadParams.loadParam()
316
+ self.initParams()
317
+
318
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
319
+ }
320
+ export default {
321
+ props:['data'],
322
+ title: '补卡查询',
323
+ data() {
324
+ return {
325
+ data: {},
326
+ other:[],
327
+ footer:[],
328
+ model: new PagedList('rs/sql/fillCardQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_cardfees: 0}),
329
+ criteriaShow: false,
330
+ headData: ["客户编号", "客户名称", "客户电话", "身份证号", "地址", "补卡类型", "表编号", "卡号", "气表品牌", "气表状态", "卡费", "补卡日期", "人员", "部门", "公司","付款方式"],
331
+ bodyData: ["f_userinfo_code", "f_user_name", "f_user_phone", "f_idnumber", "address", " f_type", "f_user_id", "f_card_id", "f_meter_brand", "f_table_state", "f_cardfees", "f_operate_date", "f_operator", "f_depname", "f_orgname","f_payment"],
332
+ config: {
333
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_idnumber', 'f_card_id', 'f_meter_brand', 'f_operate_date', 'f_cardfees', 'f_operator']
334
+ },
335
+ f_cardfeesmin:0,
336
+ f_cardfeesmax:0,
337
+ //排序
338
+ orderitem:'f_operate_date desc',
339
+ orderFields: {
340
+ f_operate_date: 'no'
341
+ },
342
+ //默认打印列
343
+ defaultfield: [],
344
+ orgCondtionStr: '',
345
+ initres: {
346
+ org:[this.$login.f.orgid],
347
+ dep:[],
348
+ user:[],
349
+ },
350
+ modelval: [],
351
+ printshow: false,
352
+ all: false,
353
+ fields: {},
354
+ thead: '',
355
+ tfoot: '',
356
+ showupload:false,
357
+ selected:{},
358
+ //小区
359
+ residentialArea: [],
360
+ meterbrands: [],
361
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
362
+
363
+ show:false,
364
+ rowdata:{},
365
+ //合计数据
366
+ sumsmodel: {}
367
+ }
368
+ },
369
+ ready() {
370
+ this.getaddress()
371
+ readySomething(this).then(() => {
372
+ this.$emit('ready')
373
+ }).catch((error) => {
374
+ this.$emit('error', error)
375
+ })
376
+ },
377
+ methods: {
378
+ view(row){
379
+ this.showupload = true
380
+ this.selected= row
381
+ },
382
+ getotherfooter(){
383
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
384
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
385
+ this.other=[];
386
+ this.footer=[];
387
+ let exportdata = this.getCondition;
388
+ let otherInData=[];
389
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
390
+ let footerData=[],exportfield=this.getfield;
391
+ footerData.push("合计");
392
+ let self = this;
393
+ for(var field in self.sumsmodel){
394
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
395
+ }
396
+ this.footer.push(footerData);
397
+ this.other.push(otherInData);
398
+ },
399
+ search(){
400
+ this.$refs.paged.$refs.cri.search()
401
+ },
402
+ cancel() {
403
+ this.show = false
404
+ },
405
+ async selfSearch(args) {
406
+ console.log("--------------------?")
407
+ if (this.data) {
408
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
409
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
410
+ }
411
+ args.condition = `${args.condition}` + this.orgCondtionStr
412
+ args.condition = args.condition.replace(/f_zones/, "f_slice_area")
413
+ await this.model.search(args.condition, args.model)
414
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
415
+ },
416
+
417
+ initParams() {
418
+ // 初始化气表品牌
419
+ let brandArr = []
420
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
421
+ let temp = {}
422
+ temp.label = item.label
423
+ temp.value = item.value.f_meter_brand
424
+ brandArr.push(temp)
425
+ })
426
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
427
+ },
428
+ async getaddress(){
429
+ console.log('开始获取小区')
430
+ let HttpReset = new HttpResetClass()
431
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
432
+ data: {
433
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
434
+ }
435
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
436
+ console.log('小区',data)
437
+ let house = [{label: '全部', value: ''}]
438
+ for (let row of data.data){
439
+ console.log('开始保存小区')
440
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
441
+ }
442
+ this.residentialArea = house
443
+ },
444
+
445
+ clear() {
446
+ //清空部门和人员
447
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
448
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = []
449
+ this.$refs.paged.$refs.cri.$refs.sel.slice_area = []
450
+ //部门和人员变为全选
451
+ // this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
452
+ // this.$refs.paged.$refs.cri.$refs.sel.$children[3].$children[0].isSelectAll = false
453
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
454
+ this.$refs.paged.$refs.cri.model[key] = []
455
+ })
456
+ },
457
+ show() {
458
+ this.criteriaShow = true
459
+ },
460
+ hidden() {
461
+ this.criteriaShow = !this.criteriaShow
462
+ },
463
+ getRes(condition) {
464
+ this.orgCondtionStr = condition
465
+ },
466
+ dealmsg(val) {
467
+ console.log('---------------dealmsg')
468
+ this.rowdata=val
469
+ this.show=true
470
+ val.model = this.model.model
471
+ this.$dispatch('deal-msg', val)
472
+ },
473
+ stamp() {
474
+ this.all = false
475
+ //默认选择要打印的列
476
+ this.modelval = defaultPrint.config
477
+ this.fields = this.getfield
478
+ console.log('所有打印字段', this.fields)
479
+ this.printshow = true
480
+ this.put()
481
+ },
482
+ put() {
483
+ // 对Modelval进行排序
484
+ this.sortModelval()
485
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
486
+ for (let key of this.modelval) {
487
+ this.thead += '<th>' + this.fields[key] + '</th>'
488
+ }
489
+ this.thead += '</tr>'
490
+ },
491
+ print() {
492
+ this.$refs.print.PrintAsFile()
493
+ this.printshow = false
494
+ },
495
+ close() {
496
+ this.printshow = false
497
+ this.all = false
498
+ },
499
+ // 对选择的列进行排序
500
+ sortModelval() {
501
+ let sortModel = []
502
+ Object.keys(this.fields).forEach((key) => {
503
+ if (this.modelval.includes(key)) {
504
+ sortModel.push(key)
505
+ }
506
+ })
507
+ this.modelval = sortModel
508
+ console.log('选择的打印的字段', this.modelval)
509
+ },
510
+ sort (field, rule) {
511
+ // 将所有排序方式设为不排序,实现相互排斥
512
+ for (let key in this.orderFields) {
513
+ if (key === field) {
514
+ this.orderFields[key] = rule
515
+ } else {
516
+ this.orderFields[key] = 'no'
517
+ }
518
+ }
519
+ // 如果新规则不排序,还原为默认排序
520
+ if (rule === 'no') {
521
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
522
+ } else {
523
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
524
+ }
525
+
526
+ this.search()
527
+ },
528
+ async updateParams() {
529
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
530
+ this.initParams()
531
+ },
532
+ },
533
+ watch: {
534
+ 'all'(val) {
535
+ if (val) {
536
+ this.modelval = this.bodyData
537
+ } else {
538
+ this.modelval = defaultPrint.config
539
+ this.put()
540
+ }
541
+ },
542
+ 'modelval.length'() {
543
+ this.put()
544
+ },
545
+ sumsmodel:{
546
+ handler: function(val) {
547
+ this.getotherfooter();
548
+ },
549
+ deep: true
550
+ },
551
+ 'orgCondtionStr'(val) {
552
+ let res = val.match(/'(.*?)'/)
553
+ console.log('正则提取:',res && res[1])
554
+ if (res) {
555
+ this.f_filialeid = res[1]
556
+ this.updateParams()
557
+ }
558
+ }
559
+ },
560
+ computed: {
561
+ getCondition() {
562
+ return {
563
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
564
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"
565
+ }
566
+ },
567
+ getfield() {
568
+ return exportConfig.fillcardConfig
569
+ },
570
+ fillCardTypes() {
571
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补卡类型')]
572
+ },
573
+ chargeState() {
574
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补卡状态')]
575
+ },
576
+ payments() {
577
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
578
+ }
579
+ }
580
+ }
581
+ </script>