safecheck-client 3.0.35-16 → 3.0.35-17
Sign up to get free protection for your applications and to get access to all the features.
- 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/androidTest.js +20 -20
- 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/forms.less +626 -626
- 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/pager.less +76 -76
- 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/AddressList.vue +61 -61
- 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/NavBottom.vue +157 -157
- 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/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/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/SecurityCheckLedger.vue +113 -113
- 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/rongcheng/PhoneDevicesInfo.vue +248 -248
- 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/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,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>
|
@@ -1,248 +1,248 @@
|
|
1
|
-
<template >
|
2
|
-
<div style="height: 100%;overflow-y: scroll">
|
3
|
-
<div class="panel panel-default auto repair-info-content">
|
4
|
-
<div class="panel-body" >
|
5
|
-
<div class="panel panel-default well" v-for="row in model">
|
6
|
-
<div class="bg-info">
|
7
|
-
<div class="row form-group">
|
8
|
-
<div class="col-xs-12 col-sm-12 col-md-12">
|
9
|
-
<div class="row">
|
10
|
-
<div class="row auto" style="margin: 5px 0">
|
11
|
-
<labe style="line-height: 35px;">设备类型:</labe>
|
12
|
-
<!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
|
13
|
-
<v-select style="float: right;width: 60%;" :value.sync="row.f_devices_type"
|
14
|
-
v-model="row.f_devices_type"
|
15
|
-
placeholder='请选择'
|
16
|
-
:width='wid'
|
17
|
-
:options="devices_types"
|
18
|
-
close-on-select value-single></v-select>
|
19
|
-
</div>
|
20
|
-
<div class="row auto" style="margin: 5px 0">
|
21
|
-
<labe style="line-height: 35px;">设备编号:</labe><input type="text" style="width: 60%;float:right" class="form-control" v-model="row.f_devices_no" />
|
22
|
-
</div>
|
23
|
-
<div class="row auto" style="margin: 5px 0">
|
24
|
-
<labe style="line-height: 35px;">设备品牌:</labe><input type="text" style="width: 60%;float:right" class="form-control" v-model="row.f_brand" />
|
25
|
-
</div>
|
26
|
-
<div class="row auto" style="margin: 5px 0">
|
27
|
-
<labe style="line-height: 35px;">设备型号:</labe><input type="text" style="width: 60%;float:right" class="form-control" v-model="row.f_devices_model" />
|
28
|
-
</div>
|
29
|
-
<div class="row auto" style="margin: 5px 0">
|
30
|
-
<labe style="line-height: 35px;">安装日期:</labe><input type="text" style="width: 60%;float:right" class="form-control" v-model="row.f_input_date" />
|
31
|
-
</div>
|
32
|
-
<div class="row auto" style="margin: 5px 0">
|
33
|
-
<labe style="line-height: 35px;">设备数量:</labe><input type="text" style="width: 60%;float:right" class="form-control" v-model="row.f_devices_num" />
|
34
|
-
</div>
|
35
|
-
<div class="row auto" style="margin: 5px 0">
|
36
|
-
<labe style="line-height: 35px;">管道类型:</labe>
|
37
|
-
<!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_pipe_type" />-->
|
38
|
-
<v-select style="width: 60%;float: right" :value.sync="row.f_pipe_type"
|
39
|
-
v-model="row.f_pipe_type"
|
40
|
-
placeholder='请选择'
|
41
|
-
:width="wid"
|
42
|
-
:options="pipe_types"
|
43
|
-
close-on-select value-single></v-select>
|
44
|
-
</div>
|
45
|
-
<div class="row auto" style="margin: 5px 0">
|
46
|
-
<labe style="line-height: 35px;">备 注:</labe><input type="text" style="width: 60%;float:right" class="form-control" v-model="row.f_comments" />
|
47
|
-
</div>
|
48
|
-
<div>
|
49
|
-
<button class="button_search button_spacing" style="margin-left: 40%;margin-top: 10px;" @click="delDevices($index)">删除该设备</button>
|
50
|
-
</div>
|
51
|
-
</div>
|
52
|
-
</div>
|
53
|
-
</div>
|
54
|
-
</div>
|
55
|
-
</div>
|
56
|
-
<p v-show="model.length == 0 ">此用户暂无设备</p>
|
57
|
-
<div style="margin: 0 auto">
|
58
|
-
<button class="button_search button_spacing" @click="addDevices" style="margin-left: 15%;margin-right: 15px;">新增设备</button>
|
59
|
-
<button class="button_search button_spacing" @click="save">保存设备信息</button>
|
60
|
-
</div>
|
61
|
-
</div>
|
62
|
-
</div>
|
63
|
-
</div>
|
64
|
-
</template>
|
65
|
-
|
66
|
-
<script>
|
67
|
-
import { PagedList,HttpResetClass } from 'vue-client'
|
68
|
-
import * as Util from "../Util";
|
69
|
-
import Vue from 'vue'
|
70
|
-
import co from 'co'
|
71
|
-
export default {
|
72
|
-
title: '设备查看',
|
73
|
-
data () {
|
74
|
-
return {
|
75
|
-
model: [],
|
76
|
-
show: false,
|
77
|
-
row: Object,
|
78
|
-
userinfo:Object,
|
79
|
-
wid:"60%",
|
80
|
-
devices_types:Vue.$appdata.getParam('设备类型')?Vue.$appdata.getParam('设备类型'):[{label:'热水器',value:'热水器'},{label:'壁挂炉',value:'壁挂炉'},{label:'灶具',value:'灶具'}],
|
81
|
-
// devices_types:[{label:'热水器',value:'热水器'},{label:'壁挂炉',value:'壁挂炉'},{label:'灶具',value:'灶具'}],
|
82
|
-
pipe_types:[{label:'橡胶管',value:'橡胶管'},{label:'波纹管',value:'波纹管'},{label:'钢管',value:'钢管'}],
|
83
|
-
update:false
|
84
|
-
}
|
85
|
-
},
|
86
|
-
props: {
|
87
|
-
user: {
|
88
|
-
type: Object
|
89
|
-
},
|
90
|
-
f_user_type:'',
|
91
|
-
f_userinfo_id:''
|
92
|
-
},
|
93
|
-
methods: {
|
94
|
-
addDevices(){
|
95
|
-
//Vue.user.name
|
96
|
-
let obj={
|
97
|
-
"f_input_person":'hwq',
|
98
|
-
"f_picture":null,
|
99
|
-
"f_pipe_type":null,
|
100
|
-
"f_pipeinstall_date":null,
|
101
|
-
"f_pipe_connection":null,
|
102
|
-
"f_expire_date":null,
|
103
|
-
"f_pipeexpire_date":null,
|
104
|
-
"f_comments":null,
|
105
|
-
"f_operate_date":Util.toStandardTimeString(),
|
106
|
-
"f_devices_num":null,
|
107
|
-
"f_userfiles_id":this.userinfo.baseinfo.base.f_userfiles_id,
|
108
|
-
"f_process_id":null,
|
109
|
-
"f_devices_type":null,
|
110
|
-
"f_make_date":null,
|
111
|
-
"f_userinfo_id":null,
|
112
|
-
"f_input_date":Util.toStandardTimeString(),
|
113
|
-
"f_state":"有效",
|
114
|
-
"id":null,
|
115
|
-
"f_brand":null,
|
116
|
-
"f_devices_model":null,
|
117
|
-
"f_devices_no":null
|
118
|
-
}
|
119
|
-
this.model.push(obj)
|
120
|
-
},
|
121
|
-
delDevices(idx){
|
122
|
-
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
123
|
-
if (res === 'confirm') {
|
124
|
-
this.model.splice(idx,1)
|
125
|
-
}
|
126
|
-
})
|
127
|
-
},
|
128
|
-
getmodel () {
|
129
|
-
let userinfoid
|
130
|
-
if(this.f_userinfo_id){
|
131
|
-
userinfoid = this.f_userinfo_id
|
132
|
-
}else{
|
133
|
-
userinfoid = this.user.f_userinfo_id
|
134
|
-
//tag
|
135
|
-
}
|
136
|
-
//tag
|
137
|
-
/*new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/logic/commonSearchByUser`, {data: {items: '*', tablename: 't_devices', orderitem: 'f_input_date desc', condition:`f_userinfo_id = '${userinfoid}'`}}, {resolveMsg: null, rejectMsg: null}).then((row) => {
|
138
|
-
this.model = row.data
|
139
|
-
})*/
|
140
|
-
new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_getFilesDetail`, {
|
141
|
-
//f_userinfo_code:'12381344',
|
142
|
-
f_userinfo_id:userinfoid
|
143
|
-
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
144
|
-
//tag
|
145
|
-
this.userinfo = res.data
|
146
|
-
this.model = this.userinfo.meterinfo[0].devicesinfo.concat(this.userinfo.meterinfo[0].devicesinfonew)
|
147
|
-
})
|
148
|
-
},
|
149
|
-
back(){
|
150
|
-
|
151
|
-
},
|
152
|
-
save(){
|
153
|
-
if (this.f_user_type == "非民用") {
|
154
|
-
let hasAlarmOrValve = false;
|
155
|
-
for (let i = 0; i < this.model.length; i++) {
|
156
|
-
if (this.model[i].f_devices_type === '报警器' || this.model[i].f_devices_type === '切断阀') {
|
157
|
-
hasAlarmOrValve = true;
|
158
|
-
break;
|
159
|
-
}
|
160
|
-
}
|
161
|
-
if (!hasAlarmOrValve) {
|
162
|
-
this.$showMessage("请添加报警器或切断阀! ")
|
163
|
-
return;
|
164
|
-
}
|
165
|
-
}
|
166
|
-
if(this.model.length==0){
|
167
|
-
this.$showMessage("请添加设备信息后再点击保存!")
|
168
|
-
return
|
169
|
-
}
|
170
|
-
if(this.update){
|
171
|
-
this.$showMessage("正在保存设备中请稍等...")
|
172
|
-
return
|
173
|
-
}
|
174
|
-
this.update=true
|
175
|
-
let userinfo={}
|
176
|
-
userinfo=this.userinfo.baseinfo.base
|
177
|
-
userinfo=Object.assign(userinfo,{f_operator_record:Vue.user.name,userfiles:this.userinfo.meterinfo})
|
178
|
-
userinfo.userfiles[0].devicesinfo.forEach((r)=>{
|
179
|
-
r.img={content: null, filename: null}
|
180
|
-
})
|
181
|
-
let response=new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_fileSave`, {
|
182
|
-
data:{
|
183
|
-
userinfo:userinfo,
|
184
|
-
address:{id:this.userinfo.addressinfo.id,oldid:this.userinfo.addressinfo.id}
|
185
|
-
}
|
186
|
-
}, {resolveMsg: "修改成功!", rejectMsg: "失败,请联系管理员"}).then((res)=>{
|
187
|
-
//tag)
|
188
|
-
this.update=false
|
189
|
-
if(res.data.status==200){
|
190
|
-
//tag
|
191
|
-
//tag
|
192
|
-
this.userinfo.baseinfo.base.version=res.data.result[0].version
|
193
|
-
this.$showMessage("修改设备信息成功!")
|
194
|
-
}else if(res.data.status==505){
|
195
|
-
this.$showMessage("修改设备信息失败!请重新加载数据")
|
196
|
-
}else{
|
197
|
-
this.$showMessage("修改设备信息失败!")
|
198
|
-
}
|
199
|
-
}).catch((mes)=>{
|
200
|
-
this.update=true
|
201
|
-
if(mes.status==505){
|
202
|
-
this.$showMessage(mes.data+'请重新进入当前页面进行操作!')
|
203
|
-
}else{
|
204
|
-
this.$showMessage('网络异常,请重新进入当前页面进行操作!')
|
205
|
-
}
|
206
|
-
})
|
207
|
-
}
|
208
|
-
},
|
209
|
-
/*watch: {
|
210
|
-
'user' (val) {
|
211
|
-
// this.model.search(`card_id = ${this.user.card_id}`)
|
212
|
-
if(this.user){
|
213
|
-
if (!(this.user.isNuN)) {
|
214
|
-
this.model= []
|
215
|
-
this.getmodel()
|
216
|
-
}
|
217
|
-
}
|
218
|
-
},
|
219
|
-
'f_userinfo_id'(){
|
220
|
-
if(this.f_userinfo_id){
|
221
|
-
this.model= []
|
222
|
-
this.getmodel()
|
223
|
-
}
|
224
|
-
}
|
225
|
-
},*/
|
226
|
-
ready () {
|
227
|
-
this.getmodel()
|
228
|
-
/*let response=new HttpResetClass().load("POST", "/rs/logic/getSaleInitData", {
|
229
|
-
f_orgid: '305'
|
230
|
-
}, {resolveMsg: null, rejectMsg: null})*/
|
231
|
-
}
|
232
|
-
}
|
233
|
-
</script>
|
234
|
-
<style>
|
235
|
-
.app-botton {
|
236
|
-
position:fixed;
|
237
|
-
background: #87b2dd;
|
238
|
-
color: #FFF;
|
239
|
-
padding: 8px;
|
240
|
-
text-align: center;
|
241
|
-
font-size: 1.2em;
|
242
|
-
z-index: 10;
|
243
|
-
opacity:0.5;
|
244
|
-
bottom: 50px;
|
245
|
-
margin-top: -10px;
|
246
|
-
height: 40px;
|
247
|
-
}
|
248
|
-
</style>
|
1
|
+
<template >
|
2
|
+
<div style="height: 100%;overflow-y: scroll">
|
3
|
+
<div class="panel panel-default auto repair-info-content">
|
4
|
+
<div class="panel-body" >
|
5
|
+
<div class="panel panel-default well" v-for="row in model">
|
6
|
+
<div class="bg-info">
|
7
|
+
<div class="row form-group">
|
8
|
+
<div class="col-xs-12 col-sm-12 col-md-12">
|
9
|
+
<div class="row">
|
10
|
+
<div class="row auto" style="margin: 5px 0">
|
11
|
+
<labe style="line-height: 35px;">设备类型:</labe>
|
12
|
+
<!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
|
13
|
+
<v-select style="float: right;width: 60%;" :value.sync="row.f_devices_type"
|
14
|
+
v-model="row.f_devices_type"
|
15
|
+
placeholder='请选择'
|
16
|
+
:width='wid'
|
17
|
+
:options="devices_types"
|
18
|
+
close-on-select value-single></v-select>
|
19
|
+
</div>
|
20
|
+
<div class="row auto" style="margin: 5px 0">
|
21
|
+
<labe style="line-height: 35px;">设备编号:</labe><input type="text" style="width: 60%;float:right" class="form-control" v-model="row.f_devices_no" />
|
22
|
+
</div>
|
23
|
+
<div class="row auto" style="margin: 5px 0">
|
24
|
+
<labe style="line-height: 35px;">设备品牌:</labe><input type="text" style="width: 60%;float:right" class="form-control" v-model="row.f_brand" />
|
25
|
+
</div>
|
26
|
+
<div class="row auto" style="margin: 5px 0">
|
27
|
+
<labe style="line-height: 35px;">设备型号:</labe><input type="text" style="width: 60%;float:right" class="form-control" v-model="row.f_devices_model" />
|
28
|
+
</div>
|
29
|
+
<div class="row auto" style="margin: 5px 0">
|
30
|
+
<labe style="line-height: 35px;">安装日期:</labe><input type="text" style="width: 60%;float:right" class="form-control" v-model="row.f_input_date" />
|
31
|
+
</div>
|
32
|
+
<div class="row auto" style="margin: 5px 0">
|
33
|
+
<labe style="line-height: 35px;">设备数量:</labe><input type="text" style="width: 60%;float:right" class="form-control" v-model="row.f_devices_num" />
|
34
|
+
</div>
|
35
|
+
<div class="row auto" style="margin: 5px 0">
|
36
|
+
<labe style="line-height: 35px;">管道类型:</labe>
|
37
|
+
<!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_pipe_type" />-->
|
38
|
+
<v-select style="width: 60%;float: right" :value.sync="row.f_pipe_type"
|
39
|
+
v-model="row.f_pipe_type"
|
40
|
+
placeholder='请选择'
|
41
|
+
:width="wid"
|
42
|
+
:options="pipe_types"
|
43
|
+
close-on-select value-single></v-select>
|
44
|
+
</div>
|
45
|
+
<div class="row auto" style="margin: 5px 0">
|
46
|
+
<labe style="line-height: 35px;">备 注:</labe><input type="text" style="width: 60%;float:right" class="form-control" v-model="row.f_comments" />
|
47
|
+
</div>
|
48
|
+
<div>
|
49
|
+
<button class="button_search button_spacing" style="margin-left: 40%;margin-top: 10px;" @click="delDevices($index)">删除该设备</button>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
<p v-show="model.length == 0 ">此用户暂无设备</p>
|
57
|
+
<div style="margin: 0 auto">
|
58
|
+
<button class="button_search button_spacing" @click="addDevices" style="margin-left: 15%;margin-right: 15px;">新增设备</button>
|
59
|
+
<button class="button_search button_spacing" @click="save">保存设备信息</button>
|
60
|
+
</div>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
</div>
|
64
|
+
</template>
|
65
|
+
|
66
|
+
<script>
|
67
|
+
import { PagedList,HttpResetClass } from 'vue-client'
|
68
|
+
import * as Util from "../Util";
|
69
|
+
import Vue from 'vue'
|
70
|
+
import co from 'co'
|
71
|
+
export default {
|
72
|
+
title: '设备查看',
|
73
|
+
data () {
|
74
|
+
return {
|
75
|
+
model: [],
|
76
|
+
show: false,
|
77
|
+
row: Object,
|
78
|
+
userinfo:Object,
|
79
|
+
wid:"60%",
|
80
|
+
devices_types:Vue.$appdata.getParam('设备类型')?Vue.$appdata.getParam('设备类型'):[{label:'热水器',value:'热水器'},{label:'壁挂炉',value:'壁挂炉'},{label:'灶具',value:'灶具'}],
|
81
|
+
// devices_types:[{label:'热水器',value:'热水器'},{label:'壁挂炉',value:'壁挂炉'},{label:'灶具',value:'灶具'}],
|
82
|
+
pipe_types:[{label:'橡胶管',value:'橡胶管'},{label:'波纹管',value:'波纹管'},{label:'钢管',value:'钢管'}],
|
83
|
+
update:false
|
84
|
+
}
|
85
|
+
},
|
86
|
+
props: {
|
87
|
+
user: {
|
88
|
+
type: Object
|
89
|
+
},
|
90
|
+
f_user_type:'',
|
91
|
+
f_userinfo_id:''
|
92
|
+
},
|
93
|
+
methods: {
|
94
|
+
addDevices(){
|
95
|
+
//Vue.user.name
|
96
|
+
let obj={
|
97
|
+
"f_input_person":'hwq',
|
98
|
+
"f_picture":null,
|
99
|
+
"f_pipe_type":null,
|
100
|
+
"f_pipeinstall_date":null,
|
101
|
+
"f_pipe_connection":null,
|
102
|
+
"f_expire_date":null,
|
103
|
+
"f_pipeexpire_date":null,
|
104
|
+
"f_comments":null,
|
105
|
+
"f_operate_date":Util.toStandardTimeString(),
|
106
|
+
"f_devices_num":null,
|
107
|
+
"f_userfiles_id":this.userinfo.baseinfo.base.f_userfiles_id,
|
108
|
+
"f_process_id":null,
|
109
|
+
"f_devices_type":null,
|
110
|
+
"f_make_date":null,
|
111
|
+
"f_userinfo_id":null,
|
112
|
+
"f_input_date":Util.toStandardTimeString(),
|
113
|
+
"f_state":"有效",
|
114
|
+
"id":null,
|
115
|
+
"f_brand":null,
|
116
|
+
"f_devices_model":null,
|
117
|
+
"f_devices_no":null
|
118
|
+
}
|
119
|
+
this.model.push(obj)
|
120
|
+
},
|
121
|
+
delDevices(idx){
|
122
|
+
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
123
|
+
if (res === 'confirm') {
|
124
|
+
this.model.splice(idx,1)
|
125
|
+
}
|
126
|
+
})
|
127
|
+
},
|
128
|
+
getmodel () {
|
129
|
+
let userinfoid
|
130
|
+
if(this.f_userinfo_id){
|
131
|
+
userinfoid = this.f_userinfo_id
|
132
|
+
}else{
|
133
|
+
userinfoid = this.user.f_userinfo_id
|
134
|
+
//tag
|
135
|
+
}
|
136
|
+
//tag
|
137
|
+
/*new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/logic/commonSearchByUser`, {data: {items: '*', tablename: 't_devices', orderitem: 'f_input_date desc', condition:`f_userinfo_id = '${userinfoid}'`}}, {resolveMsg: null, rejectMsg: null}).then((row) => {
|
138
|
+
this.model = row.data
|
139
|
+
})*/
|
140
|
+
new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_getFilesDetail`, {
|
141
|
+
//f_userinfo_code:'12381344',
|
142
|
+
f_userinfo_id:userinfoid
|
143
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
144
|
+
//tag
|
145
|
+
this.userinfo = res.data
|
146
|
+
this.model = this.userinfo.meterinfo[0].devicesinfo.concat(this.userinfo.meterinfo[0].devicesinfonew)
|
147
|
+
})
|
148
|
+
},
|
149
|
+
back(){
|
150
|
+
|
151
|
+
},
|
152
|
+
save(){
|
153
|
+
if (this.f_user_type == "非民用") {
|
154
|
+
let hasAlarmOrValve = false;
|
155
|
+
for (let i = 0; i < this.model.length; i++) {
|
156
|
+
if (this.model[i].f_devices_type === '报警器' || this.model[i].f_devices_type === '切断阀') {
|
157
|
+
hasAlarmOrValve = true;
|
158
|
+
break;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
if (!hasAlarmOrValve) {
|
162
|
+
this.$showMessage("请添加报警器或切断阀! ")
|
163
|
+
return;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
if(this.model.length==0){
|
167
|
+
this.$showMessage("请添加设备信息后再点击保存!")
|
168
|
+
return
|
169
|
+
}
|
170
|
+
if(this.update){
|
171
|
+
this.$showMessage("正在保存设备中请稍等...")
|
172
|
+
return
|
173
|
+
}
|
174
|
+
this.update=true
|
175
|
+
let userinfo={}
|
176
|
+
userinfo=this.userinfo.baseinfo.base
|
177
|
+
userinfo=Object.assign(userinfo,{f_operator_record:Vue.user.name,userfiles:this.userinfo.meterinfo})
|
178
|
+
userinfo.userfiles[0].devicesinfo.forEach((r)=>{
|
179
|
+
r.img={content: null, filename: null}
|
180
|
+
})
|
181
|
+
let response=new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_fileSave`, {
|
182
|
+
data:{
|
183
|
+
userinfo:userinfo,
|
184
|
+
address:{id:this.userinfo.addressinfo.id,oldid:this.userinfo.addressinfo.id}
|
185
|
+
}
|
186
|
+
}, {resolveMsg: "修改成功!", rejectMsg: "失败,请联系管理员"}).then((res)=>{
|
187
|
+
//tag)
|
188
|
+
this.update=false
|
189
|
+
if(res.data.status==200){
|
190
|
+
//tag
|
191
|
+
//tag
|
192
|
+
this.userinfo.baseinfo.base.version=res.data.result[0].version
|
193
|
+
this.$showMessage("修改设备信息成功!")
|
194
|
+
}else if(res.data.status==505){
|
195
|
+
this.$showMessage("修改设备信息失败!请重新加载数据")
|
196
|
+
}else{
|
197
|
+
this.$showMessage("修改设备信息失败!")
|
198
|
+
}
|
199
|
+
}).catch((mes)=>{
|
200
|
+
this.update=true
|
201
|
+
if(mes.status==505){
|
202
|
+
this.$showMessage(mes.data+'请重新进入当前页面进行操作!')
|
203
|
+
}else{
|
204
|
+
this.$showMessage('网络异常,请重新进入当前页面进行操作!')
|
205
|
+
}
|
206
|
+
})
|
207
|
+
}
|
208
|
+
},
|
209
|
+
/*watch: {
|
210
|
+
'user' (val) {
|
211
|
+
// this.model.search(`card_id = ${this.user.card_id}`)
|
212
|
+
if(this.user){
|
213
|
+
if (!(this.user.isNuN)) {
|
214
|
+
this.model= []
|
215
|
+
this.getmodel()
|
216
|
+
}
|
217
|
+
}
|
218
|
+
},
|
219
|
+
'f_userinfo_id'(){
|
220
|
+
if(this.f_userinfo_id){
|
221
|
+
this.model= []
|
222
|
+
this.getmodel()
|
223
|
+
}
|
224
|
+
}
|
225
|
+
},*/
|
226
|
+
ready () {
|
227
|
+
this.getmodel()
|
228
|
+
/*let response=new HttpResetClass().load("POST", "/rs/logic/getSaleInitData", {
|
229
|
+
f_orgid: '305'
|
230
|
+
}, {resolveMsg: null, rejectMsg: null})*/
|
231
|
+
}
|
232
|
+
}
|
233
|
+
</script>
|
234
|
+
<style>
|
235
|
+
.app-botton {
|
236
|
+
position:fixed;
|
237
|
+
background: #87b2dd;
|
238
|
+
color: #FFF;
|
239
|
+
padding: 8px;
|
240
|
+
text-align: center;
|
241
|
+
font-size: 1.2em;
|
242
|
+
z-index: 10;
|
243
|
+
opacity:0.5;
|
244
|
+
bottom: 50px;
|
245
|
+
margin-top: -10px;
|
246
|
+
height: 40px;
|
247
|
+
}
|
248
|
+
</style>
|