safecheck-client 4.0.2-67 → 4.0.2-69

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,226 +1,226 @@
1
- <template>
2
- <div class="flex">
3
- <criteria-paged :model="model" 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="form-group col-sm-4" >
8
- <label class="font_normal_body">客户编号</label>
9
- <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
10
- condition="f_userinfo_code = '{}'" @keyup.enter="search()">
11
- </div>
12
- <div class="form-group col-sm-4" >
13
- <label class="font_normal_body">用户类型</label>
14
- <v-select style="width:60% "
15
- class="select select_list"
16
- :value.sync="model.f_user_type"
17
- v-model="model.f_user_type"
18
- :options='$parent.$parent.userType'
19
- placeholder='用户类型'
20
- condition="f_user_type = '{}'"
21
- close-on-select>
22
- </v-select>
23
- </div>
24
- <div class="form-group col-sm-4" >
25
- <label class="font_normal_body">是否已检</label>
26
- <v-select style="width:60% "
27
- class="select select_list"
28
- :value.sync="model.f_state"
29
- v-model="model.f_state"
30
- :options='$parent.$parent.checkState'
31
- placeholder='是否已检'
32
- condition="f_state = '{}'"
33
- close-on-select>
34
- </v-select>
35
- </div>
36
- </div>
37
- <div class="row" v-show="$parent.$parent.criteriaShow">
38
- <div class="form-group col-sm-4" >
39
- <label class="font_normal_body">安检状态</label>
40
- <v-select style="width:60% "
41
- class="select select_list"
42
- :value.sync="model.f_entry_status"
43
- v-model="model.f_entry_status"
44
- :options='$parent.$parent.entry_status'
45
- placeholder='安检状态'
46
- condition="f_entry_status = '{}'"
47
- close-on-select>
48
- </v-select>
49
- </div>
50
- <div class="form-group col-sm-4" >
51
- <label class="font_normal_body">气表编号</label>
52
- <input type="text" class="input_search" style="width:60%" v-model="model.f_meternumber" placeholder='气表编号'
53
- condition="f_meternumber = '{}'" @keyup.enter="search()">
54
- </div>
55
- <div class="form-group col-sm-4" >
56
- <label class="font_normal_body">气表品牌</label>
57
- <input type="text" class="input_search" style="width:60%" v-model="model.f_meter_brand" placeholder='气表品牌'
58
- condition="f_meter_brand like '%{}%'" @keyup.enter="search()">
59
- </div>
60
- <div class="form-group col-sm-4" >
61
- <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
62
- <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area" placeholder='小区'
63
- condition="f_residential_area like '%{}%'" @keyup.enter="search()">
64
- </div>
65
- <div class="form-group col-sm-4" >
66
- <label class="font_normal_body">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
67
- <input type="text" class="input_search" style="width:60%" v-model="model.f_building" placeholder='楼号'
68
- condition="f_building like '%{}%'" @keyup.enter="search()">
69
- </div>
70
- </div>
71
- <div class="row">
72
- <div class="form-group col-sm-2 button-range" >
73
- <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
74
- <export-excel :data="$parent.$parent.exportParameter"
75
- :field="$parent.$parent.excelHeaders"
76
- sqlurl="api/af-safecheck/logic/exportfile" sql-name="getCheckPlanUserList"
77
- template-name='安检情况明细' :choose-col="true">
78
- </export-excel>
79
- <!--展示下方条件或隐藏-->
80
- <div class="span" style="float:right;">
81
- <div class="button_spacing" style="float: right;margin-left:10px"
82
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
83
- @click="$parent.$parent.hidden()">
84
- </div>
85
- </div>
86
- </div>
87
- </div>
88
- </div>
89
- </criteria>
90
- <data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
91
- <template partial='head' >
92
- <tr>
93
- <th><nobr>序号</nobr></th>
94
- <th><nobr>用户编号</nobr></th>
95
- <th><nobr>用户姓名</nobr></th>
96
- <th><nobr>用户电话</nobr></th>
97
- <th><nobr>气表编号</nobr></th>
98
- <th><nobr>气表品牌</nobr></th>
99
- <th><nobr>用户类型</nobr></th>
100
- <th><nobr>用户地址</nobr></th>
101
- <th><nobr>是否已检</nobr></th>
102
- <th><nobr>安检状态</nobr></th>
103
- <th><nobr>安检时间</nobr></th>
104
- <th><nobr>隐患状态</nobr></th>
105
- <th><nobr>上报条数</nobr></th>
106
- </tr>
107
- </template>
108
- <template partial='body' >
109
- <tr >
110
- <td style="text-align:center;">{{$index+1}}</td>
111
- <td style="text-align:center"><span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></td>
112
- <td style="text-align:center">{{row.f_user_name}}</td>
113
- <td style="text-align:center">{{row.f_user_phone}}</td>
114
- <td style="text-align:center">{{row.f_meternumber}}</td>
115
- <td style="text-align:center">{{row.f_meter_brand}}</td>
116
- <td style="text-align:center">{{row.f_user_type}}</td>
117
- <td style="text-align:center;white-space: nowrap;">{{row.f_address}}</td>
118
- <td style="text-align:center">{{row.f_state}}</td>
119
- <td style="text-align:center">{{row.f_entry_status}}</td>
120
- <td style="text-align:center">{{row.f_offsite_time}}</td>
121
- <td style="text-align:center">{{row.f_defect_content}}</td>
122
- <td style="text-align:center">{{row.f_check_number}}</td>
123
- </tr>
124
- </template>
125
- <template partial='foot'></template>
126
- </data-grid>
127
- </criteria-paged>
128
- </div>
129
- </template>
130
-
131
- <script>
132
- import { PagedList } from 'vue-client'
133
- export default {
134
- title: '安检情况明细',
135
- data () {
136
- return {
137
- model: new PagedList('api/af-safecheck/sql/getCheckPlanUserList', 50, {}),
138
- condition: '',
139
- getfield: {},
140
- userType:[{label:'全部',value:''}, ...this.$appdata.getParam('用户类型')],
141
- entry_status:[{label:'全部',value:''}, ...this.$appdata.getParam('安检状态')],
142
- checkState:[{label:'全部',value:''},{label:'已检',value:'已检'},{label:'未检',value:'未检'}],
143
- config: {
144
- excelHeaders: {
145
- 'f_price_name': '气价名称', 'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_address': '客户地址',
146
- 'f_orgname': '组织机构'
147
- }
148
- },
149
- criteriaShow:false,
150
- excelHeaders: {
151
- 'f_userinfo_code':'用户编号',
152
- 'f_user_name':'用户姓名',
153
- 'f_user_phone':'用户电话',
154
- 'f_meternumber':'气表编号',
155
- 'f_meter_brand':'气表品牌',
156
- 'f_user_type':'用户类型',
157
- 'f_address':'用户地址',
158
- 'f_state':'是否已检',
159
- 'f_entry_status':'安检状态',
160
- 'f_offsite_time':'安检时间',
161
- 'f_defect_content':'隐患状态',
162
- 'f_check_number':'上报条数'
163
- }
164
- }
165
- },
166
- props: ['checkrow'],
167
- ready () {
168
-
169
- this.search()
170
- this.getfield = this.config.excelHeaders
171
- },
172
- methods: {
173
- search () {
174
- this.$refs.paged.$refs.criteria.search()
175
- },
176
- selfSearch (args) {
177
- if(!this.checkrow){
178
- return
179
- }
180
- // args.condition = `${args.condition} and f_price_id = '${this.priceid}'`
181
- //tag
182
- var cc= this.$parent.$refs.list.model.condition
183
- //tag
184
- this.condition = args.condition
185
- args.condition=args.condition+' and '+ cc
186
- //tag
187
- var self=this
188
- this.$parent.$refs.list.nameForSql.forEach(function (s) {
189
-
190
- if(s!='f_user_number'&&self.checkrow[s]!='undefined'&&self.checkrow[s]){
191
- var rowsname=self.checkrow[s].replace('*&','')
192
- args.condition=args.condition+" and s."+s+"=\'"+rowsname+"\'"
193
- }
194
- })
195
-
196
- //tag
197
- this.model.search(args.condition, args.model)
198
- },
199
- dealmsg (val) {
200
- //tag
201
- this.$parent.f_userinfo_id=val.f_userinfoid
202
- this.$parent.listpage=false
203
- },
204
- hidden() {
205
- this.criteriaShow = !this.criteriaShow
206
- },
207
- },
208
- watch: {
209
- 'checkrow' () {
210
- this.search()
211
- }
212
- },computed: {
213
- // 导出到Excel的条件构造
214
- exportParameter() {
215
- return {
216
- condition: this.$refs.paged.model.condition,
217
- startyear: this.$parent.$refs.list.model.params.startyear,
218
- startmon: this.$parent.$refs.list.model.params.startmon,
219
- endyear :this.$parent.$refs.list.model.params.endyear,
220
- endmon: this.$parent.$refs.list.model.params.endmon,
221
- f_user_type: this.$parent.$refs.list.model.params.f_user_type
222
- }
223
- }
224
- }
225
- }
226
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" 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="form-group col-sm-4" >
8
+ <label class="font_normal_body">客户编号</label>
9
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
10
+ condition="f_userinfo_code = '{}'" @keyup.enter="search()">
11
+ </div>
12
+ <div class="form-group col-sm-4" >
13
+ <label class="font_normal_body">用户类型</label>
14
+ <v-select style="width:60% "
15
+ class="select select_list"
16
+ :value.sync="model.f_user_type"
17
+ v-model="model.f_user_type"
18
+ :options='$parent.$parent.userType'
19
+ placeholder='用户类型'
20
+ condition="f_user_type = '{}'"
21
+ close-on-select>
22
+ </v-select>
23
+ </div>
24
+ <div class="form-group col-sm-4" >
25
+ <label class="font_normal_body">是否已检</label>
26
+ <v-select style="width:60% "
27
+ class="select select_list"
28
+ :value.sync="model.f_state"
29
+ v-model="model.f_state"
30
+ :options='$parent.$parent.checkState'
31
+ placeholder='是否已检'
32
+ condition="f_state = '{}'"
33
+ close-on-select>
34
+ </v-select>
35
+ </div>
36
+ </div>
37
+ <div class="row" v-show="$parent.$parent.criteriaShow">
38
+ <div class="form-group col-sm-4" >
39
+ <label class="font_normal_body">安检状态</label>
40
+ <v-select style="width:60% "
41
+ class="select select_list"
42
+ :value.sync="model.f_entry_status"
43
+ v-model="model.f_entry_status"
44
+ :options='$parent.$parent.entry_status'
45
+ placeholder='安检状态'
46
+ condition="f_entry_status = '{}'"
47
+ close-on-select>
48
+ </v-select>
49
+ </div>
50
+ <div class="form-group col-sm-4" >
51
+ <label class="font_normal_body">气表编号</label>
52
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_meternumber" placeholder='气表编号'
53
+ condition="f_meternumber = '{}'" @keyup.enter="search()">
54
+ </div>
55
+ <div class="form-group col-sm-4" >
56
+ <label class="font_normal_body">气表品牌</label>
57
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_meter_brand" placeholder='气表品牌'
58
+ condition="f_meter_brand like '%{}%'" @keyup.enter="search()">
59
+ </div>
60
+ <div class="form-group col-sm-4" >
61
+ <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
62
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area" placeholder='小区'
63
+ condition="f_residential_area like '%{}%'" @keyup.enter="search()">
64
+ </div>
65
+ <div class="form-group col-sm-4" >
66
+ <label class="font_normal_body">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
67
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_building" placeholder='楼号'
68
+ condition="f_building like '%{}%'" @keyup.enter="search()">
69
+ </div>
70
+ </div>
71
+ <div class="row">
72
+ <div class="form-group col-sm-2 button-range" >
73
+ <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
74
+ <export-excel :data="$parent.$parent.exportParameter"
75
+ :field="$parent.$parent.excelHeaders"
76
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="getCheckPlanUserList"
77
+ template-name='安检情况明细' :choose-col="true">
78
+ </export-excel>
79
+ <!--展示下方条件或隐藏-->
80
+ <div class="span" style="float:right;">
81
+ <div class="button_spacing" style="float: right;margin-left:10px"
82
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
83
+ @click="$parent.$parent.hidden()">
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ </criteria>
90
+ <data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
91
+ <template partial='head' >
92
+ <tr>
93
+ <th><nobr>序号</nobr></th>
94
+ <th><nobr>用户编号</nobr></th>
95
+ <th><nobr>用户姓名</nobr></th>
96
+ <th><nobr>用户电话</nobr></th>
97
+ <th><nobr>气表编号</nobr></th>
98
+ <th><nobr>气表品牌</nobr></th>
99
+ <th><nobr>用户类型</nobr></th>
100
+ <th><nobr>用户地址</nobr></th>
101
+ <th><nobr>是否已检</nobr></th>
102
+ <th><nobr>安检状态</nobr></th>
103
+ <th><nobr>安检时间</nobr></th>
104
+ <th><nobr>隐患状态</nobr></th>
105
+ <th><nobr>上报条数</nobr></th>
106
+ </tr>
107
+ </template>
108
+ <template partial='body' >
109
+ <tr >
110
+ <td style="text-align:center;">{{$index+1}}</td>
111
+ <td style="text-align:center"><span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></td>
112
+ <td style="text-align:center">{{row.f_user_name}}</td>
113
+ <td style="text-align:center">{{row.f_user_phone}}</td>
114
+ <td style="text-align:center">{{row.f_meternumber}}</td>
115
+ <td style="text-align:center">{{row.f_meter_brand}}</td>
116
+ <td style="text-align:center">{{row.f_user_type}}</td>
117
+ <td style="text-align:center;white-space: nowrap;">{{row.f_address}}</td>
118
+ <td style="text-align:center">{{row.f_state}}</td>
119
+ <td style="text-align:center">{{row.f_entry_status}}</td>
120
+ <td style="text-align:center">{{row.f_offsite_time}}</td>
121
+ <td style="text-align:center">{{row.f_defect_content}}</td>
122
+ <td style="text-align:center">{{row.f_check_number}}</td>
123
+ </tr>
124
+ </template>
125
+ <template partial='foot'></template>
126
+ </data-grid>
127
+ </criteria-paged>
128
+ </div>
129
+ </template>
130
+
131
+ <script>
132
+ import { PagedList } from 'vue-client'
133
+ export default {
134
+ title: '安检情况明细',
135
+ data () {
136
+ return {
137
+ model: new PagedList('api/af-safecheck/sql/getCheckPlanUserList', 50, {}),
138
+ condition: '',
139
+ getfield: {},
140
+ userType:[{label:'全部',value:''}, ...this.$appdata.getParam('用户类型')],
141
+ entry_status:[{label:'全部',value:''}, ...this.$appdata.getParam('安检状态')],
142
+ checkState:[{label:'全部',value:''},{label:'已检',value:'已检'},{label:'未检',value:'未检'}],
143
+ config: {
144
+ excelHeaders: {
145
+ 'f_price_name': '气价名称', 'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_address': '客户地址',
146
+ 'f_orgname': '组织机构'
147
+ }
148
+ },
149
+ criteriaShow:false,
150
+ excelHeaders: {
151
+ 'f_userinfo_code':'用户编号',
152
+ 'f_user_name':'用户姓名',
153
+ 'f_user_phone':'用户电话',
154
+ 'f_meternumber':'气表编号',
155
+ 'f_meter_brand':'气表品牌',
156
+ 'f_user_type':'用户类型',
157
+ 'f_address':'用户地址',
158
+ 'f_state':'是否已检',
159
+ 'f_entry_status':'安检状态',
160
+ 'f_offsite_time':'安检时间',
161
+ 'f_defect_content':'隐患状态',
162
+ 'f_check_number':'上报条数'
163
+ }
164
+ }
165
+ },
166
+ props: ['checkrow'],
167
+ ready () {
168
+
169
+ this.search()
170
+ this.getfield = this.config.excelHeaders
171
+ },
172
+ methods: {
173
+ search () {
174
+ this.$refs.paged.$refs.criteria.search()
175
+ },
176
+ selfSearch (args) {
177
+ if(!this.checkrow){
178
+ return
179
+ }
180
+ // args.condition = `${args.condition} and f_price_id = '${this.priceid}'`
181
+ //tag
182
+ var cc= this.$parent.$refs.list.model.condition
183
+ //tag
184
+ this.condition = args.condition
185
+ args.condition=args.condition+' and '+ cc
186
+ //tag
187
+ var self=this
188
+ this.$parent.$refs.list.nameForSql.forEach(function (s) {
189
+
190
+ if(s!='f_user_number'&&self.checkrow[s]!='undefined'&&self.checkrow[s]){
191
+ var rowsname=self.checkrow[s].replace('*&','')
192
+ args.condition=args.condition+" and s."+s+"=\'"+rowsname+"\'"
193
+ }
194
+ })
195
+
196
+ //tag
197
+ this.model.search(args.condition, args.model)
198
+ },
199
+ dealmsg (val) {
200
+ //tag
201
+ this.$parent.f_userinfo_id=val.f_userinfoid
202
+ this.$parent.listpage=false
203
+ },
204
+ hidden() {
205
+ this.criteriaShow = !this.criteriaShow
206
+ },
207
+ },
208
+ watch: {
209
+ 'checkrow' () {
210
+ this.search()
211
+ }
212
+ },computed: {
213
+ // 导出到Excel的条件构造
214
+ exportParameter() {
215
+ return {
216
+ condition: this.$refs.paged.model.condition,
217
+ startyear: this.$parent.$refs.list.model.params.startyear,
218
+ startmon: this.$parent.$refs.list.model.params.startmon,
219
+ endyear :this.$parent.$refs.list.model.params.endyear,
220
+ endmon: this.$parent.$refs.list.model.params.endmon,
221
+ f_user_type: this.$parent.$refs.list.model.params.f_user_type
222
+ }
223
+ }
224
+ }
225
+ }
226
+ </script>