safecheck-client 3.0.35-6 → 3.0.35-8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -31
  3. package/src/components/android/AddPlanItemYy.vue +451 -451
  4. package/src/components/android/CivilCurrentCreate.vue +46 -41
  5. package/src/components/android/examples/SafeListExamples.vue +296 -296
  6. package/src/components/android/examples/UserExamples.vue +136 -136
  7. package/src/components/rongcheng/AspiratedAreaPlan.vue +574 -574
  8. package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1236
  9. package/src/filiale/bayan/android/AddPlanItem.vue +441 -430
  10. package/src/filiale/bayan/android/PaperFeedback.vue +1669 -1669
  11. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1380 -1380
  12. package/src/filiale/bayan/android/SafecheckOrderV.vue +2922 -2922
  13. package/src/filiale/bayan/android/SafecheckUserInfo.vue +4 -0
  14. package/src/filiale/bayan/pc/CheckPlanAreaList.vue +607 -607
  15. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  16. package/src/filiale/bayan/pc/NewCheckpaper.vue +1992 -1992
  17. package/src/filiale/bayan/pc/PaperList.vue +900 -900
  18. package/src/filiale/bayan/pc/SelectCheckPlan.vue +391 -391
  19. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  20. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1207 -1207
  21. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +3035 -3035
  22. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1053 -1053
  23. package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
  24. package/src/filiale/xilan/android.js +11 -11
  25. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  26. package/src/safecheck-android.js +307 -307
@@ -1,295 +1,295 @@
1
- <template>
2
- <div id='app' class="basic-main" style="height: 100%">
3
- <criteria-paged :model="model" v-ref:paged :pager='false'>
4
- <criteria partial='criteria' v-ref:criteria @condition-changed='search' class="search_area">
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <!-- <div class="col-sm-4 form-group">-->
8
- <!-- <role-selector-safe-->
9
- <!-- role-name="安检员"-->
10
- <!-- role-lable="安&ensp;检&ensp;员"-->
11
- <!-- @re-res="$parent.$parent.getRes"-->
12
- <!-- :value.sync="model.f_checker_id"-->
13
- <!-- v-model="model.f_checker_id"-->
14
- <!-- condition="f_checker_name like '%{}%'">-->
15
- <!-- </role-selector-safe>-->
16
- <!-- </div>-->
17
- <div class="form-group col-sm-2" >
18
- <label class="font_normal_body" >区&emsp;&emsp;域</label>
19
- <v-select :value.sync="model.f_quyu" :value-single="true" v-model="model.f_quyu"
20
- :options='$parent.$parent.quyus' placeholder='区域' class="select_list select" style="width: 60%"
21
- @change="$parent.$parent.quyuChange"
22
- close-on-select>
23
- </v-select>
24
- </div>
25
- <div class="form-group col-sm-2" >
26
- <label class="font_normal_body" >营&ensp;业&ensp;厅</label>
27
- <v-select :value.sync="model.f_bumen" :value-single="true" v-model="model.f_bumen"
28
- :options='$parent.$parent.bumens' placeholder='营业厅'
29
- @change="$parent.$parent.bumenChange" class="select_list select" style="width: 60%"
30
- close-on-select>
31
- </v-select>
32
- </div>
33
- <div class="form-group col-sm-2" >
34
- <label class="font_normal_body">小&emsp;&emsp;组</label>
35
- <v-select :value.sync="model.f_team" :value-single="true" v-model="model.f_team"
36
- :options='$parent.$parent.teams' placeholder='小组'
37
- @change="$parent.$parent.teamChange" class="select_list select" style="width: 60%"
38
- close-on-select>
39
- </v-select>
40
- </div>
41
- <div class="form-group col-sm-2" >
42
- <label class="font_normal_body" >安&ensp;检&ensp;员</label>
43
- <v-select :value.sync="model.f_checker_id" v-model="model.f_checker_id"
44
- :multiple="true" class="select_list select" style="width: 60%"
45
- :options='$parent.$parent.checkers' placeholder='安检员' condition="f_checker_name in {}"
46
- close-on-select>
47
- </v-select>
48
- </div>
49
- <div class="col-sm-2 form-group">
50
- <label for="startDate" class="font_normal_body">开始日期:</label>
51
- <datepicker id="startDate" placeholder="开始日期"
52
- v-model="model.startDate"
53
- :value.sync="model.startDate"
54
- style="width: 60%;"
55
- :disabled-days-of-Week="[]"
56
- :format="'yyyy-MM-dd 00:00:00'"
57
- :show-reset-button="reset">
58
- </datepicker>
59
- </div>
60
- <div class="col-sm-2 form-group">
61
- <label for="endDate" class="font_normal_body">结束日期:</label>
62
- <datepicker id="endDate" placeholder="结束日期"
63
- v-model="model.endDate"
64
- :value.sync="model.endDate"
65
- :disabled-days-of-Week="[]"
66
- style="width: 60%;"
67
- :format="'yyyy-MM-dd 23:59:59'"
68
- :show-reset-button="reset">
69
- </datepicker>
70
- </div>
71
- <div class="col-sm-2 form-group" >
72
- <label class="font_normal_body">用气性质</label>
73
- <v-select
74
- class="select_list select"
75
- placeholder='用气性质' style="width: 60%"
76
- v-model='model.userType'
77
- :value.sync="model.userType"
78
- :options='$parent.$parent.userTypes'
79
- condition="tuf.f_gasproperties in {} "
80
- :multiple="true"
81
- ></v-select>
82
- </div>
83
- <div class="col-sm-2 form-group" >
84
- <label class="font_normal_body">气表类型</label>
85
- <v-select
86
- class="select_list select"
87
- placeholder='气表类型' style="width: 60%"
88
- v-model='model.tableType'
89
- :value.sync="model.tableType"
90
- :options='$parent.$parent.tableTypes'
91
- condition="tuf.f_meter_classify = '{}'"
92
- :value-single="true"
93
- close-on-select clear-button></v-select>
94
- </div>
95
- <div class="col-sm-2 form-group" >
96
- <label class="font_normal_body">气表品牌</label>
97
- <v-select
98
- class="select_list select"
99
- placeholder='气表类型' style="width: 60%"
100
- v-model='model.tableBrand'
101
- :value.sync="model.tableBrand"
102
- :options='$parent.$parent.tableBrands'
103
- condition="gb.f_meter_brand = '{}'"
104
- :value-single="true"
105
- close-on-select clear-button></v-select>
106
- </div>
107
- <div class="col-sm-2 form-group" >
108
- <label class="font_normal_body">用户类型</label>
109
- <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
110
- :value-single="true" style="width: 60%"
111
- class="select_list select"
112
- :options='$parent.$parent.checktype' placeholder='客户类型'
113
- close-on-select
114
- condition="f_check_type = '{}'"></v-select>
115
- </div>
116
- <div class="col-sm-2 form-group" >
117
- <label class="font_normal_body">小&emsp;&emsp;区</label>
118
- <v-select :value.sync="model.f_residential_area" v-model='model.f_residential_area'
119
- :value-single="true" style="width: 60%"
120
- class="select_list select"
121
- :options='$parent.$parent.areaList' placeholder='小区'
122
- close-on-select
123
- condition="tp.f_residential_area = '{}'"></v-select>
124
- </div>
125
- <div class="col-sm-4 form-group" style="margin-top: 8px">
126
- <button class="button_search button_spacing" @click="search()">查询</button>
127
- <button class="button_search button_spacing" @click="$parent.$parent.clearmsg()">置空</button>
128
- <report-print class="button_export button_spacing" style="width:28%" id='shexian'></report-print>
129
- <report-excel class="button_export button_spacing" style="width:28%" id='shexian'></report-excel>
130
- </div>
131
- </div>
132
- </div>
133
- </criteria>
134
- <div partial='list' id='shexian' class="list_area" style="overflow-y: scroll">
135
- <table class='tableprint' style="margin: 0px auto">
136
- <thead>
137
- <tr>
138
- <th colspan='5' style="font-weight: normal; text-align: left;">
139
- <h3 style="text-align: center">隐患报表</h3>
140
- </th>
141
- </tr>
142
- <tr>
143
- <th colspan='5' style="font-weight: normal; text-align: center;">
144
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
145
- 结束时间:{{ model.model.endDate }}
146
- </th>
147
- </tr>
148
- </thead>
149
- <tr>
150
- <th colspan='5' style="font-weight: normal;">
151
- {{{ model.data.substring(26,model.data.length-8) }}}
152
- </th>
153
- </tr>
154
- </table>
155
- </div>
156
- </criteria-paged>
157
- </div>
158
-
159
- </template>
160
-
161
- <script>
162
- import {DataModel, HttpResetClass} from 'vue-client'
163
-
164
- export default {
165
- title: '隐患报表',
166
- data () {
167
-
168
- let model = new DataModel('rs/report/hiddensituation', {
169
- startDate: 'this.model.startDate',
170
- endDate: 'this.model.endDate',
171
- f_filialeid: 'this.f_filialeid'
172
- })
173
- model.f_filialeid = '(' + this.$login.f.orgid + ')'
174
- return {
175
- checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
176
- allCheckers: [{label: '请选择', value: ''}],
177
- quyus: [{label: '请选择', value: ''}, ...this.$appdata.getParam('区域')],
178
- bumens: [{label: '请选择', value: ''}],
179
- teams: [{label: '请选择', value: ''}],
180
- checkers:[{label: '请选择', value: ''}],
181
- userTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
182
- tableTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')],
183
- tableBrands: [{label: '全部', value: ''}],
184
- filialeNameStr: '',
185
- filialeCodeStr: '',
186
- userid: this.$login.f.id,
187
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
188
- model: model,
189
- areaList:[]
190
- }
191
- },
192
- methods: {
193
- //置空 查询条件
194
- clearmsg() {
195
- this.$refs.paged.$refs.criteria.model = {
196
- f_area:'',
197
- f_check_type:'',
198
- tableBrand:'',
199
- tableType:'',
200
- userType:[],
201
- endDate:'',
202
- startDate:'',
203
- f_checker_id:[],
204
- f_team:'',
205
- f_bumen:'',
206
- f_quyu:''
207
- }
208
- },
209
- getareaList(){
210
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {data:{items:" * ",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.$login.f.orgid}'`}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
211
- this.areaList=[]
212
- if(res.data.length>0){
213
- this.areaList.push({label:"全部",value:""})
214
- res.data.forEach((result)=>{
215
- this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
216
- })
217
- }
218
- })
219
- },
220
- bumenChange(val) {
221
- if (val) {
222
- this.teams = this.$appdata.getParam(`工单-` + val) ? [{
223
- label: '请选择',
224
- value: ''
225
- }, ...this.$appdata.getParam(`工单-` + val)] : [{label: '请选择', value: ''}]
226
- }else {
227
- this.checkers = this.allCheckers
228
- }
229
- },
230
- teamChange(val) {
231
- if (val) {
232
- this.checkers = this.$appdata.getParam(val) ? [...this.$appdata.getParam(val)] : [{label: '请选择', value: ''}]
233
- }else {
234
- this.checkers = this.allCheckers
235
- }
236
- },
237
- quyuChange(val) {
238
- if (val) {
239
- this.bumens = this.$appdata.getParam(val) ? [{
240
- label: '请选择',
241
- value: ''
242
- }, ...this.$appdata.getParam(val)] : [{label: '请选择', value: ''}]
243
- }else {
244
- this.checkers = this.allCheckers
245
- }
246
- },
247
- getRes (obj) {
248
- this.model.f_filialeid = this.$login.convertToIn(obj.resids)
249
- },
250
- getTableBrands() {
251
- new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
252
- {data: {items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 `}},
253
- {resolveMsg: null, rejectMsg: null}).then((resp) => {
254
- resp.data.forEach((result) => {
255
- this.tableBrands.push({label: result.f_meter_brand, value: result.f_meter_brand})
256
- })
257
- })
258
- },
259
- getAllChecker() {
260
- new HttpResetClass().load('POST', `/rs/sql/tel_singleTable_OrderBy`, {
261
- data: {
262
- items: 'name',
263
- tablename: 't_user',
264
- condition: `state = '在职' and rolestr like '%安检员%'`,
265
- orderitem: 'id'
266
- }
267
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
268
- res.data.forEach(ress => {
269
- this.allCheckers.push({
270
- label: ress.name,
271
- value: ress.name
272
- })
273
- })
274
- this.checkers = this.allCheckers
275
- })
276
- }
277
- },
278
- ready () {
279
- this.getAllChecker()
280
- this.getTableBrands()
281
- this.getareaList()
282
- },
283
- computed: {
284
- selected () {
285
- return this.$refs.grid.selected
286
- }
287
- // outlets () {
288
- // return [{label: '全部', value: ''}, ...AppData.getParam('营业网点')]
289
- // },
290
- // operator () {
291
- // return [{label: '全部', value: ''}, ...AppData.getParam('操作员')]
292
- // }
293
- }
294
- }
295
- </script>
1
+ <template>
2
+ <div id='app' class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" v-ref:paged :pager='false'>
4
+ <criteria partial='criteria' v-ref:criteria @condition-changed='search' class="search_area">
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <!-- <div class="col-sm-4 form-group">-->
8
+ <!-- <role-selector-safe-->
9
+ <!-- role-name="安检员"-->
10
+ <!-- role-lable="安&ensp;检&ensp;员"-->
11
+ <!-- @re-res="$parent.$parent.getRes"-->
12
+ <!-- :value.sync="model.f_checker_id"-->
13
+ <!-- v-model="model.f_checker_id"-->
14
+ <!-- condition="f_checker_name like '%{}%'">-->
15
+ <!-- </role-selector-safe>-->
16
+ <!-- </div>-->
17
+ <div class="form-group col-sm-2" >
18
+ <label class="font_normal_body" >区&emsp;&emsp;域</label>
19
+ <v-select :value.sync="model.f_quyu" :value-single="true" v-model="model.f_quyu"
20
+ :options='$parent.$parent.quyus' placeholder='区域' class="select_list select" style="width: 60%"
21
+ @change="$parent.$parent.quyuChange"
22
+ close-on-select>
23
+ </v-select>
24
+ </div>
25
+ <div class="form-group col-sm-2" >
26
+ <label class="font_normal_body" >营&ensp;业&ensp;厅</label>
27
+ <v-select :value.sync="model.f_bumen" :value-single="true" v-model="model.f_bumen"
28
+ :options='$parent.$parent.bumens' placeholder='营业厅'
29
+ @change="$parent.$parent.bumenChange" class="select_list select" style="width: 60%"
30
+ close-on-select>
31
+ </v-select>
32
+ </div>
33
+ <div class="form-group col-sm-2" >
34
+ <label class="font_normal_body">小&emsp;&emsp;组</label>
35
+ <v-select :value.sync="model.f_team" :value-single="true" v-model="model.f_team"
36
+ :options='$parent.$parent.teams' placeholder='小组'
37
+ @change="$parent.$parent.teamChange" class="select_list select" style="width: 60%"
38
+ close-on-select>
39
+ </v-select>
40
+ </div>
41
+ <div class="form-group col-sm-2" >
42
+ <label class="font_normal_body" >安&ensp;检&ensp;员</label>
43
+ <v-select :value.sync="model.f_checker_id" v-model="model.f_checker_id"
44
+ :multiple="true" class="select_list select" style="width: 60%"
45
+ :options='$parent.$parent.checkers' placeholder='安检员' condition="f_checker_name in {}"
46
+ close-on-select>
47
+ </v-select>
48
+ </div>
49
+ <div class="col-sm-2 form-group">
50
+ <label for="startDate" class="font_normal_body">开始日期:</label>
51
+ <datepicker id="startDate" placeholder="开始日期"
52
+ v-model="model.startDate"
53
+ :value.sync="model.startDate"
54
+ style="width: 60%;"
55
+ :disabled-days-of-Week="[]"
56
+ :format="'yyyy-MM-dd 00:00:00'"
57
+ :show-reset-button="reset">
58
+ </datepicker>
59
+ </div>
60
+ <div class="col-sm-2 form-group">
61
+ <label for="endDate" class="font_normal_body">结束日期:</label>
62
+ <datepicker id="endDate" placeholder="结束日期"
63
+ v-model="model.endDate"
64
+ :value.sync="model.endDate"
65
+ :disabled-days-of-Week="[]"
66
+ style="width: 60%;"
67
+ :format="'yyyy-MM-dd 23:59:59'"
68
+ :show-reset-button="reset">
69
+ </datepicker>
70
+ </div>
71
+ <div class="col-sm-2 form-group" >
72
+ <label class="font_normal_body">用气性质</label>
73
+ <v-select
74
+ class="select_list select"
75
+ placeholder='用气性质' style="width: 60%"
76
+ v-model='model.userType'
77
+ :value.sync="model.userType"
78
+ :options='$parent.$parent.userTypes'
79
+ condition="tuf.f_gasproperties in {} "
80
+ :multiple="true"
81
+ ></v-select>
82
+ </div>
83
+ <div class="col-sm-2 form-group" >
84
+ <label class="font_normal_body">气表类型</label>
85
+ <v-select
86
+ class="select_list select"
87
+ placeholder='气表类型' style="width: 60%"
88
+ v-model='model.tableType'
89
+ :value.sync="model.tableType"
90
+ :options='$parent.$parent.tableTypes'
91
+ condition="tuf.f_meter_classify = '{}'"
92
+ :value-single="true"
93
+ close-on-select clear-button></v-select>
94
+ </div>
95
+ <div class="col-sm-2 form-group" >
96
+ <label class="font_normal_body">气表品牌</label>
97
+ <v-select
98
+ class="select_list select"
99
+ placeholder='气表类型' style="width: 60%"
100
+ v-model='model.tableBrand'
101
+ :value.sync="model.tableBrand"
102
+ :options='$parent.$parent.tableBrands'
103
+ condition="gb.f_meter_brand = '{}'"
104
+ :value-single="true"
105
+ close-on-select clear-button></v-select>
106
+ </div>
107
+ <div class="col-sm-2 form-group" >
108
+ <label class="font_normal_body">用户类型</label>
109
+ <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
110
+ :value-single="true" style="width: 60%"
111
+ class="select_list select"
112
+ :options='$parent.$parent.checktype' placeholder='客户类型'
113
+ close-on-select
114
+ condition="f_check_type = '{}'"></v-select>
115
+ </div>
116
+ <div class="col-sm-2 form-group" >
117
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
118
+ <v-select :value.sync="model.f_residential_area" v-model='model.f_residential_area'
119
+ :value-single="true" style="width: 60%"
120
+ class="select_list select"
121
+ :options='$parent.$parent.areaList' placeholder='小区'
122
+ close-on-select
123
+ condition="tp.f_residential_area = '{}'"></v-select>
124
+ </div>
125
+ <div class="col-sm-4 form-group" style="margin-top: 8px">
126
+ <button class="button_search button_spacing" @click="search()">查询</button>
127
+ <button class="button_search button_spacing" @click="$parent.$parent.clearmsg()">置空</button>
128
+ <report-print class="button_export button_spacing" style="width:28%" id='shexian'></report-print>
129
+ <report-excel class="button_export button_spacing" style="width:28%" id='shexian'></report-excel>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </criteria>
134
+ <div partial='list' id='shexian' class="list_area" style="overflow-y: scroll">
135
+ <table class='tableprint' style="margin: 0px auto">
136
+ <thead>
137
+ <tr>
138
+ <th colspan='5' style="font-weight: normal; text-align: left;">
139
+ <h3 style="text-align: center">隐患报表</h3>
140
+ </th>
141
+ </tr>
142
+ <tr>
143
+ <th colspan='5' style="font-weight: normal; text-align: center;">
144
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
145
+ 结束时间:{{ model.model.endDate }}
146
+ </th>
147
+ </tr>
148
+ </thead>
149
+ <tr>
150
+ <th colspan='5' style="font-weight: normal;">
151
+ {{{ model.data.substring(26,model.data.length-8) }}}
152
+ </th>
153
+ </tr>
154
+ </table>
155
+ </div>
156
+ </criteria-paged>
157
+ </div>
158
+
159
+ </template>
160
+
161
+ <script>
162
+ import {DataModel, HttpResetClass} from 'vue-client'
163
+
164
+ export default {
165
+ title: '隐患报表',
166
+ data () {
167
+
168
+ let model = new DataModel('rs/report/hiddensituation', {
169
+ startDate: 'this.model.startDate',
170
+ endDate: 'this.model.endDate',
171
+ f_filialeid: 'this.f_filialeid'
172
+ })
173
+ model.f_filialeid = '(' + this.$login.f.orgid + ')'
174
+ return {
175
+ checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
176
+ allCheckers: [{label: '请选择', value: ''}],
177
+ quyus: [{label: '请选择', value: ''}, ...this.$appdata.getParam('区域')],
178
+ bumens: [{label: '请选择', value: ''}],
179
+ teams: [{label: '请选择', value: ''}],
180
+ checkers:[{label: '请选择', value: ''}],
181
+ userTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
182
+ tableTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')],
183
+ tableBrands: [{label: '全部', value: ''}],
184
+ filialeNameStr: '',
185
+ filialeCodeStr: '',
186
+ userid: this.$login.f.id,
187
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
188
+ model: model,
189
+ areaList:[]
190
+ }
191
+ },
192
+ methods: {
193
+ //置空 查询条件
194
+ clearmsg() {
195
+ this.$refs.paged.$refs.criteria.model = {
196
+ f_area:'',
197
+ f_check_type:'',
198
+ tableBrand:'',
199
+ tableType:'',
200
+ userType:[],
201
+ endDate:'',
202
+ startDate:'',
203
+ f_checker_id:[],
204
+ f_team:'',
205
+ f_bumen:'',
206
+ f_quyu:''
207
+ }
208
+ },
209
+ getareaList(){
210
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {data:{items:" * ",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.$login.f.orgid}'`}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
211
+ this.areaList=[]
212
+ if(res.data.length>0){
213
+ this.areaList.push({label:"全部",value:""})
214
+ res.data.forEach((result)=>{
215
+ this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
216
+ })
217
+ }
218
+ })
219
+ },
220
+ bumenChange(val) {
221
+ if (val) {
222
+ this.teams = this.$appdata.getParam(`工单-` + val) ? [{
223
+ label: '请选择',
224
+ value: ''
225
+ }, ...this.$appdata.getParam(`工单-` + val)] : [{label: '请选择', value: ''}]
226
+ }else {
227
+ this.checkers = this.allCheckers
228
+ }
229
+ },
230
+ teamChange(val) {
231
+ if (val) {
232
+ this.checkers = this.$appdata.getParam(val) ? [...this.$appdata.getParam(val)] : [{label: '请选择', value: ''}]
233
+ }else {
234
+ this.checkers = this.allCheckers
235
+ }
236
+ },
237
+ quyuChange(val) {
238
+ if (val) {
239
+ this.bumens = this.$appdata.getParam(val) ? [{
240
+ label: '请选择',
241
+ value: ''
242
+ }, ...this.$appdata.getParam(val)] : [{label: '请选择', value: ''}]
243
+ }else {
244
+ this.checkers = this.allCheckers
245
+ }
246
+ },
247
+ getRes (obj) {
248
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids)
249
+ },
250
+ getTableBrands() {
251
+ new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
252
+ {data: {items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 `}},
253
+ {resolveMsg: null, rejectMsg: null}).then((resp) => {
254
+ resp.data.forEach((result) => {
255
+ this.tableBrands.push({label: result.f_meter_brand, value: result.f_meter_brand})
256
+ })
257
+ })
258
+ },
259
+ getAllChecker() {
260
+ new HttpResetClass().load('POST', `/rs/sql/tel_singleTable_OrderBy`, {
261
+ data: {
262
+ items: 'name',
263
+ tablename: 't_user',
264
+ condition: `state = '在职' and rolestr like '%安检员%'`,
265
+ orderitem: 'id'
266
+ }
267
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
268
+ res.data.forEach(ress => {
269
+ this.allCheckers.push({
270
+ label: ress.name,
271
+ value: ress.name
272
+ })
273
+ })
274
+ this.checkers = this.allCheckers
275
+ })
276
+ }
277
+ },
278
+ ready () {
279
+ this.getAllChecker()
280
+ this.getTableBrands()
281
+ this.getareaList()
282
+ },
283
+ computed: {
284
+ selected () {
285
+ return this.$refs.grid.selected
286
+ }
287
+ // outlets () {
288
+ // return [{label: '全部', value: ''}, ...AppData.getParam('营业网点')]
289
+ // },
290
+ // operator () {
291
+ // return [{label: '全部', value: ''}, ...AppData.getParam('操作员')]
292
+ // }
293
+ }
294
+ }
295
+ </script>