safecheck-client 3.0.33-3 → 3.0.33-31

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