safecheck-client 3.0.39-1 → 3.0.39-2

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.
Files changed (30) hide show
  1. package/package.json +1 -1
  2. package/src/components/android/AreaPlan.vue +567 -566
  3. package/src/components/android/SafecheckDevices.vue +1300 -1300
  4. package/src/components/android/SealBind.vue +392 -392
  5. package/src/components/android/SealManage.vue +250 -250
  6. package/src/components/map/checkScreen.vue +920 -920
  7. package/src/filiale/dexin/android/AreaPlan.vue +567 -0
  8. package/src/filiale/dexin/android/SafecheckOrderV.vue +2983 -2983
  9. package/src/filiale/dexin/android.js +21 -20
  10. package/src/filiale/dexin/pc/PlanManage.vue +894 -894
  11. package/src/filiale/dexin/pc.js +15 -15
  12. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  13. package/src/filiale/huayin/android/AddPlanItem.vue +509 -509
  14. package/src/filiale/huayin/android/AreaPlan.vue +572 -572
  15. package/src/filiale/huayin/android/CurrentCreate.vue +1121 -1121
  16. package/src/filiale/huayin/android.js +16 -16
  17. package/src/filiale/huayin/pc/PaperList.vue +635 -635
  18. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1231 -1231
  19. package/src/filiale/tongchuan/android/AddPlanItemset.vue +484 -484
  20. package/src/filiale/tongchuan/android/PaperFeedback.vue +1317 -1317
  21. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1343 -1343
  22. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1209 -1209
  23. package/src/filiale/tongchuan/android.js +22 -22
  24. package/src/filiale/tongchuan/pc/CheckBookList.vue +377 -377
  25. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
  26. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +618 -618
  27. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +1524 -1524
  28. package/src/filiale/tongchuan/pc/PaperList.vue +684 -684
  29. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +278 -278
  30. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1136 -1136
@@ -1,377 +1,377 @@
1
- <template>
2
- <div class="flex">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" v-show="!$parent.$parent.$parent.showItemAll">
7
- <div :class="$parent.$parent.style2" style="margin: 0px">
8
- <role-selector-safe
9
- role-name="网格员"
10
- role-lable="网&nbsp;格&nbsp;员&nbsp;"
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="$parent.$parent.style">
18
- <label class="font_normal_body">片区名称</label>
19
- <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
20
- :value-single="true" style="width: 60%"
21
- class="select_list select"
22
- :options='$parent.$parent.checkBooks' placeholder='片区名称'
23
- close-on-select
24
- condition="tcb.id ='{}'"></v-select>
25
- </div>
26
- <!-- <div :class="$parent.$parent.style">-->
27
- <!-- <label class="font_normal_body">表册类型</label>-->
28
- <!-- <v-select :value.sync="model.f_check_book_type" v-model='model.f_check_book_type'-->
29
- <!-- :value-single="true" style="width: 60%"-->
30
- <!-- class="select_list select"-->
31
- <!-- :options='$parent.$parent.bookTypes' placeholder='表册类型'-->
32
- <!-- close-on-select-->
33
- <!-- condition="tcb.f_check_book_type ='{}'"></v-select>-->
34
- <!-- </div>-->
35
- <!-- <div :class="$parent.$parent.style">-->
36
- <!-- <label class="font_normal_body">用户类型</label>-->
37
- <!-- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'-->
38
- <!-- :value-single="true" style="width: 60%"-->
39
- <!-- class="select_list select"-->
40
- <!-- :options='$parent.$parent.userTypes' placeholder='用户类型'-->
41
- <!-- close-on-select-->
42
- <!-- condition="tcb.f_user_type ='{}'"></v-select>-->
43
- <!-- </div>-->
44
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
45
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
46
- <button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增片区</button>
47
- <button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">片区用户管理</button>
48
- <div style="float: right" class="button_spacing"
49
- v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
50
- :class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
51
- @click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
52
- </div>
53
-
54
-
55
- </div>
56
-
57
-
58
- <div class="row" v-show="$parent.$parent.$parent.showItemAll">
59
- <div :class="$parent.$parent.style2" style="margin: 0px">
60
- <role-selector-safe
61
- role-name="网格员"
62
- role-lable="网&nbsp;格&nbsp;员&nbsp;"
63
- @re-res="$parent.$parent.getRes"
64
- :value.sync="model.f_checker_id"
65
- v-model="model.f_checker_id"
66
- condition=" f_checker_name like '%{}%'">
67
- </role-selector-safe>
68
- </div>
69
- <div :class="$parent.$parent.style">
70
- <label class="font_normal_body">片区名</label>
71
- <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
72
- :value-single="true" style="width: 60%"
73
- class="select_list select"
74
- :options='$parent.$parent.checkBooks' placeholder='片区名称'
75
- close-on-select
76
- condition="tcb.id ='{}'"></v-select>
77
- </div>
78
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
79
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
80
- <button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增片区</button>
81
- <button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">片区用户管理</button>
82
- <div style="float: right" class="button_spacing"
83
- v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
84
- :class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
85
- @click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
86
- <!-- <div style="float: right" class="button_spacing"-->
87
- <!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
88
- <!-- @click="$parent.$parent.hidden()">-->
89
- <!-- </div>-->
90
- </div>
91
-
92
- </div>
93
-
94
- </div>
95
- </criteria>
96
- <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
97
- <template partial='head'>
98
- <tr>
99
- <th>
100
- <nobr>所属网格员</nobr>
101
- </th>
102
- <th>
103
- <nobr>片区名称</nobr>
104
- </th>
105
- <!-- <th>-->
106
- <!-- <nobr>片区类型</nobr>-->
107
- <!-- </th>-->
108
- <th>
109
- <nobr>用户类型</nobr>
110
- </th>
111
- <th>
112
- <nobr>创建日期</nobr>
113
- </th>
114
- <th>
115
- <nobr>创建人</nobr>
116
- </th>
117
-
118
- <th>
119
- <nobr>执行日期</nobr>
120
- </th>
121
- <th>
122
- <nobr>执行周期</nobr>
123
- </th>
124
- <th>
125
- <nobr>小区/单位数量</nobr>
126
- </th>
127
- <!-- <th>-->
128
- <!-- <nobr>已下发</nobr>-->
129
- <!-- </th>-->
130
- <!-- <th>-->
131
- <!-- <nobr>未下发</nobr>-->
132
- <!-- </th>-->
133
- <!-- <th>-->
134
- <!-- <nobr>已检</nobr>-->
135
- <!-- </th>-->
136
- <!-- <th>-->
137
- <!-- <nobr>未检</nobr>-->
138
- <!-- </th>-->
139
- <!-- <th v-show="$parent.$parent.$parent.showCaoZuo">-->
140
- <!-- <nobr>操作</nobr>-->
141
- <!-- </th>-->
142
- </tr>
143
- </template>
144
- <template partial='body'>
145
- <td style="text-align: center;">{{ row.f_checker_name }}</td>
146
- <td style="text-align: center;">{{ row.f_check_book_name }}</td>
147
- <!-- <td style="text-align: center;">{{ row.f_check_book_type }}</td>-->
148
- <td style="text-align: center;">{{ row.f_user_type }}</td>
149
- <td style="text-align: center;">{{ row.f_create_date }}</td>
150
- <td style="text-align: center;">{{ row.f_create_person }}</td>
151
- <td style="text-align: center;">{{ row.f_run_date }}</td>
152
- <td style="text-align: center;">{{ row.f_around_time }}{{ row.f_around_unit }}</td>
153
- <td style="text-align: center;"><button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link"><b>{{row.num2}}</b></button></td>
154
- <!-- <td style="text-align: center;">{{ row.xiafa }}</td>-->
155
- <!-- <td style="text-align: center;">{{ row.f_user_type =='民用'?row.num-row.xiafa:row.num4-row.xiafa }}</td>-->
156
- <!-- <td style="text-align: center;">{{ row.yijian }}</td>-->
157
- <!-- <td style="text-align: center;">{{ row.weijian }}</td>-->
158
- <!-- <td v-show="row.f_check_book_type!='小区'" style="text-align: center;"><button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.send(row)'>下发</button></td>-->
159
- </template>
160
- </data-grid>
161
- </criteria-paged>
162
- <modal :show.sync="showModal" :backdrop="false" id="checkbookEntryShow">
163
- <article slot="modal-body" class="modal-body">
164
- <check-book-entry v-if="showModal" @select-changed="selectedEntry"></check-book-entry>
165
- </article>
166
- <footer slot="modal-footer">
167
- </footer>
168
-
169
- </modal>
170
- <modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
171
- <article slot="modal-body" class="modal-body" style="height: 80vh">
172
- <check-book-search-user-list v-if="showSendModal" :row="checkBookRow" :bookrow="checkBookRow" :needprops="needprops":userlogin="userlogin"></check-book-search-user-list>
173
- </article>
174
- <footer slot="modal-footer">
175
- </footer>
176
-
177
- </modal>
178
- <work-busy :is-busy="loading"></work-busy>
179
- </div>
180
- </template>
181
-
182
- <script>
183
- import {PagedList} from 'vue-client'
184
- import {HttpResetClass} from 'vue-client'
185
- import bus from '../../../bus'
186
- export default {
187
- title: '用户安检情况',
188
- data () {
189
- return {
190
- loading:true,
191
- showSendModal:false,
192
- searchData: {
193
- condition: '1=1'
194
- },
195
- showCaoZuo:false,
196
- userlogin:{
197
- id:this.$login.f.id,
198
- name:this.$login.f.name,
199
- orgid:this.$login.f.orgid,
200
- orgstr:this.$login.f.orgs,
201
- },
202
- checkBooks:[],
203
- bookTypes: [{label: '全部', value: ''}, {label: '用户', value: '用户'}, {label: '小区', value: '小区'}],
204
- userTypes: [{label: '全部', value: ''}, {label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
205
- aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '日'}],
206
- showModal:false,
207
- excelHeaders: {
208
-
209
- 'f_userinfo_code': '用户编号',
210
- 'f_user_name': '用户名称',
211
- 'f_user_phone': '用户电话',
212
- 'f_meternumber': '用户表号',
213
- 'f_user_type': '用户类型',
214
- 'f_last_checker': '安检员',
215
- 'f_residential_area': '小区名称',
216
- 'f_address': '地址',
217
- 'f_last_check_date': '安检日期',
218
- 'f_last_check_state': '安检状态',
219
- 'f_last_check_result': '安检结果'
220
- },
221
- model: new PagedList('rs/sql/QueryCheckBook', 20),
222
- checkBookRow:{},
223
- checkBook :{
224
- f_check_book_name: '',
225
- f_run_date: '',
226
- f_around_time: '',
227
- f_around_unit: '',
228
- f_create_date: '',
229
- f_create_person: '',
230
- f_orgid: '',
231
- f_checker_name: ''
232
- }
233
- }
234
- },
235
- props: {
236
- style: {
237
- type: String,
238
- default: 'col-sm-2 form-group'
239
- },
240
- style2: {
241
- type: String,
242
- default: 'col-sm-4 form-group'
243
- },
244
- needprops:{
245
- type: Object,
246
- default:{}
247
- },
248
- showtype:{
249
- type: String
250
- }
251
- },
252
- ready () {
253
- setTimeout(() => {
254
- this.loading = false;
255
- }, 1000)
256
- bus.$on('fresh-main',()=>{
257
- this.$refs.paged.$refs.criteria.search()
258
- })
259
- this.freshCheckBook()
260
- },
261
- beforeDestroy() {
262
- //tag
263
- bus.$off('fresh-main')
264
- },
265
- methods: {
266
- send(row){
267
- console.log("7758521",row)
268
- this.checkBookRow = row
269
- this.showSendModal = true
270
- },
271
- freshCheckBook () {
272
- this.checkBooks = []
273
- new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=999999`, {
274
- data: {
275
- items: 'id,f_check_book_name',
276
- tablename: 't_check_book',
277
- condition: this.$refs.paged.$refs.criteria.model.f_orgid?`f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid} and f_user_type ='${this.showtype}' `:`f_user_type ='${this.showtype}'`,
278
- orderitem: 'id desc'
279
- }
280
- }, {resolveMsg: null, rejectMsg: null}).then(res => {
281
- this.checkBooks.push({label: '全部', value: ''})
282
- res.data.forEach(ress => {
283
- this.checkBooks.push({
284
- label: ress.f_check_book_name,
285
- value: ress.id
286
- })
287
- })
288
- })
289
- },
290
- selectedEntry(){
291
- console.log("666666666666666666")
292
- },
293
- details(row){
294
- this.$emit('showdetails' ,row)
295
- },
296
- add(){
297
- this.$emit('addbook')
298
- },
299
- ok (){
300
- //tag
301
- let http = new HttpResetClass()
302
- http.load('POST', 'rs/logic/safeEntity', {data:{tableName:'t_check_book',entityData:this.checkBook}},
303
- {resolveMsg: '更新片区信息成功', rejectMsg: '保存片区信息成功'}).then(res=>{
304
- if (res.data.code===200){
305
- this.$showMessage('修改成功')
306
- this.showModal = false
307
- this.checkBook= {}
308
- }
309
- })
310
- },
311
- cancel () {
312
- this.showModal = false
313
- this.checkBook= {}
314
- },
315
- updateCheckBook(val){
316
- this.checkBook=val
317
- this.showModal = true
318
- },
319
- search (args) {
320
- // //tag
321
- this.$parent.showItem = false
322
- this.$parent.showItemUser = false
323
- args.condition += ` and f_orgid in ${this.model.f_filialeids}`
324
- args.condition += ` and tcb.f_user_type ='${this.showtype}' `
325
- return this.model.search(args.condition, args.model)
326
- },
327
- getRes (obj) {
328
- this.model.f_filialeids = this.$login.convertToIn(obj.resids)
329
- },
330
- async deleteCheckBook (val) {
331
- try {
332
- //tag
333
- let http = new HttpResetClass()
334
- let upAddress = `update t_user_address set f_check_book_id = null where f_check_book_id = '${val.id}'`
335
- let delCheckBook= `delete from t_check_book where id ='${val.id}'`
336
- await http.load('POST', 'rs/logic/runSQL', {data: {sql: upAddress}},
337
- {resolveMsg: null, rejectMsg: '删除片区失败'})
338
- await http.load('POST', 'rs/logic/runSQL', {data: {sql: delCheckBook}},
339
- {resolveMsg: null, rejectMsg: '删除片区失败'})
340
- this.$showMessage('删除成功')
341
- this.$refs.paged.$refs.criteria.search()
342
- }catch (e) {
343
- this.$showMessage('删除失败',e)
344
- }
345
- }
346
- },
347
-
348
- watch: {
349
- 'model.rows'(val){
350
- console.log("997997",val)
351
- this.showCaoZuo = val.filter(item=>item.f_check_book_type!='小区').length>0
352
- }
353
- },
354
- computed: {
355
- selected () {
356
- return this.$refs.paged.$refs.grid.selected
357
- }
358
- }
359
- }
360
- </script>
361
- <style scoped>
362
- .newcolor {
363
- color: red;
364
- }
365
-
366
- .table th {
367
- background-color: #f2f6fa;
368
- color: black;
369
- }
370
- </style>
371
- <style lang="less">
372
- #checkbookEntryShow {
373
- .modal-dialog {
374
- width: 80%;
375
- }
376
- }
377
- </style>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" v-show="!$parent.$parent.$parent.showItemAll">
7
+ <div :class="$parent.$parent.style2" style="margin: 0px">
8
+ <role-selector-safe
9
+ role-name="网格员"
10
+ role-lable="网&nbsp;格&nbsp;员&nbsp;"
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="$parent.$parent.style">
18
+ <label class="font_normal_body">片区名称</label>
19
+ <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
20
+ :value-single="true" style="width: 60%"
21
+ class="select_list select"
22
+ :options='$parent.$parent.checkBooks' placeholder='片区名称'
23
+ close-on-select
24
+ condition="tcb.id ='{}'"></v-select>
25
+ </div>
26
+ <!-- <div :class="$parent.$parent.style">-->
27
+ <!-- <label class="font_normal_body">表册类型</label>-->
28
+ <!-- <v-select :value.sync="model.f_check_book_type" v-model='model.f_check_book_type'-->
29
+ <!-- :value-single="true" style="width: 60%"-->
30
+ <!-- class="select_list select"-->
31
+ <!-- :options='$parent.$parent.bookTypes' placeholder='表册类型'-->
32
+ <!-- close-on-select-->
33
+ <!-- condition="tcb.f_check_book_type ='{}'"></v-select>-->
34
+ <!-- </div>-->
35
+ <!-- <div :class="$parent.$parent.style">-->
36
+ <!-- <label class="font_normal_body">用户类型</label>-->
37
+ <!-- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'-->
38
+ <!-- :value-single="true" style="width: 60%"-->
39
+ <!-- class="select_list select"-->
40
+ <!-- :options='$parent.$parent.userTypes' placeholder='用户类型'-->
41
+ <!-- close-on-select-->
42
+ <!-- condition="tcb.f_user_type ='{}'"></v-select>-->
43
+ <!-- </div>-->
44
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
45
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
46
+ <button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增片区</button>
47
+ <button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">片区用户管理</button>
48
+ <div style="float: right" class="button_spacing"
49
+ v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
50
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
51
+ @click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
52
+ </div>
53
+
54
+
55
+ </div>
56
+
57
+
58
+ <div class="row" v-show="$parent.$parent.$parent.showItemAll">
59
+ <div :class="$parent.$parent.style2" style="margin: 0px">
60
+ <role-selector-safe
61
+ role-name="网格员"
62
+ role-lable="网&nbsp;格&nbsp;员&nbsp;"
63
+ @re-res="$parent.$parent.getRes"
64
+ :value.sync="model.f_checker_id"
65
+ v-model="model.f_checker_id"
66
+ condition=" f_checker_name like '%{}%'">
67
+ </role-selector-safe>
68
+ </div>
69
+ <div :class="$parent.$parent.style">
70
+ <label class="font_normal_body">片区名</label>
71
+ <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
72
+ :value-single="true" style="width: 60%"
73
+ class="select_list select"
74
+ :options='$parent.$parent.checkBooks' placeholder='片区名称'
75
+ close-on-select
76
+ condition="tcb.id ='{}'"></v-select>
77
+ </div>
78
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
79
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
80
+ <button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增片区</button>
81
+ <button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">片区用户管理</button>
82
+ <div style="float: right" class="button_spacing"
83
+ v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
84
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
85
+ @click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
86
+ <!-- <div style="float: right" class="button_spacing"-->
87
+ <!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
88
+ <!-- @click="$parent.$parent.hidden()">-->
89
+ <!-- </div>-->
90
+ </div>
91
+
92
+ </div>
93
+
94
+ </div>
95
+ </criteria>
96
+ <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
97
+ <template partial='head'>
98
+ <tr>
99
+ <th>
100
+ <nobr>所属网格员</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>片区名称</nobr>
104
+ </th>
105
+ <!-- <th>-->
106
+ <!-- <nobr>片区类型</nobr>-->
107
+ <!-- </th>-->
108
+ <th>
109
+ <nobr>用户类型</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>创建日期</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>创建人</nobr>
116
+ </th>
117
+
118
+ <th>
119
+ <nobr>执行日期</nobr>
120
+ </th>
121
+ <th>
122
+ <nobr>执行周期</nobr>
123
+ </th>
124
+ <th>
125
+ <nobr>小区/单位数量</nobr>
126
+ </th>
127
+ <!-- <th>-->
128
+ <!-- <nobr>已下发</nobr>-->
129
+ <!-- </th>-->
130
+ <!-- <th>-->
131
+ <!-- <nobr>未下发</nobr>-->
132
+ <!-- </th>-->
133
+ <!-- <th>-->
134
+ <!-- <nobr>已检</nobr>-->
135
+ <!-- </th>-->
136
+ <!-- <th>-->
137
+ <!-- <nobr>未检</nobr>-->
138
+ <!-- </th>-->
139
+ <!-- <th v-show="$parent.$parent.$parent.showCaoZuo">-->
140
+ <!-- <nobr>操作</nobr>-->
141
+ <!-- </th>-->
142
+ </tr>
143
+ </template>
144
+ <template partial='body'>
145
+ <td style="text-align: center;">{{ row.f_checker_name }}</td>
146
+ <td style="text-align: center;">{{ row.f_check_book_name }}</td>
147
+ <!-- <td style="text-align: center;">{{ row.f_check_book_type }}</td>-->
148
+ <td style="text-align: center;">{{ row.f_user_type }}</td>
149
+ <td style="text-align: center;">{{ row.f_create_date }}</td>
150
+ <td style="text-align: center;">{{ row.f_create_person }}</td>
151
+ <td style="text-align: center;">{{ row.f_run_date }}</td>
152
+ <td style="text-align: center;">{{ row.f_around_time }}{{ row.f_around_unit }}</td>
153
+ <td style="text-align: center;"><button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link"><b>{{row.num2}}</b></button></td>
154
+ <!-- <td style="text-align: center;">{{ row.xiafa }}</td>-->
155
+ <!-- <td style="text-align: center;">{{ row.f_user_type =='民用'?row.num-row.xiafa:row.num4-row.xiafa }}</td>-->
156
+ <!-- <td style="text-align: center;">{{ row.yijian }}</td>-->
157
+ <!-- <td style="text-align: center;">{{ row.weijian }}</td>-->
158
+ <!-- <td v-show="row.f_check_book_type!='小区'" style="text-align: center;"><button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.send(row)'>下发</button></td>-->
159
+ </template>
160
+ </data-grid>
161
+ </criteria-paged>
162
+ <modal :show.sync="showModal" :backdrop="false" id="checkbookEntryShow">
163
+ <article slot="modal-body" class="modal-body">
164
+ <check-book-entry v-if="showModal" @select-changed="selectedEntry"></check-book-entry>
165
+ </article>
166
+ <footer slot="modal-footer">
167
+ </footer>
168
+
169
+ </modal>
170
+ <modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
171
+ <article slot="modal-body" class="modal-body" style="height: 80vh">
172
+ <check-book-search-user-list v-if="showSendModal" :row="checkBookRow" :bookrow="checkBookRow" :needprops="needprops":userlogin="userlogin"></check-book-search-user-list>
173
+ </article>
174
+ <footer slot="modal-footer">
175
+ </footer>
176
+
177
+ </modal>
178
+ <work-busy :is-busy="loading"></work-busy>
179
+ </div>
180
+ </template>
181
+
182
+ <script>
183
+ import {PagedList} from 'vue-client'
184
+ import {HttpResetClass} from 'vue-client'
185
+ import bus from '../../../bus'
186
+ export default {
187
+ title: '用户安检情况',
188
+ data () {
189
+ return {
190
+ loading:true,
191
+ showSendModal:false,
192
+ searchData: {
193
+ condition: '1=1'
194
+ },
195
+ showCaoZuo:false,
196
+ userlogin:{
197
+ id:this.$login.f.id,
198
+ name:this.$login.f.name,
199
+ orgid:this.$login.f.orgid,
200
+ orgstr:this.$login.f.orgs,
201
+ },
202
+ checkBooks:[],
203
+ bookTypes: [{label: '全部', value: ''}, {label: '用户', value: '用户'}, {label: '小区', value: '小区'}],
204
+ userTypes: [{label: '全部', value: ''}, {label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
205
+ aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '日'}],
206
+ showModal:false,
207
+ excelHeaders: {
208
+
209
+ 'f_userinfo_code': '用户编号',
210
+ 'f_user_name': '用户名称',
211
+ 'f_user_phone': '用户电话',
212
+ 'f_meternumber': '用户表号',
213
+ 'f_user_type': '用户类型',
214
+ 'f_last_checker': '安检员',
215
+ 'f_residential_area': '小区名称',
216
+ 'f_address': '地址',
217
+ 'f_last_check_date': '安检日期',
218
+ 'f_last_check_state': '安检状态',
219
+ 'f_last_check_result': '安检结果'
220
+ },
221
+ model: new PagedList('rs/sql/QueryCheckBook', 20),
222
+ checkBookRow:{},
223
+ checkBook :{
224
+ f_check_book_name: '',
225
+ f_run_date: '',
226
+ f_around_time: '',
227
+ f_around_unit: '',
228
+ f_create_date: '',
229
+ f_create_person: '',
230
+ f_orgid: '',
231
+ f_checker_name: ''
232
+ }
233
+ }
234
+ },
235
+ props: {
236
+ style: {
237
+ type: String,
238
+ default: 'col-sm-2 form-group'
239
+ },
240
+ style2: {
241
+ type: String,
242
+ default: 'col-sm-4 form-group'
243
+ },
244
+ needprops:{
245
+ type: Object,
246
+ default:{}
247
+ },
248
+ showtype:{
249
+ type: String
250
+ }
251
+ },
252
+ ready () {
253
+ setTimeout(() => {
254
+ this.loading = false;
255
+ }, 1000)
256
+ bus.$on('fresh-main',()=>{
257
+ this.$refs.paged.$refs.criteria.search()
258
+ })
259
+ this.freshCheckBook()
260
+ },
261
+ beforeDestroy() {
262
+ //tag
263
+ bus.$off('fresh-main')
264
+ },
265
+ methods: {
266
+ send(row){
267
+ console.log("7758521",row)
268
+ this.checkBookRow = row
269
+ this.showSendModal = true
270
+ },
271
+ freshCheckBook () {
272
+ this.checkBooks = []
273
+ new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=999999`, {
274
+ data: {
275
+ items: 'id,f_check_book_name',
276
+ tablename: 't_check_book',
277
+ condition: this.$refs.paged.$refs.criteria.model.f_orgid?`f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid} and f_user_type ='${this.showtype}' `:`f_user_type ='${this.showtype}'`,
278
+ orderitem: 'id desc'
279
+ }
280
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
281
+ this.checkBooks.push({label: '全部', value: ''})
282
+ res.data.forEach(ress => {
283
+ this.checkBooks.push({
284
+ label: ress.f_check_book_name,
285
+ value: ress.id
286
+ })
287
+ })
288
+ })
289
+ },
290
+ selectedEntry(){
291
+ console.log("666666666666666666")
292
+ },
293
+ details(row){
294
+ this.$emit('showdetails' ,row)
295
+ },
296
+ add(){
297
+ this.$emit('addbook')
298
+ },
299
+ ok (){
300
+ //tag
301
+ let http = new HttpResetClass()
302
+ http.load('POST', 'rs/logic/safeEntity', {data:{tableName:'t_check_book',entityData:this.checkBook}},
303
+ {resolveMsg: '更新片区信息成功', rejectMsg: '保存片区信息成功'}).then(res=>{
304
+ if (res.data.code===200){
305
+ this.$showMessage('修改成功')
306
+ this.showModal = false
307
+ this.checkBook= {}
308
+ }
309
+ })
310
+ },
311
+ cancel () {
312
+ this.showModal = false
313
+ this.checkBook= {}
314
+ },
315
+ updateCheckBook(val){
316
+ this.checkBook=val
317
+ this.showModal = true
318
+ },
319
+ search (args) {
320
+ // //tag
321
+ this.$parent.showItem = false
322
+ this.$parent.showItemUser = false
323
+ args.condition += ` and f_orgid in ${this.model.f_filialeids}`
324
+ args.condition += ` and tcb.f_user_type ='${this.showtype}' `
325
+ return this.model.search(args.condition, args.model)
326
+ },
327
+ getRes (obj) {
328
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids)
329
+ },
330
+ async deleteCheckBook (val) {
331
+ try {
332
+ //tag
333
+ let http = new HttpResetClass()
334
+ let upAddress = `update t_user_address set f_check_book_id = null where f_check_book_id = '${val.id}'`
335
+ let delCheckBook= `delete from t_check_book where id ='${val.id}'`
336
+ await http.load('POST', 'rs/logic/runSQL', {data: {sql: upAddress}},
337
+ {resolveMsg: null, rejectMsg: '删除片区失败'})
338
+ await http.load('POST', 'rs/logic/runSQL', {data: {sql: delCheckBook}},
339
+ {resolveMsg: null, rejectMsg: '删除片区失败'})
340
+ this.$showMessage('删除成功')
341
+ this.$refs.paged.$refs.criteria.search()
342
+ }catch (e) {
343
+ this.$showMessage('删除失败',e)
344
+ }
345
+ }
346
+ },
347
+
348
+ watch: {
349
+ 'model.rows'(val){
350
+ console.log("997997",val)
351
+ this.showCaoZuo = val.filter(item=>item.f_check_book_type!='小区').length>0
352
+ }
353
+ },
354
+ computed: {
355
+ selected () {
356
+ return this.$refs.paged.$refs.grid.selected
357
+ }
358
+ }
359
+ }
360
+ </script>
361
+ <style scoped>
362
+ .newcolor {
363
+ color: red;
364
+ }
365
+
366
+ .table th {
367
+ background-color: #f2f6fa;
368
+ color: black;
369
+ }
370
+ </style>
371
+ <style lang="less">
372
+ #checkbookEntryShow {
373
+ .modal-dialog {
374
+ width: 80%;
375
+ }
376
+ }
377
+ </style>