manage-client 4.1.83 → 4.1.85-tcls

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