safecheck-client 3.0.34-51 → 3.0.34-52

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,248 +1,248 @@
1
- <style scoped>
2
- .bg {
3
- background-color: blue;
4
- height: 1px;
5
- border: 0;
6
- }
7
- .app-row {
8
- background-color: white;
9
- padding: 10px 10px 0 10px;
10
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
11
- }
12
- .search_input {
13
- border: 0;
14
- outline: none;
15
- }
16
- .font{
17
- font: 15px PingFang-SC-Medium;
18
- color: #666666;
19
- }
20
- .input-font{
21
- font: 15px PingFang-SC-Medium;
22
- color: #333333;
23
- }
24
- .btn-font{
25
- font:600 16px PingFang-SC-Bold;
26
- color: #499EDF;
27
- }
28
- .btn-color{
29
- background-color: #FFFFFF;
30
- border-radius: 10px ;
31
- border: 1px solid #499EDF;
32
- }
33
- .app-text {
34
- font-size: 12px;
35
- }
36
- .panel-self{
37
- border-radius: 10px;
38
- border:1px solid #499EDF;
39
- background-color: #F8F8F8;
40
- }
41
- .yybtn-color{
42
- background-color:#499edf;
43
- border-radius: 4px ;
44
- border: 1px solid #499EDF;
45
- color: #FFFFFF;
46
- font: 14px PingFang-SC-Bold;
47
- }
48
- table {
49
- text-align: center;
50
- white-space: nowrap;
51
- font-size: 12px;
52
- width: 50%;
53
- border-collapse: collapse;
54
- margin: 20px 0;
55
- margin: auto;
56
- }
57
- th, td {
58
- padding: 12px;
59
- border-bottom: 1px solid #ddd;
60
- }
61
- th {
62
- background-color: #f2f2f2;
63
- }
64
- tr:hover {background-color: #f5f5f5;}
65
- .qxbtn-color{
66
- background-color: #FFFFFF;
67
- border-radius: 4px ;
68
- color: #499edf;
69
- font: 14px PingFang-SC-Bold;
70
- border: 1px solid #499EDF;
71
- }
72
-
73
- .button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_top.png")}
74
- .button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_bottom.png")}
75
- .button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_left.png")}
76
- .button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_right.png")}
77
- </style>
78
- <style>
79
- .clear-select-with .dropdown-menu{
80
- left: 0px !important;
81
- width: 200% !important;
82
- }
83
- </style>
84
- <template>
85
- <div style="height: auto;width: 100%">
86
- <criteria-paged :model="model" v-ref:paged :pager="false">
87
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
88
- <div partial>
89
- <form>
90
- <div class="row app-row">
91
- <div class="col-xs-4">
92
- <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
93
- <label for="f_plan_name" class="font text-left">计划名称:</label>
94
- </div>
95
- <v-select
96
- id="f_plan_name"
97
- :value.sync="model.f_plan_name"
98
- class="input-font"
99
- :options='$parent.$parent.planNameOptions'
100
- placeholder='计划名称'
101
- :width="'60%'"
102
- v-model="model.f_plan_name"
103
- condition="f_plan_name = '{}'"
104
- close-on-select clear-button>
105
- </v-select>
106
- </div>
107
- <div class="row app-row">
108
- <div class="col-xs-4">
109
- <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
110
- <label for="f_plan_name" class="font text-left">计划类型:</label>
111
- </div>
112
- <v-select
113
- id="f_plan_name"
114
- :value.sync="model.f_safecheck_type"
115
- class="input-font"
116
- :options='$parent.$parent.safecheckTypes'
117
- placeholder='计划类型'
118
- :width="'60%'"
119
- v-model="model.f_safecheck_type"
120
- condition="f_safecheck_type = '{}'"
121
- close-on-select clear-button>
122
- </v-select>
123
- </div>
124
- <div class="row app-row">
125
- <div class="col-xs-4">
126
- <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
127
- <label for="f_plan_name" class="font text-left">计划时间:</label>
128
- </div>
129
- <datepicker id="f_start_date" style="width: 30%;"
130
- :value.sync="model.f_start_date"
131
- :disabled-days-of-Week="[]"
132
- v-model="model.f_start_date"
133
- class="input-font"
134
- :format="'yyyy-MM-dd 00:00:00'" condition="f_issue_time >= '{}'"
135
- >
136
- </datepicker>-
137
- <datepicker id="f_end_date" style="width: 30%;"
138
- :value.sync="model.f_end_date"
139
- :disabled-days-of-Week="[]"
140
- v-model="model.f_end_date"
141
- class="input-font"
142
- :format="'yyyy-MM-dd 23:59:00'" condition="f_issue_time <= '{}'"
143
- >
144
- </datepicker>
145
- </div>
146
- <div class="row text-center" style="margin-top: 20px;">
147
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="search">查询</button>
148
- <img @click="$parent.$parent.getNewOrder" src="../../assets/shuaxindaiban1.png" style="float: right;margin-right: 3%;width: 40px;padding: 5px; float:right">
149
- </div>
150
- <div class="col-sm-12">
151
- </div>
152
- <div style="height:30px;"></div>
153
- </form>
154
- </div>
155
- </criteria>
156
- <list :model="model" partial='list'>
157
- <div partial>
158
- <div class="auto app-text" style="margin-top: 5px;">
159
- <div class="panel" style="padding: 10px 10px 5px 10px;">
160
- <div class="panel-body panel-self" @click="$parent.$parent.$parent.gotoAreaSelect(row)">
161
- <div class="col-xs-12">
162
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>计划名称:</b></p>
163
- <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_plan_name }}</p>
164
- </div>
165
- <div class="col-xs-12">
166
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>计划发型:</b></p>
167
- <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_safecheck_type }}</p>
168
- </div>
169
- <div class="col-xs-12">
170
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>计划时间:</b></p>
171
- <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_issue_time }}</p>
172
- </div>
173
- <div class="col-xs-12">
174
- <table>
175
- <tr>
176
- <td style="color: #00A3F0">{{row.jihuazongshu}}</td>
177
- <td style="color: #3CC51F">{{row.yijian}}</td>
178
- <td style="color: coral">{{row.weijian}}</td>
179
- <td style="color: red">{{row.daofangbuyu}}</td>
180
- </tr>
181
- <tr>
182
- <th>计划总户数</th>
183
- <th>已检户数</th>
184
- <th>未检户数</th>
185
- <th>到访不遇户数</th>
186
- </tr>
187
- </table>
188
- </div>
189
- </div>
190
- </div>
191
- </div>
192
- </div>
193
- </list>
194
- </criteria-paged>
195
- </div>
196
- </template>
197
- <script>
198
- import LocalPagedList from '../../plugins/LocalPagedList'
199
- export default {
200
- title: '安检待办',
201
- props: ['planName'],
202
- data() {
203
- return {
204
- planNameOptions:[{label: '请选择', value: ''},],
205
- safecheckTypes:[{label: '请选择', value: ''},{label: '年度安检', value: '年度安检'},{label: '抽检', value: '抽检'}],
206
- model:new LocalPagedList('androidGetuserinfo',20,{condition:'this.condition'}),
207
- }
208
- },
209
- ready(){
210
- this.getAllPlanName()
211
- },
212
- methods: {
213
- gotoAreaSelect(row){
214
- var pardate = {
215
- _this:this,
216
- title:'待办工作',
217
- safe:false
218
- }
219
- this.$dispatch('gotoson',pardate)
220
- this.$goto('area-select', {row: row}, 'self')
221
- },
222
- search(args){
223
- let condition = '1=1'
224
- this.model.rows = []
225
- let criteria = {
226
- items: `tcp.f_plan_name,tcp.f_issue_time,tcp.f_safecheck_type,COUNT(tcp.id) as jihuazongshu,sum( CASE WHEN tcpi.f_state = '未检' THEN 1 ELSE 0 END ) as weijian,sum( CASE WHEN tcpi.f_state = '已检' THEN 1 ELSE 0 END ) as yijian,sum( CASE WHEN tcpi.f_last_check_state = '到访不遇' THEN 1 ELSE 0 END ) as daofangbuyu`,
227
- tablename: 't_check_plan tcp LEFT JOIN t_check_plan_item tcpi ON tcp.id = tcpi.f_plan_id',
228
- condition: args.condition || condition,
229
- groupitem: 'tcp.f_plan_name,tcp.f_issue_time,tcp.f_safecheck_type'
230
- }
231
- let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
232
- this.model.rows = result.data.rows
233
- },
234
- getAllPlanName(){
235
- let criteria = {
236
- items: 'f_plan_name',
237
- tablename: 't_check_plan',
238
- condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
239
- groupitem: 'f_plan_name'
240
- }
241
- let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
242
- if(result.code == 200){
243
- result.data.rows.forEach(item => this.planNameOptions.push({label:item.f_plan_name,value:item.f_plan_name}))
244
- }
245
- },
246
- }
247
- }
248
- </script>
1
+ <style scoped>
2
+ .bg {
3
+ background-color: blue;
4
+ height: 1px;
5
+ border: 0;
6
+ }
7
+ .app-row {
8
+ background-color: white;
9
+ padding: 10px 10px 0 10px;
10
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
11
+ }
12
+ .search_input {
13
+ border: 0;
14
+ outline: none;
15
+ }
16
+ .font{
17
+ font: 15px PingFang-SC-Medium;
18
+ color: #666666;
19
+ }
20
+ .input-font{
21
+ font: 15px PingFang-SC-Medium;
22
+ color: #333333;
23
+ }
24
+ .btn-font{
25
+ font:600 16px PingFang-SC-Bold;
26
+ color: #499EDF;
27
+ }
28
+ .btn-color{
29
+ background-color: #FFFFFF;
30
+ border-radius: 10px ;
31
+ border: 1px solid #499EDF;
32
+ }
33
+ .app-text {
34
+ font-size: 12px;
35
+ }
36
+ .panel-self{
37
+ border-radius: 10px;
38
+ border:1px solid #499EDF;
39
+ background-color: #F8F8F8;
40
+ }
41
+ .yybtn-color{
42
+ background-color:#499edf;
43
+ border-radius: 4px ;
44
+ border: 1px solid #499EDF;
45
+ color: #FFFFFF;
46
+ font: 14px PingFang-SC-Bold;
47
+ }
48
+ table {
49
+ text-align: center;
50
+ white-space: nowrap;
51
+ font-size: 12px;
52
+ width: 50%;
53
+ border-collapse: collapse;
54
+ margin: 20px 0;
55
+ margin: auto;
56
+ }
57
+ th, td {
58
+ padding: 12px;
59
+ border-bottom: 1px solid #ddd;
60
+ }
61
+ th {
62
+ background-color: #f2f2f2;
63
+ }
64
+ tr:hover {background-color: #f5f5f5;}
65
+ .qxbtn-color{
66
+ background-color: #FFFFFF;
67
+ border-radius: 4px ;
68
+ color: #499edf;
69
+ font: 14px PingFang-SC-Bold;
70
+ border: 1px solid #499EDF;
71
+ }
72
+
73
+ .button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_top.png")}
74
+ .button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_bottom.png")}
75
+ .button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_left.png")}
76
+ .button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_right.png")}
77
+ </style>
78
+ <style>
79
+ .clear-select-with .dropdown-menu{
80
+ left: 0px !important;
81
+ width: 200% !important;
82
+ }
83
+ </style>
84
+ <template>
85
+ <div style="height: auto;width: 100%">
86
+ <criteria-paged :model="model" v-ref:paged :pager="false">
87
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
88
+ <div partial>
89
+ <form>
90
+ <div class="row app-row">
91
+ <div class="col-xs-4">
92
+ <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
93
+ <label for="f_plan_name" class="font text-left">计划名称:</label>
94
+ </div>
95
+ <v-select
96
+ id="f_plan_name"
97
+ :value.sync="model.f_plan_name"
98
+ class="input-font"
99
+ :options='$parent.$parent.planNameOptions'
100
+ placeholder='计划名称'
101
+ :width="'60%'"
102
+ v-model="model.f_plan_name"
103
+ condition="f_plan_name = '{}'"
104
+ close-on-select clear-button>
105
+ </v-select>
106
+ </div>
107
+ <div class="row app-row">
108
+ <div class="col-xs-4">
109
+ <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
110
+ <label for="f_plan_name" class="font text-left">计划类型:</label>
111
+ </div>
112
+ <v-select
113
+ id="f_plan_name"
114
+ :value.sync="model.f_safecheck_type"
115
+ class="input-font"
116
+ :options='$parent.$parent.safecheckTypes'
117
+ placeholder='计划类型'
118
+ :width="'60%'"
119
+ v-model="model.f_safecheck_type"
120
+ condition="f_safecheck_type = '{}'"
121
+ close-on-select clear-button>
122
+ </v-select>
123
+ </div>
124
+ <div class="row app-row">
125
+ <div class="col-xs-4">
126
+ <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
127
+ <label for="f_plan_name" class="font text-left">计划时间:</label>
128
+ </div>
129
+ <datepicker id="f_start_date" style="width: 30%;"
130
+ :value.sync="model.f_start_date"
131
+ :disabled-days-of-Week="[]"
132
+ v-model="model.f_start_date"
133
+ class="input-font"
134
+ :format="'yyyy-MM-dd 00:00:00'" condition="f_issue_time >= '{}'"
135
+ >
136
+ </datepicker>-
137
+ <datepicker id="f_end_date" style="width: 30%;"
138
+ :value.sync="model.f_end_date"
139
+ :disabled-days-of-Week="[]"
140
+ v-model="model.f_end_date"
141
+ class="input-font"
142
+ :format="'yyyy-MM-dd 23:59:00'" condition="f_issue_time <= '{}'"
143
+ >
144
+ </datepicker>
145
+ </div>
146
+ <div class="row text-center" style="margin-top: 20px;">
147
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="search">查询</button>
148
+ <img @click="$parent.$parent.getNewOrder" src="../../assets/shuaxindaiban1.png" style="float: right;margin-right: 3%;width: 40px;padding: 5px; float:right">
149
+ </div>
150
+ <div class="col-sm-12">
151
+ </div>
152
+ <div style="height:30px;"></div>
153
+ </form>
154
+ </div>
155
+ </criteria>
156
+ <list :model="model" partial='list'>
157
+ <div partial>
158
+ <div class="auto app-text" style="margin-top: 5px;">
159
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
160
+ <div class="panel-body panel-self" @click="$parent.$parent.$parent.gotoAreaSelect(row)">
161
+ <div class="col-xs-12">
162
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>计划名称:</b></p>
163
+ <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_plan_name }}</p>
164
+ </div>
165
+ <div class="col-xs-12">
166
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>计划发型:</b></p>
167
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_safecheck_type }}</p>
168
+ </div>
169
+ <div class="col-xs-12">
170
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>计划时间:</b></p>
171
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_issue_time }}</p>
172
+ </div>
173
+ <div class="col-xs-12">
174
+ <table>
175
+ <tr>
176
+ <td style="color: #00A3F0">{{row.jihuazongshu}}</td>
177
+ <td style="color: #3CC51F">{{row.yijian}}</td>
178
+ <td style="color: coral">{{row.weijian}}</td>
179
+ <td style="color: red">{{row.daofangbuyu}}</td>
180
+ </tr>
181
+ <tr>
182
+ <th>计划总户数</th>
183
+ <th>已检户数</th>
184
+ <th>未检户数</th>
185
+ <th>到访不遇户数</th>
186
+ </tr>
187
+ </table>
188
+ </div>
189
+ </div>
190
+ </div>
191
+ </div>
192
+ </div>
193
+ </list>
194
+ </criteria-paged>
195
+ </div>
196
+ </template>
197
+ <script>
198
+ import LocalPagedList from '../../plugins/LocalPagedList'
199
+ export default {
200
+ title: '安检待办',
201
+ props: ['planName'],
202
+ data() {
203
+ return {
204
+ planNameOptions:[{label: '请选择', value: ''},],
205
+ safecheckTypes:[{label: '请选择', value: ''},{label: '年度安检', value: '年度安检'},{label: '抽检', value: '抽检'}],
206
+ model:new LocalPagedList('androidGetuserinfo',20,{condition:'this.condition'}),
207
+ }
208
+ },
209
+ ready(){
210
+ this.getAllPlanName()
211
+ },
212
+ methods: {
213
+ gotoAreaSelect(row){
214
+ var pardate = {
215
+ _this:this,
216
+ title:'待办工作',
217
+ safe:false
218
+ }
219
+ this.$dispatch('gotoson',pardate)
220
+ this.$goto('area-select', {row: row}, 'self')
221
+ },
222
+ search(args){
223
+ let condition = '1=1'
224
+ this.model.rows = []
225
+ let criteria = {
226
+ items: `tcp.f_plan_name,tcp.f_issue_time,tcp.f_safecheck_type,COUNT(tcp.id) as jihuazongshu,sum( CASE WHEN tcpi.f_state = '未检' THEN 1 ELSE 0 END ) as weijian,sum( CASE WHEN tcpi.f_state = '已检' THEN 1 ELSE 0 END ) as yijian,sum( CASE WHEN tcpi.f_last_check_state = '到访不遇' THEN 1 ELSE 0 END ) as daofangbuyu`,
227
+ tablename: 't_check_plan tcp LEFT JOIN t_check_plan_item tcpi ON tcp.id = tcpi.f_plan_id',
228
+ condition: args.condition || condition,
229
+ groupitem: 'tcp.f_plan_name,tcp.f_issue_time,tcp.f_safecheck_type'
230
+ }
231
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
232
+ this.model.rows = result.data.rows
233
+ },
234
+ getAllPlanName(){
235
+ let criteria = {
236
+ items: 'f_plan_name',
237
+ tablename: 't_check_plan',
238
+ condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
239
+ groupitem: 'f_plan_name'
240
+ }
241
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
242
+ if(result.code == 200){
243
+ result.data.rows.forEach(item => this.planNameOptions.push({label:item.f_plan_name,value:item.f_plan_name}))
244
+ }
245
+ },
246
+ }
247
+ }
248
+ </script>