manage-client 3.3.231 → 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>