apply-clients 5.0.35-ezhou-21 → 5.0.35-ezhou-23

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,167 +1,167 @@
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
- <table class="tableprint">
76
- <tr>
77
- <td class="tdcenter report-head head-font" width="200" height="30" >人员</td>
78
- <td class="tdcenter report-head head-font" width="400" height="30" >踏勘</td>
79
- <td class="tdcenter report-head head-font" width="400" height="30" >施工</td>
80
- <td class="tdcenter report-head head-font" width="400" height="30" >验收</td>
81
- <td class="tdcenter report-head head-font" width="400" height="30" >通气</td>
82
- <td class="tdcenter report-head head-font" width="400" height="30" >合计</td>
83
- </tr>
84
- <tr v-for="row in model.data">
85
- <td class="tdcenter report-main main-font" width="400" height="30" >{{row.sender}}</td>
86
- <td class="tdcenter report-main main-font" width="400" height="30" >{{ row.survey}}</td>
87
- <td class="tdcenter report-main main-font" width="400" height="30" >{{ row.construction}}</td>
88
- <td class="tdcenter report-main main-font" width="400" height="30" >{{ row.acceptance}}</td>
89
- <td class="tdcenter report-main main-font" width="400" height="30" >{{ row.ventilation}}</td>
90
- <td class="tdcenter report-main main-font" width="400" height="30" >{{ row.total}}</td>
91
- </tr>
92
- </table>
93
- </td>
94
- </tr>
95
- <tfoot>
96
- </tfoot>
97
- </table>
98
- </div>
99
- </criteria-paged>
100
- </div>
101
- </template>
102
-
103
- <script>
104
- import { DataModel } from 'vue-client'
105
- export default {
106
- title: '报建收费报表',
107
- props: ['data'],
108
- data () {
109
- return {
110
- filialeNameStr: null,
111
- filialeCodeStr: this.$login.f.f_orgids,
112
- printTime: this.$login.toStandardTimeString(),
113
- depresid: [],
114
- userresid: [],
115
- f_orgid: this.$login.f.orgid,
116
- f_depid: this.$login.f.depids,
117
- f_operatorid: this.$login.f.id,
118
- operatorid: [],
119
- depid: [],
120
- orgname: '',
121
- depname: '',
122
- operatorname: '',
123
- f_inputtor: [],
124
- f_user_type: '',
125
- orgCondtionStr: '1=1',
126
- model: new DataModel('rs/sql/report6', {startDate: 'this.model.startDate', endDate: 'this.model.endDate', filiale: 'this.model.filiale'}),
127
- reportStr: null,
128
- spans: 0,
129
- userid: this.$login.f.id,
130
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`
131
- }
132
- },
133
- ready () {
134
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
135
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
136
- },
137
- methods: {
138
- getRes (obj) {
139
- this.filialeNameStr = obj.res
140
- this.filialeCodeStr = obj.resids
141
- this.$refs.paged.$refs.criteria.model.filiale = obj.res
142
- console.log(this.filialeNameStr)
143
- console.log(this.filialeCodeStr)
144
- },
145
- searchData () {
146
- this.$refs.paged.$refs.criteria.search()
147
- },
148
- selfSearch (args) {
149
- let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
150
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
151
- this.$refs.paged.search(args)
152
- }
153
- },
154
- watch: {
155
- // 'model.data' (val) {
156
- // this.spans = val.split('</tr>').map(item => item.split('</td>').length-1).reduce((x, y) => x > y ? x : y)
157
- // }
158
- },
159
- computed: {
160
- }
161
- }
162
- </script>
163
- <style scoped>
164
- .noborder{
165
- border: none;
166
- }
167
- </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
+ <table class="tableprint">
76
+ <tr>
77
+ <td class="tdcenter report-head head-font" width="200" height="30" >人员</td>
78
+ <td class="tdcenter report-head head-font" width="400" height="30" >踏勘</td>
79
+ <td class="tdcenter report-head head-font" width="400" height="30" >施工</td>
80
+ <td class="tdcenter report-head head-font" width="400" height="30" >验收</td>
81
+ <td class="tdcenter report-head head-font" width="400" height="30" >通气</td>
82
+ <td class="tdcenter report-head head-font" width="400" height="30" >合计</td>
83
+ </tr>
84
+ <tr v-for="row in model.data">
85
+ <td class="tdcenter report-main main-font" width="400" height="30" >{{row.sender}}</td>
86
+ <td class="tdcenter report-main main-font" width="400" height="30" >{{ row.survey}}</td>
87
+ <td class="tdcenter report-main main-font" width="400" height="30" >{{ row.construction}}</td>
88
+ <td class="tdcenter report-main main-font" width="400" height="30" >{{ row.acceptance}}</td>
89
+ <td class="tdcenter report-main main-font" width="400" height="30" >{{ row.ventilation}}</td>
90
+ <td class="tdcenter report-main main-font" width="400" height="30" >{{ row.total}}</td>
91
+ </tr>
92
+ </table>
93
+ </td>
94
+ </tr>
95
+ <tfoot>
96
+ </tfoot>
97
+ </table>
98
+ </div>
99
+ </criteria-paged>
100
+ </div>
101
+ </template>
102
+
103
+ <script>
104
+ import { DataModel } from 'vue-client'
105
+ export default {
106
+ title: '报建收费报表',
107
+ props: ['data'],
108
+ data () {
109
+ return {
110
+ filialeNameStr: null,
111
+ filialeCodeStr: this.$login.f.f_orgids,
112
+ printTime: this.$login.toStandardTimeString(),
113
+ depresid: [],
114
+ userresid: [],
115
+ f_orgid: this.$login.f.orgid,
116
+ f_depid: this.$login.f.depids,
117
+ f_operatorid: this.$login.f.id,
118
+ operatorid: [],
119
+ depid: [],
120
+ orgname: '',
121
+ depname: '',
122
+ operatorname: '',
123
+ f_inputtor: [],
124
+ f_user_type: '',
125
+ orgCondtionStr: '1=1',
126
+ model: new DataModel('rs/sql/report6', {startDate: 'this.model.startDate', endDate: 'this.model.endDate', filiale: 'this.model.filiale'}),
127
+ reportStr: null,
128
+ spans: 0,
129
+ userid: this.$login.f.id,
130
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`
131
+ }
132
+ },
133
+ ready () {
134
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
135
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
136
+ },
137
+ methods: {
138
+ getRes (obj) {
139
+ this.filialeNameStr = obj.res
140
+ this.filialeCodeStr = obj.resids
141
+ this.$refs.paged.$refs.criteria.model.filiale = obj.res
142
+ console.log(this.filialeNameStr)
143
+ console.log(this.filialeCodeStr)
144
+ },
145
+ searchData () {
146
+ this.$refs.paged.$refs.criteria.search()
147
+ },
148
+ selfSearch (args) {
149
+ let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
150
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
151
+ this.$refs.paged.search(args)
152
+ }
153
+ },
154
+ watch: {
155
+ // 'model.data' (val) {
156
+ // this.spans = val.split('</tr>').map(item => item.split('</td>').length-1).reduce((x, y) => x > y ? x : y)
157
+ // }
158
+ },
159
+ computed: {
160
+ }
161
+ }
162
+ </script>
163
+ <style scoped>
164
+ .noborder{
165
+ border: none;
166
+ }
167
+ </style>