manage-client 3.3.230 → 3.3.232-kl

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,208 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 100%">
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 form-group" >
8
+ <label class="font_normal_body" for="startDate">开始日期:</label>
9
+ <datepicker id="startDate"
10
+ placeholder="开始日期"
11
+ style="width: 60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :disabled-days-of-Week="[]"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="reset">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group" >
20
+ <label class="font_normal_body" for="endDate">结束日期:</label>
21
+ <datepicker id="endDate"
22
+ placeholder="结束日期"
23
+ style="width: 60%"
24
+ v-model="model.endDate"
25
+ :value.sync="model.endDate"
26
+ :disabled-days-of-Week="[]"
27
+ :format="'yyyy-MM-dd HH:mm:ss'"
28
+ :show-reset-button="reset">
29
+ </datepicker>
30
+ </div>
31
+ <res-select-group :show-component="$parent.$parent.resshow"
32
+ :selectin="true"
33
+ :initres="$parent.$parent.initres"
34
+ :cascade =true
35
+ @re-res="$parent.$parent.getRes"
36
+ v-ref:sel>
37
+ </res-select-group>
38
+ </div>
39
+ <div class="span" style = "float:right;">
40
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
41
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
42
+ <report-excel id='gasprice'></report-excel>
43
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
44
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
45
+ </div>
46
+ <div class="row" v-show="$parent.$parent.criteriaShow">
47
+ <div class="col-sm-2 form-group">
48
+ <label class="font_normal_body">用气性质</label>
49
+ <v-select :value.sync="$parent.$parent.f_gasproperties"
50
+ v-model="$parent.$parent.f_gasproperties"
51
+ :options='$parent.$parent.Properties'
52
+ :value-single="true"
53
+ placeholder='请选择'
54
+ close-on-select></v-select>
55
+ </div>
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 }}&nbsp;&nbsp;<br/>
71
+ <!--打印时间:{{{$parent.printTime}}}-->
72
+ 打印时间:{{$parent.printTime}}
73
+ <!--收费员:{{// $parent.operatorname}}-->
74
+ </th>
75
+ </tr>
76
+ <tr>
77
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
78
+ <div>
79
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
80
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
81
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
82
+ </div>
83
+ </th>
84
+ </tr>
85
+ </thead>
86
+ <tr>
87
+ <td :colspan='$parent.spans' class="noborder">
88
+ {{{ model.data.substring(26,model.data.length-8) }}}
89
+ </td>
90
+ </tr>
91
+ <tfoot>
92
+ <tr style="text-align: left">
93
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
94
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
95
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
96
+ </tr>
97
+ </tfoot>
98
+ </table>
99
+ {{{ $parent.reportStr}}}
100
+ </div>
101
+ </criteria-paged>
102
+ </div>
103
+ </template>
104
+
105
+ <script>
106
+ import { DataModel } from 'vue-client'
107
+
108
+ export default {
109
+ title: '收费结账报表',
110
+ props: ['data'],
111
+ data () {
112
+ return {
113
+ printTime: this.$login.toStandardTimeString(),
114
+ depresid: [],
115
+ userresid: [],
116
+ f_orgid: this.$login.f.orgid,
117
+ f_depid: this.$login.f.depids,
118
+ // f_operatorid: this.$login.f.id,
119
+ operatorid: [],
120
+ depid: [],
121
+ orgname: '',
122
+ depname: '',
123
+ criteriaShow: false,
124
+ operatorname: '',
125
+ orgCondtionStr: '1=1',
126
+ f_gasproperties: '',
127
+ model: new DataModel('api/af-revenue/report/getGasSummary',
128
+ {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'}
129
+ ),
130
+ reportStr: null,
131
+ resshow: ['company', 'department', 'operator'],
132
+ spans: 0,
133
+ initres: {
134
+ org: [this.$login.f.orgid],
135
+ dep: [],
136
+ user: []
137
+ }
138
+ }
139
+ },
140
+ ready () {
141
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
142
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
143
+ console.log(this.$login.f)
144
+ },
145
+ methods: {
146
+ searchData () {
147
+ this.$refs.paged.$refs.criteria.search()
148
+ },
149
+ selfSearch (args) {
150
+ this.printTime = this.$login.toStandardTimeString()
151
+ let orgcondition = '1=1'
152
+
153
+ let orgstr = this.orgCondtionStr
154
+ orgcondition = orgcondition + orgstr
155
+ console.log('23231312321:', this.f_user_type)
156
+ if (this.f_gasproperties) {
157
+ orgcondition += ` and h.f_gasproperties = '${this.f_gasproperties}'`
158
+ }
159
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
160
+ this.$refs.paged.search(args)
161
+ },
162
+ hidden () {
163
+ this.criteriaShow = !this.criteriaShow
164
+ },
165
+ getRes (condition, obj) {
166
+ this.orgCondtionStr = condition
167
+ this.orgCondtionStr = this.orgCondtionStr.replace('f_orgid', 'h.f_orgid')
168
+ this.orgCondtionStr = this.orgCondtionStr.replace('f_depid', 'h.f_depid')
169
+ this.orgCondtionStr = this.orgCondtionStr.replace('f_opertorid', 'h.f_opertorid')
170
+ this.orgname = obj.orgnames[0]
171
+ this.depname = obj.depnames[0]
172
+ console.log(obj, '========')
173
+ this.operatorname = obj.operatornames[0]
174
+ },
175
+ getdep (obj, val) {
176
+ this.depname = val[0]
177
+ this.userresid = obj
178
+ this.f_depid = obj
179
+ },
180
+ getuser (obj, val) {
181
+ this.operatorname = val[0]
182
+ this.f_operatorid = obj
183
+ }
184
+ },
185
+ watch: {
186
+ 'model.data' (val) {
187
+ let len = 0
188
+ let a = val.split('</tr>')
189
+ for (let i = 0; i < a.length; i++) {
190
+ if (a[i].split('</td>').length - 1 > len) {
191
+ len = a[i].split('</td>').length - 1
192
+ }
193
+ }
194
+ this.spans = len
195
+ }
196
+ },
197
+ computed: {
198
+ Properties () {
199
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
200
+ }
201
+ }
202
+ }
203
+ </script>
204
+ <style scoped>
205
+ .noborder{
206
+ border: none;
207
+ }
208
+ </style>
@@ -309,6 +309,9 @@
309
309
  <th style="text-align:center" >
310
310
  <nobr>组织机构</nobr>
311
311
  </th>
312
+ <th style="text-align:center" >
313
+ <nobr>部门</nobr>
314
+ </th>
312
315
 
313
316
  </tr>
314
317
 
@@ -349,6 +352,9 @@
349
352
  <td style="text-align:center">
350
353
  <nobr>{{row.f_orgname}}</nobr>
351
354
  </td>
355
+ <td style="text-align:center">
356
+ <nobr>{{row.f_depname}}</nobr>
357
+ </td>
352
358
 
353
359
  </template>
354
360
  </data-grid>
@@ -418,7 +424,8 @@
418
424
  "sldays":"累计失联天数",
419
425
  "new_days":"最新失联天数",
420
426
  "f_meter_brand":"气表厂家",
421
- "f_orgname":"组织机构"},
427
+ "f_orgname":"组织机构",
428
+ "f_depname":"部门"},
422
429
  reportStr: null,
423
430
  show: false,
424
431
  showdetail:false,
@@ -596,13 +603,9 @@
596
603
  this.userresid = obj
597
604
  this.queryData.f_depid = obj
598
605
  console.log(this.queryData.f_depid)
599
-
600
606
  if (obj.length > 0) {
601
607
  this.orgCondtionStr += " and f_depid in " + plugin.convertToIn(obj)
602
- } else {
603
- this.orgCondtionStr += " and f_depid = " + this.$login.f.depid
604
608
  }
605
-
606
609
  if (this.depresid && this.depresid.length > 0) {
607
610
  this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(this.depresid) + this.orgCondtionStr
608
611
  } else {
@@ -271,6 +271,9 @@
271
271
  <th style="text-align:center" >
272
272
  <nobr>组织机构</nobr>
273
273
  </th>
274
+ <th style="text-align:center" >
275
+ <nobr>部门</nobr>
276
+ </th>
274
277
  </tr>
275
278
 
276
279
  </template>
@@ -312,6 +315,9 @@
312
315
  <td style="text-align:center">
313
316
  <nobr>{{row.f_orgname}}</nobr>
314
317
  </td>
318
+ <td style="text-align:center">
319
+ <nobr>{{row.f_depname}}</nobr>
320
+ </td>
315
321
  <!--<td style="text-align:center">{{row.new_days}}</td>-->
316
322
  <!--<td style="text-align:center">{{row.f_state}}</td>-->
317
323
 
@@ -378,7 +384,7 @@
378
384
  "lastinsertdate":"最后上报日期",
379
385
  "f_meter_base":"最后表读数",
380
386
  "slday":"失联天数",
381
- "f_meter_brand":"气表厂家","f_orgname":"组织机构"},
387
+ "f_meter_brand":"气表厂家","f_orgname":"组织机构","f_depname":"部门"},
382
388
  reportStr: null,
383
389
  show: false,
384
390
  showdetail:false,
@@ -530,13 +536,9 @@
530
536
  this.userresid = obj
531
537
  this.queryData.f_depid = obj
532
538
  console.log(this.queryData.f_depid)
533
-
534
539
  if (obj.length > 0) {
535
540
  this.orgCondtionStr += " and f_depid in " + plugin.convertToIn(obj)
536
- } else {
537
- this.orgCondtionStr += " and f_depid = " + this.$login.f.depid
538
541
  }
539
-
540
542
  if (this.depresid && this.depresid.length > 0) {
541
543
  this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(this.depresid) + this.orgCondtionStr
542
544
  } else {