safecheck-client 3.0.35-36 → 3.0.35-39
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/components/android/SafecheckDevices.vue +2 -2
- package/src/components/android/SafecheckOrderV.vue +2 -529
- package/src/components/pc/AddPlanItemYyChange.vue +1 -1
- package/src/components/pc/NewCheckpaper.vue +57 -2
- package/src/components/pc/SecurityCheckLedger.vue +133 -133
- package/src/components/pc/SecurityCheckList.vue +144 -144
- package/src/components/pc/SecurityCheckManage.vue +106 -106
- package/src/filiale/xilan/pc/PaperList.vue +795 -0
- package/src/filiale/xilan/pc.js +1 -0
- package/src/filiale/zhongsheng/android/SafecheckDevices.vue +1214 -1214
- package/src/main.js +33 -33
- package/src/safecheck.js +910 -910
@@ -98,7 +98,7 @@ import * as Util from '../../components/Util'
|
|
98
98
|
let select = function* (self) {
|
99
99
|
let http = new HttpResetClass()
|
100
100
|
let getGasman = yield http.load('POST', '/rs/search', {
|
101
|
-
source: 'this.getParentByType($
|
101
|
+
source: 'this.getParentByType($organization$).getChildByName($安检员$).getUsers()',
|
102
102
|
userid: self.$login.f.id
|
103
103
|
}, { resolveMsg: null, rejectMsg: null })
|
104
104
|
//tag
|
@@ -270,6 +270,30 @@ div {
|
|
270
270
|
</tr>
|
271
271
|
</tbody>
|
272
272
|
</table>
|
273
|
+
<table class="table table-striped table-bordered" style="margin-top: 35px"
|
274
|
+
v-show="showPdfImg && paperdata.f_entry_status=='入户' && ajresult=='有隐患'">
|
275
|
+
<thead>
|
276
|
+
<tr>
|
277
|
+
<th style="text-align: center">隐患照片</th>
|
278
|
+
</tr>
|
279
|
+
</thead>
|
280
|
+
<tbody>
|
281
|
+
<tr>
|
282
|
+
<td style="margin: auto;text-align: center">
|
283
|
+
<div class="container" style="max-width: 550px;background: #FFFFFF">
|
284
|
+
<div class="img" v-for="img in deviceImgs">
|
285
|
+
<img-self-plus :list="deviceCollect.imgs " :src="img.f_overall_path" style="float: left"
|
286
|
+
width="150"
|
287
|
+
height="200"></img-self-plus>
|
288
|
+
</div>
|
289
|
+
</div>
|
290
|
+
|
291
|
+
|
292
|
+
</td>
|
293
|
+
|
294
|
+
</tr>
|
295
|
+
</tbody>
|
296
|
+
</table>
|
273
297
|
<table class="table table-striped table-bordered" style="margin-top: 35px"
|
274
298
|
v-show="paperdata.f_entry_status=='入户'">
|
275
299
|
<thead>
|
@@ -631,6 +655,30 @@ div {
|
|
631
655
|
|
632
656
|
</tbody>
|
633
657
|
</table>
|
658
|
+
<table class="table table-striped table-bordered" style="margin-top: 35px"
|
659
|
+
v-show="showPdfImg && paperdata.f_entry_status=='入户' && ajresult=='有隐患'">
|
660
|
+
<thead>
|
661
|
+
<tr>
|
662
|
+
<th style="text-align: center">隐患照片</th>
|
663
|
+
</tr>
|
664
|
+
</thead>
|
665
|
+
<tbody>
|
666
|
+
<tr>
|
667
|
+
<td style="margin: auto;text-align: center">
|
668
|
+
<div class="container" style="max-width: 550px;background: #FFFFFF">
|
669
|
+
<div class="img" v-for="img in deviceImgs">
|
670
|
+
<img-self-plus :list="deviceCollect.imgs " :src="img.f_overall_path" style="float: left"
|
671
|
+
width="150"
|
672
|
+
height="200"></img-self-plus>
|
673
|
+
</div>
|
674
|
+
</div>
|
675
|
+
|
676
|
+
|
677
|
+
</td>
|
678
|
+
|
679
|
+
</tr>
|
680
|
+
</tbody>
|
681
|
+
</table>
|
634
682
|
<table class="table table-striped table-bordered" style="margin-top: 35px"
|
635
683
|
v-show="paperdata.f_entry_status=='入户'">
|
636
684
|
<thead>
|
@@ -976,6 +1024,7 @@ export default {
|
|
976
1024
|
f_defect_content: ''
|
977
1025
|
},
|
978
1026
|
showPdfDownload: this.$appdata.getSingleValue('安检结果pdf下载') ? this.$appdata.getSingleValue('安检结果pdf下载') : false,
|
1027
|
+
showPdfImg: this.$appdata.getSingleValue('安检结果pdf展示隐患照片') ? this.$appdata.getSingleValue('安检结果pdf展示隐患照片') : false,
|
979
1028
|
lastCheckData: {},
|
980
1029
|
paperdata: {},
|
981
1030
|
picturename: '隐患照片',
|
@@ -983,6 +1032,7 @@ export default {
|
|
983
1032
|
hasDevice: false,
|
984
1033
|
deviceCollect: {},
|
985
1034
|
deviceCollects: [],
|
1035
|
+
deviceImgs:[],
|
986
1036
|
isshow: false,
|
987
1037
|
ajresult: '',
|
988
1038
|
loading: true,
|
@@ -1165,6 +1215,7 @@ export default {
|
|
1165
1215
|
//tag)
|
1166
1216
|
//tag
|
1167
1217
|
this.deviceCollects = []
|
1218
|
+
this.deviceImgs = []
|
1168
1219
|
let checkResult = '正常'
|
1169
1220
|
this.result = '正常'
|
1170
1221
|
let codata = JSON.parse(JSON.stringify(this.data))
|
@@ -1182,6 +1233,7 @@ export default {
|
|
1182
1233
|
// //tag
|
1183
1234
|
let deviceelse = []
|
1184
1235
|
let deviceInfos = []
|
1236
|
+
|
1185
1237
|
for (let i in this.data[device][item].f_items) {
|
1186
1238
|
let defects = ''
|
1187
1239
|
|
@@ -1224,11 +1276,13 @@ export default {
|
|
1224
1276
|
if (defects != '') {
|
1225
1277
|
console.log('有隐患items', items)
|
1226
1278
|
deviceInfos.push(`${items.f_item_name}${defects.substring(0, defects.length - 1)}${items.f_else ? items.f_else : ''}`)
|
1279
|
+
this.deviceImgs.push({f_overall_path:items.f_path})
|
1227
1280
|
}
|
1228
1281
|
} else if ((items.type === 'string' || items.type === 'number') && items.f_is_defect && items.f_item_value[0]) {
|
1229
1282
|
checkResult = '有隐患'
|
1230
1283
|
this.result = '有隐患'
|
1231
1284
|
deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
|
1285
|
+
this.deviceImgs.push({f_overall_path:items.f_path})
|
1232
1286
|
|
1233
1287
|
} else if (items.f_item_name == '金额异常差值') {
|
1234
1288
|
var deviation = this.$appdata.getSingleValue('金额异常差值允许误差')
|
@@ -1280,6 +1334,7 @@ export default {
|
|
1280
1334
|
this.$set('deviceCollect.else', deviceelse)
|
1281
1335
|
console.log('deviceCollect.devices', this.deviceCollect.devices)
|
1282
1336
|
console.log('deviceCollect.else', this.deviceCollect.else)
|
1337
|
+
console.log('deviceCollect.imgs', this.deviceCollect.imgs)
|
1283
1338
|
//tag)
|
1284
1339
|
if (this.deviceCollect.name) {
|
1285
1340
|
//tag
|
@@ -1326,8 +1381,8 @@ export default {
|
|
1326
1381
|
this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
|
1327
1382
|
}
|
1328
1383
|
if (Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
|
1329
|
-
if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >=
|
1330
|
-
this.hiddenDangerImgNumber =
|
1384
|
+
if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 5) {
|
1385
|
+
this.hiddenDangerImgNumber = 5
|
1331
1386
|
} else {
|
1332
1387
|
this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
|
1333
1388
|
}
|
@@ -1,133 +1,133 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="flex-row">
|
3
|
-
<div class="basic-main">
|
4
|
-
<criteria-paged :model="model" v-ref:paged>
|
5
|
-
<criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
|
6
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
7
|
-
<div class="row">
|
8
|
-
<div class="form-group col-sm-2" >
|
9
|
-
<label class="font_normal_body">小区名称</label>
|
10
|
-
<input type="text" class="input_search" v-model="model.f_residential_area"
|
11
|
-
style="width: 60%" placeholder="小区名称" condition="ta.f_residential_area = '{}'">
|
12
|
-
</div>
|
13
|
-
<div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
|
14
|
-
<div style="float: right" class="button_spacing"
|
15
|
-
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
16
|
-
@click="$parent.$parent.hiddenr()"></div>
|
17
|
-
<export-excel-safe :data="$parent.$parent.searchData"
|
18
|
-
:field="$parent.$parent.excelHeaders"
|
19
|
-
:choose-col="true"
|
20
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="securityCheckLedger" template-name='安检台账'></export-excel-safe>
|
21
|
-
<button class="button_spacing button_search" @click="search()">查询</button>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
</criteria>
|
26
|
-
<data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
|
27
|
-
<template partial='head'>
|
28
|
-
<tr>
|
29
|
-
<th>
|
30
|
-
<nobr>小区名称</nobr>
|
31
|
-
</th>
|
32
|
-
<th>
|
33
|
-
<nobr>小区用户数</nobr>
|
34
|
-
</th>
|
35
|
-
<th>
|
36
|
-
<nobr>所属计划</nobr>
|
37
|
-
</th>
|
38
|
-
<th>
|
39
|
-
<nobr>计划内用户数</nobr>
|
40
|
-
</th>
|
41
|
-
<th>
|
42
|
-
<nobr>计划下发时间</nobr>
|
43
|
-
</th>
|
44
|
-
<th>
|
45
|
-
<nobr>计划结束时间</nobr>
|
46
|
-
</th>
|
47
|
-
<th>
|
48
|
-
<nobr>执行时间</nobr>
|
49
|
-
</th>
|
50
|
-
<th>
|
51
|
-
<nobr>执行周期</nobr>
|
52
|
-
</th>
|
53
|
-
<th>
|
54
|
-
<nobr>周期单位</nobr>
|
55
|
-
</th>
|
56
|
-
<th>
|
57
|
-
<nobr>距离下周期时间(天)</nobr>
|
58
|
-
</th>
|
59
|
-
</tr>
|
60
|
-
</template>
|
61
|
-
<template partial='body'>
|
62
|
-
<td style="text-align: center">{{row.f_residential_area}}</td>
|
63
|
-
<td style="text-align: center">{{row.area_num}}</td>
|
64
|
-
<td style="text-align: center">{{row.f_plan_name}}</td>
|
65
|
-
<td style="text-align: center">{{row.plan_num}}</td>
|
66
|
-
<td style="text-align: center">{{row.f_issue_time}}</td>
|
67
|
-
<td style="text-align: center">{{row.f_use_end_time}}</td>
|
68
|
-
<td style="text-align: center">{{row.first_check_date}}</td>
|
69
|
-
<td style="text-align: center">{{row.zq_value}}</td>
|
70
|
-
<td style="text-align: center">{{row.dw_value}}</td>
|
71
|
-
<td :style="{ 'text-align': 'center', color: row.difference_day <= 100 ? 'red' : '' }">{{ row.difference_day }}</td>
|
72
|
-
</template>
|
73
|
-
</data-grid>
|
74
|
-
</criteria-paged>
|
75
|
-
</div>
|
76
|
-
</div>
|
77
|
-
</template>
|
78
|
-
|
79
|
-
<script>
|
80
|
-
import {PagedList} from 'vue-client'
|
81
|
-
|
82
|
-
export default {
|
83
|
-
title: '安检台账',
|
84
|
-
data() {
|
85
|
-
return {
|
86
|
-
model: new PagedList('rs/sql/securityCheckLedger', 20),
|
87
|
-
searchData: {
|
88
|
-
condition: "1=1"
|
89
|
-
},
|
90
|
-
excelHeaders: {
|
91
|
-
'f_residential_area': '小区名称',
|
92
|
-
'area_num': '小区用户数',
|
93
|
-
'f_plan_name': '所属计划',
|
94
|
-
'plan_num': '计划内用户数',
|
95
|
-
'f_issue_time': '计划下发时间',
|
96
|
-
'f_use_end_time': '计划下发时间',
|
97
|
-
'first_check_date': '执行时间',
|
98
|
-
'zq_value': '执行周期',
|
99
|
-
'dw_value': '周期单位',
|
100
|
-
'difference_day': '距离下周期时间(天)'
|
101
|
-
}
|
102
|
-
}
|
103
|
-
},
|
104
|
-
methods: {
|
105
|
-
hiddenr() {
|
106
|
-
this.$parent.isdetail = !this.$parent.isdetail
|
107
|
-
},
|
108
|
-
showList(row){
|
109
|
-
row.val = row
|
110
|
-
this.$parent.selected(row)
|
111
|
-
},
|
112
|
-
selfSearch(args) {
|
113
|
-
this.model.search(args.condition, args.model, args.condValue)
|
114
|
-
}
|
115
|
-
},
|
116
|
-
ready() {
|
117
|
-
|
118
|
-
},
|
119
|
-
watch: {
|
120
|
-
'model.condition'(val) {
|
121
|
-
if (val) {
|
122
|
-
this.searchData.condition = val
|
123
|
-
}
|
124
|
-
}
|
125
|
-
},
|
126
|
-
computed: {
|
127
|
-
selected() {
|
128
|
-
return this.$refs.paged.$refs.grid.selected
|
129
|
-
}
|
130
|
-
}
|
131
|
-
|
132
|
-
}
|
133
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div class="flex-row">
|
3
|
+
<div class="basic-main">
|
4
|
+
<criteria-paged :model="model" v-ref:paged>
|
5
|
+
<criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
7
|
+
<div class="row">
|
8
|
+
<div class="form-group col-sm-2" >
|
9
|
+
<label class="font_normal_body">小区名称</label>
|
10
|
+
<input type="text" class="input_search" v-model="model.f_residential_area"
|
11
|
+
style="width: 60%" placeholder="小区名称" condition="ta.f_residential_area = '{}'">
|
12
|
+
</div>
|
13
|
+
<div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
|
14
|
+
<div style="float: right" class="button_spacing"
|
15
|
+
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
16
|
+
@click="$parent.$parent.hiddenr()"></div>
|
17
|
+
<export-excel-safe :data="$parent.$parent.searchData"
|
18
|
+
:field="$parent.$parent.excelHeaders"
|
19
|
+
:choose-col="true"
|
20
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="securityCheckLedger" template-name='安检台账'></export-excel-safe>
|
21
|
+
<button class="button_spacing button_search" @click="search()">查询</button>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</criteria>
|
26
|
+
<data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
|
27
|
+
<template partial='head'>
|
28
|
+
<tr>
|
29
|
+
<th>
|
30
|
+
<nobr>小区名称</nobr>
|
31
|
+
</th>
|
32
|
+
<th>
|
33
|
+
<nobr>小区用户数</nobr>
|
34
|
+
</th>
|
35
|
+
<th>
|
36
|
+
<nobr>所属计划</nobr>
|
37
|
+
</th>
|
38
|
+
<th>
|
39
|
+
<nobr>计划内用户数</nobr>
|
40
|
+
</th>
|
41
|
+
<th>
|
42
|
+
<nobr>计划下发时间</nobr>
|
43
|
+
</th>
|
44
|
+
<th>
|
45
|
+
<nobr>计划结束时间</nobr>
|
46
|
+
</th>
|
47
|
+
<th>
|
48
|
+
<nobr>执行时间</nobr>
|
49
|
+
</th>
|
50
|
+
<th>
|
51
|
+
<nobr>执行周期</nobr>
|
52
|
+
</th>
|
53
|
+
<th>
|
54
|
+
<nobr>周期单位</nobr>
|
55
|
+
</th>
|
56
|
+
<th>
|
57
|
+
<nobr>距离下周期时间(天)</nobr>
|
58
|
+
</th>
|
59
|
+
</tr>
|
60
|
+
</template>
|
61
|
+
<template partial='body'>
|
62
|
+
<td style="text-align: center">{{row.f_residential_area}}</td>
|
63
|
+
<td style="text-align: center">{{row.area_num}}</td>
|
64
|
+
<td style="text-align: center">{{row.f_plan_name}}</td>
|
65
|
+
<td style="text-align: center">{{row.plan_num}}</td>
|
66
|
+
<td style="text-align: center">{{row.f_issue_time}}</td>
|
67
|
+
<td style="text-align: center">{{row.f_use_end_time}}</td>
|
68
|
+
<td style="text-align: center">{{row.first_check_date}}</td>
|
69
|
+
<td style="text-align: center">{{row.zq_value}}</td>
|
70
|
+
<td style="text-align: center">{{row.dw_value}}</td>
|
71
|
+
<td :style="{ 'text-align': 'center', color: row.difference_day <= 100 ? 'red' : '' }">{{ row.difference_day }}</td>
|
72
|
+
</template>
|
73
|
+
</data-grid>
|
74
|
+
</criteria-paged>
|
75
|
+
</div>
|
76
|
+
</div>
|
77
|
+
</template>
|
78
|
+
|
79
|
+
<script>
|
80
|
+
import {PagedList} from 'vue-client'
|
81
|
+
|
82
|
+
export default {
|
83
|
+
title: '安检台账',
|
84
|
+
data() {
|
85
|
+
return {
|
86
|
+
model: new PagedList('rs/sql/securityCheckLedger', 20),
|
87
|
+
searchData: {
|
88
|
+
condition: "1=1"
|
89
|
+
},
|
90
|
+
excelHeaders: {
|
91
|
+
'f_residential_area': '小区名称',
|
92
|
+
'area_num': '小区用户数',
|
93
|
+
'f_plan_name': '所属计划',
|
94
|
+
'plan_num': '计划内用户数',
|
95
|
+
'f_issue_time': '计划下发时间',
|
96
|
+
'f_use_end_time': '计划下发时间',
|
97
|
+
'first_check_date': '执行时间',
|
98
|
+
'zq_value': '执行周期',
|
99
|
+
'dw_value': '周期单位',
|
100
|
+
'difference_day': '距离下周期时间(天)'
|
101
|
+
}
|
102
|
+
}
|
103
|
+
},
|
104
|
+
methods: {
|
105
|
+
hiddenr() {
|
106
|
+
this.$parent.isdetail = !this.$parent.isdetail
|
107
|
+
},
|
108
|
+
showList(row){
|
109
|
+
row.val = row
|
110
|
+
this.$parent.selected(row)
|
111
|
+
},
|
112
|
+
selfSearch(args) {
|
113
|
+
this.model.search(args.condition, args.model, args.condValue)
|
114
|
+
}
|
115
|
+
},
|
116
|
+
ready() {
|
117
|
+
|
118
|
+
},
|
119
|
+
watch: {
|
120
|
+
'model.condition'(val) {
|
121
|
+
if (val) {
|
122
|
+
this.searchData.condition = val
|
123
|
+
}
|
124
|
+
}
|
125
|
+
},
|
126
|
+
computed: {
|
127
|
+
selected() {
|
128
|
+
return this.$refs.paged.$refs.grid.selected
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
}
|
133
|
+
</script>
|