safecheck-client 3.0.39-4 → 3.0.39-41
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 +6 -6
- 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//345/256/232/344/275/215.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/android/AndroidDefectDeal.vue +2 -2
- package/src/components/android/AreaPlan.vue +567 -567
- package/src/components/android/AttendanceTally.vue +116 -116
- package/src/components/android/Blank.vue +10 -10
- package/src/components/android/CheckUnplanPage.vue +56 -56
- package/src/components/android/Checker.vue +12 -12
- package/src/components/android/CheckerAnnual.vue +81 -81
- package/src/components/android/CheckerAvarta.vue +82 -82
- package/src/components/android/EquipmentInspection.vue +348 -348
- package/src/components/android/FootprintMap.vue +120 -120
- package/src/components/android/HiddentroubleInvestigation.vue +192 -192
- package/src/components/android/MasterMain.vue +77 -77
- package/src/components/android/Menu.vue +132 -132
- package/src/components/android/PaperAlarm.vue +85 -85
- package/src/components/android/PaperDeviceNoncivil.vue +214 -214
- package/src/components/android/PlumberAnnual.vue +83 -83
- package/src/components/android/PlumberAnnualDetail.vue +65 -65
- package/src/components/android/PlumberMonthly.vue +84 -84
- package/src/components/android/PostMap.vue +83 -83
- package/src/components/android/QueryCheckHistory.vue +122 -122
- package/src/components/android/QueryCheckHistoryItem.vue +62 -62
- package/src/components/android/RepairMain.vue +60 -60
- package/src/components/android/Repairman.vue +12 -12
- package/src/components/android/SafecheckOrderV.vue +1 -1
- 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/AddPlanItemYyChange.vue +5 -1
- package/src/components/pc/SafeCheckOrder/SafeCheckOrderList.vue +34 -0
- 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/BFshiye/android/PhoneUpUserinfo.vue +3 -1
- package/src/filiale/BFshiye/android/SafecheckUserInfo.vue +2 -8
- package/src/filiale/bayan/pc/NewCheckpaper.vue +2 -2
- package/src/filiale/bayan/pc/SelectAreaReport.vue +1 -0
- package/src/filiale/bayan/pc/SummaryOfSecurityInspectionProgress.vue +7 -7
- package/src/filiale/dexin/android/AreaPlan.vue +567 -567
- package/src/filiale/dexin/android.js +21 -21
- package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +2 -2
- package/src/filiale/hanzhong/pc/CheckNumberStatistics.vue +1 -1
- package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +6 -1
- package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +1 -1
- package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +1 -1
- package/src/filiale/huatong/android/SafecheckOrderV.vue +2 -2
- package/src/filiale/jinhuang/android/AddPlanItem.vue +430 -0
- package/src/filiale/jinhuang/android/PhoneUpUserinfo.vue +1289 -1252
- package/src/filiale/jinhuang/android.js +2 -1
- package/src/filiale/kelai/android/PaperFeedback.vue +1384 -1370
- package/src/filiale/kelai/android/PhoneUpUserinfo.vue +1 -1
- package/src/filiale/kelai/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/kelai/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/kelai/pc/PaperList.vue +609 -596
- package/src/filiale/kelai/pc/UserInfoAudit.vue +126 -90
- package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +7 -7
- package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +110 -38
- package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckOrderV.vue +3 -0
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +42 -19
- package/src/filiale/qingjian/pc/NewCheckpaper.vue +1 -0
- package/src/filiale/rongchuang/android/PhoneUpUserinfo.vue +1262 -0
- package/src/filiale/rongchuang/android/SafecheckDevices.vue +1 -1
- package/src/filiale/rongchuang/android.js +1 -0
- package/src/filiale/rongchuang/pc/checkPlanList.vue +398 -0
- package/src/filiale/rongchuang/pc.js +1 -0
- package/src/filiale/siyang/android/PhoneInsurancePurchaseDetail.vue +57 -24
- package/src/filiale/siyang/android/SafecheckDevices.vue +1 -1
- package/src/filiale/siyang/android/SafecheckUserInfo.vue +8 -2
- package/src/filiale/tongchuan/android/SafecheckDevices.vue +909 -885
- package/src/filiale/tongchuan/pc/AMapTrailShowZk.vue +226 -0
- package/src/filiale/tongchuan/pc/CheckSearchUser.vue +47 -1
- package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +46 -0
- package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +34 -0
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +34 -0
- package/src/filiale/tongchuan/pc/PaperList.vue +44 -10
- package/src/filiale/tongchuan/pc/PersonTrack.vue +269 -0
- package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +42 -2
- package/src/filiale/tongchuan/pc.js +2 -0
- package/src/filiale/wenxi/android/SafecheckOrderV.vue +2682 -2682
- package/src/filiale/wuan/android/SafecheckOrderV.vue +2242 -2242
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +659 -655
- package/src/filiale/wuan/pc/NewCheckpaper.vue +1184 -1184
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +3 -3
- 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
|
@@ -57,9 +57,8 @@
|
|
|
57
57
|
</div>
|
|
58
58
|
<div class="col-sm-4 " style="width: auto; margin-top: 8px">
|
|
59
59
|
<button class="button_search button_spacing" @click="search">查询</button>
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
<button class="button_new button_spacing" @click="$parent.$parent.verifyAll()">批量审核</button>
|
|
61
|
+
<button class="button_export button_spacing" @click="$parent.$parent.rejectAll()">批量不通过</button>
|
|
63
62
|
</div>
|
|
64
63
|
</div>
|
|
65
64
|
|
|
@@ -68,7 +67,7 @@
|
|
|
68
67
|
<data-grid class="list_area table_sy" :model="model" partial='list' v-ref:grid>
|
|
69
68
|
<template partial='head'>
|
|
70
69
|
<tr>
|
|
71
|
-
|
|
70
|
+
<th><nobr></nobr></th>
|
|
72
71
|
<th><nobr>用户编号</nobr></th>
|
|
73
72
|
<th><nobr>用户名称</nobr></th>
|
|
74
73
|
<th><nobr>提交人</nobr></th>
|
|
@@ -81,7 +80,7 @@
|
|
|
81
80
|
</tr>
|
|
82
81
|
</template>
|
|
83
82
|
<template partial='body'>
|
|
84
|
-
|
|
83
|
+
<td style="text-align: center"><nobr><input type="checkbox" v-model="row.checked" @click="$parent.$parent.$parent.addChecked(row)"></nobr></td>
|
|
85
84
|
<td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
|
86
85
|
<td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
|
|
87
86
|
<td style="text-align: center"><nobr>{{row.f_modifier}}</nobr></td>
|
|
@@ -126,128 +125,165 @@ export default {
|
|
|
126
125
|
excessive:false,
|
|
127
126
|
userInformation:{},
|
|
128
127
|
f_approval_states:this.$appdata.getParam('审核状态'),
|
|
128
|
+
checkedRows: [] // 新增:用于存储选中的行
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
methods: {
|
|
132
132
|
search(args){
|
|
133
133
|
args += 'f_time= (select max(f_time) from t_modify_userinfo B where A.f_userinfoid = B.f_userinfoid)'
|
|
134
|
-
|
|
134
|
+
this.model.search(args)
|
|
135
|
+
this.checkedRows = [] // 清空选中项
|
|
135
136
|
},
|
|
136
137
|
change(row) {
|
|
137
|
-
//tag)
|
|
138
138
|
new HttpResetClass().load('post',`/rs/logic/filemanage_getFilesDetail`, {
|
|
139
|
-
//f_userinfo_code:'12381344',
|
|
140
139
|
f_userinfo_id:row.f_userinfoid
|
|
141
140
|
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
142
|
-
//tag
|
|
143
|
-
//this.userInformation=res.data
|
|
144
141
|
this.$set('userInformation',res.data)
|
|
145
|
-
//tag
|
|
146
142
|
this.$set('info',row)
|
|
147
143
|
this.showModal = true
|
|
148
144
|
})
|
|
149
|
-
|
|
150
145
|
},
|
|
151
|
-
|
|
146
|
+
addChecked(row) {
|
|
147
|
+
if (row.checked) {
|
|
148
|
+
this.checkedRows.push(row)
|
|
149
|
+
} else {
|
|
150
|
+
this.checkedRows.$remove(row)
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
async todo(row) {
|
|
152
154
|
let r = confirm("确认修改该资料?")
|
|
153
|
-
if(r) {
|
|
154
|
-
this.excessive=true
|
|
155
|
-
let userinfoms=Object.assign({},this.userInformation.baseinfo.base)
|
|
156
|
-
|
|
157
|
-
userinfoms.
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
if(this.userInformation.meterinfo[0].f_meter_classify!='物联网表'){
|
|
162
|
-
this.userInformation.meterinfo[0].f_meternumber=row.f_meternumber
|
|
155
|
+
if (r) {
|
|
156
|
+
this.excessive = true
|
|
157
|
+
let userinfoms = Object.assign({}, this.userInformation.baseinfo.base)
|
|
158
|
+
userinfoms.f_operator_record = row.f_modifier
|
|
159
|
+
userinfoms.f_operatorid_record = row.f_modifier_id
|
|
160
|
+
|
|
161
|
+
if (this.userInformation.meterinfo[0].f_meter_classify != '物联网表') {
|
|
162
|
+
this.userInformation.meterinfo[0].f_meternumber = row.f_meternumber
|
|
163
163
|
}
|
|
164
|
-
userinfoms.userfiles=[]
|
|
164
|
+
userinfoms.userfiles = []
|
|
165
165
|
userinfoms.userfiles.push(this.userInformation.meterinfo[0])
|
|
166
|
-
userinfoms.f_orgid_record=null
|
|
167
|
-
userinfoms.f_orgname_record=null
|
|
168
|
-
userinfoms.f_depid_record=null
|
|
169
|
-
userinfoms.f_depname_record=null
|
|
170
|
-
let useraddressms=Object.assign({},this.userInformation.addressinfo)
|
|
171
|
-
useraddressms.f_pcd=row.f_pcd
|
|
172
|
-
useraddressms.f_pcd_id=row.f_pcd_id
|
|
173
|
-
useraddressms.f_street=row.f_street
|
|
174
|
-
useraddressms.f_street_id=row.f_street_id
|
|
175
|
-
useraddressms.f_residential_area=row.f_residential_area
|
|
176
|
-
useraddressms.f_residential_area_id=row.f_residential_area_id
|
|
177
|
-
useraddressms.f_building=row.f_building?row.f_building:null
|
|
178
|
-
useraddressms.f_building_id=row.f_building_id
|
|
179
|
-
useraddressms.f_unit=row.f_unit?row.f_unit:null
|
|
180
|
-
useraddressms.f_floor=row.f_floor?row.f_floor:null
|
|
181
|
-
useraddressms.f_room=row.f_room?row.f_room:null
|
|
182
|
-
useraddressms.f_building_suffix= row.f_building_suffix?row.f_building_suffix:null
|
|
183
|
-
useraddressms.f_unit_suffix= row.f_unit_suffix?row.f_unit_suffix:null
|
|
184
|
-
useraddressms.f_floor_suffix= row.f_floor_suffix?row.f_floor_suffix:null
|
|
185
|
-
useraddressms.f_room_suffix= row.f_room_suffix?row.f_room_suffix:null
|
|
186
|
-
|
|
187
|
-
useraddressms.
|
|
188
|
-
useraddressms.
|
|
189
|
-
useraddressms.
|
|
190
|
-
useraddressms.
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
this.excessive=false
|
|
209
|
-
}else{
|
|
210
|
-
this.$showMessage("审核失败!")
|
|
211
|
-
this.excessive=false
|
|
212
|
-
}
|
|
213
|
-
}else{
|
|
166
|
+
userinfoms.f_orgid_record = null
|
|
167
|
+
userinfoms.f_orgname_record = null
|
|
168
|
+
userinfoms.f_depid_record = null
|
|
169
|
+
userinfoms.f_depname_record = null
|
|
170
|
+
let useraddressms = Object.assign({}, this.userInformation.addressinfo)
|
|
171
|
+
useraddressms.f_pcd = row.f_pcd
|
|
172
|
+
useraddressms.f_pcd_id = row.f_pcd_id
|
|
173
|
+
useraddressms.f_street = row.f_street
|
|
174
|
+
useraddressms.f_street_id = row.f_street_id
|
|
175
|
+
useraddressms.f_residential_area = row.f_residential_area
|
|
176
|
+
useraddressms.f_residential_area_id = row.f_residential_area_id
|
|
177
|
+
useraddressms.f_building = row.f_building ? row.f_building : null
|
|
178
|
+
useraddressms.f_building_id = row.f_building_id
|
|
179
|
+
useraddressms.f_unit = row.f_unit ? row.f_unit : null
|
|
180
|
+
useraddressms.f_floor = row.f_floor ? row.f_floor : null
|
|
181
|
+
useraddressms.f_room = row.f_room ? row.f_room : null
|
|
182
|
+
useraddressms.f_building_suffix = row.f_building_suffix ? row.f_building_suffix : null
|
|
183
|
+
useraddressms.f_unit_suffix = row.f_unit_suffix ? row.f_unit_suffix : null
|
|
184
|
+
useraddressms.f_floor_suffix = row.f_floor_suffix ? row.f_floor_suffix : null
|
|
185
|
+
useraddressms.f_room_suffix = row.f_room_suffix ? row.f_room_suffix : null
|
|
186
|
+
useraddressms.f_address = row.f_address
|
|
187
|
+
useraddressms.f_special = row.f_special
|
|
188
|
+
useraddressms.f_iscity = row.f_iscity
|
|
189
|
+
useraddressms.f_operator = row.f_modifier
|
|
190
|
+
useraddressms.f_operatorid = row.f_modifier_id
|
|
191
|
+
try {
|
|
192
|
+
let res1 = await new HttpResetClass().load('POST', '/rs/logic/filemanage_fileSave', {data: {userinfo: userinfoms, modifyReason: this.f_source ? `${this.f_source}审核通过更改档案信息` : '', address: {id: this.userInformation.addressinfo.id, oldid: this.userInformation.addressinfo.id}}}, {resolveMsg: null, rejectMsg: null})
|
|
193
|
+
if (res1.data.status == 200) {
|
|
194
|
+
let res2 = await new HttpResetClass().load('POST', '/rs/logic/address_updateuseraddress', useraddressms, {resolveMsg: null, rejectMsg: null})
|
|
195
|
+
if (res2.data.id) {
|
|
196
|
+
row.f_approved = '已审核'
|
|
197
|
+
row.f_approved_by = this.$login.f.name
|
|
198
|
+
row.f_approved_time = Util.toStandardTimeString()
|
|
199
|
+
let res3 = await new HttpResetClass().load('POST', '/rs/logic/SaveEntity', {data: {row: row, tablename: 't_modify_userinfo'}}, {resolveMsg: null, rejectMsg: null})
|
|
200
|
+
if (res3.data.code == 200) {
|
|
201
|
+
this.$showMessage("审核成功,用户信息已更新!")
|
|
202
|
+
this.excessive = false
|
|
203
|
+
} else {
|
|
204
|
+
this.$showMessage("审核失败!")
|
|
205
|
+
this.excessive = false
|
|
206
|
+
}
|
|
207
|
+
} else {
|
|
214
208
|
this.$showMessage("更新地址信息失败!")
|
|
215
|
-
this.excessive=false
|
|
209
|
+
this.excessive = false
|
|
216
210
|
}
|
|
217
|
-
}else{
|
|
211
|
+
} else {
|
|
218
212
|
this.$showMessage("修改用户信息失败!")
|
|
219
|
-
this.excessive=false
|
|
213
|
+
this.excessive = false
|
|
220
214
|
}
|
|
221
|
-
}catch(msg){
|
|
222
|
-
if(
|
|
223
|
-
this.$showMessage("修改用户信息失败!"+msg.data)
|
|
224
|
-
}else{
|
|
215
|
+
} catch (msg) {
|
|
216
|
+
if (typeof msg == 'object' && msg.data) {
|
|
217
|
+
this.$showMessage("修改用户信息失败!" + msg.data)
|
|
218
|
+
} else {
|
|
225
219
|
this.$showMessage("审核失败,可以尝试重新点击审核按钮再次进行审核!!")
|
|
226
220
|
}
|
|
227
|
-
this.excessive=false
|
|
221
|
+
this.excessive = false
|
|
228
222
|
}
|
|
229
223
|
}
|
|
230
224
|
},
|
|
231
|
-
isnull(val){
|
|
232
|
-
if(val == null){
|
|
225
|
+
isnull(val) {
|
|
226
|
+
if (val == null) {
|
|
233
227
|
return ''
|
|
234
|
-
}else{
|
|
228
|
+
} else {
|
|
235
229
|
return val
|
|
236
230
|
}
|
|
237
231
|
},
|
|
238
|
-
|
|
239
|
-
this.
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
232
|
+
async verifyAll() {
|
|
233
|
+
if (this.checkedRows.length === 0) {
|
|
234
|
+
this.$showMessage("请选择要批量审核的记录!")
|
|
235
|
+
return
|
|
236
|
+
}
|
|
237
|
+
let r = confirm("确认批量审核选中的资料?")
|
|
238
|
+
if (r) {
|
|
239
|
+
this.excessive = true
|
|
240
|
+
for (let i = 0; i < this.checkedRows.length; i++) {
|
|
241
|
+
let row = this.checkedRows[i]
|
|
242
|
+
if (row.f_approved === '未审核') {
|
|
243
|
+
await new HttpResetClass().load('post',`/rs/logic/filemanage_getFilesDetail`, {
|
|
244
|
+
f_userinfo_id:row.f_userinfoid
|
|
245
|
+
}, {resolveMsg: null, rejectMsg: null}).then(async (res) => {
|
|
246
|
+
this.$set('userInformation',res.data)
|
|
247
|
+
this.$set('info',row)
|
|
248
|
+
await this.todo(row)
|
|
249
|
+
})
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
this.excessive = false
|
|
253
|
+
this.search('') // 刷新列表
|
|
254
|
+
this.$showMessage("批量审核完成!")
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
async rejectAll() {
|
|
258
|
+
if (this.checkedRows.length === 0) {
|
|
259
|
+
this.$showMessage("请选择要批量不通过的记录!")
|
|
260
|
+
return
|
|
261
|
+
}
|
|
262
|
+
let r = confirm("确认批量不通过选中的资料?")
|
|
263
|
+
if (r) {
|
|
264
|
+
this.excessive = true
|
|
265
|
+
for (let i = 0; i < this.checkedRows.length; i++) {
|
|
266
|
+
let row = this.checkedRows[i]
|
|
267
|
+
if (row.f_approved === '未审核') {
|
|
268
|
+
await this.undo(row)
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
this.excessive = false
|
|
272
|
+
this.search('') // 刷新列表
|
|
273
|
+
this.$showMessage("批量不通过完成!")
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
async undo(row){
|
|
277
|
+
row.f_approved='未通过'
|
|
278
|
+
row.f_approved_by=this.$login.f.name
|
|
279
|
+
row.f_approved_time=Util.toStandardTimeString()
|
|
280
|
+
await new HttpResetClass().load('POST','/rs/logic/SaveEntity', {data:{row:row,tablename:'t_modify_userinfo'}},{resolveMsg: null, rejectMsg: null}).then((res3)=>{
|
|
244
281
|
if(res3.data.code==200){
|
|
245
282
|
this.$showMessage("审核成功,审核结果:未通过!")
|
|
246
283
|
}else{
|
|
247
284
|
this.$showMessage("审核失败!")
|
|
248
285
|
}
|
|
249
286
|
})
|
|
250
|
-
|
|
251
287
|
}
|
|
252
288
|
}
|
|
253
289
|
}
|
|
@@ -955,14 +955,14 @@ export default {
|
|
|
955
955
|
// this.$goto('paper-message-blank', {userinfo:this.data,devices:this.devices,config:this.config,role:this.role}, 'self')
|
|
956
956
|
this.isshow = true
|
|
957
957
|
asyncReady(this).then(() => {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
958
|
+
if (this.data.f_check_type){
|
|
959
|
+
if (this.data.f_check_type=='民用'){
|
|
960
|
+
this.deviceconfig=Vue.config.safecheck.DevicesConfig
|
|
961
|
+
}else if (this.data.f_check_type=='非民用'){
|
|
962
|
+
this.deviceconfig=Vue.config.safecheck.DevicesSetConfig
|
|
963
|
+
}
|
|
964
|
+
}else {
|
|
961
965
|
this.deviceconfig=Vue.config.safecheck.DevicesConfig
|
|
962
|
-
////tag)
|
|
963
|
-
}else if (this.data.f_check_type=='非民用'){
|
|
964
|
-
this.deviceconfig=Vue.config.safecheck.DevicesSetConfig
|
|
965
|
-
////tag)
|
|
966
966
|
}
|
|
967
967
|
if (this.planmeter.f_meter_classify=='机表'){
|
|
968
968
|
let aaa=Object.assign({},this.configjb["燃气表"].items,this.deviceconfig["燃气表"].items)
|
|
@@ -15,27 +15,27 @@
|
|
|
15
15
|
</div>
|
|
16
16
|
<div class="row auto" style="margin: 5px 0">
|
|
17
17
|
<label class="righttxt">用户名称:</label><input type="text" class="form-control rightipt"
|
|
18
|
-
|
|
18
|
+
v-model="userinfo.baseinfo.base.f_user_name" readonly/>
|
|
19
19
|
</div>
|
|
20
20
|
<div class="row auto" style="margin: 5px 0">
|
|
21
21
|
<label class="righttxt">用户状态:</label><input type="text" class="form-control rightipt" readonly
|
|
22
|
-
|
|
22
|
+
v-model="userinfo.baseinfo.base.f_user_state"/>
|
|
23
23
|
</div>
|
|
24
24
|
<div class="row auto" style="margin: 5px 0">
|
|
25
25
|
<label class="righttxt">用户电话:</label><input type="text" class="form-control rightipt"
|
|
26
|
-
|
|
26
|
+
v-model="userinfo.baseinfo.base.f_user_phone"/>
|
|
27
27
|
</div>
|
|
28
28
|
<div class="row auto" style="margin: 5px 0">
|
|
29
29
|
<label class="righttxt">租户姓名:</label><input type="text" class="form-control rightipt"
|
|
30
|
-
|
|
30
|
+
v-model="userinfo.baseinfo.base.f_rent_name"/>
|
|
31
31
|
</div>
|
|
32
32
|
<div class="row auto" style="margin: 5px 0">
|
|
33
33
|
<label class="righttxt">租户电话:</label><input type="text" class="form-control rightipt"
|
|
34
|
-
|
|
34
|
+
v-model="userinfo.baseinfo.base.f_zuhu_phone"/>
|
|
35
35
|
</div>
|
|
36
36
|
<div class="row auto" style="margin: 5px 0">
|
|
37
37
|
<label class="righttxt">建档日期:</label><input type="text" class="form-control rightipt"
|
|
38
|
-
|
|
38
|
+
v-model="userinfo.baseinfo.base.f_createfile_date" readonly/>
|
|
39
39
|
</div>
|
|
40
40
|
<!-- <div class="row auto" style="margin: 5px 0">
|
|
41
41
|
<label class="righttxt">开户日期:</label><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_open_date" readonly />
|
|
@@ -45,17 +45,23 @@
|
|
|
45
45
|
<div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
|
|
46
46
|
<div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
|
|
47
47
|
id="phone_addressType1" value="普通地址"/><label style="font-weight: normal;padding-left: 2px"
|
|
48
|
-
|
|
48
|
+
for="phone_addressType1">普通地址</label></div>
|
|
49
49
|
<div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
|
|
50
50
|
id="phone_addressType2" value="特殊地址"/><label style="font-weight: normal;padding-left: 2px"
|
|
51
|
-
|
|
51
|
+
for="phone_addressType2">特殊地址</label></div>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
<div class="row auto" style="margin: 5px 0">
|
|
56
|
+
<label class="righttxt">经度:</label>
|
|
57
|
+
<input readonly type="text" class="form-control rightipt" v-model="userinfo.addressinfo.f_lng"/>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="row auto" style="margin: 5px 0">
|
|
60
|
+
<label class="righttxt">纬度:</label>
|
|
61
|
+
<input readonly type="text" class="form-control rightipt" v-model="userinfo.addressinfo.f_lat"/>
|
|
62
|
+
<div style="margin-left: 10px;" @click="getLocation">
|
|
63
|
+
<img src="../../../assets/定位.png" alt="定位" style="width: 24px; height: 24px; cursor: pointer;" />
|
|
52
64
|
</div>
|
|
53
|
-
<!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
|
|
54
|
-
<!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
|
|
55
|
-
<!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
|
|
56
|
-
:width="'60%'"
|
|
57
|
-
v-model="userinfo.addressinfo.f_iscity"
|
|
58
|
-
:options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single @change="area_change()"></v-select>-->
|
|
59
65
|
</div>
|
|
60
66
|
<div class="row auto" style="margin: 5px 0">
|
|
61
67
|
<label class="righttxt">地区类型:</label>
|
|
@@ -108,27 +114,27 @@
|
|
|
108
114
|
</div>-->
|
|
109
115
|
<div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
|
|
110
116
|
<label class="righttxt">楼    号:</label><input type="text" @change="changeNewAddress"
|
|
111
|
-
|
|
112
|
-
|
|
117
|
+
class="form-control rightipt"
|
|
118
|
+
v-model="userinfo.addressinfo.f_building"/>
|
|
113
119
|
</div>
|
|
114
120
|
<div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
|
|
115
121
|
<label class="righttxt">单    元:</label><input type="text" @change="changeNewAddress"
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
class="form-control rightipt"
|
|
123
|
+
v-model="userinfo.addressinfo.f_unit"/>
|
|
118
124
|
</div>
|
|
119
125
|
<div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
|
|
120
126
|
<label class="righttxt">楼    层:</label><input type="text" @change="changeNewAddress"
|
|
121
|
-
|
|
122
|
-
|
|
127
|
+
class="form-control rightipt"
|
|
128
|
+
v-model="userinfo.addressinfo.f_floor"/>
|
|
123
129
|
</div>
|
|
124
130
|
<div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
|
|
125
131
|
<label class="righttxt">门 牌 号:</label><input type="text" @change="changeNewAddress"
|
|
126
|
-
|
|
127
|
-
|
|
132
|
+
class="form-control rightipt"
|
|
133
|
+
v-model="userinfo.addressinfo.f_room"/>
|
|
128
134
|
</div>
|
|
129
135
|
<div class="row auto" style="margin: 5px 0">
|
|
130
136
|
<label class="righttxt">详细地址:</label><input type="text" class="form-control rightipt" readonly
|
|
131
|
-
|
|
137
|
+
v-model="userinfo_old.addressinfo.f_address"/>
|
|
132
138
|
</div>
|
|
133
139
|
<div class="row auto" style="margin: 5px 0">
|
|
134
140
|
<label class="righttxt">新 地 址:</label>
|
|
@@ -144,8 +150,8 @@
|
|
|
144
150
|
|
|
145
151
|
<div class="row auto" style="margin: 5px 0">
|
|
146
152
|
<label class="righttxt">备    注:</label><textarea class="form-control rightipt"
|
|
147
|
-
|
|
148
|
-
|
|
153
|
+
style="height: 150px"
|
|
154
|
+
v-model="userinfo.addressinfo.f_comments"></textarea>
|
|
149
155
|
<!--<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />-->
|
|
150
156
|
</div>
|
|
151
157
|
</div>
|
|
@@ -257,6 +263,10 @@
|
|
|
257
263
|
<label class="righttxt">气表类型:</label>
|
|
258
264
|
<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly/>
|
|
259
265
|
</div>
|
|
266
|
+
<div class="row auto" style="margin: 5px 0">
|
|
267
|
+
<label class="righttxt">现场表具型号:</label>
|
|
268
|
+
<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_xc_meter_style"/>
|
|
269
|
+
</div>
|
|
260
270
|
<div class="row auto" style="margin: 5px 0">
|
|
261
271
|
<label class="righttxt">表前阀状态:</label>
|
|
262
272
|
<!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
|
|
@@ -297,19 +307,19 @@
|
|
|
297
307
|
</div>
|
|
298
308
|
<div class="row auto" style="margin: 5px 0">
|
|
299
309
|
<label class="righttxt">设备品牌:</label>
|
|
300
|
-
<!-- <v-select class="rightipt" :value.sync="row.f_brand"
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
310
|
+
<!-- <v-select class="rightipt" :value.sync="row.f_brand"
|
|
311
|
+
v-model="row.f_brand"
|
|
312
|
+
placeholder='请选择'
|
|
313
|
+
:width='wid'
|
|
314
|
+
readonly
|
|
315
|
+
:options="deviceBrandOption[row.f_devices_type]"
|
|
316
|
+
close-on-select value-single></v-select>-->
|
|
307
317
|
<input type="text" class="form-control rightipt"
|
|
308
318
|
v-model="row.f_brand"/>
|
|
309
319
|
</div>
|
|
310
320
|
<div class="row auto" style="margin: 5px 0">
|
|
311
321
|
<label class="righttxt">设备型号:</label><input type="text" class="form-control rightipt"
|
|
312
|
-
|
|
322
|
+
v-model="row.f_devices_model"/>
|
|
313
323
|
</div>
|
|
314
324
|
<div class="row auto" style="margin: 5px 0">
|
|
315
325
|
<label class="righttxt">生产日期:</label>
|
|
@@ -324,7 +334,7 @@
|
|
|
324
334
|
</div>
|
|
325
335
|
<div class="row auto" style="margin: 5px 0">
|
|
326
336
|
<label class="righttxt">使用年限:</label><input type="number" class="form-control rightipt"
|
|
327
|
-
|
|
337
|
+
v-model="row.f_service_life"/>
|
|
328
338
|
</div>
|
|
329
339
|
<!-- <div class="row auto" style="margin: 5px 0">
|
|
330
340
|
<label class="righttxt">到期日期:</label>
|
|
@@ -339,7 +349,7 @@
|
|
|
339
349
|
</div>-->
|
|
340
350
|
<div class="row auto" style="margin: 5px 0">
|
|
341
351
|
<label class="righttxt">安 装 人:</label><input type="text" class="form-control rightipt"
|
|
342
|
-
|
|
352
|
+
v-model="row.f_input_person"/>
|
|
343
353
|
</div>
|
|
344
354
|
<div class="row auto" style="margin: 5px 0">
|
|
345
355
|
<label class="righttxt">安装日期:</label>
|
|
@@ -354,7 +364,7 @@
|
|
|
354
364
|
</div>
|
|
355
365
|
<div class="row auto" style="margin: 5px 0">
|
|
356
366
|
<label class="righttxt">设备数量:</label><input type="number" class="form-control rightipt"
|
|
357
|
-
|
|
367
|
+
v-model="row.f_devices_num"/>
|
|
358
368
|
</div>
|
|
359
369
|
<div class="row auto" style="margin: 5px 0">
|
|
360
370
|
<label class="righttxt">管道类型:</label><input type="text" class="form-control rightipt" v-model="row.f_pipe_type" />
|
|
@@ -448,7 +458,10 @@ export default {
|
|
|
448
458
|
showBox: false,
|
|
449
459
|
directOptions: [{label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
450
460
|
deviceBrandOption: {},
|
|
451
|
-
isNeedAudit: this.$appdata.getSingleValue('信息变更是否需要审核') == 'false' ? false : true
|
|
461
|
+
isNeedAudit: this.$appdata.getSingleValue('信息变更是否需要审核') == 'false' ? false : true,
|
|
462
|
+
detailedAddress:'',
|
|
463
|
+
administrativeDivision:''
|
|
464
|
+
|
|
452
465
|
}
|
|
453
466
|
},
|
|
454
467
|
props: {
|
|
@@ -459,6 +472,60 @@ export default {
|
|
|
459
472
|
f_source: ''
|
|
460
473
|
},
|
|
461
474
|
methods: {
|
|
475
|
+
getLocation(){
|
|
476
|
+
const location = HostApp.getDetailAddress()
|
|
477
|
+
const longitude = HostApp.getPreference('longitude')
|
|
478
|
+
const latitude = HostApp.getPreference('latitude')
|
|
479
|
+
this.userinfo.addressinfo.f_lng=longitude.data
|
|
480
|
+
this.userinfo.addressinfo.f_lat=latitude.data
|
|
481
|
+
this.userinfo.addressinfo.f_address=location.data
|
|
482
|
+
const parsed = this.parseAddress(location.data);
|
|
483
|
+
console.log('行政区划部分:', parsed.administrativeDivision);
|
|
484
|
+
this.selectPcd.f_pcd=parsed.administrativeDivision
|
|
485
|
+
this.selectPcd.id=1
|
|
486
|
+
console.log('详细地址部分:', parsed.detailedAddress)
|
|
487
|
+
this.detailedAddress=parsed.detailedAddress
|
|
488
|
+
},
|
|
489
|
+
parseAddress(address) {
|
|
490
|
+
// 匹配省市区县的正则表达式
|
|
491
|
+
const regex = /^(.*?(?:省|自治区|直辖市)?(?:[A-Za-z\u4e00-\u9fa5]*?(?:市))?(?:[A-Za-z\u4e00-\u9fa5]*?(?:区|县|市))?)((?:[A-Za-z\u4e00-\u9fa5\d]|.)*)$/;
|
|
492
|
+
|
|
493
|
+
const match = address.match(regex);
|
|
494
|
+
if (match) {
|
|
495
|
+
return {
|
|
496
|
+
administrativeDivision: match[1].trim(),
|
|
497
|
+
detailedAddress: match[2].trim()
|
|
498
|
+
};
|
|
499
|
+
} else {
|
|
500
|
+
// 备用方案:通过常见后缀分割
|
|
501
|
+
const splitIndex = this.findAdministrativeBoundary(address);
|
|
502
|
+
if (splitIndex > 0) {
|
|
503
|
+
return {
|
|
504
|
+
administrativeDivision: address.substring(0, splitIndex),
|
|
505
|
+
detailedAddress: address.substring(splitIndex)
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
// 如果无法分割,返回默认值
|
|
510
|
+
return {
|
|
511
|
+
administrativeDivision: address,
|
|
512
|
+
detailedAddress: ''
|
|
513
|
+
};
|
|
514
|
+
},
|
|
515
|
+
findAdministrativeBoundary(address) {
|
|
516
|
+
// 常见的行政区划后缀
|
|
517
|
+
const suffixes = ['区', '县', '市'];
|
|
518
|
+
// 从后往前查找第一个匹配的后缀
|
|
519
|
+
for (let i = address.length - 1; i >= 0; i--) {
|
|
520
|
+
for (let suffix of suffixes) {
|
|
521
|
+
if (address[i] === suffix &&
|
|
522
|
+
(i < address.length - 1)) {
|
|
523
|
+
return i + 1;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
return -1;
|
|
528
|
+
},
|
|
462
529
|
scan() {
|
|
463
530
|
HostApp.__this__ = this,
|
|
464
531
|
HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
|
|
@@ -623,6 +690,8 @@ export default {
|
|
|
623
690
|
this.userinfo.addressinfo.f_slice_area = this.selectArea.f_slice_area ? this.selectArea.f_slice_area : ''
|
|
624
691
|
this.excessive = true
|
|
625
692
|
let address = {}
|
|
693
|
+
address.f_lng=this.userinfo.addressinfo.f_lng
|
|
694
|
+
address.f_lat=this.userinfo.addressinfo.f_lat
|
|
626
695
|
address.f_filialeid = this.userinfo.addressinfo.f_filialeid
|
|
627
696
|
address.f_pcd = this.selectPcd.f_pcd
|
|
628
697
|
address.f_pcd_id = this.selectPcd.id
|
|
@@ -661,6 +730,7 @@ export default {
|
|
|
661
730
|
this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
|
|
662
731
|
this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
|
|
663
732
|
this.userinfo_old.meterinfo[0].f_meternumber = this.userinfo.meterinfo[0].f_meternumber
|
|
733
|
+
this.userinfo_old.meterinfo[0].f_xc_meter_style = this.userinfo.meterinfo[0].f_xc_meter_style
|
|
664
734
|
userinfoms.userfiles = []
|
|
665
735
|
this.userinfo_old.meterinfo[0].devicesinfo = this.model
|
|
666
736
|
userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
|
|
@@ -743,6 +813,7 @@ export default {
|
|
|
743
813
|
this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
|
|
744
814
|
this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
|
|
745
815
|
this.userinfo_old.meterinfo[0].f_meternumber = this.userinfo.meterinfo[0].f_meternumber
|
|
816
|
+
this.userinfo_old.meterinfo[0].f_xc_meter_style = this.userinfo.meterinfo[0].f_xc_meter_style
|
|
746
817
|
userinfoms.userfiles = []
|
|
747
818
|
this.userinfo_old.meterinfo[0].devicesinfo = this.model
|
|
748
819
|
userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
|
|
@@ -1073,7 +1144,8 @@ export default {
|
|
|
1073
1144
|
getAddressTS() {
|
|
1074
1145
|
return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
|
|
1075
1146
|
(this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
|
|
1076
|
-
(this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '')
|
|
1147
|
+
(this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '')+
|
|
1148
|
+
(this.detailedAddress ? this.detailedAddress: '')
|
|
1077
1149
|
}
|
|
1078
1150
|
},
|
|
1079
1151
|
watch: {
|
|
@@ -729,7 +729,7 @@ export default {
|
|
|
729
729
|
this.f_items[this.f_gas_aberrant_number.index].f_is_defect = false
|
|
730
730
|
if(val=='已用气量'){
|
|
731
731
|
//剩余气量 = 累购-已用
|
|
732
|
-
this.f_items[this.f_gas_balance.index].f_item_value= this.f_items[this.f_total_gas.index].f_item_value-this.f_items[this.f_table_base.index].f_item_value
|
|
732
|
+
this.f_items[this.f_gas_balance.index].f_item_value= (this.f_items[this.f_total_gas.index].f_item_value-this.f_items[this.f_table_base.index].f_item_value).toFixed(2)
|
|
733
733
|
if (isNaN(this.f_items[this.f_gas_balance.index].f_item_value)) {
|
|
734
734
|
this.f_items[this.f_gas_balance.index].f_item_value = null
|
|
735
735
|
}
|
|
@@ -1943,6 +1943,9 @@ export default {
|
|
|
1943
1943
|
this.$set('data.f_state',this.item.f_state)
|
|
1944
1944
|
this.$set('data.f_source', this.source?this.source:'安检')
|
|
1945
1945
|
this.$set('data.f_other_checker_name', '')
|
|
1946
|
+
const obj = HostApp.getGpsDetailAddress()
|
|
1947
|
+
this.$set('data.f_longitude', obj.longitude)
|
|
1948
|
+
this.$set('data.f_latitude', obj.latitude)
|
|
1946
1949
|
//tag
|
|
1947
1950
|
// 用户信息
|
|
1948
1951
|
this.$set('data.f_user_name', this.item.f_user_name)
|