safecheck-client 3.0.39-8 → 3.0.39-81
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/package.json +5 -5
- package/src/App.vue +31 -26
- package/src/assets//345/256/232/344/275/215.png +0 -0
- package/src/components/Util/ImgSelfSafePlus.vue +2 -2
- package/src/components/android/AndroidDefectDeal.vue +2 -2
- package/src/components/android/NewCheckpaperAndroid.vue +2 -2
- package/src/components/android/PhoneUpUserinfo.vue +11 -0
- package/src/components/android/rejectInspecCheck.vue +322 -0
- package/src/components/pc/AddPlanItemYyChange.vue +5 -1
- package/src/components/pc/NewCheckpaper.vue +108 -14
- package/src/components/pc/NewCheckpaperTemp.vue +1308 -1295
- package/src/components/pc/PaperDefectMain.vue +1 -1
- package/src/components/pc/RoleSelector.vue +172 -172
- package/src/components/pc/SafeCheckOrder/SafeCheckOrderList.vue +34 -0
- package/src/components/rongcheng/AddPlanItem.vue +344 -344
- package/src/components/rongcheng/CheckCurrentCreate.vue +1081 -1081
- package/src/components/rongcheng/PaperDefectMain.vue +828 -828
- package/src/components/rongcheng/PaperStatem.vue +6 -6
- package/src/components/rongcheng/PhoneUpUserinfo.vue +1 -0
- package/src/filiale/BFshiye/android/AndroidDefectDeal.vue +652 -0
- package/src/filiale/BFshiye/android/PhoneUpUserinfo.vue +3 -1
- package/src/filiale/BFshiye/android/SafecheckUserInfo.vue +2 -2
- package/src/filiale/BFshiye/pc/DefectListNew.vue +637 -0
- package/src/filiale/BFshiye/pc/NewCheckpaper.vue +18 -56
- package/src/filiale/BFshiye/pc/checkUserList.vue +772 -772
- package/src/filiale/BFshiye/pc.js +17 -16
- package/src/filiale/baiyin/android/SafecheckUserInfo.vue +775 -0
- package/src/filiale/baiyin/android.js +12 -11
- 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/SafecheckDevicesTemp.vue +1419 -1360
- package/src/filiale/dexin/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/dexin/android/SafecheckOrderVTemp.vue +4 -1
- package/src/filiale/dexin/pc/PaperList.vue +840 -840
- 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/jiaocheng/android/AddPlanItem.vue +20 -0
- package/src/filiale/jiaocheng/android/CurrentCreate.vue +1083 -0
- package/src/filiale/jiaocheng/android.js +1 -0
- package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +18 -1
- package/src/filiale/jiaocheng/pc/NewCheckpaper.vue +64 -4
- package/src/filiale/jiaocheng/pc/PaperList.vue +803 -0
- package/src/filiale/jiaocheng/pc.js +1 -0
- package/src/filiale/jinhuang/android/AddPlanItem.vue +430 -0
- package/src/filiale/jinhuang/android/PhoneUpUserinfo.vue +183 -145
- package/src/filiale/jinhuang/android.js +2 -1
- package/src/filiale/kelai/android/PaperFeedback.vue +1553 -1550
- 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 +13 -0
- package/src/filiale/kelai/pc/UserInfoAudit.vue +126 -90
- package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +4 -6
- package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +7 -7
- package/src/filiale/liaoyuan/pc/checkPlanList.vue +2 -3
- package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1357 -1270
- 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 +823 -800
- package/src/filiale/qingjian/pc/NewCheckpaper.vue +1919 -1919
- package/src/filiale/rongchuang/android/AddPlanItemVisitingWithoutMeeting.vue +454 -0
- package/src/filiale/rongchuang/android/AddPlanItemYy.vue +498 -0
- package/src/filiale/rongchuang/android/PhoneUpUserinfo.vue +1262 -0
- package/src/filiale/rongchuang/android/SafecheckDevices.vue +1 -1
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +3 -2
- package/src/filiale/rongchuang/android.js +3 -0
- package/src/filiale/rongchuang/pc/NewCheckpaper.vue +13 -1
- package/src/filiale/rongchuang/pc/checkPlanList.vue +398 -0
- package/src/filiale/rongchuang/pc.js +18 -17
- package/src/filiale/shanxian/pc/NewCheckpaper.vue +4 -4
- package/src/filiale/siyang/android/PhoneInsurancePurchaseDetail.vue +532 -498
- package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +888 -889
- package/src/filiale/tongchuan/android/SafecheckDevices.vue +909 -885
- package/src/filiale/tongchuan/pc/AMapTrailShowZk.vue +226 -0
- package/src/filiale/tongchuan/pc/CheckPlanCountChartAreaByWangGeYuan.vue +137 -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 +3 -0
- package/src/filiale/wensu/android/SafecheckOrderV.vue +2444 -2444
- package/src/filiale/wensu/android/SafecheckUserInfo.vue +712 -712
- package/src/filiale/wensu/pc/CheckSearchUser.vue +1251 -1251
- package/src/filiale/wenxi/pc/PaperList.vue +9 -3
- package/src/filiale/wuan/android/SafecheckOrderV.vue +2242 -2242
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +659 -659
- package/src/filiale/yangchunboneng/android/AndiroidSecurityAudit.vue +2 -1
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1191 -1191
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +913 -913
- package/src/filiale/yangchunboneng/android.js +21 -21
- package/src/filiale/yangchunboneng/pc/CheckBookList.vue +353 -353
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +3 -3
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1197 -1197
- package/src/filiale/yangchunboneng/pc/HiddenSituation.vue +171 -171
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1112 -1112
- package/src/filiale/yangchunboneng/pc/PaperList.vue +757 -757
- package/src/filiale/yangchunboneng/pc/SelectCheckPlan.vue +331 -331
- package/src/filiale/yangchunboneng/pc.js +29 -29
- package/src/main.js +33 -33
- package/src/rongcheng.js +319 -319
- package/src/safecheck-android.js +316 -315
- package/yarn-error.log +0 -140
|
@@ -79,27 +79,26 @@
|
|
|
79
79
|
:width="'60%'"
|
|
80
80
|
v-model="selectPcd"
|
|
81
81
|
:options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single
|
|
82
|
-
@change="pcd_change
|
|
82
|
+
@change="pcd_change"></v-select>
|
|
83
83
|
</div>
|
|
84
84
|
<div class="row auto" style="margin: 5px 0">
|
|
85
85
|
<label class="righttxt">街道名称:</label>
|
|
86
86
|
<!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />-->
|
|
87
|
-
<v-select :value
|
|
87
|
+
<v-select :value="selectStreet" class="input-font" style="margin-left: 5%;"
|
|
88
88
|
:width="'60%'"
|
|
89
89
|
v-model="selectStreet"
|
|
90
90
|
:options='streets' placeholder='请选择街道' close-on-select clear-button value-single
|
|
91
|
-
@change="street_change
|
|
91
|
+
@change="street_change"></v-select>
|
|
92
92
|
</div>
|
|
93
93
|
<div class="row auto" style="margin: 5px 0">
|
|
94
94
|
<label class="righttxt">集收单位:</label>
|
|
95
95
|
<!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />-->
|
|
96
|
-
<v-select :value
|
|
96
|
+
<v-select :value="selectArea" class="input-font" style="margin-left: 5%;"
|
|
97
97
|
:width="'60%'"
|
|
98
98
|
v-model="selectArea"
|
|
99
99
|
:timeout="500"
|
|
100
|
-
@select-search="select_search"
|
|
101
100
|
:options='area' placeholder='请选择集收单位' close-on-select clear-button value-single
|
|
102
|
-
@change="area_change
|
|
101
|
+
@change="area_change"></v-select>
|
|
103
102
|
</div>
|
|
104
103
|
<!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
|
|
105
104
|
<label class="righttxt">集收单位:</label>
|
|
@@ -412,9 +411,12 @@ export default {
|
|
|
412
411
|
headername: '基本信息',
|
|
413
412
|
excessive: false,
|
|
414
413
|
area: [],
|
|
414
|
+
areas:[],
|
|
415
|
+
selectAreaName:'',
|
|
416
|
+
f_slice_area:'',
|
|
415
417
|
enable: false,
|
|
416
418
|
f_meterno_path: Vue.nopic,
|
|
417
|
-
selectArea:
|
|
419
|
+
selectArea: '',
|
|
418
420
|
selectPcd: {id: ''},
|
|
419
421
|
selectStreet: {id: ''},
|
|
420
422
|
changemeterno: false,//是否修改了机表表号
|
|
@@ -488,7 +490,7 @@ export default {
|
|
|
488
490
|
checked = {ischeck: false, msg: '新地址不能为空!'}
|
|
489
491
|
}
|
|
490
492
|
if (this.addressType == '普通地址') {
|
|
491
|
-
if (!this.selectArea
|
|
493
|
+
if (!this.selectArea) {
|
|
492
494
|
checked = {ischeck: false, msg: '请选择集收单位!'}
|
|
493
495
|
}
|
|
494
496
|
if (!this.userinfo.addressinfo.f_room) {
|
|
@@ -547,27 +549,31 @@ export default {
|
|
|
547
549
|
return checked
|
|
548
550
|
},
|
|
549
551
|
select_search(text) {
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
552
|
+
try {
|
|
553
|
+
if (this.selectStreet && this.selectStreet.id) {
|
|
554
|
+
let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
|
|
555
|
+
new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
|
|
556
|
+
data: {
|
|
557
|
+
items: "*",
|
|
558
|
+
tablename: "t_area",
|
|
559
|
+
orderitem: "id",
|
|
560
|
+
condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
|
|
561
|
+
}
|
|
562
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
563
|
+
//tag)
|
|
564
|
+
if (res.data.length > 0) {
|
|
565
|
+
this.area = []
|
|
566
|
+
res.data.forEach((result) => {
|
|
567
|
+
this.area.push({label: result.f_residential_area, value: result})
|
|
568
|
+
})
|
|
569
|
+
}
|
|
570
|
+
})
|
|
571
|
+
} else {
|
|
572
|
+
this.area = []
|
|
573
|
+
}
|
|
574
|
+
}catch (e) {
|
|
570
575
|
this.area = []
|
|
576
|
+
console.log(e)
|
|
571
577
|
}
|
|
572
578
|
},
|
|
573
579
|
cameraCallBack(prop, fileName) {
|
|
@@ -791,7 +797,7 @@ export default {
|
|
|
791
797
|
|
|
792
798
|
}
|
|
793
799
|
}).catch((msg) => {
|
|
794
|
-
this.$showMessage("
|
|
800
|
+
this.$showMessage("修改用户信息失败,返回重新进入该界面尝试!")
|
|
795
801
|
this.excessive = false
|
|
796
802
|
})
|
|
797
803
|
|
|
@@ -817,81 +823,107 @@ export default {
|
|
|
817
823
|
changeNewAddress() {
|
|
818
824
|
this.userinfo.addressinfo.f_address = this.addressType == '普通地址' ? this.getAddress : this.getAddressTS
|
|
819
825
|
},
|
|
820
|
-
area_change() {
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
this.
|
|
826
|
-
this.
|
|
826
|
+
area_change(val) {
|
|
827
|
+
if (!val || val instanceof Event){
|
|
828
|
+
return
|
|
829
|
+
}
|
|
830
|
+
try {
|
|
831
|
+
this.selectArea = val
|
|
832
|
+
if (this.selectArea && this.areas.length> 0) {
|
|
833
|
+
this.areas.forEach((result) => {
|
|
834
|
+
if(result.id == this.selectArea){
|
|
835
|
+
this.selectAreaName = result.f_residential_area
|
|
836
|
+
this.f_slice_area = result.f_slice_area
|
|
837
|
+
}
|
|
838
|
+
})
|
|
839
|
+
this.userinfo.addressinfo.f_residential_area = this.selectAreaName ?this.selectAreaName:this.userinfo.addressinfo.f_residential_area
|
|
840
|
+
this.userinfo.addressinfo.f_residential_area_id = this.selectArea?this.selectArea:this.userinfo.addressinfo.f_residential_area_id
|
|
841
|
+
this.userinfo.addressinfo.f_slice_area = this.f_slice_area?this.f_slice_area:this.userinfo.addressinfo.f_slice_area
|
|
842
|
+
this.changeNewAddress()
|
|
843
|
+
}
|
|
844
|
+
} catch (e) {
|
|
845
|
+
console.log(e)
|
|
827
846
|
}
|
|
828
|
-
//this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
|
|
829
847
|
},
|
|
830
|
-
async street_change() {
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
this.
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
848
|
+
async street_change(val) {
|
|
849
|
+
try {
|
|
850
|
+
this.selectStreet = val
|
|
851
|
+
//tag
|
|
852
|
+
if (this.selectStreet && this.selectStreet.id) {
|
|
853
|
+
//如果街道改变--给街道赋值!
|
|
854
|
+
this.userinfo.addressinfo.f_street = this.selectStreet.f_street
|
|
855
|
+
this.userinfo.addressinfo.f_street_id = this.selectStreet.id
|
|
856
|
+
this.userinfo.addressinfo.f_iscity = this.selectStreet.f_iscity
|
|
857
|
+
//清空当前选中小区的值
|
|
858
|
+
this.userinfo.addressinfo.f_residential_area = ''
|
|
859
|
+
this.userinfo.addressinfo.f_residential_area_id = ''
|
|
860
|
+
this.userinfo.addressinfo.f_slice_area = ''
|
|
861
|
+
this.selectArea = ''
|
|
862
|
+
this.area = []
|
|
863
|
+
this.areas = []
|
|
864
|
+
let pcdText = ` and f_street_id=${this.selectStreet.id}`
|
|
865
|
+
let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=999999`, {
|
|
866
|
+
data: {
|
|
867
|
+
items: "id,f_residential_area,f_slice_area",
|
|
868
|
+
tablename: "t_area",
|
|
869
|
+
orderitem: "id",
|
|
870
|
+
condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
|
|
871
|
+
}
|
|
872
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
873
|
+
////tag)
|
|
874
|
+
this.areas = res.data
|
|
875
|
+
res.data.forEach((result) => {
|
|
876
|
+
this.area.push({label: result.f_residential_area, value: result.id})
|
|
877
|
+
})
|
|
878
|
+
} else {
|
|
879
|
+
this.area = []
|
|
880
|
+
this.areas= []
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
this.changeNewAddress()
|
|
884
|
+
} catch (e) {
|
|
857
885
|
this.area = []
|
|
886
|
+
console.log(e)
|
|
858
887
|
}
|
|
859
|
-
|
|
860
|
-
this.changeNewAddress()
|
|
861
888
|
},
|
|
862
889
|
async pcd_change() {
|
|
863
|
-
|
|
864
|
-
if (this.selectPcd && this.selectPcd.id) {
|
|
890
|
+
try {
|
|
865
891
|
//tag
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
+
if (this.selectPcd && this.selectPcd.id) {
|
|
893
|
+
//tag
|
|
894
|
+
//如果省市区改变-重新赋值
|
|
895
|
+
this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
|
|
896
|
+
this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
|
|
897
|
+
//清空 选中的街道和集收单位
|
|
898
|
+
this.selectStreet = {id: ''}
|
|
899
|
+
this.userinfo.addressinfo.f_street = ''
|
|
900
|
+
this.userinfo.addressinfo.f_street_id = ''
|
|
901
|
+
this.userinfo.addressinfo.f_iscity = ''
|
|
902
|
+
this.selectArea = ''
|
|
903
|
+
this.userinfo.addressinfo.f_residential_area = ''
|
|
904
|
+
this.userinfo.addressinfo.f_residential_area_id = ''
|
|
905
|
+
this.userinfo.addressinfo.f_slice_area = ''
|
|
906
|
+
this.streets = []
|
|
907
|
+
let pcdText = `and f_pcd_id=${this.selectPcd.id}`
|
|
908
|
+
let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
|
|
909
|
+
data: {
|
|
910
|
+
items: "*",
|
|
911
|
+
tablename: "t_street",
|
|
912
|
+
orderitem: "id",
|
|
913
|
+
condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
|
|
914
|
+
}
|
|
915
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
916
|
+
streetlist.data.forEach((result) => {
|
|
917
|
+
this.streets.push({label: result.f_street, value: result})
|
|
918
|
+
})
|
|
919
|
+
} else {
|
|
920
|
+
this.streets = []
|
|
921
|
+
}
|
|
922
|
+
this.changeNewAddress()
|
|
923
|
+
} catch (e) {
|
|
892
924
|
this.streets = []
|
|
925
|
+
console.log(e)
|
|
893
926
|
}
|
|
894
|
-
this.changeNewAddress()
|
|
895
927
|
},
|
|
896
928
|
upUserState() {
|
|
897
929
|
//tag)
|
|
@@ -965,57 +997,65 @@ export default {
|
|
|
965
997
|
})
|
|
966
998
|
},
|
|
967
999
|
async getAreaList(text) {
|
|
968
|
-
|
|
969
|
-
this.
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
|
|
1000
|
+
try {
|
|
1001
|
+
if (this.selectStreet.id) {
|
|
1002
|
+
this.area = []
|
|
1003
|
+
let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
|
|
1004
|
+
let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=999999`, {
|
|
1005
|
+
data: {
|
|
1006
|
+
items: "id,f_residential_area,f_slice_area",
|
|
1007
|
+
tablename: "t_area",
|
|
1008
|
+
orderitem: "id",
|
|
1009
|
+
condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
|
|
1010
|
+
}
|
|
1011
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
1012
|
+
////tag)
|
|
1013
|
+
res.data.forEach((result) => {
|
|
1014
|
+
this.area.push({label: result.f_residential_area, value: result.id})
|
|
1015
|
+
})
|
|
1016
|
+
this.areas = res.data
|
|
1017
|
+
//tag
|
|
1018
|
+
this.area.push({
|
|
1019
|
+
label: this.userinfo.addressinfo.f_residential_area,
|
|
1020
|
+
value: this.userinfo.addressinfo.f_residential_area_id
|
|
1021
|
+
})
|
|
1022
|
+
} else {
|
|
1023
|
+
this.area = []
|
|
1024
|
+
}
|
|
1025
|
+
} catch (e) {
|
|
992
1026
|
this.area = []
|
|
1027
|
+
console.log(e)
|
|
993
1028
|
}
|
|
994
1029
|
|
|
995
1030
|
},
|
|
996
1031
|
async getStreetList() {
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1032
|
+
try {
|
|
1033
|
+
if (this.selectPcd.id) {
|
|
1034
|
+
//tag
|
|
1035
|
+
this.streets = []
|
|
1036
|
+
let pcdText = `and f_pcd_id=${this.selectPcd.id}`
|
|
1037
|
+
let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
|
|
1038
|
+
data: {
|
|
1039
|
+
items: "*",
|
|
1040
|
+
tablename: "t_street",
|
|
1041
|
+
orderitem: "id",
|
|
1042
|
+
condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
|
|
1043
|
+
}
|
|
1044
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
1045
|
+
streetlist.data.forEach((result) => {
|
|
1046
|
+
//如果第一次进来有地址id 就拿下地址区域
|
|
1047
|
+
if (this.selectStreet.id && this.selectStreet.id == result.id) {
|
|
1048
|
+
//tag)
|
|
1049
|
+
this.userinfo.addressinfo.f_iscity = result.f_iscity
|
|
1050
|
+
}
|
|
1051
|
+
this.streets.push({label: result.f_street, value: result})
|
|
1052
|
+
})
|
|
1053
|
+
} else {
|
|
1054
|
+
this.streets = []
|
|
1055
|
+
}
|
|
1056
|
+
}catch (e) {
|
|
1018
1057
|
this.streets = []
|
|
1058
|
+
console.log(e)
|
|
1019
1059
|
}
|
|
1020
1060
|
},
|
|
1021
1061
|
changeAddressType(val) {
|
|
@@ -1035,8 +1075,7 @@ export default {
|
|
|
1035
1075
|
},
|
|
1036
1076
|
computed: {
|
|
1037
1077
|
getAddress() {
|
|
1038
|
-
return (this.userinfo.addressinfo.
|
|
1039
|
-
(this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
|
|
1078
|
+
return (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
|
|
1040
1079
|
(this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '') +
|
|
1041
1080
|
(this.userinfo.addressinfo.f_building ? this.userinfo.addressinfo.f_building + (this.userinfo.addressinfo.f_building_suffix ? this.userinfo.addressinfo.f_building_suffix : '') : '') +
|
|
1042
1081
|
(this.userinfo.addressinfo.f_unit ? this.userinfo.addressinfo.f_unit + (this.userinfo.addressinfo.f_unit_suffix ? this.userinfo.addressinfo.f_unit_suffix : '') : '') +
|
|
@@ -1044,8 +1083,7 @@ export default {
|
|
|
1044
1083
|
(this.userinfo.addressinfo.f_room ? this.userinfo.addressinfo.f_room + (this.userinfo.addressinfo.f_room_suffix ? this.userinfo.addressinfo.f_room_suffix : '') : '')
|
|
1045
1084
|
},
|
|
1046
1085
|
getAddressTS() {
|
|
1047
|
-
return (this.userinfo.addressinfo.
|
|
1048
|
-
(this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
|
|
1086
|
+
return (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
|
|
1049
1087
|
(this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '')
|
|
1050
1088
|
}
|
|
1051
1089
|
},
|
|
@@ -1119,11 +1157,11 @@ export default {
|
|
|
1119
1157
|
this.userinfo = res.data
|
|
1120
1158
|
this.userinfo_old = JSON.parse(JSON.stringify(res.data))
|
|
1121
1159
|
this.model = this.userinfo.meterinfo[0].devicesinfo
|
|
1122
|
-
this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
|
|
1123
1160
|
this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
|
|
1124
1161
|
this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
|
|
1125
1162
|
this.selectStreet.id = this.userinfo.addressinfo.f_street_id
|
|
1126
1163
|
this.selectStreet.f_street = this.userinfo.addressinfo.f_street
|
|
1164
|
+
this.selectArea = this.userinfo.addressinfo.f_residential_area_id
|
|
1127
1165
|
await this.getStreetList()
|
|
1128
1166
|
await this.getAreaList()
|
|
1129
1167
|
this.excessive = false
|
|
@@ -7,7 +7,8 @@ let specialComp = {
|
|
|
7
7
|
'current-create': (resolve) => { require(['./android/CurrentCreate.vue'], resolve) },
|
|
8
8
|
'check-plan-down': (resolve) => { require(['./android/CheckPlanDown.vue'], resolve) },
|
|
9
9
|
'safe-history-look': (resolve) => { require(['./android/safeHistoryLook'], resolve) },
|
|
10
|
-
'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV.vue'], resolve) }
|
|
10
|
+
'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV.vue'], resolve) },
|
|
11
|
+
'add-plan-item': (resolve) => { require(['./android/AddPlanItem.vue'], resolve) }
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
exports.specialComp = specialComp
|