safecheck-client 4.0.1-7 → 4.0.1-70
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 +5 -5
- 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/assets//350/255/246/345/221/212 (3).png +0 -0
- package/src/assets//350/255/246/345/221/212 (4).png +0 -0
- package/src/assets//350/255/246/345/221/212 (5).png +0 -0
- 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/NewDefectList/DefectListNew.vue +22 -3
- package/src/components/android/AndroidDefectDeal.vue +356 -323
- package/src/components/android/AndroidDefectDetails.vue +3 -3
- package/src/components/android/AppInstallationMaterial.vue +865 -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/DailyworkloadQuery.vue +2 -1
- 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/NewCheckpaperAndroid.vue +22 -48
- 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/android/SwitchValve.vue +1 -1
- package/src/components/checkplan/CheckDetail.vue +1 -1
- 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 +361 -0
- 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/CheckBookUser.vue +337 -337
- package/src/components/pc/DefectDeal.vue +1 -0
- package/src/components/pc/DefectMaterialLook.vue +98 -0
- package/src/components/pc/PaperDefectMain.vue +26 -1
- 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 +1 -0
- package/src/components/querycheckpaper/CheckPaperList.vue +6 -4
- package/src/components/querycheckpaper/CheckPaperSearchUser.vue +30 -4
- package/src/components/querycheckpaper/CheckSearchUser.vue +6 -1
- 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/CurrentCreate.vue +66 -22
- package/src/filiale/jinhong/pc/CheckBookList.vue +10 -7
- package/src/filiale/jinhong/pc/DefectPaperNew.vue +10 -10
- package/src/filiale/jinhong/pc/checkUserList.vue +30 -6
- package/src/filiale/libo/android/PaperFeedback.vue +1579 -0
- package/src/filiale/libo/android/PhoneUpUserinfo.vue +1249 -0
- package/src/filiale/libo/android/SafecheckOrderV.vue +2302 -0
- package/src/filiale/libo/android.js +14 -0
- package/src/filiale/libo/pc/NewCheckpaper.vue +1987 -0
- package/src/filiale/libo/pc.js +12 -0
- package/src/filiale/meihekou/android/CurrentCreate.vue +1 -1
- package/src/filiale/meihekou/android/MeterReading.vue +9 -5
- package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +3 -2
- package/src/filiale/meihekou/android/SafecheckDevices.vue +5 -5
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +324 -311
- package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -2
- package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -0
- package/src/filiale/meihekou/pc/PaperList.vue +1205 -0
- package/src/filiale/meihekou/pc.js +2 -0
- package/src/filiale/minsheng/android/SwitchValve.vue +1 -1
- package/src/filiale/qianneng/android/SwitchValve.vue +1 -1
- package/src/filiale/qingjian/pc/checkUserList.vue +35 -0
- package/src/filiale/taiyuan/android/CurrentCreate.vue +1016 -0
- package/src/filiale/taiyuan/android/PhoneUpUserinfo.vue +1259 -0
- package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2341 -0
- package/src/filiale/taiyuan/android/SafecheckUserInfo.vue +776 -0
- package/src/filiale/taiyuan/android.js +13 -0
- package/src/filiale/taiyuan/pc/DefectDeal.vue +1034 -0
- package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -0
- package/src/filiale/taiyuan/pc/PlanManage.vue +891 -0
- package/src/filiale/taiyuan/pc/checkUserList.vue +798 -0
- package/src/filiale/taiyuan/pc.js +15 -0
- package/src/filiale/tongchuan/android/SwitchValve.vue +1 -1
- package/src/filiale/xinkang/android/AddPlanItem.vue +244 -196
- package/src/filiale/xinkang/android/AndroidDefectDeal.vue +1 -0
- package/src/filiale/xinkang/android/SafecheckDevices.vue +52 -22
- package/src/filiale/xinkang/android/SafecheckOrderV.vue +24 -80
- package/src/filiale/xinkang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/xinkang/pc/CheckSearchUser.vue +12 -12
- package/src/filiale/xinkang/pc/NewCheckpaper.vue +20 -44
- package/src/filiale/xinkang/pc/PaperList.vue +2 -9
- package/src/filiale/yuansheng/android/SwitchValve.vue +1 -1
- package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1030 -1030
- package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +4 -4
- package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -0
- package/src/filiale/yunchengminsheng/pc.js +1 -0
- package/src/main.js +33 -33
- package/src/plugins/LoadData.js +10 -10
- package/src/plugins/LoadParams.js +24 -24
- package/src/safecheck-android.js +4 -0
- package/src/safecheck.js +6 -0
- 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
@@ -16,11 +16,19 @@
|
|
16
16
|
<!--<div class="{{shuclass}}" v-if="device.device != '燃气表' && candelete">-->
|
17
17
|
<!--<button type="button" name="button" class="btn btn-primary" @click='deletedetails()' :disabled="issee">删除</button>-->
|
18
18
|
<!--</div>-->
|
19
|
-
<div class="shuclass1" v-show="row.isshow" v-for="
|
20
|
-
<label v-if="row.type != 'radio' && row.type != 'text' && row.type != 'picture' && row.type != 'checkbox'" v-show="row.isshow" class="fivelabel">
|
21
|
-
|
22
|
-
|
23
|
-
<label v-if="row.type == '
|
19
|
+
<div class="shuclass1" v-show="row.isshow" v-for="row in f_items" track-by="$index" style="padding: 4px; border:1px solid #D4D4D4;border-bottom: 0" >
|
20
|
+
<label v-if="row.type != 'radio' && row.type != 'text' && row.type != 'picture' && row.type != 'checkbox'" v-show="row.isshow" class="fivelabel">
|
21
|
+
{{row.f_item_name}}<span v-if="row.unit">({{row.unit}})</span><br/>{{row.remark}}
|
22
|
+
</label>
|
23
|
+
<label v-if="row.type == 'radio'" v-show="row.isshow" class="radiolabel">{{row.f_item_name}}
|
24
|
+
<span v-if="row.unit">({{row.unit}})</span><br/>{{row.remark}}
|
25
|
+
</label>
|
26
|
+
<label v-if="row.type == 'text'" v-show="row.isshow" class="textlabel1">
|
27
|
+
{{row.f_item_name}}<span v-if="row.unit">({{row.unit}})</span><br/>{{row.remark}}
|
28
|
+
</label>
|
29
|
+
<label v-if="row.type == 'picture' || row.type == 'checkbox'" v-show="row.isshow" class="textlabel">
|
30
|
+
{{row.f_item_name}}<br/>{{row.remark}}
|
31
|
+
</label>
|
24
32
|
<!--<span v-if="show" style="font-weight:bold">{{row.f_content}}</span>-->
|
25
33
|
<!--<datepicker placeholder="请选择时间"-->
|
26
34
|
<!--:value.sync="row.f_content"-->
|
@@ -37,10 +45,10 @@
|
|
37
45
|
<div class="col-sm-4" v-show="row.f_path">
|
38
46
|
<img-self :src="row.f_path" :alt="row.f_item_name" width="140" height="140"></img-self>
|
39
47
|
</div>
|
40
|
-
<div class="col-sm-4" v-show="!row.f_path" @click="takePic(
|
48
|
+
<div class="col-sm-4" v-show="!row.f_path" @click="takePic($index, row.f_item_name)">
|
41
49
|
<img src="../../../assets/tackpic.png" :alt="点击拍摄照片" width="140" height="140"></img>
|
42
50
|
</div>
|
43
|
-
<img v-show="row.f_path" src="../../../assets/remove.png" :class="style__" @click="delfile(
|
51
|
+
<img v-show="row.f_path" src="../../../assets/remove.png" :class="style__" @click="delfile($index, row.f_path)" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
|
44
52
|
</div>
|
45
53
|
</div>
|
46
54
|
</div>
|
@@ -73,7 +81,7 @@
|
|
73
81
|
:readonly="false"
|
74
82
|
:options="row.options"
|
75
83
|
@change="changse"
|
76
|
-
@click="transelation(
|
84
|
+
@click="transelation($index)"></input-select>
|
77
85
|
<v-select style="float: left" :value.sync="row.selected"
|
78
86
|
v-model="row.selected"
|
79
87
|
v-if="row.type == 'selector'"
|
@@ -83,12 +91,12 @@
|
|
83
91
|
:options="row.options"
|
84
92
|
:disabled="role == 'androidview' || row.readonly"
|
85
93
|
@change="changse"
|
86
|
-
@click="transelation(
|
94
|
+
@click="transelation($index)"
|
87
95
|
:multiple="row.multiple"
|
88
96
|
:close-on-select="!row.multiple" clear-button></v-select>
|
89
97
|
<div style="float: left;width: 30%" class="form-group" v-if="!show && row.type == 'radio'">
|
90
98
|
<div class="col-xs-6 col-sm-6 col-md-6" v-for="item in row.options">
|
91
|
-
<!-- <input type="radio" :name="row.f_item_name" @click="disSelect($parent
|
99
|
+
<!-- <input type="radio" :name="row.f_item_name" @click="disSelect($parent.$index,item.value)" :value="item.value" :disabled="(!(ischecked == '有')) || issee" v-model="row.f_item_value" >-->
|
92
100
|
<input type="radio" :name="row.f_item_name" :value="item.value" :disabled="(!(ischecked == '有')) || issee" v-model="row.f_item_value" >
|
93
101
|
<span>{{item.label}}</span>
|
94
102
|
</div>
|
@@ -113,7 +121,7 @@
|
|
113
121
|
:options="deals"
|
114
122
|
:disabled="role == 'androidview'"
|
115
123
|
@change="changdeal"
|
116
|
-
@click="transelation(
|
124
|
+
@click="transelation($index)"
|
117
125
|
close-on-select clear-button></v-select>
|
118
126
|
</div>
|
119
127
|
<div style="margin-left: 10px" class="form-group col-sm-10" v-if="(row.type == 'selector' || row.type == 'radio' || row.type =='checkbox') && row.tooltip != undefined && row.tooltip != '' ">
|
@@ -127,10 +135,10 @@
|
|
127
135
|
<div class="col-sm-4" v-show="row.f_path">
|
128
136
|
<img-self :src="row.f_path" :alt="row.f_item_name" width="140" height="140"></img-self>
|
129
137
|
</div>
|
130
|
-
<div class="col-sm-4" v-show="!row.f_path" @click="takePic(
|
138
|
+
<div class="col-sm-4" v-show="!row.f_path" @click="takePic($index, row.f_item_name)">
|
131
139
|
<img src="../../../assets/tackpic.png" :alt="点击拍摄照片" width="140" height="140"></img>
|
132
140
|
</div>
|
133
|
-
<img v-show="row.f_path" src="../../../assets/remove.png" :class="style__" @click="delfile(
|
141
|
+
<img v-show="row.f_path" src="../../../assets/remove.png" :class="style__" @click="delfile($index, row.f_path)" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
|
134
142
|
</div>
|
135
143
|
</div>
|
136
144
|
</div>
|
@@ -143,10 +151,10 @@
|
|
143
151
|
<div class="col-sm-4" v-show="row['f_p' + (itemIndex+1) + '_path']">
|
144
152
|
<img-self :src="row['f_p' + (itemIndex+1) + '_path']" :alt="row.f_item_name" width="140" height="140"></img-self>
|
145
153
|
</div>
|
146
|
-
<div class="col-sm-4" v-show="!row['f_p' + (itemIndex+1) + '_path']" @click="takePic(
|
154
|
+
<div class="col-sm-4" v-show="!row['f_p' + (itemIndex+1) + '_path']" @click="takePic($index, row.f_item_name,'f_p' + (itemIndex+1)+ '_path')">
|
147
155
|
<img src="../../../assets/tackpic.png" :alt="点击拍摄照片" width="140" height="140"></img>
|
148
156
|
</div>
|
149
|
-
<img v-show="row['f_p' + (itemIndex+1)+'_path']" src="../../../assets/remove.png" :class="style__" @click="delfile(
|
157
|
+
<img v-show="row['f_p' + (itemIndex+1)+'_path']" src="../../../assets/remove.png" :class="style__" @click="delfile($index,row['f_p' + (itemIndex+1)+'_path'],'f_p' + (itemIndex+1)+ '_path')" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
|
150
158
|
</div >
|
151
159
|
</div>
|
152
160
|
</div>
|
@@ -814,9 +822,28 @@ export default {
|
|
814
822
|
if(Vue.config.safecheck.ApproveConfig.dealdispose != undefined) {
|
815
823
|
this.dealdispose = Vue.config.safecheck.ApproveConfig.dealdispose
|
816
824
|
}
|
825
|
+
if(Vue.config.safecheck.ApproveConfig.showtorepair) {
|
826
|
+
this.deals=[{label: '现场整改', value: '现场整改'},
|
827
|
+
{label: '自行处理', value: '自行处理'},
|
828
|
+
{label: '转维修', value: '报修'}
|
829
|
+
]
|
830
|
+
}
|
831
|
+
if(Vue.config.safecheck.ApproveConfig.Processing) {
|
832
|
+
if(Vue.config.safecheck.ApproveConfig.Processing.length > 0){
|
833
|
+
this.deals = Vue.config.safecheck.ApproveConfig.Processing
|
834
|
+
}
|
835
|
+
}
|
836
|
+
if(Vue.config.safecheck.ApproveConfig.showXCImg) {
|
837
|
+
this.showXCImg = true
|
838
|
+
}
|
839
|
+
if(Vue.config.safecheck.ApproveConfig.showZXTime) {
|
840
|
+
this.showZXTime = true
|
841
|
+
}
|
842
|
+
if(Vue.config.safecheck.ApproveConfig.showtorepair) {
|
843
|
+
}
|
817
844
|
if(Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
|
818
|
-
if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >=
|
819
|
-
this.hiddenDangerImgNumber =
|
845
|
+
if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 5) {
|
846
|
+
this.hiddenDangerImgNumber = 5
|
820
847
|
}else {
|
821
848
|
this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
|
822
849
|
}
|
@@ -883,6 +910,9 @@ export default {
|
|
883
910
|
f_item_name: item,
|
884
911
|
checkmust: this.config[this.device.device].items[item].checkmust,
|
885
912
|
f_item_value: f_item_value,
|
913
|
+
is_verification:this.config[this.device.device].items[item].is_verification,
|
914
|
+
verification_text:'',
|
915
|
+
verification_state:'',// ai验证是否通过 npass(未通过)/pass(通过)
|
886
916
|
f_is_defect: '',
|
887
917
|
multiple:this.config[this.device.device].items[item].multiple == true?this.config[this.device.device].items[item].multiple:false,
|
888
918
|
isshow:this.config[this.device.device].items[item].isshow == false?this.config[this.device.device].items[item].isshow:true,
|
@@ -896,7 +926,9 @@ export default {
|
|
896
926
|
f_else: '',
|
897
927
|
f_p1_path: '',
|
898
928
|
f_p2_path: '',
|
899
|
-
f_p3_path: ''
|
929
|
+
f_p3_path: '',
|
930
|
+
f_longitude:'',
|
931
|
+
f_latitude:''
|
900
932
|
}
|
901
933
|
//tag)
|
902
934
|
//tag)
|
@@ -952,7 +984,7 @@ export default {
|
|
952
984
|
}
|
953
985
|
n = n + 1
|
954
986
|
}
|
955
|
-
if(JSON.stringify(this.piece) == '{}') {
|
987
|
+
if(!this.piece || JSON.stringify(this.piece) == '{}') {
|
956
988
|
// 如果没有,则新建
|
957
989
|
this.$set('piece.f_items',this.f_items)
|
958
990
|
this.$set('piece.f_device_type',this.device.device)
|
@@ -963,7 +995,6 @@ export default {
|
|
963
995
|
continue
|
964
996
|
}
|
965
997
|
for(let p in this.piece.f_items) {
|
966
|
-
//
|
967
998
|
if(typeof this.piece.f_items[p]=='function'){
|
968
999
|
continue
|
969
1000
|
}
|
@@ -1029,8 +1060,7 @@ export default {
|
|
1029
1060
|
}else if (this.f_items[f].f_item_name == '表读数') {
|
1030
1061
|
//tag)
|
1031
1062
|
this.f_meter_base.index = f
|
1032
|
-
}
|
1033
|
-
else if (this.f_items[f].f_item_name == '表剩余金额') {
|
1063
|
+
}else if (this.f_items[f].f_item_name == '表剩余金额') {
|
1034
1064
|
//tag)
|
1035
1065
|
this.f_balance_amount.index = f
|
1036
1066
|
}else if (this.f_items[f].f_item_name == '字轮数') {
|
@@ -1529,8 +1529,6 @@ export default {
|
|
1529
1529
|
// this.isneedDate=res.data[0]["f_subscribe_date"]
|
1530
1530
|
// },
|
1531
1531
|
putDevices() {
|
1532
|
-
//tag)
|
1533
|
-
//tag)
|
1534
1532
|
this.$set('data.approve', "true")
|
1535
1533
|
this.$set('data.writeback', "false")
|
1536
1534
|
if (Vue.config.safecheck != undefined) {
|
@@ -1544,68 +1542,51 @@ export default {
|
|
1544
1542
|
if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
|
1545
1543
|
this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
|
1546
1544
|
}
|
1547
|
-
|
1548
|
-
|
1549
|
-
//tag)
|
1550
|
-
//tag)
|
1551
|
-
//tag
|
1552
|
-
if(this.item.f_user_type == '民用'){
|
1553
|
-
// 民用户
|
1554
|
-
|
1555
|
-
if (Vue.config.safecheck.DevicesConfig != undefined){
|
1556
|
-
if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
|
1557
|
-
this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
|
1558
|
-
}else{
|
1559
|
-
//tag
|
1560
|
-
//tag
|
1561
|
-
//tag
|
1562
|
-
this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
|
1563
|
-
}
|
1564
|
-
// this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
|
1545
|
+
if (Vue.config.safecheck.ApproveConfig.showtorepair) {
|
1546
|
+
this.show_torepair = Vue.config.safecheck.ApproveConfig.showtorepair
|
1565
1547
|
}
|
1566
|
-
|
1548
|
+
if (Vue.config.safecheck.ApproveConfig.notencountered != undefined){
|
1549
|
+
this.notencountered = Vue.config.safecheck.ApproveConfig.notencountered
|
1550
|
+
}
|
1551
|
+
if (Vue.config.safecheck.ApproveConfig.refuseinspection != undefined){
|
1552
|
+
this.refuseinspection = Vue.config.safecheck.ApproveConfig.refuseinspection
|
1553
|
+
}
|
1554
|
+
}
|
1555
|
+
if(this.item.f_user_type == '非民用'){
|
1567
1556
|
// 非民用
|
1568
1557
|
if (Vue.config.safecheck.DevicesSetConfig != undefined){
|
1569
|
-
if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
|
1558
|
+
if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined || !Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]]) {
|
1570
1559
|
this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
|
1571
1560
|
}else{
|
1572
|
-
//tag
|
1573
|
-
//tag
|
1574
|
-
//tag
|
1575
1561
|
this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
|
1576
1562
|
}
|
1577
|
-
|
1563
|
+
}
|
1564
|
+
|
1565
|
+
}else{
|
1566
|
+
// 民用户
|
1567
|
+
if (Vue.config.safecheck.DevicesConfig != undefined){
|
1568
|
+
if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined || !Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]]) {
|
1569
|
+
this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
|
1570
|
+
}else{
|
1571
|
+
this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type?this.item.f_user_type:'民用']])
|
1572
|
+
}
|
1578
1573
|
}
|
1579
1574
|
}
|
1580
1575
|
|
1581
1576
|
}
|
1582
|
-
//tag)
|
1583
|
-
// 预留设备项位置
|
1584
1577
|
for (let i in this.config) {
|
1585
1578
|
this.tabs.splice(1,0,null)
|
1586
1579
|
}
|
1587
|
-
//遍历安检项配置
|
1588
1580
|
for (let i in this.config) {
|
1589
|
-
//取得安检项索引值
|
1590
1581
|
let n = this.config[i].index
|
1591
|
-
//tag
|
1592
1582
|
this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
|
1593
1583
|
this.$set('data.' + 'device' + n, [])
|
1594
|
-
//tag
|
1595
|
-
// this.tabs.splice(2 + n - 1, 0,
|
1596
|
-
// {
|
1597
|
-
// header:i,
|
1598
|
-
// complete:'safecheck-devices',
|
1599
|
-
// class:'repair-details-class',
|
1600
|
-
// number:n
|
1601
|
-
// })
|
1602
1584
|
this.tabs[n] = {
|
1603
1585
|
header: i,
|
1604
1586
|
complete: 'safecheck-devices',
|
1605
1587
|
class: 'repair-details-class',
|
1606
1588
|
number: n
|
1607
1589
|
}
|
1608
|
-
|
1609
1590
|
if(this.config[i].quantity && this.config[i].quantity >0){
|
1610
1591
|
let items = []
|
1611
1592
|
for (let it in this.config[i].items) {
|
@@ -1631,12 +1612,8 @@ export default {
|
|
1631
1612
|
)
|
1632
1613
|
}
|
1633
1614
|
}
|
1634
|
-
// this.data['device' + n].push(
|
1635
|
-
// {f_device_type: i, f_items: items}
|
1636
|
-
// )
|
1637
1615
|
n = n + 1
|
1638
1616
|
}
|
1639
|
-
//tag
|
1640
1617
|
this.faultshow.number = this.tabs.length
|
1641
1618
|
},
|
1642
1619
|
//组织config数据---
|
@@ -2373,22 +2350,16 @@ export default {
|
|
2373
2350
|
HostApp.__this__ = this
|
2374
2351
|
let that = this
|
2375
2352
|
let value = {}
|
2376
|
-
//tag
|
2377
2353
|
if (this.role == 'inspect') {
|
2378
|
-
|
2354
|
+
let condition=` f_check_item_id ='${this.item.id}'`
|
2379
2355
|
if (this.item.f_no_checkplan == '无计划安检') {
|
2380
|
-
|
2381
|
-
alias: 'getUserinfomation',
|
2382
|
-
data: {condition: "f_check_item_id = '" + this.item.id + "' and f_no_checkplan = '无计划安检'"}
|
2383
|
-
})
|
2384
|
-
} else {
|
2385
|
-
value = this.$androidUtil.bzLogic('FetchCheckPaper', {id: this.item.id})
|
2356
|
+
condition += ` and f_no_checkplan = '无计划安检'`
|
2386
2357
|
}
|
2358
|
+
value = this.$androidUtil.bzLogic('path_getPhoneCheckPaper', {condition: condition})
|
2387
2359
|
} else {
|
2388
2360
|
value = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data: {condition: `id = '${this.item.f_paper_id}'`}})
|
2389
2361
|
}
|
2390
2362
|
Util.replaceFalse(value)
|
2391
|
-
//tag)
|
2392
2363
|
if (value.data.length != 0) {
|
2393
2364
|
that.$set('data', value.data[0])
|
2394
2365
|
//tag)
|
@@ -2402,14 +2373,10 @@ export default {
|
|
2402
2373
|
that.$set('data.device' + that.devices[da].n, [])
|
2403
2374
|
}
|
2404
2375
|
value.data[0].f_devices.forEach((item) => {
|
2405
|
-
//tag)
|
2406
2376
|
for (let i in item.f_items) {
|
2407
2377
|
if(typeof item.f_items[i]=='function'){
|
2408
2378
|
continue
|
2409
2379
|
}
|
2410
|
-
// if (item.f_items[i].f_path != '' && item.f_items[i].f_path != null) {
|
2411
|
-
// this.picture.push({f_path: item.f_items[i].f_path, name: item.f_items[i].f_item_name})
|
2412
|
-
// }
|
2413
2380
|
for (let de in that.config[item.f_device_type].items) {
|
2414
2381
|
if(typeof that.config[item.f_device_type].items[de]=='function'){
|
2415
2382
|
continue
|
@@ -2422,36 +2389,16 @@ export default {
|
|
2422
2389
|
}
|
2423
2390
|
}
|
2424
2391
|
}
|
2425
|
-
//tag)
|
2426
|
-
|
2427
|
-
// if (item.f_items[i].f_item_name=='累购气量'){
|
2428
|
-
// item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_gas
|
2429
|
-
// }else if (item.f_items[i].f_item_name=='累购金额'){
|
2430
|
-
// item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_fee
|
2431
|
-
// }else if (item.f_items[i].f_item_name=='基表编号'){
|
2432
|
-
// item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_meter_no
|
2433
|
-
// }else if (item.f_items[i].f_item_name=='气表品牌'){
|
2434
|
-
// item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_aliasname
|
2435
|
-
// }else if (item.f_items[i].f_item_name=='进气方向'){
|
2436
|
-
// item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_flow_direction
|
2437
|
-
// }else if (item.f_items[i].f_item_name=='气表型号'){
|
2438
|
-
// item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_diaphgram_size
|
2439
|
-
// }else if (item.f_items[i].f_item_name=='表箱号'){
|
2440
|
-
// item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_metertitles
|
2441
|
-
// }
|
2442
|
-
// else{
|
2443
2392
|
for (let j in item.f_items[i].f_item_lists) {
|
2444
2393
|
if(typeof item.f_items[i].f_item_lists[j]=='function'){
|
2445
2394
|
continue
|
2446
2395
|
}
|
2447
|
-
//tag)
|
2448
2396
|
if (item.f_items[i].f_item_value instanceof Array) {
|
2449
2397
|
item.f_items[i].f_item_value.push(item.f_items[i].f_item_lists[j].f_item_value)
|
2450
2398
|
} else {
|
2451
2399
|
item.f_items[i].f_item_value = item.f_items[i].f_item_lists[j].f_item_value
|
2452
2400
|
}
|
2453
2401
|
}
|
2454
|
-
// }
|
2455
2402
|
|
2456
2403
|
}
|
2457
2404
|
for (let de in that.devices) {
|
@@ -2475,11 +2422,9 @@ export default {
|
|
2475
2422
|
//tag)
|
2476
2423
|
}
|
2477
2424
|
} else {
|
2478
|
-
//tag
|
2479
2425
|
this.init()
|
2480
2426
|
}
|
2481
2427
|
if(this.parentPage && this.parentPage=='CurrentCreate'){
|
2482
|
-
//tag
|
2483
2428
|
let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
|
2484
2429
|
if (isRecodr) {
|
2485
2430
|
if (isRecodr=='true') {
|
@@ -2528,7 +2473,6 @@ export default {
|
|
2528
2473
|
}else{
|
2529
2474
|
Util.androidRatifyPics(that.data,this.$androidUtil.getProxyUrl())
|
2530
2475
|
}
|
2531
|
-
//tag
|
2532
2476
|
} else {
|
2533
2477
|
alert("该安检单可能已不在本地!")
|
2534
2478
|
this.init()
|
@@ -368,7 +368,7 @@ export default {
|
|
368
368
|
title: '购气记录',
|
369
369
|
safe: false
|
370
370
|
})
|
371
|
-
this.$parent.$parent.$goto('phone-sell-info', {f_userinfo_id: f_userinfo_id})
|
371
|
+
this.$parent.$parent.$goto('safe-phone-sell-info', {f_userinfo_id: f_userinfo_id})
|
372
372
|
},
|
373
373
|
cameraCallBack (prop, fileName) {
|
374
374
|
if (prop == 'f_noanswers_path') {
|
@@ -548,7 +548,7 @@ export default {
|
|
548
548
|
checkboxModel: {},
|
549
549
|
c_year_list: options,
|
550
550
|
c_month_list: moptions,
|
551
|
-
areas: this.areas(),
|
551
|
+
// areas: this.areas(),
|
552
552
|
checkstatus: this.checkstatus(),
|
553
553
|
usertypes: this.usertypes(),
|
554
554
|
userstates: this.userstates(),
|
@@ -873,17 +873,17 @@ export default {
|
|
873
873
|
cancel() {
|
874
874
|
this.showModal = false
|
875
875
|
},
|
876
|
-
areas() {
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
},
|
876
|
+
// areas() {
|
877
|
+
// let rs = []
|
878
|
+
// for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
|
879
|
+
// let temp = {
|
880
|
+
// label: this.$login.f.f_allArea[i].label,
|
881
|
+
// value: this.$login.f.f_allArea[i].label
|
882
|
+
// }
|
883
|
+
// rs.push(temp)
|
884
|
+
// }
|
885
|
+
// return [{label: '全部', value: ''}, ...rs]
|
886
|
+
// },
|
887
887
|
initAdjustables() {
|
888
888
|
//tag
|
889
889
|
let arr = []
|
@@ -376,43 +376,10 @@ import {HttpResetClass} from "vue-client";
|
|
376
376
|
let asyncReady = async function (self) {
|
377
377
|
// 获取配置信息
|
378
378
|
try {
|
379
|
-
let res = await new HttpResetClass().load('
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
condition: `id = '${self.item.f_filialeid}'`,
|
384
|
-
orderitem: 'id'
|
385
|
-
}
|
386
|
-
})/*.then(res=>{*/
|
387
|
-
//tag
|
388
|
-
//tag)
|
389
|
-
if (!res.data[0].f_dir) {
|
390
|
-
self.$showMessage("该公司无组织目录,无法获取配置文件,请联系管理员确认")
|
391
|
-
} else {
|
392
|
-
//this.f_dir=res.data[0].f_dir
|
393
|
-
try {
|
394
|
-
let res1 = await new HttpResetClass().load('GET', `/safecheck/rs/vue/DevicesConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
|
395
|
-
resolveMsg: '获取居民配置项成功!',
|
396
|
-
rejectMsg: '获取居民配置项出错!'
|
397
|
-
})/*.then(res=>{*/
|
398
|
-
//tag
|
399
|
-
//this.safeConfig["民用配置项"]=Object.assign({},res.data)
|
400
|
-
Vue.config.safecheck.DevicesConfig = res1.data
|
401
|
-
/*})*/
|
402
|
-
let res2 = await new HttpResetClass().load('GET', `/safecheck/rs/vue/DevicesSetConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
|
403
|
-
resolveMsg: '获取非居民配置项成功!',
|
404
|
-
rejectMsg: '获取非居民配置项出错!'
|
405
|
-
})/*.then(res=>{*/
|
406
|
-
//tag
|
407
|
-
//this.safeConfig["非民用配置项"]=Object.assign({},res.data)
|
408
|
-
Vue.config.safecheck.DevicesSetConfig = res2.data
|
409
|
-
/*}).then(res=> {
|
410
|
-
})*/
|
411
|
-
|
412
|
-
} catch (e) {
|
413
|
-
self.$showMessage("获取配置文件失败" + e)
|
414
|
-
}
|
415
|
-
}
|
379
|
+
let res = await new HttpResetClass().load('get','/api/af-safecheck/vue',null, {resolveMsg: null, rejectMsg: null})
|
380
|
+
self.delConfigKey(res.data)
|
381
|
+
Vue.config.safecheck=res.data
|
382
|
+
console.log('获取配置结果===', res.data)
|
416
383
|
} catch (error) {
|
417
384
|
// 忽略704,文件找不到异常R
|
418
385
|
if (error.status !== 704) {
|
@@ -630,6 +597,18 @@ export default {
|
|
630
597
|
}
|
631
598
|
},
|
632
599
|
methods: {
|
600
|
+
delConfigKey(obj){
|
601
|
+
// 从琉璃中获取的配置中会包含 $开头的一些额外描述新的key。为了兼容v3的代码逻辑在此函数中去掉
|
602
|
+
Object.keys(obj).forEach(key =>{
|
603
|
+
Object.keys(obj[key]).forEach(col => {
|
604
|
+
// 检查键是否以$开头
|
605
|
+
if (col.startsWith('$')) {
|
606
|
+
// 使用delete操作符删除键
|
607
|
+
delete obj[key][col];
|
608
|
+
}
|
609
|
+
})
|
610
|
+
})
|
611
|
+
},
|
633
612
|
devicesCollect() {
|
634
613
|
//tag
|
635
614
|
//tag)
|
@@ -1343,6 +1322,7 @@ export default {
|
|
1343
1322
|
},
|
1344
1323
|
|
1345
1324
|
ready() {
|
1325
|
+
asyncReady(this).then(async () => {
|
1346
1326
|
this.putDevices()
|
1347
1327
|
if (this.item.f_state != '未检' || this.item.f_no_checkplan == '无计划安检') {
|
1348
1328
|
if (this.role != 'inspect') {
|
@@ -1353,7 +1333,7 @@ export default {
|
|
1353
1333
|
} else if (this.role == 'androidview') {
|
1354
1334
|
id = this.item.f_paper_id
|
1355
1335
|
}
|
1356
|
-
this.$resetpost(`
|
1336
|
+
this.$resetpost(`api/af-safecheck/logic/path_getCheckPaper`, {data: {id:id}}).then((respanse) => {
|
1357
1337
|
//tag
|
1358
1338
|
if (respanse.data.length != 0) {
|
1359
1339
|
// 包含 其它 特殊处理的数组
|
@@ -1401,7 +1381,6 @@ export default {
|
|
1401
1381
|
}
|
1402
1382
|
// this.$goto('paper-message-blank', {userinfo:this.data,devices:this.devices,config:this.config,role:this.role}, 'self')
|
1403
1383
|
this.isshow = true
|
1404
|
-
asyncReady(this).then(async () => {
|
1405
1384
|
//tag
|
1406
1385
|
//tag)
|
1407
1386
|
if (this.data.f_check_type == '民用') {
|
@@ -1419,7 +1398,7 @@ export default {
|
|
1419
1398
|
}
|
1420
1399
|
console.log('this.data.f_collection_type--------------',this.data.f_collection_type)
|
1421
1400
|
if(!this.data.f_collection_type){
|
1422
|
-
|
1401
|
+
this.$resetpost('api/af-safecheck/sql/SafecheckTableModel', {data: {condition: ` 1 = 1 and pim.f_plan_item_id = '${this.item.f_check_item_id}'`}}).then((res) => {
|
1423
1402
|
//tag)
|
1424
1403
|
if(res.data.length>0){
|
1425
1404
|
this.meter_classify = res.data[0].f_meter_classify
|
@@ -1459,9 +1438,6 @@ export default {
|
|
1459
1438
|
this.deviceconfig2[1].items = jsonSort(this.deviceconfig2[1].items, "index")
|
1460
1439
|
this.deviceconfig2 = jsonSort(this.deviceconfig2, "index")
|
1461
1440
|
this.getDeviceAll()
|
1462
|
-
|
1463
|
-
|
1464
|
-
})
|
1465
1441
|
}
|
1466
1442
|
).catch(
|
1467
1443
|
(respanse) => {
|
@@ -1470,7 +1446,7 @@ export default {
|
|
1470
1446
|
})
|
1471
1447
|
}
|
1472
1448
|
}
|
1473
|
-
|
1449
|
+
})
|
1474
1450
|
},
|
1475
1451
|
watch: {
|
1476
1452
|
// 'isUpload'(val){
|
@@ -484,15 +484,8 @@ import BenzAMRRecorder from 'benz-amr-recorder'
|
|
484
484
|
},
|
485
485
|
|
486
486
|
change(row) {
|
487
|
-
|
488
|
-
|
489
|
-
////tag)
|
490
|
-
row.f_upload_state = '已传'
|
491
|
-
this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
|
492
|
-
}).catch(
|
493
|
-
(respanse) => {
|
494
|
-
alert('获取配置文件失败')
|
495
|
-
})
|
487
|
+
row.f_upload_state = '已传'
|
488
|
+
this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
|
496
489
|
},
|
497
490
|
readConfig() {
|
498
491
|
let gen = asyncReady(this)
|
@@ -294,7 +294,7 @@ export default {
|
|
294
294
|
meternumberf: this.thisOneData.f_meternumber, //表号
|
295
295
|
contentData: {isOpen: msg=='开阀' ? 1 : 0}, // oper 为true 时为开阀 false 为关阀
|
296
296
|
}
|
297
|
-
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-
|
297
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/iot_saveInstruct`, {data: data}).then((row) => {
|
298
298
|
this.$showMessage(`${msg}指令发送成功,请等候2分钟进行查询`)
|
299
299
|
//tag
|
300
300
|
this.thisOneData = '';
|