manage-client 3.3.42 → 3.3.44

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.
@@ -0,0 +1,653 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search" v-if="!show">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" >
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
+ <res-select-group :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
+
12
+ <div class="col-sm-2 form-group">
13
+ <label for="startDate" class="font_normal_body">验收日期起</label>
14
+ <datepicker id="startDate" placeholder="验收日期起" style="width:60%"
15
+ v-model="model.startDate"
16
+ :value.sync="model.startDate"
17
+ :format="'yyyy-MM-dd HH:mm:ss'"
18
+ :show-reset-button="true">
19
+ </datepicker>
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label for="endDate" class="font_normal_body">验收日期止</label>
23
+ <datepicker id="endDate" placeholder="验收日期止" style="width:60%"
24
+ v-model="model.endDate"
25
+ :value.sync="model.endDate"
26
+ :format="'yyyy-MM-dd HH:mm:ss'"
27
+ :show-reset-button="true">
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.textfield_li9rszui"
33
+ condition="textfield_li9rszui = '{}' " placeholder="用户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">用户姓名</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.textfield_li9rszuj"
38
+ condition="textfield_li9rszuj = '{}'" placeholder="用户姓名">
39
+ </div>
40
+
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="$parent.$parent.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"
47
+ :field="$parent.$parent.getExportField"
48
+ :footer="$parent.$parent.footer"
49
+ :header="$parent.$parent.other"
50
+ sqlurl="rs/logic/exportfile" sql-name="qnAqzzYsmx" template-name='验收报表导出'
51
+ :choose-col="true"></export-excel>
52
+
53
+ <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>
54
+ </div>
55
+ </div>
56
+ <div class="row" v-show="$parent.$parent.criteriaShow">
57
+ <div class="col-sm-2 form-group">
58
+ <label for="startCreatetimegmt" class="font_normal_body">发起日期起</label>
59
+ <datepicker id="startCreatetimegmt" placeholder="发起日期起" style="width:60%"
60
+ v-model="model.startCreatetimegmt"
61
+ :value.sync="model.startCreatetimegmt"
62
+ :format="'yyyy-MM-dd HH:mm:ss'"
63
+ :show-reset-button="true"
64
+ condition="createtimegmt >= '{}'">
65
+ </datepicker>
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label for="endCreatetimegmt" class="font_normal_body">发起日期止</label>
69
+ <datepicker id="endCreatetimegmt" placeholder="发起日期止" style="width:60%"
70
+ v-model="model.endCreatetimegmt"
71
+ :value.sync="model.endCreatetimegmt"
72
+ :format="'yyyy-MM-dd HH:mm:ss'"
73
+ :show-reset-button="true"
74
+ condition="createtimegmt <= '{}'">
75
+ </datepicker>
76
+ </div>
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body">发起人</label>
79
+ <v-select :value.sync="model.originator"
80
+ :options='$parent.$parent.originatorArray' placeholder='请选择' v-model="model.originator" multiple
81
+ condition="originator in {}"
82
+ ></v-select>
83
+ </div>
84
+ <div class="col-sm-2 form-group">
85
+ <label class="font_normal_body">验收人</label>
86
+ <v-select :value.sync="model.modifyuser"
87
+ :options='$parent.$parent.modifyuserArray' placeholder='请选择' v-model="model.modifyuser" multiple
88
+ condition="modifyuser in {}"
89
+ ></v-select>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">地址</label>
93
+ <input type="text" style="width:60%" class="input_search" v-model="model.textfield_li9rszuo"
94
+ condition="textfield_li9rszuo like '%{}%'" placeholder="地址">
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">核对结果</label>
98
+ <v-select :value.sync="model.hdjg"
99
+ :options="[{label: '全部', value: ''},{label: '核对正确', value: '核对正确'},{label: '核对错误', value: '核对错误'}]"
100
+ placeholder='请选择'
101
+ v-model="model.hdjg"
102
+ condition="hdjg in {}"
103
+ ></v-select>
104
+ </div>
105
+ </div>
106
+ </div>
107
+ </criteria>
108
+
109
+ <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
110
+ <template partial='head'>
111
+ <tr>
112
+ <th>
113
+ <nobr>标题</nobr>
114
+ </th>
115
+ <th>
116
+ <nobr>发起时间</nobr>
117
+ </th>
118
+ <th>
119
+ <nobr>发起人</nobr>
120
+ </th>
121
+ <th>
122
+ <nobr>验收时间</nobr>
123
+ </th>
124
+ <th>
125
+ <nobr>验收人</nobr>
126
+ </th>
127
+ <th>
128
+ <nobr>用户编号</nobr>
129
+ </th>
130
+ <th>
131
+ <nobr>用户姓名</nobr>
132
+ </th>
133
+ <th>
134
+ <nobr>地址</nobr>
135
+ </th>
136
+ <th>
137
+ <nobr>与收费比对结果</nobr>
138
+ </th>
139
+ </tr>
140
+ </template>
141
+ <template partial='body'>
142
+ <td style="text-align: center;">
143
+ <a href="javascript:void(0);" onclick="window.open('dingtalk://dingtalkclient/page/link?url=https%3A%2F%2Fyzidur.aliwork.com%2FAPP_FG6RSKCTOEQ3PYSLQT6H%2FprocessDetail%3FprocInsId%3D{{row.forminstanceid}}%26formUuid%3DFORM-4G8667A1HNWACQ0E7FV1U9SI1K0O2V0WSR9ILG%26isAdmin%3Dtrue%26isRenderNav%3Dfalse%26iframeState%3Dadmin%26isFromTable%3Dtrue%26ddtab%3Dtrue')">{{row.title}}</a>
144
+ </td>
145
+ <td style="text-align: center;">
146
+ <nobr>{{row.createtimegmt}}</nobr>
147
+ </td>
148
+ <td style="text-align: center;">
149
+ <nobr>{{row.originator}}</nobr>
150
+ </td>
151
+ <td style="text-align: center;">
152
+ <nobr>{{row.modifiedtimegmt}}</nobr>
153
+ </td>
154
+ <td style="text-align: center;">
155
+ <nobr>{{row.modifyuser}}</nobr>
156
+ </td>
157
+ <td style="text-align: center;">
158
+ <nobr>{{row.textfield_li9rszui}}</nobr>
159
+ </td>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.textfield_li9rszuj}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.textfield_li9rszuo}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.matchedaofeng}}</nobr>
168
+ </td>
169
+ </template>
170
+ <template partial='foot'>
171
+ </template>
172
+ </data-grid>
173
+ </criteria-paged>
174
+ <table class="table-hover">
175
+ <tr style="position: relative" class="table-bordered">
176
+ <td
177
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
178
+ 汇总信息
179
+ </td>
180
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
181
+ 合计:&emsp;
182
+ </td>
183
+ </tr>
184
+ </table>
185
+ </div>
186
+
187
+ </div>
188
+ </div>
189
+ <div class="basic-main" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
190
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
191
+ </div>
192
+ </div>
193
+ </template>
194
+
195
+ <script>
196
+ import {HttpResetClass, PagedList} from 'vue-client'
197
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
198
+ import exportConfig from './exportConfig'
199
+
200
+ let readySomething = async function (self) {
201
+ self.$MagGetSaleParam.initinputtor();
202
+ self.getinputtores();
203
+ // 获取区县
204
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.addDate(self.$login.toStandardDateString()+ ' 00:00:00', -1) ;
205
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.addDate(self.$login.toStandardDateString()+ ' 23:59:59', -1) ;
206
+ // await self.$refs.paged.$refs.cri.search()
207
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
208
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
209
+ }
210
+
211
+ export default {
212
+ title: '验收明细',
213
+ data() {
214
+ return {
215
+ other:[],
216
+ footer:[],
217
+ model: new PagedList('rs/sql/qnAqzzYsmx', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_insideorgid:'this.model.f_insideorgid'}),
218
+ criteriaShow: false,
219
+ orgCondtionStr: '',
220
+ modelval: [],
221
+ printshow: false,
222
+ all: false,
223
+ fields: {},
224
+ //排序
225
+ orderitem:'',
226
+ orderFields: {
227
+
228
+ },
229
+ originatorArray:[],
230
+ modifyuserArray:[],
231
+ //默认打印列
232
+ defaultfield: [],
233
+ config: {
234
+ defaultPrint: []
235
+ },
236
+ balance2:'',
237
+ thead: '',
238
+ tfoot: '',
239
+ area: [],
240
+ //合计数据
241
+ sumsmodel: {},
242
+ initres: {
243
+ org:[this.$login.f.orgid],
244
+ dep:[],
245
+ user:[],
246
+ },
247
+ userdetail: {
248
+ show: false,
249
+ f_userinfo_code: '',
250
+ f_filialeids: ''
251
+ },
252
+
253
+ show:false,
254
+ rowdata:{},
255
+ meterInfo:{},
256
+ deviceInfo:{},
257
+ condition2:'',
258
+
259
+
260
+ weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
261
+ //小区
262
+ residentialArea: [],
263
+ //表册片区
264
+ bookSlice:[{label: '全部',value: ''}],
265
+ inputtores:[{label: '全部',value: ''}], //抄表员
266
+ allorgid:[],
267
+ f_filialeid: this.$login.f.f_orgid,
268
+ dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
269
+ sfhgArray:[{label:"全部",value:""},{label:"是",value:"是",},{label:"否",value:"否",}],
270
+ }
271
+ },
272
+ ready() {
273
+ //this.getaddress()
274
+ // this.$refs.paged.$refs.cri.model.f_user_state=['正常']
275
+ readySomething(this).then(() => {
276
+ this.$emit('ready')
277
+ }).catch((error) => {
278
+ this.$emit('error', error)
279
+ })
280
+ //this.initAreas(this.$login.f.orgid)
281
+ //self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
282
+ //self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
283
+ this.getModifyuserArray();
284
+ this.getOriginatorArray();
285
+ },
286
+ methods: {
287
+ async getinputtores () {
288
+ // 获取抄表员
289
+ let rs = []
290
+ if (this.$login.f.f_gasman.length > 0) {
291
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
292
+ let temp = {
293
+ label: this.$login.f.f_gasman[i].name,
294
+ value: this.$login.f.f_gasman[i].name
295
+ }
296
+ rs.push(temp)
297
+ }
298
+ }
299
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
300
+ },
301
+ async updateParams() {
302
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
303
+ this.inputtores = [];
304
+ this.inputtores.push({label: "全部", value: ""})
305
+ this.initSlice(this.f_filialeid)
306
+ if(this.allorgid!=null){
307
+ this.allorgid.forEach((res)=>{
308
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
309
+ })
310
+ }
311
+ },
312
+
313
+ async getOriginatorArray(){
314
+ let HttpReset = new HttpResetClass()
315
+ var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
316
+ data: {
317
+ condition: "qn_orgid='TK'",
318
+ tablename: 'qn_yida_instance',
319
+ groupitem: "originator",
320
+ orderitem: 'originator',
321
+ items: 'originator'
322
+ }
323
+ }, {resolveMsg: null, rejectMsg: '获取失败!'})
324
+ let nameArr = []
325
+ for (let row of data.data){
326
+ nameArr.push({label: row.originator.replace("+"," "), value: row.originator.replace("+"," ")})
327
+ }
328
+ this.originatorArray = nameArr
329
+ },
330
+ async getModifyuserArray(){
331
+ let HttpReset = new HttpResetClass()
332
+ var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
333
+ data: {
334
+ condition: "qn_orgid='TK'",
335
+ tablename: 'qn_yida_instance',
336
+ groupitem: "modifyuser",
337
+ orderitem: 'modifyuser',
338
+ items: 'modifyuser'
339
+ }
340
+ }, {resolveMsg: null, rejectMsg: '获取失败!'})
341
+ let nameArr = []
342
+ for (let row of data.data){
343
+ nameArr.push({label: row.modifyuser.replace("+"," "), value: row.modifyuser.replace("+"," ")})
344
+ }
345
+ this.modifyuserArray = nameArr
346
+ },
347
+ getotherfooter () {
348
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
349
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
350
+ this.other = [];
351
+ this.footer = [];
352
+ let exportdata = this.getCondition;
353
+ let otherInData = [];
354
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
355
+ let footerData = [], exportfield = this.getExportField;
356
+ footerData.push("合计");
357
+ let self = this;
358
+ for (var field in self.sumsmodel) {
359
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
360
+ }
361
+ this.footer.push(footerData);
362
+ this.other.push(otherInData);
363
+ },
364
+ async getaddress(){
365
+ console.log('开始获取小区')
366
+ let HttpReset = new HttpResetClass()
367
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
368
+ data: {
369
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
370
+ }
371
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
372
+ console.log('小区',data)
373
+ let house = []
374
+ for (let row of data.data){
375
+ console.log('开始保存小区')
376
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
377
+ }
378
+ this.residentialArea = house
379
+ },
380
+
381
+ //把数据库查询数据转换为下拉数据
382
+ calculate(rows){
383
+ let data = []
384
+ rows.forEach((row, n) => {
385
+ data[n] = {label: row.f_residential_area, value: row.id}
386
+ })
387
+ return data
388
+ },
389
+ search(){
390
+ console.log("=====search====")
391
+ //this.$refs.paged.$refs.cri.search()
392
+ this.$refs.paged.$refs.cri.model.f_insideorgid = this.f_filialeid;
393
+ this.$refs.paged.$refs.cri.search()
394
+ },
395
+ cancel(obj) {
396
+ console.log("=====cancel====" + obj)
397
+ this.show = false
398
+ },
399
+ showmsg(obj){
400
+ this.rowdata=obj
401
+ this.show=true
402
+ // let http = new HttpResetClass()
403
+ // http.load('POST','rs/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
404
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
405
+ // this.meterInfo = res.data})
406
+ // let http2 = new HttpResetClass()
407
+ // http2.load('POST','rs/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
408
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
409
+ // this.deviceInfo = res.data})
410
+
411
+ // this.f_userinfo_id=obj.f_userinfo_id
412
+ },
413
+ userTypeChange () {
414
+ this.gasproperties=[]
415
+ if(this.$refs.paged.$refs.cri.model !==null) {
416
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
417
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
418
+ }
419
+ else{
420
+ this.gasproperties =[{label: '全部', value: ''}]
421
+ }
422
+ },
423
+ //初始化片区
424
+ async initSlice (val) {
425
+ if (val) {
426
+ let getAllArea = await this.$resetpost('/rs/search', {
427
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
428
+ userid: this.$login.f.id
429
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
430
+ let arr = getAllArea.data.filter((res) => {
431
+ return res.parentid == val
432
+ })
433
+ this.bookSlice = []
434
+ console.log('过滤之后的片区-------------------', arr)
435
+ arr.forEach((res) => {
436
+ this.bookSlice.push({label: res.name, value: res.name})
437
+ })
438
+ }
439
+ },
440
+ async initAreas (val) {
441
+
442
+ if (val) {
443
+ let getAllArea = await this.$resetpost('/rs/search', {
444
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
445
+ userid: this.$login.f.id
446
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
447
+
448
+ let arr = getAllArea.data.filter((res) => {
449
+ return res.parentid == val
450
+ })
451
+ console.log('过滤之后的片区', arr)
452
+ this.sliceArea = []
453
+ arr.forEach((res) => {
454
+ this.sliceArea.push({label: res.name, value: res.name})
455
+ })
456
+ }
457
+ },
458
+ selfSearch(args) {
459
+ console.log('args', args)
460
+ console.log('this.orgCondtionStr', this.orgCondtionStr)
461
+ if (!this.orgCondtionStr) {
462
+ args.condition = `${args.condition}` + " and tr.f_orgid = " + this.$login.f.orgid
463
+ } else {
464
+ args.condition = `${args.condition}` + this.orgCondtionStr
465
+ }
466
+ this.condition2 = args.condition
467
+ this.model.search(args.condition, args.model)
468
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
469
+ console.log('合计字段', this.sumsmodel)
470
+ },
471
+ clear() {
472
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
473
+ this.$refs.paged.$refs.cri.model[key] = []
474
+ })
475
+ },
476
+ hidden() {
477
+ this.criteriaShow = !this.criteriaShow
478
+ },
479
+ getRes(obj) {
480
+ this.orgCondtionStr = obj
481
+ },
482
+ stamp() {
483
+ this.all = false
484
+ //默认选择要打印的列
485
+ this.modelval = defaultPrint.config
486
+ this.fields = this.getfield
487
+ console.log('所有打印字段', this.fields)
488
+ this.printshow = true
489
+ this.put()
490
+ },
491
+ put() {
492
+ // 对Modelval进行排序
493
+ this.sortModelval()
494
+ this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
495
+ for (let key of this.modelval) {
496
+ this.thead += '<th>' + this.fields[key] + '</th>'
497
+ }
498
+ this.thead += '</tr>'
499
+ },
500
+ print() {
501
+ this.$refs.print.PrintAsFile()
502
+ this.printshow = false
503
+ },
504
+ close() {
505
+ this.printshow = false
506
+ },
507
+ // 对选择的列进行排序
508
+ sortModelval() {
509
+ let sortModel = []
510
+ Object.keys(this.fields).forEach((key) => {
511
+ if (this.modelval.includes(key)) {
512
+ sortModel.push(key)
513
+ }
514
+ })
515
+ this.modelval = sortModel
516
+ console.log('选择的打印的字段', this.modelval)
517
+ },
518
+ dblclick(row, index) {
519
+ console.log('双击之后数据', row, index)
520
+ this.userdetail.show = true
521
+ this.userdetail.f_userinfo_code = row.f_userinfo_code
522
+ this.userdetail.f_filialeids = row.f_filialeids
523
+ },
524
+ sort (field, rule) {
525
+ // 将所有排序方式设为不排序,实现相互排斥
526
+ for (let key in this.orderFields) {
527
+ if (key === field) {
528
+ this.orderFields[key] = rule
529
+ } else {
530
+ this.orderFields[key] = 'no'
531
+ }
532
+ }
533
+ // 如果新规则不排序,还原为默认排序
534
+ if (rule === 'no') {
535
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
536
+ } else {
537
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
538
+ }
539
+
540
+ this.search()
541
+ }
542
+ },
543
+
544
+ watch: {
545
+ 'all'(val) {
546
+ if (val) {
547
+ this.modelval = this.bodyData
548
+ } else {
549
+ this.modelval = defaultPrint.config
550
+ this.put()
551
+ }
552
+ },
553
+ 'modelval.length'() {
554
+ this.put()
555
+ },
556
+ sumsmodel:{
557
+ handler: function(val) {
558
+ this.getotherfooter();
559
+ },
560
+ deep: true
561
+ },
562
+ 'orgCondtionStr'(val) {
563
+ let res = val.match(/'(.*?)'/)
564
+ console.log('正则提取:',res && res[1])
565
+ if (res) {
566
+ this.f_filialeid = res[1]
567
+ if(res.input !=null){
568
+ let resorgid = res.input.substring(res.input.indexOf("'"));
569
+ if(resorgid!= null && resorgid!=''){
570
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
571
+ // resorgid = resorgid.replaceAll("'","");
572
+ resorgid = resorgid.replace(/'/g,"");
573
+ this.allorgid = resorgid.split(",")
574
+ }
575
+ }
576
+ this.updateParams()
577
+ }
578
+ },
579
+ },
580
+ computed: {
581
+ // defaultexport() {
582
+ // return exportConfig.chargeexportConfig
583
+ // },
584
+ authArr () {
585
+ return this.$login.r ? this.$login.r : []
586
+ },
587
+
588
+ getCondition() {
589
+ return {
590
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
591
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
592
+ condition: this.condition2,
593
+ orderitem:this.orderitem,
594
+ f_insideorgid:this.f_filialeid
595
+ }
596
+ },
597
+ getfield() {
598
+ let data = {}
599
+ this.bodyData.forEach((value, index) => {
600
+ data[this.bodyData[index]] = this.headData[index]
601
+ })
602
+ //合计字段打印
603
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
604
+ if (this.sumsmodel) {
605
+ Object.keys(this.sumsmodel).forEach((key) => {
606
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
607
+ })
608
+ } else {
609
+ this.tfoot += '暂无'
610
+ }
611
+ this.tfoot += '</th></tr>'
612
+ return data
613
+ },
614
+ getExportField() {
615
+ return exportConfig.qnAqzzYsmx
616
+ },
617
+ inputtor () {
618
+ // 获取抄表员
619
+ console.log('获取抄表员', this.$login.f)
620
+ let rs = []
621
+ if (this.$login.f.f_gasman.length > 0) {
622
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
623
+ let temp = {
624
+ label: this.$login.f.f_gasman[i].name,
625
+ value: this.$login.f.f_gasman[i].name
626
+ }
627
+ rs.push(temp)
628
+ }
629
+ }
630
+
631
+ return [{label: '全部', value: ''}, ...rs]
632
+ },
633
+ userstates() {
634
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
635
+ },
636
+ usertypes () {
637
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
638
+ },
639
+ addressstate() {
640
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
641
+ },
642
+
643
+ }
644
+ }
645
+ </script>
646
+ <style>
647
+ .back-red{ /* 红色背景 */
648
+ background-color: #F6C6CE;
649
+ }
650
+ .back-blue{ /* 蓝色背景 */
651
+
652
+ }
653
+ </style>