safecheck-client 3.0.34-65 → 3.0.34-67

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,192 +1,192 @@
1
- <style scoped>
2
- .app-row {
3
- background-color: white;
4
- padding: 10px 10px 0 10px;
5
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
6
- }
7
-
8
- .search_input {
9
- border: 0;
10
- outline: none;
11
- }
12
-
13
- .font {
14
- font: 15px PingFang-SC-Medium;
15
- color: #666666;
16
- }
17
-
18
- .input-font {
19
- font: 15px PingFang-SC-Medium;
20
- color: #333333;
21
- }
22
-
23
- .btn-font {
24
- font: 600 16px PingFang-SC-Bold;
25
- color: #499EDF;
26
- }
27
-
28
- .btn-color {
29
- background-color: #FFFFFF;
30
- border-radius: 10px;
31
- border: 1px solid #499EDF;
32
- }
33
-
34
- .app-text {
35
- font-size: 12px;
36
- }
37
-
38
- .panel-self {
39
- border-radius: 10px;
40
- border: 1px solid #499EDF;
41
- background-color: #F8F8F8;
42
- }
43
-
44
- table {
45
- text-align: center;
46
- white-space: nowrap;
47
- font-size: 12px;
48
- width: 50%;
49
- border-collapse: collapse;
50
- margin: 20px 0;
51
- margin: auto;
52
- }
53
-
54
- th,
55
- td {
56
- padding: 12px;
57
- border-bottom: 1px solid #ddd;
58
- }
59
-
60
- th {
61
- background-color: #f2f2f2;
62
- }
63
-
64
- tr:hover {
65
- background-color: #f5f5f5;
66
- }
67
- </style>
68
- <template>
69
- <div style="height: auto;width: 100%">
70
- <criteria-paged :model="model" v-ref:paged :pager="false">
71
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
72
- <div partial>
73
- <form>
74
- <div class="row app-row">
75
- <div class="col-xs-4">
76
- <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
77
- <label for="f_userinfo_code" class="font text-left">楼栋:</label>
78
- </div>
79
- <div class="col-xs-8">
80
- <input id="f_userinfo_code" class="search_input input-font" v-model=model.f_building
81
- condition="f_building like '%{}%'" />
82
- </div>
83
- </div>
84
- <div class="row text-center" style="margin-top: 20px;">
85
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
86
- @click="search">查询</button>
87
- <img @click="$parent.$parent.getNewOrder" src="../../assets/shuaxindaiban1.png"
88
- style="float: right;margin-right: 3%;width: 40px;padding: 5px; float:right">
89
- </div>
90
- <div class="col-sm-12">
91
- </div>
92
- <div style="height:30px;"></div>
93
- </form>
94
- </div>
95
- </criteria>
96
- <list :model="model" partial='list'>
97
- <div partial>
98
- <div class="auto app-text" style="margin-top: 5px;">
99
- <div class="panel" style="padding: 10px 10px 5px 10px;">
100
- <div class="panel-body panel-self" @click="$parent.$parent.$parent.gotoUserinfoSelect(row)">
101
- <div class="col-xs-12">
102
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left">
103
- <b>小区名称:</b></p>
104
- <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{
105
- $parent.$parent.$parent.row.f_residential_area }}</p>
106
- </div>
107
- <div class="col-xs-12">
108
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left">
109
- <b>小区地址:</b></p>
110
- <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{
111
- $parent.$parent.$parent.row.f_area_address }}</p>
112
- </div>
113
- <div class="col-xs-12">
114
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left">
115
- <b>楼栋:</b></p>
116
- <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{
117
- row.f_building }}</p>
118
- </div>
119
- <div class="col-xs-12">
120
- <table>
121
- <tr>
122
- <td style="color: #00A3F0">{{ row.jihuazongshu }}</td>
123
- <td style="color: #3CC51F">{{ row.yijian }}</td>
124
- <td style="color: coral">{{ row.weijian }}</td>
125
- <td style="color: red">{{ row.daofangbuyu }}</td>
126
- </tr>
127
- <tr>
128
- <th>计划总户数</th>
129
- <th>已检户数</th>
130
- <th>未检户数</th>
131
- <th>到访不遇户数</th>
132
- </tr>
133
- </table>
134
- </div>
135
- </div>
136
- </div>
137
- </div>
138
- </div>
139
- </list>
140
- </criteria-paged>
141
- </div>
142
- </template>
143
- <script>
144
- import LocalPagedList from '../../plugins/LocalPagedList'
145
- export default {
146
- title: 'building-select',
147
- props: ['row', 'f_plan_id'],
148
- data() {
149
- return {
150
- model: new LocalPagedList('androidGetuserinfo', 20, { condition: 'this.condition' }),
151
- }
152
- },
153
- ready() {
154
- },
155
- methods: {
156
- getNewOrder() {
157
- HostApp.__this__ = this
158
- HostApp.logicWithHint({
159
- 'logic': 'SafeCheckServiceTimeOut',
160
- 'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
161
- 'data': { params: '' },
162
- 'backresult': 1
163
- })
164
- HostApp.logicWithHint({
165
- 'logic': 'FreshPlanItem',
166
- 'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
167
- 'data': { params: '' },
168
- 'backresult': 1
169
- })
170
- },
171
- getNewOrderCallBack() {
172
- this.model.search()
173
- },
174
- gotoUserinfoSelect(row) {
175
- let _this = this
176
- _this.$goto('userinfo-select', { row: { f_plan_id: this.f_plan_id, f_residential_area: this.row.f_residential_area, f_area_address: this.row.f_area_address, f_building: row.f_building } }, 'self', _this.$back)
177
- },
178
- search(args) {
179
- this.model.rows = []
180
- args.condition += ` and f_plan_id = '${this.f_plan_id}' and f_residential_area = '${this.row.f_residential_area}' and f_area_address = '${this.row.f_area_address}'`
181
- let criteria = {
182
- items: `tcpi.f_building,COUNT(tcpi.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`,
183
- tablename: 't_check_plan_item tcpi ',
184
- condition: args.condition,
185
- groupitem: 'tcpi.f_building'
186
- }
187
- let result = HostApp._executeTask({ 'type': 'sql', 'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria } })
188
- this.model.rows = result.data.rows
189
- },
190
- }
191
- }
192
- </script>
1
+ <style scoped>
2
+ .app-row {
3
+ background-color: white;
4
+ padding: 10px 10px 0 10px;
5
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
6
+ }
7
+
8
+ .search_input {
9
+ border: 0;
10
+ outline: none;
11
+ }
12
+
13
+ .font {
14
+ font: 15px PingFang-SC-Medium;
15
+ color: #666666;
16
+ }
17
+
18
+ .input-font {
19
+ font: 15px PingFang-SC-Medium;
20
+ color: #333333;
21
+ }
22
+
23
+ .btn-font {
24
+ font: 600 16px PingFang-SC-Bold;
25
+ color: #499EDF;
26
+ }
27
+
28
+ .btn-color {
29
+ background-color: #FFFFFF;
30
+ border-radius: 10px;
31
+ border: 1px solid #499EDF;
32
+ }
33
+
34
+ .app-text {
35
+ font-size: 12px;
36
+ }
37
+
38
+ .panel-self {
39
+ border-radius: 10px;
40
+ border: 1px solid #499EDF;
41
+ background-color: #F8F8F8;
42
+ }
43
+
44
+ table {
45
+ text-align: center;
46
+ white-space: nowrap;
47
+ font-size: 12px;
48
+ width: 50%;
49
+ border-collapse: collapse;
50
+ margin: 20px 0;
51
+ margin: auto;
52
+ }
53
+
54
+ th,
55
+ td {
56
+ padding: 12px;
57
+ border-bottom: 1px solid #ddd;
58
+ }
59
+
60
+ th {
61
+ background-color: #f2f2f2;
62
+ }
63
+
64
+ tr:hover {
65
+ background-color: #f5f5f5;
66
+ }
67
+ </style>
68
+ <template>
69
+ <div style="height: auto;width: 100%">
70
+ <criteria-paged :model="model" v-ref:paged :pager="false">
71
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
72
+ <div partial>
73
+ <form>
74
+ <div class="row app-row">
75
+ <div class="col-xs-4">
76
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
77
+ <label for="f_userinfo_code" class="font text-left">楼栋:</label>
78
+ </div>
79
+ <div class="col-xs-8">
80
+ <input id="f_userinfo_code" class="search_input input-font" v-model=model.f_building
81
+ condition="f_building like '%{}%'" />
82
+ </div>
83
+ </div>
84
+ <div class="row text-center" style="margin-top: 20px;">
85
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
86
+ @click="search">查询</button>
87
+ <img @click="$parent.$parent.getNewOrder" src="../../assets/shuaxindaiban1.png"
88
+ style="float: right;margin-right: 3%;width: 40px;padding: 5px; float:right">
89
+ </div>
90
+ <div class="col-sm-12">
91
+ </div>
92
+ <div style="height:30px;"></div>
93
+ </form>
94
+ </div>
95
+ </criteria>
96
+ <list :model="model" partial='list'>
97
+ <div partial>
98
+ <div class="auto app-text" style="margin-top: 5px;">
99
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
100
+ <div class="panel-body panel-self" @click="$parent.$parent.$parent.gotoUserinfoSelect(row)">
101
+ <div class="col-xs-12">
102
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left">
103
+ <b>小区名称:</b></p>
104
+ <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{
105
+ $parent.$parent.$parent.row.f_residential_area }}</p>
106
+ </div>
107
+ <div class="col-xs-12">
108
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left">
109
+ <b>小区地址:</b></p>
110
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{
111
+ $parent.$parent.$parent.row.f_area_address }}</p>
112
+ </div>
113
+ <div class="col-xs-12">
114
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left">
115
+ <b>楼栋:</b></p>
116
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{
117
+ row.f_building }}</p>
118
+ </div>
119
+ <div class="col-xs-12">
120
+ <table>
121
+ <tr>
122
+ <td style="color: #00A3F0">{{ row.jihuazongshu }}</td>
123
+ <td style="color: #3CC51F">{{ row.yijian }}</td>
124
+ <td style="color: coral">{{ row.weijian }}</td>
125
+ <td style="color: red">{{ row.daofangbuyu }}</td>
126
+ </tr>
127
+ <tr>
128
+ <th>计划总户数</th>
129
+ <th>已检户数</th>
130
+ <th>未检户数</th>
131
+ <th>到访不遇户数</th>
132
+ </tr>
133
+ </table>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ </div>
138
+ </div>
139
+ </list>
140
+ </criteria-paged>
141
+ </div>
142
+ </template>
143
+ <script>
144
+ import LocalPagedList from '../../plugins/LocalPagedList'
145
+ export default {
146
+ title: 'building-select',
147
+ props: ['row', 'f_plan_id'],
148
+ data() {
149
+ return {
150
+ model: new LocalPagedList('androidGetuserinfo', 20, { condition: 'this.condition' }),
151
+ }
152
+ },
153
+ ready() {
154
+ },
155
+ methods: {
156
+ getNewOrder() {
157
+ HostApp.__this__ = this
158
+ HostApp.logicWithHint({
159
+ 'logic': 'SafeCheckServiceTimeOut',
160
+ 'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
161
+ 'data': { params: '' },
162
+ 'backresult': 1
163
+ })
164
+ HostApp.logicWithHint({
165
+ 'logic': 'FreshPlanItem',
166
+ 'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
167
+ 'data': { params: '' },
168
+ 'backresult': 1
169
+ })
170
+ },
171
+ getNewOrderCallBack() {
172
+ this.model.search()
173
+ },
174
+ gotoUserinfoSelect(row) {
175
+ let _this = this
176
+ _this.$goto('userinfo-select', { row: { f_plan_id: this.f_plan_id, f_residential_area: this.row.f_residential_area, f_area_address: this.row.f_area_address, f_building: row.f_building } }, 'self', _this.$back)
177
+ },
178
+ search(args) {
179
+ this.model.rows = []
180
+ args.condition += ` and f_plan_id = '${this.f_plan_id}' and f_residential_area = '${this.row.f_residential_area}' and f_area_address = '${this.row.f_area_address}'`
181
+ let criteria = {
182
+ items: `tcpi.f_building,COUNT(tcpi.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`,
183
+ tablename: 't_check_plan_item tcpi ',
184
+ condition: args.condition,
185
+ groupitem: 'tcpi.f_building'
186
+ }
187
+ let result = HostApp._executeTask({ 'type': 'sql', 'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria } })
188
+ this.model.rows = result.data.rows
189
+ },
190
+ }
191
+ }
192
+ </script>