safecheck-client 3.1.1-gaomi-5 → 4.0.1
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/build/dev-server.js +70 -41
- package/build/example-server.js +4 -4
- package/build/webpack.base.conf.js +3 -1
- package/docs/FormPrint.md +1 -1
- package/docs/GridTree.md +4 -4
- package/docs/PrintFile.md +2 -2
- package/docs/tree.md +2 -2
- package/examples/ChangeConfig/comp.js +1 -1
- package/examples/PhoneSafePlan/comp.js +1 -1
- package/examples/SafePlan/App.vue +28 -58
- package/examples/SafePlan/comp.js +135 -334
- package/examples/SafePlan/index.html +0 -1
- package/examples/SafePlan-aode/App.vue +68 -17
- package/examples/SafePlan-aode/comp.js +496 -87
- package/examples/SafePlan-aode/index.html +1 -0
- package/examples/SafePlan-aode-ts/App.vue +90 -0
- package/examples/{SafePlan-liaoyuan → SafePlan-aode-ts}/comp.js +633 -501
- package/examples/{SafePlan-liaoyuan → SafePlan-aode-ts}/index.html +2 -2
- package/examples/SafePlan-aodezx/App.vue +89 -0
- package/examples/SafePlan-aodezx/comp.js +1538 -0
- package/examples/{SafePlan-shaoguan → SafePlan-aodezx}/index.html +2 -2
- package/examples/SafePlan-aodezx-ts/App.vue +89 -0
- package/examples/SafePlan-aodezx-ts/comp.js +1532 -0
- package/examples/{SafePlanrongcheng → SafePlan-aodezx-ts}/index.html +2 -2
- package/examples/SafePlanItem/comp.js +2 -2
- package/examples/UserFiles/comp.js +4 -4
- package/package.json +9 -11
- package/src/AndroidApp.vue +10 -8
- package/src/App.vue +10 -3
- package/src/android.js +8 -2
- package/src/assets/Excelformat.png +0 -0
- package/src/assets/addnew.png +0 -0
- package/src/assets/addpic.png +0 -0
- package/src/assets/banner.jpg +0 -0
- package/src/assets/baochi.png +0 -0
- package/src/assets/baoxiuxinxi.png +0 -0
- package/src/assets/bg_mobile_foot.png +0 -0
- package/src/assets/bg_mobile_head.png +0 -0
- package/src/assets/caozuo.png +0 -0
- package/src/assets/chongxinpaifa.png +0 -0
- package/src/assets/cqzm.png +0 -0
- package/src/assets/cqzm1.png +0 -0
- package/src/assets/daibangongdan.png +0 -0
- package/src/assets/dancheng.png +0 -0
- package/src/assets/doc.jpg +0 -0
- package/src/assets/doubledown.png +0 -0
- package/src/assets/edit.png +0 -0
- package/src/assets/excel.jpg +0 -0
- package/src/assets/feiyong.png +0 -0
- package/src/assets/gongdantixing.png +0 -0
- package/src/assets/guaduan.png +0 -0
- package/src/assets/guanbishengyin.png +0 -0
- package/src/assets/guandao.png +0 -0
- package/src/assets/guzhanghuizong.png +0 -0
- package/src/assets/heart.png +0 -0
- package/src/assets/horse.mp3 +0 -0
- package/src/assets/huchu.png +0 -0
- package/src/assets/huifang.png +0 -0
- package/src/assets/huiyi.png +0 -0
- package/src/assets/huneiweixiu.png +0 -0
- package/src/assets/jianting.png +0 -0
- package/src/assets/jinbenxinxi.png +0 -0
- package/src/assets/jingyin.png +0 -0
- package/src/assets/juxing.png +0 -0
- package/src/assets/kaixiaochai.jpg +0 -0
- package/src/assets/lingsheng.mp3 +0 -0
- package/src/assets/list.png +0 -0
- package/src/assets/logo.png +0 -0
- package/src/assets/luyi.png +0 -0
- package/src/assets/movie.ogg +0 -0
- package/src/assets/mp3.png +0 -0
- package/src/assets/nopic.png +0 -0
- package/src/assets/novoice.png +0 -0
- package/src/assets/pdf.jpg +0 -0
- package/src/assets/person.png +0 -0
- package/src/assets/play.png +0 -0
- package/src/assets/psicon.png +0 -0
- package/src/assets/qrcode_no.png +0 -0
- package/src/assets/qrcode_no1.png +0 -0
- package/src/assets/quxiaobaochi.png +0 -0
- package/src/assets/quxiaojingyin.png +0 -0
- package/src/assets/scanCode.png +0 -0
- package/src/assets/search.png +0 -0
- package/src/assets/searchhover.png +0 -0
- package/src/assets/serachactive.png +0 -0
- package/src/assets/shangchuan.png +0 -0
- package/src/assets/shebeiweixiu.png +0 -0
- package/src/assets/shengyin1.png +0 -0
- package/src/assets/shengyin2.png +0 -0
- package/src/assets/shengyin3.png +0 -0
- package/src/assets/shipin1.mp4 +0 -0
- package/src/assets/shipinst1.jpg +0 -0
- package/src/assets/success.png +0 -0
- package/src/assets/telphonesend.png +0 -0
- package/src/assets/titleicon01.png +0 -0
- package/src/assets/usericon.png +0 -0
- package/src/assets/video.png +0 -0
- package/src/assets/waibo.png +0 -0
- package/src/assets/x.png +0 -0
- package/src/assets/xiangcheng.png +0 -0
- package/src/assets/xiaoxitixing.png +0 -0
- package/src/assets/xihua.png +0 -0
- package/src/assets/yinpin.mp3 +0 -0
- package/src/assets/zhimang.png +0 -0
- package/src/assets/zhixian.png +0 -0
- package/src/assets/zhoukou.png +0 -0
- package/src/assets/zhuan.png +0 -0
- package/src/assets/zhuanjie.png +0 -0
- package/src/assets/zhuanyi.png +0 -0
- package/src/assets//344/270/212/344/274/240.png +0 -0
- package/src/assets//344/270/213/347/256/255/345/244/264.png +0 -0
- package/src/assets//344/270/252/344/272/272/344/272/214/347/273/264/347/240/201.png +0 -0
- package/src/assets//344/273/273/345/212/241-hover.png +0 -0
- package/src/assets//344/273/273/345/212/241.png +0 -0
- package/src/assets//344/273/273/345/212/241/344/270/212/344/274/240-hover.png +0 -0
- package/src/assets//344/273/273/345/212/241/344/270/212/344/274/240.png +0 -0
- package/src/assets//344/277/235/345/255/230.png +0 -0
- package/src/assets//344/277/235/351/231/251/346/234/215/345/212/241.png +0 -0
- package/src/assets//345/205/266/344/273/226/345/212/237/350/203/275-hover.png +0 -0
- package/src/assets//345/205/266/344/273/226/345/212/237/350/203/275.png +0 -0
- package/src/assets//345/205/266/344/273/226/346/224/266/350/264/271.png +0 -0
- package/src/assets//345/205/266/344/273/226/346/224/266/350/264/2711.png +0 -0
- package/src/assets//345/215/225/345/205/203.png +0 -0
- package/src/assets//345/215/225/351/200/211/350/242/253/351/200/211@3x.png +0 -0
- package/src/assets//345/215/225/351/200/211/351/273/230/350/256/244@3x.png +0 -0
- package/src/assets//345/215/241/345/217/267 (1).png +0 -0
- package/src/assets//345/215/241/345/217/267.png +0 -0
- package/src/assets//345/216/206/345/217/262/346/237/245/350/257/242-hover.png +0 -0
- package/src/assets//345/216/206/345/217/262/346/237/245/350/257/242.png +0 -0
- package/src/assets//345/216/213/345/212/233.png +0 -0
- package/src/assets//345/217/226/346/266/210.png +0 -0
- package/src/assets//345/217/263/351/224/256/345/244/264.png +0 -0
- package/src/assets//345/220/216/351/200/200.png +0 -0
- package/src/assets//345/222/250/350/257/242/345/215/225.png +0 -0
- package/src/assets//345/224/256/346/260/2241.png +0 -0
- package/src/assets//345/233/236/346/224/266/347/253/231.png +0 -0
- package/src/assets//345/234/206/350/247/222/347/237/251/345/275/242-7.png +0 -0
- package/src/assets//345/244/251/347/204/266/346/260/224.png +0 -0
- package/src/assets//345/260/217/345/214/272.png +0 -0
- package/src/assets//345/260/217/345/214/272/350/223/235/350/211/262.png +0 -0
- package/src/assets//345/267/245/345/215/225/344/270/212/344/274/240.png +0 -0
- package/src/assets//345/267/245/345/215/225/347/273/237/350/256/241.png +0 -0
- package/src/assets//345/267/256/345/200/274.png +0 -0
- package/src/assets//345/267/262/345/212/236/345/267/245/345/215/225.png +0 -0
- package/src/assets//345/267/262/345/217/226/346/266/210/345/267/245/345/215/225.png +0 -0
- package/src/assets//345/267/262/345/256/214/346/210/220/345/267/245/345/215/225.png +0 -0
- package/src/assets//345/267/262/345/256/214/347/273/223/345/267/245/345/215/225.png +0 -0
- package/src/assets//345/267/262/351/200/276/346/234/237/345/267/245/345/215/225.png +0 -0
- package/src/assets//345/274/200/345/247/213/346/227/266/351/227/264.png +0 -0
- package/src/assets//345/275/242/347/212/266-2.png +0 -0
- package/src/assets//345/275/242/347/212/266-4.png +0 -0
- package/src/assets//345/275/242/347/212/266-6.png +0 -0
- package/src/assets//345/276/205/345/212/236/345/267/245/345/215/225.png +0 -0
- package/src/assets//346/210/221-hover.png +0 -0
- package/src/assets//346/210/221.png +0 -0
- package/src/assets//346/211/213/346/234/272/346/212/204/350/241/250/347/263/273/347/273/237.png +0 -0
- package/src/assets//346/211/253/344/270/200/346/211/253.png +0 -0
- package/src/assets//346/211/253/347/240/2012.png +0 -0
- package/src/assets//346/212/204/350/241/250/344/273/273/345/212/241-hover.png +0 -0
- package/src/assets//346/212/204/350/241/250/344/273/273/345/212/241.png +0 -0
- package/src/assets//346/212/225/350/257/211/345/215/225.png +0 -0
- package/src/assets//346/213/215/347/205/247/347/255/276/345/220/215.png +0 -0
- package/src/assets//346/215/242/350/241/250.png +0 -0
- package/src/assets//346/215/242/350/241/2501.png +0 -0
- package/src/assets//346/224/266/350/264/271.png +0 -0
- package/src/assets//346/225/260/346/215/256.png +0 -0
- package/src/assets//346/237/245/350/257/242.png +0 -0
- package/src/assets//346/240/207/351/242/230.png +0 -0
- package/src/assets//346/243/200/346/237/245/345/215/225.png +0 -0
- package/src/assets//346/245/274/345/261/202.png +0 -0
- package/src/assets//346/266/210/346/201/257-hover.png +0 -0
- package/src/assets//346/266/210/346/201/257.png +0 -0
- package/src/assets//346/270/251/345/272/246.png +0 -0
- package/src/assets//347/205/247/347/211/207.png +0 -0
- package/src/assets//347/207/203/346/260/224/345/231/250/345/205/267/344/277/241/346/201/257.png +0 -0
- package/src/assets//347/207/203/346/260/224/350/241/250.png +0 -0
- package/src/assets//347/224/250/346/210/267ID.png +0 -0
- package/src/assets//347/224/250/346/210/267/345/247/223/345/220/215-/350/223/235/350/211/262.png +0 -0
- package/src/assets//347/224/250/346/210/267/345/247/223/345/220/215.png +0 -0
- package/src/assets//347/224/250/346/210/267/346/237/245/350/257/242-hover.png +0 -0
- package/src/assets//347/224/250/346/210/267/346/237/245/350/257/242.png +0 -0
- package/src/assets//347/224/250/346/210/267/347/261/273/345/236/213.png +0 -0
- package/src/assets//347/224/250/346/210/267/347/274/226/345/217/267.png +0 -0
- package/src/assets//347/236/254/346/227/266.png +0 -0
- package/src/assets//347/264/257/350/256/241.png +0 -0
- package/src/assets//347/264/257/350/256/241/345/215/225/346/225/260.png +0 -0
- package/src/assets//347/273/2045.png +0 -0
- package/src/assets//347/273/223/346/235/237/346/227/266/351/227/264.png +0 -0
- package/src/assets//347/273/264/344/277/256/345/215/225.png +0 -0
- package/src/assets//347/274/226/350/276/221.png +0 -0
- package/src/assets//347/274/264/350/264/271/350/257/246/346/203/205.png +0 -0
- package/src/assets//350/241/245/345/215/241 1.png +0 -0
- package/src/assets//350/241/245/345/215/241.png +0 -0
- package/src/assets//350/241/245/345/215/2411.png +0 -0
- package/src/assets//350/241/250/345/217/267.png +0 -0
- package/src/assets//350/241/250/345/220/215.png +0 -0
- package/src/assets//350/241/250/347/261/273/345/236/213.png +0 -0
- package/src/assets//350/241/250/347/261/273/345/236/213icon.png +0 -0
- package/src/assets//350/256/242/345/215/225/347/212/266/346/200/201.png +0 -0
- package/src/assets//350/256/276/347/275/256-hover.png +0 -0
- package/src/assets//350/256/276/347/275/256.png +0 -0
- package/src/assets//350/257/273/345/215/241.png +0 -0
- package/src/assets//350/257/273/345/215/2411.png +0 -0
- package/src/assets//350/264/255/346/260/224/347/274/264/350/264/271.png +0 -0
- package/src/assets//350/277/233/350/241/214/344/270/255/345/267/245/345/215/225.png +0 -0
- package/src/assets//351/200/232/350/256/257/345/275/225-hover.png +0 -0
- package/src/assets//351/200/232/350/256/257/345/275/225.png +0 -0
- package/src/assets//351/227/250/347/211/214.png +0 -0
- package/src/assets//351/231/204/345/261/236/350/256/276/345/244/207/344/277/241/346/201/257.png +0 -0
- package/src/bootstrap/fonts/PINGFANG LIGHT.TTF +0 -0
- package/src/bootstrap/fonts/PingFangSC-Regular.ttf +0 -0
- package/src/bootstrap/fonts/pingfang-bold.ttf +0 -0
- package/src/bootstrap/fonts/pingfang-medium.ttf +0 -0
- package/src/bootstrap/fonts/pingfang-regular.ttf +0 -0
- package/src/bootstrap/fonts/trendstrends.ttf +0 -0
- package/src/bootstrap/less/bootstrap.less +3 -2
- package/src/bootstrap/less/fonts-list.less +25 -0
- package/src/bootstrap/less/glyphicons.less +2 -2
- package/src/bootstrap/less/stand.less +2 -2
- package/src/bootstrap/less/variables.less +2 -2
- package/src/components/Test.vue +49 -551
- package/src/components/Util/ImageViewer.vue +369 -0
- package/src/components/Util/ImgSelfSafe.vue +744 -81
- package/src/components/Util.js +86 -0
- package/src/components/android/AddGas.vue +2 -2
- package/src/components/android/AddPlanItem.vue +105 -224
- package/src/components/android/AdviseCommit.vue +1 -1
- package/src/components/android/AndroidCheckResult.vue +1 -1
- package/src/components/android/Announcement.vue +43 -42
- package/src/components/android/AreaPlan.vue +20 -34
- package/src/components/android/CheckMeterAlreadyReading.vue +475 -0
- package/src/components/android/CheckMeterReading.vue +657 -0
- package/src/components/android/CheckMeterReadingNoncivil.vue +1097 -0
- package/src/components/android/CheckNotice.vue +1 -1
- package/src/components/android/CheckPlan.vue +2 -2
- package/src/components/android/CheckPlanDown.vue +83 -34
- package/src/components/android/CheckPlanItems.vue +2 -2
- package/src/components/android/CheckerMonthly.vue +1 -1
- package/src/components/android/CurrentCreate.vue +1194 -985
- package/src/{filiale/wuan/android/CurrentCreate.vue → components/android/DailyworkloadQuery.vue} +172 -380
- package/src/components/android/Devices.vue +1 -2
- package/src/components/android/DevicesItemm.vue +28 -13
- package/src/components/android/Devicesm.vue +29 -8
- package/src/components/android/DoorService.vue +3 -3
- package/src/components/android/ExtractCheckPlan.vue +1 -1
- package/src/components/android/ExtractPlanItem.vue +61 -99
- package/src/components/android/InsureManagement.vue +258 -0
- package/src/components/android/LcheckUnplan.vue +1 -1
- package/src/components/android/Login.vue +1 -1
- package/src/components/android/PaperFeedback.vue +470 -566
- package/src/components/android/PaperFeedbackm.vue +5 -16
- package/src/components/android/PaperMessage.vue +62 -60
- package/src/components/android/PaperMessageNocivil.vue +79 -61
- package/src/components/android/PaperMeter.vue +1 -1
- package/src/components/android/PaperMeterNoncivil.vue +1 -1
- package/src/components/android/PaperSet.vue +5 -5
- package/src/components/android/PaperSetNoncivil.vue +4 -4
- package/src/components/android/PaperUser.vue +1 -1
- package/src/components/android/PaperUserNoncivil.vue +1 -1
- package/src/components/android/PhoneChangemeterInfo.vue +1 -1
- package/src/components/android/PhoneSellInfo.vue +1 -1
- package/src/components/android/PhoneState.vue +2 -2
- package/src/components/android/PhoneUserFind.vue +1 -1
- package/src/components/android/PlanChooserAndroid.vue +133 -0
- package/src/components/android/PrearrangedPlan.vue +1 -1
- package/src/components/android/QueryCheckHandplanAlreadyList.vue +408 -0
- package/src/components/android/QueryCheckHandplanList.vue +426 -0
- package/src/components/android/RepairList.vue +4 -4
- package/src/components/android/RepairQuery.vue +1 -1
- package/src/components/android/ResAreaList.vue +1 -1
- package/src/components/android/SafecheckDevices.vue +386 -80
- package/src/components/android/SafecheckOrderV.vue +1530 -412
- package/src/components/android/SafecheckState.vue +1 -1
- package/src/components/android/SafecheckUser.vue +1 -1
- package/src/components/android/SelectTask.vue +244 -0
- package/src/components/android/SystemSetting.vue +1 -1
- package/src/components/android/TableAnomalyRecords.vue +122 -0
- package/src/components/android/UploadImgList.vue +249 -0
- package/src/components/android/UploadPage.vue +44 -12
- package/src/components/android/changePlanId.vue +504 -0
- package/src/components/android/checkPlanResult.vue +2 -2
- package/src/components/android/old/PaperFeedback.vue +4 -4
- package/src/components/android/userinfo/PhoneUpUserinfo.vue +1120 -0
- package/src/components/android/userinfo/SafecheckUserInfo.vue +246 -241
- package/src/components/android/wasm/comp.js +1 -1
- package/src/components/attendance/DailyAttendance.vue +1 -1
- package/src/components/attendance/MonthlyAttendance.vue +4 -4
- package/src/components/callincheck/CallInCheckMain.vue +1 -1
- package/src/components/callincheck/CallInPlan.vue +1 -1
- package/src/components/callincheck/UserFileList.vue +1 -1
- package/src/components/checkerphonestate/Checker.vue +1 -1
- package/src/components/checkerphonestate/CheckerState.vue +1 -1
- package/src/components/checkplan/CheckDetail.vue +4 -21
- package/src/components/checkplan/CheckPlan.vue +12 -13
- package/src/components/checkplan/SelectCheckPlan.vue +200 -182
- package/src/components/checkplan/SelectMessage.vue +1 -1
- package/src/components/checkplan/checkmsg.vue +163 -354
- package/src/components/cockpit/Splash.vue +1 -1
- package/src/components/cockpit/SplashDetail.vue +1 -1
- package/src/components/createcheckplan/CreatePlan.vue +11 -11
- package/src/components/createcheckplan/DelPlanRepeat.vue +5 -5
- package/src/components/createcheckplan/PlanList.vue +6 -6
- package/src/components/createcheckplan/PlanUersList.vue +4 -4
- package/src/components/defect/DefectDetail.vue +3 -3
- package/src/components/defect/DefectList.vue +92 -39
- package/src/components/defect/DefectMain.vue +10 -20
- package/src/components/defect/DefectPaper.vue +499 -403
- package/src/components/defect/ImgButton.vue +7 -3
- package/src/components/defects/AddDefectModal.vue +2 -2
- package/src/components/defects/AddDevice.vue +1 -1
- package/src/components/defects/CheckPaperItem.vue +4 -4
- package/src/components/defects/CheckPaperItems.vue +1 -1
- package/src/components/defects/CheckPaperSearch.vue +3 -74
- package/src/components/defects/DefectSeting.vue +2 -2
- package/src/components/defects/DefectsQuery.vue +1 -1
- package/src/components/defects/DevicesSeting.vue +1 -1
- package/src/components/discrepancy/differenceMain.vue +47 -0
- package/src/components/discrepancy/differencePaper.vue +554 -0
- package/src/components/equipment/BoilerUsage.vue +1 -1
- package/src/components/equipment/CheckRate.vue +7 -7
- package/src/components/equipment/CheckerRate.vue +6 -6
- package/src/components/equipment/CookerUsage.vue +1 -1
- package/src/components/equipment/DeviceUsage.vue +1 -1
- package/src/components/equipment/FurnaceUsage.vue +1 -1
- package/src/components/equipment/GasMeterUsage.vue +1 -1
- package/src/components/equipment/HeaterUsage.vue +1 -1
- package/src/components/equipment/MonthCheckRate.vue +6 -6
- package/src/components/gasusage/GasUsage.vue +1 -1
- package/src/components/issueplan/IssuePlanAction.vue +2 -2
- package/src/components/issueplan/IssuePlanQuery.vue +1 -1
- package/src/components/levelplan/AdjustPlan.vue +3 -3
- package/src/components/levelplan/CheckerLeft.vue +2 -2
- package/src/components/levelplan/CheckerPlanAdjust.vue +94 -42
- package/src/components/levelplan/CheckerRight.vue +2 -2
- package/src/components/map/FootPrintList.vue +2 -2
- package/src/components/map/PersonTrack.vue +224 -0
- package/src/components/map/douglasPeuckerForAMap.js +88 -0
- package/src/components/metterfiles/AddUserfiles.vue +1 -1
- package/src/components/metterfiles/MetterFiles.vue +3 -3
- package/src/components/metterfiles/MetterfilesChange.vue +1 -1
- package/src/components/metterfiles/UserFiles.vue +2 -2
- package/src/components/metterfiles/Userfileschange.vue +3 -3
- package/src/components/newfile/NewfileList.vue +114 -0
- package/src/components/newfile/NewfileList1.vue +84 -0
- package/src/components/newfile/NewfileList2.vue +112 -0
- package/src/components/newfile/NewfileList3.vue +111 -0
- package/src/components/newfile/NewfileList4.vue +118 -0
- package/src/components/newfile/NewfileList5.vue +89 -0
- package/src/components/newfile/NewfileMain.vue +89 -0
- package/src/components/newfile/NewfilePaper.vue +160 -0
- package/src/components/newuser/MonthlyMeterReadingStatistics.vue +742 -0
- package/src/components/newuser/SearchCompanyCompletion.vue +212 -0
- package/src/components/newuser/SearchCompanyComprehensiveCompletionPJ.vue +251 -0
- package/src/components/newuser/SearchCompanyComprehensiveCompletionZX.vue +233 -0
- package/src/components/newuser/SearchComprehensivePlanSummary.vue +233 -0
- package/src/components/newuser/SearchGas.vue +576 -0
- package/src/components/newuser/SearchGasWlw.vue +291 -0
- package/src/components/newuser/SearchLargeAreaCompletion.vue +338 -0
- package/src/components/newuser/UserCheckState.vue +60 -0
- package/src/components/newuser/WorkCount.vue +58 -0
- package/src/components/newuser/common/TabButton.vue +152 -0
- package/src/components/newuser/common/Tabs.vue +67 -0
- package/src/components/niandu/CheckPaperListND.vue +129 -0
- package/src/components/{rongcheng/CheckPaperSearchUserNo.vue → niandu/CheckPaperSearchUserND.vue} +14 -6
- package/src/components/niandu/CheckSearchUserND.vue +739 -0
- package/src/components/notice/NoticeQuery.vue +1 -1
- package/src/components/outsideSafecheck/android/androidCheckPlanDown/CheckPlanDownTS.vue +253 -0
- package/src/components/{rongcheng/AspiratedAreaPlan.vue → outsideSafecheck/android/safecheckAlreadyDoneWork/AreaPlanTS.vue} +50 -44
- package/src/components/outsideSafecheck/android/safecheckUpload/UploadPageTS.vue +317 -0
- package/src/components/outsideSafecheck/android/safecheckWaitWork/CurrentCreateTS.vue +1166 -0
- package/src/components/{rongcheng/AspPaperFeedback.vue → outsideSafecheck/android/safecheckWaitWork/PaperFeedbackTS.vue} +233 -125
- package/src/components/{rongcheng/SafecheckDevices.vue → outsideSafecheck/android/safecheckWaitWork/SafecheckDevicesTS.vue} +368 -177
- package/src/{filiale/wenxi/android/SafecheckOrderV.vue → components/outsideSafecheck/android/safecheckWaitWork/SafecheckOrderVTS.vue} +814 -268
- package/src/components/{rongcheng/SafecheckUserInfo.vue → outsideSafecheck/android/safecheckWaitWork/SafecheckUserInfoTS.vue} +126 -65
- package/src/components/outsideSafecheck/pc/HiddenDangerView/DefectDetailTS.vue +177 -0
- package/src/components/{shaoguan/DefectList.vue → outsideSafecheck/pc/HiddenDangerView/DefectListTS.vue} +146 -94
- package/src/components/outsideSafecheck/pc/HiddenDangerView/DefectMainTS.vue +53 -0
- package/src/components/outsideSafecheck/pc/HiddenDangerView/DefectPaperTS.vue +607 -0
- package/src/components/outsideSafecheck/pc/HiddenDangerView/PlanChooserTS.vue +137 -0
- package/src/components/outsideSafecheck/pc/aggregateQuery/CheckPlanAreaListTS.vue +404 -0
- package/src/components/{CheckerCount/CheckCountAreaManage.vue → outsideSafecheck/pc/aggregateQuery/CheckPlanAreaManageTS.vue} +3 -6
- package/src/components/{shaoguan/CheckPlanUserList.vue → outsideSafecheck/pc/aggregateQuery/CheckPlanUserListTS.vue} +44 -16
- package/src/components/outsideSafecheck/pc/planadjustment/CheckerPlanAdjustTS.vue +354 -0
- package/src/components/outsideSafecheck/pc/planadjustment/SafecheckVisitInfoTS.vue +219 -0
- package/src/components/outsideSafecheck/pc/report/HiddenSituationTS.vue +135 -0
- package/src/components/outsideSafecheck/pc/report/SearchCompanyCompletionTS.vue +212 -0
- package/src/components/outsideSafecheck/pc/report/SearchCompanyComprehensiveCompletionPJTS.vue +251 -0
- package/src/components/outsideSafecheck/pc/report/SearchCompanyComprehensiveCompletionZXTS.vue +233 -0
- package/src/components/outsideSafecheck/pc/report/SearchComprehensivePlanSummaryTS.vue +223 -0
- package/src/components/outsideSafecheck/pc/report/SearchGasTS.vue +575 -0
- package/src/components/outsideSafecheck/pc/report/SearchLargeAreaCompletionTS.vue +338 -0
- package/src/components/outsideSafecheck/pc/safecheckAssess/CheckDetailTS.vue +74 -0
- package/src/components/outsideSafecheck/pc/safecheckAssess/CheckPlanTS.vue +58 -0
- package/src/components/outsideSafecheck/pc/safecheckAssess/SelectCheckPlanTS.vue +242 -0
- package/src/components/outsideSafecheck/pc/safecheckResultView/NewCheckpaperTS.vue +1256 -0
- package/src/components/outsideSafecheck/pc/safecheckResultView/PaperListTS.vue +553 -0
- package/src/components/outsideSafecheck/pc/userSafecheckSituation/CheckPaperListTS.vue +129 -0
- package/src/components/outsideSafecheck/pc/userSafecheckSituation/CheckPaperSearchUserTS.vue +63 -0
- package/src/components/outsideSafecheck/pc/userSafecheckSituation/CheckSearchUserTS.vue +805 -0
- package/src/components/paper/PaperList.vue +468 -504
- package/src/components/paper/PaperVerify.vue +1 -1
- package/src/components/paper/PlanChooser.vue +13 -7
- package/src/components/paper/RepairVerify.vue +1 -1
- package/src/components/paper/RepairVerifyForm.vue +1 -1
- package/src/components/paper/VerifyForm.vue +3 -3
- package/src/components/pc/AnnouncementPC.vue +51 -22
- package/src/components/pc/CheckHandPlanAllList.vue +1246 -0
- package/src/components/pc/CheckHandPlanAreaItemInfo.vue +177 -0
- package/src/components/pc/CheckHandPlanAreaList.vue +296 -0
- package/src/components/pc/CheckHandPlanAreaMain.vue +57 -0
- package/src/components/pc/DeviceChange.vue +140 -122
- package/src/components/pc/NewCheckpaper.vue +704 -569
- package/src/components/pc/PlanListStatistics.vue +321 -0
- package/src/components/pc/SafeFinInfo.vue +30 -0
- package/src/components/pc/SafeTreatment/SafeTreatmentList.vue +150 -0
- package/src/components/pc/SafeTreatment/SafeTreatmentMain.vue +53 -0
- package/src/components/pc/SafeTreatment/SafeTreatmentPaper.vue +136 -0
- package/src/components/pc/SafecheckResponseTimeList.vue +396 -0
- package/src/components/pc/SafecheckVisitHistory.vue +142 -0
- package/src/components/pc/SafecheckVisitInfo.vue +299 -0
- package/src/components/pc/SearchOverdueNoSafeCheck.vue +280 -0
- package/src/components/phonestate/DailyTraffic.vue +1 -1
- package/src/components/phonestate/FootprintMap.vue +1 -1
- package/src/components/phonestate/LastKnownState.vue +1 -1
- package/src/components/plan/RetailMain.vue +44 -0
- package/src/components/plan/Retailitem.vue +99 -0
- package/src/components/plan/Retailplan.vue +150 -0
- package/src/components/planmanage/PlanManage.vue +861 -0
- package/src/components/{Util → planmanage}/RightTreeSafe.vue +6 -1
- package/src/components/planmanage/checkPlanList.vue +397 -0
- package/src/components/planmanage/checkUserList.vue +773 -0
- package/src/components/planmanage/zxplan/PlanManageZX.vue +21 -0
- package/src/components/planmanagets/PlanManage.vue +862 -0
- package/src/components/planmanagets/checkPlanList.vue +397 -0
- package/src/components/planmanagets/checkUserList.vue +772 -0
- package/src/components/planmanagets/zxplan/PlanManageZX.vue +21 -0
- package/src/components/querycheckpaper/CheckPaperList.vue +6 -19
- package/src/components/querycheckpaper/CheckPaperSearchUser.vue +10 -2
- package/src/components/querycheckpaper/CheckSearchUser.vue +374 -90
- package/src/components/querycheckpaper/PaperItems.vue +1 -1
- package/src/components/report/CheckPlanAreaList.vue +282 -252
- package/src/components/report/CheckPlanAreaManage.vue +0 -2
- package/src/components/report/CheckPlanUserList.vue +58 -43
- package/src/components/report/HiddenSituation.vue +49 -19
- package/src/components/report/MeterReadingRate.vue +131 -0
- package/src/components/report/ReportSql1.vue +345 -0
- package/src/components/report/SafePlanSale.vue +1 -1
- package/src/components/report/SafePlanStatistics.vue +1 -1
- package/src/components/rongcheng/AddPlanItem.vue +4 -13
- package/src/components/rongcheng/AspiratedCurrentCreate.vue +21 -72
- package/src/components/rongcheng/CheckCurrentCreate.vue +133 -201
- package/src/components/rongcheng/CheckSearchUser.vue +45 -302
- package/src/components/rongcheng/CheckSearchUserNo.vue +53 -240
- package/src/components/rongcheng/PaperListAJ.vue +25 -65
- package/src/components/rongcheng/PaperListNPAJ.vue +18 -56
- package/src/components/rongcheng/PaperListNPSQ.vue +17 -43
- package/src/components/rongcheng/PaperListSQ.vue +16 -42
- package/src/components/rongcheng/SafecheckOrderV.vue +108 -217
- package/src/components/rongcheng/UploadPage.vue +13 -17
- package/src/components/{rongcheng/AspiratedPaperFeedbackm.vue → shaoguan/PaperFeedbackm.vue} +15 -23
- package/src/components/task/RepairAnnual.vue +1 -1
- package/src/components/task/RepairAnnualDetail.vue +1 -1
- package/src/components/task/RepairMonthly.vue +1 -1
- package/src/components/task/TaskAnnual.vue +1 -1
- package/src/components/task/TaskAnnualDetail.vue +1 -1
- package/src/components/task/TaskMonthly.vue +1 -1
- package/src/components/tongcheng/AreaPlan.vue +2 -2
- package/src/components/tongcheng/CurrentCreate.vue +2 -2
- package/src/components/tongcheng/PaperFeedback.vue +4 -4
- package/src/components/tongcheng/PaperSet.vue +5 -5
- package/src/components/tongcheng/PaperUser.vue +1 -1
- package/src/components/userfile/InfoModifyModal.vue +3 -3
- package/src/components/userfile/UserFile.vue +2 -2
- package/src/components/userfile/UserInfoAudit.vue +5 -5
- package/src/components/userfile/UserfileChange.vue +2 -2
- package/src/components/userfileaudit/UserFileaudit.vue +1 -1
- package/src/components/userfileaudit/UserfileChangeaudit.vue +2 -2
- package/src/components/userplan/UserplanList.vue +166 -0
- package/src/components/userplan/UserplanMain.vue +71 -0
- package/src/components/userplan/UserplanPaper.vue +182 -0
- package/src/components/zhuanxiang/CheckPaperListZX.vue +129 -0
- package/src/components/{rongcheng/CheckPaperSearchUser.vue → zhuanxiang/CheckPaperSearchUserZX.vue} +14 -6
- package/src/components/zhuanxiang/CheckSearchUserZX.vue +739 -0
- package/src/expandcssAndroid.less +1 -1
- package/src/index.js +6 -0
- package/src/main.js +4 -3
- package/src/plugins/LocalPagedList.js +1 -2
- package/src/safecheck-android.js +39 -24
- package/src/safecheck.js +411 -149
- package/static/ManageHomePic//346/244/255/345/234/2064.png +0 -0
- package/static/ManagementControl/echarts10.png +0 -0
- package/static/ManagementControl/echarts11.png +0 -0
- package/static/ManagementControl/echarts12.png +0 -0
- package/static/ManagementControl/echarts13.png +0 -0
- package/static/ManagementControl/echarts14.png +0 -0
- package/static/ManagementControl/echarts15.png +0 -0
- package/static/ManagementControl/echarts16.png +0 -0
- package/static/ManagementControl/echarts17.png +0 -0
- package/static/ManagementControl/echarts18.png +0 -0
- package/static/ManagementControl/echarts4.png +0 -0
- package/static/ManagementControl/echarts5.png +0 -0
- package/static/ManagementControl/echarts51.png +0 -0
- package/static/ManagementControl/echarts6.png +0 -0
- package/static/ManagementControl/echarts7.png +0 -0
- package/static/ManagementControl/echarts71.png +0 -0
- package/static/ManagementControl/echarts8.png +0 -0
- package/static/ManagementControl//345/233/276/345/261/20211/346/213/267/350/264/235.png +0 -0
- package/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2353.png +0 -0
- package/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2355.png +0 -0
- package/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2356.png +0 -0
- package/static/batchleft.png +0 -0
- package/static/batchright.png +0 -0
- package/static/bluemainbg.jpg +0 -0
- package/static/huangtengbiaozhi.png +0 -0
- package/static/jcwx.jpg +0 -0
- package/static/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
- package/static/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
- package/static/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
- package/static/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
- package/static/lefticon//345/233/276/345/261/202577.png +0 -0
- package/static/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
- package/static/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
- package/static/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
- package/static/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
- package/static/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
- package/static/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
- package/static/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
- package/static/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
- package/static/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
- package/static/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
- package/static/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
- package/static/lefticon//347/237/251/345/275/2421183.png +0 -0
- package/static/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
- package/static/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
- package/static/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
- package/static/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
- package/static/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
- package/static/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
- package/static/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
- package/static/login_bg.jpg +0 -0
- package/static/login_title.png +0 -0
- package/static/login_title1.png +0 -0
- package/static/loginbg.jpg +0 -0
- package/static/loginbg1.jpg +0 -0
- package/static/loginbg_jincheng.jpg +0 -0
- package/static/loginbgmain.jpg +0 -0
- package/static/loginlogo.png +0 -0
- package/static/main_logo.png +0 -0
- package/static/mainbg.jpg +0 -0
- package/static/mainicon/adddevice.png +0 -0
- package/static/mainicon/addmeter.png +0 -0
- package/static/mainicon/bank.png +0 -0
- package/static/mainicon/biaopan.png +0 -0
- package/static/mainicon/cad.jpg +0 -0
- package/static/mainicon/chaobiaoyuan.png +0 -0
- package/static/mainicon/danganguanli.png +0 -0
- package/static/mainicon/deletedevice.png +0 -0
- package/static/mainicon/excel.jpg +0 -0
- package/static/mainicon/huizong.png +0 -0
- package/static/mainicon/jibiaoguanli.png +0 -0
- package/static/mainicon/jibiaoguanli2.png +0 -0
- package/static/mainicon/jiezhang.png +0 -0
- package/static/mainicon/loginbg.jpg +0 -0
- package/static/mainicon/shouqishoufei.png +0 -0
- package/static/mainicon/treeopen.png +0 -0
- package/static/mainicon/treeout.png +0 -0
- package/static/mainicon/treeset.png +0 -0
- package/static/mainicon/word.jpg +0 -0
- package/static/mainicon/wulianwang.png +0 -0
- package/static/mainicon/yingyechaxun.png +0 -0
- package/static/mainicon/zongheyewu.png +0 -0
- package/static/menulogo.png +0 -0
- package/static/newStyle/fife.png +0 -0
- package/static/newStyle/hidden.png +0 -0
- package/static/newStyle/label-clear.png +0 -0
- package/static/newStyle/left-img.png +0 -0
- package/static/newStyle/login-f.png +0 -0
- package/static/newStyle/loginbg.gif +0 -0
- package/static/newStyle/loginbg1366.gif +0 -0
- package/static/newStyle/loginbg_1.gif +0 -0
- package/static/newStyle/searchin.png +0 -0
- package/static/newStyle/searchout.png +0 -0
- package/static/newStyle/setting.png +0 -0
- package/static/newStyle/setting1.png +0 -0
- package/static/newStyle/shirk.png +0 -0
- package/static/newStyle/system-off.png +0 -0
- package/static/newStyle//350/261/252/344/275/263/347/207/203/346/260/224.png +0 -0
- package/static/newStyle.7z +0 -0
- package/static/newStyle.zip +0 -0
- package/static/newmainbg.jpg +0 -0
- package/static/psicon.png +0 -0
- package/static/refresh.png +0 -0
- package/static/singleleft.png +0 -0
- package/static/singleright.png +0 -0
- package/static/static.zip +0 -0
- package/static/treeclose.png +0 -0
- package/static/treeopen.png +0 -0
- package/static/treeout.png +0 -0
- package/static/treeset.png +0 -0
- package/static/usericon.png +0 -0
- package/static/xinxi.png +0 -0
- package/.npmignore +0 -15
- package/examples/SafePlan-liaoyuan/App.vue +0 -53
- package/examples/SafePlan-shaoguan/App.vue +0 -52
- package/examples/SafePlan-shaoguan/comp.js +0 -1190
- package/examples/SafePlanrongcheng/App.vue +0 -52
- package/examples/SafePlanrongcheng/comp.js +0 -1041
- package/package-lock.json +0 -10779
- package/src/assets/JsonEditor/jsoneditor.css +0 -930
- package/src/assets/JsonEditor/jsoneditor.js +0 -36377
- package/src/assets/bj.jpg +0 -0
- package/src/assets/jt.jpg +0 -0
- package/src/assets/marrio.jpg +0 -0
- package/src/assets/ss.jpg +0 -0
- package/src/assets/xl.jpg +0 -0
- package/src/assets//346/230/237/347/220/203/350/203/214/346/231/257.jpg +0 -0
- package/src/assets//351/232/220/346/202/243/345/210/206/346/236/220.png +0 -0
- package/src/components/CheckerCount/CheckCountAreaList.vue +0 -298
- package/src/components/CheckerCount/CheckCountUserList.vue +0 -144
- package/src/components/ExportExcel.vue +0 -201
- package/src/components/android/SwitchValve.vue +0 -189
- package/src/components/checkAreaClassification.vue +0 -285
- package/src/components/checkplan/checkmsgZG.vue +0 -519
- package/src/components/filialCircle/AddCircleFiliale.vue +0 -114
- package/src/components/filialCircle/CircleList.vue +0 -139
- package/src/components/filialCircle/CircleManage.vue +0 -69
- package/src/components/json-editor/SafeJsonEditor.vue +0 -212
- package/src/components/json-editor/assets/img/jsoneditor-icons.svg +0 -893
- package/src/components/json-editor/assets/jsoneditor-minimalist.js +0 -9751
- package/src/components/json-editor/assets/jsoneditor.css +0 -930
- package/src/components/json-editor/assets/jsoneditor.js +0 -36377
- package/src/components/json-editor/example/App.vue +0 -53
- package/src/components/json-editor/example/index.html +0 -9
- package/src/components/json-editor/example/main.js +0 -10
- package/src/components/json-editor/package.json +0 -71
- package/src/components/json-editor/vue-json-editor.vue +0 -189
- package/src/components/pc/HiddenChart.vue +0 -189
- package/src/components/pc/RoleSelector.vue +0 -89
- package/src/components/plan/PlanLeft.vue +0 -320
- package/src/components/plan/PlanManage.vue +0 -50
- package/src/components/plan/PlanRightUp.vue +0 -185
- package/src/components/plan/PlanRightdown.vue +0 -239
- package/src/components/plan/testss.vue +0 -116
- package/src/components/plancheck/CheckPlanAreaManage.vue +0 -116
- package/src/components/plancheck/CheckPlanList.vue +0 -282
- package/src/components/report/ManageBusSummary.vue +0 -242
- package/src/components/rongcheng/AreaPlan.vue +0 -463
- package/src/components/rongcheng/AspPaperStatem.vue +0 -339
- package/src/components/rongcheng/AspiratedDevices.vue +0 -965
- package/src/components/rongcheng/AspiratedOrderV.vue +0 -2361
- package/src/components/rongcheng/AspiratedPaperMessage.vue +0 -1378
- package/src/components/rongcheng/AspiratedPaperMessageNocivil.vue +0 -1288
- package/src/components/rongcheng/AspiratedUserInfo.vue +0 -399
- package/src/components/rongcheng/DefectList.vue +0 -560
- package/src/components/rongcheng/DefectPaper.vue +0 -582
- package/src/components/rongcheng/PaperFeedback.vue +0 -1318
- package/src/components/rongcheng/PaperMessage.vue +0 -1186
- package/src/components/rongcheng/PaperMessageNocivil.vue +0 -1211
- package/src/components/rongcheng/PaperStateNoncivilm.vue +0 -366
- package/src/components/rongcheng/PaperStatem.vue +0 -343
- package/src/components/rongcheng/PhoneDevicesInfo.vue +0 -233
- package/src/components/rongcheng/SafecheckOrderVCli.vue +0 -2538
- package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +0 -245
- package/src/components/rongcheng/report/CheckPlanAreaList.vue +0 -419
- package/src/components/rongcheng/report/CheckPlanUserList.vue +0 -190
- package/src/components/shaoguan/DefectDetail.vue +0 -177
- package/src/components/shaoguan/DefectMain.vue +0 -53
- package/src/components/shaoguan/DefectPaper.vue +0 -217
- package/src/components/shaoguan/PaperList.vue +0 -532
- package/src/components/shaoguan/SafecheckOrderV.vue +0 -2140
- package/src/components/tongcheng/PaperMessage.vue +0 -1270
- package/src/components/tongcheng/PaperMessageNocivil.vue +0 -1228
- package/src/filiale/Util.js +0 -325
- package/src/filiale/liaoyuan/android/SafecheckDevices.vue +0 -928
- package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +0 -2383
- package/src/filiale/liaoyuan/android.js +0 -13
- package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +0 -1020
- package/src/filiale/liaoyuan/pc/PaperList.vue +0 -628
- package/src/filiale/liaoyuan/pc.js +0 -13
- package/src/filiale/wenxi/android.js +0 -9
- package/src/filiale/wenxi/pc/PaperList.vue +0 -627
- package/src/filiale/wenxi/pc/checkmsg.vue +0 -229
- package/src/filiale/wenxi/pc.js +0 -12
- package/src/filiale/wuan/android/SafecheckOrderV.vue +0 -2235
- package/src/filiale/wuan/android.js +0 -14
- package/src/filiale/wuan/pc/PaperList.vue +0 -625
- package/src/filiale/wuan/pc.js +0 -12
- package/src/rongcheng-android.js +0 -186
- package/src/rongcheng.js +0 -303
- /package/examples/{SafePlan-liaoyuan → SafePlan-aode-ts}/TestData.js +0 -0
- /package/examples/{SafePlan-liaoyuan → SafePlan-aode-ts}/main.js +0 -0
- /package/examples/{SafePlanrongcheng → SafePlan-aodezx}/TestData.js +0 -0
- /package/examples/{SafePlanrongcheng → SafePlan-aodezx}/main.js +0 -0
- /package/examples/{SafePlan-shaoguan → SafePlan-aodezx-ts}/TestData.js +0 -0
- /package/examples/{SafePlan-shaoguan → SafePlan-aodezx-ts}/main.js +0 -0
- /package/{git → static/.gitkeep} +0 -0
@@ -0,0 +1,1532 @@
|
|
1
|
+
import {SearchList, date} from 'vue-client'
|
2
|
+
import {PagedList} from 'vue-client'
|
3
|
+
import {HttpResetClass,trans} from 'vue-client'
|
4
|
+
import Vue from "vue"
|
5
|
+
import co from 'co'
|
6
|
+
// let asyncReady = async function(self) {
|
7
|
+
// // 获取配置信息
|
8
|
+
// try {
|
9
|
+
// // 获取配置文件
|
10
|
+
// let http = new HttpResetClass()
|
11
|
+
// let res = await http.load('GET', `/phone/rs/vue`, {}, {resolveMsg: null, rejectMsg: null})
|
12
|
+
// this.needconfig = res.data
|
13
|
+
// } catch (error) {
|
14
|
+
// // 忽略704,文件找不到异常R
|
15
|
+
// if (error.status !== 704) {
|
16
|
+
// throw error
|
17
|
+
// }
|
18
|
+
// }
|
19
|
+
// }
|
20
|
+
export default class Comp {
|
21
|
+
|
22
|
+
/*async constructor() {
|
23
|
+
await this.reaydy()
|
24
|
+
}*/
|
25
|
+
needconfig= {}
|
26
|
+
isSend=true
|
27
|
+
// 用户安检信息列表
|
28
|
+
user = new SearchList(true)
|
29
|
+
//遍历的按钮
|
30
|
+
listbutton=[]
|
31
|
+
fdevices=[]
|
32
|
+
// 安检计划列表
|
33
|
+
checkplan = new SearchList(true)
|
34
|
+
// 安检计划的安检单列表
|
35
|
+
checkplanitems = new SearchList(true)
|
36
|
+
//按钮隐藏判断
|
37
|
+
suppplanitem={}
|
38
|
+
orderList= ['按时间降序', '按时间升序']//排序下拉框的值
|
39
|
+
currentorder='按时间降序'//排序下拉框当前选中的值
|
40
|
+
// 新增安检计划时保存的数据
|
41
|
+
newPlan = {f_issued:"否",f_safecheck_type:"专项计划"}
|
42
|
+
http = new HttpResetClass()
|
43
|
+
//查询计划弹框中是否共享选项
|
44
|
+
isAndNot = ["是", "否"]
|
45
|
+
//用户类型
|
46
|
+
userTypes = ["民用","非民用"]
|
47
|
+
//公司安检员列表
|
48
|
+
orgChecker=[]
|
49
|
+
//安检计划查询中的是否是共享计划单选的当前选中值
|
50
|
+
sIsAndNotSelect=''
|
51
|
+
//用户列表的自选查询条件的值
|
52
|
+
userCondition=["请选择条件","用户类型","地址"]
|
53
|
+
//当前选中的下拉值
|
54
|
+
userConditionSelect="请选择条件"
|
55
|
+
//当前输入的值
|
56
|
+
userConditionValue=""
|
57
|
+
//计划项列表自选查询条件的值
|
58
|
+
planItemCondition=["请选择条件","用户编号","用户名称"]
|
59
|
+
//
|
60
|
+
planItemConditional={}
|
61
|
+
//入户状态
|
62
|
+
userState=["到访不遇","拒检","入户"]
|
63
|
+
//燃气使用
|
64
|
+
gasUse=["已使用","未使用"]
|
65
|
+
//当前选中的下拉值
|
66
|
+
planItemConditionSelect="请选择条件"
|
67
|
+
//当前输入的值
|
68
|
+
planItemConditionValue=""
|
69
|
+
//excel导入组件显示控制
|
70
|
+
showModel=false
|
71
|
+
//safecheckTypeList=Vue.$appdata.getParam("安检类型")
|
72
|
+
safecheckTypeList=["专项计划"]
|
73
|
+
//安检员列表
|
74
|
+
checker=[
|
75
|
+
|
76
|
+
]
|
77
|
+
residential_area=[]
|
78
|
+
checkersname=[]
|
79
|
+
//新建计划时保存是否共享计划的值,
|
80
|
+
isShare="否"
|
81
|
+
//安检类型
|
82
|
+
safecheckList=["专项计划"]
|
83
|
+
//今年是否安检
|
84
|
+
yearChecked=["全部","已检","未检"]
|
85
|
+
yChecked=''
|
86
|
+
//时间单位
|
87
|
+
unitTime=["天","月"]
|
88
|
+
selectTime="天"
|
89
|
+
startday=""
|
90
|
+
endday=""
|
91
|
+
str=[]
|
92
|
+
uploadCondition=''
|
93
|
+
//当前打开的安检计划id
|
94
|
+
SelectedPlan={}
|
95
|
+
//燃气表增添项
|
96
|
+
gasexpress=[{"lname":"燃气表照片","type":"picture"},
|
97
|
+
{"lname":"表品牌","type":"string","readonly":true},
|
98
|
+
{"lname":"表号","type":"string","readonly":true},
|
99
|
+
{"lname":"表封号","type":"number","readonly":true},
|
100
|
+
{"lname":"表型号","type":"string","readonly":true},
|
101
|
+
{"lname":"位置","type":"string","readonly":true},
|
102
|
+
{"lname":"表底数","type":"number","readonly":true},
|
103
|
+
{"lname":"左右表","type":"string","readonly":true}]
|
104
|
+
//当前分公司id
|
105
|
+
filialeid=global.login.orgid
|
106
|
+
filialeidname=global.login.orgs
|
107
|
+
orgs=[]
|
108
|
+
//filialeid=20284
|
109
|
+
|
110
|
+
usertypes=[]//用户类型
|
111
|
+
metertypes=[]//气表分类
|
112
|
+
pricetypes=[]//气价类型
|
113
|
+
pricenames=["22222","222221"]//气价名称---遍历获取
|
114
|
+
meterbrands= []//气表品牌---遍历获取
|
115
|
+
gasproperties=[]//用气性质
|
116
|
+
tablestate=[]//气表状态
|
117
|
+
//用户列表查询条件json
|
118
|
+
conditionJson=[
|
119
|
+
{column:"f_building",checkname:"楼栋号码",type:"input"},
|
120
|
+
{column:"useraddress",checkname:"地址",type:"input"},
|
121
|
+
{column:"f_unit",checkname:"单元号码",type:"input"},
|
122
|
+
{column:"userType",checkname:"用户类型",type:"selector",options:['民用','非民用','煤改气']},
|
123
|
+
{column:"f_user_state",checkname:"用户状态",type:"selector",options:['正常','停用']},
|
124
|
+
{column:"f_devices",checkname:"设备名称",type:"selector",options:['壁挂炉','热水器']},
|
125
|
+
{column:"f_gasproperties",checkname:"用气性质",type:"selector",options:this.gasproperties},
|
126
|
+
{column:"f_meter_classify",checkname:"气表分类",type:"selector",options:this.metertypes},
|
127
|
+
{column:"f_table_state",checkname:"气表状态",type:"selector",options:this.tablestate},
|
128
|
+
{column:"f_meter_brand",checkname:"气表品牌",type:"selector",options:this.meterbrands},
|
129
|
+
{column:"f_price_type",checkname:"气价类型",type:"selector",options:this.pricetypes},
|
130
|
+
{column:"f_price_name",checkname:"气价名称",type:"selector",options:this.pricenames}
|
131
|
+
]
|
132
|
+
|
133
|
+
conditionList=[
|
134
|
+
{selectitem:{column:"f_user_state",checkname:"用户状态",type:"selector",options:['正常','停用']},selectValue:'正常',num:0},
|
135
|
+
{selectitem:{column:"useraddress",checkname:"地址",type:"input"},selectValue:'',num:1},
|
136
|
+
{selectitem:{column:"userType",checkname:"用户类型",type:"selector",options:['民用','非民用','煤改气']},selectValue:'',num:2},
|
137
|
+
{selectitem:{column:"f_gasproperties",checkname:"用气性质",type:"selector",options:this.gasproperties},selectValue:'',num:3},
|
138
|
+
{selectitem:{column:"f_price_type",checkname:"气价类型",type:"selector",options:this.pricetypes},selectValue:'',num:4},
|
139
|
+
{selectitem:{column:"f_price_name",checkname:"气价名称",type:"selector",options:this.pricenames},selectValue:'',num:5},
|
140
|
+
{selectitem:{column:"f_meter_classify",checkname:"气表分类",type:"selector",options:this.metertypes},selectValue:'',num:6},
|
141
|
+
{selectitem:{column:"f_meter_brand",checkname:"气表品牌",type:"selector",options:this.meterbrands},selectValue:'',num:7},
|
142
|
+
{selectitem:{column:"f_table_state",checkname:"气表状态",type:"selector",options:this.tablestate},selectValue:'',num:8},
|
143
|
+
{selectitem:{checkname:"请选择",type:"input"},selectValue:'',num:9}
|
144
|
+
]
|
145
|
+
//安检项列表查询条件
|
146
|
+
planitemconditionJson=[
|
147
|
+
{column:"f_last_check_state",checkname:"安检结果",type:"selector",options:['入户','拒检','到访不遇','未使用']},
|
148
|
+
{column:"f_start_time",checkname:"开始时间",type:"date"},
|
149
|
+
{column:"f_end_time",checkname:"结束时间",type:"date"},
|
150
|
+
{column:"f_last_check_result",checkname:"隐患状态",type:"selector",options:['正常','有隐患']},
|
151
|
+
{column:"f_state1",checkname:"安检状态",type:"selector",options:['已检','未检']},
|
152
|
+
{column:"f_area",checkname:"小区名称",type:"input"},
|
153
|
+
]
|
154
|
+
planitemconditionList=[
|
155
|
+
{selectitem:{column:"f_state1",checkname:"安检状态",type:"selector",options:['已检','未检']},selectValue:'',num:0},
|
156
|
+
{selectitem:{column:"f_area",checkname:"小区名称",type:"input"},selectValue:'',num:1},
|
157
|
+
{selectitem:{checkname:"请选择",type:"input"},selectValue:'',num:2}
|
158
|
+
]
|
159
|
+
//所有小区
|
160
|
+
areaList=[]
|
161
|
+
//存放小区模糊查询数据
|
162
|
+
areaText=''
|
163
|
+
//营收参数
|
164
|
+
//saleParam={"gasbrands":[{"f_overdr_lines":0,"counts":480451,"f_support_bluetooth":null,"f_manufacturers":"中元新","f_isdecimal":"否","f_connec_id":1047,"f_orgid":null,"f_operator":"admin","f_operatorid":"","f_alias":"ZongYuanAoDe","f_checkout_limit":1,"f_orgname":null,"f_depid":"","f_calculation":null,"id":2,"f_cardnumber":"3013879","f_old_id":"101","f_share_times":null,"f_meter_style":null,"f_collection_type":"按气量","f_meter_brand":"中元新","f_meter_type":"气量卡表","f_using_orgid":"115738","f_comments":null,"f_priority":null,"f_topup_ceil":0,"f_keep_accounts":null,"f_hascard":null,"f_meter_limit":10,"gasmodel":[{"f_gasbrand_id":2,"f_size_card":null,"f_coding":null,"f_meter_style":"G1.6","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":3,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":"1003"},{"f_gasbrand_id":2,"f_size_card":null,"f_coding":null,"f_meter_style":"G2.5","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":4,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":"1004"},{"f_gasbrand_id":2,"f_size_card":null,"f_coding":null,"f_meter_style":"G4.0","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":5,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":"1005"},{"f_gasbrand_id":2,"f_size_card":null,"f_coding":null,"f_meter_style":"G6.0","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":30,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":"1034"},{"f_gasbrand_id":2,"f_size_card":null,"f_coding":null,"f_meter_style":"G10.0","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":31,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":"1035"}],"name":"测试公司","f_depname":"","f_police_gas":5,"f_card_password":"000000"},{"f_overdr_lines":0,"counts":384,"f_support_bluetooth":"否","f_manufacturers":null,"f_isdecimal":"是","f_connec_id":1091,"f_orgid":"922","f_operator":"赵大米","f_operatorid":"3122","f_alias":"WeiXinADSystem","f_checkout_limit":0,"f_orgname":"奥德集团","f_depid":"2430","f_calculation":"表端结算","id":33,"f_cardnumber":"","f_old_id":null,"f_share_times":"否","f_meter_style":null,"f_collection_type":"按金额","f_meter_brand":"威星物联表端结算","f_meter_type":"物联网表","f_using_orgid":"115738","f_comments":"","f_priority":null,"f_topup_ceil":0,"f_keep_accounts":null,"f_hascard":"否","f_meter_limit":0,"gasmodel":[{"f_gasbrand_id":33,"f_size_card":null,"f_coding":null,"f_meter_style":"G6表端结算","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":103,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":null},{"f_gasbrand_id":33,"f_size_card":null,"f_coding":null,"f_meter_style":"G10表端结算","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":104,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":null},{"f_gasbrand_id":33,"f_size_card":null,"f_coding":null,"f_meter_style":"G16表端结算","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":105,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":null},{"f_gasbrand_id":33,"f_size_card":null,"f_coding":null,"f_meter_style":"G25表端结算","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":106,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":null},{"f_gasbrand_id":33,"f_size_card":null,"f_coding":null,"f_meter_style":"G6NB表端结算","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":107,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":null},{"f_gasbrand_id":33,"f_size_card":null,"f_coding":null,"f_meter_style":"G10NB表端结算","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":108,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":null},{"f_gasbrand_id":33,"f_size_card":null,"f_coding":null,"f_meter_style":"G16NB表端结算","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":109,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":null},{"f_gasbrand_id":33,"f_size_card":null,"f_coding":null,"f_meter_style":"G25NB表端结算","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":110,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":null}],"name":"测试公司","f_depname":"信息管理部","f_police_gas":10,"f_card_password":""},{"f_overdr_lines":0,"counts":15,"f_support_bluetooth":null,"f_manufacturers":null,"f_isdecimal":"是","f_connec_id":1104,"f_orgid":"115738","f_operator":"赵大米","f_operatorid":"3122","f_alias":"JCSystem","f_checkout_limit":0,"f_orgname":"测试公司","f_depid":"115750","f_calculation":"系统结算","id":37,"f_cardnumber":"","f_old_id":null,"f_share_times":null,"f_meter_style":null,"f_collection_type":"按金额","f_meter_brand":"天信物联系统结算","f_meter_type":"物联网表","f_using_orgid":"115738","f_comments":"","f_priority":null,"f_topup_ceil":0,"f_keep_accounts":null,"f_hascard":null,"f_meter_limit":0,"gasmodel":[{"f_gasbrand_id":37,"f_size_card":null,"f_coding":"","f_meter_style":"G6","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":116,"f_type":"超声波表","f_param_list":null,"f_old_id":null},{"f_gasbrand_id":37,"f_size_card":null,"f_coding":null,"f_meter_style":"G10","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":117,"f_type":"超声波表","f_param_list":null,"f_old_id":null},{"f_gasbrand_id":37,"f_size_card":null,"f_coding":null,"f_meter_style":"G16","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":118,"f_type":"超声波表","f_param_list":null,"f_old_id":null},{"f_gasbrand_id":37,"f_size_card":null,"f_coding":null,"f_meter_style":"G25","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":119,"f_type":"超声波表","f_param_list":null,"f_old_id":null},{"f_gasbrand_id":37,"f_size_card":null,"f_coding":null,"f_meter_style":"G40","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":120,"f_type":"超声波表","f_param_list":null,"f_old_id":null}],"name":"测试公司","f_depname":"测试营业厅1","f_police_gas":10,"f_card_password":""},{"f_overdr_lines":0,"counts":41606,"f_support_bluetooth":"否","f_manufacturers":"机表","f_isdecimal":"否","f_connec_id":1113,"f_orgid":"17054","f_operator":"徐之江","f_operatorid":"3530","f_alias":"JB","f_checkout_limit":1,"f_orgname":"沈阳奥德燃气有限公司","f_depid":"17378","f_calculation":null,"id":1,"f_cardnumber":null,"f_old_id":"100","f_share_times":"否","f_meter_style":null,"f_collection_type":"按气量","f_meter_brand":"机表","f_meter_type":"机表","f_using_orgid":"115738","f_comments":null,"f_priority":null,"f_topup_ceil":0,"f_keep_accounts":null,"f_hascard":"否","f_meter_limit":10,"gasmodel":[{"f_gasbrand_id":1,"f_size_card":null,"f_coding":null,"f_meter_style":"JB","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":29,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":"1033"}],"name":"测试公司","f_depname":"沈阳营业厅","f_police_gas":5,"f_card_password":"000000"},{"f_overdr_lines":0,"counts":1883,"f_support_bluetooth":null,"f_manufacturers":null,"f_isdecimal":"是","f_connec_id":395,"f_orgid":"115738","f_operator":"赵大米","f_operatorid":"3122","f_alias":"XinAoADSystem","f_checkout_limit":0,"f_orgname":"测试公司","f_depid":"115750","f_calculation":"系统结算","id":34,"f_cardnumber":"","f_old_id":null,"f_share_times":null,"f_meter_style":null,"f_collection_type":"按金额","f_meter_brand":"新奥物联系统结算","f_meter_type":"物联网表","f_using_orgid":"115738","f_comments":"","f_priority":1,"f_topup_ceil":999999,"f_keep_accounts":null,"f_hascard":null,"f_meter_limit":0,"gasmodel":[{"f_gasbrand_id":34,"f_size_card":null,"f_coding":"","f_meter_style":"G1.6","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":111,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":null},{"f_gasbrand_id":34,"f_size_card":null,"f_coding":null,"f_meter_style":"G2.5","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":112,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":null},{"f_gasbrand_id":34,"f_size_card":null,"f_coding":null,"f_meter_style":"G4.0","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":113,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":null}],"name":"测试公司","f_depname":"测试营业厅1","f_police_gas":5,"f_card_password":""},{"f_overdr_lines":0,"counts":92,"f_support_bluetooth":"否","f_manufacturers":null,"f_isdecimal":"是","f_connec_id":1099,"f_orgid":"115738","f_operator":"mhw","f_operatorid":"1157361","f_alias":"JBSystem","f_checkout_limit":0,"f_orgname":"测试公司","f_depid":"115750","f_calculation":"系统结算","id":36,"f_cardnumber":"","f_old_id":null,"f_share_times":"否","f_meter_style":null,"f_collection_type":"按金额","f_meter_brand":"建安B物联小表","f_meter_type":"物联网表","f_using_orgid":"115738","f_comments":"","f_priority":1,"f_topup_ceil":0,"f_keep_accounts":null,"f_hascard":"否","f_meter_limit":0,"gasmodel":[{"f_gasbrand_id":36,"f_size_card":null,"f_coding":"","f_meter_style":"G2.5","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":115,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":null}],"name":"测试公司","f_depname":"测试营业厅1","f_police_gas":0,"f_card_password":""},{"f_overdr_lines":0,"counts":8,"f_support_bluetooth":null,"f_manufacturers":null,"f_isdecimal":"是","f_connec_id":1100,"f_orgid":"115738","f_operator":"mhw","f_operatorid":"1157361","f_alias":"JBSystem","f_checkout_limit":0,"f_orgname":"测试公司","f_depid":"115750","f_calculation":"表端结算","id":35,"f_cardnumber":"","f_old_id":null,"f_share_times":null,"f_meter_style":null,"f_collection_type":"按金额","f_meter_brand":"建安B物联大表","f_meter_type":"物联网表","f_using_orgid":"115738","f_comments":"","f_priority":1,"f_topup_ceil":0,"f_keep_accounts":null,"f_hascard":null,"f_meter_limit":0,"gasmodel":[{"f_gasbrand_id":35,"f_size_card":null,"f_coding":"","f_meter_style":"G10","f_rated_traffic":null,"f_pulse":null,"f_billing":null,"f_calculation":null,"id":114,"f_type":"家用皮膜表","f_param_list":null,"f_old_id":null}],"name":"测试公司","f_depname":"测试营业厅1","f_police_gas":0,"f_card_password":""}],"price":[{"f_deduction_way":"cycle","f_user_type":"非民用","f_isheat":0,"f_price_id":327,"f_stair_start_date":"2020-10-20 00:00:00","f_filialeid":"115738","f_orgid":"115738","f_operator":"admin","f_operatorid":null,"f_islow_income":0,"f_heat_way":null,"f_price_name":"迁移测试公司(非民用)","f_orgname":"测试公司","f_price_type":"阶梯气价","f_heat_end_date":null,"f_depid":"115750","f_state":"有效","id":3280,"f_limit_cycle":0,"f_old_id":null,"f_limit_gas":0,"detailprice":[{"f_add_gas":0,"f_price_name":"1","f_price":1.9,"f_gas":1,"id":3643,"f_add_gas_heat":0,"f_ratio":0,"f_stairprice_id":3280},{"f_add_gas":0,"f_price_name":"2","f_price":3.6,"f_gas":2,"id":3652,"f_add_gas_heat":0,"f_ratio":0,"f_stairprice_id":3280},{"f_add_gas":0,"f_price_name":"3","f_price":9.5,"f_gas":9999,"id":3661,"f_add_gas_heat":0,"f_ratio":0,"f_stairprice_id":3280}],"f_stairmonths":12,"f_filialename":null,"f_heat_start_date":null,"f_comments":"9","f_priority":null,"f_processid":null,"f_population_base":0,"f_end_date":"2099-01-01 00:00:00","f_version":9,"f_gasproperties":"商业用气","f_heat_cycle":null,"f_depname":"测试营业厅1","f_population_increment":null,"f_operator_date":null,"f_perform_date":"2020-10-20 00:00:00"},{"f_deduction_way":"cycle","f_user_type":"民用","f_isheat":0,"f_price_id":2391,"f_stair_start_date":"2020-10-20 00:00:00","f_filialeid":"115738","f_orgid":"115738","f_operator":"admin","f_operatorid":null,"f_islow_income":0,"f_heat_way":null,"f_price_name":"迁移测试公司","f_orgname":"测试公司","f_price_type":"阶梯气价","f_heat_end_date":null,"f_depid":"115750","f_state":"有效","id":3307,"f_limit_cycle":0,"f_old_id":null,"f_limit_gas":0,"detailprice":[{"f_add_gas":0,"f_price_name":"1","f_price":1.9,"f_gas":1,"id":3662,"f_add_gas_heat":0,"f_ratio":0,"f_stairprice_id":3307},{"f_add_gas":0,"f_price_name":"2","f_price":3.6,"f_gas":2,"id":3663,"f_add_gas_heat":0,"f_ratio":0,"f_stairprice_id":3307},{"f_add_gas":0,"f_price_name":"3","f_price":9.5,"f_gas":9999,"id":3664,"f_add_gas_heat":0,"f_ratio":0,"f_stairprice_id":3307}],"f_stairmonths":12,"f_filialename":null,"f_heat_start_date":null,"f_comments":"9","f_priority":null,"f_processid":null,"f_population_base":0,"f_end_date":"2099-01-01 00:00:00","f_version":9,"f_gasproperties":"民用用气","f_heat_cycle":null,"f_depname":"测试营业厅1","f_population_increment":null,"f_operator_date":null,"f_perform_date":"2020-10-20 00:00:00"},{"f_deduction_way":"cycle","f_user_type":"民用","f_isheat":null,"f_price_id":2265,"f_stair_start_date":"2020-07-30 00:00:00","f_filialeid":"115738","f_orgid":"115738","f_operator":"赵大米","f_operatorid":"3122","f_islow_income":null,"f_heat_way":null,"f_price_name":"测试阶梯2","f_orgname":"测试公司","f_price_type":"阶梯气价","f_heat_end_date":null,"f_depid":"115750","f_state":"有效","id":3480,"f_limit_cycle":0,"f_old_id":null,"f_limit_gas":0,"detailprice":[{"f_add_gas":0,"f_price_name":"1","f_price":0.1,"f_gas":1,"id":3901,"f_add_gas_heat":0,"f_ratio":null,"f_stairprice_id":3480},{"f_add_gas":0,"f_price_name":"2","f_price":0.02,"f_gas":3,"id":3902,"f_add_gas_heat":0,"f_ratio":null,"f_stairprice_id":3480},{"f_add_gas":0,"f_price_name":"3","f_price":0.03,"f_gas":9999999,"id":3903,"f_add_gas_heat":0,"f_ratio":null,"f_stairprice_id":3480}],"f_stairmonths":12,"f_filialename":null,"f_heat_start_date":null,"f_comments":"","f_priority":1,"f_processid":null,"f_population_base":4,"f_end_date":"2099-12-31 23:59:59","f_version":3,"f_gasproperties":"民用用气","f_heat_cycle":null,"f_depname":"测试营业厅1","f_population_increment":null,"f_operator_date":"2020-12-04 11:22:25","f_perform_date":"2020-12-01 00:00:00"},{"f_deduction_way":"cycle","f_user_type":"民用","f_isheat":0,"f_price_id":2264,"f_stair_start_date":"2020-07-30 00:00:00","f_filialeid":"115738","f_orgid":"115738","f_operator":"赵大米","f_operatorid":"3122","f_islow_income":0,"f_heat_way":null,"f_price_name":"测试阶梯1","f_orgname":"测试公司","f_price_type":"阶梯气价","f_heat_end_date":null,"f_depid":"115750","f_state":"有效","id":3101,"f_limit_cycle":0,"f_old_id":null,"f_limit_gas":0,"detailprice":[{"f_add_gas":0,"f_price_name":"1","f_price":0.01,"f_gas":2,"id":3428,"f_add_gas_heat":0,"f_ratio":null,"f_stairprice_id":3101},{"f_add_gas":0,"f_price_name":"2","f_price":0.02,"f_gas":5,"id":3429,"f_add_gas_heat":0,"f_ratio":null,"f_stairprice_id":3101},{"f_add_gas":0,"f_price_name":"3","f_price":0.03,"f_gas":9999999,"id":3430,"f_add_gas_heat":0,"f_ratio":null,"f_stairprice_id":3101}],"f_stairmonths":12,"f_filialename":null,"f_heat_start_date":null,"f_comments":"","f_priority":100,"f_processid":null,"f_population_base":4,"f_end_date":"2099-12-31 23:59:59","f_version":3,"f_gasproperties":"民用用气","f_heat_cycle":null,"f_depname":"测试营业厅1","f_population_increment":null,"f_operator_date":"2020-10-24 10:59:21","f_perform_date":"2020-07-30 00:00:00"},{"f_deduction_way":"cycle","f_user_type":"民用","f_isheat":null,"f_price_id":2348,"f_stair_start_date":null,"f_filialeid":"115738","f_orgid":"115738","f_operator":"mhw","f_operatorid":"1157361","f_islow_income":1,"f_heat_way":null,"f_price_name":"测试阶梯22","f_orgname":"测试公司","f_price_type":"固定气价","f_heat_end_date":null,"f_depid":"115750","f_state":"有效","id":3448,"f_limit_cycle":0,"f_old_id":null,"f_limit_gas":0,"detailprice":[{"f_add_gas":0,"f_price_name":"1","f_price":8,"f_gas":0,"id":3862,"f_add_gas_heat":0,"f_ratio":null,"f_stairprice_id":3448}],"f_stairmonths":null,"f_filialename":null,"f_heat_start_date":null,"f_comments":"","f_priority":1000,"f_processid":null,"f_population_base":null,"f_end_date":"2099-12-31 23:59:59","f_version":8,"f_gasproperties":"民用用气","f_heat_cycle":null,"f_depname":"测试营业厅1","f_population_increment":null,"f_operator_date":"2020-11-30 19:40:23","f_perform_date":"2020-11-12 00:00:00"}],"adjustable":[]}
|
165
|
+
saleParam=[]
|
166
|
+
//存放
|
167
|
+
|
168
|
+
SearchAreaList(f){
|
169
|
+
let arr=['全部']
|
170
|
+
this.areaList.forEach((area)=>{
|
171
|
+
if(area.f_residential_area.indexOf(this.areaText)!=-1){
|
172
|
+
console.log("area.f_residential_area:"+area.f_residential_area)
|
173
|
+
arr.push(area.f_residential_area)
|
174
|
+
}
|
175
|
+
})
|
176
|
+
this.residential_area=arr
|
177
|
+
f()
|
178
|
+
}
|
179
|
+
|
180
|
+
//下拉框条件改变json数组
|
181
|
+
conditionListChange(modelname,ind,key,value,f){
|
182
|
+
console.log("------------"+ind+"-------------"+value)
|
183
|
+
this[modelname][ind]["num"]=ind
|
184
|
+
this[modelname][ind][key]=value
|
185
|
+
f()
|
186
|
+
}
|
187
|
+
//条件改变时修改下级选项框值
|
188
|
+
conditionChangeFun(type,f){
|
189
|
+
console.log("开始刷新条件"+type)
|
190
|
+
if(type=='userType' || type=='f_gasproperties' || type=='f_price_type' ){
|
191
|
+
let usertype=''
|
192
|
+
let gastype=''
|
193
|
+
let pricetype=''
|
194
|
+
let idx=9999
|
195
|
+
this.conditionList.forEach((res)=>{
|
196
|
+
if(res.selectitem.checkname=='用户类型'){
|
197
|
+
usertype=res.selectValue
|
198
|
+
}else if(res.selectitem.checkname=='用气性质'){
|
199
|
+
gastype=res.selectValue
|
200
|
+
}else if(res.selectitem.checkname=='气价类型'){
|
201
|
+
pricetype=res.selectValue
|
202
|
+
}
|
203
|
+
if(res.selectitem.checkname=='气价名称'){
|
204
|
+
idx=res.num
|
205
|
+
this.conditionList[idx].selectitem.options=[]
|
206
|
+
}
|
207
|
+
})
|
208
|
+
|
209
|
+
console.log("三个值:"+usertype+"---"+gastype+"---"+pricetype)
|
210
|
+
if(usertype && gastype && pricetype){
|
211
|
+
console.log("加载气价名称列表")
|
212
|
+
let arr=[]
|
213
|
+
this.saleParam.price.forEach((pri)=>{
|
214
|
+
if(pri.f_user_type==usertype && pri.f_price_type==pricetype && pri.f_gasproperties==gastype && pri.f_state=='有效'){
|
215
|
+
this.pricenames.push(pri.f_price_name)
|
216
|
+
if(idx!=9999){
|
217
|
+
this.conditionList[idx].selectitem.options.push(pri.f_price_name)
|
218
|
+
}
|
219
|
+
}
|
220
|
+
})
|
221
|
+
}else{
|
222
|
+
this.pricenames=[]
|
223
|
+
}
|
224
|
+
this.conditionJson[10].options=this.pricenames
|
225
|
+
console.log("气价名称:"+this.pricenames)
|
226
|
+
f()
|
227
|
+
}
|
228
|
+
}
|
229
|
+
formatArrayFun(type,arr){
|
230
|
+
arr.forEach((result)=>{
|
231
|
+
this[type].push(result.value)
|
232
|
+
})
|
233
|
+
}
|
234
|
+
//添加选择条件下拉框事件
|
235
|
+
addconditionList(field,f){
|
236
|
+
this[field].push({selectitem:{checkname:"请选择",type:"input"},selectValue:'',num:this.conditionList.length})
|
237
|
+
f()
|
238
|
+
}
|
239
|
+
//删除选择条件下拉框事件
|
240
|
+
deletecondition(field,modelname,index,f){
|
241
|
+
//如果有这个属性,说明已经选择过,去清空条件数组里的值
|
242
|
+
if(this[field][index].selectitem.column){
|
243
|
+
this.setProperty(modelname,this[field][index].selectitem.column,"")
|
244
|
+
}
|
245
|
+
this[field].splice(index,1)
|
246
|
+
|
247
|
+
for (let i =0 ;i<this[field].length;i++){
|
248
|
+
this.conditionList[i].num=i
|
249
|
+
}
|
250
|
+
f()
|
251
|
+
}
|
252
|
+
async ready() {
|
253
|
+
// 加载所有安检计划
|
254
|
+
//this.readConfig()
|
255
|
+
if(!this.filialeid){
|
256
|
+
Vue.showMessage("未检测到分公司信息,请重新登陆!")
|
257
|
+
return
|
258
|
+
}
|
259
|
+
this.getOrgs()
|
260
|
+
this.checkplan.search.setField("safechecktype",'专项计划')
|
261
|
+
await this.checkplan.searchList("/api/af-safecheck/sql/预约计划下发TS", {"f_plan_name": "f_plan_name like '%{}%'",
|
262
|
+
"f_plan_year":"f_plan_year={}",
|
263
|
+
"f_plan_month":"f_plan_month={}",
|
264
|
+
"checkerid":"f_checker_id='{}'",
|
265
|
+
"isAndNot":"f_checker {}",
|
266
|
+
"safechecktype":"f_safecheck_type='{}'"
|
267
|
+
},{groupitem:"",f_filialeids:"("+this.filialeid+")",orderitem:"f_create_time desc"})
|
268
|
+
this.user.search.setField("f_filialeid",this.filialeid)
|
269
|
+
this.setProperty('user', 'userType', '民用')
|
270
|
+
//获取营收表具气价参数值
|
271
|
+
new HttpResetClass().load('POST', '/api/af-safecheck/logic/getSaleInitData', {data:{
|
272
|
+
f_orgid: `${this.filialeid}`
|
273
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
|
274
|
+
console.log("--------:"+JSON.stringify(res))
|
275
|
+
this.saleParam=res.data
|
276
|
+
if(this.saleParam.gasbrands.length>0){
|
277
|
+
this.saleParam.gasbrands.forEach((r)=>{
|
278
|
+
this.meterbrands.push(r.f_meter_brand)
|
279
|
+
})
|
280
|
+
}
|
281
|
+
})
|
282
|
+
console.log(this.conditionList[3].selectitem.options)
|
283
|
+
this.metertypes = this.formatArrayFun('metertypes',Vue.$appdata.getParam('气表类型'))
|
284
|
+
this.pricetypes = this.formatArrayFun('pricetypes',Vue.$appdata.getParam('气价类型'))
|
285
|
+
this.gasproperties = this.formatArrayFun('gasproperties',Vue.$appdata.getParam('用气性质'))
|
286
|
+
this.tablestate = this.formatArrayFun('tablestate',Vue.$appdata.getParam('气表状态'))
|
287
|
+
console.log(this.conditionList[3].selectitem.options)
|
288
|
+
//this.getGasMan()
|
289
|
+
await this.getAreaList()
|
290
|
+
//加载安检员名单
|
291
|
+
console.log("-----------------")
|
292
|
+
console.log(Vue.$appdata)
|
293
|
+
console.log("当前加载到的信息:"+JSON.stringify(global.login))
|
294
|
+
this.searchChecker(global.login.id)
|
295
|
+
}
|
296
|
+
//分公司发生改变
|
297
|
+
async orgChange(value,f){
|
298
|
+
console.log("----orgChange"+JSON.stringify(value))
|
299
|
+
if(value.value==this.filialeid){
|
300
|
+
f()
|
301
|
+
return
|
302
|
+
}
|
303
|
+
this.filialeid=value.value
|
304
|
+
this.filialeidname=value.label
|
305
|
+
this.user = new SearchList(true)
|
306
|
+
this.checkplanitems = new SearchList(true)
|
307
|
+
this.checkplan = new SearchList(true)
|
308
|
+
this.searchChecker(global.login.id)
|
309
|
+
this.getAreaList()
|
310
|
+
this.checkplan.search.setField("safechecktype",'专项计划')
|
311
|
+
await this.checkplan.searchList("/api/af-safecheck/sql/预约计划下发TS", {"f_plan_name": "f_plan_name like '%{}%'",
|
312
|
+
"f_plan_year":"f_plan_year={}",
|
313
|
+
"f_plan_month":"f_plan_month={}",
|
314
|
+
"checkerid":"f_checker_id='{}'",
|
315
|
+
"isAndNot":"f_checker {}",
|
316
|
+
"safechecktype":"f_safecheck_type='{}'"
|
317
|
+
},{groupitem:"",f_filialeids:"("+this.filialeid+")",orderitem:"f_create_time desc"})
|
318
|
+
this.user.search.setField("f_filialeid",this.filialeid)
|
319
|
+
this.setProperty('user', 'userType', '民用')
|
320
|
+
f()
|
321
|
+
}
|
322
|
+
show1(){
|
323
|
+
this.showModel=true
|
324
|
+
}
|
325
|
+
//补录功能组装数据
|
326
|
+
zzsj(){
|
327
|
+
let deviceconfig=ObjConfig.getObjConfig(this.needconfig.safecheck.DevicesConfig)
|
328
|
+
console.log("=============ZZSJ1>"+JSON.stringify(deviceconfig))
|
329
|
+
for (let i = 0; i < deviceconfig.length; i++) {
|
330
|
+
console.log("==============>"+JSON.stringify(deviceconfig[i]))
|
331
|
+
console.log("==============>"+JSON.stringify(deviceconfig[i].index))
|
332
|
+
this.str[deviceconfig[i].index-1]=deviceconfig[i]
|
333
|
+
console.log("===========ZZSJ2>"+JSON.stringify(this.str[deviceconfig[i].index]))
|
334
|
+
}
|
335
|
+
|
336
|
+
}
|
337
|
+
readConfig () {
|
338
|
+
http.load('GET', `/phone/rs/vue`, {}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
339
|
+
this.needconfig = res.data
|
340
|
+
// console.log(JSON.stringify(this.needconfig))
|
341
|
+
// console.log("这是str1")
|
342
|
+
//console.log(this.needconfig.safecheck.DevicesConfig)
|
343
|
+
//console.log(JSON.stringify(this.needconfig.safecheck.DevicesConfig))
|
344
|
+
let aa=this.needconfig.safecheck.DevicesConfig
|
345
|
+
let bb= ObjConfig.getObjConfig(this.needconfig.safecheck.DevicesConfig)
|
346
|
+
console.log("这是str2")
|
347
|
+
console.log(JSON.stringify(bb))
|
348
|
+
this.zzsj()
|
349
|
+
})
|
350
|
+
|
351
|
+
}
|
352
|
+
//当前页面属性发生改变事件
|
353
|
+
fieldChange(modelname,value,f){
|
354
|
+
console.log(value)
|
355
|
+
if(modelname=="user" || modelname=="checkplan" || modelname=="checkplanitems"){
|
356
|
+
for(let i=0;i<this.orgChecker.length;i++){
|
357
|
+
if(this.orgChecker[i].name==value){
|
358
|
+
this.setProperty(modelname,"checkername",this.orgChecker[i].name)
|
359
|
+
this.setProperty(modelname,"checkerid",this.orgChecker[i].id)
|
360
|
+
break
|
361
|
+
}
|
362
|
+
}
|
363
|
+
f()
|
364
|
+
return
|
365
|
+
}
|
366
|
+
if(modelname=="createPlan"){
|
367
|
+
for(let i=0;i<this.orgChecker.length;i++){
|
368
|
+
if(this.orgChecker[i].name==value){
|
369
|
+
this.newPlan.f_checker_id=this.orgChecker[i].id
|
370
|
+
this.newPlan.f_checker=this.orgChecker[i].name
|
371
|
+
break
|
372
|
+
}
|
373
|
+
}
|
374
|
+
f()
|
375
|
+
return
|
376
|
+
}
|
377
|
+
if(modelname=="upPlan"){
|
378
|
+
for(let i=0;i<this.orgChecker.length;i++){
|
379
|
+
if(this.orgChecker[i].name==value){
|
380
|
+
this.plan.f_checker= this.orgChecker[i].name
|
381
|
+
this.plan.f_checker_id=this.orgChecker[i].id
|
382
|
+
break
|
383
|
+
}
|
384
|
+
}
|
385
|
+
f()
|
386
|
+
return
|
387
|
+
}
|
388
|
+
this[modelname]=value
|
389
|
+
f()
|
390
|
+
}
|
391
|
+
|
392
|
+
jointCondition1(field,modelname){
|
393
|
+
for (let i =0 ;i<this[field].length;i++){
|
394
|
+
if(!this[field][i].selectValue){
|
395
|
+
continue
|
396
|
+
}
|
397
|
+
console.log("this[field][i].column:"+this[field][i].column+"---"+"this[field][i].selectValue"+this[field][i].selectValue)
|
398
|
+
this.setProperty(modelname,this[field][i].selectitem.column,this[field][i].selectValue)
|
399
|
+
}
|
400
|
+
}
|
401
|
+
//根据选择框内容设置属性值
|
402
|
+
jointCondition(modelname){
|
403
|
+
|
404
|
+
if(modelname="user"){
|
405
|
+
this.setProperty("user","usertype","")
|
406
|
+
this.setProperty("user","address","")
|
407
|
+
switch(this.userConditionSelect){
|
408
|
+
case "用户类型":
|
409
|
+
this.setProperty("user","usertype",this.userConditionValue)
|
410
|
+
break;
|
411
|
+
case "地址":
|
412
|
+
this.setProperty("user","address",this.userConditionValue)
|
413
|
+
break;
|
414
|
+
}
|
415
|
+
}
|
416
|
+
if(modelname="checkplanitems"){
|
417
|
+
this.setProperty("checkplanitems","usercode","")
|
418
|
+
this.setProperty("checkplanitems","username","")
|
419
|
+
switch(this.planItemConditionSelect){
|
420
|
+
case "用户编号":
|
421
|
+
this.setProperty("checkplanitems","usercode",this.planItemConditionValue)
|
422
|
+
break;
|
423
|
+
case "用户名称":
|
424
|
+
this.setProperty("checkplanitems","username",this.planItemConditionValue)
|
425
|
+
break;
|
426
|
+
}
|
427
|
+
}
|
428
|
+
}
|
429
|
+
|
430
|
+
//是否共享计划单选按钮事件
|
431
|
+
isAndNotChange(isAndNotselect){
|
432
|
+
this.sIsAndNotSelect=isAndNotselect
|
433
|
+
if(this.sIsAndNotSelect=="是"){
|
434
|
+
this.setProperty("checkplan","isAndNot","is null")
|
435
|
+
}
|
436
|
+
if(this.sIsAndNotSelect=="否"){
|
437
|
+
this.setProperty("checkplan","isAndNot","is not null")
|
438
|
+
}
|
439
|
+
}
|
440
|
+
|
441
|
+
//按条件查询所有安检计划
|
442
|
+
async loadCheckPlan(sortfield,f) {
|
443
|
+
this.isSend=true
|
444
|
+
this.checkplan.check.checkes=[]
|
445
|
+
if(sortfield){//如果传入空串说明是查询 传入非空串就是排序
|
446
|
+
console.log("进入排序")
|
447
|
+
if(sortfield==this.currentorder){
|
448
|
+
return
|
449
|
+
}else{
|
450
|
+
this.currentorder=sortfield
|
451
|
+
}
|
452
|
+
}
|
453
|
+
let fieldValue=''
|
454
|
+
switch(this.currentorder){
|
455
|
+
case "按时间降序":
|
456
|
+
fieldValue='f_create_time desc'
|
457
|
+
break
|
458
|
+
case "按时间升序":
|
459
|
+
fieldValue='f_create_time'
|
460
|
+
break
|
461
|
+
}
|
462
|
+
console.log("值"+sortfield+"--当前值"+this.currentorder+"---排序值:"+fieldValue)
|
463
|
+
await this.checkplan.searchList("/api/af-safecheck/sql/预约计划下发TS",
|
464
|
+
{"f_plan_name": "f_plan_name like '%{}%'",
|
465
|
+
"f_plan_year":"f_plan_year={}",
|
466
|
+
"f_plan_month":"f_plan_month={}",
|
467
|
+
"checkerid":"f_checker_id='{}'",
|
468
|
+
"isAndNot":"f_checker {}",
|
469
|
+
"safechecktype":"f_safecheck_type='{}'"
|
470
|
+
},
|
471
|
+
{orderitem:fieldValue,
|
472
|
+
f_filialeids:"("+this.filialeid+")",
|
473
|
+
groupitem:""
|
474
|
+
}
|
475
|
+
)
|
476
|
+
this.checkplan.check.checkAll=false
|
477
|
+
this.checkplan.check.checkes=[]
|
478
|
+
f()
|
479
|
+
this.isSend=false
|
480
|
+
}
|
481
|
+
|
482
|
+
// 查询待检用户
|
483
|
+
async searchUser(f) {
|
484
|
+
this.isSend=true
|
485
|
+
this.user.check.checkAll=false
|
486
|
+
this.user.check.checkes=[]
|
487
|
+
this.jointCondition1("conditionList","user")
|
488
|
+
let sday=''
|
489
|
+
let eday=''
|
490
|
+
if(this.startday.trim()!=''){
|
491
|
+
if(isNaN(this.startday) || isNaN(this.endday)){
|
492
|
+
Vue.showMessage("请输入数字!")
|
493
|
+
return
|
494
|
+
}
|
495
|
+
if(this.selectTime=="月"){
|
496
|
+
sday= this.startday*30
|
497
|
+
this.endday.trim()!=''?eday= this.endday*30:eday=''
|
498
|
+
}else{
|
499
|
+
sday= this.startday
|
500
|
+
this.endday.trim()!=''?eday= this.endday:eday=''
|
501
|
+
}
|
502
|
+
if(eday){
|
503
|
+
this.setProperty("user","checkTime"," DATEDIFF(dd,isnull(ua.f_last_check_date,ui.f_createfile_date),GETDATE())>="+parseInt(sday,10)+" and DATEDIFF(dd,isnull(ua.f_last_check_date,ui.f_createfile_date),GETDATE())<="+parseInt(eday,10))
|
504
|
+
}else{
|
505
|
+
this.setProperty("user","checkTime"," DATEDIFF(dd,isnull(ua.f_last_check_date,ui.f_createfile_date),GETDATE())>="+parseInt(sday,10))
|
506
|
+
}
|
507
|
+
|
508
|
+
}else{
|
509
|
+
this.setProperty("user","checkTime","")
|
510
|
+
}
|
511
|
+
if(this.yChecked=='已检'){
|
512
|
+
this.setProperty("user","ychecked","DateName(year,isnull(ua.f_last_check_date,'1990-01-01'))='"+new Date().getFullYear()+"'")
|
513
|
+
}else if(this.yChecked=='未检'){
|
514
|
+
this.setProperty("user","ychecked","DateName(year,isnull(ua.f_last_check_date,'1990-01-01'))!='"+new Date().getFullYear()+"'")
|
515
|
+
}else{
|
516
|
+
this.setProperty("user","ychecked","")
|
517
|
+
}
|
518
|
+
|
519
|
+
//this.user.search.setField("f_year_plan","<>")
|
520
|
+
await this.user.searchList("/api/af-safecheck/sql/FetchUserFileByOrgNoRuHuSXQZXTS", {
|
521
|
+
"f_filialeid": "ui.f_filialeid={}",
|
522
|
+
"userinfocode": "ui.f_userinfo_code='{}'",
|
523
|
+
"username": "ui.f_user_name like '%{}%'",
|
524
|
+
"useraddress": "ua.f_address like '%{}%'",
|
525
|
+
"userType":"uf.f_user_type='{}'",
|
526
|
+
"f_residential_area":"ua.f_residential_area = '{}'",
|
527
|
+
"f_building":"ua.f_building='{}'",
|
528
|
+
"f_unit":"ua.f_unit='{}'",
|
529
|
+
"f_user_state":"ui.f_user_state='{}'",
|
530
|
+
"checkTime":"{}",
|
531
|
+
"uploadCondition":"{}",
|
532
|
+
"f_devices":"de.f_devices_type='{}'",
|
533
|
+
"f_gasproperties":"sp.f_gasproperties='{}'",
|
534
|
+
"f_meter_classify":"uf.f_meter_classify='{}'",
|
535
|
+
"f_table_state":"uf.f_table_state='{}'",
|
536
|
+
"f_meter_brand":"gb.f_meter_brand='{}'",
|
537
|
+
"f_price_type":"sp.f_price_type='{}'",
|
538
|
+
"f_price_name":"sp.f_price_name='{}'",
|
539
|
+
"ychecked":" {}"
|
540
|
+
}, {
|
541
|
+
"orderitem": 'f_residential_area,f_building,f_unit,f_floor,f_room',
|
542
|
+
"f_usertype": '',
|
543
|
+
"month": '',
|
544
|
+
"SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
|
545
|
+
"SafeCheckCQ": '',
|
546
|
+
"startday":""
|
547
|
+
})
|
548
|
+
f()
|
549
|
+
this.isSend=false
|
550
|
+
}
|
551
|
+
|
552
|
+
//限制用户购气
|
553
|
+
LimitBuyGas(){
|
554
|
+
|
555
|
+
}
|
556
|
+
|
557
|
+
planIsChecked(issude,count) {
|
558
|
+
if (issude == '未下发') {
|
559
|
+
return true
|
560
|
+
}
|
561
|
+
if(count == 0){
|
562
|
+
return true
|
563
|
+
}
|
564
|
+
return false
|
565
|
+
}
|
566
|
+
//查询安检员
|
567
|
+
async searchChecker(id){
|
568
|
+
let res=await this.http.load('POST', '/rs/search', {
|
569
|
+
source: 'tool.getChildrenOfResName($安检员$)',
|
570
|
+
userid: id
|
571
|
+
}, {resolveMsg: null, rejectMsg: null})
|
572
|
+
this.checker=[]
|
573
|
+
this.orgChecker=[]
|
574
|
+
res.data.forEach((resRow) => {
|
575
|
+
if(resRow.orgid==this.filialeid){
|
576
|
+
this.checker.push(resRow.name)
|
577
|
+
this.orgChecker.push(resRow)
|
578
|
+
}
|
579
|
+
})
|
580
|
+
console.log("安检员列表---"+JSON.stringify(res)+"---id"+this.filialeid)
|
581
|
+
}
|
582
|
+
|
583
|
+
async searchPlanItems(f) {
|
584
|
+
await this.checkplanitems.searchList("/api/af-safecheck/sql/planItemTS", {"f_plan_id": "f_plan_id={}"}, {})
|
585
|
+
f()
|
586
|
+
}
|
587
|
+
//得到更新数据
|
588
|
+
async getPaper(id,f) {
|
589
|
+
let res=await this.http.load("POST", "/rs/path/getUserinfomation", {
|
590
|
+
data:{
|
591
|
+
condition:"f_check_item_id='"+id+"'"
|
592
|
+
}
|
593
|
+
})
|
594
|
+
|
595
|
+
|
596
|
+
this.suppplanitem=res.data[0]
|
597
|
+
if (this.suppplanitem.f_check_type!=null) {
|
598
|
+
this.suppplanitem["f_user_type"]=this.suppplanitem.f_check_type
|
599
|
+
}
|
600
|
+
this.fdevices=[]
|
601
|
+
|
602
|
+
if(this.suppplanitem.f_devices.length!=0){
|
603
|
+
|
604
|
+
for (let i = 0; i <this.str.length ; i++) {
|
605
|
+
if (this.suppplanitem.f_devices[i]==undefined) {
|
606
|
+
this.fdevices.push({
|
607
|
+
f_device_type: this.str[i].checkname,
|
608
|
+
f_items: []
|
609
|
+
//id: this.suppplanitem.f_devices[i] == undefined ? "" : this.suppplanitem.f_devices[i].id
|
610
|
+
})
|
611
|
+
}else {
|
612
|
+
this.fdevices.push({
|
613
|
+
f_device_type: this.str[i].checkname,
|
614
|
+
f_items: [],
|
615
|
+
id:this.suppplanitem.f_devices[i].id
|
616
|
+
})
|
617
|
+
}
|
618
|
+
}
|
619
|
+
}else{for (let i = 0; i <this.str.length ; i++) {
|
620
|
+
|
621
|
+
this.fdevices.push({f_device_type:this.str[i].checkname,f_items:[]})
|
622
|
+
}}
|
623
|
+
|
624
|
+
this.setFitemvalue()
|
625
|
+
f()
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
}
|
630
|
+
|
631
|
+
//补录时改变fdevice
|
632
|
+
suppfdevice(){
|
633
|
+
for (let i = 0; i <this.str.length ; i++) {
|
634
|
+
this.fdevices.push({f_device_type:this.str[i].checkname,f_items:[]})
|
635
|
+
}
|
636
|
+
}
|
637
|
+
|
638
|
+
|
639
|
+
// 打开安检计划,加载安检计划的所有安检单
|
640
|
+
async openPlan(plan, f) {
|
641
|
+
this.isSend=true
|
642
|
+
this.checkplanitems.check.checkes=[]
|
643
|
+
this.checkplanitems.check.checkAll=false
|
644
|
+
this.SelectedPlan=plan
|
645
|
+
this.plan=plan
|
646
|
+
this.checkplanitems.search.setField("f_plan_id", plan.id)
|
647
|
+
this.checkplanitems.search.setField("f_state", "作废")
|
648
|
+
await this.checkplanitems.searchList("/api/af-safecheck/sql/planItemTS", {"f_plan_id": "i.f_plan_id='{}'","f_state": "i.f_state !='{}'"}, {})
|
649
|
+
f()
|
650
|
+
this.isSend=false
|
651
|
+
//this.checkplanitems.search.model.f_plan_id
|
652
|
+
}
|
653
|
+
|
654
|
+
//根据条件查询某个安检计划下的安检单
|
655
|
+
async searchPlanItem(f) {
|
656
|
+
this.checkplanitems.check.checkes=[]
|
657
|
+
this.checkplanitems.check.checkAll=false
|
658
|
+
if(this.checkplanitems.search.model.f_plan_id){
|
659
|
+
this.isSend=true
|
660
|
+
console.log("进入加载安检计划项"+this.checkplanitems.search.model.f_plan_id)
|
661
|
+
this.jointCondition1("planitemconditionList","checkplanitems")
|
662
|
+
await this.checkplanitems.searchList("/api/af-safecheck/sql/planItemTS",
|
663
|
+
{"f_plan_id": "i.f_plan_id='{}'",
|
664
|
+
"usercode": "i.f_userinfo_code='{}'",
|
665
|
+
"username": "i.f_user_name='{}'",
|
666
|
+
"f_address": "i.f_address like '%{}%'",
|
667
|
+
"f_last_check_state": "i.f_last_check_state='{}' ",
|
668
|
+
"f_start_time": "i.f_last_check_date >='{}'",
|
669
|
+
"f_end_time": "i.f_last_check_date <='{}'",
|
670
|
+
"f_last_check_result":"i.f_last_check_result like '%{}%'",
|
671
|
+
"f_state": "i.f_state !='{}'",
|
672
|
+
"f_state1": "i.f_state ='{}'",
|
673
|
+
"f_area":"i.f_residential_area='{}'"
|
674
|
+
},
|
675
|
+
{})
|
676
|
+
f()
|
677
|
+
this.isSend=false
|
678
|
+
}else{
|
679
|
+
Vue.showMessage("请选择安检计划")
|
680
|
+
}
|
681
|
+
}
|
682
|
+
//加载更多数据
|
683
|
+
async loadMore(modelname,f) {
|
684
|
+
this.isSend=true
|
685
|
+
await this[modelname].list.loadMore()
|
686
|
+
f()
|
687
|
+
this.isSend=false
|
688
|
+
}
|
689
|
+
|
690
|
+
//点击全选按钮事件 user-用户列表 planitem-计划项列表
|
691
|
+
changeCheckAll(modulename, f) {
|
692
|
+
this[modulename].check.setCheckAll()
|
693
|
+
f()
|
694
|
+
}
|
695
|
+
|
696
|
+
//当选中列表中某项时触发
|
697
|
+
addParam(modulename, id) {
|
698
|
+
console.log("当前值"+modulename+"--------"+id)
|
699
|
+
this[modulename].check.setCheckes(id)
|
700
|
+
}
|
701
|
+
selectChanged(modulename, property, value,f){
|
702
|
+
if(value=='全部'){
|
703
|
+
this.setProperty(modulename, property, '')
|
704
|
+
}else{
|
705
|
+
this.setProperty(modulename, property, value)
|
706
|
+
}
|
707
|
+
f()
|
708
|
+
}
|
709
|
+
//设置属性值
|
710
|
+
setProperty(modulename, property, value) {
|
711
|
+
console.log(modulename+"新添--"+property+"--"+value)
|
712
|
+
this[modulename].search.setField(property, value)
|
713
|
+
}
|
714
|
+
|
715
|
+
//列表中的选择框是否被选中
|
716
|
+
hasValue(modulename,value){
|
717
|
+
this[modulename].check.checks.has()
|
718
|
+
}
|
719
|
+
// 给新建安检计划设置属性值
|
720
|
+
setNewPlan(property, value) {
|
721
|
+
console.log(value)
|
722
|
+
this.newPlan[property] = value
|
723
|
+
return this
|
724
|
+
}
|
725
|
+
//将某项拖动到计划中
|
726
|
+
//dragParam:从拖动的起始位置传入的参数
|
727
|
+
async dragtoPlan(f_plan_id,f_safecheck_type,f_filialeid,dragParam,f){
|
728
|
+
console.log("当前传入:"+dragParam)
|
729
|
+
await this.dragtoPlanItem(f_plan_id,f_safecheck_type,dragParam,f)
|
730
|
+
await this.dragtoOtherPlanIteem(f_plan_id,dragParam,f)
|
731
|
+
}
|
732
|
+
|
733
|
+
//将客户信息拖至计划中
|
734
|
+
async dragtoPlanItem(f_plan_id,f_safecheck_type,dragParam,f) {
|
735
|
+
if (this.SelectedPlan.f_plan_year < new Date().getFullYear()) {
|
736
|
+
return Vue.showMessage("禁止给今年之前的计划添加新用户!")
|
737
|
+
}
|
738
|
+
let url=''
|
739
|
+
console.log("计划id:"+f_plan_id+"公司id:"+this.filialeid)
|
740
|
+
if(dragParam=='user'){
|
741
|
+
if(!this.user.check.checkAll && this.user.check.checkes.length==0){
|
742
|
+
Vue.showMessage("请选择用户后再进行添加!")
|
743
|
+
return
|
744
|
+
}
|
745
|
+
this.jointCondition("user")
|
746
|
+
if(this.user.search.model.userType){
|
747
|
+
url="/api/af-safecheck/logic/AddCheckPlanItemCivilTS"
|
748
|
+
/*if(this.user.search.model.userType=='民用'){
|
749
|
+
url="/api/af-safecheck/logic/AddCheckPlanItem"
|
750
|
+
}else if(this.user.search.model.userType=='非民用'){
|
751
|
+
url="/api/af-safecheck/logic/AddCheckPlanItemCivil"
|
752
|
+
}else{
|
753
|
+
Vue.showMessage("用户类型数据异常,请联系管理员!")
|
754
|
+
return
|
755
|
+
}*/
|
756
|
+
}else{
|
757
|
+
Vue.showMessage("请选择用户类型后!在进行计划下派操作")
|
758
|
+
return
|
759
|
+
}
|
760
|
+
if(this.checkplanitems.search.model.f_plan_id){
|
761
|
+
this.isSend=true
|
762
|
+
let res=await this.http.load("POST", url, {
|
763
|
+
data:{
|
764
|
+
f_operator:global.login.name,
|
765
|
+
f_plan_id:f_plan_id,
|
766
|
+
f_safecheck_type:f_safecheck_type,
|
767
|
+
f_filialeid:this.filialeid,
|
768
|
+
f_subscribe_date:'',
|
769
|
+
condition:this.user.search.search({
|
770
|
+
"f_filialeid": "ui.f_filialeid={}",
|
771
|
+
"userinfocode": "ui.f_userinfo_code='{}'",
|
772
|
+
"username": "ui.f_user_name like '%{}%'",
|
773
|
+
"useraddress": "ua.f_address like '%{}%'",
|
774
|
+
"userType":"uf.f_user_type='{}'",
|
775
|
+
"f_residential_area":"ua.f_residential_area = '{}'",
|
776
|
+
"f_building":"ua.f_building='{}'",
|
777
|
+
"f_unit":"ua.f_unit='{}'",
|
778
|
+
"f_user_state":"ui.f_user_state='{}'",
|
779
|
+
"checkTime":"{}",
|
780
|
+
"uploadCondition":"{}",
|
781
|
+
"f_devices":"de.f_devices_type='{}'",
|
782
|
+
"f_gasproperties":"sp.f_gasproperties='{}'",
|
783
|
+
"f_meter_classify":"uf.f_meter_classify='{}'",
|
784
|
+
"f_table_state":"uf.f_table_state='{}'",
|
785
|
+
"f_meter_brand":"gb.f_meter_brand='{}'",
|
786
|
+
"f_price_type":"sp.f_price_type='{}'",
|
787
|
+
"f_price_name":"sp.f_price_name='{}'",
|
788
|
+
"ychecked":" {}"
|
789
|
+
}),
|
790
|
+
switchCheckAll:this.user.check.switchCheckAll,
|
791
|
+
checkAll:this.user.check.checkAll,
|
792
|
+
param:this.user.check.checkes,
|
793
|
+
columnName: "ua.id"
|
794
|
+
}
|
795
|
+
}, {resolveMsg: null, rejectMsg: null})
|
796
|
+
if(res.data.code==200){
|
797
|
+
//alert("添加成功!有"+res.data.result.length+"条用户地址已经存在于其他计划中: \n"+res.data.result.reduce((c,v)=>{c += v.f_user_name+":"+v.f_address+"\n"}),0)
|
798
|
+
Vue.showMessage("本次添加成功"+res.data.resultno[0].con+"户!")
|
799
|
+
}else{
|
800
|
+
if (res.data.msg) {
|
801
|
+
Vue.showMessage(res.data.msg)
|
802
|
+
} else {
|
803
|
+
Vue.showMessage("添加失败!")
|
804
|
+
}
|
805
|
+
}
|
806
|
+
this.user.check.checkes=[]
|
807
|
+
await this.searchUser(()=>{})
|
808
|
+
await this.searchPlanItem(()=>{})
|
809
|
+
await this.loadCheckPlan("",()=>{})
|
810
|
+
f()
|
811
|
+
this.isSend=false
|
812
|
+
}else{
|
813
|
+
Vue.showMessage("请先打开一个计划再进行操作")
|
814
|
+
}
|
815
|
+
}
|
816
|
+
}
|
817
|
+
|
818
|
+
//将某个计划下的一项拖到另一个计划
|
819
|
+
async dragtoOtherPlanIteem(checkplanid,dragParam,f) {
|
820
|
+
/*if(dragParam=='item'){
|
821
|
+
this.isSend=true
|
822
|
+
let res=await this.http.load("POST", "/api/af-safecheck/logic/UpCheckPlanItem", {
|
823
|
+
data:{
|
824
|
+
f_operator:global.login.name,
|
825
|
+
f_plan_id:checkplanid,
|
826
|
+
condition:this.checkplanitems.search.search({"f_plan_id": "i.f_plan_id='{}'",
|
827
|
+
"usercode": "i.f_userinfo_code='{}'",
|
828
|
+
"username": "i.f_user_name='{}'",
|
829
|
+
"f_address": "i.f_address like '%{}%'",
|
830
|
+
"f_last_check_state": "i.f_last_check_state='{}' ",
|
831
|
+
"f_start_time": "i.f_last_check_date >='{}'",
|
832
|
+
"f_end_time": "i.f_last_check_date <='{}'",
|
833
|
+
"f_last_check_result":"i.f_last_check_result like '%{}%'",
|
834
|
+
"f_state1": "i.f_state ='{}'",
|
835
|
+
"f_state": "i.f_state !='{}'",
|
836
|
+
"f_area":"i.f_residential_area='{}'"
|
837
|
+
}),
|
838
|
+
switchCheckAll:this.checkplanitems.check.switchCheckAll,
|
839
|
+
checkAll:this.checkplanitems.check.checkAll,
|
840
|
+
param:this.checkplanitems.check.checkes,
|
841
|
+
columnName: "it.id"
|
842
|
+
}
|
843
|
+
}, {resolveMsg: null, rejectMsg: null})
|
844
|
+
if(res.data.code==200){
|
845
|
+
await this.searchUser(()=>{})
|
846
|
+
await this.searchPlanItem(()=>{})
|
847
|
+
await this.loadCheckPlan("",()=>{})
|
848
|
+
f()
|
849
|
+
Vue.showMessage("更换安检计划成功!")
|
850
|
+
}else{
|
851
|
+
Vue.showMessage("更换安检计划失败!")
|
852
|
+
}
|
853
|
+
f()
|
854
|
+
this.isSend=false
|
855
|
+
}*/
|
856
|
+
|
857
|
+
}
|
858
|
+
//清空用户编号
|
859
|
+
clearUserInfoId(){
|
860
|
+
this.setProperty("user","uploadCondition",'')
|
861
|
+
Vue.showMessage("已清空用户编号")
|
862
|
+
}
|
863
|
+
//修改计划项状态为作废
|
864
|
+
async delPlanItem(dragParam,f) {
|
865
|
+
console.log("进入作废计划项方法")
|
866
|
+
if(dragParam=='item'){
|
867
|
+
if(this.SelectedPlan.f_issued=='已下发'
|
868
|
+
&& global.login.rolestr.indexOf("大区总经理")==-1
|
869
|
+
&& global.login.rolestr.indexOf("集团管理员")==-1
|
870
|
+
&& global.login.rolestr.indexOf("华东大区管理员")==-1
|
871
|
+
&& global.login.rolestr.indexOf("大区管理员")==-1
|
872
|
+
){
|
873
|
+
Vue.showMessage("已下发计划无法删除用户!")
|
874
|
+
return
|
875
|
+
}
|
876
|
+
this.isSend=true
|
877
|
+
let resu=await this.http.load("POST", "/api/af-safecheck/logic/UpCheckPlanItemStateTS", {
|
878
|
+
data: {
|
879
|
+
f_operator:global.login.name,
|
880
|
+
condition:this.checkplanitems.search.search({"f_plan_id": "i.f_plan_id='{}'",
|
881
|
+
"usercode": "i.f_userinfo_code='{}'",
|
882
|
+
"username": "i.f_user_name='{}'",
|
883
|
+
"f_address": "i.f_address like '%{}%'",
|
884
|
+
"f_last_check_state": "i.f_last_check_state='{}' ",
|
885
|
+
"f_start_time": "i.f_last_check_date >='{}'",
|
886
|
+
"f_end_time": "i.f_last_check_date <='{}'",
|
887
|
+
"f_last_check_result":"i.f_last_check_result like '%{}%'",
|
888
|
+
"f_state": "i.f_state !='{}'",
|
889
|
+
"f_state1": "i.f_state ='{}'",
|
890
|
+
"f_area":"i.f_residential_area='{}'"
|
891
|
+
}),
|
892
|
+
switchCheckAll:this.checkplanitems.check.switchCheckAll,
|
893
|
+
checkAll:this.checkplanitems.check.checkAll,
|
894
|
+
param:this.checkplanitems.check.checkes,
|
895
|
+
columnName: "i.id"
|
896
|
+
}
|
897
|
+
}, {resolveMsg: null, rejectMsg: null})
|
898
|
+
console.log("-----------"+JSON.stringify(resu.data))
|
899
|
+
if(resu.data.code==200){
|
900
|
+
Vue.showMessage("作废安检单成功! 成功作废:"+resu.data.res.up+"条"+(resu.data.res.noup>0?"有"+resu.data.res.noup+"条已经不是 ‘未检’ 状态!":""))
|
901
|
+
await this.searchUser(()=>{})
|
902
|
+
await this.searchPlanItem(()=>{})
|
903
|
+
await this.loadCheckPlan("",()=>{})
|
904
|
+
f()
|
905
|
+
}else{
|
906
|
+
Vue.showMessage("取消安检计划失败!")
|
907
|
+
}
|
908
|
+
this.isSend=false
|
909
|
+
}
|
910
|
+
}
|
911
|
+
|
912
|
+
//新建计划
|
913
|
+
async addNewPlan(f) {
|
914
|
+
if(!this.validationCreatePlan()){
|
915
|
+
return
|
916
|
+
}
|
917
|
+
this.isSend=true
|
918
|
+
if(this.newPlan.f_safecheck_type=='散户安检'){
|
919
|
+
let res=await this.http.load("POST","/api/af-safecheck/sql/getCheckplan", {data: {condition:`f_plan_year='${this.newPlan.f_plan_year}' and f_plan_month='${this.newPlan.f_plan_month}' and f_checker_id='${this.newPlan.f_checker_id}' and f_safecheck_type='${this.newPlan.f_safecheck_type}'`,sortfield:'f_create_time desc'}}, {resolveMsg: null, rejectMsg: null})
|
920
|
+
console.log("结果-"+res.data.length)
|
921
|
+
if(res.data.length>0){
|
922
|
+
Vue.showMessage("当月已生成该安检员的散户计划,无法再次生成!")
|
923
|
+
this.isSend=false
|
924
|
+
return
|
925
|
+
}else{
|
926
|
+
this.newPlan.f_plan_name=this.newPlan.f_plan_year+"年"+this.newPlan.f_plan_month+"月散户计划"
|
927
|
+
}
|
928
|
+
}
|
929
|
+
|
930
|
+
if(this.isShare=="是"){
|
931
|
+
this.newPlan.f_checker_id=null
|
932
|
+
this.newPlan.f_checker=null
|
933
|
+
}
|
934
|
+
let d1=new Date()
|
935
|
+
this.newPlan.f_plan_name=d1.getFullYear()+'年'+(d1.getMonth()+1)+'月'+this.newPlan.f_plan_name+'年度专项计划'
|
936
|
+
this.newPlan.f_plan_type='预约计划'
|
937
|
+
this.newPlan.f_subcompany=global.login.orgs
|
938
|
+
this.newPlan.f_filialeid=this.filialeid
|
939
|
+
this.newPlan.f_create_operator=global.login.name
|
940
|
+
this.newPlan.f_create_time=this.getNowFormatDate()
|
941
|
+
await Vue.resetpost("/api/af-safecheck/logic/createCheckPlanTS", {"data": this.newPlan},{resolveMsg : '新建计划成功!', rejectMsg : '新建计划失败!'},2500)
|
942
|
+
await this.loadCheckPlan('',()=>{})
|
943
|
+
this.newPlan={f_issued:"否",f_safecheck_type:"专项计划"}
|
944
|
+
this.isShare="否"
|
945
|
+
f()
|
946
|
+
window.dispatchEvent(new CustomEvent("goRefresh"),{})
|
947
|
+
this.isSend=false
|
948
|
+
}
|
949
|
+
|
950
|
+
// 取消新建安检计划
|
951
|
+
cancel() {
|
952
|
+
this.newPlan={f_issued:"否",f_safecheck_type:"专项计划"}
|
953
|
+
this.isShare="否"
|
954
|
+
this.plan={}
|
955
|
+
}
|
956
|
+
|
957
|
+
//获取安检计划中已办数量,除去所有未办的,都算已办
|
958
|
+
/*getChecked(plan) {
|
959
|
+
//console.log("加载已办数量"+JSON.stringify(plan))
|
960
|
+
return this.sum(plan.f_items,'f_state', 'num', ['已检', '作废'])
|
961
|
+
}
|
962
|
+
|
963
|
+
//获取安检计划未检数量
|
964
|
+
getNotChecked(plan) {
|
965
|
+
//console.log("加载未检数量"+JSON.stringify(plan))
|
966
|
+
return this.sum(plan.f_items,'f_state', 'num', ['未检'])
|
967
|
+
}
|
968
|
+
|
969
|
+
// 获取总数
|
970
|
+
getSumItem(plan) {
|
971
|
+
//console.log("加载总数量"+JSON.stringify(plan))
|
972
|
+
return this.sum(plan.f_items,'f_state', 'num', ['未检', '已检', '作废'])
|
973
|
+
}
|
974
|
+
|
975
|
+
sum(arr,keyName, sumName, keys) {
|
976
|
+
return arr.reduce(function(prev, curr, idx, arr){
|
977
|
+
// 如果求和主键包括当前主键,进行累加,否则,不累加
|
978
|
+
if (keys.find(function(v) {
|
979
|
+
return v === curr[keyName]
|
980
|
+
})) {
|
981
|
+
return prev + curr[sumName];
|
982
|
+
} else {
|
983
|
+
return prev
|
984
|
+
}
|
985
|
+
}, 0)
|
986
|
+
}*/
|
987
|
+
// 取年的选择项目
|
988
|
+
years() {
|
989
|
+
return date.yearSelects
|
990
|
+
}
|
991
|
+
/*
|
992
|
+
1.获取配置文件
|
993
|
+
2.组装配置文件 (配置文件[] JS提前固定的数组[] return [])
|
994
|
+
*/
|
995
|
+
|
996
|
+
// str = [
|
997
|
+
// {
|
998
|
+
// "checkname": "燃气表",
|
999
|
+
// "checkmust":false,
|
1000
|
+
// "items":[
|
1001
|
+
// {"lname": "表具状态","multiple":false,"type":"selector","options":[{"data":"正常","isdefect":false,"isdefault": true},{"data":"包裹","isdefect":true,"level":"C2","isdefault": false,"tooltip":"1.整改时限1日,2,禁止使用,及时联系公司客服"},{"data":"漏气","isdefect":true,"level":"A1","isdefault": false,"tooltip":"1.整改时限1日,2,禁止使用,及时联系公司客服"}]},
|
1002
|
+
// {"lname": "表故障","multiple":true,"type":"selector","options":[{"data":"正常","isdefect":false,"isdefault": true},{"data":"破损变形","isdefect":true,"level":"B2","isdefault": false,"tooltip":"1.整改时限1日,2,禁止使用,及时联系公司客服"},{"data":"失效","isdefect":true,"level":"B2","isdefault": false},{"data":"不走字","isdefect":true,"level":"B2","isdefault": false},{"data":"铅封损坏","isdefect":true,"level":"B2","isdefault": false},{"data":"气表到期(使用年限超过八年)","isdefect":true,"level":"B2","isdefault": false}]},
|
1003
|
+
// {"lname": "腐蚀","multiple":false,"type":"selector","options":[{"data":"正常","isdefect":false,"isdefault": true},{"data":"轻微","isdefect":false,"isdefault": false},{"data":"中度","isdefect":false,"isdefault": false},{"data":"严重","isdefect":true,"level":"A2","isdefault": false,"tooltip":"1.整改时限1日,2,禁止使用,及时联系公司客服"}]},
|
1004
|
+
// {"lname": "使用年限","type":"string", "data": 8,"isshow": false}
|
1005
|
+
// ]
|
1006
|
+
// },
|
1007
|
+
// {
|
1008
|
+
// "checkname": "阀门",
|
1009
|
+
// "checkmust":true,
|
1010
|
+
// "items":[
|
1011
|
+
// {"lname": "阀门","multiple":true,"type":"selector","options":[{"data":"无阀门","isdefect":true,"level":"A2"},{"data":"无阀柄","isdefect":true,"level":"A2"},{"data":"失效","isdefect":true,"level":"A2"}]},
|
1012
|
+
// {"lname": "表前阀","multiple":false,"type":"selector","options":[{"data":"正常","isdefect":false,"isdefault": true},{"data":"异常","isdefect":true,"level":"A1","isdefault": false}]},
|
1013
|
+
// {"lname": "灶前阀","multiple":false,"type":"selector","options":[{"data":"正常","isdefect":false,"isdefault": true},{"data":"异常","isdefect":true,"level":"A1","isdefault": false}]},
|
1014
|
+
// {"lname":"使用年限","type":"string", "data": 8,"isshow": false}
|
1015
|
+
// ]
|
1016
|
+
// },
|
1017
|
+
// {
|
1018
|
+
// "checkname": "户内管",
|
1019
|
+
// "quantity": 2,
|
1020
|
+
// "checkmust":true,
|
1021
|
+
// "items":[
|
1022
|
+
// {"lname": "穿墙管","multiple":false,"type":"selector","options":[{"data":"正常","isdefect":false,"isdefault": true},{"data":"异常","isdefect":true,"level":"A8"}]},
|
1023
|
+
// {"lname": "胶管","multiple":true,"type":"selector","options":[{"data":"正常","isdefect":false,"isdefault": true},{"data":"老化、超期使用","isdefect":true,"level":"A8"},{"data":"未紧箍","isdefect":true,"level":"C2"},
|
1024
|
+
// {"data":"软管穿墙","isdefect":true,"level":"C2"},{"data":"软管超长(长度超过两米)","isdefect":true,"level":"C2"},{"data":"非专用软管","isdefect":true,"level":"C2"}]},
|
1025
|
+
// {"lname": "镀锌管","multiple":false,"type":"selector","options":[{"data":"正常","isdefect":false,"isdefault": true},{"data":"异常","isdefect":true,"level":"A8"}]},
|
1026
|
+
// {"lname": "铝塑管、波纹管","multiple":false,"type":"selector","options":[{"data":"正常","isdefect":false,"isdefault": true},{"data":"异常","isdefect":true,"level":"A8"}]},
|
1027
|
+
// {"lname": "热水器管","multiple":false,"type":"selector","options":[{"data":"正常","isdefect":false,"isdefault": true},{"data":"异常","isdefect":true,"level":"A8"}]},
|
1028
|
+
// {"lname":"使用年限","type":"string", "data": 8,"isshow": false}
|
1029
|
+
// ]
|
1030
|
+
// },
|
1031
|
+
// {
|
1032
|
+
// "checkname": "热水器",
|
1033
|
+
// "quantity": 0,
|
1034
|
+
// "checkmust":false,
|
1035
|
+
// "items":[
|
1036
|
+
// {"lname": "热水器品牌","type":"string"},
|
1037
|
+
// {"lname": "热水器烟道","multiple":true,"type":"selector","options":[{"data":"正常","isdefect":false},{"data":"未安装烟道","isdefect":true,"level":"A8","tooltip":"1.整改时限1日,2,禁止使用,及时联系公司客服"},{"data":"烟道未与大气直接连通","isdefect":true,"level":"A8"},{"data":"安装不规范","isdefect":true,"level":"A8"}]},
|
1038
|
+
// {"lname": "安装位置","multiple":false,"type":"selector","options":[{"data":"卫生间","isdefect":false},{"data":"卧室","isdefect":true,"level":"A8"},
|
1039
|
+
// {"data":"客厅过道","isdefect":true,"level":"A8"},{"data":"内厨房","isdefect":true,"level":"A8"},{"data":"其他密封或通风不良房间","isdefect":true,"level":"A8"}]},
|
1040
|
+
// {"lname": "工作状态","multiple":false,"type":"selector","options":[{"data":"正常","isdefect":false},{"data":"异常","isdefect":true,"level":"A8"}]},
|
1041
|
+
// {"lname":"使用年限","type":"string", "data": 4,"isshow": false}
|
1042
|
+
// ]
|
1043
|
+
// },
|
1044
|
+
// {
|
1045
|
+
// "checkname": "燃气具",
|
1046
|
+
// "checkmust":false,
|
1047
|
+
// "items":[
|
1048
|
+
// {"lname": "燃气具品牌","type":"string"},
|
1049
|
+
// {"lname": "安装位置","multiple":false,"type":"selector","options":[{"data":"正常","isdefect":false,"isdefault": true},{"data":"异常","isdefect":true,"level":"A8","isdefault": false}]},
|
1050
|
+
// {"lname": "安装状况","multiple":false,"type":"selector","options":[{"data":"正常","isdefect":false,"isdefault": true},{"data":"超年限(使用年限为8年)","isdefect":true,"level":"A8","isdefault": false}]},
|
1051
|
+
// {"lname":"使用年限","multiple":false,"type":"string", "data": 4}
|
1052
|
+
// ]
|
1053
|
+
// },
|
1054
|
+
// {
|
1055
|
+
// "checkname": "其他",
|
1056
|
+
// "checkmust":false,
|
1057
|
+
// "items":[
|
1058
|
+
// {"lname": "使用简易三通","multiple":false,"type":"selector","options":[{"data":"否","isdefect":false},{"data":"是","isdefect":true,"level":"A8"}]},
|
1059
|
+
// {"lname": "私自安装、改迁燃气设施及设备","multiple":false,"type":"selector","options":[{"data":"否","isdefect":false},{"data":"是","isdefect":true,"level":"A8","tooltip":"1.整改时限1日,2,禁止使用,及时联系公司客服"}]},
|
1060
|
+
// {"lname": "违反安全间距规定","multiple":false,"type":"selector","options":[{"data":"否","isdefect":false},{"data":"是","isdefect":true,"level":"A8"}]},
|
1061
|
+
// {"lname": "燃气设施及设备上搭挂重物","multiple":false,"type":"selector","options":[{"data":"否","isdefect":false},{"data":"是","isdefect":true,"level":"A8"}]},
|
1062
|
+
// {"lname": "燃气管道被作电器接地线使用","multiple":false,"type":"selector","options":[{"data":"否","isdefect":false},{"data":"是","isdefect":true,"level":"A8"}]}
|
1063
|
+
// ]
|
1064
|
+
// }
|
1065
|
+
// ]
|
1066
|
+
//str=[{"checkname":"热水器","index":3,"items":[{"lname":"烟道式安装在卫生间","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":1,"type":"selector"},{"lname":"已过八年强制报废期","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":4,"type":"selector"},{"lname":"热水器泄露","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":3,"type":"selector"},{"lname":"热水器品牌","index":5,"type":"string"},{"lname":"启用时间","index":6,"type":"date"},{"lname":"强制式安排在卫生间","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":2,"type":"selector"}]},{"checkname":"炉","index":2,"items":[{"lname":"嵌入式炉子下面柜门无通风口","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":4,"type":"selector"},{"lname":"炉泄露","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":1,"type":"selector"},{"lname":"已过8年强制报废期","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":2,"type":"selector"},{"lname":"炉子品牌","index":5,"type":"string"},{"lname":"无自动熄火保护装置","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":3,"type":"selector"},{"lname":"启用时间","index":6,"type":"date"}]},{"checkname":"灶前阀","index":4,"items":[{"lname":"无把柄","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":3,"type":"selector"},{"lname":"泄露","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":1,"type":"selector"},{"lname":"开关不便","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":2,"type":"selector"}]},{"checkname":"其他","index":7,"items":[{"lname":"其他/压力","index":1,"type":"string"}]},{"checkname":"胶管","index":5,"items":[{"lname":"超2年","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":2,"type":"selector"},{"lname":"超2米","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":4,"type":"selector"},{"lname":"穿墙","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":5,"type":"selector"},{"lname":"老化","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":1,"type":"selector"},{"lname":"无管卡","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":3,"type":"selector"}]},{"checkname":"管道","index":6,"items":[{"lname":"泄露","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":1,"type":"selector"},{"lname":"一般锈蚀","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":4,"type":"selector"},{"lname":"暗埋","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":2,"type":"selector"},{"lname":"严重锈蚀","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":3,"type":"selector"},{"lname":"悬挂物品","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":5,"type":"selector"}]},{"checkname":"燃气表","index":1,"items":[{"lname":"表前阀无把柄","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":16,"type":"selector"},{"lname":"运转正常","multiple":false,"options":[{"isdefect":false,"data":"是"},{"isdefect":false,"data":"否","isdefault":true}],"index":11,"type":"selector"},{"lname":"表不转动","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":12,"type":"selector"},{"lname":"表前阀泄露","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":15,"type":"selector"},{"lname":"表前阀开关不便","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":17,"type":"selector"},{"lname":"未封表","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":13,"type":"selector"},{"lname":"封闭无通风","multiple":false,"options":[{"isdefect":true,"data":"是","isdefault":false},{"isdefect":false,"data":"否","isdefault":true}],"index":14,"type":"selector"}]}]
|
1067
|
+
|
1068
|
+
|
1069
|
+
//遍历选择框以及得到list
|
1070
|
+
getselector(){
|
1071
|
+
this.listbutton=[]
|
1072
|
+
|
1073
|
+
for (let i = 0; i <this.str.length ; i++) {
|
1074
|
+
let strlist=[]
|
1075
|
+
strlist=this.str[i].items.concat()
|
1076
|
+
for (let j = 0; j <strlist.length ; j++) {
|
1077
|
+
strlist[j]["mname"]=this.str[i].checkname
|
1078
|
+
}
|
1079
|
+
strlist.splice(0,0,{lname:this.str[i].checkname+":",type:"",mname:""})
|
1080
|
+
let bb=this.listbutton
|
1081
|
+
this.listbutton=bb.concat(strlist)
|
1082
|
+
|
1083
|
+
|
1084
|
+
}
|
1085
|
+
|
1086
|
+
let h=this.listbutton
|
1087
|
+
for (let i = 0; i <h.length ; i++) {
|
1088
|
+
|
1089
|
+
h[i]["selected"]=""
|
1090
|
+
h[i]["level"]=""
|
1091
|
+
h[i]["isdefect"]=""
|
1092
|
+
if (h[i].type =="selector"){
|
1093
|
+
let size=h[i].options.length
|
1094
|
+
|
1095
|
+
let pl=[]
|
1096
|
+
for (let j = 0; j <size ; j++) {
|
1097
|
+
let n=h[i].lname+h[i].mname
|
1098
|
+
|
1099
|
+
pl.push(h[i].options[j].data)
|
1100
|
+
this.planItemConditional[n]=pl
|
1101
|
+
|
1102
|
+
}
|
1103
|
+
}
|
1104
|
+
}
|
1105
|
+
|
1106
|
+
|
1107
|
+
}
|
1108
|
+
//返回遍历的option
|
1109
|
+
reoption(key1,key2){
|
1110
|
+
|
1111
|
+
let modelname=key1+key2
|
1112
|
+
return this.planItemConditional[modelname]
|
1113
|
+
|
1114
|
+
}
|
1115
|
+
|
1116
|
+
|
1117
|
+
// 取月的选择项目
|
1118
|
+
months() {
|
1119
|
+
return date.monthSelects
|
1120
|
+
}
|
1121
|
+
|
1122
|
+
//下发安检计划
|
1123
|
+
async sendCheckPlan(f){
|
1124
|
+
if(this.checkplan.check.checkes.length<1){
|
1125
|
+
Vue.showMessage("请选择要下发的安检计划")
|
1126
|
+
return
|
1127
|
+
}
|
1128
|
+
this.isSend=true
|
1129
|
+
let res=await this.http.load("POST", "/api/af-safecheck/logic/NewBespeakCheckPlanTS", {
|
1130
|
+
data:{
|
1131
|
+
f_issued:'是',
|
1132
|
+
f_issue_time:this.getNowFormatDate(),
|
1133
|
+
f_send_operator:global.login.name,
|
1134
|
+
param:this.checkplan.check.checkes,
|
1135
|
+
}
|
1136
|
+
}, {resolveMsg: null, rejectMsg: null})
|
1137
|
+
if(res.data.code==200){
|
1138
|
+
//Vue.showMessage("下发成功!其中有"+res.data.repet+"个计划己经是下发状态")
|
1139
|
+
Vue.showMessage("下发成功!")
|
1140
|
+
await this.loadCheckPlan('',()=>{})
|
1141
|
+
f()
|
1142
|
+
}else{
|
1143
|
+
Vue.showMessage("下发失败!")
|
1144
|
+
}
|
1145
|
+
this.isSend=false
|
1146
|
+
}
|
1147
|
+
|
1148
|
+
//删除安检计划
|
1149
|
+
async delCheckPlan(f){
|
1150
|
+
if(this.checkplan.check.checkes.length<1){
|
1151
|
+
Vue.showMessage("请选择要删除的安检计划")
|
1152
|
+
return
|
1153
|
+
}
|
1154
|
+
this.isSend=true
|
1155
|
+
let res=await this.http.load("POST", "/api/af-safecheck/logic/deleteCheckPlanTS", {
|
1156
|
+
data:{
|
1157
|
+
f_operator:global.login.name,//global.login.name,
|
1158
|
+
condition:this.checkplan.search.search({}),
|
1159
|
+
switchCheckAll:this.checkplan.check.switchCheckAll,
|
1160
|
+
checkAll:this.checkplan.check.checkAll,
|
1161
|
+
param:this.checkplan.check.checkes,
|
1162
|
+
columnName: "f_plan_id"
|
1163
|
+
}
|
1164
|
+
}, {resolveMsg: "删除成功!", rejectMsg: "删除失败!"})
|
1165
|
+
console.log(JSON.stringify(res))
|
1166
|
+
if(res.data.code==200){
|
1167
|
+
Vue.showAlert("删除成功!","success",2500)
|
1168
|
+
await this.loadCheckPlan('',()=>{})
|
1169
|
+
}else{
|
1170
|
+
Vue.showAlert("删除失败!","success",2500)
|
1171
|
+
}
|
1172
|
+
this.checkplanitems.search.model.f_plan_id=""
|
1173
|
+
this.checkplanitems.list.data=[]
|
1174
|
+
f()
|
1175
|
+
this.isSend=false
|
1176
|
+
}
|
1177
|
+
//修改计划时 用来存储当前选中要修改的计划
|
1178
|
+
plan={}
|
1179
|
+
setPlanVal(value){
|
1180
|
+
console.log(value)
|
1181
|
+
this.plan=JSON.parse(JSON.stringify( value ))
|
1182
|
+
}
|
1183
|
+
setPlan(key,val){
|
1184
|
+
this.plan[key]=val
|
1185
|
+
}
|
1186
|
+
isUpdate(key1,key2){
|
1187
|
+
if (key1=="已检"&&key2!="补录"){
|
1188
|
+
return true;
|
1189
|
+
}
|
1190
|
+
return false;
|
1191
|
+
}
|
1192
|
+
//修改安检计划
|
1193
|
+
async upCheckPlan(f){
|
1194
|
+
if(this.plan.f_issued=='已下发'){
|
1195
|
+
Vue.showMessage("该计划已下发,无法进行修改!")
|
1196
|
+
return
|
1197
|
+
}
|
1198
|
+
this.isSend=true
|
1199
|
+
let res=await this.http.load("POST", "/api/af-safecheck/logic/updateCheckPlanTS", {
|
1200
|
+
data:{
|
1201
|
+
f_checker:this.plan.f_checker,
|
1202
|
+
f_checker_id:this.plan.f_checker_id,
|
1203
|
+
f_plan_name:this.plan.f_plan_name,
|
1204
|
+
f_plan_year:this.plan.f_plan_year,
|
1205
|
+
f_plan_month:this.plan.f_plan_month,
|
1206
|
+
f_plan_id:this.plan.id
|
1207
|
+
}
|
1208
|
+
}, {resolveMsg: null, rejectMsg: null})
|
1209
|
+
if(res.data.code==200){
|
1210
|
+
Vue.showAlert("修改成功!"+res.data.message,"success",2500)
|
1211
|
+
await this.loadCheckPlan('',()=>{})
|
1212
|
+
}else{
|
1213
|
+
Vue.showAlert("修改失败!"+res.data.message,"success",2500)
|
1214
|
+
}
|
1215
|
+
f()
|
1216
|
+
window.dispatchEvent(new CustomEvent("goRefresh"),{})
|
1217
|
+
this.isSend=false
|
1218
|
+
}
|
1219
|
+
|
1220
|
+
/* getDataLength(modelname){
|
1221
|
+
console.log("sdadasdasdasdadasdadddddddddddddddddddddddddddddddddddddddddddd")
|
1222
|
+
let l=this[modelname].list.data.length
|
1223
|
+
console.log("--"+l)
|
1224
|
+
return l
|
1225
|
+
}*/
|
1226
|
+
//新建安检计划非空判断
|
1227
|
+
validationCreatePlan(){
|
1228
|
+
if(this.newPlan.f_safecheck_type!='散户安检'){
|
1229
|
+
if(!this.newPlan.f_plan_name){
|
1230
|
+
Vue.showMessage("请输入安检计划名称!")
|
1231
|
+
return false
|
1232
|
+
}
|
1233
|
+
}
|
1234
|
+
if(!this.newPlan.f_plan_year){
|
1235
|
+
Vue.showMessage("请选择安检年份!")
|
1236
|
+
return false
|
1237
|
+
}
|
1238
|
+
if(!this.newPlan.f_plan_month){
|
1239
|
+
Vue.showMessage("请选择安检月份!")
|
1240
|
+
return false
|
1241
|
+
}
|
1242
|
+
if(this.isShare=="否"){
|
1243
|
+
if(!this.newPlan.f_checker){
|
1244
|
+
Vue.showMessage("请选择安检人员!")
|
1245
|
+
return false
|
1246
|
+
}
|
1247
|
+
}else{
|
1248
|
+
this.newPlan.f_checker=''
|
1249
|
+
}
|
1250
|
+
if(!this.newPlan.f_safecheck_type){
|
1251
|
+
Vue.showMessage("请选择安检类型!")
|
1252
|
+
return false
|
1253
|
+
}
|
1254
|
+
|
1255
|
+
return true
|
1256
|
+
}
|
1257
|
+
|
1258
|
+
//调用updatecheckpaper
|
1259
|
+
async addNewPaper(f){
|
1260
|
+
this.setFdevices()
|
1261
|
+
this.setfDevicesid()
|
1262
|
+
//return;
|
1263
|
+
for (var i = 0; i <this.checkerMess.length ; i++) {
|
1264
|
+
if (this.checkerMess[i].name==this.suppplanitem.f_checker_name){
|
1265
|
+
this.suppplanitem["f_checker_id"]=this.checkerMess[i].id
|
1266
|
+
}
|
1267
|
+
}
|
1268
|
+
//console.log(this.fdevices)
|
1269
|
+
//return;
|
1270
|
+
this.suppplanitem["f_devices"]=this.fdevices
|
1271
|
+
this.suppplanitem.f_check_type=this.suppplanitem.f_user_type
|
1272
|
+
this.suppplanitem.f_state = "已检"
|
1273
|
+
this.suppplanitem.f_approved = "未审核"
|
1274
|
+
this.suppplanitem.f_complete = "已完成"
|
1275
|
+
this.suppplanitem.f_no_checkplan ="有计划安检"
|
1276
|
+
//return;
|
1277
|
+
this.suppplanitem.f_check_plan_id=this.suppplanitem.f_plan_id
|
1278
|
+
|
1279
|
+
let res=await this.http.load("POST", "/api/af-safecheck/logic/SuppCheckPaperTS", {data:{paper:this.suppplanitem}})
|
1280
|
+
|
1281
|
+
this.openPlan(this.plan,f)
|
1282
|
+
f()
|
1283
|
+
}
|
1284
|
+
addnewPaper(f){
|
1285
|
+
delete this.suppplanitem.id
|
1286
|
+
this.addNewPaper(f)
|
1287
|
+
}
|
1288
|
+
updatePaper(f){
|
1289
|
+
this.addNewPaper(f)
|
1290
|
+
}
|
1291
|
+
setNewPaper(property,value){
|
1292
|
+
this.suppplanitem[property] = value
|
1293
|
+
|
1294
|
+
|
1295
|
+
|
1296
|
+
return this
|
1297
|
+
}
|
1298
|
+
|
1299
|
+
setFdevices(){
|
1300
|
+
|
1301
|
+
|
1302
|
+
var ar=this.listbutton
|
1303
|
+
var br=this.fdevices
|
1304
|
+
for (var i = 0; i <br .length; i++) {
|
1305
|
+
for (var j = 0; j < ar.length; j++) {
|
1306
|
+
if (br[i].f_device_type == ar[j].mname) {
|
1307
|
+
br[i].f_items.push({
|
1308
|
+
f_item_name: ar[j].lname,
|
1309
|
+
f_item_value: ar[j].selected,
|
1310
|
+
type: ar[j].type,
|
1311
|
+
f_is_defect: ar[j].isdefect,
|
1312
|
+
f_defect_level: ar[j].level,
|
1313
|
+
f_item_lists:[{
|
1314
|
+
//f_item_id: "",
|
1315
|
+
f_item_value: ar[j].selected,
|
1316
|
+
//id:""
|
1317
|
+
}]
|
1318
|
+
})
|
1319
|
+
}
|
1320
|
+
}
|
1321
|
+
}
|
1322
|
+
}
|
1323
|
+
//给fdevices赋值id
|
1324
|
+
setfDevicesid(){
|
1325
|
+
var suppf=this.suppplanitem.f_devices
|
1326
|
+
var fde=this.fdevices
|
1327
|
+
if (this.suppplanitem.hasOwnProperty("f_devices")){
|
1328
|
+
for (let i = 0; i <suppf.length ; i++) {
|
1329
|
+
for (let j = 0; j <fde.length; j++) {
|
1330
|
+
if (suppf[i].f_device_type==fde[j].f_device_type){
|
1331
|
+
for (let k = 0; k <suppf[i].f_items.length ; k++) {
|
1332
|
+
// console.log("789456123")
|
1333
|
+
for (let l = 0; l <fde[j].f_items.length ; l++) {
|
1334
|
+
// console.log("11111111111111")
|
1335
|
+
if (suppf[i].f_items[k].f_item_name==fde[j].f_items[l].f_item_name) {
|
1336
|
+
fde[j].f_items[l]["id"]=suppf[i].f_items[k].id
|
1337
|
+
if (suppf[i].f_items[k].f_item_lists.length!=0){
|
1338
|
+
fde[j].f_items[l].f_item_lists[0]["id"]=suppf[i].f_items[k].f_item_lists[0].id
|
1339
|
+
fde[j].f_items[l].f_item_lists[0]["f_item_id"]=suppf[i].f_items[k].f_item_lists[0].f_item_id
|
1340
|
+
}
|
1341
|
+
}
|
1342
|
+
}
|
1343
|
+
}
|
1344
|
+
}
|
1345
|
+
}
|
1346
|
+
}
|
1347
|
+
}else {
|
1348
|
+
this.suppplanitem.f_upload_date=this.getNowFormatDate()
|
1349
|
+
}
|
1350
|
+
}
|
1351
|
+
//
|
1352
|
+
setFitemvalue(){
|
1353
|
+
for (var k = 0; k <this.listbutton.length ; k++) {
|
1354
|
+
for (var i = 0; i <this.suppplanitem.f_devices.length ; i++) {
|
1355
|
+
for (var j = 0; j < this.suppplanitem.f_devices[i].f_items.length; j++) {
|
1356
|
+
if (this.listbutton[k].lname==this.suppplanitem.f_devices[i].f_items[j].f_item_name){
|
1357
|
+
this.listbutton[k].selected=this.suppplanitem.f_devices[i].f_items[j].f_item_value
|
1358
|
+
}
|
1359
|
+
}
|
1360
|
+
}
|
1361
|
+
}
|
1362
|
+
}
|
1363
|
+
//改变selected属性
|
1364
|
+
changeSelected(selectedname,selectedmname,selectedvalue){
|
1365
|
+
var sa=this.listbutton
|
1366
|
+
for (var i = 0; i <sa.length; i++) {
|
1367
|
+
if (sa[i].lname==selectedname&&sa[i].mname==selectedmname){
|
1368
|
+
sa[i].selected=selectedvalue
|
1369
|
+
if (sa[i].type=="selector"){//判断是否是选择类型
|
1370
|
+
for (var j = 0; j < sa[i].options.length; j++) {
|
1371
|
+
if (sa[i].options[j].data==selectedvalue){//赋值为json的level和isdefect
|
1372
|
+
sa[i].level=sa[i].options[j].level
|
1373
|
+
sa[i].isdefect=sa[i].options[j].isdefect
|
1374
|
+
}
|
1375
|
+
}
|
1376
|
+
}
|
1377
|
+
}
|
1378
|
+
}
|
1379
|
+
//console.log(this.fdevices)
|
1380
|
+
}
|
1381
|
+
async getAreaList() {
|
1382
|
+
let res =await new HttpResetClass().load('POST', '/api/af-safecheck/logic/safe_singleTable_GroupBy', {
|
1383
|
+
data: {
|
1384
|
+
items: 'f_residential_area',
|
1385
|
+
tablename: 't_area',
|
1386
|
+
condition: 'f_filialeid = '+this.filialeid,
|
1387
|
+
groupitem: 'f_residential_area'
|
1388
|
+
}
|
1389
|
+
}, {resolveMsg: null, rejectMsg: null})
|
1390
|
+
if (res.data) {
|
1391
|
+
let arr=['全部']
|
1392
|
+
this.areaList=res.data
|
1393
|
+
for(let i =0 ;i<res.data.length;i++){
|
1394
|
+
arr.push(res.data[i].f_residential_area)
|
1395
|
+
}
|
1396
|
+
//this.conditionJson[0].options=arr
|
1397
|
+
this.residential_area=arr
|
1398
|
+
}
|
1399
|
+
|
1400
|
+
}
|
1401
|
+
|
1402
|
+
//获取当前时间
|
1403
|
+
getNowFormatDate() {
|
1404
|
+
let date = new Date();
|
1405
|
+
let seperator1 = "-";
|
1406
|
+
let seperator2 = ":";
|
1407
|
+
let month = date.getMonth() + 1;
|
1408
|
+
let strDate = date.getDate();
|
1409
|
+
let hour = date.getHours();
|
1410
|
+
let min = date.getMinutes();
|
1411
|
+
let second = date.getSeconds();
|
1412
|
+
if (month >= 1 && month <= 9) {
|
1413
|
+
month = "0" + month;
|
1414
|
+
}
|
1415
|
+
if (strDate >= 0 && strDate <= 9) {
|
1416
|
+
strDate = "0" + strDate;
|
1417
|
+
}
|
1418
|
+
if (hour >= 0 && hour <= 9) {
|
1419
|
+
hour = "0" + hour;
|
1420
|
+
}
|
1421
|
+
if (min >= 0 && min <= 9) {
|
1422
|
+
min = "0" + min;
|
1423
|
+
}
|
1424
|
+
if (second >= 0 && second <= 9) {
|
1425
|
+
second = "0" + second;
|
1426
|
+
}
|
1427
|
+
let currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
1428
|
+
+ " " + hour + seperator2 + min
|
1429
|
+
+ seperator2 + second;
|
1430
|
+
return currentdate;
|
1431
|
+
}
|
1432
|
+
//获取安检人员
|
1433
|
+
async getGasMan(){
|
1434
|
+
|
1435
|
+
let http = new HttpResetClass()
|
1436
|
+
let getGasman = await http.load('POST', '/rs/search', {
|
1437
|
+
source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
|
1438
|
+
userid: global.login.id
|
1439
|
+
}, {resolveMsg: null, rejectMsg: null})
|
1440
|
+
|
1441
|
+
this.checkerMess=getGasman.data
|
1442
|
+
for (var i = 0; i <getGasman.data.length ; i++) {
|
1443
|
+
this.checkersname.push(getGasman.data[i].name)
|
1444
|
+
}
|
1445
|
+
|
1446
|
+
}
|
1447
|
+
async getOrgs(){
|
1448
|
+
let http = new HttpResetClass()
|
1449
|
+
let orgs = await http.load('POST', '/rs/search', {
|
1450
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $organization$)',
|
1451
|
+
userid: global.login.id
|
1452
|
+
//userid:"15130"
|
1453
|
+
}, {resolveMsg: null, rejectMsg: '获取分公司出错!!!'})
|
1454
|
+
console.log("分公司--"+JSON.stringify(orgs))
|
1455
|
+
this.orgs = []
|
1456
|
+
if(orgs.data.length>0){
|
1457
|
+
orgs.data.forEach((res) => {
|
1458
|
+
this.orgs.push({label: res.name, value: res.id})
|
1459
|
+
})
|
1460
|
+
}else{
|
1461
|
+
this.orgs.push({label: this.filialeidname, value:this.filialeid})
|
1462
|
+
// this.orgs.push({label: '测试公司', value:222})
|
1463
|
+
}
|
1464
|
+
|
1465
|
+
|
1466
|
+
}
|
1467
|
+
|
1468
|
+
|
1469
|
+
//excel导出
|
1470
|
+
async exportFile(){
|
1471
|
+
if(this.user.list.data.length==0){
|
1472
|
+
Vue.showMessage("未检测到要导出的用户,请检查条件!")
|
1473
|
+
return
|
1474
|
+
}
|
1475
|
+
this.isSend=true
|
1476
|
+
//this.jointCondition1("planitemconditionList","checkplanitems")
|
1477
|
+
let res=await this.http.load('POST','api/af-safecheck/logic/exportfile',
|
1478
|
+
{
|
1479
|
+
"data": {
|
1480
|
+
"body": {
|
1481
|
+
"data": {
|
1482
|
+
"condition": this.user.search.search({
|
1483
|
+
"f_filialeid": "ui.f_filialeid={}",
|
1484
|
+
"userinfocode": "ui.f_userinfo_code='{}'",
|
1485
|
+
"username": "ui.f_user_name like '%{}%'",
|
1486
|
+
"useraddress": "ua.f_address like '%{}%'",
|
1487
|
+
"userType":"uf.f_user_type='{}'",
|
1488
|
+
"f_residential_area":"ua.f_residential_area = '{}'",
|
1489
|
+
"f_building":"ua.f_building='{}'",
|
1490
|
+
"f_unit":"ua.f_unit='{}'",
|
1491
|
+
"f_user_state":"ui.f_user_state='{}'",
|
1492
|
+
"checkTime":"{}",
|
1493
|
+
"uploadCondition":"{}",
|
1494
|
+
"f_devices":"de.f_devices_type='{}'",
|
1495
|
+
"f_gasproperties":"sp.f_gasproperties='{}'",
|
1496
|
+
"f_meter_classify":"uf.f_meter_classify='{}'",
|
1497
|
+
"f_table_state":"uf.f_table_state='{}'",
|
1498
|
+
"f_meter_brand":"gb.f_meter_brand='{}'",
|
1499
|
+
"f_price_type":"sp.f_price_type='{}'",
|
1500
|
+
"f_price_name":"sp.f_price_name='{}'",
|
1501
|
+
"ychecked":" {}"
|
1502
|
+
}),
|
1503
|
+
"orderitem": 'f_residential_area,f_building,f_unit,f_floor,f_room',
|
1504
|
+
"f_usertype": '',
|
1505
|
+
"month": '',
|
1506
|
+
"SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
|
1507
|
+
"SafeCheckCQ": '',
|
1508
|
+
"startday":"",
|
1509
|
+
"f_plan_year":new Date().getFullYear()
|
1510
|
+
},
|
1511
|
+
"field": ["f_userinfo_code:用户编号","f_user_name:用户名称", "f_user_type:用户类型","f_user_phone:用户电话","f_residential_area:小区名称","f_last_check_date:最后一次安检时间","f_last_check_state:最后一次安检状态","f_address:详细地址"],
|
1512
|
+
"templateName": '用户安检情况',
|
1513
|
+
"sqlName": "FetchUserFileByOrgNoRuHuSXQZXTS"
|
1514
|
+
},
|
1515
|
+
}
|
1516
|
+
}
|
1517
|
+
,{resolveMsg: null, rejectMsg: null})
|
1518
|
+
console.log("excel结果---"+JSON.stringify(res))
|
1519
|
+
let link = document.createElement('a');
|
1520
|
+
let path = res.data[0].filename
|
1521
|
+
//webapps这个是在服务器上导出用的
|
1522
|
+
let pathName = "http://" + location.host + "/webapps" + path.split('webapps')[1]
|
1523
|
+
//excel这个是在本地导出用的
|
1524
|
+
link.href = pathName;
|
1525
|
+
link.download = path.split('excel/')[1];
|
1526
|
+
link.dispatchEvent(new MouseEvent('click'));
|
1527
|
+
this.isSend=false
|
1528
|
+
}
|
1529
|
+
flush(f){
|
1530
|
+
f()
|
1531
|
+
}
|
1532
|
+
}
|