apply-clients 5.0.35-ezhou-17 → 5.0.35-ezhou-19

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,150 +1,150 @@
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" >
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="form-group col-sm-2">
28
- <label class="col-sm-4 control-label linehhh">组织机构</label>
29
- <div class="col-sm-8">
30
- <right-tree :userid.sync='$parent.$parent.userid' :source.sync='$parent.$parent.source'
31
- @re-res="$parent.$parent.getRes"
32
- v-model="filiale"
33
- ></right-tree>
34
- </div>
35
- </div>
36
- </div>
37
- <div class="span" style = "float:right;">
38
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
39
- <report-print id='gasprice1' top='1cm' left='0' width='100%' height='100%' :preview="true"></report-print>
40
- <report-excel id='gasprice1'></report-excel>
41
- </div>
42
- </div>
43
- </criteria>
44
- <div partial='list' v-el:handcollect id='gasprice1' style="overflow-y: scroll">
45
- <table class='tableprint' style="margin: 0px auto">
46
- <thead>
47
- <tr>
48
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
49
- <h3 style="text-align: center">报建收费报表</h3>
50
- </th>
51
- </tr>
52
- <tr>
53
- <th :colspan='$parent. spans' style="font-weight: normal; text-align: center;">
54
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
55
- 结束时间:{{ model.model.endDate }}
56
- + </th>
57
- </tr>
58
- <tr>
59
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
60
- 打印时间:{{{$parent.printTime}}}
61
- </th>
62
- </tr>
63
- <tr>
64
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
65
- <div>
66
- <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
67
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
68
- <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
69
- </div>
70
- </th>
71
- </tr>
72
- </thead>
73
- <tr>
74
- <td :colspan='$parent.spans' class="noborder">
75
- {{{ model.data.substring(26,model.data.length-8) }}}
76
- </td>
77
- </tr>
78
- <tfoot>
79
- </tfoot>
80
- </table>
81
- </div>
82
- </criteria-paged>
83
- </div>
84
- </template>
85
-
86
- <script>
87
- import { DataModel } from 'vue-client'
88
- export default {
89
- title: '报建收费报表',
90
- props: ['data'],
91
- data () {
92
- return {
93
- filialeNameStr: null,
94
- filialeCodeStr: this.$login.f.f_orgids,
95
- printTime: this.$login.toStandardTimeString(),
96
- depresid: [],
97
- userresid: [],
98
- f_orgid: this.$login.f.orgid,
99
- f_depid: this.$login.f.depids,
100
- f_operatorid: this.$login.f.id,
101
- operatorid: [],
102
- depid: [],
103
- orgname: '',
104
- depname: '',
105
- operatorname: '',
106
- f_inputtor: [],
107
- f_user_type: '',
108
- orgCondtionStr: '1=1',
109
- model: new DataModel('rs/report/aonstruction_fee', {startDate: 'this.model.startDate', endDate: 'this.model.endDate', filiale: 'this.model.filiale'}),
110
- reportStr: null,
111
- spans: 0,
112
- userid: this.$login.f.id,
113
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`
114
- }
115
- },
116
- ready () {
117
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
118
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
119
- },
120
- methods: {
121
- getRes (obj) {
122
- this.filialeNameStr = obj.res
123
- this.filialeCodeStr = obj.resids
124
- this.$refs.paged.$refs.criteria.model.filiale = obj.res
125
- console.log(this.filialeNameStr)
126
- console.log(this.filialeCodeStr)
127
- },
128
- searchData () {
129
- this.$refs.paged.$refs.criteria.search()
130
- },
131
- selfSearch (args) {
132
- let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
133
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
134
- this.$refs.paged.search(args)
135
- }
136
- },
137
- watch: {
138
- 'model.data' (val) {
139
- this.spans = val.split('</tr>').map(item => item.split('</td>').length-1).reduce((x, y) => x > y ? x : y)
140
- }
141
- },
142
- computed: {
143
- }
144
- }
145
- </script>
146
- <style scoped>
147
- .noborder{
148
- border: none;
149
- }
150
- </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" >
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="form-group col-sm-2">
28
+ <label class="col-sm-4 control-label linehhh">组织机构</label>
29
+ <div class="col-sm-8">
30
+ <right-tree :userid.sync='$parent.$parent.userid' :source.sync='$parent.$parent.source'
31
+ @re-res="$parent.$parent.getRes"
32
+ v-model="filiale"
33
+ ></right-tree>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ <div class="span" style = "float:right;">
38
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
39
+ <report-print id='gasprice1' top='1cm' left='0' width='100%' height='100%' :preview="true"></report-print>
40
+ <report-excel id='gasprice1'></report-excel>
41
+ </div>
42
+ </div>
43
+ </criteria>
44
+ <div partial='list' v-el:handcollect id='gasprice1' style="overflow-y: scroll">
45
+ <table class='tableprint' style="margin: 0px auto">
46
+ <thead>
47
+ <tr>
48
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
49
+ <h3 style="text-align: center">报建收费报表</h3>
50
+ </th>
51
+ </tr>
52
+ <tr>
53
+ <th :colspan='$parent. spans' style="font-weight: normal; text-align: center;">
54
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
55
+ 结束时间:{{ model.model.endDate }}
56
+ + </th>
57
+ </tr>
58
+ <tr>
59
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
60
+ 打印时间:{{{$parent.printTime}}}
61
+ </th>
62
+ </tr>
63
+ <tr>
64
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
65
+ <div>
66
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
67
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
68
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
69
+ </div>
70
+ </th>
71
+ </tr>
72
+ </thead>
73
+ <tr>
74
+ <td :colspan='$parent.spans' class="noborder">
75
+ {{{ model.data.substring(26,model.data.length-8) }}}
76
+ </td>
77
+ </tr>
78
+ <tfoot>
79
+ </tfoot>
80
+ </table>
81
+ </div>
82
+ </criteria-paged>
83
+ </div>
84
+ </template>
85
+
86
+ <script>
87
+ import { DataModel } from 'vue-client'
88
+ export default {
89
+ title: '报建收费报表',
90
+ props: ['data'],
91
+ data () {
92
+ return {
93
+ filialeNameStr: null,
94
+ filialeCodeStr: this.$login.f.f_orgids,
95
+ printTime: this.$login.toStandardTimeString(),
96
+ depresid: [],
97
+ userresid: [],
98
+ f_orgid: this.$login.f.orgid,
99
+ f_depid: this.$login.f.depids,
100
+ f_operatorid: this.$login.f.id,
101
+ operatorid: [],
102
+ depid: [],
103
+ orgname: '',
104
+ depname: '',
105
+ operatorname: '',
106
+ f_inputtor: [],
107
+ f_user_type: '',
108
+ orgCondtionStr: '1=1',
109
+ model: new DataModel('rs/report/aonstruction_fee', {startDate: 'this.model.startDate', endDate: 'this.model.endDate', filiale: 'this.model.filiale'}),
110
+ reportStr: null,
111
+ spans: 0,
112
+ userid: this.$login.f.id,
113
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`
114
+ }
115
+ },
116
+ ready () {
117
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
118
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
119
+ },
120
+ methods: {
121
+ getRes (obj) {
122
+ this.filialeNameStr = obj.res
123
+ this.filialeCodeStr = obj.resids
124
+ this.$refs.paged.$refs.criteria.model.filiale = obj.res
125
+ console.log(this.filialeNameStr)
126
+ console.log(this.filialeCodeStr)
127
+ },
128
+ searchData () {
129
+ this.$refs.paged.$refs.criteria.search()
130
+ },
131
+ selfSearch (args) {
132
+ let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
133
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
134
+ this.$refs.paged.search(args)
135
+ }
136
+ },
137
+ watch: {
138
+ 'model.data' (val) {
139
+ this.spans = val.split('</tr>').map(item => item.split('</td>').length-1).reduce((x, y) => x > y ? x : y)
140
+ }
141
+ },
142
+ computed: {
143
+ }
144
+ }
145
+ </script>
146
+ <style scoped>
147
+ .noborder{
148
+ border: none;
149
+ }
150
+ </style>