safecheck-client 4.0.2-50 → 4.0.2-52
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/build/libs/SafecheckClient-1.15.6-9.jar +0 -0
- package/build/tmp/jar/MANIFEST.MF +2 -0
- 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/AndroidNotifiedDeal.vue +417 -0
- 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/PhoneUpUserinfo.vue +1249 -1249
- 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/SafeRightTree.vue +218 -218
- package/src/components/android/SafecheckDevices.vue +1340 -1340
- package/src/components/android/StationMaster.vue +12 -12
- package/src/components/android/week/CheckResultSimple.vue +251 -251
- package/src/components/android/week/FirstWeekCheck.vue +275 -275
- package/src/components/android/week/StepHeaderBar.vue +457 -457
- package/src/components/android/week/WeekCheck.vue +209 -209
- package/src/components/android/week/WeekCheckPaper.vue +219 -219
- package/src/components/android/week/WeekCheckPlan.vue +145 -145
- 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/notice/NoticeForm.vue +100 -100
- package/src/components/notice/NoticeIssue.vue +20 -20
- package/src/components/paper/PicViewer.vue +18 -18
- package/src/components/pc/CheckBookArea.vue +146 -146
- package/src/components/pc/CheckBookCompany.vue +144 -144
- package/src/components/pc/CheckBookDetails.vue +161 -161
- package/src/components/pc/CheckBookEntry.vue +60 -60
- package/src/components/pc/CheckBookSearchArea.vue +560 -560
- package/src/components/pc/CheckBookSearchUnit.vue +229 -229
- package/src/components/pc/CheckBookSearchUser.vue +659 -659
- package/src/components/pc/CheckBookSearchUserList.vue +674 -674
- 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/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/jinhong/android/AndroidDefectDeal.vue +722 -0
- package/src/filiale/jinhong/android.js +2 -1
- package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
- package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
- package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1343
- package/src/filiale/meihekou/android.js +22 -22
- package/src/filiale/meihekou/pc/CheckDetail.vue +217 -217
- package/src/plugins/LoadData.js +10 -10
- package/src/plugins/LoadParams.js +24 -24
- package/src/safecheck-android.js +328 -327
- 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
- package/build/css-loaders.js +0 -34
- package/build/dev-android.js +0 -151
- package/build/dev-client.js +0 -8
- package/build/example-server.js +0 -157
- package/build/release.sh +0 -28
- package/build/utils.js +0 -71
- package/build/webpack.base.conf.js +0 -129
- package/build/webpack.baseandroid.conf.js +0 -83
- package/build/webpack.dev.conf.js +0 -44
- package/build/webpack.devandroid.conf.js +0 -33
- package/build/webpack.example.conf.js +0 -49
- package/build/webpack.hanwei.conf.js +0 -57
- package/build/webpack.hwbase.conf.js +0 -78
- package/build/webpack.prod.conf.js +0 -78
- package/build/webpack.prodandroid.conf.js +0 -60
- package/build/webpack.test.conf.js +0 -31
package/src/components/Hello.vue
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="hello">这是自己
|
|
3
|
-
<h1>Welcome to Your Vue.js App{{msg}} </h1>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
title: 'Hello',
|
|
10
|
-
name: 'hello',
|
|
11
|
-
props: ['msg'],
|
|
12
|
-
methods: {
|
|
13
|
-
toTable () {
|
|
14
|
-
this.$back()
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
21
|
-
<style scoped>
|
|
22
|
-
h1, h2 {
|
|
23
|
-
font-weight: normal;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
ul {
|
|
27
|
-
list-style-type: none;
|
|
28
|
-
padding: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
li {
|
|
32
|
-
display: inline-block;
|
|
33
|
-
margin: 0 10px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
a {
|
|
37
|
-
color: #42b983;
|
|
38
|
-
}
|
|
39
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="hello">这是自己
|
|
3
|
+
<h1>Welcome to Your Vue.js App{{msg}} </h1>
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
title: 'Hello',
|
|
10
|
+
name: 'hello',
|
|
11
|
+
props: ['msg'],
|
|
12
|
+
methods: {
|
|
13
|
+
toTable () {
|
|
14
|
+
this.$back()
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
21
|
+
<style scoped>
|
|
22
|
+
h1, h2 {
|
|
23
|
+
font-weight: normal;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
ul {
|
|
27
|
+
list-style-type: none;
|
|
28
|
+
padding: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
li {
|
|
32
|
+
display: inline-block;
|
|
33
|
+
margin: 0 10px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
a {
|
|
37
|
+
color: #42b983;
|
|
38
|
+
}
|
|
39
|
+
</style>
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class='over'>
|
|
3
|
-
<tree :model='functions.functions' :is-click="false">
|
|
4
|
-
<span partial>{{row.data.name}}</span>
|
|
5
|
-
</tree>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
export default {
|
|
11
|
-
props: ['functions'],
|
|
12
|
-
title: '左侧树菜单',
|
|
13
|
-
methods: {
|
|
14
|
-
open (row) {
|
|
15
|
-
if (row.data.link) {
|
|
16
|
-
this.$goto(row.data.link, {f: this.functions}, 'home-page')
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
events: {
|
|
21
|
-
'select-changed': function (data) {
|
|
22
|
-
// 事件回调内的 `this` 自动绑定到注册它的实例上
|
|
23
|
-
this.open(data.val)
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class='over'>
|
|
3
|
+
<tree :model='functions.functions' :is-click="false">
|
|
4
|
+
<span partial>{{row.data.name}}</span>
|
|
5
|
+
</tree>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
export default {
|
|
11
|
+
props: ['functions'],
|
|
12
|
+
title: '左侧树菜单',
|
|
13
|
+
methods: {
|
|
14
|
+
open (row) {
|
|
15
|
+
if (row.data.link) {
|
|
16
|
+
this.$goto(row.data.link, {f: this.functions}, 'home-page')
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
events: {
|
|
21
|
+
'select-changed': function (data) {
|
|
22
|
+
// 事件回调内的 `this` 自动绑定到注册它的实例上
|
|
23
|
+
this.open(data.val)
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
<style scoped>
|
|
2
|
+
.bg {
|
|
3
|
+
background-color: blue;
|
|
4
|
+
height: 1px;
|
|
5
|
+
border: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.app-row {
|
|
9
|
+
background-color: white;
|
|
10
|
+
padding: 10px 10px 0 10px;
|
|
11
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.search_input {
|
|
15
|
+
border: 0;
|
|
16
|
+
outline: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.font {
|
|
20
|
+
font: 15px PingFang-SC-Medium;
|
|
21
|
+
color: #666666;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.input-font {
|
|
25
|
+
font: 15px PingFang-SC-Medium;
|
|
26
|
+
color: #333333;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.btn-font {
|
|
30
|
+
font: 600 16px PingFang-SC-Bold;
|
|
31
|
+
color: #499EDF;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.btn-color {
|
|
35
|
+
background-color: #FFFFFF;
|
|
36
|
+
border-radius: 10px;
|
|
37
|
+
border: 1px solid #499EDF;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.app-text {
|
|
41
|
+
font-size: 12px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.panel-self {
|
|
45
|
+
border-radius: 10px;
|
|
46
|
+
border: 1px solid #499EDF;
|
|
47
|
+
background-color: #F8F8F8;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.yybtn-color {
|
|
51
|
+
background-color: #499edf;
|
|
52
|
+
border-radius: 4px;
|
|
53
|
+
border: 1px solid #499EDF;
|
|
54
|
+
color: #FFFFFF;
|
|
55
|
+
font: 14px PingFang-SC-Bold;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.qxbtn-color {
|
|
59
|
+
background-color: #FFFFFF;
|
|
60
|
+
border-radius: 4px;
|
|
61
|
+
color: #499edf;
|
|
62
|
+
font: 14px PingFang-SC-Bold;
|
|
63
|
+
border: 1px solid #499EDF;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.button_shrink_top {
|
|
67
|
+
width: 35px;
|
|
68
|
+
height: 35px;
|
|
69
|
+
background-size: 100%;
|
|
70
|
+
background-image: url("../../../static/newStyle/stretch_top.png")
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.button_shrink_bottom {
|
|
74
|
+
width: 35px;
|
|
75
|
+
height: 35px;
|
|
76
|
+
background-size: 100%;
|
|
77
|
+
background-image: url("../../../static/newStyle/stretch_bottom.png")
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.button_shrink_left {
|
|
81
|
+
width: 35px;
|
|
82
|
+
height: 35px;
|
|
83
|
+
background-size: 100%;
|
|
84
|
+
background-image: url("../../../static/newStyle/stretch_left.png")
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.button_shrink_right {
|
|
88
|
+
width: 35px;
|
|
89
|
+
height: 35px;
|
|
90
|
+
background-size: 100%;
|
|
91
|
+
background-image: url("../../../static/newStyle/stretch_right.png")
|
|
92
|
+
}
|
|
93
|
+
</style>
|
|
94
|
+
<template>
|
|
95
|
+
<div style="height: auto;width: 100%">
|
|
96
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
97
|
+
<criteria partial='criteria' @condition-changed='search' v-ref:cri>
|
|
98
|
+
<div partial>
|
|
99
|
+
<form>
|
|
100
|
+
<div class="row app-row">
|
|
101
|
+
<div class="col-xs-4">
|
|
102
|
+
<img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
103
|
+
<label class="font text-left">用户姓名:</label>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="col-xs-8">
|
|
106
|
+
<input class="search_input input-font" v-model=model.f_user_name
|
|
107
|
+
condition="tcp.f_user_name like '%{}%'"/>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="row app-row">
|
|
111
|
+
<div class="col-xs-4">
|
|
112
|
+
<img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
113
|
+
<label for="f_userinfo_code" class="font text-left">用户编号:</label>
|
|
114
|
+
</div>
|
|
115
|
+
<div class="col-xs-8">
|
|
116
|
+
<input id="f_userinfo_code" class="search_input input-font"
|
|
117
|
+
v-model=model.f_userinfo_code condition="tcp.f_userinfo_code like '%{}%'"/>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="row app-row">
|
|
121
|
+
<div class="col-xs-4">
|
|
122
|
+
<img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
123
|
+
<label for="f_userinfo_code" class="font text-left">安检人员:</label>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="col-xs-8">
|
|
126
|
+
<input id="f_userinfo_code" class="search_input input-font"
|
|
127
|
+
v-model=model.f_checker_name condition="tcp.f_checker_name like '%{}%'"/>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
<div class="row app-row">
|
|
131
|
+
<div class="col-xs-4">
|
|
132
|
+
<img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
133
|
+
<label class="font text-left">用户地址:</label>
|
|
134
|
+
</div>
|
|
135
|
+
<div class="col-xs-8">
|
|
136
|
+
<input class="search_input input-font"
|
|
137
|
+
v-model=model.f_address condition="tcp.f_address like '%{}%'"/>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="row text-center" style="margin-top: 20px;">
|
|
141
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
|
|
142
|
+
@click="$parent.$parent.selfSearch">查询
|
|
143
|
+
</button>
|
|
144
|
+
<div style="float: right;margin-right: 3% " class="button_spacing"
|
|
145
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
146
|
+
@click="$parent.$parent.hidden()"></div>
|
|
147
|
+
</div>
|
|
148
|
+
<div style="height:30px;"></div>
|
|
149
|
+
</form>
|
|
150
|
+
</div>
|
|
151
|
+
</criteria>
|
|
152
|
+
<list :model="model" partial='list'>
|
|
153
|
+
<div partial>
|
|
154
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
|
155
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
|
156
|
+
<div class="panel-body panel-self">
|
|
157
|
+
<div class="col-xs-12">
|
|
158
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
|
|
159
|
+
<p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
|
|
160
|
+
</div>
|
|
161
|
+
<div class="col-xs-12">
|
|
162
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
|
|
163
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
|
|
164
|
+
</div>
|
|
165
|
+
<div class="col-xs-12">
|
|
166
|
+
<p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
|
|
167
|
+
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}</p>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="col-xs-12">
|
|
170
|
+
<p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
|
|
171
|
+
<p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
|
|
172
|
+
</div>
|
|
173
|
+
<div class="col-xs-12">
|
|
174
|
+
<p class="panel-title text-left font" style="width: 21%;float: left"><b>安检员:</b></p>
|
|
175
|
+
<p class="panel-title text-left input-font" style="width: 79%">{{ row.f_checker_name }}</p>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="col-xs-12">
|
|
178
|
+
<p class="panel-title text-left font" style="width: 21%;float: left"><b>安检时间:</b></p>
|
|
179
|
+
<p class="panel-title text-left input-font" style="width: 79%">{{ row.f_offsite_time }}</p>
|
|
180
|
+
</div>
|
|
181
|
+
<div class="col-xs-12">
|
|
182
|
+
<p class="panel-title text-left font" style="width: 21%;float: left"><b>隐患内容:</b></p>
|
|
183
|
+
<p class="panel-title text-left input-font" style="width: 79%">{{ $parent.$parent.$parent.trouble(row.f_defect_content) }}</p>
|
|
184
|
+
</div>
|
|
185
|
+
<div class="col-xs-12">
|
|
186
|
+
<button type="button" name="button" class="btn btn-primary"
|
|
187
|
+
style="background-color:#499edf;float: right;margin-right:10px;"
|
|
188
|
+
@click="$parent.$parent.$parent.openshowModal1(row)">上传隐患通知单
|
|
189
|
+
</button>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
</list>
|
|
196
|
+
</criteria-paged>
|
|
197
|
+
</div>
|
|
198
|
+
<modal :show.sync="showModal1">
|
|
199
|
+
<div slot="modal-header" class="modal-header">
|
|
200
|
+
<h4 class="modal-title">
|
|
201
|
+
隐患通知单
|
|
202
|
+
</h4>
|
|
203
|
+
</div>
|
|
204
|
+
<div slot="modal-body" class="modal-body">
|
|
205
|
+
<div class="form-group col-sm-12">
|
|
206
|
+
<div class="auto">
|
|
207
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
|
208
|
+
<div class="panel-body panel-self"
|
|
209
|
+
style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
|
210
|
+
<img-self :src="deal.f_notified_path" alt="整改照片" :width="140" :height="170" capture="camera"
|
|
211
|
+
type="file"></img-self>
|
|
212
|
+
<div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
|
|
213
|
+
<img src="../../assets/remove.png" @click="delfile('f_notified_path', deal.f_notified_path)"></img>
|
|
214
|
+
<button type="button" name="button" class="btn btn-primary btn-photo"
|
|
215
|
+
@click="takePic('f_notified_path','整改照片')">拍照
|
|
216
|
+
</button>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
223
|
+
<div slot="modal-footer" class="modal-footer">
|
|
224
|
+
<button type="button" class="btn btn-default" @click="commitDealDefect">确认</button>
|
|
225
|
+
<button type="button" class="btn btn-default" @click="closeshowModal1">取消</button>
|
|
226
|
+
</div>
|
|
227
|
+
</modal>
|
|
228
|
+
</template>
|
|
229
|
+
|
|
230
|
+
<script>
|
|
231
|
+
import Vue from 'vue'
|
|
232
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
233
|
+
import * as Util from '../Util'
|
|
234
|
+
export default {
|
|
235
|
+
components: {
|
|
236
|
+
},
|
|
237
|
+
title: '隐患通知单上传',
|
|
238
|
+
data() {
|
|
239
|
+
return {
|
|
240
|
+
row:{},
|
|
241
|
+
showModal: false,
|
|
242
|
+
showModal1: false,
|
|
243
|
+
showimg: '',
|
|
244
|
+
DefectConfigs:[],
|
|
245
|
+
deal: {
|
|
246
|
+
result:{
|
|
247
|
+
f_userinfo_code: '',
|
|
248
|
+
},
|
|
249
|
+
paperid: '',
|
|
250
|
+
f_notified_path: '',
|
|
251
|
+
f_dealer: Vue.user.name,
|
|
252
|
+
f_dealer_id: Vue.user.id
|
|
253
|
+
},
|
|
254
|
+
user_types: [
|
|
255
|
+
{label: '请选择用户类型', value: ''},
|
|
256
|
+
{label: '民用', value: '民用'},
|
|
257
|
+
{label: '非民用', value: '非民用'},
|
|
258
|
+
],
|
|
259
|
+
f_filialeids: '',
|
|
260
|
+
model: new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/GetUserDefectSQL`, 20, {
|
|
261
|
+
condition: 'this.condition',
|
|
262
|
+
f_filialeids: `'(${Vue.user.orgid})'`,
|
|
263
|
+
}),
|
|
264
|
+
criteriaShow: false,
|
|
265
|
+
deletebacklistisselect: false,
|
|
266
|
+
selectdata:{},
|
|
267
|
+
showmaterial:false
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
ready() {
|
|
271
|
+
this.selfSearch()
|
|
272
|
+
},
|
|
273
|
+
methods: {
|
|
274
|
+
trouble(val) {
|
|
275
|
+
const defect_content = JSON.parse(val)
|
|
276
|
+
let result = ''
|
|
277
|
+
if (defect_content.data) {
|
|
278
|
+
const jsonData = defect_content.data
|
|
279
|
+
for (const itemdata of jsonData) {
|
|
280
|
+
const keys = Object.keys(itemdata)
|
|
281
|
+
for (const itm of keys) {
|
|
282
|
+
const value = itemdata[itm]
|
|
283
|
+
result += itm + ':' + value
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return result
|
|
288
|
+
},
|
|
289
|
+
delAudioFile(prop, fileName) {
|
|
290
|
+
if (!fileName)
|
|
291
|
+
return
|
|
292
|
+
else {
|
|
293
|
+
HostApp.delfile(fileName)
|
|
294
|
+
this.deal[prop] = null
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
commitDealDefect() {
|
|
298
|
+
if ( !this.deal.f_notified_path) {
|
|
299
|
+
this.$showMessage('隐患通知单照片必须上传')
|
|
300
|
+
return
|
|
301
|
+
}
|
|
302
|
+
HostApp.__this__ = this
|
|
303
|
+
HostApp.logicWithHint({
|
|
304
|
+
'logic': 'safe_notifiedPath', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
|
|
305
|
+
'data': this.deal, 'backresult': 1
|
|
306
|
+
})
|
|
307
|
+
},
|
|
308
|
+
commitCallBack(jo) {
|
|
309
|
+
if (jo.state == 'ok') {
|
|
310
|
+
let ress = JSON.parse(jo.result)
|
|
311
|
+
if (ress.code == 200) {
|
|
312
|
+
this.$showMessage(ress.msg)
|
|
313
|
+
this.closeshowModal1()
|
|
314
|
+
this.selfSearch()
|
|
315
|
+
} else {
|
|
316
|
+
this.$showMessage(ress.msg)
|
|
317
|
+
}
|
|
318
|
+
} else {
|
|
319
|
+
this.$showMessage('本地服务调用失败')
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
delfile(prop, fileName) {
|
|
323
|
+
if (fileName == Vue.nopic)
|
|
324
|
+
return
|
|
325
|
+
else {
|
|
326
|
+
HostApp.delfile(fileName)
|
|
327
|
+
this.deal[prop] = Vue.nopic
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
openshowModal(val) {
|
|
331
|
+
this.row = val
|
|
332
|
+
this.showModal = true
|
|
333
|
+
},
|
|
334
|
+
closeshowModal() {
|
|
335
|
+
this.showModal = false
|
|
336
|
+
},
|
|
337
|
+
openshowModal1(val) {
|
|
338
|
+
this.deal.paperid = val.id
|
|
339
|
+
this.deal.result.f_userinfo_code = val.f_userinfo_code
|
|
340
|
+
this.showModal1 = true
|
|
341
|
+
},
|
|
342
|
+
closeshowModal1() {
|
|
343
|
+
this.deal = {
|
|
344
|
+
result:{
|
|
345
|
+
f_userinfo_code: '',
|
|
346
|
+
},
|
|
347
|
+
paperid: '',
|
|
348
|
+
f_notified_path: '',
|
|
349
|
+
f_dealer: Vue.user.name,
|
|
350
|
+
f_dealer_id: Vue.user.id
|
|
351
|
+
}
|
|
352
|
+
this.showModal1 = false
|
|
353
|
+
this.selfSearch()
|
|
354
|
+
},
|
|
355
|
+
cameraCallBack(prop, fileName) {
|
|
356
|
+
HostApp.__this__.$set( 'deal.'+prop+'', fileName)
|
|
357
|
+
HostApp.__callback__ = null
|
|
358
|
+
HostApp.__this__ = null
|
|
359
|
+
},
|
|
360
|
+
takePic(prop, title) {
|
|
361
|
+
HostApp.__callback__ = this.cameraCallBack
|
|
362
|
+
HostApp.__this__ = this
|
|
363
|
+
let fileName
|
|
364
|
+
if (!this.deal[prop] || this.deal[prop].includes("nopic.png")) {
|
|
365
|
+
fileName = Util.guid() + '-' + prop + '.jpg'
|
|
366
|
+
} else {
|
|
367
|
+
fileName = Util.getFileName(this.deal[prop])
|
|
368
|
+
}
|
|
369
|
+
//tag
|
|
370
|
+
//tag
|
|
371
|
+
HostApp._open_a_page({
|
|
372
|
+
type: 'boomerang',
|
|
373
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
|
374
|
+
param: {
|
|
375
|
+
file: fileName,
|
|
376
|
+
requestCode: 111,
|
|
377
|
+
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
|
|
378
|
+
watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
|
|
379
|
+
}
|
|
380
|
+
})
|
|
381
|
+
},
|
|
382
|
+
selfSearch() {
|
|
383
|
+
let condition = "1=1 "
|
|
384
|
+
if (this.$refs.paged.$refs.cri.model.f_user_name) {
|
|
385
|
+
if (this.$refs.paged.$refs.cri.model.f_user_name.toString().trim()) {
|
|
386
|
+
condition += " and f_user_name like '" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
if (this.$refs.paged.$refs.cri.model.f_userinfo_code) {
|
|
390
|
+
if (this.$refs.paged.$refs.cri.model.f_userinfo_code.toString().trim()) {
|
|
391
|
+
condition += " and f_userinfo_code = '" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "'"
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
if (this.$refs.paged.$refs.cri.model.f_checker_name) {
|
|
395
|
+
if (this.$refs.paged.$refs.cri.model.f_checker_name.toString().trim()) {
|
|
396
|
+
condition += " and f_checker_name = '" + this.$refs.paged.$refs.cri.model.f_checker_name + "'"
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
if (this.$refs.paged.$refs.cri.model.f_address) {
|
|
400
|
+
if (this.$refs.paged.$refs.cri.model.f_address.toString().trim()) {
|
|
401
|
+
condition += " and f_address like '%" + this.$refs.paged.$refs.cri.model.f_address + "%'"
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type) {
|
|
405
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type.toString().trim()) {
|
|
406
|
+
condition += " and f_user_type = '" + this.$refs.paged.$refs.cri.model.f_user_type + "'"
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
this.model.search(condition)
|
|
411
|
+
},
|
|
412
|
+
hidden() {
|
|
413
|
+
this.criteriaShow = !this.criteriaShow
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
</script>
|