safecheck-client 3.0.39-20 → 3.0.39-22

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,173 +1,173 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <criteria-paged :model="model" v-ref:paged>
5
- <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row">
8
- <div class="form-group col-sm-2">
9
- <label class="font_normal_body">计划时间</label>
10
- <datepicker
11
- :value.sync="model.f_start_time"
12
- placeholder='开始时间' style="width: 60%"
13
- :disabled-days-of-week="[]"
14
- :format="'yyyy-MM-dd'"
15
- :show-rest-button="reset"
16
- v-model="model.f_start_time"
17
- condition="f_offsite_time > ='{} 00:00:00'">
18
- </datepicker>
19
- </div>
20
- <div class="form-group col-sm-2">
21
- <label class="font_normal_body">计划时间</label>
22
- <datepicker
23
- :value.sync="model.f_end_time"
24
- placeholder='结束时间' style="width: 60%"
25
- :disabled-days-of-week="[]"
26
- :format="'yyyy-MM-dd'"
27
- :show-rest-button="reset"
28
- v-model="model.f_end_time"
29
- condition="f_offsite_time <= '{} 23:59:59'">
30
- </datepicker>
31
- </div>
32
- <div class="form-group col-sm-2">
33
- <label class="font_normal_body">档案创建时间</label>
34
- <datepicker
35
- :value.sync="$parent.$parent.da_starttime"
36
- placeholder='开始时间' style="width: 60%"
37
- :disabled-days-of-week="[]"
38
- :format="'yyyy-MM-dd'"
39
- :show-rest-button="reset"
40
- v-model="$parent.$parent.da_starttime"
41
- >
42
- </datepicker>
43
- </div>
44
- <div class="form-group col-sm-2">
45
- <label class="font_normal_body">档案创建时间</label>
46
- <datepicker
47
- :value.sync="$parent.$parent.da_endtime"
48
- placeholder='结束时间' style="width: 60%"
49
- :disabled-days-of-week="[]"
50
- :format="'yyyy-MM-dd'"
51
- :show-rest-button="reset"
52
- v-model="$parent.$parent.da_endtime">
53
- </datepicker>
54
- </div>
55
- <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
56
- <export-excel-safe :data="$parent.$parent.searchData"
57
- :field="$parent.$parent.excelHeaders"
58
- :choose-col="true"
59
- sqlurl="rs/logic/SafeExportExcel" sql-name="summaryOfSecurityInspectionProgress" template-name='安检进度汇总'></export-excel-safe>
60
- <button class="button_spacing button_search" @click="search()">查询</button>
61
- <button class="button_spacing button_search" @click="model = {}">清空</button>
62
- </div>
63
- </div>
64
- </div>
65
- </criteria>
66
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
67
- <template partial='head'>
68
- <tr>
69
- <th>
70
- <nobr>区域</nobr>
71
- </th>
72
- <th>
73
- <nobr>档案用户数</nobr>
74
- </th>
75
- <th>
76
- <nobr>计划内用户数</nobr>
77
- </th>
78
- <th>
79
- <nobr>已安检</nobr>
80
- </th>
81
- <th>
82
- <nobr>已入户</nobr>
83
- </th>
84
- <th>
85
- <nobr>入户率</nobr>
86
- </th>
87
- <th>
88
- <nobr>未安检</nobr>
89
- </th>
90
- <th>
91
- <nobr>完成率</nobr>
92
- </th>
93
- </tr>
94
- </template>
95
- <template partial='body'>
96
- <td style="text-align: center" >{{row.f_user_region}}</td>
97
- <td style="text-align: center" >{{row.da_count}}</td>
98
- <td style="text-align: center" >{{row.f_plan_num}}</td>
99
- <td style="text-align: center" >{{row.f_safe_name}}</td>
100
- <td style="text-align: center" >{{row.f_ruhu_name}}</td>
101
- <td style="text-align: center" >{{row.f_ruhu_bv}}</td>
102
- <td style="text-align: center" >{{row.f_wj_num}}</td>
103
- <td style="text-align: center" >{{row.f_wc_bv}}</td>
104
- </template>
105
- </data-grid>
106
- </criteria-paged>
107
- </div>
108
- </div>
109
- </template>
110
-
111
- <script>
112
- import {PagedList} from 'vue-client'
113
-
114
- export default {
115
- title: '安检进度汇总',
116
- data() {
117
- return {
118
- model: new PagedList('rs/sql/summaryOfSecurityInspectionProgress', 20,{
119
- condition1:'this.condition1',
120
- condition2:'this.condition2',
121
- }),
122
- searchData: {
123
- condition1: "1=1",
124
- condition2: "1=1"
125
- },
126
- da_starttime:'',
127
- da_endtime:'',
128
- excelHeaders: {
129
- 'f_user_region': '区域',
130
- 'da_count': '档案数',
131
- 'f_plan_num': '计划内用户数',
132
- 'f_safe_name': '已安检',
133
- 'f_ruhu_name': '已入户',
134
- 'f_ruhu_bv': '入户率',
135
- 'f_wj_num': '未安检',
136
- 'f_wc_bv': '完成率'
137
- }
138
- }
139
- },
140
- methods: {
141
- selfSearch(args) {
142
- let tempStr = args.condition
143
- let condition1 = tempStr
144
- let condition2 = ' 1=1 '
145
- if (this.da_starttime){
146
- condition2 += ` and f_open_date >= '${this.da_starttime}' `
147
- }
148
- if (this.da_endtime){
149
- condition2 += ` and f_open_date <= '${this.da_endtime}' `
150
- }
151
-
152
- this.model.condition1=condition1
153
- this.model.condition2=condition2
154
-
155
- this.searchData.condition1 = condition1
156
- this.searchData.condition2 = condition2
157
- this.model.search(args.condition, args.model, args.condValue)
158
- }
159
- },
160
- ready() {
161
-
162
- },
163
- watch: {
164
-
165
- },
166
- computed: {
167
- selected() {
168
- return this.$refs.paged.$refs.grid.selected
169
- }
170
- }
171
-
172
- }
173
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="form-group col-sm-2">
9
+ <label class="font_normal_body">安检时间</label>
10
+ <datepicker
11
+ :value.sync="model.f_start_time"
12
+ placeholder='开始时间' style="width: 60%"
13
+ :disabled-days-of-week="[]"
14
+ :format="'yyyy-MM-dd'"
15
+ :show-rest-button="reset"
16
+ v-model="model.f_start_time"
17
+ condition="f_offsite_time > ='{} 00:00:00'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="form-group col-sm-2">
21
+ <label class="font_normal_body">安检时间</label>
22
+ <datepicker
23
+ :value.sync="model.f_end_time"
24
+ placeholder='结束时间' style="width: 60%"
25
+ :disabled-days-of-week="[]"
26
+ :format="'yyyy-MM-dd'"
27
+ :show-rest-button="reset"
28
+ v-model="model.f_end_time"
29
+ condition="f_offsite_time <= '{} 23:59:59'">
30
+ </datepicker>
31
+ </div>
32
+ <div class="form-group col-sm-2">
33
+ <label class="font_normal_body">档案创建时间</label>
34
+ <datepicker
35
+ :value.sync="$parent.$parent.da_starttime"
36
+ placeholder='开始时间' style="width: 60%"
37
+ :disabled-days-of-week="[]"
38
+ :format="'yyyy-MM-dd'"
39
+ :show-rest-button="reset"
40
+ v-model="$parent.$parent.da_starttime"
41
+ >
42
+ </datepicker>
43
+ </div>
44
+ <div class="form-group col-sm-2">
45
+ <label class="font_normal_body">档案创建时间</label>
46
+ <datepicker
47
+ :value.sync="$parent.$parent.da_endtime"
48
+ placeholder='结束时间' style="width: 60%"
49
+ :disabled-days-of-week="[]"
50
+ :format="'yyyy-MM-dd'"
51
+ :show-rest-button="reset"
52
+ v-model="$parent.$parent.da_endtime">
53
+ </datepicker>
54
+ </div>
55
+ <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
56
+ <export-excel-safe :data="$parent.$parent.searchData"
57
+ :field="$parent.$parent.excelHeaders"
58
+ :choose-col="true"
59
+ sqlurl="rs/logic/SafeExportExcel" sql-name="summaryOfSecurityInspectionProgress" template-name='安检进度汇总'></export-excel-safe>
60
+ <button class="button_spacing button_search" @click="search()">查询</button>
61
+ <button class="button_spacing button_search" @click="model = {}">清空</button>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </criteria>
66
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
67
+ <template partial='head'>
68
+ <tr>
69
+ <th>
70
+ <nobr>区域</nobr>
71
+ </th>
72
+ <th>
73
+ <nobr>档案用户数</nobr>
74
+ </th>
75
+ <th>
76
+ <nobr>计划内用户数</nobr>
77
+ </th>
78
+ <th>
79
+ <nobr>已安检</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>已入户</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>入户率</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>无计划安检数</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>完成率</nobr>
92
+ </th>
93
+ </tr>
94
+ </template>
95
+ <template partial='body'>
96
+ <td style="text-align: center" >{{row.f_user_region}}</td>
97
+ <td style="text-align: center" >{{row.da_count}}</td>
98
+ <td style="text-align: center" >{{row.f_plan_num}}</td>
99
+ <td style="text-align: center" >{{row.f_safe_name}}</td>
100
+ <td style="text-align: center" >{{row.f_ruhu_name}}</td>
101
+ <td style="text-align: center" >{{row.f_ruhu_bv}}</td>
102
+ <td style="text-align: center" >{{row.f_nosafe_num}}</td>
103
+ <td style="text-align: center" >{{row.f_wc_bv}}</td>
104
+ </template>
105
+ </data-grid>
106
+ </criteria-paged>
107
+ </div>
108
+ </div>
109
+ </template>
110
+
111
+ <script>
112
+ import {PagedList} from 'vue-client'
113
+
114
+ export default {
115
+ title: '安检进度汇总',
116
+ data() {
117
+ return {
118
+ model: new PagedList('rs/sql/summaryOfSecurityInspectionProgress', 20,{
119
+ condition1:'this.condition1',
120
+ condition2:'this.condition2',
121
+ }),
122
+ searchData: {
123
+ condition1: "1=1",
124
+ condition2: "1=1"
125
+ },
126
+ da_starttime:'',
127
+ da_endtime:'',
128
+ excelHeaders: {
129
+ 'f_user_region': '区域',
130
+ 'da_count': '档案数',
131
+ 'f_plan_num': '计划内用户数',
132
+ 'f_safe_name': '已安检',
133
+ 'f_ruhu_name': '已入户',
134
+ 'f_ruhu_bv': '入户率',
135
+ 'f_nosafe_num': '无计划安检数',
136
+ 'f_wc_bv': '完成率'
137
+ }
138
+ }
139
+ },
140
+ methods: {
141
+ selfSearch(args) {
142
+ let tempStr = args.condition
143
+ let condition1 = tempStr
144
+ let condition2 = ' 1=1 '
145
+ if (this.da_starttime){
146
+ condition2 += ` and tu.f_open_date >= '${this.da_starttime}' `
147
+ }
148
+ if (this.da_endtime){
149
+ condition2 += ` and tu.f_open_date <= '${this.da_endtime}' `
150
+ }
151
+
152
+ this.model.condition1=condition1
153
+ this.model.condition2=condition2
154
+
155
+ this.searchData.condition1 = condition1
156
+ this.searchData.condition2 = condition2
157
+ this.model.search(args.condition, args.model, args.condValue)
158
+ }
159
+ },
160
+ ready() {
161
+
162
+ },
163
+ watch: {
164
+
165
+ },
166
+ computed: {
167
+ selected() {
168
+ return this.$refs.paged.$refs.grid.selected
169
+ }
170
+ }
171
+
172
+ }
173
+ </script>