manage-client 3.1.8-ls → 3.1.9-ls

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.
@@ -1,196 +1,196 @@
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" 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 form-group" >
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
- <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
28
- </div>
29
- <div class="span" style = "float:right;">
30
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
31
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
32
- <report-excel id='gasprice'></report-excel>
33
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
34
- 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
35
- </div>
36
- <div class="row" v-show="$parent.$parent.criteriaShow">
37
- <div class="col-sm-2 form-group">
38
- <label class="font_normal_body">用户类型</label>
39
- <v-select :value.sync="$parent.$parent.f_user_type"
40
- v-model="$parent.$parent.f_user_type"
41
- :options='$parent.$parent.user_type' placeholder='请选择'
42
- condition="f_user_type = '{}'"
43
- close-on-select></v-select>
44
- </div>
45
- </div>
46
- </div>
47
- </criteria>
48
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
49
- <table class='tableprint' style="margin: 0px auto">
50
- <thead>
51
- <tr>
52
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
53
- <h3 style="text-align: center">收费结账报表</h3>
54
- </th>
55
- </tr>
56
- <tr>
57
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
58
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
59
- 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
60
- <!--打印时间:{{{$parent.printTime}}}-->
61
- 打印时间:{{$parent.printTime}}
62
- <!--收费员:{{// $parent.operatorname}}-->
63
- </th>
64
- </tr>
65
- <tr>
66
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
67
- <div>
68
- <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
69
- <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
70
- <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
71
- </div>
72
- </th>
73
- </tr>
74
- </thead>
75
- <tr>
76
- <td :colspan='$parent.spans' class="noborder">
77
- {{{ model.data.substring(26,model.data.length-8) }}}
78
- </td>
79
- </tr>
80
- <tfoot>
81
- <tr style="text-align: left">
82
- <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
83
- <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
84
- <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
85
- </tr>
86
- </tfoot>
87
- </table>
88
- {{{ $parent.reportStr}}}
89
- </div>
90
- </criteria-paged>
91
- </div>
92
- </template>
93
-
94
- <script>
95
- import { DataModel } from 'vue-client'
96
- import co from 'co'
97
-
98
- export default {
99
- title: '收费结账报表',
100
- props: ['data'],
101
- data () {
102
- return {
103
- printTime: this.$login.toStandardTimeString(),
104
- depresid: [],
105
- userresid: [],
106
- f_orgid: this.$login.f.orgid,
107
- f_depid: this.$login.f.depids,
108
- // f_operatorid: this.$login.f.id,
109
- operatorid: [],
110
- depid: [],
111
- orgname: '',
112
- depname: '',
113
- criteriaShow: false,
114
- operatorname: '',
115
- orgCondtionStr: '1=1',
116
- f_user_type: '',
117
- f_state:['有效'],
118
- model: new DataModel('rs/report/getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
119
- f_orgid: 'this.model.f_orgid'}),
120
- reportStr: null,
121
- resshow:['company','department','operator'],
122
- spans: 0,
123
- initres: {
124
- org: [this.$login.f.orgid],
125
- dep: [],
126
- user: []
127
- }
128
- }
129
- },
130
- ready () {
131
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
132
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
133
- console.log(this.$login.f)
134
- },
135
- methods: {
136
- searchData () {
137
- this.$refs.paged.$refs.criteria.search()
138
- },
139
- selfSearch (args) {
140
- this.printTime = this.$login.toStandardTimeString()
141
- let orgcondition = '1=1'
142
- let orgstr = this.orgCondtionStr
143
- orgcondition = orgcondition + orgstr
144
- if(this.f_user_type && this.f_user_type[0]) {
145
- orgcondition += ` and f_user_type = '${ this.f_user_type} '`
146
- }
147
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
148
- this.$refs.paged.search(args)
149
- },
150
-
151
- hidden() {
152
- this.criteriaShow = !this.criteriaShow
153
- },
154
- getRes (condition, obj) {
155
- this.orgCondtionStr = condition
156
- this.orgname = obj.orgnames[0]
157
- this.depname = obj.depnames[0]
158
- this.operatorname = obj.operatornames[0]
159
- },
160
- getdep (obj, val) {
161
- this.depname = val[0]
162
- this.userresid = obj
163
- this.f_depid = obj
164
- },
165
- getuser ( obj, val) {
166
- this.operatorname = val[0]
167
- this.f_operatorid = obj
168
- }
169
- },
170
- watch: {
171
- 'model.data' (val) {
172
- let len=0
173
- let a=val.split('</tr>')
174
- for(let i=0;i<a.length;i++){
175
- if(a[i].split('</td>').length-1>len){
176
- len=a[i].split('</td>').length-1
177
- }
178
- }
179
- this.spans = len
180
- }
181
- },
182
- computed: {
183
- charge_state() {
184
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
185
- },
186
- user_type () {
187
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
188
- }
189
- }
190
- }
191
- </script>
192
- <style scoped>
193
- .noborder{
194
- border: none;
195
- }
196
- </style>
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" 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 form-group" >
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
+ <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
28
+ </div>
29
+ <div class="span" style = "float:right;">
30
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
31
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
32
+ <report-excel id='gasprice'></report-excel>
33
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
34
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
35
+ </div>
36
+ <div class="row" v-show="$parent.$parent.criteriaShow">
37
+ <div class="col-sm-2 form-group">
38
+ <label class="font_normal_body">用户类型</label>
39
+ <v-select :value.sync="$parent.$parent.f_user_type"
40
+ v-model="$parent.$parent.f_user_type"
41
+ :options='$parent.$parent.user_type' placeholder='请选择'
42
+ condition="f_user_type = '{}'"
43
+ close-on-select></v-select>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </criteria>
48
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
49
+ <table class='tableprint' style="margin: 0px auto">
50
+ <thead>
51
+ <tr>
52
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
53
+ <h3 style="text-align: center">收费结账报表</h3>
54
+ </th>
55
+ </tr>
56
+ <tr>
57
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
58
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
59
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
60
+ <!--打印时间:{{{$parent.printTime}}}-->
61
+ 打印时间:{{$parent.printTime}}
62
+ <!--收费员:{{// $parent.operatorname}}-->
63
+ </th>
64
+ </tr>
65
+ <tr>
66
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
67
+ <div>
68
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
69
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
70
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
71
+ </div>
72
+ </th>
73
+ </tr>
74
+ </thead>
75
+ <tr>
76
+ <td :colspan='$parent.spans' class="noborder">
77
+ {{{ model.data.substring(26,model.data.length-8) }}}
78
+ </td>
79
+ </tr>
80
+ <tfoot>
81
+ <tr style="text-align: left">
82
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
83
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
84
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
85
+ </tr>
86
+ </tfoot>
87
+ </table>
88
+ {{{ $parent.reportStr}}}
89
+ </div>
90
+ </criteria-paged>
91
+ </div>
92
+ </template>
93
+
94
+ <script>
95
+ import { DataModel } from 'vue-client'
96
+ import co from 'co'
97
+
98
+ export default {
99
+ title: '收费结账报表',
100
+ props: ['data'],
101
+ data () {
102
+ return {
103
+ printTime: this.$login.toStandardTimeString(),
104
+ depresid: [],
105
+ userresid: [],
106
+ f_orgid: this.$login.f.orgid,
107
+ f_depid: this.$login.f.depids,
108
+ // f_operatorid: this.$login.f.id,
109
+ operatorid: [],
110
+ depid: [],
111
+ orgname: '',
112
+ depname: '',
113
+ criteriaShow: false,
114
+ operatorname: '',
115
+ orgCondtionStr: '1=1',
116
+ f_user_type: '',
117
+ f_state:['有效'],
118
+ model: new DataModel('rs/report/getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
119
+ f_orgid: 'this.model.f_orgid'}),
120
+ reportStr: null,
121
+ resshow:['company','department','operator'],
122
+ spans: 0,
123
+ initres: {
124
+ org: [this.$login.f.orgid],
125
+ dep: [],
126
+ user: []
127
+ }
128
+ }
129
+ },
130
+ ready () {
131
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
132
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
133
+ console.log(this.$login.f)
134
+ },
135
+ methods: {
136
+ searchData () {
137
+ this.$refs.paged.$refs.criteria.search()
138
+ },
139
+ selfSearch (args) {
140
+ this.printTime = this.$login.toStandardTimeString()
141
+ let orgcondition = '1=1'
142
+ let orgstr = this.orgCondtionStr
143
+ orgcondition = orgcondition + orgstr
144
+ if(this.f_user_type && this.f_user_type[0]) {
145
+ orgcondition += ` and f_user_type = '${ this.f_user_type} '`
146
+ }
147
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
148
+ this.$refs.paged.search(args)
149
+ },
150
+
151
+ hidden() {
152
+ this.criteriaShow = !this.criteriaShow
153
+ },
154
+ getRes (condition, obj) {
155
+ this.orgCondtionStr = condition
156
+ this.orgname = obj.orgnames[0]
157
+ this.depname = obj.depnames[0]
158
+ this.operatorname = obj.operatornames[0]
159
+ },
160
+ getdep (obj, val) {
161
+ this.depname = val[0]
162
+ this.userresid = obj
163
+ this.f_depid = obj
164
+ },
165
+ getuser ( obj, val) {
166
+ this.operatorname = val[0]
167
+ this.f_operatorid = obj
168
+ }
169
+ },
170
+ watch: {
171
+ 'model.data' (val) {
172
+ let len=0
173
+ let a=val.split('</tr>')
174
+ for(let i=0;i<a.length;i++){
175
+ if(a[i].split('</td>').length-1>len){
176
+ len=a[i].split('</td>').length-1
177
+ }
178
+ }
179
+ this.spans = len
180
+ }
181
+ },
182
+ computed: {
183
+ charge_state() {
184
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
185
+ },
186
+ user_type () {
187
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
188
+ }
189
+ }
190
+ }
191
+ </script>
192
+ <style scoped>
193
+ .noborder{
194
+ border: none;
195
+ }
196
+ </style>