manage-client 3.2.156 → 3.2.158

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.
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.156",
3
+ "version": "3.2.158",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
7
7
  "test": "test"
8
8
  },
9
- "dependencies": {},
9
+ "dependencies": {
10
+ "swiper": "^5.4.5"
11
+ },
10
12
  "devDependencies": {
11
13
  "axios": "0.15.3",
12
14
  "babel-core": "^6.0.0",
@@ -0,0 +1,493 @@
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
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd 00:00:00'"
15
+ :show-reset-button="true">
16
+ </datepicker>
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label for="endDate" class="font_normal_body">结束日期</label>
20
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
21
+ v-model="model.endDate"
22
+ :value.sync="model.endDate"
23
+ :format="'yyyy-MM-dd 23:59:59'"
24
+ :show-reset-button="true">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
29
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
+ <res-select restype='department'
34
+ @res-select="$parent.$parent.getdep"
35
+ :parentresid="$parent.$parent.depresid"
36
+ :initresid='$parent.$parent.depid'>
37
+ </res-select>
38
+
39
+ </div>
40
+ <div class="col-sm-2 form-group">
41
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
42
+ <res-select restype='user'
43
+ is-mul="false"
44
+ @res-select="$parent.$parent.getuser"
45
+ :parentresid="$parent.$parent.userresid"
46
+ :initresid='$parent.$parent.operatorid'>
47
+ </res-select>
48
+ </div>
49
+ <div class="span" style="float:right;">
50
+ <button class="button_search button_spacing" @click="search()">查询</button>
51
+
52
+ <export-excel :data="$parent.$parent.getCondition"
53
+ :field="$parent.$parent.getfield"
54
+ :footer="$parent.$parent.footer"
55
+ :header="$parent.$parent.other"
56
+ sqlurl="rs/logic/exportfile"
57
+ sql-name="chaostyle"
58
+ template-name='抄表划价查询明细'
59
+ :choose-col="true"></export-excel>
60
+ <print-data-self :model="$parent.model" :field="$parent.$parent.getfield"
61
+ :defaultfield="$parent.$parent.defaultfield" printName="营业厅明细"
62
+ :sumsmodel="$parent.$parent.sumsmodel" :sum-field="$parent.$parent.sumField" :page-sum="$parent.$parent.pageSum"
63
+ :start-date="$parent.$parent.startDate" :end-date="$parent.$parent.endDate"
64
+ ></print-data-self>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </criteria>
69
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
70
+ <template partial='head'>
71
+ <tr>
72
+ <th>
73
+ <nobr>序号</nobr>
74
+ </th>
75
+ <th>
76
+ <nobr>用户号</nobr>
77
+ </th>
78
+ <th>
79
+ <nobr>用户名</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>用户地址</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>起方</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>止方</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>气量</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>单价</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>金额</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>下账状态</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>抄表册</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>抄表员</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>录入员</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>审核人</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>审核日期</nobr>
116
+ </th>
117
+ <th>
118
+ <nobr>抄表状态</nobr>
119
+ </th>
120
+ <th>
121
+ <nobr>表单状态</nobr>
122
+ </th>
123
+ <th>
124
+ <nobr>客户类型</nobr>
125
+ </th>
126
+ <th>
127
+ <nobr>用气性质</nobr>
128
+ </th>
129
+ <th>
130
+ <nobr>气价编号</nobr>
131
+ </th>
132
+
133
+ <th>
134
+ <nobr>气价名称</nobr>
135
+ </th>
136
+
137
+ <th>
138
+ <nobr>气表分类</nobr>
139
+ </th>
140
+
141
+ <th>
142
+ <nobr>截止日期</nobr>
143
+ </th>
144
+
145
+ <th>
146
+ <nobr>备注</nobr>
147
+ </th>
148
+ <th>
149
+ <nobr>气表型号</nobr>
150
+ </th>
151
+ <th>
152
+ <nobr>结算方式</nobr>
153
+ </th>
154
+ </tr>
155
+ </template>
156
+ <template partial='body'>
157
+ <td style="text-align:center">
158
+ <nobr>{{$index+1}}</nobr>
159
+ </td>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.f_userinfo_code}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.f_user_name}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.f_address}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.f_last_tablebase}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_tablebase}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.gas}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_price}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_money}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{row.f_accounts_state}}</nobr>
186
+ </td>
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.f_book_name}}</nobr>
189
+ </td>
190
+ <td style="text-align: center;">
191
+ <nobr>{{row.f_inputtor}}</nobr>
192
+ </td>
193
+ <td style="text-align: center;">
194
+ <nobr>{{row.f_operatorr}}</nobr>
195
+ </td>
196
+ <td style="text-align: center;">
197
+ <nobr>{{row.f_audit_person}}</nobr>
198
+ </td>
199
+ <td style="text-align: center;">
200
+ <nobr>{{row.f_audit_date}}</nobr>
201
+ </td>
202
+ <td style="text-align: center;">
203
+ <nobr>{{row.f_meter_state}}</nobr>
204
+ </td>
205
+ <td style="text-align: center;">
206
+ <nobr>{{row.f_hand_state}}</nobr>
207
+ </td>
208
+ <td style="text-align: center;">
209
+ <nobr>{{row.f_user_type}}</nobr>
210
+ </td>
211
+ <td style="text-align: center;">
212
+ <nobr>{{row.f_gasproperties}}</nobr>
213
+ </td>
214
+ <td style="text-align: center;">
215
+ <nobr>{{row.f_price_id}}</nobr>
216
+ </td>
217
+ <td style="text-align: center;">
218
+ <nobr>{{row.f_price_name}}</nobr>
219
+ </td>
220
+ <td style="text-align: center;">
221
+ <nobr>{{row.f_meter_classify}}</nobr>
222
+ </td>
223
+ <td style="text-align: center;">
224
+ <nobr>{{row.f_accounting_date}}</nobr>
225
+ </td>
226
+ <td style="text-align: center;">
227
+ <nobr>{{row.beizhu}}</nobr>
228
+ </td>
229
+ <td style="text-align: center;">
230
+ <nobr>{{row.f_meter_brand}}</nobr>
231
+ </td>
232
+ <td style="text-align: center;">
233
+ <nobr>{{row.f_calculation}}</nobr>
234
+ </td>
235
+ </template>
236
+ <template partial='foot'></template>
237
+ </data-grid>
238
+ </criteria-paged>
239
+ <table class="table-hover">
240
+ <tr style="position: relative" class="table-bordered">
241
+ <td
242
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold" >
243
+ 报表统计时间
244
+ </td>
245
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-if="startDate==endDate">
246
+ {{startDate}}
247
+ </td>
248
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-else>
249
+ {{startDate+" 至 "+endDate}}
250
+ </td>
251
+ </tr>
252
+ <tr style="position: relative" class="table-bordered">
253
+ <td
254
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
255
+ 汇总信息
256
+ </td>
257
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
258
+ 气量汇总:&emsp;{{sumsmodel.gas.toFixed(2)}}
259
+ </td>
260
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
261
+ 金额汇总:&emsp;{{sumsmodel.f_money.toFixed(2)}}
262
+ </td>
263
+
264
+ </tr>
265
+ </table>
266
+ </div>
267
+ </div>
268
+ </div>
269
+ </template>
270
+ <script>
271
+ import {PagedList, HttpResetClass} from 'vue-client'
272
+ import defaultPrint from '../sale/config/DefaultPrint'
273
+ import exportConfig from '../sale/config/exportConfig'
274
+ import PrintDataSelf from '../sale/common/PrintDataSelf'
275
+
276
+ let readySomething = async function (self) {
277
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
278
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
279
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
280
+ }
281
+ export default {
282
+ title: '营业厅明细报表',
283
+ props: ['data'],
284
+ data() {
285
+ return {
286
+ depresid: [],
287
+ userresid: [],
288
+ f_orgid: this.$login.f.orgid,
289
+ f_depid: this.$login.f.depids,
290
+ f_operatorid: this.$login.f.id,
291
+ operatorid: [],
292
+ depid: [],
293
+ orgname: '',
294
+ depname: [],
295
+ operatorname: '',
296
+ orgCondtionStr: '1=1',
297
+ data: {},
298
+ other:[],
299
+ footer:[],
300
+ model: new PagedList('rs/sql/chaostyle', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'},{
301
+ gas:0,
302
+ f_money:0
303
+ }),
304
+ gasproperties:[],
305
+ show:false,
306
+ rowdata:{},
307
+ residentialArea: [],
308
+ modelval: [],
309
+ startDate:"",
310
+ endDate:"",
311
+ inputtouPerson: [],
312
+ printshow: false,
313
+ all: false,
314
+ fields: {},
315
+ thead: '',
316
+ tfoot: '',
317
+
318
+ // 下拉框
319
+
320
+ //合计数据
321
+ sumsmodel: {},
322
+ sumField: {
323
+ 'gas': '气量汇总', 'f_money': '金额汇总'
324
+ },
325
+ pageSum: {
326
+ 'gas': '0.00',
327
+ 'f_money': '0.00'
328
+ },
329
+ defaultfield: [],
330
+ config: {
331
+ defaultPrint: ['f_userinfo_code', 'f_user_name']
332
+ },
333
+ batchmoneyShow:false
334
+ }
335
+ },
336
+ ready() {
337
+ readySomething(this).then(() => {
338
+ this.$emit('ready')
339
+ }).catch((error) => {
340
+ this.$emit('error', error)
341
+ })
342
+ },
343
+ methods: {
344
+ getotherfooter(){
345
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
346
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
347
+ this.other=[];
348
+ this.footer=[];
349
+ let exportdata = this.getCondition;
350
+ let otherInData=[];
351
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
352
+ let footerData=[],exportfield=this.getfield;
353
+ footerData.push("合计");
354
+ let self =this;
355
+ for(var field in self.sumsmodel){
356
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
357
+ }
358
+ this.footer.push(footerData);
359
+ this.other.push(otherInData);
360
+ },
361
+ search(){
362
+ this.$refs.paged.$refs.cri.search()
363
+ },
364
+ selfSearch(args) {
365
+ let orgcondition = ' f_orgid in (' + this.f_orgid + ')'
366
+ if (this.f_depid[0]) {
367
+ orgcondition += " and f_depid in("+this.f_depid.toString()+')'
368
+ }
369
+ if(this.f_operatorid[0]) {
370
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
371
+ }
372
+ this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
373
+ this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
374
+ this.orgCondtionStr=orgcondition
375
+ this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
376
+ this.model.search(args.f_orgid, args.model)
377
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
378
+ },
379
+ getRes (obj) {
380
+ this.orgname = obj.res[0]
381
+ this.depresid = obj.resids
382
+ this.f_orgid = obj.resids
383
+ },
384
+ getdep (obj, val) {
385
+ this.depname = val
386
+ this.userresid = obj
387
+ this.f_depid = obj
388
+ },
389
+ getuser ( obj, val) {
390
+ this.operatorname = val[0]
391
+ this.f_operatorid = obj
392
+ },
393
+ stamp() {
394
+ this.all = false
395
+ //默认选择要打印的列
396
+ this.modelval = defaultPrint.config
397
+ this.fields = this.getfield
398
+ console.log('所有打印字段', this.fields)
399
+ this.printshow = true
400
+ this.put()
401
+ },
402
+ put() {
403
+ // 对Modelval进行排序
404
+ this.sortModelval()
405
+ this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
406
+ for (let key of this.modelval) {
407
+ this.thead += '<th>' + this.fields[key] + '</th>'
408
+ }
409
+ this.thead += '</tr>'
410
+ },
411
+ print() {
412
+ this.$refs.print.PrintAsFile()
413
+ this.printshow = false
414
+ },
415
+ dealmsg(val) {
416
+ console.log('---------------dealmsg')
417
+ this.rowdata=val
418
+ this.show=true
419
+ val.model = this.model.model
420
+ this.$dispatch('deal-msg', val)
421
+ },
422
+ close() {
423
+ this.printshow = false
424
+ this.all = false
425
+ },
426
+ // 对选择的列进行排序
427
+ sortModelval() {
428
+ let sortModel = []
429
+ Object.keys(this.fields).forEach((key) => {
430
+ if (this.modelval.includes(key)) {
431
+ sortModel.push(key)
432
+ }
433
+ })
434
+ this.modelval = sortModel
435
+ console.log('选择的打印的字段', this.modelval)
436
+ },
437
+ userTypeChange () {
438
+ this.gasproperties=[]
439
+ if(this.$refs.paged.$refs.criteria.model !==null) {
440
+ this.$refs.paged.$refs.criteria.model.f_gasproperties=''
441
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
442
+ }
443
+ else{
444
+ this.gasproperties =[{label: '全部', value: ''}]
445
+ }
446
+ },
447
+ },
448
+ watch: {
449
+ 'all'(val) {
450
+ if (val) {
451
+ this.modelval = this.bodyData
452
+ } else {
453
+ this.modelval = defaultPrint.config
454
+ this.put()
455
+ }
456
+ },
457
+ 'modelval.length'() {
458
+ this.put()
459
+ },
460
+ sumsmodel:{
461
+ handler: function(val) {
462
+ this.getotherfooter();
463
+ },
464
+ deep: true
465
+ }
466
+ },
467
+ computed: {
468
+ getCondition() {
469
+ return {
470
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
471
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
472
+ f_orgid: this.orgCondtionStr
473
+
474
+ }
475
+
476
+ },
477
+ getfield() {
478
+ return exportConfig.chaostyle
479
+ },
480
+ whetherpaies () {
481
+ return [
482
+ {label: '全部', value: ''},
483
+ {label: '已缴费', value: '是'},
484
+ {label: '未缴费', value: '否'}
485
+ ]
486
+ },
487
+ usertypes() {
488
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
489
+ }
490
+
491
+ }
492
+ }
493
+ </script>
@@ -0,0 +1,176 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 98%">
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
6
+ <div class="row">
7
+ <div class="col-sm-2" >
8
+ <label class="font_normal_body" for="startDate">开始日期:</label>
9
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
10
+ v-model="model.startDate"
11
+ :value.sync="model.startDate"
12
+ :disabled-days-of-Week="[]"
13
+ :format="'yyyy-MM-dd HH:mm:ss'"
14
+ :show-reset-button="reset">
15
+ </datepicker>
16
+ </div>
17
+ <div class="col-sm-2" >
18
+ <label class="font_normal_body" for="endDate">结束日期:</label>
19
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
20
+ v-model="model.endDate"
21
+ :value.sync="model.endDate"
22
+ :disabled-days-of-Week="[]"
23
+ :format="'yyyy-MM-dd HH:mm:ss'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2">
28
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
29
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
30
+ </div>
31
+ <div class="col-sm-2">
32
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
+ <res-select restype='department'
34
+ is-mul="false"
35
+ @res-select="$parent.$parent.getdep"
36
+ :parentresid="$parent.$parent.depresid"
37
+ :initresid='$parent.$parent.depid'>
38
+ </res-select>
39
+
40
+ </div>
41
+ <div class="col-sm-2">
42
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
43
+ <res-select restype='user'
44
+ is-mul="false"
45
+ @res-select="$parent.$parent.getuser"
46
+ :parentresid="$parent.$parent.userresid"
47
+ :initresid='$parent.$parent.operatorid'>
48
+ </res-select>
49
+ </div>
50
+ </div>
51
+ <div class="span" style = "float:right;">
52
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
53
+ <report-print id='gasprice' top='
54
+ ' left='0' width='100%' height='100%'></report-print>
55
+ <report-excel id='gasprice'></report-excel>
56
+ </div>
57
+ </div>
58
+ </criteria>
59
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
60
+ <table class='tableprint' style="margin: 0px auto">
61
+ <thead>
62
+ <tr>
63
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
64
+ <h3 style="text-align: center">气价自动划价表</h3>
65
+ </th>
66
+ </tr>
67
+ <tr>
68
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
69
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
70
+ 结束时间:{{ model.model.endDate }}<br/>
71
+ 打印时间:{{{$parent.printTime}}}
72
+ </th>
73
+ </tr>
74
+ <tr>
75
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
76
+ <div>
77
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
78
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
79
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
80
+ </div>
81
+ </th>
82
+ </tr>
83
+ </thead>
84
+ <tr>
85
+ <td :colspan='$parent.spans' class="noborder">
86
+ {{{ model.data.substring(26,model.data.length-8) }}}
87
+ </td>
88
+ </tr>
89
+ <tfoot>
90
+ <tr style="text-align: left">
91
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
92
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
93
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
94
+ </tr>
95
+ </tfoot>
96
+ </table>
97
+ </div>
98
+ </criteria-paged>
99
+ </div>
100
+ </template>
101
+
102
+ <script>
103
+ import { DataModel } from 'vue-client'
104
+ import co from 'co'
105
+ export default {
106
+ title: '气价自动划价表',
107
+ props: ['data'],
108
+ data () {
109
+ return {
110
+ printTime: this.$login.toStandardTimeString(),
111
+ depresid: [],
112
+ userresid: [],
113
+ f_orgid: this.$login.f.orgid,
114
+ f_depid: this.$login.f.depids,
115
+ f_operatorid: this.$login.f.id,
116
+ operatorid: [],
117
+ depid: [],
118
+ orgname: '',
119
+ depname: '',
120
+ operatorname: '',
121
+ orgCondtionStr: '1=1',
122
+ model: new DataModel('rs/report/charge_handfee', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
123
+ f_orgid: 'this.model.f_orgid'}),
124
+ reportStr: null,
125
+ spans: 0,
126
+ }
127
+ },
128
+ ready () {
129
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
130
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
131
+ },
132
+ methods: {
133
+ searchData () {
134
+ this.$refs.paged.$refs.criteria.search()
135
+ },
136
+ selfSearch (args) {
137
+ this.printTime = this.$login.toStandardTimeString()
138
+ let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
139
+ if (this.f_depid[0]) {
140
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
141
+ }
142
+ if(this.f_operatorid[0]) {
143
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
144
+ }
145
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
146
+ this.$refs.paged.search(args)
147
+ },
148
+ getRes (obj) {
149
+ this.orgname = obj.res[0]
150
+ this.depresid = obj.resids
151
+ this.f_orgid = obj.resids
152
+ },
153
+ getdep (obj, val) {
154
+ this.depname = val[0]
155
+ this.userresid = obj
156
+ this.f_depid = obj
157
+ },
158
+ getuser ( obj, val) {
159
+ this.operatorname = val[0]
160
+ this.f_operatorid = obj
161
+ }
162
+ },
163
+ watch: {
164
+ 'model.data' (val) {
165
+ this.spans = val.split('</tr>').map(item => item.split('</td>').length-1).reduce((x, y) => x > y ? x : y)
166
+ }
167
+ },
168
+ computed: {
169
+ }
170
+ }
171
+ </script>
172
+ <style scoped>
173
+ .noborder{
174
+ border: none;
175
+ }
176
+ </style>