safecheck-client 4.0.1-55 → 4.0.1-57
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.
- package/.babelrc +5 -5
- package/.editorconfig +9 -9
- package/android.html +18 -18
- package/config/dev.env.js +6 -6
- package/config/index.js +38 -38
- package/config/prod.env.js +3 -3
- package/config/test.env.js +6 -6
- package/docs/AppBase.md +22 -22
- package/docs/Busy.md +14 -14
- package/docs/CriteriaPaged.md +47 -47
- package/docs/DataGrid.md +54 -54
- package/docs/DataModel.md +22 -22
- package/docs/Dynamic.md +42 -42
- package/docs/GetParams.md +11 -11
- package/docs/HttpBusy.md +13 -13
- package/docs/HttpStore.md +29 -29
- package/docs/MessageBox.md +28 -28
- package/docs/PagedList.md +29 -29
- package/docs/Pager.md +21 -21
- package/docs/Project.md +23 -23
- package/docs/Route.md +105 -105
- package/docs/SafetyCheck/AdjustPlan.md +13 -13
- package/docs/SafetyCheck/CheckerPlan.md +12 -12
- package/docs/Task.md +46 -46
- package/docs/TreeList.md +28 -28
- package/docs/TreeMixin.md +18 -18
- package/docs/all.md +10 -10
- package/docs/list.md +42 -42
- package/docs/partial.md +75 -75
- package/docs/selector.md +82 -82
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue-strap/345/217/230/346/233/264/350/256/260/345/275/225.md +7 -7
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue/345/217/230/346/233/264/350/256/260/345/275/225.md +13 -13
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243//345/274/200/345/217/221/347/216/257/345/242/203/350/256/276/347/275/256.md +77 -77
- package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
- package/examples/AddressList/App.vue +13 -13
- package/examples/AddressList/index.html +11 -11
- package/examples/DispatchList/App.vue +10 -10
- package/examples/DispatchList/BaseTree.vue +13 -13
- package/examples/DispatchList/Init.vue +22 -22
- package/examples/DispatchList/Test.vue +20 -20
- package/examples/DispatchList/index.html +11 -11
- package/examples/DispatchList/main.js +18 -18
- package/home.html +16 -16
- package/package.json +1 -1
- package/publish.bat +7 -7
- package/release.bat +5 -5
- package/src/Widget.vue +13 -13
- package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
- package/src/android-bootstrap/less/.csscomb.json +304 -304
- package/src/android-bootstrap/less/.csslintrc +19 -19
- package/src/android-bootstrap/less/alerts.less +73 -73
- package/src/android-bootstrap/less/badges.less +66 -66
- package/src/android-bootstrap/less/bootstrap.less +56 -56
- package/src/android-bootstrap/less/breadcrumbs.less +26 -26
- package/src/android-bootstrap/less/button-groups.less +247 -247
- package/src/android-bootstrap/less/buttons.less +173 -173
- package/src/android-bootstrap/less/carousel.less +269 -269
- package/src/android-bootstrap/less/close.less +34 -34
- package/src/android-bootstrap/less/code.less +69 -69
- package/src/android-bootstrap/less/component-animations.less +33 -33
- package/src/android-bootstrap/less/grid.less +84 -84
- package/src/android-bootstrap/less/input-groups.less +167 -167
- package/src/android-bootstrap/less/jumbotron.less +52 -52
- package/src/android-bootstrap/less/labels.less +64 -64
- package/src/android-bootstrap/less/list-group.less +141 -141
- package/src/android-bootstrap/less/media.less +66 -66
- package/src/android-bootstrap/less/mixins/alerts.less +14 -14
- package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
- package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
- package/src/android-bootstrap/less/mixins/buttons.less +69 -69
- package/src/android-bootstrap/less/mixins/center-block.less +7 -7
- package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
- package/src/android-bootstrap/less/mixins/forms.less +90 -90
- package/src/android-bootstrap/less/mixins/gradients.less +59 -59
- package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
- package/src/android-bootstrap/less/mixins/grid.less +122 -122
- package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
- package/src/android-bootstrap/less/mixins/image.less +33 -33
- package/src/android-bootstrap/less/mixins/labels.less +12 -12
- package/src/android-bootstrap/less/mixins/list-group.less +30 -30
- package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
- package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
- package/src/android-bootstrap/less/mixins/opacity.less +8 -8
- package/src/android-bootstrap/less/mixins/pagination.less +24 -24
- package/src/android-bootstrap/less/mixins/panels.less +24 -24
- package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
- package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
- package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
- package/src/android-bootstrap/less/mixins/resize.less +6 -6
- package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
- package/src/android-bootstrap/less/mixins/size.less +10 -10
- package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
- package/src/android-bootstrap/less/mixins/table-row.less +44 -44
- package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
- package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
- package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
- package/src/android-bootstrap/less/mixins.less +40 -40
- package/src/android-bootstrap/less/modals.less +151 -151
- package/src/android-bootstrap/less/navbar.less +660 -660
- package/src/android-bootstrap/less/navs.less +290 -290
- package/src/android-bootstrap/less/normalize.less +424 -424
- package/src/android-bootstrap/less/pager.less +76 -76
- package/src/android-bootstrap/less/pagination.less +89 -89
- package/src/android-bootstrap/less/panels.less +274 -274
- package/src/android-bootstrap/less/popovers.less +131 -131
- package/src/android-bootstrap/less/print.less +101 -101
- package/src/android-bootstrap/less/progress-bars.less +87 -87
- package/src/android-bootstrap/less/responsive-embed.less +35 -35
- package/src/android-bootstrap/less/responsive-utilities.less +194 -194
- package/src/android-bootstrap/less/scaffolding.less +161 -161
- package/src/android-bootstrap/less/tables.less +262 -262
- package/src/android-bootstrap/less/theme.less +291 -291
- package/src/android-bootstrap/less/thumbnails.less +36 -36
- package/src/android-bootstrap/less/tooltip.less +102 -102
- package/src/android-bootstrap/less/type.less +303 -303
- package/src/android-bootstrap/less/utilities.less +55 -55
- package/src/android-bootstrap/less/variables.less +896 -896
- package/src/android-bootstrap/less/wells.less +29 -29
- package/src/bootstrap/less/.csscomb.json +304 -304
- package/src/bootstrap/less/.csslintrc +19 -19
- package/src/bootstrap/less/alerts.less +73 -73
- package/src/bootstrap/less/badges.less +66 -66
- package/src/bootstrap/less/breadcrumbs.less +26 -26
- package/src/bootstrap/less/button-groups.less +247 -247
- package/src/bootstrap/less/buttons.less +172 -172
- package/src/bootstrap/less/carousel.less +269 -269
- package/src/bootstrap/less/close.less +34 -34
- package/src/bootstrap/less/code.less +69 -69
- package/src/bootstrap/less/component-animations.less +33 -33
- package/src/bootstrap/less/dropdowns.less +216 -216
- package/src/bootstrap/less/grid.less +84 -84
- package/src/bootstrap/less/input-groups.less +167 -167
- package/src/bootstrap/less/jumbotron.less +52 -52
- package/src/bootstrap/less/labels.less +64 -64
- package/src/bootstrap/less/list-group.less +141 -141
- package/src/bootstrap/less/media.less +66 -66
- package/src/bootstrap/less/mixins/alerts.less +14 -14
- package/src/bootstrap/less/mixins/background-variant.less +9 -9
- package/src/bootstrap/less/mixins/border-radius.less +18 -18
- package/src/bootstrap/less/mixins/buttons.less +69 -69
- package/src/bootstrap/less/mixins/center-block.less +7 -7
- package/src/bootstrap/less/mixins/clearfix.less +22 -22
- package/src/bootstrap/less/mixins/forms.less +90 -90
- package/src/bootstrap/less/mixins/gradients.less +59 -59
- package/src/bootstrap/less/mixins/grid-framework.less +92 -92
- package/src/bootstrap/less/mixins/grid.less +122 -122
- package/src/bootstrap/less/mixins/hide-text.less +21 -21
- package/src/bootstrap/less/mixins/image.less +33 -33
- package/src/bootstrap/less/mixins/labels.less +12 -12
- package/src/bootstrap/less/mixins/list-group.less +30 -30
- package/src/bootstrap/less/mixins/nav-divider.less +10 -10
- package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
- package/src/bootstrap/less/mixins/opacity.less +8 -8
- package/src/bootstrap/less/mixins/pagination.less +24 -24
- package/src/bootstrap/less/mixins/panels.less +24 -24
- package/src/bootstrap/less/mixins/progress-bar.less +10 -10
- package/src/bootstrap/less/mixins/reset-filter.less +8 -8
- package/src/bootstrap/less/mixins/reset-text.less +18 -18
- package/src/bootstrap/less/mixins/resize.less +6 -6
- package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
- package/src/bootstrap/less/mixins/size.less +10 -10
- package/src/bootstrap/less/mixins/tab-focus.less +9 -9
- package/src/bootstrap/less/mixins/table-row.less +44 -44
- package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
- package/src/bootstrap/less/mixins/text-overflow.less +8 -8
- package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
- package/src/bootstrap/less/mixins.less +40 -40
- package/src/bootstrap/less/modals.less +151 -151
- package/src/bootstrap/less/navbar.less +660 -660
- package/src/bootstrap/less/normalize.less +424 -424
- package/src/bootstrap/less/pagination.less +89 -89
- package/src/bootstrap/less/panels.less +275 -275
- package/src/bootstrap/less/popovers.less +131 -131
- package/src/bootstrap/less/print.less +101 -101
- package/src/bootstrap/less/progress-bars.less +87 -87
- package/src/bootstrap/less/responsive-embed.less +35 -35
- package/src/bootstrap/less/responsive-utilities.less +194 -194
- package/src/bootstrap/less/scaffolding.less +161 -161
- package/src/bootstrap/less/theme.less +291 -291
- package/src/bootstrap/less/thumbnails.less +36 -36
- package/src/bootstrap/less/tooltip.less +102 -102
- package/src/bootstrap/less/type.less +303 -303
- package/src/bootstrap/less/utilities.less +55 -55
- package/src/bootstrap/less/wells.less +29 -29
- package/src/components/FileUpload.vue +696 -696
- package/src/components/Hello.vue +39 -39
- package/src/components/LeftTree.vue +27 -27
- package/src/components/android/AttendanceTally.vue +116 -116
- package/src/components/android/Blank.vue +10 -10
- package/src/components/android/CheckUnplanPage.vue +56 -56
- package/src/components/android/Checker.vue +12 -12
- package/src/components/android/CheckerAnnual.vue +81 -81
- package/src/components/android/CheckerAvarta.vue +82 -82
- package/src/components/android/EquipmentInspection.vue +348 -348
- package/src/components/android/FootprintMap.vue +120 -120
- package/src/components/android/HiddentroubleInvestigation.vue +192 -192
- package/src/components/android/MasterMain.vue +77 -77
- package/src/components/android/Menu.vue +132 -132
- package/src/components/android/PaperAlarm.vue +85 -85
- package/src/components/android/PaperDeviceNoncivil.vue +214 -214
- package/src/components/android/PlumberAnnual.vue +83 -83
- package/src/components/android/PlumberAnnualDetail.vue +65 -65
- package/src/components/android/PlumberMonthly.vue +84 -84
- package/src/components/android/PostMap.vue +83 -83
- package/src/components/android/QueryCheckHistory.vue +122 -122
- package/src/components/android/QueryCheckHistoryItem.vue +62 -62
- package/src/components/android/RepairMain.vue +60 -60
- package/src/components/android/Repairman.vue +12 -12
- package/src/components/android/StationMaster.vue +12 -12
- package/src/components/defects/DefectModal.vue +101 -101
- package/src/components/defects/DevicesAndItem.vue +39 -39
- package/src/components/issueplan/IssuePlanMain.vue +23 -23
- package/src/components/map/SecurityCheckCoordinates.vue +349 -348
- package/src/components/notice/NoticeForm.vue +100 -100
- package/src/components/notice/NoticeIssue.vue +20 -20
- package/src/components/paper/PicViewer.vue +18 -18
- package/src/components/phonestate/MonthlyTraffic.vue +66 -66
- package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
- package/src/components/phonestate/PostMap.vue +82 -82
- package/src/components/planmanage/PlanManage.vue +893 -893
- package/src/components/querycheckpaper/CheckPaperList.vue +132 -132
- package/src/components/querycheckpaper/CheckPaperSearchUser.vue +100 -100
- package/src/components/querycheckpaper/PaperItem.vue +59 -59
- package/src/components/userfile/MeterFile.vue +145 -145
- package/src/components/userfile/MeterModify.vue +46 -46
- package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
- package/src/filiale/xinkang/android/SafecheckOrderV.vue +2676 -2709
- package/src/plugins/LoadData.js +10 -10
- package/src/plugins/LoadParams.js +24 -24
- package/src/stores/wxconfig.js +10 -10
- package/src/utils/getNowDate.js +33 -33
- package/test/e2e/custom-assertions/elementCount.js +26 -26
- package/test/e2e/nightwatch.conf.js +40 -40
- package/test/e2e/runner.js +30 -30
- package/test/e2e/specs/test.js +13 -13
- package/test/unit/.eslintrc +5 -5
- package/test/unit/TestUtil.js +62 -62
- package/test/unit/context.html +20 -20
- package/test/unit/index.js +13 -13
@@ -1,132 +1,132 @@
|
|
1
|
-
<template>
|
2
|
-
<div style="height: 100%;width: 100%;padding:10px 0px 10px 0px;">
|
3
|
-
<div class="auto">
|
4
|
-
<partial-view v-ref:pv>
|
5
|
-
<div class="row text-left" style="padding-bottom: 10px">
|
6
|
-
<label class="col-sm-3 control-label">用户编号:</label>
|
7
|
-
<span class="col-sm-9">{{ rowdata.f_userinfo_code }}</span>
|
8
|
-
</div>
|
9
|
-
<div class="row text-left" style="padding-bottom: 10px">
|
10
|
-
<label class="col-sm-3 control-label">用户姓名:</label>
|
11
|
-
<span class="col-sm-9">{{ rowdata.f_user_name }}</span>
|
12
|
-
</div>
|
13
|
-
<div class="row text-left" style="padding-bottom: 10px">
|
14
|
-
<label class="col-sm-3 control-label">用户类型:</label>
|
15
|
-
<span class="col-sm-9">{{ rowdata.f_user_type }}</span>
|
16
|
-
</div>
|
17
|
-
<div class="row text-left" style="padding-bottom: 10px">
|
18
|
-
<label class="col-sm-3 control-label">用户地址:</label>
|
19
|
-
<span class="col-sm-9">{{ rowdata.f_address }}</span>
|
20
|
-
</div>
|
21
|
-
</partial-view>
|
22
|
-
</div>
|
23
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
24
|
-
<template partial='head'>
|
25
|
-
<tr>
|
26
|
-
<th>安检人</th>
|
27
|
-
<!-- <th>安检开始时间</th>-->
|
28
|
-
<th>安检结束时间</th>
|
29
|
-
<th>安检上传时间</th>
|
30
|
-
<th>安检状态</th>
|
31
|
-
<!-- <th>隐患情况</th>-->
|
32
|
-
<th>操作</th>
|
33
|
-
</tr>
|
34
|
-
</template>
|
35
|
-
<template partial='body'>
|
36
|
-
<tr style="text-align: center">
|
37
|
-
<td style="text-align: center">{{ row.f_checker_name }}</td>
|
38
|
-
<!-- <td>{{row.f_onsite_time}}</td>-->
|
39
|
-
<td style="text-align: center">{{ row.f_offsite_time }}</td>
|
40
|
-
<td style="text-align: center">{{ row.f_upload_date }}</td>
|
41
|
-
<td style="text-align: center">{{ row.f_entry_status }}</td>
|
42
|
-
<!-- <td>{{$parent.$parent.getDefect(row.f_defect_content)}}</td>-->
|
43
|
-
<td style="text-align: center">
|
44
|
-
<button class="button_spacing button_search-1" @click='$parent.$parent.goDetail(row)'>查看</button>
|
45
|
-
</td>
|
46
|
-
</tr>
|
47
|
-
</template>
|
48
|
-
</data-grid>
|
49
|
-
</div>
|
50
|
-
</template>
|
51
|
-
|
52
|
-
<script>
|
53
|
-
import {PagedList} from 'vue-client'
|
54
|
-
import Vue from "vue";
|
55
|
-
import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
|
56
|
-
import {isEmpty} from "../Util";
|
57
|
-
|
58
|
-
let asyncReady = async function (self) {
|
59
|
-
// 获取配置信息
|
60
|
-
try {
|
61
|
-
let res = await new HttpResetClass().load('get','/api/af-safecheck/vue',null, {resolveMsg: null, rejectMsg: null})
|
62
|
-
self.delConfigKey(res.data)
|
63
|
-
Vue.config.safecheck=res.data
|
64
|
-
console.log('获取配置结果===', res.data)
|
65
|
-
} catch (error) {
|
66
|
-
// 忽略704,文件找不到异常R
|
67
|
-
if (error.status !== 704) {
|
68
|
-
throw error
|
69
|
-
}
|
70
|
-
}
|
71
|
-
}
|
72
|
-
|
73
|
-
export default {
|
74
|
-
title: '安检记录列表',
|
75
|
-
props: ['row'],
|
76
|
-
data() {
|
77
|
-
return {
|
78
|
-
rowdata: this.row,
|
79
|
-
model: new PagedList('api/af-safecheck/sql/查找安检单', 10, {
|
80
|
-
f_filialeid: "''",
|
81
|
-
f_plan_id: "''",
|
82
|
-
f_approved: "''",
|
83
|
-
f_entry_status: "''",
|
84
|
-
f_no_checkplan: "''",
|
85
|
-
orderitem: "'f_offsite_time desc'"
|
86
|
-
})
|
87
|
-
}
|
88
|
-
},
|
89
|
-
ready() {
|
90
|
-
this.rowdata = this.row
|
91
|
-
var condition =' 1=1 '
|
92
|
-
if(!isEmpty(this.row.f_userinfo_id)){
|
93
|
-
condition+= " and f_userinfoid = '" + this.row.f_userinfo_id + "'"
|
94
|
-
}
|
95
|
-
if (this.row.filialeCon){
|
96
|
-
condition += ` and ${this.row.filialeCon}`
|
97
|
-
}
|
98
|
-
this.model.params.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
|
99
|
-
this.model.search(condition)
|
100
|
-
},
|
101
|
-
watch: {
|
102
|
-
'row'(val) {
|
103
|
-
if (val) {
|
104
|
-
this.rowdata = val
|
105
|
-
var condition = "f_userinfoid = '" + this.row.f_userinfo_id + "'"
|
106
|
-
if (this.row.filialeCon){
|
107
|
-
condition += ` and ${this.row.filialeCon}`
|
108
|
-
}
|
109
|
-
this.model.search(condition)
|
110
|
-
|
111
|
-
}
|
112
|
-
}
|
113
|
-
},
|
114
|
-
methods: {
|
115
|
-
getDefect(val) {
|
116
|
-
if (val) {
|
117
|
-
try {
|
118
|
-
var defect = JSON.parse(val)
|
119
|
-
return defect.result
|
120
|
-
} catch (e) {
|
121
|
-
//tag
|
122
|
-
return '正常'
|
123
|
-
}
|
124
|
-
}
|
125
|
-
return '正常'
|
126
|
-
},
|
127
|
-
goDetail(row) {
|
128
|
-
this.$emit('showcheckpaper',row)
|
129
|
-
}
|
130
|
-
}
|
131
|
-
}
|
132
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div style="height: 100%;width: 100%;padding:10px 0px 10px 0px;">
|
3
|
+
<div class="auto">
|
4
|
+
<partial-view v-ref:pv>
|
5
|
+
<div class="row text-left" style="padding-bottom: 10px">
|
6
|
+
<label class="col-sm-3 control-label">用户编号:</label>
|
7
|
+
<span class="col-sm-9">{{ rowdata.f_userinfo_code }}</span>
|
8
|
+
</div>
|
9
|
+
<div class="row text-left" style="padding-bottom: 10px">
|
10
|
+
<label class="col-sm-3 control-label">用户姓名:</label>
|
11
|
+
<span class="col-sm-9">{{ rowdata.f_user_name }}</span>
|
12
|
+
</div>
|
13
|
+
<div class="row text-left" style="padding-bottom: 10px">
|
14
|
+
<label class="col-sm-3 control-label">用户类型:</label>
|
15
|
+
<span class="col-sm-9">{{ rowdata.f_user_type }}</span>
|
16
|
+
</div>
|
17
|
+
<div class="row text-left" style="padding-bottom: 10px">
|
18
|
+
<label class="col-sm-3 control-label">用户地址:</label>
|
19
|
+
<span class="col-sm-9">{{ rowdata.f_address }}</span>
|
20
|
+
</div>
|
21
|
+
</partial-view>
|
22
|
+
</div>
|
23
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
24
|
+
<template partial='head'>
|
25
|
+
<tr>
|
26
|
+
<th>安检人</th>
|
27
|
+
<!-- <th>安检开始时间</th>-->
|
28
|
+
<th>安检结束时间</th>
|
29
|
+
<th>安检上传时间</th>
|
30
|
+
<th>安检状态</th>
|
31
|
+
<!-- <th>隐患情况</th>-->
|
32
|
+
<th>操作</th>
|
33
|
+
</tr>
|
34
|
+
</template>
|
35
|
+
<template partial='body'>
|
36
|
+
<tr style="text-align: center">
|
37
|
+
<td style="text-align: center">{{ row.f_checker_name }}</td>
|
38
|
+
<!-- <td>{{row.f_onsite_time}}</td>-->
|
39
|
+
<td style="text-align: center">{{ row.f_offsite_time }}</td>
|
40
|
+
<td style="text-align: center">{{ row.f_upload_date }}</td>
|
41
|
+
<td style="text-align: center">{{ row.f_entry_status }}</td>
|
42
|
+
<!-- <td>{{$parent.$parent.getDefect(row.f_defect_content)}}</td>-->
|
43
|
+
<td style="text-align: center">
|
44
|
+
<button class="button_spacing button_search-1" @click='$parent.$parent.goDetail(row)'>查看</button>
|
45
|
+
</td>
|
46
|
+
</tr>
|
47
|
+
</template>
|
48
|
+
</data-grid>
|
49
|
+
</div>
|
50
|
+
</template>
|
51
|
+
|
52
|
+
<script>
|
53
|
+
import {PagedList} from 'vue-client'
|
54
|
+
import Vue from "vue";
|
55
|
+
import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
|
56
|
+
import {isEmpty} from "../Util";
|
57
|
+
|
58
|
+
let asyncReady = async function (self) {
|
59
|
+
// 获取配置信息
|
60
|
+
try {
|
61
|
+
let res = await new HttpResetClass().load('get','/api/af-safecheck/vue',null, {resolveMsg: null, rejectMsg: null})
|
62
|
+
self.delConfigKey(res.data)
|
63
|
+
Vue.config.safecheck=res.data
|
64
|
+
console.log('获取配置结果===', res.data)
|
65
|
+
} catch (error) {
|
66
|
+
// 忽略704,文件找不到异常R
|
67
|
+
if (error.status !== 704) {
|
68
|
+
throw error
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
export default {
|
74
|
+
title: '安检记录列表',
|
75
|
+
props: ['row'],
|
76
|
+
data() {
|
77
|
+
return {
|
78
|
+
rowdata: this.row,
|
79
|
+
model: new PagedList('api/af-safecheck/sql/查找安检单', 10, {
|
80
|
+
f_filialeid: "''",
|
81
|
+
f_plan_id: "''",
|
82
|
+
f_approved: "''",
|
83
|
+
f_entry_status: "''",
|
84
|
+
f_no_checkplan: "''",
|
85
|
+
orderitem: "'f_offsite_time desc'"
|
86
|
+
})
|
87
|
+
}
|
88
|
+
},
|
89
|
+
ready() {
|
90
|
+
this.rowdata = this.row
|
91
|
+
var condition =' 1=1 '
|
92
|
+
if(!isEmpty(this.row.f_userinfo_id)){
|
93
|
+
condition+= " and f_userinfoid = '" + this.row.f_userinfo_id + "'"
|
94
|
+
}
|
95
|
+
if (this.row.filialeCon){
|
96
|
+
condition += ` and ${this.row.filialeCon}`
|
97
|
+
}
|
98
|
+
this.model.params.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
|
99
|
+
this.model.search(condition)
|
100
|
+
},
|
101
|
+
watch: {
|
102
|
+
'row'(val) {
|
103
|
+
if (val) {
|
104
|
+
this.rowdata = val
|
105
|
+
var condition = "f_userinfoid = '" + this.row.f_userinfo_id + "'"
|
106
|
+
if (this.row.filialeCon){
|
107
|
+
condition += ` and ${this.row.filialeCon}`
|
108
|
+
}
|
109
|
+
this.model.search(condition)
|
110
|
+
|
111
|
+
}
|
112
|
+
}
|
113
|
+
},
|
114
|
+
methods: {
|
115
|
+
getDefect(val) {
|
116
|
+
if (val) {
|
117
|
+
try {
|
118
|
+
var defect = JSON.parse(val)
|
119
|
+
return defect.result
|
120
|
+
} catch (e) {
|
121
|
+
//tag
|
122
|
+
return '正常'
|
123
|
+
}
|
124
|
+
}
|
125
|
+
return '正常'
|
126
|
+
},
|
127
|
+
goDetail(row) {
|
128
|
+
this.$emit('showcheckpaper',row)
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
</script>
|
@@ -1,100 +1,100 @@
|
|
1
|
-
<template>
|
2
|
-
<!--安检综合查询主界面-->
|
3
|
-
<div id="unit" class="flex-row" :class="{'binary':showItem}">
|
4
|
-
<div :class="{'basic-main':!showItem,'binary-left':showItem}">
|
5
|
-
<!--展示查询界面-->
|
6
|
-
<check-search-user class="flex" :tempval="hidden" :style="style" :style2="style2" @select-changed="selected"
|
7
|
-
@filiale-change="filialeChange"
|
8
|
-
@canel-main="close" v-ref:checksearch></check-search-user>
|
9
|
-
</div>
|
10
|
-
<div class="binary-right" v-show="showItem">
|
11
|
-
<div class="flex">
|
12
|
-
<check-paper-list style="height: 100%" :row="rowData" v-on:showcheckpaper="checkpapershow"></check-paper-list>
|
13
|
-
</div>
|
14
|
-
</div>
|
15
|
-
</div>
|
16
|
-
<new-check-paper v-if="showinfo2" :f_plan_id="shouinfodata.f_check_plan_id" :item="shouinfodata" :role="'view'" v-on:showback="showback1"></new-check-paper>
|
17
|
-
<new-check-paper-temp v-if="showinfo3" :f_plan_id="shouinfodata.f_check_plan_id" :item="shouinfodata" :role="'view'" v-on:showback="showback2"></new-check-paper-temp>
|
18
|
-
</template>
|
19
|
-
|
20
|
-
<script>
|
21
|
-
|
22
|
-
export default {
|
23
|
-
title: '用户安检情况',
|
24
|
-
name: 'CheckPaperSearchUser',
|
25
|
-
data() {
|
26
|
-
return {
|
27
|
-
style: 'col-sm-2 form-group',
|
28
|
-
style2: 'col-sm-4 form-group',
|
29
|
-
hidden: true,
|
30
|
-
barwidth: '100%',
|
31
|
-
showItem: false,
|
32
|
-
rowData: {},
|
33
|
-
filialeCon: '',
|
34
|
-
shouinfodata:{},
|
35
|
-
showinfo1:true,
|
36
|
-
showinfo2: false,
|
37
|
-
showinfo3:false
|
38
|
-
|
39
|
-
}
|
40
|
-
},
|
41
|
-
methods: {
|
42
|
-
showback1(){
|
43
|
-
this.showinfo1 = true
|
44
|
-
this.showinfo2 = false
|
45
|
-
},
|
46
|
-
showback2(){
|
47
|
-
this.showinfo1 = true
|
48
|
-
this.showinfo3 = false
|
49
|
-
},
|
50
|
-
checkpapershow(val){
|
51
|
-
val.f_upload_state = '已传'
|
52
|
-
this.shouinfodata = JSON.parse(JSON.stringify(val))
|
53
|
-
this.showinfo1 = false
|
54
|
-
if (val.f_safe_type == '已挂表未办卡安检'){
|
55
|
-
this.showinfo2 = false
|
56
|
-
this.showinfo3 = true
|
57
|
-
return
|
58
|
-
}
|
59
|
-
this.showinfo2 = true
|
60
|
-
this.showinfo3 = false
|
61
|
-
},
|
62
|
-
show() {
|
63
|
-
this.showItem = this.showItem ? false : true
|
64
|
-
},
|
65
|
-
selected(row) {
|
66
|
-
if (row.val && this.filialeCon){
|
67
|
-
row.val.filialeCon = this.filialeCon
|
68
|
-
}
|
69
|
-
this.showItem = true
|
70
|
-
this.barwidth = '50%'
|
71
|
-
this.rowData = row.val
|
72
|
-
this.hidden = false
|
73
|
-
//tag
|
74
|
-
},
|
75
|
-
filialeChange(filialeCon){
|
76
|
-
this.filialeCon = filialeCon
|
77
|
-
},
|
78
|
-
close() {
|
79
|
-
this.showItem = false
|
80
|
-
this.barwidth = '100%'
|
81
|
-
this.hidden = true
|
82
|
-
}
|
83
|
-
},
|
84
|
-
watch: {
|
85
|
-
'showItem'(val) {
|
86
|
-
//tag
|
87
|
-
//tag
|
88
|
-
if (val) {
|
89
|
-
this.style = 'col-sm-3 form-group'
|
90
|
-
this.style2 = 'col-sm-6 form-group'
|
91
|
-
} else {
|
92
|
-
this.style = 'col-sm-2 form-group'
|
93
|
-
this.style2 = 'col-sm-4 form-group'
|
94
|
-
}
|
95
|
-
}
|
96
|
-
}
|
97
|
-
}
|
98
|
-
|
99
|
-
</script>
|
100
|
-
|
1
|
+
<template>
|
2
|
+
<!--安检综合查询主界面-->
|
3
|
+
<div id="unit" class="flex-row" :class="{'binary':showItem}">
|
4
|
+
<div :class="{'basic-main':!showItem,'binary-left':showItem}">
|
5
|
+
<!--展示查询界面-->
|
6
|
+
<check-search-user class="flex" :tempval="hidden" :style="style" :style2="style2" @select-changed="selected"
|
7
|
+
@filiale-change="filialeChange"
|
8
|
+
@canel-main="close" v-ref:checksearch></check-search-user>
|
9
|
+
</div>
|
10
|
+
<div class="binary-right" v-show="showItem">
|
11
|
+
<div class="flex">
|
12
|
+
<check-paper-list style="height: 100%" :row="rowData" v-on:showcheckpaper="checkpapershow"></check-paper-list>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<new-check-paper v-if="showinfo2" :f_plan_id="shouinfodata.f_check_plan_id" :item="shouinfodata" :role="'view'" v-on:showback="showback1"></new-check-paper>
|
17
|
+
<new-check-paper-temp v-if="showinfo3" :f_plan_id="shouinfodata.f_check_plan_id" :item="shouinfodata" :role="'view'" v-on:showback="showback2"></new-check-paper-temp>
|
18
|
+
</template>
|
19
|
+
|
20
|
+
<script>
|
21
|
+
|
22
|
+
export default {
|
23
|
+
title: '用户安检情况',
|
24
|
+
name: 'CheckPaperSearchUser',
|
25
|
+
data() {
|
26
|
+
return {
|
27
|
+
style: 'col-sm-2 form-group',
|
28
|
+
style2: 'col-sm-4 form-group',
|
29
|
+
hidden: true,
|
30
|
+
barwidth: '100%',
|
31
|
+
showItem: false,
|
32
|
+
rowData: {},
|
33
|
+
filialeCon: '',
|
34
|
+
shouinfodata:{},
|
35
|
+
showinfo1:true,
|
36
|
+
showinfo2: false,
|
37
|
+
showinfo3:false
|
38
|
+
|
39
|
+
}
|
40
|
+
},
|
41
|
+
methods: {
|
42
|
+
showback1(){
|
43
|
+
this.showinfo1 = true
|
44
|
+
this.showinfo2 = false
|
45
|
+
},
|
46
|
+
showback2(){
|
47
|
+
this.showinfo1 = true
|
48
|
+
this.showinfo3 = false
|
49
|
+
},
|
50
|
+
checkpapershow(val){
|
51
|
+
val.f_upload_state = '已传'
|
52
|
+
this.shouinfodata = JSON.parse(JSON.stringify(val))
|
53
|
+
this.showinfo1 = false
|
54
|
+
if (val.f_safe_type == '已挂表未办卡安检'){
|
55
|
+
this.showinfo2 = false
|
56
|
+
this.showinfo3 = true
|
57
|
+
return
|
58
|
+
}
|
59
|
+
this.showinfo2 = true
|
60
|
+
this.showinfo3 = false
|
61
|
+
},
|
62
|
+
show() {
|
63
|
+
this.showItem = this.showItem ? false : true
|
64
|
+
},
|
65
|
+
selected(row) {
|
66
|
+
if (row.val && this.filialeCon){
|
67
|
+
row.val.filialeCon = this.filialeCon
|
68
|
+
}
|
69
|
+
this.showItem = true
|
70
|
+
this.barwidth = '50%'
|
71
|
+
this.rowData = row.val
|
72
|
+
this.hidden = false
|
73
|
+
//tag
|
74
|
+
},
|
75
|
+
filialeChange(filialeCon){
|
76
|
+
this.filialeCon = filialeCon
|
77
|
+
},
|
78
|
+
close() {
|
79
|
+
this.showItem = false
|
80
|
+
this.barwidth = '100%'
|
81
|
+
this.hidden = true
|
82
|
+
}
|
83
|
+
},
|
84
|
+
watch: {
|
85
|
+
'showItem'(val) {
|
86
|
+
//tag
|
87
|
+
//tag
|
88
|
+
if (val) {
|
89
|
+
this.style = 'col-sm-3 form-group'
|
90
|
+
this.style2 = 'col-sm-6 form-group'
|
91
|
+
} else {
|
92
|
+
this.style = 'col-sm-2 form-group'
|
93
|
+
this.style2 = 'col-sm-4 form-group'
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
</script>
|
100
|
+
|
@@ -1,59 +1,59 @@
|
|
1
|
-
<template>
|
2
|
-
<div style="height: 100%;width: 100%;padding:10px 0px 10px 0px;">
|
3
|
-
<div class="auto">
|
4
|
-
<partial-view v-ref:pv>
|
5
|
-
<div class="row" style="padding-bottom: 10px">
|
6
|
-
<label class = "col-sm-4 control-label">用户姓名:</label>
|
7
|
-
<span class = "col-sm-8">{{rowdata.f_user_name}}</span>
|
8
|
-
</div>
|
9
|
-
<div class="row" style="padding-bottom: 10px">
|
10
|
-
<label class = "col-sm-4 control-label">用户地址:</label>
|
11
|
-
<span class = "col-sm-8">{{rowdata.f_address}}</span>
|
12
|
-
</div>
|
13
|
-
<div class="row" style="padding-bottom: 10px">
|
14
|
-
<label class = "col-sm-3 control-label">安检人:</label>
|
15
|
-
<span class = "col-sm-3">{{rowdata.f_checker_name}}</span>
|
16
|
-
<label class = "col-sm-3 control-label">安检状态:</label>
|
17
|
-
<span class = "col-sm-3">{{rowdata.f_entry_status}}</span>
|
18
|
-
</div>
|
19
|
-
<div class="row" style="padding-bottom: 10px">
|
20
|
-
<label class = "col-sm-3 control-label">入户时间:</label>
|
21
|
-
<span class = "col-sm-9">{{rowdata.f_onsite_time}}</span>
|
22
|
-
</div>
|
23
|
-
<div class="row" style="padding-bottom: 10px">
|
24
|
-
<label class = "col-sm-3 control-label">离开时间:</label>
|
25
|
-
<span class = "col-sm-9">{{rowdata.f_offsite_time}}</span>
|
26
|
-
</div>
|
27
|
-
<div class="row" style="padding-bottom: 10px">
|
28
|
-
<label class = "col-sm-3 control-label">用户评价:</label>
|
29
|
-
<span class = "col-sm-3">{{rowdata.f_client_evaluation}}</span>
|
30
|
-
</div>
|
31
|
-
</partial-view>
|
32
|
-
</div>
|
33
|
-
<check-paper-items :row="rowdata"></check-paper-items>
|
34
|
-
</div>
|
35
|
-
</template>
|
36
|
-
|
37
|
-
<script>
|
38
|
-
import Vue from 'vue'
|
39
|
-
import co from 'co'
|
40
|
-
|
41
|
-
export default {
|
42
|
-
title: '安检项信息',
|
43
|
-
name: 'CheckPaperItem',
|
44
|
-
props: ['row'],
|
45
|
-
data () {
|
46
|
-
return {
|
47
|
-
rowdata: this.row
|
48
|
-
}
|
49
|
-
},
|
50
|
-
ready () {
|
51
|
-
this.rowdata = this.row
|
52
|
-
},
|
53
|
-
watch: {
|
54
|
-
'row' (val) {
|
55
|
-
this.rowdata = val
|
56
|
-
}
|
57
|
-
}
|
58
|
-
}
|
59
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div style="height: 100%;width: 100%;padding:10px 0px 10px 0px;">
|
3
|
+
<div class="auto">
|
4
|
+
<partial-view v-ref:pv>
|
5
|
+
<div class="row" style="padding-bottom: 10px">
|
6
|
+
<label class = "col-sm-4 control-label">用户姓名:</label>
|
7
|
+
<span class = "col-sm-8">{{rowdata.f_user_name}}</span>
|
8
|
+
</div>
|
9
|
+
<div class="row" style="padding-bottom: 10px">
|
10
|
+
<label class = "col-sm-4 control-label">用户地址:</label>
|
11
|
+
<span class = "col-sm-8">{{rowdata.f_address}}</span>
|
12
|
+
</div>
|
13
|
+
<div class="row" style="padding-bottom: 10px">
|
14
|
+
<label class = "col-sm-3 control-label">安检人:</label>
|
15
|
+
<span class = "col-sm-3">{{rowdata.f_checker_name}}</span>
|
16
|
+
<label class = "col-sm-3 control-label">安检状态:</label>
|
17
|
+
<span class = "col-sm-3">{{rowdata.f_entry_status}}</span>
|
18
|
+
</div>
|
19
|
+
<div class="row" style="padding-bottom: 10px">
|
20
|
+
<label class = "col-sm-3 control-label">入户时间:</label>
|
21
|
+
<span class = "col-sm-9">{{rowdata.f_onsite_time}}</span>
|
22
|
+
</div>
|
23
|
+
<div class="row" style="padding-bottom: 10px">
|
24
|
+
<label class = "col-sm-3 control-label">离开时间:</label>
|
25
|
+
<span class = "col-sm-9">{{rowdata.f_offsite_time}}</span>
|
26
|
+
</div>
|
27
|
+
<div class="row" style="padding-bottom: 10px">
|
28
|
+
<label class = "col-sm-3 control-label">用户评价:</label>
|
29
|
+
<span class = "col-sm-3">{{rowdata.f_client_evaluation}}</span>
|
30
|
+
</div>
|
31
|
+
</partial-view>
|
32
|
+
</div>
|
33
|
+
<check-paper-items :row="rowdata"></check-paper-items>
|
34
|
+
</div>
|
35
|
+
</template>
|
36
|
+
|
37
|
+
<script>
|
38
|
+
import Vue from 'vue'
|
39
|
+
import co from 'co'
|
40
|
+
|
41
|
+
export default {
|
42
|
+
title: '安检项信息',
|
43
|
+
name: 'CheckPaperItem',
|
44
|
+
props: ['row'],
|
45
|
+
data () {
|
46
|
+
return {
|
47
|
+
rowdata: this.row
|
48
|
+
}
|
49
|
+
},
|
50
|
+
ready () {
|
51
|
+
this.rowdata = this.row
|
52
|
+
},
|
53
|
+
watch: {
|
54
|
+
'row' (val) {
|
55
|
+
this.rowdata = val
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
</script>
|