safecheck-client 3.0.32 → 3.0.33-11

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 (95) hide show
  1. package/package.json +133 -133
  2. package/src/assets//345/215/225/345/205/203/345/217/267.png +0 -0
  3. package/src/assets//345/234/260/345/235/200.png +0 -0
  4. package/src/assets//345/247/223/345/220/215.png +0 -0
  5. package/src/assets//345/260/217/345/214/272.png +0 -0
  6. package/src/assets//345/260/217/345/214/272/350/223/235/350/211/262.png +0 -0
  7. package/src/assets//345/272/225/346/225/260.png +0 -0
  8. package/src/assets//346/210/267/347/274/226/345/217/267.png +0 -0
  9. package/src/assets//346/245/274/345/217/267.png +0 -0
  10. package/src/assets//346/245/274/345/261/202.png +0 -0
  11. package/src/assets//350/241/250/347/261/273/345/236/213.png +0 -0
  12. package/src/assets//351/227/250/347/211/214/345/217/267.png +0 -0
  13. package/src/components/android/AndroidDefectDeal.vue +5 -5
  14. package/src/components/android/PhoneUpUserinfo.vue +6 -0
  15. package/src/components/android/SafecheckOrderV.vue +4 -1
  16. package/src/components/map/checkScreen.vue +1 -1
  17. package/src/components/planmanage/checkPlanList.vue +3 -3
  18. package/src/components/planmanage/checkUserList.vue +34 -2
  19. package/src/components/rongcheng/AspiratedDevices.vue +34 -1
  20. package/src/components/rongcheng/DefectPaper.vue +4 -1
  21. package/src/components/rongcheng/SafecheckDevices.vue +34 -1
  22. package/src/components/rongcheng/SafecheckOrderV.vue +1 -0
  23. package/src/components/rongcheng/SafecheckUserInfo.vue +17 -0
  24. package/src/filiale/Util.js +7 -0
  25. package/src/filiale/ankangyihua/android/AndroidDefectDeal.vue +1 -1
  26. package/src/filiale/ankangyihua/android/CurrentCreate.vue +1 -1
  27. package/src/filiale/bayan/android/AddPlanItem.vue +5 -1
  28. package/src/filiale/bayan/android/SafecheckOrderV.vue +3 -0
  29. package/src/filiale/bayan/pc/NewCheckpaper.vue +1 -1
  30. package/src/filiale/dexin/android/CasualSave.vue +1050 -0
  31. package/src/filiale/dexin/android/SafecheckDevices.vue +4 -4
  32. package/src/filiale/dexin/android/SafecheckOrderV.vue +2407 -2355
  33. package/src/filiale/dexin/android/WebMeterOpen.vue +377 -0
  34. package/src/filiale/dexin/android/WebMeterOpenEdit.vue +225 -0
  35. package/src/filiale/dexin/android.js +4 -1
  36. package/src/filiale/fugou/pc/AddToCheckBook.vue +160 -0
  37. package/src/filiale/fugou/pc/CheckBook.vue +301 -0
  38. package/src/filiale/fugou/pc/CheckBookAll.vue +67 -0
  39. package/src/filiale/fugou/pc/CheckBookArea.vue +146 -0
  40. package/src/filiale/fugou/pc/CheckBookCompany.vue +144 -0
  41. package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -0
  42. package/src/filiale/fugou/pc/CheckBookEntry.vue +66 -0
  43. package/src/filiale/fugou/pc/CheckBookList.vue +366 -0
  44. package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -0
  45. package/src/filiale/fugou/pc/CheckBookSearchUnit.vue +229 -0
  46. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +651 -0
  47. package/src/filiale/fugou/pc/CheckBookSearchUserList.vue +674 -0
  48. package/src/filiale/fugou/pc/CheckBookUser.vue +101 -0
  49. package/src/filiale/fugou/pc/DefectPaperNew.vue +1 -1
  50. package/src/filiale/fugou/pc/PaperDefectMain.vue +22 -1
  51. package/src/filiale/fugou/pc/PlanManage.vue +1007 -0
  52. package/src/filiale/fugou/pc/checkPlanList.vue +371 -0
  53. package/src/filiale/fugou/pc/checkUserList.vue +20 -120
  54. package/src/filiale/fugou/pc.js +60 -5
  55. package/src/filiale/jingyang/android/AddPlanItem.vue +246 -246
  56. package/src/filiale/jingyang/android/CurrentCreate.vue +18 -18
  57. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2281 -2281
  58. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -0
  59. package/src/filiale/jingyang/android.js +4 -0
  60. package/src/filiale/kelai/android/SafecheckDevices.vue +1 -1
  61. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1 -1
  62. package/src/filiale/qingjian/android/SafecheckOrderV.vue +1 -0
  63. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +4 -0
  64. package/src/filiale/rongchuang/android/SafecheckDevices.vue +1680 -0
  65. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +975 -488
  66. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +111 -48
  67. package/src/filiale/shanxian/android/SafecheckOrderV.vue +1 -1
  68. package/src/filiale/shexian/pc/PaperList.vue +822 -0
  69. package/src/filiale/shexian/pc.js +1 -0
  70. package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +1 -1
  71. package/src/filiale/weinan/android/SafecheckDevices.vue +1082 -1025
  72. package/src/filiale/weinan/android/SafecheckOrderV.vue +3321 -3276
  73. package/src/filiale/wensu/android/CurrentCreate.vue +1 -1
  74. package/src/filiale/wensu/pc/CheckSearchUser.vue +58 -53
  75. package/src/filiale/wensu/pc/DefectPaperNew.vue +16 -10
  76. package/src/filiale/wensu/pc/PlanManage.vue +831 -0
  77. package/src/filiale/wensu/pc/PrintMaterialBill.vue +28 -11
  78. package/src/filiale/wensu/pc/RoleSelector.vue +2 -2
  79. package/src/filiale/wensu/pc/SelectCheckPlan.vue +208 -168
  80. package/src/filiale/wensu/pc/checkUserList.vue +13 -9
  81. package/src/filiale/wensu/pc.js +1 -0
  82. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +1 -1
  83. package/src/filiale/wuhai/pc/PaperList.vue +785 -0
  84. package/src/filiale/wuhai/pc.js +1 -0
  85. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +6 -2
  86. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +3 -3
  87. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +1 -1
  88. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +3 -3
  89. package/src/filiale/yongzhou/pc/safeStatistics.vue +1 -0
  90. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +1 -0
  91. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +3 -0
  92. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +18 -1
  93. package/src/filiale/zhongyi/pc/DefectListNew.vue +6 -6
  94. package/static/stretch_bottom.png +0 -0
  95. package/static/stretch_top.png +0 -0
@@ -0,0 +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>