apply-clients 5.0.35-34 → 5.0.35-35

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,185 +1,179 @@
1
- <template>
2
- <div class="d1 flex">
3
- <div class="left col-sm-12">
4
- <criteria-paged :model="model" v-ref:cp>
5
- <criteria partial='criteria' @condition-changed='search' v-ref:cri style="padding: 20px;background-color: #f6f6f6;">
6
- <form novalidate class="" partial>
7
- <div class="row">
8
- <button type="button" class="btn btn-success" @click='$parent.$parent.showQuery=!$parent.$parent.showQuery'>
9
- 打印
10
- </button>
11
- <export-excel :data="$parent.$parent.getCondition"
12
- :field="$parent.$parent.getfield"
13
- sqlurl="rs/logic/exportfile"
14
- sql-name="checkuserReport"
15
- template-name='报装统计导出'
16
- :choose-col="true"></export-excel>
17
- <button class="btn btn-primary btn-sm" type="button" @click="search(),$parent.$parent.showpager()" style="margin-left:10%">
18
- <span class="glyphicon glyphicon-search"></span>查询
19
- </button>
20
- </div>
21
- </form>
22
- </criteria>
23
- <data-grid :model="model" partial='list' v-ref:grid class="list_area" is-fixed='false'>
24
- <template partial='head'>
25
- <tr>
26
- <th colspan="6"><h4>报装人员勘察 安装 通气 统计查询</h4></th>
27
- </tr>
28
- <tr>
29
- <th colspan="1" rowspan="2">报装人员</th>
30
- <th colspan="2">个人报建</th>
31
- <th colspan="3">集体报建</th>
32
- </tr>
33
- <tr class="title">
34
- <th>
35
- <nobr>踏勘</nobr>
36
- </th>
37
- <th>
38
- <nobr>安装</nobr>
39
- </th>
40
- <th>
41
- <nobr>踏勘</nobr>
42
- </th>
43
- <th>
44
- <nobr>安装</nobr>
45
- </th>
46
- <th>
47
- <nobr>通气</nobr>
48
- </th>
49
- </tr>
50
- </template>
51
- <template partial='body'>
52
- <tr>
53
- <td style="text-align: center;">
54
- <nobr>{{row.username}}</nobr>
55
- </td>
56
- <td style="text-align: center;">
57
- <nobr>{{row.gsurvey_name}}</nobr>
58
- </td>
59
- <td style="text-align: center;">
60
- <nobr>{{row.gconstruction_unit}}</nobr>
61
- </td>
62
- <td style="text-align: center;">
63
- <nobr>{{row.jsurvey_name}}</nobr>
64
- </td>
65
- <td style="text-align: center;">
66
- <nobr>{{row.jconstruction_unit}}</nobr>
67
- </td>
68
-
69
- <td style="text-align: center;">
70
- <nobr>{{row.jgas_name}}</nobr>
71
- </td>
72
- </tr>
73
- </template>
74
- </data-grid>
75
- </criteria-paged>
76
- </div>
77
- <modal :show.sync="showQuery" v-ref:modal :large="true" :backdrop="false" title="打印预览">
78
- <header slot="modal-header" class="modal-header">
79
- <button type="button" class="close" @click="showQuery = !showQuery"><span>&times;</span></button>
80
- <h4 class="modal-title">打印预览</h4>
81
- </header>
82
- <article slot="modal-body" class="modal-body clearfix">
83
- <print-report-order :purchase-records="purchaseRecords" :report="model.rows" v-ref:print></print-report-order>
84
- </article>
85
- <footer slot="modal-footer" class="modal-footer">
86
- <button type="button" class="btn btn-primary" @click="print()">打印</button>
87
- </footer>
88
- </modal>
89
- </div>
90
- </template>
91
- <script>
92
- Date.prototype.Format = function (fmt) {
93
- var o = {
94
- "M+": this.getMonth() + 1, //月份
95
- "d+": this.getDate(), //日
96
- "H+": this.getHours(), //小时
97
- "m+": this.getMinutes(), //分
98
- "s+": this.getSeconds(), //秒
99
- "q+": Math.floor((this.getMonth() + 3) / 3), //季度
100
- "S": this.getMilliseconds() //毫秒
101
- };
102
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
103
- for (var k in o)
104
- if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
105
- return fmt;
106
- }
107
- import {
108
- PagedList
109
- } from 'vue-client'
110
- import * as Util from '../../Util'
111
-
112
- export default {
113
- title: '报建统计',
114
- data() {
115
- return {
116
- usertype: this.$appdata.getParam('用户类型'),
117
- showbtn: false,
118
- model: new PagedList('rs/sql/checkuserReport', 20, {
119
- data: {
120
- id: this.$login.f.id,
121
- fengongsi: this.$login.f.f_fengongsi,
122
- }
123
- }),
124
- condition: '',
125
- showQuery:false,
126
- showstopinfoflag:false,
127
- stopremarks:"",
128
- getfield: {
129
- 'username': '报装人员',
130
- 'gsurvey_name': '个体报建踏勘次数',
131
- 'gconstruction_unit': '个体报建安装次数',
132
- 'jsurvey_name': '集体报建踏勘次数',
133
- 'jconstruction_unit': '集体报建安装次数',
134
- 'jgas_name': '集体报建通气次数'
135
- }
136
- }
137
- },
138
- ready() {
139
- this.$refs.cp.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
140
- this.$refs.cp.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
141
- this.$refs.cp.$refs.cri.search()
142
- },
143
- methods: {
144
- print () {
145
- this.$refs.print.$refs.print.PrintTable()
146
- },
147
- getCondition() {
148
- return {
149
- condition: this.$refs.cp.$refs.cri.condition,
150
- data: {
151
- orgid: this.$login.f.orgid
152
- }
153
- }
154
- },
155
- stopinfoshow(index){
156
- this.showstopinfoflag = true;
157
- let remakrs = this.model.rows[index].f_stop_remarks;
158
- console.log(JSON.stringify(remakrs))
159
- console.log(remakrs)
160
-
161
- this.stopremarks= remakrs;
162
- },
163
- clifun(row) {
164
- this.$refs.cp.$refs.grid.model.rows = [row]
165
- this.$refs.cp.pager = false
166
- this.$dispatch('showbtn', row)
167
- },
168
- showpager() {
169
- this.$refs.cp.pager = true
170
- this.$dispatch('hiddenbtn')
171
- },
172
- closestopinfo(){
173
- this.showstopinfoflag = close;
174
- }
175
- }
176
- }
177
- </script>
178
- <style scoped>
179
- label {
180
- display: flex;
181
- justify-content:center;
182
- align-items:Center;
183
- padding-top: 8px;
184
- }
185
- </style>
1
+ <template>
2
+ <div class="d1 flex">
3
+ <div class="left col-sm-12">
4
+ <criteria-paged :model="model" v-ref:cp>
5
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri style="padding: 20px;background-color: #f6f6f6;">
6
+ <form novalidate class="" partial>
7
+ <div class="row">
8
+ <button type="button" class="btn btn-success" @click='$parent.$parent.showQuery=!$parent.$parent.showQuery'>
9
+ 打印
10
+ </button>
11
+ <export-excel :data="$parent.$parent.getCondition"
12
+ :field="$parent.$parent.getfield"
13
+ sqlurl="rs/logic/saleExport" sql-name="checkuserReport" template-name='报装统计导出' :choose-col="true"></export-excel>
14
+ <button class="btn btn-primary btn-sm" type="button" @click="search(),$parent.$parent.showpager()" style="margin-left:10%">
15
+ <span class="glyphicon glyphicon-search"></span>查询
16
+ </button>
17
+ </div>
18
+ </form>
19
+ </criteria>
20
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area" is-fixed='false'>
21
+ <template partial='head'>
22
+ <tr>
23
+ <th colspan="6"><h4>报装人员勘察 安装 通气 统计查询</h4></th>
24
+ </tr>
25
+ <tr>
26
+ <th colspan="1" rowspan="2">报装人员</th>
27
+ <th colspan="2">个人报建</th>
28
+ <th colspan="3">集体报建</th>
29
+ </tr>
30
+ <tr class="title">
31
+ <th>
32
+ <nobr>踏勘</nobr>
33
+ </th>
34
+ <th>
35
+ <nobr>安装</nobr>
36
+ </th>
37
+ <th>
38
+ <nobr>踏勘</nobr>
39
+ </th>
40
+ <th>
41
+ <nobr>安装</nobr>
42
+ </th>
43
+ <th>
44
+ <nobr>通气</nobr>
45
+ </th>
46
+ </tr>
47
+ </template>
48
+ <template partial='body'>
49
+ <tr>
50
+ <td style="text-align: center;">
51
+ <nobr>{{row.username}}</nobr>
52
+ </td>
53
+ <td style="text-align: center;">
54
+ <nobr>{{row.gsurvey_name}}</nobr>
55
+ </td>
56
+ <td style="text-align: center;">
57
+ <nobr>{{row.gconstruction_unit}}</nobr>
58
+ </td>
59
+ <td style="text-align: center;">
60
+ <nobr>{{row.jsurvey_name}}</nobr>
61
+ </td>
62
+ <td style="text-align: center;">
63
+ <nobr>{{row.jconstruction_unit}}</nobr>
64
+ </td>
65
+
66
+ <td style="text-align: center;">
67
+ <nobr>{{row.jgas_name}}</nobr>
68
+ </td>
69
+ </tr>
70
+ </template>
71
+ </data-grid>
72
+ </criteria-paged>
73
+ </div>
74
+ <modal :show.sync="showQuery" v-ref:modal :large="true" :backdrop="false" title="打印预览">
75
+ <header slot="modal-header" class="modal-header">
76
+ <button type="button" class="close" @click="showQuery = !showQuery"><span>&times;</span></button>
77
+ <h4 class="modal-title">打印预览</h4>
78
+ </header>
79
+ <article slot="modal-body" class="modal-body clearfix">
80
+ <print-report-order :purchase-records="purchaseRecords" :report="model.rows" v-ref:print></print-report-order>
81
+ </article>
82
+ <footer slot="modal-footer" class="modal-footer">
83
+ <button type="button" class="btn btn-primary" @click="print()">打印</button>
84
+ </footer>
85
+ </modal>
86
+ </div>
87
+ </template>
88
+ <script>
89
+ Date.prototype.Format = function (fmt) {
90
+ var o = {
91
+ "M+": this.getMonth() + 1, //月份
92
+ "d+": this.getDate(), //日
93
+ "H+": this.getHours(), //小时
94
+ "m+": this.getMinutes(), //分
95
+ "s+": this.getSeconds(), //秒
96
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
97
+ "S": this.getMilliseconds() //毫秒
98
+ };
99
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
100
+ for (var k in o)
101
+ if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
102
+ return fmt;
103
+ }
104
+ import {
105
+ PagedList
106
+ } from 'vue-client'
107
+ import * as Util from '../../Util'
108
+
109
+ export default {
110
+ title: '报建统计',
111
+ data() {
112
+ return {
113
+ usertype: this.$appdata.getParam('用户类型'),
114
+ showbtn: false,
115
+ model: new PagedList('rs/sql/checkuserReport', 20, {
116
+ data: {
117
+ id: this.$login.f.id,
118
+ fengongsi: this.$login.f.f_fengongsi,
119
+ }
120
+ }),
121
+ condition: '',
122
+ showQuery:false,
123
+ showstopinfoflag:false,
124
+ stopremarks:"",
125
+ getfield: {
126
+ 'username': '报装人员',
127
+ 'gsurvey_name': '个体报建踏勘次数',
128
+ 'gconstruction_unit': '个体报建安装次数',
129
+ 'jsurvey_name': '集体报建踏勘次数',
130
+ 'jconstruction_unit': '集体报建安装次数',
131
+ 'jgas_name': '集体报建通气次数'
132
+ }
133
+ }
134
+ },
135
+ ready() {
136
+ this.$refs.cp.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
137
+ this.$refs.cp.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
138
+ this.$refs.cp.$refs.cri.search()
139
+ },
140
+ methods: {
141
+ print () {
142
+ this.$refs.print.$refs.print.PrintTable()
143
+ },
144
+ stopinfoshow(index){
145
+ this.showstopinfoflag = true;
146
+ let remakrs = this.model.rows[index].f_stop_remarks;
147
+ console.log(JSON.stringify(remakrs))
148
+ console.log(remakrs)
149
+
150
+ this.stopremarks= remakrs;
151
+ },
152
+ clifun(row) {
153
+ this.$refs.cp.$refs.grid.model.rows = [row]
154
+ this.$refs.cp.pager = false
155
+ this.$dispatch('showbtn', row)
156
+ },
157
+ showpager() {
158
+ this.$refs.cp.pager = true
159
+ this.$dispatch('hiddenbtn')
160
+ },
161
+ closestopinfo(){
162
+ this.showstopinfoflag = close;
163
+ }
164
+ },
165
+ computed: {
166
+ getCondition() {
167
+ return {condition: `1=1`}
168
+ }
169
+ }
170
+ }
171
+ </script>
172
+ <style scoped>
173
+ label {
174
+ display: flex;
175
+ justify-content:center;
176
+ align-items:Center;
177
+ padding-top: 8px;
178
+ }
179
+ </style>
@@ -1,111 +1,111 @@
1
- <template>
2
- <style id="style">
3
- td{
4
- height: 30px;
5
- padding: 0px;
6
- text-align: center;
7
- }
8
- .cen{
9
- text-align: center;
10
- }
11
- table{
12
- margin: auto;
13
- width: 100%;
14
- border-collapse:collapse;
15
- border: 1px solid black;
16
- }
17
- h1,h2,h3,h4,h5,h6 {
18
- text-align: center;
19
- }
20
- </style>
21
- <div id="print">
22
- <table border="1">
23
- <tr>
24
- <th colspan="6"><h4>报装人员勘察 安装 通气 统计查询</h4></th>
25
- </tr>
26
- <tr>
27
- <th colspan="1" rowspan="2" class="cen">报装人员</th>
28
- <th colspan="2" class="cen">个人报建</th>
29
- <th colspan="3" class="cen">集体报建</th>
30
- </tr>
31
- <tr class="title">
32
- <th class="cen">
33
- <nobr>踏勘</nobr>
34
- </th>
35
- <th class="cen">
36
- <nobr>安装</nobr>
37
- </th>
38
- <th class="cen">
39
- <nobr>踏勘</nobr>
40
- </th>
41
- <th class="cen">
42
- <nobr>安装</nobr>
43
- </th>
44
- <th class="cen">
45
- <nobr>通气</nobr>
46
- </th>
47
- </tr>
48
- <tr v-for="item in report">
49
- <td>{{item.username}}</td>
50
- <td>{{ item.gsurvey_name }}</td>
51
- <td>{{ item.gconstruction_unit }}</td>
52
- <td>{{ item.jsurvey_name }}</td>
53
- <td>{{ item.jconstruction_unit }}</td>
54
- <td>{{ item.jgas_name }}</td>
55
- </tr>
56
- <tr v-for="item in supplement">
57
- <td></td>
58
- <td></td>
59
- <td></td>
60
- <td></td>
61
- <td></td>
62
- <td></td>
63
- </tr>
64
- </table>
65
- </div>
66
-
67
- <print-element v-show="false" v-ref:print id='print' styleid='style'
68
- top='10' left='60' width='100%' height='100%'>
69
- </print-element>
70
- </template>
71
-
72
- <script>
73
- Date.prototype.Format = function (fmt) {
74
- var o = {
75
- "M+": this.getMonth() + 1, //月份
76
- "d+": this.getDate(), //日
77
- "H+": this.getHours(), //小时
78
- "m+": this.getMinutes(), //分
79
- "s+": this.getSeconds(), //秒
80
- "q+": Math.floor((this.getMonth() + 3) / 3), //季度
81
- "S": this.getMilliseconds() //毫秒
82
- };
83
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
84
- for (var k in o)
85
- if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
86
- return fmt;
87
- }
88
- export default {
89
- title: '打印统计单',
90
- props: ['report'],
91
- data () {
92
- return {}
93
- },
94
- ready () {
95
- },
96
- methods: {
97
- },
98
- computed: {
99
- supplement () {
100
- if (this.material.length < 10) {
101
- return 10 - this.material.length
102
- }
103
- return 0
104
- }
105
- }
106
- }
107
- </script>
108
-
109
- <style scoped>
110
-
111
- </style>
1
+ <template>
2
+ <style id="style">
3
+ td{
4
+ height: 30px;
5
+ padding: 0px;
6
+ text-align: center;
7
+ }
8
+ .cen{
9
+ text-align: center;
10
+ }
11
+ table{
12
+ margin: auto;
13
+ width: 100%;
14
+ border-collapse:collapse;
15
+ border: 1px solid black;
16
+ }
17
+ h1,h2,h3,h4,h5,h6 {
18
+ text-align: center;
19
+ }
20
+ </style>
21
+ <div id="print">
22
+ <table border="1">
23
+ <tr>
24
+ <th colspan="6"><h4>报装人员勘察 安装 通气 统计查询</h4></th>
25
+ </tr>
26
+ <tr>
27
+ <th colspan="1" rowspan="2" class="cen">报装人员</th>
28
+ <th colspan="2" class="cen">个人报建</th>
29
+ <th colspan="3" class="cen">集体报建</th>
30
+ </tr>
31
+ <tr class="title">
32
+ <th class="cen">
33
+ <nobr>踏勘</nobr>
34
+ </th>
35
+ <th class="cen">
36
+ <nobr>安装</nobr>
37
+ </th>
38
+ <th class="cen">
39
+ <nobr>踏勘</nobr>
40
+ </th>
41
+ <th class="cen">
42
+ <nobr>安装</nobr>
43
+ </th>
44
+ <th class="cen">
45
+ <nobr>通气</nobr>
46
+ </th>
47
+ </tr>
48
+ <tr v-for="item in report">
49
+ <td>{{item.username}}</td>
50
+ <td>{{ item.gsurvey_name }}</td>
51
+ <td>{{ item.gconstruction_unit }}</td>
52
+ <td>{{ item.jsurvey_name }}</td>
53
+ <td>{{ item.jconstruction_unit }}</td>
54
+ <td>{{ item.jgas_name }}</td>
55
+ </tr>
56
+ <tr v-for="item in supplement">
57
+ <td></td>
58
+ <td></td>
59
+ <td></td>
60
+ <td></td>
61
+ <td></td>
62
+ <td></td>
63
+ </tr>
64
+ </table>
65
+ </div>
66
+
67
+ <print-element v-show="false" v-ref:print id='print' styleid='style'
68
+ top='10' left='60' width='100%' height='100%'>
69
+ </print-element>
70
+ </template>
71
+
72
+ <script>
73
+ Date.prototype.Format = function (fmt) {
74
+ var o = {
75
+ "M+": this.getMonth() + 1, //月份
76
+ "d+": this.getDate(), //日
77
+ "H+": this.getHours(), //小时
78
+ "m+": this.getMinutes(), //分
79
+ "s+": this.getSeconds(), //秒
80
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
81
+ "S": this.getMilliseconds() //毫秒
82
+ };
83
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
84
+ for (var k in o)
85
+ if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
86
+ return fmt;
87
+ }
88
+ export default {
89
+ title: '打印统计单',
90
+ props: ['report'],
91
+ data () {
92
+ return {}
93
+ },
94
+ ready () {
95
+ },
96
+ methods: {
97
+ },
98
+ computed: {
99
+ supplement () {
100
+ if (this.material.length < 10) {
101
+ return 10 - this.material.length
102
+ }
103
+ return 0
104
+ }
105
+ }
106
+ }
107
+ </script>
108
+
109
+ <style scoped>
110
+
111
+ </style>