apply-clients 3.0.4 → 3.0.5-ys
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/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/{dist-android/static/.gitkeep → .gradle/5.2.1/gc.properties} +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/doc//346/226/260/347/224/250/346/210/267/350/212/261/345/220/215/345/206/214/345/257/274/345/205/245/346/250/241/346/235/277.xls +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/gradlew +0 -0
- package/gradlew.bat +84 -0
- package/index.html +26 -17
- package/package.json +8 -5
- package/src/App.vue +14 -21
- package/src/apply.js +55 -2
- package/src/applyAndroid.js +1 -1
- package/src/bootstrap/less/aofeng/animate.min.css +11 -0
- package/src/bootstrap/less/aofeng/standard.less +591 -0
- package/src/bootstrap/less/aofeng/themeOne/BinaryTemplate.less +478 -0
- package/src/bootstrap/less/aofeng/themeOne/loginStyle.less +1586 -0
- package/src/bootstrap/less/aofeng/themeOne/systemStyle.less +1915 -0
- package/src/bootstrap/less/aofeng/themeOne.less +10 -0
- package/src/bootstrap/less/aofeng/themeTwo/newStyle1.less +415 -0
- package/src/bootstrap/less/aofeng/themeTwo.less +2 -0
- package/src/bootstrap/less/bootstrap.less +11 -0
- package/src/bootstrap/less/forms.less +2 -2
- package/src/bootstrap/less/manageStyle/manageChile.less +180 -0
- package/src/bootstrap/less/manageStyle/manageStyle.less +1103 -0
- package/src/bootstrap/less/manageStyle/qinhuaStyle.less +116 -0
- package/src/bootstrap/less/manageStyle/safeStyle.less +498 -0
- package/src/bootstrap/less/manageStyle/telephoneanaly.less +92 -0
- package/src/bootstrap/less/navs.less +2 -3
- package/src/bootstrap/less/stand.less +207 -0
- package/src/bootstrap/less/standard.less +503 -0
- package/src/bootstrap/less/systemStyle.less +860 -0
- package/src/bootstrap/less/variables.less +2 -1
- package/src/components/Util.js +26 -22
- package/src/components/app_apply/ApplyDownList.vue +21 -8
- package/src/components/app_apply/ApplyToDoList.vue +94 -59
- package/src/components/app_apply/ApplyUserInfo.vue +3 -3
- package/src/components/app_apply/FieldExploration.vue +2 -2
- package/src/components/app_apply/PlaceControler.vue +16 -19
- package/src/components/app_apply/ServiceControl.vue +1136 -16
- package/src/components/app_apply/ServiceView.vue +395 -167
- package/src/components/app_apply/Ventilation.vue +2 -2
- package/src/components/image/doc.jpg +0 -0
- package/src/components/image/excel.jpg +0 -0
- package/src/components/image/pdf.jpg +0 -0
- package/src/components/image//345/233/276/345/261/20212.png +0 -0
- package/src/components/image//345/233/276/345/261/20213.png +0 -0
- package/src/components/image//345/233/276/345/261/20216.png +0 -0
- package/src/components/image//345/244/232/350/276/271/345/275/2422.png +0 -0
- package/src/components/image//345/244/232/350/276/271/345/275/2422/346/213/267/350/264/235.png +0 -0
- package/src/components/image//346/244/255/345/234/2062.png +0 -0
- package/src/components/image//346/244/255/345/234/2065.png +0 -0
- package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/235.png +0 -0
- package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2352.png +0 -0
- package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2353.png +0 -0
- package/src/components/image//347/273/2044.png +0 -0
- package/src/components/image//347/273/2045.png +0 -0
- package/src/components/image//347/273/2046.png +0 -0
- package/src/components/image//350/257/235/345/212/241/347/273/237/350/256/241/346/225/260/346/215/256/345/261/225/347/244/272.png +0 -0
- package/src/components/product/BatchFunction/BatchPay.vue +694 -0
- package/src/components/product/Bill/BillXSDMakeInfo.vue +1 -1
- package/src/components/product/Function/InstallFunction.vue +17 -13
- package/src/components/product/Function/InstallInfoSelect.vue +293 -71
- package/src/components/product/Function/Service/FunctionServiceControl.vue +50 -5
- package/src/components/product/Function/functions/AddContract.vue +161 -139
- package/src/components/product/Function/functions/BuyerMessage.vue +285 -137
- package/src/components/product/Function/functions/InstallFee.vue +1141 -912
- package/src/components/product/Function/functions/InstallFeeInfo.vue +5 -5
- package/src/components/product/Function/functions/PrestoreFee.vue +4 -4
- package/src/components/product/Function/functions/StopInstall.vue +14 -2
- package/src/components/product/HiddenDangersInProjects/AddHiddenDangers.vue +965 -0
- package/src/components/product/HiddenDangersInProjects/HiddenProjectList.vue +433 -0
- package/src/components/product/HiddenDangersInProjects/HiddenProjectSchedule.vue +146 -0
- package/src/components/product/MaterialBatchList.vue +109 -0
- package/src/components/product/MaterialBatchManage.vue +34 -0
- package/src/components/product/Procedures/ProceduresDataGrid.vue +1022 -0
- package/src/components/product/Process/ExplorationSelect.vue +767 -416
- package/src/components/product/Process/ExplorationUser.vue +96 -51
- package/src/components/product/Process/MaterialUseList.vue +159 -0
- package/src/components/product/Process/ModifyUserFiles.vue +1 -1
- package/src/components/product/Process/ProcessInfo/history_control.vue +29 -6
- package/src/components/product/Process/Processes/CustomerBuildingMessage.vue +5 -5
- package/src/components/product/Process/Processes/CustomerEquipmentMessage.vue +1 -1
- package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +499 -210
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +1457 -753
- package/src/components/product/Process/Processes/ProjectSettlement.vue +535 -24
- package/src/components/product/Process/Processes/ReceiveBatch.vue +301 -121
- package/src/components/product/Process/Processes/Service/ApplyChangeHistory.vue +105 -0
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +87 -68
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +2521 -422
- package/src/components/product/Process/ShowBackReason.vue +1 -1
- package/src/components/product/ProjectManagement/AddProjectSchedule.vue +896 -0
- package/src/components/product/ProjectManagement/ProjectList.vue +406 -0
- package/src/components/product/ProjectManagement/ProjectSchedule.vue +144 -0
- package/src/components/product/ReportForm/PaymentRecord.vue +801 -0
- package/src/components/product/ReportForm/PaymentRecordAdd.vue +105 -0
- package/src/components/product/ReportForm/PaymentRecordBad.vue +1273 -0
- package/src/components/product/ReportForm/PaymentRecordDetailed.vue +472 -0
- package/src/components/product/ReportForm/PaymentRecordTooBad.vue +60 -0
- package/src/components/product/ReportForm/PaymentReport.vue +532 -0
- package/src/components/product/ReportForm/ProjectReport.vue +447 -0
- package/src/components/product/ReportForm/SettlementReport.vue +336 -0
- package/src/components/product/ReportForm/SummaryReport.vue +451 -0
- package/src/components/product/ReportForm/UserReport.vue +402 -0
- package/src/components/product/ServiceView.vue +383 -123
- package/src/components/product/Statistics/ApplyStatisticsROOT.vue +27 -0
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +247 -23
- package/src/components/product/Supervisory/SupervisoryControl.vue +104 -44
- package/src/components/product/Supervisory/SupervisoryList.vue +412 -54
- package/src/components/product/Supervisory/SupervisoryhCart.vue +6 -3
- package/src/components/product/VueUtils/ApplyUpload.vue +310 -0
- package/src/components/product/VueUtils/Tree.vue +330 -0
- package/src/components/product/VueUtils/rightview/InstallCardList2.vue +35 -44
- package/src/components/product/VueUtils/rightview/carddetail/BuildFeeDetail2.vue +1 -1
- package/src/components/product/VueUtils/rightview/carddetail/ChangeFeeDetail2.vue +1 -1
- package/src/components/product/VueUtils/rightview/carddetail/ReduceFeeDetail2.vue +1 -1
- package/src/components/product/VueUtils/rightview/carddetail/StopApplyDetail2.vue +2 -2
- package/src/main.js +4 -2
- package/src/stores/ApplyLoadParams.js +1 -1
- package/src/stores/PagedListLogic.js +173 -0
- package/{dist-android/static/denglu.png → static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png} +0 -0
- package/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
- package/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
- package/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
- package/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
- package/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
- package/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
- package/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
- package/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
- package/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
- package/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
- package/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
- package/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
- package/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
- package/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
- package/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
- package/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
- package/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
- package/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
- package/static/newStyle/clear.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/{dist-android/static/psicon.png → static/newStyle/left-img.png} +0 -0
- package/static/newStyle/list_ok.png +0 -0
- package/static/newStyle/login-check.png +0 -0
- package/static/newStyle/login-con.png +0 -0
- package/static/newStyle/login-do.gif +0 -0
- package/static/newStyle/login-f.png +0 -0
- package/static/newStyle/login-info.png +0 -0
- package/static/newStyle/login-left.png +0 -0
- package/static/newStyle/login-org.png +0 -0
- package/static/newStyle/login-pwd.png +0 -0
- package/static/newStyle/login-user.png +0 -0
- package/static/newStyle/loginbg.gif +0 -0
- package/static/newStyle/loginbg1280.gif +0 -0
- package/static/newStyle/loginbg1366.gif +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/stretch_bottom.png +0 -0
- package/static/newStyle/stretch_left.png +0 -0
- package/static/newStyle/stretch_right.png +0 -0
- package/static/newStyle/stretch_top.png +0 -0
- package/static/newStyle/system-off.png +0 -0
- package/success.rar +0 -0
- package/.npmignore +0 -12
- package/dist-android/index.html +0 -3
- package/dist-android/static/0.js +0 -2
- package/dist-android/static/0.js.map +0 -1
- package/dist-android/static/1.js +0 -2
- package/dist-android/static/1.js.map +0 -1
- package/dist-android/static/10.js +0 -2
- package/dist-android/static/10.js.map +0 -1
- package/dist-android/static/11.js +0 -2
- package/dist-android/static/11.js.map +0 -1
- package/dist-android/static/12.js +0 -2
- package/dist-android/static/12.js.map +0 -1
- package/dist-android/static/13.js +0 -2
- package/dist-android/static/13.js.map +0 -1
- package/dist-android/static/14.js +0 -2
- package/dist-android/static/14.js.map +0 -1
- package/dist-android/static/15.js +0 -2
- package/dist-android/static/15.js.map +0 -1
- package/dist-android/static/16.js +0 -2
- package/dist-android/static/16.js.map +0 -1
- package/dist-android/static/17.js +0 -2
- package/dist-android/static/17.js.map +0 -1
- package/dist-android/static/18.js +0 -2
- package/dist-android/static/18.js.map +0 -1
- package/dist-android/static/19.js +0 -2
- package/dist-android/static/19.js.map +0 -1
- package/dist-android/static/2.js +0 -2
- package/dist-android/static/2.js.map +0 -1
- package/dist-android/static/20.js +0 -2
- package/dist-android/static/20.js.map +0 -1
- package/dist-android/static/21.js +0 -2
- package/dist-android/static/21.js.map +0 -1
- package/dist-android/static/22.js +0 -2
- package/dist-android/static/22.js.map +0 -1
- package/dist-android/static/23.js +0 -2
- package/dist-android/static/23.js.map +0 -1
- package/dist-android/static/24.js +0 -2
- package/dist-android/static/24.js.map +0 -1
- package/dist-android/static/25.js +0 -2
- package/dist-android/static/25.js.map +0 -1
- package/dist-android/static/26.js +0 -2
- package/dist-android/static/26.js.map +0 -1
- package/dist-android/static/27.js +0 -2
- package/dist-android/static/27.js.map +0 -1
- package/dist-android/static/28.js +0 -2
- package/dist-android/static/28.js.map +0 -1
- package/dist-android/static/29.js +0 -2
- package/dist-android/static/29.js.map +0 -1
- package/dist-android/static/3.js +0 -2
- package/dist-android/static/3.js.map +0 -1
- package/dist-android/static/30.js +0 -2
- package/dist-android/static/30.js.map +0 -1
- package/dist-android/static/31.js +0 -2
- package/dist-android/static/31.js.map +0 -1
- package/dist-android/static/32.js +0 -2
- package/dist-android/static/32.js.map +0 -1
- package/dist-android/static/33.js +0 -2
- package/dist-android/static/33.js.map +0 -1
- package/dist-android/static/34.js +0 -2
- package/dist-android/static/34.js.map +0 -1
- package/dist-android/static/35.js +0 -2
- package/dist-android/static/35.js.map +0 -1
- package/dist-android/static/36.js +0 -2
- package/dist-android/static/36.js.map +0 -1
- package/dist-android/static/37.js +0 -2
- package/dist-android/static/37.js.map +0 -1
- package/dist-android/static/38.js +0 -2
- package/dist-android/static/38.js.map +0 -1
- package/dist-android/static/39.js +0 -2
- package/dist-android/static/39.js.map +0 -1
- package/dist-android/static/4.js +0 -2
- package/dist-android/static/4.js.map +0 -1
- package/dist-android/static/40.js +0 -2
- package/dist-android/static/40.js.map +0 -1
- package/dist-android/static/41.js +0 -2
- package/dist-android/static/41.js.map +0 -1
- package/dist-android/static/42.js +0 -2
- package/dist-android/static/42.js.map +0 -1
- package/dist-android/static/43.js +0 -2
- package/dist-android/static/43.js.map +0 -1
- package/dist-android/static/44.js +0 -2
- package/dist-android/static/44.js.map +0 -1
- package/dist-android/static/45.js +0 -2
- package/dist-android/static/45.js.map +0 -1
- package/dist-android/static/46.js +0 -2
- package/dist-android/static/46.js.map +0 -1
- package/dist-android/static/47.js +0 -2
- package/dist-android/static/47.js.map +0 -1
- package/dist-android/static/48.js +0 -2
- package/dist-android/static/48.js.map +0 -1
- package/dist-android/static/49.js +0 -2
- package/dist-android/static/49.js.map +0 -1
- package/dist-android/static/5.js +0 -2
- package/dist-android/static/5.js.map +0 -1
- package/dist-android/static/50.js +0 -2
- package/dist-android/static/50.js.map +0 -1
- package/dist-android/static/51.js +0 -2
- package/dist-android/static/51.js.map +0 -1
- package/dist-android/static/52.js +0 -2
- package/dist-android/static/52.js.map +0 -1
- package/dist-android/static/53.js +0 -2
- package/dist-android/static/53.js.map +0 -1
- package/dist-android/static/54.js +0 -2
- package/dist-android/static/54.js.map +0 -1
- package/dist-android/static/55.js +0 -2
- package/dist-android/static/55.js.map +0 -1
- package/dist-android/static/56.js +0 -2
- package/dist-android/static/56.js.map +0 -1
- package/dist-android/static/57.js +0 -2
- package/dist-android/static/57.js.map +0 -1
- package/dist-android/static/58.js +0 -2
- package/dist-android/static/58.js.map +0 -1
- package/dist-android/static/59.js +0 -2
- package/dist-android/static/59.js.map +0 -1
- package/dist-android/static/60.js +0 -2
- package/dist-android/static/60.js.map +0 -1
- package/dist-android/static/61.js +0 -2
- package/dist-android/static/61.js.map +0 -1
- package/dist-android/static/62.js +0 -2
- package/dist-android/static/62.js.map +0 -1
- package/dist-android/static/63.js +0 -2
- package/dist-android/static/63.js.map +0 -1
- package/dist-android/static/64.js +0 -2
- package/dist-android/static/64.js.map +0 -1
- package/dist-android/static/65.js +0 -2
- package/dist-android/static/65.js.map +0 -1
- package/dist-android/static/66.js +0 -2
- package/dist-android/static/66.js.map +0 -1
- package/dist-android/static/67.js +0 -2
- package/dist-android/static/67.js.map +0 -1
- package/dist-android/static/68.js +0 -2
- package/dist-android/static/68.js.map +0 -1
- package/dist-android/static/69.js +0 -2
- package/dist-android/static/69.js.map +0 -1
- package/dist-android/static/7.js +0 -6
- package/dist-android/static/7.js.map +0 -1
- package/dist-android/static/70.js +0 -2
- package/dist-android/static/70.js.map +0 -1
- package/dist-android/static/71.js +0 -2
- package/dist-android/static/71.js.map +0 -1
- package/dist-android/static/72.js +0 -2
- package/dist-android/static/72.js.map +0 -1
- package/dist-android/static/73.js +0 -2
- package/dist-android/static/73.js.map +0 -1
- package/dist-android/static/74.js +0 -2
- package/dist-android/static/74.js.map +0 -1
- package/dist-android/static/75.js +0 -2
- package/dist-android/static/75.js.map +0 -1
- package/dist-android/static/76.js +0 -2
- package/dist-android/static/76.js.map +0 -1
- package/dist-android/static/8.js +0 -2
- package/dist-android/static/8.js.map +0 -1
- package/dist-android/static/9.js +0 -3
- package/dist-android/static/9.js.map +0 -1
- package/dist-android/static/app.css +0 -2
- package/dist-android/static/app.css.map +0 -1
- package/dist-android/static/app.js +0 -80
- package/dist-android/static/app.js.map +0 -1
- package/dist-android/static/batchleft.png +0 -0
- package/dist-android/static/batchright.png +0 -0
- package/dist-android/static/bluemainbg.jpg +0 -0
- package/dist-android/static/config.json +0 -7
- package/dist-android/static/glyphicons-halflings-regular.eot +0 -0
- package/dist-android/static/glyphicons-halflings-regular.svg +0 -288
- package/dist-android/static/glyphicons-halflings-regular.ttf +0 -0
- package/dist-android/static/glyphicons-halflings-regular.woff +0 -0
- package/dist-android/static/glyphicons-halflings-regular.woff2 +0 -0
- package/dist-android/static/huangtengbiaozhi.png +0 -0
- package/dist-android/static/jingyin.jpg +0 -0
- package/dist-android/static/login_bg.jpg +0 -0
- package/dist-android/static/login_title.png +0 -0
- package/dist-android/static/login_title1.png +0 -0
- package/dist-android/static/loginbg.jpg +0 -0
- package/dist-android/static/loginlogo.png +0 -0
- package/dist-android/static/main_logo.png +0 -0
- package/dist-android/static/mainbg.jpg +0 -0
- package/dist-android/static/menulogo.png +0 -0
- package/dist-android/static/newmainbg.jpg +0 -0
- package/dist-android/static/singleleft.png +0 -0
- package/dist-android/static/singleright.png +0 -0
- package/dist-android/static/treeopen.png +0 -0
- package/dist-android/static/treeout.png +0 -0
- package/dist-android/static/treeset.png +0 -0
- package/dist-android/static/usericon.png +0 -0
- package/dist-android/static/workflow_apply.json +0 -766
- package/dist-android/static/xinxi.png +0 -0
- package/dist-android/static//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
- package/dist-android/static//345/256/211/346/243/200/345/257/274/350/210/252/347/253/226/345/261/2173.png +0 -0
- package/dist-android/static//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
- package/dist-android/static//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
- package/src/assets/shipin1.mp4 +0 -0
- package/yarn.lock +0 -9008
|
@@ -1,13 +1,64 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<show-back-reason class="auto col-sm-7" v-if="selectdata.f_back_reason && selectdata.f_back_reason!=''"
|
|
4
|
+
:data="show_data"></show-back-reason>
|
|
5
|
+
<div class="auto col-sm-7" v-if="!(selectdata.f_back_reason && selectdata.f_back_reason!='')"></div>
|
|
6
|
+
<div class="auto col-sm-4">
|
|
7
|
+
<p v-show="changeHistoryData.length>0" class="text-right" href="#" @click="searchChangeHistory"><a href="#">点我查看修改历史</a>
|
|
8
|
+
</p>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
<br>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
<!-- <gas-stop v-if="selectdata.defname == '收费'"></gas-stop>-->
|
|
15
|
+
<!-- 经纬表具查询 -->
|
|
16
|
+
<watch-management v-if="selectdata.defname=='气表安装'" v-ref:brandgas></watch-management>
|
|
17
|
+
<!-- 燎原报建缴费 -->
|
|
18
|
+
<batch-pay :selectdata="selectdata" v-if="selectdata.defname=='报建缴费' && selectdata.f_apply_type=='新用户' && selectdata.f_roster == '有'" v-ref:charge></batch-pay>
|
|
19
|
+
<!-- 新用户时核对 -->
|
|
20
|
+
<!-- <div :model="sure_data" class="col-sm-12">-->
|
|
21
|
+
<!-- <div class="form-group col-sm-2">-->
|
|
22
|
+
<!-- <label class="col-sm-6">项目名称:</label>-->
|
|
23
|
+
<!-- <div class="col-sm-6">-->
|
|
24
|
+
<!-- <input type="text" class="form-control" placeholder='' v-model="sure_data.f_entry_name" readonly="readonly">-->
|
|
25
|
+
<!-- </div>-->
|
|
26
|
+
<!-- </div>-->
|
|
27
|
+
<!-- <div class="form-group col-sm-2">-->
|
|
28
|
+
<!-- <label class="col-sm-6">项目编号:</label>-->
|
|
29
|
+
<!-- <div class="col-sm-6">-->
|
|
30
|
+
<!-- <input type="text" class="form-control" placeholder='' v-model="sure_data.f_entry_num" readonly="readonly">-->
|
|
31
|
+
<!-- </div>-->
|
|
32
|
+
<!-- </div>-->
|
|
33
|
+
<!-- <div class="form-group col-sm-2">-->
|
|
34
|
+
<!-- <label class="col-sm-6">合计:</label>-->
|
|
35
|
+
<!-- <div class="col-sm-6">-->
|
|
36
|
+
<!-- <input type="text" class="form-control" placeholder='' v-model="sure_data.f_sum" readonly="readonly">-->
|
|
37
|
+
<!-- </div>-->
|
|
38
|
+
<!-- </div>-->
|
|
39
|
+
<!-- </div>-->
|
|
40
|
+
<material-message v-if="selectdata.defname=='材料导入'" v-ref:material
|
|
6
41
|
:selectdata="selectdata"
|
|
42
|
+
:state="2"
|
|
7
43
|
:edit="true"></material-message>
|
|
8
|
-
<
|
|
44
|
+
<material-message v-if="selectdata.defname=='材料审核'" v-ref:material
|
|
45
|
+
:selectdata="selectdata"
|
|
46
|
+
:state="1"
|
|
47
|
+
:edit="true"></material-message>
|
|
48
|
+
<!-- <receive-batch v-if="selectdata.defname == '派工单'" :selectdata="selectdata" :showprint="true"-->
|
|
49
|
+
<!-- v-ref:receivebatch></receive-batch>-->
|
|
9
50
|
<project-settlement v-if="selectdata.defname == '工程结算'" :selectdata="selectdata"></project-settlement>
|
|
10
|
-
<installfee :infee="selectdata" :showfee='true' v-if="selectdata.defname == '
|
|
51
|
+
<installfee :infee="selectdata" :showfee='true' v-if="selectdata.defname == '通水条件确认'"></installfee>
|
|
52
|
+
<buyer-message v-ref:buyermessagev :selectdata="selectdata" :state="1"
|
|
53
|
+
v-if="selectdata.defname == '收费'||selectdata.defname == '勘察初设'"></buyer-message>
|
|
54
|
+
<installfee :infee="selectdata" v-if="selectdata.defname == '收费'"></installfee>
|
|
55
|
+
<record-message v-if="selectdata.defname=='营收数据导入'" v-ref:record :selectdata="selectdata" :key="'tittle22'"
|
|
56
|
+
:edit="true">
|
|
57
|
+
</record-message>
|
|
58
|
+
<!--查询按钮-->
|
|
59
|
+
<!-- <div class="col-sm-4" style="height: 20px; float: right" v-if="this.selectdata.defname == '核对' && this.selectdata.f_apply_type =='新用户' && selectdata.f_roster == '有'">-->
|
|
60
|
+
<!-- <button type="button" class="btn btn-success" style="float: right" @click="search">刷新</button>-->
|
|
61
|
+
<!-- </div>-->
|
|
11
62
|
<service-view v-ref:service_show :data="show_data" v-if="showview" :is_show_datacheck="datacheck"></service-view>
|
|
12
63
|
|
|
13
64
|
<modal :show.sync="showbuyerinfo" v-ref:modal backdrop="false">
|
|
@@ -38,8 +89,10 @@
|
|
|
38
89
|
<td style="text-align: center">{{row.f_buyer_addphone}}</td>
|
|
39
90
|
<td style="text-align: center">{{row.f_buyer_bank}}</td>
|
|
40
91
|
<td style="text-align: center">{{row.f_buyer_email}}</td>
|
|
41
|
-
<td style="text-align: center"
|
|
42
|
-
<button type="button" class="btn btn-success"
|
|
92
|
+
<td style="text-align: center">
|
|
93
|
+
<button type="button" class="btn btn-success"
|
|
94
|
+
@click='$parent.$parent.$parent.$parent.confirmbuyerinfo(row)'>选择
|
|
95
|
+
</button>
|
|
43
96
|
</td>
|
|
44
97
|
</template>
|
|
45
98
|
</data-grid>
|
|
@@ -51,14 +104,20 @@
|
|
|
51
104
|
<button v-show="showbuyerinfo" type="button" class="btn btn-default" @click='closebuyerinfo'>取消</button>
|
|
52
105
|
</footer>
|
|
53
106
|
</modal>
|
|
107
|
+
<modal :show.sync="showChangeHistoryInfo" v-ref:modal backdrop="false">
|
|
108
|
+
<header slot="modal-header" class="modal-header">
|
|
109
|
+
<button type="button" class="close" @click="closeChangeHistoryInfo"><span>×</span></button>
|
|
110
|
+
<h4 class="modal-title">更改历史</h4>
|
|
111
|
+
</header>
|
|
112
|
+
<article slot="modal-body" class="modal-body">
|
|
113
|
+
<div class="col-sm-12 span recordTable" style="margin-top: 10px;min-height: 350px">
|
|
114
|
+
<apply-change-history v-if="showChangeHistoryInfo" :history_data="changeHistoryData"></apply-change-history>
|
|
115
|
+
</div>
|
|
116
|
+
</article>
|
|
117
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
118
|
+
</footer>
|
|
119
|
+
</modal>
|
|
54
120
|
|
|
55
|
-
<!--打印报表html-->
|
|
56
|
-
<div v-show="false">
|
|
57
|
-
<div class="row" style="display: flex;justify-content: center;" id='bill-fee'>
|
|
58
|
-
{{{bill}}}
|
|
59
|
-
</div>
|
|
60
|
-
<report-print id='bill-fee' top='15mm' left='5mm' width='90%' height='70%' :showbtn="false" preview="true" v-ref:reportprint></report-print>
|
|
61
|
-
</div>
|
|
62
121
|
|
|
63
122
|
</template>
|
|
64
123
|
<script>
|
|
@@ -88,70 +147,127 @@
|
|
|
88
147
|
props: ['selectdata'],
|
|
89
148
|
data() {
|
|
90
149
|
return {
|
|
150
|
+
leijijiaofeijine:0, //累计缴费金额
|
|
151
|
+
tujiansum: 0,
|
|
152
|
+
anzhuangsum: 0,
|
|
153
|
+
showChangeHistoryInfo: false, // 历史数据模态框
|
|
154
|
+
changeHistoryData: [], // 修改历史数据处理
|
|
91
155
|
data: null, // 数据库数据,json配置文件数据的数据集合
|
|
92
156
|
json_datas: null, // Json配置文件集合
|
|
93
157
|
showview: false, // 控制显示service-view组件
|
|
94
158
|
show_data: null, // 给view层显示的数据
|
|
95
|
-
department_search:
|
|
159
|
+
department_search: [], // 当前部门下所有人
|
|
96
160
|
contract: null, // 单值表合同编号记录
|
|
97
|
-
technologist:[], // 技术人员 角色下的人
|
|
98
|
-
price:0,
|
|
99
|
-
cost:0,
|
|
100
|
-
number:0,
|
|
101
|
-
pgd:'',
|
|
161
|
+
technologist: [], // 技术人员 角色下的人
|
|
162
|
+
price: 0,
|
|
163
|
+
cost: 0,
|
|
164
|
+
number: 0,
|
|
165
|
+
pgd: '',
|
|
102
166
|
showbuyerinfo: false, // 新增购货方信息模态框开关
|
|
103
167
|
selectsellid: null, //需要打票收费id
|
|
104
|
-
buyerinfo:{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
168
|
+
buyerinfo: {
|
|
169
|
+
id: '',
|
|
170
|
+
f_buyer_name: '',
|
|
171
|
+
f_buyer_identify: '',
|
|
172
|
+
f_buyer_addphone: '',
|
|
173
|
+
f_buyer_bank: '',
|
|
174
|
+
f_buyer_email: '',
|
|
175
|
+
rows: [] // 购货方信息
|
|
112
176
|
},
|
|
113
|
-
bill: ''
|
|
177
|
+
bill: '',
|
|
178
|
+
nowcost: 0,
|
|
179
|
+
f_controller: 0,
|
|
180
|
+
sure_show: false,
|
|
181
|
+
sure_data: {
|
|
182
|
+
f_entry_name: null,
|
|
183
|
+
f_entry_num: null,
|
|
184
|
+
f_sum: null
|
|
185
|
+
},
|
|
186
|
+
sum: null,
|
|
187
|
+
batchPay: this.selectdata
|
|
114
188
|
}
|
|
115
189
|
},
|
|
116
190
|
methods: {
|
|
117
|
-
/*
|
|
118
|
-
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
191
|
+
/*
|
|
192
|
+
============================================收费临时使用
|
|
193
|
+
*/
|
|
194
|
+
// 判断部门
|
|
195
|
+
checkParetment() {
|
|
196
|
+
return;
|
|
197
|
+
let flag = ''
|
|
198
|
+
let str = this.$appdata.getSingleValue("客户服务部")
|
|
199
|
+
let str2 = this.$appdata.getSingleValue("工程技术部")
|
|
200
|
+
let arr = str.split(",")
|
|
201
|
+
let arr2 = str2.split(",")
|
|
202
|
+
for (let i = 0; i < arr.length; i++) {
|
|
203
|
+
if (arr[i] == this.selectdata.f_apply_type) {
|
|
204
|
+
flag = '客户服务部'
|
|
205
|
+
break
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
for (let i = 0; i < arr2.length; i++) {
|
|
209
|
+
if (arr2[i] == this.selectdata.f_apply_type) {
|
|
210
|
+
flag = '工程技术部'
|
|
211
|
+
break
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return flag
|
|
215
|
+
},
|
|
216
|
+
// 通过按钮刷新累计交费金额合计
|
|
217
|
+
async search() {
|
|
218
|
+
for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
219
|
+
if (this.show_data.fields[i].label == '累计交费金额合计') {
|
|
220
|
+
this.show_data.fields[i].value = this.$refs.charge.f_cumulative_money_sum()
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
// 查看修改历史记录
|
|
225
|
+
searchChangeHistory() {
|
|
226
|
+
console.log("查看修改历史记录")
|
|
227
|
+
this.showChangeHistoryInfo = true
|
|
228
|
+
},
|
|
229
|
+
getmodel() {
|
|
230
|
+
return this.$refs.service_show.getmodel()
|
|
231
|
+
},
|
|
232
|
+
async printbill(sellid) {
|
|
233
|
+
let result = await this.$resetpost('rs/report/billReport', {data: {condition: `f_sell_id = ${sellid}`}}, {
|
|
234
|
+
resolveMsg: null,
|
|
235
|
+
rejectMsg: "提取数据出错,请重试!"
|
|
236
|
+
})
|
|
237
|
+
this.bill = result.data
|
|
238
|
+
console.log('this.bill', this.bill)
|
|
239
|
+
this.$nextTick(() => {
|
|
240
|
+
this.$refs.reportprint.print()
|
|
241
|
+
})
|
|
127
242
|
},
|
|
128
|
-
confirmbuyerinfo
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
if (this.seeeticket(res.data) === 'success'){
|
|
145
|
-
clearInterval(id)
|
|
146
|
-
this.load()
|
|
147
|
-
}
|
|
148
|
-
n++
|
|
149
|
-
this.$showAlert('电子发票开票中,请稍后...', 'info',3000)
|
|
150
|
-
},3000)
|
|
151
|
-
}else{
|
|
152
|
-
this.$showAlert('电子发票开票失败,失败代码为:' + res.data.status , 'warning',3000)
|
|
243
|
+
confirmbuyerinfo(args) {
|
|
244
|
+
let drawbilldata = {
|
|
245
|
+
sellid: this.selectsellid,
|
|
246
|
+
buyerid: args.id,
|
|
247
|
+
operator: this.$login.f.name
|
|
248
|
+
}
|
|
249
|
+
this.closebuyerinfo()
|
|
250
|
+
this.$resetpost('rs/logic/applyDrawBill', {data: drawbilldata}, {resolveMsg: null, rejectMsg: "开发票失败"})
|
|
251
|
+
.then((res) => {
|
|
252
|
+
if (res.data.status === 200) {
|
|
253
|
+
this.$showAlert('申请开具增值税电子发票成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success', 5000)
|
|
254
|
+
/*let n = 0
|
|
255
|
+
var id = setInterval(async ()=>{
|
|
256
|
+
if(n>=3){
|
|
257
|
+
this.$showMessage('电子票延迟,请稍后查看!')
|
|
258
|
+
clearInterval(id)
|
|
153
259
|
}
|
|
154
|
-
|
|
260
|
+
if (this.seeeticket(res.data) === 'success'){
|
|
261
|
+
clearInterval(id)
|
|
262
|
+
this.load()
|
|
263
|
+
}
|
|
264
|
+
n++
|
|
265
|
+
this.$showAlert('电子发票开票中,请稍后...', 'info',3000)
|
|
266
|
+
},3000)*/
|
|
267
|
+
} else {
|
|
268
|
+
this.$showAlert('电子发票开票失败,失败代码为:' + res.data.status, 'warning', 3000)
|
|
269
|
+
}
|
|
270
|
+
})
|
|
155
271
|
},
|
|
156
272
|
// 金额转大写
|
|
157
273
|
smalltoBIG(n) {
|
|
@@ -178,43 +294,93 @@
|
|
|
178
294
|
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
|
|
179
295
|
}
|
|
180
296
|
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
297
|
+
},
|
|
298
|
+
async getMeterBook() {
|
|
299
|
+
let http = new HttpResetClass()
|
|
300
|
+
let condition = " f_orgname = '" + this.$login.f.orgs + "'"
|
|
301
|
+
let res = await http.load('POST','rs/sql/applysingleTable',{data:{tablename: 't_meter_book', condition: condition}}, {resolveMsg: null, rejectMsg: "获取抄表本失败"})
|
|
302
|
+
let data = []
|
|
303
|
+
let array = []
|
|
304
|
+
data = res.data.map(item => {
|
|
305
|
+
return item.f_book_name;
|
|
306
|
+
})
|
|
307
|
+
for (let q = 0; q < data.length; q++) {
|
|
308
|
+
let arraydata = {
|
|
309
|
+
'label': data[q],
|
|
310
|
+
'value': data[q]
|
|
311
|
+
}
|
|
312
|
+
if (array.length != 0) {
|
|
313
|
+
for (let w = 0; w < array.length; w++) {
|
|
314
|
+
if (array[w].label == data[q]) {
|
|
315
|
+
break
|
|
316
|
+
}
|
|
317
|
+
while (w == array.length - 1) {
|
|
318
|
+
array.push(arraydata)
|
|
319
|
+
break
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
} else {
|
|
323
|
+
array.push(arraydata)
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
console.log("抄表册查询数据:" + JSON.stringify(res.data))
|
|
327
|
+
for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
328
|
+
if (this.show_data.fields[i].label == '抄表本') {
|
|
329
|
+
this.show_data.fields[i].options = array
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
|
|
181
334
|
},
|
|
182
335
|
// 关闭模态框
|
|
183
336
|
closebuyerinfo() {
|
|
184
|
-
|
|
185
|
-
|
|
337
|
+
this.showbuyerinfo = false
|
|
338
|
+
this.selectsellid = null
|
|
339
|
+
},
|
|
340
|
+
// 关闭历史数据模态框
|
|
341
|
+
closeChangeHistoryInfo() {
|
|
342
|
+
this.showChangeHistoryInfo = false
|
|
186
343
|
},
|
|
187
344
|
//根据票据流水号查看票据
|
|
188
345
|
async seeeticket(val) {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
346
|
+
console.log('该票据流水号为:', val.f_fpqqlsh)
|
|
347
|
+
var eticketData = await this.$resetpost('rs/sql/querySingleTable', {
|
|
348
|
+
data: {
|
|
349
|
+
items: 'f_bill_url,f_url_code',
|
|
350
|
+
tablename: 't_eticket',
|
|
351
|
+
condition: `f_serial_number=${val.f_fpqqlsh}`
|
|
352
|
+
}
|
|
353
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
354
|
+
console.log('eticketData:', eticketData)
|
|
355
|
+
var data = eticketData.data[0]
|
|
356
|
+
if (data.f_bill_url && data.f_bill_url != '') {
|
|
357
|
+
console.log(data)
|
|
358
|
+
var auth = data.f_bill_url.split("/")
|
|
359
|
+
console.log("截取", auth)
|
|
360
|
+
var authCode = auth[auth.length - 1]
|
|
361
|
+
var url = `https://${auth[2]}/ent-views/fpExtract/get_fapiao.html?pwd=${data.f_url_code}&authCode=${authCode}`
|
|
362
|
+
this.$showAlert('开票成功!', 'success', 500)
|
|
363
|
+
window.open(url)
|
|
364
|
+
return 'success'
|
|
365
|
+
}
|
|
366
|
+
return 'fail'
|
|
204
367
|
},
|
|
205
|
-
async loadbuyer(){
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
368
|
+
async loadbuyer() {
|
|
369
|
+
//获取购货方信息
|
|
370
|
+
let querybuyerdata = {
|
|
371
|
+
tablename: 't_buyer_info',
|
|
372
|
+
condition: `f_process_id = '${this.selectdata.f_process_id}' and f_apply_num = '${this.selectdata.f_apply_num}'`
|
|
373
|
+
}
|
|
374
|
+
let buyerinfos = await this.$resetpost('rs/sql/singleTable', {data: querybuyerdata}, {
|
|
375
|
+
resolveMsg: null,
|
|
376
|
+
rejectMsg: '获取购货方信息失败'
|
|
377
|
+
})
|
|
378
|
+
this.buyerinfo.rows = buyerinfos.data
|
|
213
379
|
},
|
|
214
|
-
/*
|
|
215
|
-
|
|
216
|
-
*/
|
|
217
|
-
//
|
|
380
|
+
/*
|
|
381
|
+
============================================收费临时使用结束
|
|
382
|
+
*/
|
|
383
|
+
// AOP后续特殊化处理
|
|
218
384
|
async special(model) {
|
|
219
385
|
if (model.button.button_name === '提交' && model.button.button_event && model.button.button_event === '分支流程异步处理') {
|
|
220
386
|
// 分支流程异步处理
|
|
@@ -227,6 +393,7 @@
|
|
|
227
393
|
}, {resolveMsg: null, rejectMsg: '分支流程异步处理保存失败'})
|
|
228
394
|
console.log("分支流程异步处理:", JSON.stringify(res.data))
|
|
229
395
|
}
|
|
396
|
+
|
|
230
397
|
if (this.data.distribute_async && model.button.button_name === '下发') {
|
|
231
398
|
// 同流程节点异步处理
|
|
232
399
|
let http = new HttpResetClass();
|
|
@@ -250,18 +417,36 @@
|
|
|
250
417
|
console.log("流程的异步处理:", JSON.stringify(res.data))
|
|
251
418
|
}
|
|
252
419
|
},
|
|
420
|
+
hasChangeHistory() {
|
|
421
|
+
// let http = new HttpResetClass()
|
|
422
|
+
// let data = {
|
|
423
|
+
// tablename: 't_apply_change_record',
|
|
424
|
+
// condition: ` defname = '${this.selectdata.defname}' and f_process_id ='${this.selectdata.f_process_id}' and f_filiale = '${this.$login.f.f_fengongsi}'`
|
|
425
|
+
// }
|
|
426
|
+
// http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: "历史纪录"}).then((res) => {
|
|
427
|
+
// this.changeHistoryData = []
|
|
428
|
+
// this.changeHistoryData = res.data
|
|
429
|
+
// })
|
|
430
|
+
},
|
|
253
431
|
// 组件初始化操作
|
|
254
432
|
refurbish(val) {
|
|
255
433
|
this.selectdata = val
|
|
256
434
|
this.json_datas = this.$workflow_vue
|
|
257
435
|
let sum = 0
|
|
258
436
|
let jsonData = {}
|
|
437
|
+
if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length == 0) {
|
|
438
|
+
this.$showMessage("网络故障,请刷新页面")
|
|
439
|
+
return
|
|
440
|
+
}
|
|
441
|
+
console.log("this.json_datas.activitys是否有数据------------:",this.json_datas.activitys)
|
|
259
442
|
for (let i = 0; i < this.json_datas.activitys.length; i++) {
|
|
260
443
|
if (this.selectdata.defname == this.json_datas.activitys[i].title) {
|
|
444
|
+
console.log("进来了没有-------------")
|
|
261
445
|
jsonData = this.json_datas.activitys[i]
|
|
262
446
|
sum++
|
|
263
447
|
}
|
|
264
448
|
}
|
|
449
|
+
console.log("jsonData是否有数据------------:",jsonData)
|
|
265
450
|
for (let j = 0; j < jsonData.fields.length; j++) {
|
|
266
451
|
jsonData.fields[j].value = ''
|
|
267
452
|
if (jsonData.fields[j].default) {
|
|
@@ -271,6 +456,11 @@
|
|
|
271
456
|
if (sum == 1) {
|
|
272
457
|
this.data = null
|
|
273
458
|
this.data = jsonData
|
|
459
|
+
// 历史数据查询
|
|
460
|
+
this.hasChangeHistory()
|
|
461
|
+
// selectdata 填充 data
|
|
462
|
+
this.data = Object.assign({}, this.data, this.selectdata)
|
|
463
|
+
|
|
274
464
|
this.initializtion()
|
|
275
465
|
} else if (sum == 0) {
|
|
276
466
|
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
@@ -278,40 +468,125 @@
|
|
|
278
468
|
this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
|
|
279
469
|
}
|
|
280
470
|
},
|
|
471
|
+
// AOP:进入vue组件前初始化内容
|
|
281
472
|
// json配置数据处理 比如下拉框的options
|
|
282
473
|
async initializtion() {
|
|
474
|
+
if(this.show_data&&this.show_data.f_process_id == this.data.f_process_id&&this.show_data.defname==this.selectdata.defname){
|
|
475
|
+
this.data = Object.assign({}, this.data, this.selectdata,this.show_data)
|
|
476
|
+
}
|
|
283
477
|
this.showview = false
|
|
478
|
+
// 如果selectdata有这些key,则把selectdata的value赋值给data的value
|
|
479
|
+
for(let i=0;i<this.data.fields.length;i++){
|
|
480
|
+
if (this.selectdata[this.data.fields[i].field]) {
|
|
481
|
+
if (String(this.selectdata[this.data.fields[i].field]).startsWith("{")) {
|
|
482
|
+
if(this.data.fields[i].field=='f_survey_name') {
|
|
483
|
+
let json = JSON.parse(this.selectdata[this.data.fields[i].field])
|
|
484
|
+
this.data.fields[i].value=json.name
|
|
485
|
+
this.selectdata.f_survey_id = json.id
|
|
486
|
+
}else{
|
|
487
|
+
this.data.fields[i].value = JSON.parse(this.selectdata[this.data.fields[i].field])
|
|
488
|
+
this.selectdata[this.data.fields[i].field] = JSON.parse(this.selectdata[this.data.fields[i].field])
|
|
489
|
+
}
|
|
490
|
+
} else {
|
|
491
|
+
this.data.fields[i].value = this.selectdata[this.data.fields[i].field]
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
// 有合同号不给合同表里插入数据
|
|
496
|
+
for (let i = 0; i < this.data.tables.length; i++) {
|
|
497
|
+
if ('t_contract' == this.data.tables[i] && this.selectdata.f_contract_number) {
|
|
498
|
+
this.data.tables.splice(i, 1)
|
|
499
|
+
}
|
|
500
|
+
}
|
|
284
501
|
// 下发人 options 处理,options初始化
|
|
285
|
-
|
|
502
|
+
console.log("流程下发测试一-this.selectdata.actorexpression:",this.selectdata)
|
|
503
|
+
|
|
504
|
+
// 原代码
|
|
505
|
+
// if (this.selectdata.defname == '开户申请' && this.selectdata.actorexpression) {
|
|
506
|
+
if (this.selectdata.defname == '开户申请') {
|
|
286
507
|
let http = new HttpResetClass()
|
|
287
|
-
|
|
508
|
+
await http.load('POST', 'rs/search', `{"source":"this.getParentByType($organization$).getChildByName($工程部$).getChildByName($工程部总管$).getChildren()","userid":"${this.$login.f.id}"}`, {
|
|
288
509
|
resolveMsg: null,
|
|
289
|
-
rejectMsg:
|
|
510
|
+
rejectMsg: null
|
|
511
|
+
}).then((res) => {
|
|
512
|
+
// console.log("search查询部门下所有人:", res.data)
|
|
513
|
+
let jsonString = JSON.stringify(res.data)
|
|
514
|
+
console.log("流程下发测试二-jsonString:",jsonString)
|
|
515
|
+
let jsonArray = []
|
|
516
|
+
if (jsonString.startsWith("{")) {
|
|
517
|
+
jsonArray.push(res.data)
|
|
518
|
+
res.data = jsonArray
|
|
519
|
+
}
|
|
520
|
+
// 特殊下发
|
|
521
|
+
|
|
522
|
+
// if((this.selectdata.defname == '任务分配'
|
|
523
|
+
// )&& (
|
|
524
|
+
// this.selectdata.f_apply_type == '公用整改'
|
|
525
|
+
// ||this.selectdata.f_apply_type == '工业整改'
|
|
526
|
+
// ||this.selectdata.f_apply_type == '公用'
|
|
527
|
+
// ||this.selectdata.f_apply_type == '工业'
|
|
528
|
+
// )){
|
|
529
|
+
// for (let x = 0; x < this.data.buttons.length; x++) {
|
|
530
|
+
// if (this.data && this.data.buttons[x].button_name == "下发") {
|
|
531
|
+
// if(this.selectdata.f_survey_name.startsWith("{")){
|
|
532
|
+
// res.data = this.selectdata.f_survey_name
|
|
533
|
+
// let abc = JSON.parse(this.selectdata.f_survey_name)
|
|
534
|
+
// res.data = [abc]
|
|
535
|
+
// this.data.buttons[x].button_fields[0].options = [{
|
|
536
|
+
// label:abc.name,
|
|
537
|
+
// value:abc
|
|
538
|
+
// }]
|
|
539
|
+
// }
|
|
540
|
+
// }
|
|
541
|
+
// if (this.show_data && this.show_data.buttons[x].button_name == "下发") {
|
|
542
|
+
// if(this.selectdata.f_survey_name.startsWith("{")){
|
|
543
|
+
// let abc = JSON.parse(this.selectdata.f_survey_name)
|
|
544
|
+
// res.data = [abc]
|
|
545
|
+
// this.data.buttons[x].button_fields[0].options = [{
|
|
546
|
+
// label:abc.name,
|
|
547
|
+
// value:abc
|
|
548
|
+
// }]
|
|
549
|
+
// }
|
|
550
|
+
// }
|
|
551
|
+
// }
|
|
552
|
+
// }
|
|
553
|
+
//
|
|
554
|
+
|
|
555
|
+
this.department_search = res.data
|
|
556
|
+
if (this.department_search && this.showview) {
|
|
557
|
+
let array = []
|
|
558
|
+
for (let k = 0; k < this.department_search.length; k++) {
|
|
559
|
+
array.push({
|
|
560
|
+
label: this.department_search[k].name,
|
|
561
|
+
value: {id: this.department_search[k].id, name: this.department_search[k].name}
|
|
562
|
+
})
|
|
563
|
+
}
|
|
564
|
+
for (let x = 0; x < this.data.buttons.length; x++) {
|
|
565
|
+
if (this.data && this.data.buttons[x].button_name == "下发") {
|
|
566
|
+
this.data.buttons[x].button_fields[0].options = array
|
|
567
|
+
}
|
|
568
|
+
if (this.show_data && this.show_data.buttons[x].button_name == "下发") {
|
|
569
|
+
this.show_data.buttons[x].button_fields[0].options = array
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}
|
|
290
573
|
})
|
|
291
|
-
console.log("search查询部门下所有人:", JSON.stringify(res.data))
|
|
292
|
-
let jsonString = JSON.stringify(res.data)
|
|
293
|
-
let jsonArray = []
|
|
294
|
-
if (jsonString.startsWith("{")) {
|
|
295
|
-
jsonArray.push(res.data)
|
|
296
|
-
res.data = jsonArray
|
|
297
|
-
}
|
|
298
|
-
this.department_search = res.data
|
|
299
574
|
}
|
|
300
575
|
|
|
301
576
|
// selectdata 填充 data
|
|
302
|
-
this.data = Object.assign({}, this.data, this.selectdata)
|
|
577
|
+
// this.data = Object.assign({}, this.data, this.selectdata)
|
|
303
578
|
// onetomany 数据获取
|
|
304
579
|
if (this.data.onetomany) {
|
|
305
580
|
console.log('判断是onetomany,this.data.onetomany的数据为=>' + JSON.stringify(this.data.onetomany))
|
|
306
581
|
for (let index = 0; index < this.data.onetomany.length; index++) {
|
|
307
582
|
let http = new HttpResetClass()
|
|
308
|
-
let data ={}
|
|
309
|
-
if(this.data.onetomany[index].tables[0]=='t_charge_record'){
|
|
583
|
+
let data = {}
|
|
584
|
+
if (this.data.onetomany[index].tables[0] == 't_charge_record') {
|
|
310
585
|
data = {
|
|
311
586
|
tablename: this.data.onetomany[index].tables[0],
|
|
312
|
-
condition: `f_apply_num = '${this.selectdata.f_apply_num}' and f_process_id='${this.selectdata.f_process_id}' and f_charging_status != '
|
|
587
|
+
condition: `f_apply_num = '${this.selectdata.f_apply_num}' and f_process_id='${this.selectdata.f_process_id}' and f_charging_status != '无效'`
|
|
313
588
|
}
|
|
314
|
-
}else {
|
|
589
|
+
} else {
|
|
315
590
|
data = {
|
|
316
591
|
tablename: this.data.onetomany[index].tables[0],
|
|
317
592
|
condition: `f_apply_num = '${this.selectdata.f_apply_num}' and f_process_id='${this.selectdata.f_process_id}'`
|
|
@@ -325,10 +600,10 @@
|
|
|
325
600
|
let rows = []
|
|
326
601
|
console.log('查询返回结果res.data=>' + JSON.stringify(res.data))
|
|
327
602
|
this.data.onetomany[index].rows = res.data
|
|
328
|
-
console.log(JSON.stringify('this.data.onetomany[index].rows=>' + JSON.stringify(this.data.onetomany[index].rows)))
|
|
603
|
+
// console.log(JSON.stringify('this.data.onetomany[index].rows=>' + JSON.stringify(this.data.onetomany[index].rows)))
|
|
329
604
|
|
|
330
605
|
// 初始化onetomany中的fields
|
|
331
|
-
for(let j =0;j<this.data.onetomany[index].fields.length;j++){
|
|
606
|
+
for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
|
|
332
607
|
// 如果配置类型为select,优先从参数列表获取options
|
|
333
608
|
if (this.data.onetomany[index].fields[j].type === 'select') {
|
|
334
609
|
let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
|
|
@@ -341,96 +616,312 @@
|
|
|
341
616
|
}
|
|
342
617
|
}
|
|
343
618
|
|
|
344
|
-
|
|
619
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
620
|
+
for (let p = 0; p < this.data.fields.length; p++) {
|
|
621
|
+
if (this.data.fields[p].type === 'select') {
|
|
622
|
+
let temp = Vue.$appdata.getParam(this.data.fields[p].label)
|
|
623
|
+
if (temp && temp.length > 0) {
|
|
624
|
+
if (this.data.fields[p].label) {
|
|
625
|
+
this.data.fields[p].options = Vue.$appdata.getParam(this.data.fields[p].label)
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
345
630
|
// 初始化 fields
|
|
346
631
|
for (let i = 0; i < this.data.fields.length; i++) {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
632
|
+
|
|
633
|
+
/*
|
|
634
|
+
{
|
|
635
|
+
"label": "累计缴费金额",
|
|
636
|
+
"field": "f_cumulative_money",
|
|
637
|
+
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"label": "未结总金额",
|
|
641
|
+
"field": "f_unaccounts_money",
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"label": "累计开票金额"
|
|
645
|
+
"field": "f_cumulative_invoicing"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"label": "未开票金额",
|
|
649
|
+
"field": "f_residual_invoicing",
|
|
650
|
+
},
|
|
651
|
+
*/
|
|
652
|
+
if(this.data.fields[i].label === '设计单位'){
|
|
653
|
+
if(this.selectdata.f_apply_type == '民用散户'||this.selectdata.f_apply_type == '民用整改'){
|
|
654
|
+
this.data.fields[i].required = false
|
|
655
|
+
}else{
|
|
656
|
+
this.data.fields[i].required = true
|
|
657
|
+
}
|
|
350
658
|
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
let
|
|
354
|
-
|
|
355
|
-
|
|
659
|
+
if(this.data.fields[i].label === '累计缴费金额'){
|
|
660
|
+
let http = new HttpResetClass()
|
|
661
|
+
let data = {
|
|
662
|
+
columnname: 'f_charge_money',
|
|
663
|
+
tablename: 't_charge_record',
|
|
664
|
+
condition: `f_charging_status='有效' and f_process_id = '${this.selectdata.f_process_id}'`
|
|
665
|
+
}
|
|
666
|
+
let res = await http.load('POST', 'rs/sql/getSum', {data: data}, {resolveMsg: null, rejectMsg: '获取缴费金额获取失败'})
|
|
667
|
+
if(res.data[0].f_charge_money){
|
|
668
|
+
this.data.fields[i].value = res.data[0].f_charge_money
|
|
669
|
+
}else {
|
|
670
|
+
this.data.fields[i].value = 0
|
|
671
|
+
}
|
|
672
|
+
this.leijijiaofeijine = res.data[0].f_charge_money
|
|
673
|
+
for (let k = 0; k < this.data.fields.length; k++) {
|
|
674
|
+
if(this.data.fields[k].label=='未结总金额'){
|
|
675
|
+
this.data.fields[k].value= Number(this.selectdata.f_contract_money) - this.data.fields[i].value
|
|
676
|
+
console.log(this.data.fields[k].label,this.data.fields[k].value)
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
console.log(this.data.fields[i].label,this.data.fields[i].value)
|
|
680
|
+
}
|
|
681
|
+
if(this.data.fields[i].label === '累计开票金额'){
|
|
682
|
+
let http = new HttpResetClass()
|
|
683
|
+
let data = {
|
|
684
|
+
columnname: 'f_charge_money',
|
|
685
|
+
tablename: 't_charge_record',
|
|
686
|
+
condition: `f_charging_status='有效' and f_process_id = '${this.selectdata.f_process_id}' and (f_invoice_num !='' or f_invoice_num is not null)`
|
|
687
|
+
}
|
|
688
|
+
let res = await http.load('POST', 'rs/sql/getSum', {data: data}, {resolveMsg: null, rejectMsg: '获取累计缴费金额获取失败'})
|
|
689
|
+
this.data.fields[i].value = res.data[0].f_charge_money
|
|
690
|
+
for (let k = 0; k < this.data.fields.length; k++) {
|
|
691
|
+
if(this.data.fields[k].label=='未开票金额'){
|
|
692
|
+
this.data.fields[k].value= Number(this.leijijiaofeijine) - res.data[0].f_charge_money
|
|
693
|
+
console.log(this.data.fields[k].label,this.data.fields[k].value)
|
|
694
|
+
console.log("this.data.fields1",this.data.fields)
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
console.log(this.data.fields[i].label,this.data.fields[i].value)
|
|
698
|
+
console.log("this.data.fields",this.data.fields)
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
if (this.data.fields[i].label === '水表品牌') {
|
|
702
|
+
if (!this.data.fields[i].value) {
|
|
703
|
+
let http = new HttpResetClass()
|
|
704
|
+
let data = {
|
|
705
|
+
columnname: 'f_meter_brand,id',
|
|
706
|
+
tablename: 't_gasbrand',
|
|
707
|
+
condition: ` 1=1 `
|
|
708
|
+
}
|
|
709
|
+
let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {resolveMsg: null, rejectMsg: '获取水表品牌失败'})
|
|
710
|
+
this.data.fields[i].options=[]
|
|
711
|
+
for(let x=0;x<res.data.length;x++){
|
|
712
|
+
this.data.fields[i].options.push({label:res.data[x].f_meter_brand,value:{id:res.data[x].id,name:res.data[x].f_meter_brand}})
|
|
713
|
+
}
|
|
714
|
+
console.log("水表品牌",this.data.fields[i].options)
|
|
715
|
+
if (this.showview) {
|
|
716
|
+
this.$refs.service_show.update()
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
if (this.data.fields[i].label == '合同金额' || this.data.fields[i].label == '合同总金额') {
|
|
722
|
+
if (this.data.fields[i].value == null || this.data.fields[i].value == '') {
|
|
723
|
+
this.data.fields[i].value = "0"
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
if (this.data.fields[i].label == '技术人员'||this.data.fields[i].label == '设计人员') {
|
|
727
|
+
let buyerinfos = []
|
|
728
|
+
let numReg = /^[0-9]+$/
|
|
729
|
+
let numRe = new RegExp(numReg)
|
|
730
|
+
if (numRe.test(this.data.fields[i].value)) {
|
|
731
|
+
let querydata = {
|
|
732
|
+
tablename: 't_user',
|
|
733
|
+
condition: `id = ${this.data.fields[i].value}`
|
|
734
|
+
}
|
|
735
|
+
buyerinfos = await this.$resetpost('rs/sql/singleTable', {data: querydata}, {
|
|
736
|
+
resolveMsg: null,
|
|
737
|
+
rejectMsg: '获取人员失败'
|
|
738
|
+
})
|
|
739
|
+
this.data.fields[i].value = {
|
|
740
|
+
id: buyerinfos.data[0].id,
|
|
741
|
+
name: buyerinfos.data[0].name
|
|
742
|
+
}
|
|
356
743
|
}
|
|
357
744
|
}
|
|
745
|
+
|
|
358
746
|
if (this.data.defname === '工程结算') {
|
|
359
747
|
var a = 0
|
|
360
748
|
var b = 0
|
|
361
749
|
var c = 0
|
|
362
750
|
for (let i = 0; i < this.data.fields.length; i++) {
|
|
363
751
|
if (this.data.fields[i].label === '最终核算成本金额') {
|
|
364
|
-
|
|
365
|
-
|
|
752
|
+
this.data.fields[i].value = (this.cost + this.number + this.anzhuangsum + this.tujiansum)
|
|
753
|
+
a = this.data.fields[i].value
|
|
366
754
|
}
|
|
367
755
|
if (this.data.fields[i].label === '合同总金额') {
|
|
368
756
|
b = this.data.fields[i].value
|
|
369
|
-
}
|
|
757
|
+
}
|
|
758
|
+
if (this.data.fields[i].label === '材料成本金额') {
|
|
370
759
|
this.data.fields[i].value = this.number
|
|
371
|
-
}
|
|
760
|
+
}
|
|
761
|
+
if (this.data.fields[i].label === '安装人工成本') {
|
|
762
|
+
this.data.fields[i].value = this.anzhuangsum
|
|
763
|
+
}
|
|
764
|
+
if (this.data.fields[i].label === '土建人工成本') {
|
|
765
|
+
this.data.fields[i].value = this.tujiansum
|
|
766
|
+
}
|
|
767
|
+
if (this.data.fields[i].label === '其他成本金额') {
|
|
372
768
|
this.data.fields[i].value = this.cost
|
|
373
769
|
}
|
|
374
770
|
}
|
|
375
|
-
c=b-a
|
|
771
|
+
c = b - a
|
|
376
772
|
for (let i = 0; i < this.data.fields.length; i++) {
|
|
377
773
|
if (this.data.fields[i].label === '工程盈利') {
|
|
378
774
|
this.data.fields[i].value = c
|
|
379
775
|
}
|
|
380
776
|
}
|
|
381
777
|
}
|
|
382
|
-
if (this.data.defname === '派工单') {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
}
|
|
778
|
+
// if (this.data.defname === '派工单') {
|
|
779
|
+
//
|
|
780
|
+
// for (let i = 0; i < this.data.fields.length; i++) {
|
|
781
|
+
// if (this.data.fields[i].label === '派工单号') {
|
|
782
|
+
// this.data.fields[i].value = this.pgd
|
|
783
|
+
//
|
|
784
|
+
// }
|
|
785
|
+
//
|
|
786
|
+
// }
|
|
787
|
+
//
|
|
788
|
+
// }
|
|
393
789
|
// 特殊处理
|
|
394
790
|
//施工环节 如果是个人报建需要提交表具信息
|
|
791
|
+
// 如果安装表数为1,则显示是否有表选项
|
|
395
792
|
if (this.data.defname === '施工') {
|
|
396
793
|
for (let i = 0; i < this.data.fields.length; i++) {
|
|
397
|
-
if (this.data.fields[i].label
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
if (this.data.f_apply_type === '
|
|
794
|
+
if (this.data.fields[i].label == '是否有表') { //this.data.f_install_num != 1&&
|
|
795
|
+
// this.data.fields[i].hidden = true
|
|
796
|
+
// this.data.fields[i].required = false
|
|
797
|
+
if (this.data.f_apply_type === '管线整改' || this.data.f_apply_type === '商业预埋管线'|| this.data.f_apply_type === '商业新建管线') { //一定没有表
|
|
798
|
+
this.data.fields[i].value = '否'
|
|
799
|
+
this.selectdata.f_hasmeter = '否'
|
|
800
|
+
this.data.fields[i].hidden = true
|
|
801
|
+
this.data.fields[i].required = false
|
|
802
|
+
} else if (this.data.f_install_num == 1 && (this.data.f_apply_type === '民用整改' || this.data.f_apply_type === '非居整改' || this.data.f_apply_type === '内部投建'||(this.data.f_apply_type != '管线整改'&&this.data.f_apply_type.includes("整改")))) { // 民用整改,非居整改,内部投建可能不安装表
|
|
803
|
+
// this.data.fields[i].value = '是'
|
|
804
|
+
// this.selectdata.f_hasmeter = '是'
|
|
401
805
|
this.data.fields[i].hidden = false
|
|
402
806
|
this.data.fields[i].required = true
|
|
807
|
+
} else if (this.data.f_install_num == 1 && this.data.f_apply_type != '民用成套户') {
|
|
808
|
+
this.data.fields[i].value = '是'
|
|
809
|
+
this.selectdata.f_hasmeter = '是'
|
|
810
|
+
this.data.fields[i].hidden = true
|
|
811
|
+
this.data.fields[i].required = true
|
|
812
|
+
} else {
|
|
813
|
+
this.data.fields[i].value = '否'
|
|
814
|
+
this.selectdata.f_hasmeter = '否'
|
|
815
|
+
this.data.fields[i].hidden = true
|
|
816
|
+
this.data.fields[i].required = false
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
// 如果是民用散户默认 跳过 内验 和 外验
|
|
821
|
+
if(this.selectdata.f_apply_type == '民用散户'){
|
|
822
|
+
for (let i = 0; i < this.data.fields.length; i++) {
|
|
823
|
+
if (this.data.fields[i].label == '是否内验' || this.data.fields[i].label == '是否发起外验') { //this.data.f_install_num != 1&&
|
|
824
|
+
this.data.fields[i].value = '否'
|
|
825
|
+
this.selectdata.f_hasmeter = '是'
|
|
826
|
+
this.data.fields[i].hidden = true
|
|
827
|
+
this.data.fields[i].required = false
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
if(this.data.fields[i].label == '是否内验' || this.data.fields[i].label == '是否发起外验'){
|
|
835
|
+
// 如果是 民用成套户 或者 民用集体散户 是否内验 和 是否外验 都是是
|
|
836
|
+
if(this.selectdata.f_apply_type == '民用成套户'||this.selectdata.f_apply_type == '民用集体散户'||this.selectdata.f_apply_type == '民用集体户'){
|
|
837
|
+
this.data.fields[i].value = '是'
|
|
838
|
+
this.data.fields[i].hidden = true
|
|
839
|
+
this.data.fields[i].required = false
|
|
840
|
+
}
|
|
841
|
+
// 如果是 6方以上工商用户 需要综合验收
|
|
842
|
+
// 如果是 6方以下工商用户 不需要综合验收
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
if (this.data.defname === '通水') {
|
|
846
|
+
for (let i = 0; i < this.data.fields.length; i++) {
|
|
847
|
+
if (this.data.fields[i].label == '是否有表' && !this.data.fields[i].value) { //this.data.f_install_num != 1&&
|
|
848
|
+
this.data.fields[i].value = '否'
|
|
849
|
+
this.selectdata.f_hasmeter = '否'
|
|
850
|
+
this.data.fields[i].hidden = true
|
|
851
|
+
this.data.fields[i].required = false
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
if(this.data.fields[i].label === '是否装新表'){
|
|
857
|
+
for(let k=0;k<this.data.fields.length;k++){
|
|
858
|
+
if(this.data.fields[i].value == '是'){
|
|
859
|
+
if(this.data.fields[k].label=='用水性质'||
|
|
860
|
+
this.data.fields[k].label=='水价类型'||
|
|
861
|
+
this.data.fields[k].label=='水价名称'
|
|
862
|
+
){
|
|
863
|
+
this.data.fields[k].required=true,
|
|
864
|
+
this.data.fields[k].hidden=false
|
|
865
|
+
}
|
|
866
|
+
}else{
|
|
867
|
+
if(this.data.fields[k].label=='用水性质'||
|
|
868
|
+
this.data.fields[k].label=='水价类型'||
|
|
869
|
+
this.data.fields[k].label=='水价名称'){
|
|
870
|
+
this.data.fields[k].required=false,
|
|
871
|
+
this.data.fields[k].hidden=true
|
|
403
872
|
}
|
|
404
873
|
}
|
|
405
874
|
}
|
|
406
875
|
}
|
|
407
|
-
|
|
408
|
-
|
|
876
|
+
|
|
877
|
+
//通水环节可以调出施工环节的表信息来修改
|
|
878
|
+
if (this.data.defname == '通水' || this.data.defname == '施工') {
|
|
879
|
+
console.log("是否有表", this.selectdata.f_hasmeter)
|
|
409
880
|
for (let i = 0; i < this.data.fields.length; i++) {
|
|
410
|
-
if (this.data.fields[i].label === '
|
|
411
|
-
|| this.data.fields[i].label === '
|
|
412
|
-
|| this.data.fields[i].label === '
|
|
413
|
-
|
|
881
|
+
if (this.data.fields[i].label === '水表品牌'
|
|
882
|
+
|| this.data.fields[i].label === '水表型号'
|
|
883
|
+
|| this.data.fields[i].label === '表号'
|
|
884
|
+
|| this.data.fields[i].label === '通水表号'
|
|
885
|
+
|| this.data.fields[i].label === '左右表'
|
|
886
|
+
|| this.data.fields[i].label === '水表厂家') {
|
|
887
|
+
if (this.data.f_install_num == 1 && this.selectdata.f_hasmeter && this.selectdata.f_hasmeter == '是') {
|
|
414
888
|
this.data.fields[i].hidden = false
|
|
415
889
|
this.data.fields[i].required = true
|
|
890
|
+
} else if ((this.data.f_install_num == 1 && this.selectdata.f_hasmeter && this.selectdata.f_hasmeter == '否')) {
|
|
891
|
+
this.data.fields[i].hidden = true
|
|
892
|
+
this.data.fields[i].required = false
|
|
416
893
|
}
|
|
894
|
+
if (this.data.fields[i].label === '表号') {
|
|
895
|
+
console.log("表号", this.data.fields[i].value)
|
|
896
|
+
}
|
|
897
|
+
} else if (this.data.fields[i].label === '水表品牌id' || this.data.fields[i].label === '水表型号id') {
|
|
898
|
+
this.data.fields[i].hidden = true
|
|
899
|
+
this.data.fields[i].required = false
|
|
417
900
|
}
|
|
418
901
|
}
|
|
419
902
|
}
|
|
420
|
-
|
|
903
|
+
|
|
904
|
+
let array = this.$login.f.rolesnames.split(',')
|
|
905
|
+
if ((this.data.fields[i].label === '技术人员' || array.includes("工程技术部负责人")) && (this.selectdata.defname == '报装申请++++++++++++++++++++' || this.selectdata.defname == '勘察初设' || this.selectdata.defname == '任务分配' || this.selectdata.defname == '合同信息')) { //{"source":"this.getParentByType($organization$).getChildByName($技术人员$).getChildren()","userid":"296851"}
|
|
421
906
|
let http = new HttpResetClass()
|
|
422
|
-
let res = await http.load('POST', 'rs/search', `{"source":"this.getParentByType($organization$).getChildByName($技术人员$).getChildren()","userid":"${this.$login.f.id}"}`, {
|
|
907
|
+
let res = await http.load('POST', 'rs/search', `{"source":"this.getParentByType($organization$).getChildByName($工程技术部门$).getChildByName($技术人员$).getChildren()","userid":"${this.$login.f.id}"}`, {
|
|
423
908
|
resolveMsg: null,
|
|
424
|
-
rejectMsg: 'search
|
|
909
|
+
rejectMsg: null // 'search查询技术人员失败,请联系管理员配置技术人员角色'
|
|
425
910
|
})
|
|
426
|
-
console.log("search查询部门下所有人:", JSON.stringify(res.data))
|
|
911
|
+
// console.log("search查询部门下所有人:", JSON.stringify(res.data))
|
|
427
912
|
this.technologist = res.data
|
|
428
913
|
if (this.technologist) {
|
|
429
914
|
let array = []
|
|
430
915
|
for (let k = 0; k < this.technologist.length; k++) {
|
|
431
|
-
array.push({
|
|
916
|
+
array.push({
|
|
917
|
+
label: this.technologist[k].name,
|
|
918
|
+
value: {name: this.technologist[k].name, id: this.technologist[k].id}
|
|
919
|
+
})
|
|
432
920
|
}
|
|
433
|
-
this.data.fields[i].
|
|
921
|
+
if (!array.includes("工程技术部负责人") && this.data.fields[i].label === '技术人员') {
|
|
922
|
+
this.data.fields[i].options = array
|
|
923
|
+
}
|
|
924
|
+
|
|
434
925
|
}
|
|
435
926
|
}
|
|
436
927
|
if (this.data.fields[i].label == '县/区') {
|
|
@@ -441,29 +932,80 @@
|
|
|
441
932
|
label: this.$login.f.f_allArea[i].label,
|
|
442
933
|
value: this.$login.f.f_allArea[i].label
|
|
443
934
|
}
|
|
935
|
+
//位置正确
|
|
936
|
+
this.data.fields[i].options = [{label: label, value: value}, ...rs]
|
|
444
937
|
rs.push(temp)
|
|
445
938
|
}
|
|
446
|
-
|
|
939
|
+
//位置错误
|
|
940
|
+
// this.data.fields[i].options = [{label: '全部', value: ''},{label: 'test', value: 'test'}, ...rs]
|
|
447
941
|
}
|
|
448
942
|
|
|
449
943
|
if (this.data.fields[i].label == '合同类型') {
|
|
450
|
-
this.data.fields[i].value
|
|
944
|
+
this.data.fields[i].value = '主合同'
|
|
451
945
|
}
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
946
|
+
if (this.data.fields[i].label == '合同业务办理人') {
|
|
947
|
+
if (this.selectdata.f_apply_kefu_employee) {
|
|
948
|
+
if (this.selectdata.f_apply_kefu_employee.startsWith("{") && this.selectdata.f_apply_kefu_employee.endsWith("}")) {
|
|
949
|
+
let temp = JSON.parse(this.selectdata.f_apply_kefu_employee)
|
|
950
|
+
this.data.fields[i].value = temp.name
|
|
951
|
+
} else {
|
|
952
|
+
this.data.fields[i].value = this.selectdata.f_apply_kefu_employee
|
|
953
|
+
}
|
|
456
954
|
} else {
|
|
457
|
-
this
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
955
|
+
if (this.selectdata.f_survey_name) {
|
|
956
|
+
if (this.selectdata.f_survey_name.startsWith("{") && this.selectdata.f_survey_name.endsWith("}")) {
|
|
957
|
+
let temp = JSON.parse(this.selectdata.f_survey_name)
|
|
958
|
+
this.data.fields[i].value = temp.name
|
|
959
|
+
} else {
|
|
960
|
+
this.data.fields[i].value = this.selectdata.f_survey_name
|
|
961
|
+
}
|
|
462
962
|
}
|
|
463
|
-
let dt = new Date()
|
|
464
|
-
this.data.fields[i].value = dt.getFullYear() + ((dt.getMonth() + 1) < 10 ? '0' + (dt.getMonth() + 1) : dt.getMonth()) + temp
|
|
465
963
|
}
|
|
466
964
|
}
|
|
965
|
+
// if (this.data.fields[i].label == '合同编号' && !this.selectdata[this.data.fields[i].field] && this.selectdata.defname == '合同信息') {
|
|
966
|
+
// if (!this.$appdata.getSingleValue('所属公司编码')) {
|
|
967
|
+
// this.$showMessage(`请先去参数管理设置: 所属公司编码`)
|
|
968
|
+
// }
|
|
969
|
+
// if (!this.$appdata.getSingleValue('报装合同编号')){
|
|
970
|
+
// this.$showMessage(`请先去参数管理设置: ${this.data.fields[i].label}`)
|
|
971
|
+
// }
|
|
972
|
+
// }
|
|
973
|
+
// if (this.data.fields[i].label == '合同编号' && !this.selectdata[this.data.fields[i].field] && this.selectdata.defname == '合同审核') {
|
|
974
|
+
// if (!this.$appdata.getSingleValue('所属公司编码')) {
|
|
975
|
+
// this.$showMessage(`请先去参数管理设置: 所属公司编码`)
|
|
976
|
+
// }
|
|
977
|
+
// if (!this.$appdata.getSingleValue(this.data.fields[i].label)) {
|
|
978
|
+
// this.$showMessage(`请先去参数管理设置: ${this.data.fields[i].label}`)
|
|
979
|
+
// } else {
|
|
980
|
+
// let http = new HttpResetClass()
|
|
981
|
+
// //获取购货方信息
|
|
982
|
+
// let data = {
|
|
983
|
+
// tablename: 't_singlevalue',
|
|
984
|
+
// condition: `name = '合同编号' and f_filialeids = '${this.$login.f.f_orgids}'`
|
|
985
|
+
// }
|
|
986
|
+
// let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
987
|
+
// resolveMsg: null,
|
|
988
|
+
// rejectMsg: '获取合同编号失败'
|
|
989
|
+
// }).then((res) => {
|
|
990
|
+
// let temp = res.data[0].value
|
|
991
|
+
// this.contract = temp
|
|
992
|
+
// while (temp.length < 4) {
|
|
993
|
+
// temp = '0' + temp
|
|
994
|
+
// }
|
|
995
|
+
// let dt = new Date().Format("yyyyMM")
|
|
996
|
+
// this.data.fields[i].value = this.$appdata.getSingleValue('所属公司编码') + dt + temp
|
|
997
|
+
// if (this.showview) {
|
|
998
|
+
// this.$refs.service_show.data.fields[i].value = this.$appdata.getSingleValue('所属公司编码') + dt + temp
|
|
999
|
+
// this.$refs.service_show.update()
|
|
1000
|
+
// }
|
|
1001
|
+
//
|
|
1002
|
+
// })
|
|
1003
|
+
//
|
|
1004
|
+
// // this.$refs.service_show.update()
|
|
1005
|
+
// }
|
|
1006
|
+
// }
|
|
1007
|
+
|
|
1008
|
+
|
|
467
1009
|
}
|
|
468
1010
|
// 初始化 buttons_fields
|
|
469
1011
|
for (let i = 0; i < this.data.buttons.length; i++) {
|
|
@@ -486,7 +1028,10 @@
|
|
|
486
1028
|
for (let k = 0; k < this.department_search.length; k++) {
|
|
487
1029
|
// 将id转换为name
|
|
488
1030
|
if (Number(this.department_search[k].id) === Number(this.selectdata[this.data.buttons[i].button_fields[0].field])) {
|
|
489
|
-
this.data.buttons[i].button_fields[0].value =
|
|
1031
|
+
this.data.buttons[i].button_fields[0].value = {
|
|
1032
|
+
id: this.department_search[k].id,
|
|
1033
|
+
name: this.department_search[k].name
|
|
1034
|
+
}
|
|
490
1035
|
}
|
|
491
1036
|
}
|
|
492
1037
|
}
|
|
@@ -494,7 +1039,21 @@
|
|
|
494
1039
|
if (this.department_search) {
|
|
495
1040
|
let array = []
|
|
496
1041
|
for (let k = 0; k < this.department_search.length; k++) {
|
|
497
|
-
array.push({
|
|
1042
|
+
array.push({
|
|
1043
|
+
label: this.department_search[k].name,
|
|
1044
|
+
value: {id: this.department_search[k].id, name: this.department_search[k].name}
|
|
1045
|
+
})
|
|
1046
|
+
}
|
|
1047
|
+
this.data.buttons[i].button_fields[0].options = array
|
|
1048
|
+
}
|
|
1049
|
+
let array = this.$login.f.rolesnames.split(',')
|
|
1050
|
+
if (this.selectdata.defname == '任务分配' && array.includes("工程技术部负责人")) {
|
|
1051
|
+
let array = []
|
|
1052
|
+
for (let k = 0; k < this.technologist.length; k++) {
|
|
1053
|
+
array.push({
|
|
1054
|
+
label: this.technologist[k].name,
|
|
1055
|
+
value: {id: this.technologist[k].id, name: this.technologist[k].name}
|
|
1056
|
+
})
|
|
498
1057
|
}
|
|
499
1058
|
this.data.buttons[i].button_fields[0].options = array
|
|
500
1059
|
}
|
|
@@ -508,102 +1067,818 @@
|
|
|
508
1067
|
}
|
|
509
1068
|
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
510
1069
|
let temp = JSON.parse(JSON.stringify(this.data))
|
|
1070
|
+
// let temp = this.data
|
|
511
1071
|
// 退回原因展示
|
|
1072
|
+
console.log("this.selectdata.f_back_reason:-----" + this.selectdata.f_back_reason)
|
|
512
1073
|
if (this.selectdata.f_back_reason) {
|
|
513
1074
|
temp['back_reason'] = this.selectdata.f_back_reason
|
|
514
1075
|
}
|
|
515
1076
|
this.show_data = temp
|
|
516
|
-
this.
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
this.
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
},
|
|
530
|
-
'get-pgd' (val) {
|
|
531
|
-
this.pgd = val
|
|
532
|
-
this.initializtion()
|
|
533
|
-
},
|
|
534
|
-
// 任意select选中时触发事件,关联性操作
|
|
535
|
-
async 'select_cascade'(index) {
|
|
536
|
-
// this.$refs.service_show.data // 子业务显示组件
|
|
537
|
-
// 级联操作示例:
|
|
538
|
-
/*
|
|
539
|
-
if(this.$refs.service_show.data.fields[index].label==='报建类型'){
|
|
540
|
-
for(let i=0;i<this.$refs.service_show.data.fields.length;i++){
|
|
541
|
-
// 控制设置级联
|
|
542
|
-
// 源select所选的值 this.$refs.service_show.data.fields[index].value
|
|
543
|
-
if(this.$refs.service_show.data.fields[i].label==='级联测试2'){
|
|
544
|
-
this.$refs.service_show.data.fields[i].options=[
|
|
545
|
-
{label:'级联选项1',value:'级联选项1'},{label:'级联选项2',value:'级联选项2'},{label:'级联选项3',value:'级联选项3'}
|
|
546
|
-
]
|
|
1077
|
+
this.show_data.f_back_reason = this.selectdata.f_back_reason
|
|
1078
|
+
this.show_data.f_back_date = this.selectdata.f_back_date
|
|
1079
|
+
// 显示组件
|
|
1080
|
+
// this.showview = false
|
|
1081
|
+
this.$nextTick(() => {
|
|
1082
|
+
this.showview = true
|
|
1083
|
+
})
|
|
1084
|
+
console.log("fields",this.data.fields)
|
|
1085
|
+
//新用户显示是否有花名册
|
|
1086
|
+
if (this.selectdata.defname === '用户建档' && this.selectdata.f_apply_type === '新用户') {
|
|
1087
|
+
for (let i = 0; i < this.data.fields.length; i++) {
|
|
1088
|
+
if (this.show_data.fields[i].label == '花名册') {
|
|
1089
|
+
this.show_data.fields[i].hidden = false
|
|
547
1090
|
}
|
|
548
1091
|
}
|
|
549
1092
|
}
|
|
550
|
-
|
|
1093
|
+
//解决欠费金额为0时无法显示的问题
|
|
1094
|
+
// console.log("哇哈哈测试一============》")
|
|
1095
|
+
// if (this.selectdata.defname === '核对') {
|
|
1096
|
+
// console.log("哇哈哈测试二============》")
|
|
1097
|
+
// for (let i = 0; i < this.data.fields.length; i++) {
|
|
1098
|
+
// if (this.show_data.fields[i].label == '欠费金额') {
|
|
1099
|
+
// console.log("哇哈哈测试三============》")
|
|
1100
|
+
// if (this.show_data.fields[i].value == 0.00 || this.show_data.fields[i].value == null || this.show_data.fields[i].value == undefined) {
|
|
1101
|
+
// console.log("哇哈哈测试四============》")
|
|
1102
|
+
// this.show_data.fields[i].value = 0.00
|
|
1103
|
+
// }
|
|
1104
|
+
// }
|
|
1105
|
+
// }
|
|
1106
|
+
// }
|
|
1107
|
+
//合计批量缴费
|
|
1108
|
+
// if (this.selectdata.f_apply_type == '新用户' && this.selectdata.defname == '核对') {
|
|
1109
|
+
// let http = new HttpResetClass()
|
|
1110
|
+
// let data = {
|
|
1111
|
+
// condValue: [],
|
|
1112
|
+
// condition: " 1=1 ",
|
|
1113
|
+
// data: {
|
|
1114
|
+
// id: `${this.$login.f.name}`,
|
|
1115
|
+
// fengongsi: `${this.$login.f.orgs}`,
|
|
1116
|
+
// f_process_id: `${this.selectdata.f_process_id}`
|
|
1117
|
+
// }
|
|
1118
|
+
// }
|
|
1119
|
+
// let res = await http.load('POST','rs/sql/batchFunction',{data: data}, {resolveMsg: null, rejectMsg: null})
|
|
1120
|
+
// for (let i = 0; i < res.data.length; i++) {
|
|
1121
|
+
// this.sum += res.data[i].f_install_money + res.data[i].f_super_money
|
|
1122
|
+
// }
|
|
1123
|
+
// }
|
|
1124
|
+
for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
1125
|
+
//新用户时处理逻辑
|
|
1126
|
+
if (this.selectdata.f_apply_type == '新用户') {
|
|
1127
|
+
this.show_data.fields[i].required = false
|
|
1128
|
+
}
|
|
551
1129
|
|
|
552
|
-
|
|
553
|
-
this
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
1130
|
+
//对勘察时间进行转换
|
|
1131
|
+
if (this.selectdata.defname == '现场勘察') {
|
|
1132
|
+
if (this.show_data.fields[i].label === '勘察时间') {
|
|
1133
|
+
this.show_data.fields[i].value = new Date().Format("yyyy-MM-dd HH:mm:ss")
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
557
1136
|
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
563
|
-
// xxx xx xxx
|
|
564
|
-
if (this.$refs.service_show.data.fields[i].label === '最终核算成本金额' ) {
|
|
565
|
-
this.$refs.service_show.data.fields[i].value = (this.number+this.cost)
|
|
566
|
-
a=this.$refs.service_show.data.fields[i].value
|
|
1137
|
+
//所属公司和自动生成项目编号
|
|
1138
|
+
if (this.selectdata.defname == '用户建档') {
|
|
1139
|
+
if (this.show_data.fields[i].label === '所属公司') {
|
|
1140
|
+
this.show_data.fields[i].value = this.$login.f.orgs
|
|
567
1141
|
}
|
|
1142
|
+
if (this.show_data.fields[i].label === '项目编号') {
|
|
1143
|
+
let http2 = new HttpResetClass()
|
|
1144
|
+
let entryNum = await http2.load('POST', 'rs/logic/getProjectNo', {
|
|
1145
|
+
data: {
|
|
1146
|
+
f_filiale: this.$login.f.orgs
|
|
1147
|
+
}
|
|
1148
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
1149
|
+
console.log("生成的项目编号为:" + entryNum.data)
|
|
1150
|
+
this.show_data.fields[i].value = entryNum.data
|
|
568
1151
|
|
|
569
|
-
if (this.$refs.service_show.data.fields[i].label === '合同总金额' && this.$refs.service_show.data.fields[i].value) {
|
|
570
|
-
b = this.$refs.service_show.data.fields[i].value
|
|
571
1152
|
}
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
1153
|
+
if (this.show_data.fields[i].label === '报建编号') {
|
|
1154
|
+
let http2 = new HttpResetClass()
|
|
1155
|
+
let applyNum = await http2.load('POST', 'rs/logic/getConstructionNo', {
|
|
1156
|
+
data: {
|
|
1157
|
+
f_filiale: this.$login.f.orgs
|
|
1158
|
+
}
|
|
1159
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
1160
|
+
console.log("生成的报建编号为:" + applyNum.data)
|
|
1161
|
+
this.show_data.fields[i].value = applyNum.data
|
|
1162
|
+
}
|
|
1163
|
+
//placeholder required
|
|
1164
|
+
if (this.selectdata.f_apply_type == '新用户') {
|
|
1165
|
+
if (this.show_data.fields[i].label === '项目名称' ||
|
|
1166
|
+
this.show_data.fields[i].label === '营业所' ||
|
|
1167
|
+
this.show_data.fields[i].label === '项目编号' ||
|
|
1168
|
+
this.show_data.fields[i].label === '用气性质' ||
|
|
1169
|
+
this.show_data.fields[i].label === '项目类型' ||
|
|
1170
|
+
this.show_data.fields[i].label === '花名册') {
|
|
1171
|
+
this.show_data.fields[i].required = true
|
|
1172
|
+
}
|
|
578
1173
|
}
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
1174
|
|
|
582
|
-
|
|
583
|
-
let chargeMoney = this.$refs.service_show.showadd_fields[index].value
|
|
584
|
-
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
585
|
-
if (this.$refs.service_show.data.fields[i].label === '未结总金额') {
|
|
586
|
-
let cumulativeMoney = this.$refs.service_show.data.fields[i].value
|
|
587
|
-
if (Number(chargeMoney) > Number(cumulativeMoney)) {
|
|
588
|
-
this.$showMessage("收费金额不得大于未结总金额!")
|
|
589
|
-
this.$refs.service_show.showadd_fields[index].value = null
|
|
590
|
-
return
|
|
591
|
-
} else {
|
|
1175
|
+
}
|
|
592
1176
|
|
|
593
|
-
|
|
1177
|
+
//如果报建类型是新用户到了核对时的逻辑
|
|
1178
|
+
// if (this.selectdata.f_apply_type == '新用户' && this.selectdata.defname == '核对'
|
|
1179
|
+
// && this.show_data.fields[i].label != '用气性质' && this.show_data.fields[i].label != '报建类型'
|
|
1180
|
+
// && this.show_data.fields[i].label != '项目名称' && this.show_data.fields[i].label != '项目编号'
|
|
1181
|
+
// && this.show_data.fields[i].label != '所属公司' && this.selectdata.f_roster == '有') {
|
|
1182
|
+
// this.show_data.fields[i].hidden = true
|
|
1183
|
+
// }
|
|
1184
|
+
// if (this.selectdata.f_apply_type == '新用户' && this.selectdata.defname == '核对' && this.selectdata.f_roster == '有'
|
|
1185
|
+
// && this.show_data.fields[i].label == '应交金额合计') {
|
|
1186
|
+
// this.show_data.fields[i].value = this.sum.toFixed(2)
|
|
1187
|
+
// this.show_data.fields[i].hidden = false
|
|
1188
|
+
// }
|
|
1189
|
+
// if (this.selectdata.f_apply_type == '新用户' && this.selectdata.defname == '核对' && this.selectdata.f_roster == '有'
|
|
1190
|
+
// && this.show_data.fields[i].label == '累计交费金额合计') {
|
|
1191
|
+
// this.show_data.fields[i].value = this.$refs.charge.f_cumulative_money_sum()
|
|
1192
|
+
// console.log(this.show_data.fields[i].value + "-------------------------累计交费金额合计-------------------------:" + this.$refs.charge.f_cumulative_money_sum())
|
|
1193
|
+
// this.show_data.fields[i].hidden = false
|
|
1194
|
+
// }
|
|
1195
|
+
// 工商业处理逻辑
|
|
1196
|
+
if (this.selectdata.defname == '报建缴费' && this.selectdata.f_apply_type == '工商业') {
|
|
1197
|
+
if (this.show_data.fields[i].label == '超长距离' || this.show_data.fields[i].label != '超长费') {
|
|
1198
|
+
this.show_data.fields[i].required = false
|
|
594
1199
|
}
|
|
595
1200
|
}
|
|
1201
|
+
// if (this.selectdata.defname == '核对' && this.selectdata.f_apply_type == '工商业') {
|
|
1202
|
+
// if (this.show_data.fields[i].label == '超长距离' || this.show_data.fields[i].label != '超长费') {
|
|
1203
|
+
// this.show_data.fields[i].required = false
|
|
1204
|
+
// this.show_data.fields[i].readonly = false
|
|
1205
|
+
// }
|
|
1206
|
+
// }
|
|
596
1207
|
}
|
|
1208
|
+
// 抄表本改变
|
|
1209
|
+
if (this.selectdata.defname == '通气' && this.selectdata.f_apply_type != '新用户') {
|
|
1210
|
+
// for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
1211
|
+
// if (this.show_data.fields[i].label == '气表型号') {
|
|
1212
|
+
let http2 = new HttpResetClass()
|
|
1213
|
+
let res2 = await http2.load('POST', 'rs/sql/queryGasType', {
|
|
1214
|
+
data: {
|
|
1215
|
+
f_orgid: this.$login.f.orgid,
|
|
1216
|
+
f_meter_brand: this.selectdata.f_meter_brand
|
|
1217
|
+
}
|
|
1218
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
1219
|
+
console.log("气表型号查询数据" + JSON.stringify(res2.data))
|
|
1220
|
+
this.getMeterBook()
|
|
1221
|
+
for (let k = 0; k < this.show_data.fields.length; k++) {
|
|
1222
|
+
if (res2.data[0].f_meter_type != '机表') {
|
|
1223
|
+
if (this.show_data.fields[k].label == '抄表本') {
|
|
1224
|
+
console.log("来了没1")
|
|
1225
|
+
this.show_data.fields[k].hidden = true
|
|
1226
|
+
this.show_data.fields[k].required = false
|
|
1227
|
+
}
|
|
1228
|
+
} else {
|
|
1229
|
+
if (this.show_data.fields[k].label == '抄表本') {
|
|
1230
|
+
console.log("来了没2")
|
|
1231
|
+
this.show_data.fields[k].hidden = false
|
|
1232
|
+
this.show_data.fields[k].required = true
|
|
1233
|
+
this.show_data.fields[k].value = '抄表本2'
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
597
1237
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
1238
|
+
// }
|
|
1239
|
+
// }
|
|
1240
|
+
}
|
|
1241
|
+
// for (let j = 0; j < this.$refs.service_show.data.fields.length; j++) {
|
|
1242
|
+
//
|
|
1243
|
+
// if (this.$refs.service_show.data.fields[j].label == '气表型号') {
|
|
1244
|
+
// let http2 = new HttpResetClass()
|
|
1245
|
+
// let res2 = await http2.load('POST','rs/sql/queryGasType',{data:{f_orgid:this.$login.f.orgid,f_meter_brand:style}}, {resolveMsg: null, rejectMsg: null})
|
|
1246
|
+
// console.log("气表型号查询数据" + JSON.stringify(res2.data))
|
|
1247
|
+
// let data = []
|
|
1248
|
+
// let data2 = []
|
|
1249
|
+
// let array = []
|
|
1250
|
+
// data = res2.data.map(item => {
|
|
1251
|
+
// return item.f_meter_style;
|
|
1252
|
+
// })
|
|
1253
|
+
// data2 = res2.data.map(item => {
|
|
1254
|
+
// return item.f_type;
|
|
1255
|
+
// })
|
|
1256
|
+
// console.log("是不是来过这儿1")
|
|
1257
|
+
// for (let q = 0; q < data.length; q++) {
|
|
1258
|
+
// let arraydata = {
|
|
1259
|
+
// 'label': data[q] + data2[q],
|
|
1260
|
+
// 'value': data[q] + data2[q]
|
|
1261
|
+
// }
|
|
1262
|
+
// let then = data[q] + data2[q]
|
|
1263
|
+
// if (array.length != 0) {
|
|
1264
|
+
// for (let w = 0; w < array.length; w++) {
|
|
1265
|
+
// if (array[w].label == then) {
|
|
1266
|
+
// break
|
|
1267
|
+
// }
|
|
1268
|
+
// while (w == array.length - 1) {
|
|
1269
|
+
// array.push(arraydata)
|
|
1270
|
+
// break
|
|
1271
|
+
// }
|
|
1272
|
+
// }
|
|
1273
|
+
// } else {
|
|
1274
|
+
// array.push(arraydata)
|
|
1275
|
+
// }
|
|
1276
|
+
// }
|
|
1277
|
+
// this.$refs.service_show.data.fields[j].options = array
|
|
1278
|
+
// console.log("选择框数据:" + JSON.stringify(this.$refs.service_show.data.fields[j].options))
|
|
1279
|
+
// for (let k = 0; k < this.$refs.service_show.data.fields.length; k++) {
|
|
1280
|
+
// if (res2.data[0].f_meter_type != '机表') {
|
|
1281
|
+
// if (this.$refs.service_show.data.fields[k].label == '抄表本') {
|
|
1282
|
+
// console.log("来了没1")
|
|
1283
|
+
// this.$refs.service_show.data.fields[k].hidden = true
|
|
1284
|
+
// }
|
|
1285
|
+
// }else {
|
|
1286
|
+
// if (this.$refs.service_show.data.fields[k].label == '抄表本') {
|
|
1287
|
+
// console.log("来了没2")
|
|
1288
|
+
// this.$refs.service_show.data.fields[k].hidden = false
|
|
1289
|
+
// }
|
|
1290
|
+
// }
|
|
1291
|
+
// }
|
|
1292
|
+
//
|
|
1293
|
+
// }
|
|
1294
|
+
// }
|
|
1295
|
+
//
|
|
1296
|
+
// }
|
|
1297
|
+
// 新用户报建缴费,流程节点读出单价信息
|
|
1298
|
+
if (this.selectdata.f_apply_type == '新用户' && this.selectdata.defname == '报建缴费' && this.selectdata.f_roster == '有') {
|
|
1299
|
+
let http = new HttpResetClass()
|
|
1300
|
+
let data = {
|
|
1301
|
+
f_process_id: this.selectdata.f_process_id
|
|
1302
|
+
}
|
|
1303
|
+
let res = await http.load('POST', 'rs/sql/getSuperCharge', {data: data}, {resolveMsg: null, rejectMsg: null})
|
|
1304
|
+
for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
1305
|
+
if (this.show_data.fields[i].label == '超长距离') {
|
|
1306
|
+
this.show_data.fields[i].value = res.data[0].f_super_length
|
|
604
1307
|
}
|
|
1308
|
+
if (this.show_data.fields[i].label == '超长费') {
|
|
1309
|
+
this.show_data.fields[i].value = res.data[0].f_super_money
|
|
1310
|
+
}
|
|
1311
|
+
if (this.show_data.fields[i].label == '安装费') {
|
|
1312
|
+
this.show_data.fields[i].value = res.data[0].f_install_money
|
|
1313
|
+
}
|
|
1314
|
+
|
|
605
1315
|
}
|
|
606
|
-
|
|
1316
|
+
let temp = 0
|
|
1317
|
+
let then = 0
|
|
1318
|
+
let install = 0
|
|
1319
|
+
for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
1320
|
+
//未交金额计算
|
|
1321
|
+
if (this.selectdata.defname === "报建缴费") {
|
|
1322
|
+
if (this.show_data.fields[i].label === '超长费') {
|
|
1323
|
+
then = this.show_data.fields[i].value
|
|
1324
|
+
}
|
|
1325
|
+
if (this.show_data.fields[i].label === '安装费') {
|
|
1326
|
+
install = this.show_data.fields[i].value
|
|
1327
|
+
}
|
|
1328
|
+
if (this.show_data.fields[i].label === '应收金额') {
|
|
1329
|
+
if (then == 0 || then == undefined || then == null || then == '') {
|
|
1330
|
+
if (install == 0 || install == undefined || install == null || install == '') {
|
|
1331
|
+
this.show_data.fields[i].value = 0
|
|
1332
|
+
} else {
|
|
1333
|
+
this.show_data.fields[i].value = install
|
|
1334
|
+
}
|
|
1335
|
+
} else {
|
|
1336
|
+
if (install == 0 || install == undefined || install == null || install == '') {
|
|
1337
|
+
this.show_data.fields[i].value = then
|
|
1338
|
+
} else {
|
|
1339
|
+
this.show_data.fields[i].value = parseFloat(then) + parseFloat(install)
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
temp = this.show_data.fields[i].value
|
|
1343
|
+
}
|
|
1344
|
+
if (this.show_data.fields[i].label === '实收金额') {
|
|
1345
|
+
if (then == 0 || then == undefined || then == null || then == '') {
|
|
1346
|
+
if (install == 0 || install == undefined || install == null || install == '') {
|
|
1347
|
+
this.show_data.fields[i].value = 0
|
|
1348
|
+
} else {
|
|
1349
|
+
this.show_data.fields[i].value = install
|
|
1350
|
+
}
|
|
1351
|
+
} else {
|
|
1352
|
+
if (install == 0 || install == undefined || install == null || install == '') {
|
|
1353
|
+
this.show_data.fields[i].value = then
|
|
1354
|
+
} else {
|
|
1355
|
+
this.show_data.fields[i].value = parseFloat(then) + parseFloat(install)
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
temp = temp - this.show_data.fields[i].value
|
|
1359
|
+
this.nowcost = this.show_data.fields[i].value
|
|
1360
|
+
}
|
|
1361
|
+
if (this.show_data.fields[i].label === '金额大写') {
|
|
1362
|
+
this.show_data.fields[i].value = this.smalltoBIG(Number(this.nowcost))
|
|
1363
|
+
}
|
|
1364
|
+
for (let j = 0; j < this.show_data.fields.length; j++) {
|
|
1365
|
+
if (this.show_data.fields[j].label === '欠费金额') {
|
|
1366
|
+
this.show_data.fields[j].value = temp
|
|
1367
|
+
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
if (temp < 0) {
|
|
1371
|
+
this.$showMessage("欠费金额不能为负数")
|
|
1372
|
+
return
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
// 用气性质 == 气价名称
|
|
1378
|
+
// for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
1379
|
+
//
|
|
1380
|
+
// }
|
|
1381
|
+
// if (this.show_data.fields[i].label === '用气性质') {
|
|
1382
|
+
let http = new HttpResetClass()
|
|
1383
|
+
let condition = "f_orgid = '" + this.$login.f.orgid + "'"
|
|
1384
|
+
// let condition = "1=1"
|
|
1385
|
+
let res = await http.load('POST', 'rs/sql/singleTable', {
|
|
1386
|
+
data: {
|
|
1387
|
+
tablename: 't_stairprice',
|
|
1388
|
+
condition: condition
|
|
1389
|
+
}
|
|
1390
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
1391
|
+
for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
1392
|
+
if (this.show_data.fields[i].label == '用气性质') {
|
|
1393
|
+
let data = []
|
|
1394
|
+
let array = []
|
|
1395
|
+
data = res.data.map(item => {
|
|
1396
|
+
return item.f_price_name;
|
|
1397
|
+
})
|
|
1398
|
+
for (let q = 0; q < data.length; q++) {
|
|
1399
|
+
let arraydata = {
|
|
1400
|
+
'label': data[q],
|
|
1401
|
+
'value': data[q]
|
|
1402
|
+
}
|
|
1403
|
+
if (array.length != 0) {
|
|
1404
|
+
for (let w = 0; w < array.length; w++) {
|
|
1405
|
+
if (array[w].label == data[q]) {
|
|
1406
|
+
break
|
|
1407
|
+
}
|
|
1408
|
+
while (w == array.length - 1) {
|
|
1409
|
+
array.push(arraydata)
|
|
1410
|
+
break
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
} else {
|
|
1414
|
+
array.push(arraydata)
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
this.show_data.fields[i].options = array
|
|
1418
|
+
console.log("选择框数据:" + JSON.stringify(this.show_data.fields[i].options))
|
|
1419
|
+
console.log("有没有数据长度:" + this.show_data.fields[i].value.length)
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
// }
|
|
1423
|
+
},
|
|
1424
|
+
|
|
1425
|
+
dataChange(button_name) {
|
|
1426
|
+
let beforeData = this.data.fields
|
|
1427
|
+
let submitData = this.$refs.service_show.data.fields
|
|
1428
|
+
// 比较
|
|
1429
|
+
let f_before_change = []
|
|
1430
|
+
let f_change = []
|
|
1431
|
+
for (let i = 0; i < beforeData.length; i++) {
|
|
1432
|
+
if (beforeData[i].value != submitData[i].value) {
|
|
1433
|
+
f_before_change.push(beforeData[i])
|
|
1434
|
+
f_change.push(submitData[i])
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
if (f_before_change.length == 0 && f_change.length == 0) {
|
|
1438
|
+
return
|
|
1439
|
+
}
|
|
1440
|
+
// 构建数据结构
|
|
1441
|
+
let data = {}
|
|
1442
|
+
data.f_before_change = f_before_change
|
|
1443
|
+
data.f_change = f_change
|
|
1444
|
+
data.f_process_id = this.data.f_process_id
|
|
1445
|
+
data.f_apply_num = this.data.f_apply_num
|
|
1446
|
+
data.actdefid = this.data.actdefid
|
|
1447
|
+
data.defname = this.data.defname
|
|
1448
|
+
data.f_filiale = this.$refs.service_show.model.f_filiale
|
|
1449
|
+
data.f_parentname = this.$refs.service_show.model.f_parentname
|
|
1450
|
+
data.f_operator = this.$refs.service_show.model.f_operator
|
|
1451
|
+
data.f_date = this.$refs.service_show.model.f_operate_date
|
|
1452
|
+
data.f_button_name = button_name
|
|
1453
|
+
delete data.id
|
|
1454
|
+
// let http = new HttpResetClass()
|
|
1455
|
+
// http.load('POST', 'rs/logic/saveChageData', {
|
|
1456
|
+
// data: data
|
|
1457
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
|
1458
|
+
// if(false){
|
|
1459
|
+
//
|
|
1460
|
+
// }
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
,
|
|
1464
|
+
events: {
|
|
1465
|
+
refreshSum(number, cost, tujiansum, anzhuangsum) {
|
|
1466
|
+
this.number = number
|
|
1467
|
+
this.cost = cost
|
|
1468
|
+
this.tujiansum = tujiansum
|
|
1469
|
+
this.anzhuangsum = anzhuangsum
|
|
1470
|
+
this.initializtion()
|
|
1471
|
+
},
|
|
1472
|
+
'get-cost'(val) {
|
|
1473
|
+
this.cost = val
|
|
1474
|
+
|
|
1475
|
+
this.initializtion()
|
|
1476
|
+
},
|
|
1477
|
+
'anzhuang-sum'(val) {
|
|
1478
|
+
this.anzhuangsum = val
|
|
1479
|
+
this.initializtion()
|
|
1480
|
+
},
|
|
1481
|
+
'tujian-sum'(val) {
|
|
1482
|
+
this.tujiansum = val
|
|
1483
|
+
this.initializtion()
|
|
1484
|
+
},
|
|
1485
|
+
'get-number'(val) {
|
|
1486
|
+
this.number = val
|
|
1487
|
+
|
|
1488
|
+
this.initializtion()
|
|
1489
|
+
}
|
|
1490
|
+
,
|
|
1491
|
+
'get-pgd'(val) {
|
|
1492
|
+
this.pgd = val
|
|
1493
|
+
this.initializtion()
|
|
1494
|
+
}
|
|
1495
|
+
,
|
|
1496
|
+
// 任意select选中时触发事件,关联性操作
|
|
1497
|
+
async 'select_cascade'(index) {
|
|
1498
|
+
// this.$refs.service_show.data // 子业务显示组件
|
|
1499
|
+
// 级联操作示例:
|
|
1500
|
+
/*
|
|
1501
|
+
if(this.$refs.service_show.data.fields[index].label==='报建类型'){
|
|
1502
|
+
for(let i=0;i<this.$refs.service_show.data.fields.length;i++){
|
|
1503
|
+
// 控制设置级联
|
|
1504
|
+
// 源select所选的值 this.$refs.service_show.data.fields[index].value
|
|
1505
|
+
if(this.$refs.service_show.data.fields[i].label==='级联测试2'){
|
|
1506
|
+
this.$refs.service_show.data.fields[i].options=[
|
|
1507
|
+
{label:'级联选项1',value:'级联选项1'},{label:'级联选项2',value:'级联选项2'},{label:'级联选项3',value:'级联选项3'}
|
|
1508
|
+
]
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
*/
|
|
1513
|
+
/*
|
|
1514
|
+
{
|
|
1515
|
+
"label": "用水性质",
|
|
1516
|
+
"type": "select",
|
|
1517
|
+
"bootstraped": "col-sm-4",
|
|
1518
|
+
"field": "f_gasproperties",
|
|
1519
|
+
"readonly": true,
|
|
1520
|
+
"disabled": false,
|
|
1521
|
+
"required": false,
|
|
1522
|
+
"hidden": true,
|
|
1523
|
+
"options": []
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
"label": "水价类型",
|
|
1527
|
+
"type": "select",
|
|
1528
|
+
"bootstraped": "col-sm-4",
|
|
1529
|
+
"field": "f_price_type",
|
|
1530
|
+
"readonly": true,
|
|
1531
|
+
"disabled": false,
|
|
1532
|
+
"required": false,
|
|
1533
|
+
"hidden": true,
|
|
1534
|
+
"options": []
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"label": "水价名称",
|
|
1538
|
+
"type": "select",
|
|
1539
|
+
"bootstraped": "col-sm-4",
|
|
1540
|
+
"field": "f_price_name",
|
|
1541
|
+
"readonly": true,
|
|
1542
|
+
"disabled": false,
|
|
1543
|
+
"required": false,
|
|
1544
|
+
"hidden": true,
|
|
1545
|
+
"options": []
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
"label": "水价id",
|
|
1549
|
+
"type": "number",
|
|
1550
|
+
"bootstraped": "col-sm-4",
|
|
1551
|
+
"field": "f_price_id",
|
|
1552
|
+
"readonly": true,
|
|
1553
|
+
"disabled": false,
|
|
1554
|
+
"required": false,
|
|
1555
|
+
"hidden": true
|
|
1556
|
+
},
|
|
1557
|
+
*/
|
|
1558
|
+
if(this.$refs.service_show.data.fields[index].label === '是否装新表'){
|
|
1559
|
+
for(let i=0;i<this.$refs.service_show.data.fields.length;i++){
|
|
1560
|
+
if(this.$refs.service_show.data.fields[index].value == '是'){
|
|
1561
|
+
if(this.$refs.service_show.data.fields[i].label=='用水性质'||
|
|
1562
|
+
this.$refs.service_show.data.fields[i].label=='水价类型'||
|
|
1563
|
+
this.$refs.service_show.data.fields[i].label=='水价名称'
|
|
1564
|
+
){
|
|
1565
|
+
this.$refs.service_show.data.fields[i].required=true,
|
|
1566
|
+
this.$refs.service_show.data.fields[i].hidden=false
|
|
1567
|
+
}
|
|
1568
|
+
}else{
|
|
1569
|
+
if(this.$refs.service_show.data.fields[i].label=='用水性质'||
|
|
1570
|
+
this.$refs.service_show.data.fields[i].label=='水价类型'||
|
|
1571
|
+
this.$refs.service_show.data.fields[i].label=='水价名称'){
|
|
1572
|
+
this.$refs.service_show.data.fields[i].required=false,
|
|
1573
|
+
this.$refs.service_show.data.fields[i].hidden=true
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
if(this.$refs.service_show.data.fields[index].label === '是否装新表'&&this.$refs.service_show.data.fields[index].value=='是'){
|
|
1579
|
+
let usertype = ''
|
|
1580
|
+
for(let i=0;i<this.$refs.service_show.data.fields.length;i++){
|
|
1581
|
+
if(this.$refs.service_show.data.fields[i].label=='用户类型'){
|
|
1582
|
+
usertype = this.$refs.service_show.data.fields[i].value
|
|
1583
|
+
}
|
|
1584
|
+
if(this.$refs.service_show.data.fields[i].label=='用水性质'&&this.$refs.service_show.data.fields[index].value){
|
|
1585
|
+
this.$refs.service_show.data.fields[i].options=[]
|
|
1586
|
+
this.$refs.service_show.data.fields[i].value = ''
|
|
1587
|
+
this.$refs.service_show.data.fields[i].options= this.$appdata.getParam(usertype)
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
if (this.$refs.service_show.data.fields[index].label === '用户类型') { //用水性质
|
|
1593
|
+
for(let i=0;i<this.$refs.service_show.data.fields.length;i++){
|
|
1594
|
+
if(this.$refs.service_show.data.fields[i].label=='用水性质'&&this.$refs.service_show.data.fields[index].value){
|
|
1595
|
+
this.$refs.service_show.data.fields[i].options=[]
|
|
1596
|
+
this.$refs.service_show.data.fields[i].value = ''
|
|
1597
|
+
this.$refs.service_show.data.fields[i].options= this.$appdata.getParam(this.$refs.service_show.data.fields[index].value.trim())
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
if (this.$refs.service_show.data.fields[index].label === '技术人员') { //水价类型
|
|
1603
|
+
for(let i=0;i<this.$refs.service_show.data.fields.length;i++){
|
|
1604
|
+
if(this.$refs.service_show.data.fields[i].label=='技术人员id'&&this.$refs.service_show.data.fields[index].value){
|
|
1605
|
+
if(typeof this.$refs.service_show.data.fields[index].value=='object'){
|
|
1606
|
+
this.$refs.service_show.data.fields[i].value=this.$refs.service_show.data.fields[index].value.id
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
|
|
1613
|
+
if (this.$refs.service_show.data.fields[index].label === '用水性质') { //水价类型
|
|
1614
|
+
for(let i=0;i<this.$refs.service_show.data.fields.length;i++){
|
|
1615
|
+
if(this.$refs.service_show.data.fields[i].label=='水价类型'&&this.$refs.service_show.data.fields[index].value){
|
|
1616
|
+
this.$refs.service_show.data.fields[i].options=[]
|
|
1617
|
+
this.$refs.service_show.data.fields[i].value = ''
|
|
1618
|
+
this.$refs.service_show.data.fields[i].options= this.$appdata.getParam(this.$refs.service_show.data.fields[i].label)
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
if (this.$refs.service_show.data.fields[index].label === '水价类型') {
|
|
1624
|
+
let gasproperties = ''
|
|
1625
|
+
for(let i=0;i<this.$refs.service_show.data.fields.length;i++){
|
|
1626
|
+
if(this.$refs.service_show.data.fields[i].label=='用水性质'){
|
|
1627
|
+
gasproperties= this.$refs.service_show.data.fields[i].value
|
|
1628
|
+
}
|
|
1629
|
+
if(this.$refs.service_show.data.fields[i].label=='水价名称'){
|
|
1630
|
+
this.$refs.service_show.data.fields[i].value=''
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
let pricetype=this.$refs.service_show.data.fields[index].value
|
|
1636
|
+
let http = new HttpResetClass()
|
|
1637
|
+
let condition =`f_user_type = '${this.selectdata.f_user_type}' and f_filiale = '${this.$login.f.f_fengongsi}'
|
|
1638
|
+
and f_gasproperties = '${gasproperties}' and f_price_type = '${this.$refs.service_show.data.fields[index].value}'`
|
|
1639
|
+
let res = await http.load('POST', 'rs/logic/getRecordItem', {condition}, {resolveMsg: null, rejectMsg: null})
|
|
1640
|
+
console.log('获取的水价类型,',res)
|
|
1641
|
+
let house2 = []
|
|
1642
|
+
if (res.data.pricename) {
|
|
1643
|
+
for (let row of res.data.pricename){
|
|
1644
|
+
house2.push({label: row.f_price_name,value: {id:row.f_price_id,name:row.f_price_name}})
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1649
|
+
if (this.$refs.service_show.data.fields[i].label === '水价名称') {
|
|
1650
|
+
this.$refs.service_show.data.fields[i].options= house2
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
if (this.$refs.service_show.data.fields[index].label === '水价名称') { //用水性质
|
|
1656
|
+
if(this.$refs.service_show.data.fields[index].value&&typeof this.$refs.service_show.data.fields[index].value =='object'){
|
|
1657
|
+
for(let i=0;i<this.$refs.service_show.data.fields.length;i++){
|
|
1658
|
+
if(this.$refs.service_show.data.fields[i].label=='水价id'){
|
|
1659
|
+
this.$refs.service_show.data.fields[i].value= Number(this.$refs.service_show.data.fields[index].value.id)
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
this.$refs.service_show.data.fields[index].value= this.$refs.service_show.data.fields[index].value.name
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
if (this.$refs.service_show.data.fields[index].label === '报建类型') {
|
|
1667
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1668
|
+
if (this.$refs.service_show.data.fields[i].label == '用户类型') {
|
|
1669
|
+
if (this.$refs.service_show.data.fields[index].value.includes('民用')) {
|
|
1670
|
+
this.$refs.service_show.data.fields[i].value = '民用'
|
|
1671
|
+
} else {
|
|
1672
|
+
this.$refs.service_show.data.fields[i].value = '非民用'
|
|
1673
|
+
}
|
|
1674
|
+
this.$refs.service_show.update()
|
|
1675
|
+
return
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
if (this.$refs.service_show.data.fields[index].label === '表号') {
|
|
1681
|
+
if(this.$refs.service_show.data.fields[index].value){
|
|
1682
|
+
let http = new HttpResetClass()
|
|
1683
|
+
let data = {
|
|
1684
|
+
columnname: ` uf.f_meternumber `,
|
|
1685
|
+
tablename: ' t_userfiles uf LEFT JOIN t_userinfo ui on ui.f_userinfo_id = uf.f_userinfo_id ',
|
|
1686
|
+
condition: `(f_user_state = '正常' or f_user_state = '报装') and uf.f_meternumber = '${this.$refs.service_show.data.fields[index].value}' and ui.f_process_id != '${this.selectdata.f_process_id}'`
|
|
1687
|
+
}
|
|
1688
|
+
let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
|
|
1689
|
+
resolveMsg: null,
|
|
1690
|
+
rejectMsg: "表号查询失败"
|
|
1691
|
+
})
|
|
1692
|
+
if(res.data.length>0){
|
|
1693
|
+
this.$showMessage("警告:表号已被使用!请查证")
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
if (this.$refs.service_show.data.fields[index].label === '安装表数'&&this.$refs.service_show.data.fields[index].value==1) {
|
|
1699
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++){
|
|
1700
|
+
if (this.$refs.service_show.data.fields[i].label === '用户类型'){
|
|
1701
|
+
// =this.$refs.service_show.data.fields[i].value
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
if (this.data.f_install_num == 1 && this.$refs.service_show.data.fields[index].label === '是否有表') {
|
|
1707
|
+
if (this.$refs.service_show.data.fields[index].value == "是") {
|
|
1708
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1709
|
+
if (this.$refs.service_show.data.fields[i].label === '水表品牌'
|
|
1710
|
+
|| this.$refs.service_show.data.fields[i].label === '水表型号'
|
|
1711
|
+
|| this.$refs.service_show.data.fields[i].label === '左右表'
|
|
1712
|
+
|| this.$refs.service_show.data.fields[i].label === '表号'
|
|
1713
|
+
|| this.$refs.service_show.data.fields[i].label === '水表厂家') {
|
|
1714
|
+
this.$refs.service_show.data.fields[i].hidden = false
|
|
1715
|
+
this.$refs.service_show.data.fields[i].required = true
|
|
1716
|
+
} else if (this.selectdata.defname == '通水' && this.$refs.service_show.data.fields[i].label === '通水表号') {
|
|
1717
|
+
this.$refs.service_show.data.fields[i].hidden = false
|
|
1718
|
+
this.$refs.service_show.data.fields[i].required = true
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
} else {
|
|
1722
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1723
|
+
if (this.$refs.service_show.data.fields[i].label === '水表品牌'
|
|
1724
|
+
|| this.$refs.service_show.data.fields[i].label === '水表型号'
|
|
1725
|
+
|| this.$refs.service_show.data.fields[i].label === '表号'
|
|
1726
|
+
|| this.$refs.service_show.data.fields[i].label === '左右表'
|
|
1727
|
+
|| this.$refs.service_show.data.fields[i].label === '水表厂家') {
|
|
1728
|
+
this.$refs.service_show.data.fields[i].hidden = true
|
|
1729
|
+
this.$refs.service_show.data.fields[i].required = false
|
|
1730
|
+
} else if (this.selectdata.defname == '通水' && this.$refs.service_show.data.fields[i].label === '通水表号') {
|
|
1731
|
+
this.$refs.service_show.data.fields[i].hidden = true
|
|
1732
|
+
this.$refs.service_show.data.fields[i].required = false
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
if (this.$refs.service_show.data.fields[index].label === '水表品牌') {
|
|
1738
|
+
// console.log("水表品牌>>>>>"+JSON.stringify(this.$refs.service_show.data.fields[index].value))
|
|
1739
|
+
let id = null
|
|
1740
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1741
|
+
if (this.$refs.service_show.data.fields[i].label == '水表型号') {
|
|
1742
|
+
this.$refs.service_show.data.fields[i].value = ''
|
|
1743
|
+
let temp = {}
|
|
1744
|
+
// console.log("this.$refs.service_show.data.fields[index].value",this.$refs.service_show.data.fields[index].value)
|
|
1745
|
+
if(typeof this.$refs.service_show.data.fields[index].value =='string'){
|
|
1746
|
+
for (let x = 0; x < Vue.ApplyGetSaleParam.gasbrands.length; x++) {
|
|
1747
|
+
if (Vue.ApplyGetSaleParam.gasbrands[x].label == this.$refs.service_show.data.fields[index].value) {
|
|
1748
|
+
temp = Vue.ApplyGetSaleParam.gasbrands[x].value.gasmodel
|
|
1749
|
+
id = Vue.ApplyGetSaleParam.gasbrands[x].value.id
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
// let temp = this.$refs.service_show.data.fields[index].value.gasmodel
|
|
1753
|
+
this.$refs.service_show.data.fields[i].options = temp
|
|
1754
|
+
this.$refs.service_show.data.fields[index].value = typeof this.$refs.service_show.data.fields[index].value == 'string' ? this.$refs.service_show.data.fields[index].value : this.$refs.service_show.data.fields[index].value.f_meter_brand
|
|
1755
|
+
}else{
|
|
1756
|
+
id= Number(this.$refs.service_show.data.fields[index].value.id)
|
|
1757
|
+
let http = new HttpResetClass()
|
|
1758
|
+
let data = {
|
|
1759
|
+
columnname: 'f_meter_style,id',
|
|
1760
|
+
tablename: 't_gasmodel ',
|
|
1761
|
+
condition: ` f_gasbrand_id = ${this.$refs.service_show.data.fields[index].value.id} `
|
|
1762
|
+
}
|
|
1763
|
+
let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {resolveMsg: null, rejectMsg: '获取水表型号失败'})
|
|
1764
|
+
this.$refs.service_show.data.fields[i].options=[]
|
|
1765
|
+
for(let x=0;x<res.data.length;x++){
|
|
1766
|
+
this.$refs.service_show.data.fields[i].options.push({label:res.data[x].f_meter_style,value:{id:res.data[x].id,name:res.data[x].f_meter_style}})
|
|
1767
|
+
}
|
|
1768
|
+
console.log("水表型号",this.$refs.service_show.data.fields[i].options)
|
|
1769
|
+
// for (let x = 0; x < Vue.ApplyGetSaleParam.gasbrands.length; x++) {
|
|
1770
|
+
// if (Vue.ApplyGetSaleParam.gasbrands[x].label == this.$refs.service_show.data.fields[index].value.f_meter_brand) {
|
|
1771
|
+
// temp = Vue.ApplyGetSaleParam.gasbrands[x].value.gasmodel
|
|
1772
|
+
// id = Vue.ApplyGetSaleParam.gasbrands[x].value.id
|
|
1773
|
+
// }
|
|
1774
|
+
// }
|
|
1775
|
+
// // let temp = this.$refs.service_show.data.fields[index].value.gasmodel
|
|
1776
|
+
// this.$refs.service_show.data.fields[i].options = temp
|
|
1777
|
+
// this.$refs.service_show.data.fields[index].value = typeof this.$refs.service_show.data.fields[index].value == 'string' ? this.$refs.service_show.data.fields[index].value : this.$refs.service_show.data.fields[index].value.f_meter_brand
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
// this.$refs.service_show.update()
|
|
1782
|
+
} else if (this.$refs.service_show.data.fields[i].label == '水表品牌id') {
|
|
1783
|
+
this.$refs.service_show.data.fields[i].value = id
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
for(let i = 0; i < this.$refs.service_show.data.fields.length; i++){
|
|
1787
|
+
if (this.$refs.service_show.data.fields[i].label == '水表品牌id') {
|
|
1788
|
+
this.$refs.service_show.data.fields[i].value = id
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
this.$refs.service_show.update()
|
|
1792
|
+
}
|
|
1793
|
+
if (this.$refs.service_show.data.fields[index].label === '水表型号') {
|
|
1794
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1795
|
+
if (this.$refs.service_show.data.fields[i].label == '水表型号id') {
|
|
1796
|
+
this.$refs.service_show.data.fields[i].value = Number(this.$refs.service_show.data.fields[index].value.id)
|
|
1797
|
+
// console.log("水表型号id:",this.$refs.service_show.data.fields[i].value)
|
|
1798
|
+
}else if(this.$refs.service_show.data.fields[i].label == '水表品牌'&&typeof this.$refs.service_show.data.fields[i].value =='object'){
|
|
1799
|
+
this.$refs.service_show.data.fields[i].value = this.$refs.service_show.data.fields[i].value.name
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
this.$refs.service_show.data.fields[index].value = this.$refs.service_show.data.fields[index].value.name
|
|
1803
|
+
this.$refs.service_show.update()
|
|
1804
|
+
return
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
if (this.$refs.service_show.data.fields[index].label == '电话号码') {
|
|
1809
|
+
let phone = this.$refs.service_show.data.fields[index].value
|
|
1810
|
+
// 电话号码效验
|
|
1811
|
+
if (!(/^1[3456789]\d{9}$/.test(phone))) {
|
|
1812
|
+
this.$refs.service_show.data.fields[index].value = ""
|
|
1813
|
+
this.$showAlert('电话号码格式不正确,请重新输入。', 'info', 2000)
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
if (this.$refs.service_show.data.fields[index].label == '施工单位' ||
|
|
1818
|
+
this.$refs.service_show.data.fields[index].label == '检测单位' ||
|
|
1819
|
+
this.$refs.service_show.data.fields[index].label == '监理单位' ||
|
|
1820
|
+
this.$refs.service_show.data.fields[index].label == '土建单位' ||
|
|
1821
|
+
this.$refs.service_show.data.fields[index].label == '设计单位') {
|
|
1822
|
+
console.log(this.$refs.service_show.data.fields[index].label,this.$refs.service_show.data.fields[index].value)
|
|
1823
|
+
this.$refs.service_show.update()
|
|
1824
|
+
return
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
if (
|
|
1828
|
+
this.$refs.service_show.data.fields[index].label === '最终核算成本金额' ||
|
|
1829
|
+
this.$refs.service_show.data.fields[index].label === '合同总金额' ||
|
|
1830
|
+
this.$refs.service_show.data.fields[index].label === '工程盈利'
|
|
1831
|
+
) {
|
|
1832
|
+
|
|
1833
|
+
var a = 0
|
|
1834
|
+
var b = 0
|
|
1835
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1836
|
+
// 控制设置级联
|
|
1837
|
+
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
1838
|
+
// xxx xx xxx
|
|
1839
|
+
if (this.$refs.service_show.data.fields[i].label === '最终核算成本金额') {
|
|
1840
|
+
this.$refs.service_show.data.fields[i].value = (this.number + this.cost + this.anzhuangsum + this.tujiansum)
|
|
1841
|
+
a = this.$refs.service_show.data.fields[i].value
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
if (this.$refs.service_show.data.fields[i].label === '合同总金额' && this.$refs.service_show.data.fields[i].value) {
|
|
1845
|
+
b = this.$refs.service_show.data.fields[i].value
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
var c = b - a
|
|
1849
|
+
// 数据计算完毕得到工程结余
|
|
1850
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1851
|
+
if (this.$refs.service_show.data.fields[i].label === '工程盈利') {
|
|
1852
|
+
this.$refs.service_show.data.fields[i].value = c
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
if (this.$refs.service_show.showadd_fields && this.$refs.service_show.showadd_fields.length > 0 && this.$refs.service_show.showadd_fields[index].label === '收费金额') {
|
|
1858
|
+
let chargeMoney = this.$refs.service_show.showadd_fields[index].value
|
|
1859
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1860
|
+
if (this.$refs.service_show.data.fields[i].label === '未结总金额') {
|
|
1861
|
+
let cumulativeMoney = this.$refs.service_show.data.fields[i].value
|
|
1862
|
+
if (Number(chargeMoney) > Number(cumulativeMoney)) {
|
|
1863
|
+
this.$showMessage("收费金额不得大于未结总金额!")
|
|
1864
|
+
this.$refs.service_show.showadd_fields[index].value = null
|
|
1865
|
+
return
|
|
1866
|
+
} else {
|
|
1867
|
+
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
//根据合同预算金额和累计缴费金额计算未结金额
|
|
1874
|
+
if (this.$refs.service_show.data.fields[index] && this.$refs.service_show.data.fields[index].label === '累计缴费金额') {
|
|
1875
|
+
let cumulativeMoney = this.$refs.service_show.data.fields[index].value
|
|
1876
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1877
|
+
if (this.$refs.service_show.data.fields[i].label === '未结总金额') {
|
|
1878
|
+
this.$refs.service_show.data.fields[i].value = Number(this.selectdata.f_contract_money) - Number(cumulativeMoney)
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
607
1882
|
//根据合同预算金额和累计开票金额计算未开票金额
|
|
608
1883
|
if (this.$refs.service_show.data.fields[index].label === '累计开票金额') {
|
|
609
1884
|
let residualInvoicing = this.$refs.service_show.data.fields[index].value
|
|
@@ -628,6 +1903,14 @@
|
|
|
628
1903
|
}
|
|
629
1904
|
}
|
|
630
1905
|
}
|
|
1906
|
+
//洪雅预算审核获取当前操作人
|
|
1907
|
+
// console.log("lable:"+this.$refs.service_show.data.fields[index].label)
|
|
1908
|
+
// console.log("field:"+this.$refs.service_show.data.fields[index].field)
|
|
1909
|
+
// if (this.$refs.service_show.data.fields[index].label === "审核人" && this.$refs.service_show.data.fields[index].field === "f_nstall_checker_gc" ){
|
|
1910
|
+
// console.log("name:"+JSON.stringify(Vue.$login.f.name))
|
|
1911
|
+
// this.$refs.service_show.data.fields[index].field = Vue.$login.f.name
|
|
1912
|
+
// }
|
|
1913
|
+
|
|
631
1914
|
if (this.$refs.service_show.data.fields[index].label === '工程验收是否通过') {
|
|
632
1915
|
let res = this.$refs.service_show.data.fields[index].value
|
|
633
1916
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
@@ -642,41 +1925,41 @@
|
|
|
642
1925
|
}
|
|
643
1926
|
}
|
|
644
1927
|
}
|
|
645
|
-
|
|
646
|
-
if (this.$refs.service_show.data.fields[index].label === '
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
}
|
|
1928
|
+
//根据总户数和实际安装表数计算未安装表数
|
|
1929
|
+
// if (this.$refs.service_show.data.fields[index].label === '实际安装表数') {
|
|
1930
|
+
// let value = this.$refs.service_show.data.fields[index].value
|
|
1931
|
+
// for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1932
|
+
// if (this.$refs.service_show.data.fields[i].label === '未安装表数') {
|
|
1933
|
+
// this.$refs.service_show.data.fields[i].label === '未安装表数'
|
|
1934
|
+
// this.$refs.service_show.data.fields[i].value = Number(this.selectdata.f_install_num) - Number(value)
|
|
1935
|
+
// }
|
|
1936
|
+
// }
|
|
1937
|
+
// }
|
|
655
1938
|
|
|
656
1939
|
//金额小写得到大写
|
|
657
|
-
if (this.$refs.service_show.showadd_fields && this.$refs.service_show.showadd_fields.
|
|
658
|
-
if(this.$refs.service_show.showadd_fields[index].value||this.$refs.service_show.showadd_fields.fields[index].value){
|
|
1940
|
+
if (this.$refs.service_show.showadd_fields && this.$refs.service_show.showadd_fields.length > 0 && this.$refs.service_show.showadd_fields.fields[index].label === '收费金额') {
|
|
1941
|
+
if (this.$refs.service_show.showadd_fields[index].value || this.$refs.service_show.showadd_fields.fields[index].value) {
|
|
659
1942
|
var re = /^[0-9]+.?[0-9]*/
|
|
660
1943
|
let temp = this.$refs.service_show.showadd_fields[index].value
|
|
661
|
-
if(temp==""|| isNaN(temp)){
|
|
1944
|
+
if (temp == "" || isNaN(temp)) {
|
|
662
1945
|
this.$showMessage("请输入纯数字")
|
|
663
|
-
this.$refs.service_show.showadd_fields[index].value=0
|
|
1946
|
+
this.$refs.service_show.showadd_fields[index].value = 0
|
|
664
1947
|
}
|
|
665
1948
|
}
|
|
666
1949
|
let temp = this.$refs.service_show.showadd_fields[index]
|
|
667
|
-
let value =
|
|
1950
|
+
let value = temp.value
|
|
668
1951
|
// let chargeMoney = this.$refs.service_show.showadd_fields[index].value
|
|
669
1952
|
for (let i = 0; i < this.$refs.service_show.showadd_fields.fields.length; i++) {
|
|
670
1953
|
if (this.$refs.service_show.showadd_fields.fields[i].label === '金额大写') {
|
|
671
1954
|
let te = {
|
|
672
|
-
|
|
1955
|
+
value: this.smalltoBIG(value)
|
|
673
1956
|
}
|
|
674
1957
|
this.$refs.service_show.showadd_fields[i] = te
|
|
675
1958
|
}
|
|
676
1959
|
}
|
|
677
1960
|
}
|
|
678
1961
|
|
|
679
|
-
|
|
1962
|
+
// console.log(JSON.stringify(this.$login.f))
|
|
680
1963
|
if (this.$refs.service_show.data.fields[index].label === '县/区') {
|
|
681
1964
|
let temp = this.$refs.service_show.data.fields[index].value
|
|
682
1965
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
@@ -707,8 +1990,8 @@
|
|
|
707
1990
|
) {
|
|
708
1991
|
console.log('即将计算合同金额')
|
|
709
1992
|
var cash = 0
|
|
710
|
-
var downpayments=0
|
|
711
|
-
var tailmoney=0
|
|
1993
|
+
var downpayments = 0
|
|
1994
|
+
var tailmoney = 0
|
|
712
1995
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
713
1996
|
// 控制设置级联
|
|
714
1997
|
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
@@ -717,25 +2000,27 @@
|
|
|
717
2000
|
cash = this.$refs.service_show.data.fields[i].value
|
|
718
2001
|
}
|
|
719
2002
|
if (this.$refs.service_show.data.fields[i].label === '首付' && this.$refs.service_show.data.fields[i].value) {
|
|
720
|
-
downpayments =
|
|
2003
|
+
downpayments = this.$refs.service_show.data.fields[i].value
|
|
721
2004
|
}
|
|
722
2005
|
if (this.$refs.service_show.data.fields[i].label === '进度款' && this.$refs.service_show.data.fields[i].value) {
|
|
723
|
-
tailmoney =
|
|
2006
|
+
tailmoney = this.$refs.service_show.data.fields[i].value
|
|
724
2007
|
}
|
|
725
2008
|
}
|
|
726
|
-
var a =cash - downpayments
|
|
2009
|
+
var a = cash - downpayments
|
|
2010
|
+
a= a.toFixed(2)
|
|
727
2011
|
// 数据计算完毕得到尾款
|
|
728
2012
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
729
2013
|
if (this.$refs.service_show.data.fields[i].label === '尾款') {
|
|
730
|
-
if (cash === downpayments
|
|
2014
|
+
if (cash === downpayments) {
|
|
731
2015
|
this.$refs.service_show.data.fields[i].value = 0
|
|
732
|
-
} else{
|
|
2016
|
+
} else {
|
|
733
2017
|
this.$refs.service_show.data.fields[i].value = (cash - downpayments - tailmoney)
|
|
2018
|
+
this.$refs.service_show.data.fields[i].value=this.$refs.service_show.data.fields[i].value.toFixed(2)
|
|
734
2019
|
console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
|
|
735
2020
|
}
|
|
736
2021
|
}
|
|
737
2022
|
if (this.$refs.service_show.data.fields[i].label === '首付') {
|
|
738
|
-
if (a<0){
|
|
2023
|
+
if (a < 0) {
|
|
739
2024
|
this.$showMessage("首付款数额过大")
|
|
740
2025
|
downpayments = 0
|
|
741
2026
|
this.$refs.service_show.data.fields[i].value = 0
|
|
@@ -744,15 +2029,15 @@
|
|
|
744
2029
|
|
|
745
2030
|
if (this.$refs.service_show.data.fields[i].label === '进度款') {
|
|
746
2031
|
|
|
747
|
-
if (cash === downpayments
|
|
2032
|
+
if (cash === downpayments) {
|
|
748
2033
|
tailmoney = 0
|
|
749
2034
|
this.$refs.service_show.data.fields[i].value = 0
|
|
750
|
-
this.$refs.service_show.data.fields[i].readonly=true
|
|
751
|
-
}else {
|
|
752
|
-
this.$refs.service_show.data.fields[i].readonly=false
|
|
753
|
-
tailmoney =
|
|
2035
|
+
this.$refs.service_show.data.fields[i].readonly = true
|
|
2036
|
+
} else {
|
|
2037
|
+
this.$refs.service_show.data.fields[i].readonly = false
|
|
2038
|
+
tailmoney = this.$refs.service_show.data.fields[i].value
|
|
754
2039
|
}
|
|
755
|
-
if (tailmoney>a){
|
|
2040
|
+
if (tailmoney > a) {
|
|
756
2041
|
this.$showMessage("进度款数额过大")
|
|
757
2042
|
tailmoney = 0
|
|
758
2043
|
this.$refs.service_show.data.fields[i].value = 0
|
|
@@ -760,12 +2045,375 @@
|
|
|
760
2045
|
}
|
|
761
2046
|
}
|
|
762
2047
|
}
|
|
2048
|
+
let temp = 0
|
|
2049
|
+
let then = 0
|
|
2050
|
+
let install = 0
|
|
2051
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
2052
|
+
//未交金额计算
|
|
2053
|
+
if (this.selectdata.defname === "报建缴费" ||this.selectdata.defname === "现场勘察") {
|
|
2054
|
+
if (this.$refs.service_show.data.fields[i].label === '超长费') {
|
|
2055
|
+
then = this.$refs.service_show.data.fields[i].value
|
|
2056
|
+
}
|
|
2057
|
+
if (this.$refs.service_show.data.fields[i].label === '安装费') {
|
|
2058
|
+
install = this.$refs.service_show.data.fields[i].value
|
|
2059
|
+
}
|
|
2060
|
+
if (this.$refs.service_show.data.fields[i].label === '应收金额') {
|
|
2061
|
+
if (then == 0 || then == undefined || then == null || then == '') {
|
|
2062
|
+
if (install == 0 || install == undefined || install == null || install == '') {
|
|
2063
|
+
this.$refs.service_show.data.fields[i].value = 0
|
|
2064
|
+
}else {
|
|
2065
|
+
this.$refs.service_show.data.fields[i].value = install
|
|
2066
|
+
}
|
|
2067
|
+
}else {
|
|
2068
|
+
if (install == 0 || install == undefined || install == null || install == '') {
|
|
2069
|
+
this.$refs.service_show.data.fields[i].value = then
|
|
2070
|
+
}else {
|
|
2071
|
+
this.$refs.service_show.data.fields[i].value = parseFloat(then) + parseFloat(install)
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
temp = this.$refs.service_show.data.fields[i].value
|
|
2075
|
+
}
|
|
2076
|
+
if (this.$refs.service_show.data.fields[i].label === '实收金额') {
|
|
2077
|
+
temp = temp - this.$refs.service_show.data.fields[i].value
|
|
2078
|
+
this.nowcost = this.$refs.service_show.data.fields[i].value
|
|
2079
|
+
}
|
|
2080
|
+
if (this.$refs.service_show.data.fields[i].label === '金额大写') {
|
|
2081
|
+
this.$refs.service_show.data.fields[i].value = this.smalltoBIG(Number(this.nowcost))
|
|
2082
|
+
}
|
|
2083
|
+
for (let j = 0; j < this.$refs.service_show.data.fields.length; j++) {
|
|
2084
|
+
if (this.$refs.service_show.data.fields[j].label === '欠费金额'){
|
|
2085
|
+
this.$refs.service_show.data.fields[j].value = temp
|
|
2086
|
+
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
if (temp < 0) {
|
|
2090
|
+
this.$showMessage("欠费金额不能为负数")
|
|
2091
|
+
return
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
// if (this.selectdata.defname === "现场踏勘") {
|
|
2095
|
+
// if (this.$refs.service_show.data.fields[i].label === '收款金额') {
|
|
2096
|
+
// temp = this.$refs.service_show.data.fields[i].value
|
|
2097
|
+
// }
|
|
2098
|
+
// if (this.$refs.service_show.data.fields[i].label === '已交金额') {
|
|
2099
|
+
// temp = temp - this.$refs.service_show.data.fields[i].value
|
|
2100
|
+
// this.nowcost = this.$refs.service_show.data.fields[i].value
|
|
2101
|
+
// }
|
|
2102
|
+
// if (this.$refs.service_show.data.fields[i].label === '金额大写') {
|
|
2103
|
+
// this.$refs.service_show.data.fields[i].value = this.smalltoBIG(Number(this.nowcost))
|
|
2104
|
+
// }
|
|
2105
|
+
// for (let j = 0; j < this.$refs.service_show.data.fields.length; j++) {
|
|
2106
|
+
// if (this.$refs.service_show.data.fields[j].label === '未交金额'){
|
|
2107
|
+
// this.$refs.service_show.data.fields[j].value = temp
|
|
2108
|
+
// }
|
|
2109
|
+
// }
|
|
2110
|
+
// if (temp < 0) {
|
|
2111
|
+
// this.$showMessage("欠费金额不能为负数")
|
|
2112
|
+
// return
|
|
2113
|
+
// }
|
|
2114
|
+
// }
|
|
2115
|
+
|
|
2116
|
+
//任何是否的选择框只要是否都不能提交
|
|
2117
|
+
// if (this.selectdata.defname != '寻找市场' && this.selectdata.defname != '用户申请') {
|
|
2118
|
+
// if (this.$refs.service_show.data.fields[i].value === '否') {
|
|
2119
|
+
// this.$refs.service_show.disable_button = false
|
|
2120
|
+
// console.log(this.$refs.service_show.data)
|
|
2121
|
+
// this.$refs.service_show.data.buttons[1].button_name = '保存'
|
|
2122
|
+
// this.$showMessage("当审核/确认为否时,无法提交")
|
|
2123
|
+
// return
|
|
2124
|
+
// }else {
|
|
2125
|
+
// this.$refs.service_show.data.buttons[1].button_name = '提交'
|
|
2126
|
+
// }
|
|
2127
|
+
// }
|
|
2128
|
+
//获取抄表员
|
|
2129
|
+
if (this.$refs.service_show.data.fields[i].label === '安装员'){
|
|
2130
|
+
let person = []
|
|
2131
|
+
let array = []
|
|
2132
|
+
person = this.$login.f.f_installman.map(item => {
|
|
2133
|
+
return item.name;
|
|
2134
|
+
})
|
|
2135
|
+
console.log("安装员获取" + JSON.stringify(person))
|
|
2136
|
+
for (let q = 0; q < person.length; q++) {
|
|
2137
|
+
let arraydata = {
|
|
2138
|
+
'label': person[q],
|
|
2139
|
+
'value': person[q]
|
|
2140
|
+
}
|
|
2141
|
+
if (array.length != 0) {
|
|
2142
|
+
for (let w = 0; w < array.length; w++) {
|
|
2143
|
+
if (array[w].label == person[q]) {
|
|
2144
|
+
break
|
|
2145
|
+
}
|
|
2146
|
+
while (w == array.length - 1) {
|
|
2147
|
+
array.push(arraydata)
|
|
2148
|
+
break
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
} else {
|
|
2152
|
+
array.push(arraydata)
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
this.$refs.service_show.data.fields[i].options = array
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
// if (this.selectdata.f_apply_type == '新用户' && this.selectdata.defname == '核对'
|
|
2159
|
+
// && this.$refs.service_show.data.fields[i].label == '累计交费金额合计') {
|
|
2160
|
+
// this.$refs.service_show.data.fields[i].value = this.$refs.charge.f_cumulative_money_sum()
|
|
2161
|
+
// this.$refs.service_show.data.fields[i].hidden = false
|
|
2162
|
+
// }
|
|
2163
|
+
|
|
2164
|
+
//用气性质相同于气价名称
|
|
2165
|
+
//气价名称、气价类型
|
|
2166
|
+
if (
|
|
2167
|
+
this.$refs.service_show.data.fields[i].label === '气价名称' ||
|
|
2168
|
+
this.$refs.service_show.data.fields[i].label === '气价类型' ||
|
|
2169
|
+
this.$refs.service_show.data.fields[i].label === '价格' ||
|
|
2170
|
+
this.$refs.service_show.data.fields[i].label === '客户类型' ||
|
|
2171
|
+
this.$refs.service_show.data.fields[i].label === '用气性质'
|
|
2172
|
+
) {
|
|
2173
|
+
let http = new HttpResetClass()
|
|
2174
|
+
let condition = " f_filialeid in ('" + this.$login.f.orgid + "') and f_state='有效' AND (getdate() between f_perform_date and f_end_date or f_end_date is null)"
|
|
2175
|
+
let res = await http.load('POST','rs/sql/singleTable',{data:{tablename:'t_stairprice',condition:condition}}, {resolveMsg: null, rejectMsg: null})
|
|
2176
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
2177
|
+
if (this.$refs.service_show.data.fields[i].label == '用气性质') {
|
|
2178
|
+
let data = []
|
|
2179
|
+
let array = []
|
|
2180
|
+
data = res.data.map(item => {
|
|
2181
|
+
return item.f_price_name;
|
|
2182
|
+
})
|
|
2183
|
+
for (let q = 0; q < data.length; q++) {
|
|
2184
|
+
let arraydata = {
|
|
2185
|
+
'label': data[q],
|
|
2186
|
+
'value': data[q]
|
|
2187
|
+
}
|
|
2188
|
+
if (array.length != 0) {
|
|
2189
|
+
for (let w = 0; w < array.length; w++) {
|
|
2190
|
+
if (array[w].label == data[q]) {
|
|
2191
|
+
break
|
|
2192
|
+
}
|
|
2193
|
+
while (w == array.length - 1) {
|
|
2194
|
+
array.push(arraydata)
|
|
2195
|
+
break
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
} else {
|
|
2199
|
+
array.push(arraydata)
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
this.$refs.service_show.data.fields[i].options = array
|
|
2203
|
+
console.log("选择框数据:" + JSON.stringify(this.$refs.service_show.data.fields[i].options))
|
|
2204
|
+
console.log("有没有数据长度:" + this.$refs.service_show.data.fields[i].value.length)
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
if (this.$refs.service_show.data.fields[i].label == '气价名称' && this.$refs.service_show.data.fields[i].value.length != 0) {
|
|
2208
|
+
let http2 = new HttpResetClass()
|
|
2209
|
+
let condition2 = "s.f_filialeid = '" + this.$login.f.orgid + "'" + " and s.f_price_name = '" + this.$refs.service_show.data.fields[i].value + "'"
|
|
2210
|
+
let res2 = await http2.load('POST','rs/sql/searchGasPrice',{data:{condition:condition2}}, {resolveMsg: null, rejectMsg: null})
|
|
2211
|
+
console.log("气价数据:" + JSON.stringify(res2.data))
|
|
2212
|
+
for (let j = 0; j < this.$refs.service_show.data.fields.length; j++) {
|
|
2213
|
+
if (this.$refs.service_show.data.fields[j].label == '气价类型') {
|
|
2214
|
+
console.log("气价类型:" + res2.data[0])
|
|
2215
|
+
console.log("气价类型1:" + res2.data[0].f_price_type)
|
|
2216
|
+
this.$refs.service_show.data.fields[j].value = res2.data[0].f_price_type
|
|
2217
|
+
console.log("气价类型2:" + this.$refs.service_show.data.fields[j].value)
|
|
2218
|
+
}
|
|
2219
|
+
//气价拼接
|
|
2220
|
+
if (this.$refs.service_show.data.fields[j].label == '价格') {
|
|
2221
|
+
let p = 1
|
|
2222
|
+
let resultPrice = ''
|
|
2223
|
+
for(let l = 0; l < res2.data.length; l++){
|
|
2224
|
+
resultPrice = resultPrice + res2.data[l].price + ' |'
|
|
2225
|
+
if (p == 3) {
|
|
2226
|
+
break
|
|
2227
|
+
}
|
|
2228
|
+
p++
|
|
2229
|
+
}
|
|
2230
|
+
console.log("拼接的价格:" + resultPrice)
|
|
2231
|
+
this.$refs.service_show.data.fields[j].value = resultPrice
|
|
2232
|
+
}
|
|
2233
|
+
if (this.$refs.service_show.data.fields[j].label == '用气性质') {
|
|
2234
|
+
this.$refs.service_show.data.fields[j].value = res2.data[0].f_gasproperties
|
|
2235
|
+
}
|
|
2236
|
+
if (this.$refs.service_show.data.fields[j].label == '客户类型') {
|
|
2237
|
+
this.$refs.service_show.data.fields[j].value = res2.data[0].f_user_type
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
|
|
2246
|
+
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
|
|
2252
|
+
|
|
2253
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
2254
|
+
//新用户时处理逻辑
|
|
2255
|
+
// if (this.selectdata.f_apply_type == '新用户') {
|
|
2256
|
+
// this.$refs.service_show.data.fields[i].required = false
|
|
2257
|
+
// }
|
|
2258
|
+
//所属公司
|
|
2259
|
+
// if (this.selectdata.defname == '用户建档') {
|
|
2260
|
+
// if (this.$refs.service_show.data.fields[i].label === '所属公司') {
|
|
2261
|
+
// this.$refs.service_show.data.fields[i].value = this.$login.f.orgs
|
|
2262
|
+
// }
|
|
2263
|
+
// }
|
|
2264
|
+
// 气表品牌
|
|
2265
|
+
if (
|
|
2266
|
+
this.$refs.service_show.data.fields[i].label === '气表品牌' ||
|
|
2267
|
+
this.$refs.service_show.data.fields[i].label === '气表型号'
|
|
2268
|
+
) {
|
|
2269
|
+
if (this.$refs.service_show.data.fields[i].label == '气表品牌') {
|
|
2270
|
+
let http = new HttpResetClass()
|
|
2271
|
+
let condition = " id in (select f_gasbrand_id from t_gasbrand_orgid where f_using_orgid = '" + this.$login.f.orgid + "')"
|
|
2272
|
+
let res = await http.load('POST','rs/sql/applysingleTable',{data:{tablename:'t_gasbrand',condition:condition}}, {resolveMsg: null, rejectMsg: null})
|
|
2273
|
+
for (let p = 0; p < this.$refs.service_show.data.fields.length; p++) {
|
|
2274
|
+
if (this.$refs.service_show.data.fields[p].label == '气表品牌') {
|
|
2275
|
+
let data = []
|
|
2276
|
+
let array = []
|
|
2277
|
+
data = res.data.map(item => {
|
|
2278
|
+
return item.f_meter_brand;
|
|
2279
|
+
})
|
|
2280
|
+
for (let q = 0; q < data.length; q++) {
|
|
2281
|
+
let arraydata = {
|
|
2282
|
+
'label': data[q],
|
|
2283
|
+
'value': data[q]
|
|
2284
|
+
}
|
|
2285
|
+
if (array.length != 0) {
|
|
2286
|
+
for (let w = 0; w < array.length; w++) {
|
|
2287
|
+
if (array[w].label == data[q]) {
|
|
2288
|
+
break
|
|
2289
|
+
}
|
|
2290
|
+
while (w == array.length - 1) {
|
|
2291
|
+
array.push(arraydata)
|
|
2292
|
+
break
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
} else {
|
|
2296
|
+
array.push(arraydata)
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
this.$refs.service_show.data.fields[i].options = array
|
|
2300
|
+
console.log("气表品牌选择框数据:" + JSON.stringify(this.$refs.service_show.data.fields[i].options))
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
|
|
2306
|
+
if (this.$refs.service_show.data.fields[i].label == '气表品牌' && this.$refs.service_show.data.fields[i].value.length != 0) {
|
|
2307
|
+
let style = this.$refs.service_show.data.fields[i].value
|
|
2308
|
+
for (let j = 0; j < this.$refs.service_show.data.fields.length; j++) {
|
|
763
2309
|
|
|
2310
|
+
if (this.$refs.service_show.data.fields[j].label == '气表型号') {
|
|
2311
|
+
let http2 = new HttpResetClass()
|
|
2312
|
+
let res2 = await http2.load('POST','rs/sql/queryGasType',{data:{f_orgid:this.$login.f.orgid,f_meter_brand:style}}, {resolveMsg: null, rejectMsg: null})
|
|
2313
|
+
console.log("气表型号查询数据" + JSON.stringify(res2.data))
|
|
2314
|
+
let data = []
|
|
2315
|
+
let data2 = []
|
|
2316
|
+
let array = []
|
|
2317
|
+
data = res2.data.map(item => {
|
|
2318
|
+
return item.f_meter_style;
|
|
2319
|
+
})
|
|
2320
|
+
data2 = res2.data.map(item => {
|
|
2321
|
+
return item.f_type;
|
|
2322
|
+
})
|
|
2323
|
+
console.log("是不是来过这儿1")
|
|
2324
|
+
for (let q = 0; q < data.length; q++) {
|
|
2325
|
+
let arraydata = {
|
|
2326
|
+
'label': data[q] + data2[q],
|
|
2327
|
+
'value': data[q] + data2[q]
|
|
2328
|
+
}
|
|
2329
|
+
let then = data[q] + data2[q]
|
|
2330
|
+
if (array.length != 0) {
|
|
2331
|
+
for (let w = 0; w < array.length; w++) {
|
|
2332
|
+
if (array[w].label == then) {
|
|
2333
|
+
break
|
|
2334
|
+
}
|
|
2335
|
+
while (w == array.length - 1) {
|
|
2336
|
+
array.push(arraydata)
|
|
2337
|
+
break
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
} else {
|
|
2341
|
+
array.push(arraydata)
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
this.$refs.service_show.data.fields[j].options = array
|
|
2345
|
+
console.log("选择框数据:" + JSON.stringify(this.$refs.service_show.data.fields[j].options))
|
|
2346
|
+
// for (let k = 0; k < this.$refs.service_show.data.fields.length; k++) {
|
|
2347
|
+
// if (res2.data[0].f_meter_type != '机表') {
|
|
2348
|
+
// if (this.$refs.service_show.data.fields[k].label == '抄表本') {
|
|
2349
|
+
// console.log("来了没1")
|
|
2350
|
+
// this.$refs.service_show.data.fields[k].hidden = true
|
|
2351
|
+
// }
|
|
2352
|
+
// }else {
|
|
2353
|
+
// if (this.$refs.service_show.data.fields[k].label == '抄表本') {
|
|
2354
|
+
// console.log("来了没2")
|
|
2355
|
+
// this.$refs.service_show.data.fields[k].hidden = false
|
|
2356
|
+
// }
|
|
2357
|
+
// }
|
|
2358
|
+
// }
|
|
764
2359
|
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
}
|
|
765
2364
|
|
|
2365
|
+
}
|
|
2366
|
+
//调压箱获取
|
|
2367
|
+
if (
|
|
2368
|
+
this.selectdata.defname == '气表安装'
|
|
2369
|
+
) {
|
|
2370
|
+
let http = new HttpResetClass()
|
|
2371
|
+
let condition = "f_filialeid = '" + this.$login.f.orgid + "'"
|
|
2372
|
+
let res = await http.load('POST','rs/sql/singleTable',{data:{tablename:'t_adjustablebox',condition:condition}}, {resolveMsg: null, rejectMsg: null})
|
|
2373
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
2374
|
+
if (this.$refs.service_show.data.fields[i].label === '调压箱') {
|
|
2375
|
+
let data = []
|
|
2376
|
+
let array = []
|
|
2377
|
+
data = res.data.map(item => {
|
|
2378
|
+
return item.f_adjustable_name;
|
|
2379
|
+
})
|
|
2380
|
+
for (let q = 0; q < data.length; q++) {
|
|
2381
|
+
let arraydata = {
|
|
2382
|
+
'label': data[q],
|
|
2383
|
+
'value': data[q]
|
|
2384
|
+
}
|
|
2385
|
+
if (array.length != 0) {
|
|
2386
|
+
for (let w = 0; w < array.length; w++) {
|
|
2387
|
+
if (array[w].label == data[q]) {
|
|
2388
|
+
break
|
|
2389
|
+
}
|
|
2390
|
+
while (w == array.length - 1) {
|
|
2391
|
+
array.push(arraydata)
|
|
2392
|
+
break
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
} else {
|
|
2396
|
+
array.push(arraydata)
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
this.$refs.service_show.data.fields[i].options = array
|
|
2400
|
+
console.log("选择框数据:" + JSON.stringify(this.$refs.service_show.data.fields[i].options))
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
// console.log("this.selectdata:" + JSON.stringify(this.selectdata))
|
|
766
2409
|
// 合成地址
|
|
767
2410
|
if (
|
|
768
|
-
this.$refs.service_show.data.fields[index].label === '
|
|
2411
|
+
this.$refs.service_show.data.fields[index].label === '区域' ||
|
|
2412
|
+
// this.$refs.service_show.data.fields[index].label === '片区' ||
|
|
2413
|
+
// this.$refs.service_show.data.fields[index].label === '街道名称' ||
|
|
2414
|
+
this.$refs.service_show.data.fields[index].label === '街道' ||
|
|
2415
|
+
// this.$refs.service_show.data.fields[index].label === '小区/单位' ||
|
|
2416
|
+
this.$refs.service_show.data.fields[index].label === '小区' ||
|
|
769
2417
|
this.$refs.service_show.data.fields[index].label === '楼号' ||
|
|
770
2418
|
this.$refs.service_show.data.fields[index].label === '单元号' ||
|
|
771
2419
|
this.$refs.service_show.data.fields[index].label === '楼层' ||
|
|
@@ -777,19 +2425,48 @@
|
|
|
777
2425
|
// 控制设置级联
|
|
778
2426
|
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
779
2427
|
// xxx xx xxx
|
|
780
|
-
if (this.$refs.service_show.data.fields[i].label === '
|
|
2428
|
+
if (this.$refs.service_show.data.fields[i].label === '区域' && this.$refs.service_show.data.fields[i].value) {
|
|
2429
|
+
// let f_area = res.data.f_area
|
|
2430
|
+
// this.$refs.service_show.data.fields[i].value = f_area
|
|
2431
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
2432
|
+
}
|
|
2433
|
+
// if (this.$refs.service_show.data.fields[i].label === '片区' && this.$refs.service_show.data.fields[i].value) {
|
|
2434
|
+
// address += this.$refs.service_show.data.fields[i].value
|
|
2435
|
+
// }
|
|
2436
|
+
// if (this.$refs.service_show.data.fields[i].label === '街道名称' && this.$refs.service_show.data.fields[i].value) {
|
|
2437
|
+
// address += this.$refs.service_show.data.fields[i].value
|
|
2438
|
+
// }
|
|
2439
|
+
if (this.$refs.service_show.data.fields[i].label === '街道' && this.$refs.service_show.data.fields[i].value) {
|
|
2440
|
+
// let f_street = res.data.f_street
|
|
2441
|
+
// this.$refs.service_show.data.fields[i].value = f_street
|
|
2442
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
2443
|
+
}
|
|
2444
|
+
// if (this.$refs.service_show.data.fields[i].label === '小区/单位' && this.$refs.service_show.data.fields[i].value) {
|
|
2445
|
+
// address += this.$refs.service_show.data.fields[i].value
|
|
2446
|
+
// }
|
|
2447
|
+
if (this.$refs.service_show.data.fields[i].label === '小区' && this.$refs.service_show.data.fields[i].value) {
|
|
2448
|
+
// let f_residential_area = res.data.f_residential_area
|
|
2449
|
+
// this.$refs.service_show.data.fields[i].value = f_residential_area
|
|
781
2450
|
address += this.$refs.service_show.data.fields[i].value
|
|
782
2451
|
}
|
|
783
2452
|
if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
|
|
2453
|
+
// let f_building = res.data.f_building
|
|
2454
|
+
// this.$refs.service_show.data.fields[i].value = f_building
|
|
784
2455
|
address += ' ' + this.$refs.service_show.data.fields[i].value
|
|
785
2456
|
}
|
|
786
2457
|
if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
|
|
2458
|
+
// let f_unit = res.data.f_unit
|
|
2459
|
+
// this.$refs.service_show.data.fields[i].value = f_unit
|
|
787
2460
|
address += '-' + this.$refs.service_show.data.fields[i].value
|
|
788
2461
|
}
|
|
789
2462
|
if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
|
|
2463
|
+
// let f_floor = res.data.f_floor
|
|
2464
|
+
// this.$refs.service_show.data.fields[i].value = f_floor
|
|
790
2465
|
address += '-' + this.$refs.service_show.data.fields[i].value
|
|
791
2466
|
}
|
|
792
2467
|
if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
|
|
2468
|
+
// let f_room = res.data.f_room
|
|
2469
|
+
// this.$refs.service_show.data.fields[i].value = f_room
|
|
793
2470
|
address += '-' + this.$refs.service_show.data.fields[i].value
|
|
794
2471
|
}
|
|
795
2472
|
|
|
@@ -803,28 +2480,209 @@
|
|
|
803
2480
|
}
|
|
804
2481
|
}
|
|
805
2482
|
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
2483
|
+
|
|
2484
|
+
//报建状态
|
|
2485
|
+
// if (this.selectdata.defname == '用户建档') {
|
|
2486
|
+
// this.selectdata.f_sub_state = '未安装'
|
|
2487
|
+
// }
|
|
2488
|
+
// if (this.selectdata.defname == '报建缴费') {
|
|
2489
|
+
// this.selectdata.f_sub_state = '已收费'
|
|
2490
|
+
// }
|
|
2491
|
+
// if (this.selectdata.defname == '安装施工') {
|
|
2492
|
+
// this.selectdata.f_sub_state = '已安装'
|
|
2493
|
+
// }
|
|
2494
|
+
//解决欠费金额为0时无法显示的问题
|
|
2495
|
+
// if (this.selectdata.defname === '核对') {
|
|
2496
|
+
// for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
2497
|
+
// if (this.$refs.service_show.data.fields[i].label == '欠费金额') {
|
|
2498
|
+
// if (this.$refs.service_show.data.fields[i].value == 0.00 || this.$refs.service_show.data.fields[i].value == null || this.$refs.service_show.data.fields[i].value == undefined) {
|
|
2499
|
+
// this.$refs.service_show.data.fields[i].value = 0.00
|
|
2500
|
+
// }
|
|
2501
|
+
// }
|
|
2502
|
+
// }
|
|
2503
|
+
// }
|
|
2504
|
+
if (this.selectdata.defname === '用户受理') {
|
|
2505
|
+
let http = new HttpResetClass()
|
|
2506
|
+
let condition = "f_filialeid = " + this.$login.f.orgid
|
|
2507
|
+
let res = await http.load('POST','rs/sql/singleTable',{data:{tablename:'t_area',condition:condition}}, {resolveMsg: null, rejectMsg: null})
|
|
812
2508
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
813
|
-
if (this.$refs.service_show.data.fields[
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
2509
|
+
if (this.$refs.service_show.data.fields[i].label == '区域') {
|
|
2510
|
+
let data = []
|
|
2511
|
+
let array = []
|
|
2512
|
+
data = res.data.map(item => {
|
|
2513
|
+
return item.f_pcd;
|
|
2514
|
+
})
|
|
2515
|
+
for (let q = 0; q < data.length; q++) {
|
|
2516
|
+
let arraydata = {
|
|
2517
|
+
'label': data[q],
|
|
2518
|
+
'value': data[q]
|
|
2519
|
+
}
|
|
2520
|
+
if (array.length != 0) {
|
|
2521
|
+
for (let w = 0; w < array.length; w++) {
|
|
2522
|
+
if (array[w].label == data[q]) {
|
|
2523
|
+
break
|
|
2524
|
+
}
|
|
2525
|
+
while (w == array.length - 1) {
|
|
2526
|
+
array.push(arraydata)
|
|
2527
|
+
break
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
} else {
|
|
2531
|
+
array.push(arraydata)
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
this.$refs.service_show.data.fields[i].options = array
|
|
2535
|
+
console.log("选择框数据:" + JSON.stringify(this.$refs.service_show.data.fields[i].options))
|
|
818
2536
|
}
|
|
819
|
-
if (this.$refs.service_show.data.fields[
|
|
820
|
-
|
|
2537
|
+
if (this.$refs.service_show.data.fields[i].label == '街道') {
|
|
2538
|
+
let data = []
|
|
2539
|
+
let array = []
|
|
2540
|
+
data = res.data.map(item => {
|
|
2541
|
+
return item.f_street;
|
|
2542
|
+
})
|
|
2543
|
+
for (let q = 0; q < data.length; q++) {
|
|
2544
|
+
let arraydata = {
|
|
2545
|
+
'label': data[q],
|
|
2546
|
+
'value': data[q]
|
|
2547
|
+
}
|
|
2548
|
+
if (array.length != 0) {
|
|
2549
|
+
for (let w = 0; w < array.length; w++) {
|
|
2550
|
+
if (array[w].label == data[q]) {
|
|
2551
|
+
break
|
|
2552
|
+
}
|
|
2553
|
+
while (w == array.length - 1) {
|
|
2554
|
+
array.push(arraydata)
|
|
2555
|
+
break
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
} else {
|
|
2559
|
+
array.push(arraydata)
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
this.$refs.service_show.data.fields[i].options = array
|
|
2563
|
+
console.log("选择框数据:" + JSON.stringify(this.$refs.service_show.data.fields[i].options))
|
|
2564
|
+
}
|
|
2565
|
+
if (this.$refs.service_show.data.fields[i].label == '小区') {
|
|
2566
|
+
let data = []
|
|
2567
|
+
let array = []
|
|
2568
|
+
data = res.data.map(item => {
|
|
2569
|
+
return item.f_residential_area;
|
|
2570
|
+
})
|
|
2571
|
+
for (let q = 0; q < data.length; q++) {
|
|
2572
|
+
let arraydata = {
|
|
2573
|
+
'label': data[q],
|
|
2574
|
+
'value': data[q]
|
|
2575
|
+
}
|
|
2576
|
+
if (array.length != 0) {
|
|
2577
|
+
for (let w = 0; w < array.length; w++) {
|
|
2578
|
+
if (array[w].label == data[q]) {
|
|
2579
|
+
break
|
|
2580
|
+
}
|
|
2581
|
+
while (w == array.length - 1) {
|
|
2582
|
+
array.push(arraydata)
|
|
2583
|
+
break
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
} else {
|
|
2587
|
+
array.push(arraydata)
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
this.$refs.service_show.data.fields[i].options = array
|
|
2591
|
+
console.log("选择框数据:" + JSON.stringify(this.$refs.service_show.data.fields[i].options))
|
|
821
2592
|
}
|
|
822
2593
|
}
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
},
|
|
2597
|
+
|
|
2598
|
+
error_check(index) {
|
|
2599
|
+
// 时间格式检测
|
|
2600
|
+
if (this.$refs.service_show.data.fields[index].type == 'datepicker') {
|
|
2601
|
+
let dateRe = new RegExp(/(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)$/)
|
|
2602
|
+
let datetimeRe = new RegExp(/((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/)
|
|
2603
|
+
if (datetimeRe.test(this.$refs.service_show.data.fields[index].value) && this.$refs.service_show.data.fields[index].value.trim().length == 19 && this.$refs.service_show.data.fields[index].fullsize) {
|
|
2604
|
+
this.$refs.service_show.data.fields[index].error.flag = false
|
|
2605
|
+
} else if (dateRe.test(this.$refs.service_show.data.fields[index].value) && this.$refs.service_show.data.fields[index].value.trim().length == 10) {
|
|
2606
|
+
this.$refs.service_show.data.fields[index].error.flag = false
|
|
2607
|
+
} else {
|
|
2608
|
+
if (this.$refs.service_show.data.fields[index].fullsize) {
|
|
2609
|
+
this.$refs.service_show.data.fields[index].error = Object.assign({}, this.$refs.service_show.data.fields[index].error)
|
|
2610
|
+
this.$refs.service_show.data.fields[index].error.msg = this.$refs.service_show.data.fields[index].error.msg ? this.$refs.service_show.data.fields[index].error.msg : '时间格式如:2019-05-02 09:23:21'
|
|
2611
|
+
this.$showAlert(this.$refs.service_show.data.fields[index].label + '格式错误' + this.$refs.service_show.data.fields[index].error.msg, 'warning', 3000)
|
|
2612
|
+
this.$refs.service_show.data.fields[index].error.flag = true
|
|
2613
|
+
this.$refs.service_show.data.fields[index].value = ''
|
|
2614
|
+
} else {
|
|
2615
|
+
this.$refs.service_show.data.fields[index].error = Object.assign({}, this.$refs.service_show.data.fields[index].error)
|
|
2616
|
+
this.$refs.service_show.data.fields[index].error.msg = this.$refs.service_show.data.fields[index].error.msg ? this.$refs.service_show.data.fields[index].error.msg : '时间格式如:2019-05-02'
|
|
2617
|
+
this.$showAlert(this.$refs.service_show.data.fields[index].label + '格式错误' + this.$refs.service_show.data.fields[index].error.msg, 'warning', 3000)
|
|
2618
|
+
this.$refs.service_show.data.fields[index].error.flag = true
|
|
2619
|
+
this.$refs.service_show.data.fields[index].value = ''
|
|
2620
|
+
}
|
|
823
2621
|
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
},
|
|
2625
|
+
|
|
2626
|
+
modal_error_check(i, j) {
|
|
2627
|
+
let err = {flag: false, msg: ''}
|
|
2628
|
+
this.$refs.service_show.showadd_fields.fields[j].error = this.$refs.service_show.showadd_fields.fields[j].error ? this.$refs.service_show.showadd_fields.fields[j].error : err
|
|
2629
|
+
// 时间格式检测
|
|
2630
|
+
if (this.$refs.service_show.showadd_fields.fields[j].type == 'datepicker') {
|
|
2631
|
+
let dateRe = new RegExp(/(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)$/)
|
|
2632
|
+
let datetimeRe = new RegExp(/((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/)
|
|
2633
|
+
if (datetimeRe.test(this.$refs.service_show.showadd_fields.fields[j].value) && this.$refs.service_show.showadd_fields.fields[j].value.trim().length == 19) {
|
|
2634
|
+
this.$refs.service_show.showadd_fields.fiehttp.loadlds[j].error.flag = false
|
|
2635
|
+
} else if (dateRe.test(this.$refs.service_show.showadd_fields.fields[j].value) && this.$refs.service_show.showadd_fields.fields[j].value.trim().length == 10) {
|
|
2636
|
+
this.$refs.service_show.showadd_fields.fields[j].error.flag = false
|
|
2637
|
+
} else {
|
|
2638
|
+
this.$refs.service_show.showadd_fields.fields[j].error = Object.assign({}, this.$refs.service_show.showadd_fields.fields[j].error)
|
|
2639
|
+
this.$refs.service_show.showadd_fields.fields[j].error.msg = this.$refs.service_show.showadd_fields.fields[j].label + '时间格式如:2019-05-02'
|
|
2640
|
+
this.$showAlert(this.$refs.service_show.showadd_fields.fields[j].error.msg, 'warning', 3000)
|
|
2641
|
+
this.$refs.service_show.showadd_fields.fields[j].error.flag = true
|
|
2642
|
+
this.$refs.service_show.showadd_fields.fields[j].value = ''
|
|
2643
|
+
}
|
|
2644
|
+
if ((this.$refs.service_show.showadd_fields.fields[j].label == '停水碰口开始时间' || this.$refs.service_show.showadd_fields.fields[j].label == '停水碰口结束时间') &&
|
|
2645
|
+
(dateRe.test(this.$refs.service_show.showadd_fields.fields[j].value) && this.$refs.service_show.showadd_fields.fields[j].value.trim().length > 0)) {
|
|
2646
|
+
if (this.$refs.service_show.showadd_fields.fields[j].value > new Date().Format("yyyy-MM-dd HH:mm:ss")) {
|
|
2647
|
+
this.$refs.service_show.showadd_fields.fields[j].error.msg = this.$refs.service_show.showadd_fields.fields[j].label + '不能大于当前时间'
|
|
2648
|
+
this.$showAlert(this.$refs.service_show.showadd_fields.fields[j].label + '不能大于当前时间', 'warning', 3000)
|
|
2649
|
+
this.$refs.service_show.showadd_fields.fields[j].error.flag = true
|
|
2650
|
+
this.$refs.service_show.showadd_fields.fields[j].value = ''
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
},
|
|
2655
|
+
'getmodel'() {
|
|
2656
|
+
return this.$refs.service_show.getmodel()
|
|
2657
|
+
},
|
|
2658
|
+
// onetomany模态框监听事件
|
|
2659
|
+
async 'select_cascade_modal'(i, j) {
|
|
2660
|
+
if (this.data.onetomany[i].tables[0] == 't_apply_construct_balance') {
|
|
2661
|
+
if (this.data.onetomany[i].fields[j].label == '第三施工方') {
|
|
2662
|
+
for (let k = 0; k < this.data.onetomany[i].fields.length; k++) {
|
|
2663
|
+
|
|
2664
|
+
if (this.data.onetomany[i].fields[k].label.includes('当前累计结算比例')) {
|
|
2665
|
+
let sum = 0
|
|
2666
|
+
for (let p = 0; p < this.$refs.service_show.model.rows[i].length; p++) {
|
|
2667
|
+
if (this.$refs.service_show.model.rows[i][p].f_construct_company == this.$refs.service_show.showadd_fields.fields[j].value) {
|
|
2668
|
+
sum += Number(this.$refs.service_show.showadd_fields.fields[k - 2].value)
|
|
2669
|
+
sum += Number(this.$refs.service_show.model.rows[i][p].f_balance_scale)
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
if (this.$refs.service_show.model.rows[i].length == 0) {
|
|
2673
|
+
sum = Number(this.$refs.service_show.showadd_fields.fields[k - 2].value)
|
|
2674
|
+
}
|
|
2675
|
+
// this.$refs.service_show.showadd_fields.fields[k].value = sum
|
|
2676
|
+
this.$refs.service_show.update_showadd_fields_value(k, sum)
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
824
2680
|
}
|
|
2681
|
+
|
|
2682
|
+
|
|
825
2683
|
},
|
|
826
2684
|
async 'onetomanyevent'(datas) {
|
|
827
|
-
console.log(`onetomany=======>${JSON.stringify(datas)}`)
|
|
2685
|
+
// console.log(`onetomany=======>${JSON.stringify(datas)}`)
|
|
828
2686
|
|
|
829
2687
|
for (let i = 0; i < datas.rows.length; i++) {
|
|
830
2688
|
datas.rows[i]['f_process_id'] = this.selectdata.f_process_id
|
|
@@ -834,150 +2692,370 @@
|
|
|
834
2692
|
datas.rows[i]['f_operator'] = this.$login.f.name
|
|
835
2693
|
}
|
|
836
2694
|
let http = new HttpResetClass()
|
|
837
|
-
await http.load('POST', 'rs/logic/saveentity', datas, {resolveMsg: null, rejectMsg: '
|
|
838
|
-
}
|
|
2695
|
+
await http.load('POST', 'rs/logic/saveentity', datas, {resolveMsg: null, rejectMsg: '保存onetomany实体失败'})
|
|
2696
|
+
}
|
|
2697
|
+
,
|
|
839
2698
|
// 获取view层button事件/
|
|
840
2699
|
async 'button'(model) {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
}
|
|
852
|
-
if (model.button.button_name === '提交' && model.button.button_event && model.button.button_event === '合同信息') {
|
|
853
|
-
model.f_budget_money = model.f_contract_money
|
|
854
|
-
model.f_unaccounts_money = model.f_contract_money
|
|
855
|
-
model.f_cumulative_money = 0
|
|
856
|
-
model.f_cumulative_invoicing = 0
|
|
857
|
-
model.f_additional_payment = 0
|
|
858
|
-
model.f_residual_invoicing = model.f_contract_money
|
|
2700
|
+
if(model.button.button_name === '退回' && this.selectdata.defname === '现场勘察'){
|
|
2701
|
+
let http = new HttpResetClass()
|
|
2702
|
+
let files = await http.load('post','rs/sql/singleTable',{data: {
|
|
2703
|
+
tablename: 't_files',
|
|
2704
|
+
condition: `f_blobid = '${model.f_process_id}' and defname = '${this.selectdata.defname}' and fusetype = '勘察退回'`
|
|
2705
|
+
}})
|
|
2706
|
+
if(files.data.length <= 0){
|
|
2707
|
+
this.$showAlert('请至少上传一张现场勘察失败照片!', 'warning', 2000)
|
|
2708
|
+
return
|
|
2709
|
+
}
|
|
859
2710
|
}
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
2711
|
+
console.log("应收金额:" + model.f_contract_money)
|
|
2712
|
+
|
|
2713
|
+
// 交费逻辑
|
|
2714
|
+
console.log("this.nowcost:" + this.nowcost)
|
|
2715
|
+
if (this.selectdata.defname === '报建缴费' && model.button.button_name === '提交' && this.selectdata.f_apply_type === '零星散户' || this.selectdata.defname === '报建缴费' && model.button.button_name === '提交' && this.selectdata.f_apply_type === '工商业' || this.selectdata.defname === '报建缴费' && model.button.button_name === '提交' && this.selectdata.f_apply_type === '新用户' && this.selectdata.f_roster == '无') {
|
|
2716
|
+
// 是否结清提示
|
|
2717
|
+
console.log("是否进来了")
|
|
2718
|
+
let recordData = {
|
|
2719
|
+
f_charging_status: '有效',
|
|
2720
|
+
f_charge_collectors: this.$login.f.name,
|
|
2721
|
+
f_filiale: this.selectdata.f_filiale,
|
|
2722
|
+
f_process_id: this.selectdata.f_process_id,
|
|
2723
|
+
f_apply_num: this.selectdata.f_apply_num,
|
|
2724
|
+
f_charge_date: new Date().Format("yyyy-MM-dd HH:mm:ss")
|
|
863
2725
|
}
|
|
864
|
-
let
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
2726
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
2727
|
+
//获取数据
|
|
2728
|
+
if (this.$refs.service_show.data.fields[i].label === '实收金额' ||
|
|
2729
|
+
this.$refs.service_show.data.fields[i].label === '付款方式' ||
|
|
2730
|
+
this.$refs.service_show.data.fields[i].label === '金额大写' ||
|
|
2731
|
+
this.$refs.service_show.data.fields[i].label === '票据号') {
|
|
2732
|
+
if (this.$refs.service_show.data.fields[i].label === '实收金额') {
|
|
2733
|
+
recordData.f_charge_money = this.$refs.service_show.data.fields[i].value
|
|
2734
|
+
}
|
|
2735
|
+
if (this.$refs.service_show.data.fields[i].label === '付款方式') {
|
|
2736
|
+
recordData.f_payment_method = this.$refs.service_show.data.fields[i].value
|
|
2737
|
+
}
|
|
2738
|
+
if (this.$refs.service_show.data.fields[i].label === '金额大写') {
|
|
2739
|
+
recordData.f_amount_words = this.$refs.service_show.data.fields[i].value
|
|
2740
|
+
}
|
|
2741
|
+
if (this.$refs.service_show.data.fields[i].label === '票据号') {
|
|
2742
|
+
recordData.f_invoice_num = this.$refs.service_show.data.fields[i].value
|
|
2743
|
+
}
|
|
869
2744
|
}
|
|
2745
|
+
|
|
870
2746
|
}
|
|
871
|
-
|
|
872
|
-
if (model.button.button_name === '提交') {
|
|
873
|
-
// ===================>青白江特殊流程开始,合并分支时请忽略这段代码 开始
|
|
2747
|
+
// 生成交费记录
|
|
874
2748
|
let http = new HttpResetClass()
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
2749
|
+
let data = {
|
|
2750
|
+
tablename: 't_charge_record',
|
|
2751
|
+
parameters: recordData
|
|
2752
|
+
}
|
|
2753
|
+
// 生成收费记录
|
|
2754
|
+
await http.load('POST', 'rs/logic/saveentity', {data: data}, {resolveMsg: null, rejectMsg: "添加失败"})
|
|
2755
|
+
this.f_controller = 1
|
|
2756
|
+
}
|
|
2757
|
+
// 超长费记录
|
|
2758
|
+
if (this.selectdata.defname === '报建缴费' && model.button.button_name === '提交' && this.selectdata.f_apply_type === '零星散户' || this.selectdata.defname === '报建缴费' && model.button.button_name === '提交' && this.selectdata.f_apply_type === '工商业' || this.selectdata.defname === '报建缴费' && model.button.button_name === '提交' && this.selectdata.f_apply_type === '新用户' && this.selectdata.f_roster != '有'){
|
|
2759
|
+
let sum = null
|
|
2760
|
+
let recordData = {
|
|
2761
|
+
f_state: '已收费',
|
|
2762
|
+
f_unaccounts_money: 0.00,
|
|
2763
|
+
f_filiale: this.selectdata.f_filiale,
|
|
2764
|
+
f_process_id: this.selectdata.f_process_id,
|
|
2765
|
+
f_apply_num: this.selectdata.f_apply_num,
|
|
2766
|
+
f_charge_date: new Date().Format("yyyy-MM-dd HH:mm:ss")
|
|
2767
|
+
|
|
2768
|
+
// f_super_length: this.selectdata.f_super_range,
|
|
2769
|
+
// f_super_money: this.selectdata.f_super_charge,
|
|
2770
|
+
// f_install_money: this.selectdata.f_construction_cost,
|
|
2771
|
+
// f_invoice_num: this.selectdata.f_voucher,
|
|
889
2772
|
|
|
890
|
-
// }
|
|
891
2773
|
}
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
2774
|
+
for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
2775
|
+
//获取数据
|
|
2776
|
+
if (this.show_data.fields[i].label === '超长距离' ||
|
|
2777
|
+
this.show_data.fields[i].label === '超长费' ||
|
|
2778
|
+
this.show_data.fields[i].label === '安装费' ||
|
|
2779
|
+
this.show_data.fields[i].label === '票据号' ||
|
|
2780
|
+
this.show_data.fields[i].label === '应收金额' ||
|
|
2781
|
+
this.show_data.fields[i].label === '实收金额' ||
|
|
2782
|
+
this.show_data.fields[i].label === '欠费金额') {
|
|
2783
|
+
if (this.show_data.fields[i].label === '超长距离') {
|
|
2784
|
+
recordData.f_super_length = this.show_data.fields[i].value
|
|
903
2785
|
}
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
2786
|
+
if (this.show_data.fields[i].label === '超长费') {
|
|
2787
|
+
recordData.f_super_money = this.show_data.fields[i].value
|
|
2788
|
+
}
|
|
2789
|
+
if (this.show_data.fields[i].label === '安装费') {
|
|
2790
|
+
recordData.f_install_money = this.show_data.fields[i].value
|
|
2791
|
+
}
|
|
2792
|
+
if (this.show_data.fields[i].label === '票据号') {
|
|
2793
|
+
recordData.f_invoice_num = this.show_data.fields[i].value
|
|
2794
|
+
}
|
|
2795
|
+
if (this.show_data.fields[i].label === '应收金额') {
|
|
2796
|
+
recordData.f_budget_money = this.show_data.fields[i].value
|
|
2797
|
+
console.log("应收金额嗷嗷:" + recordData.f_budget_money)
|
|
909
2798
|
}
|
|
2799
|
+
if (this.show_data.fields[i].label === '欠费金额') {
|
|
2800
|
+
recordData.f_unaccounts_money = this.show_data.fields[i].value
|
|
2801
|
+
console.log("欠费金额嗷嗷:" + recordData.f_unaccounts_money)
|
|
2802
|
+
}
|
|
2803
|
+
if (this.show_data.fields[i].label === '实收金额') {
|
|
2804
|
+
sum = this.show_data.fields[i].value
|
|
2805
|
+
console.log("实收金额嗷嗷:" + sum)
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
recordData.f_cumulative_money = sum
|
|
2810
|
+
//生成交费记录
|
|
2811
|
+
let http1 = new HttpResetClass()
|
|
2812
|
+
let data = {
|
|
2813
|
+
tablename: 't_super_charge',
|
|
2814
|
+
parameters: recordData
|
|
2815
|
+
}
|
|
2816
|
+
// 生成收费记录
|
|
2817
|
+
await http1.load('POST', 'rs/logic/saveentity', {data: data}, {resolveMsg: null, rejectMsg: "添加失败"})
|
|
2818
|
+
this.f_controller = 2
|
|
2819
|
+
}
|
|
2820
|
+
// 获取抄表本id
|
|
2821
|
+
if (model.button.button_name === '提交' && this.selectdata.defname == '通气'){
|
|
2822
|
+
let f_meter_book = ''
|
|
2823
|
+
for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
2824
|
+
if (this.show_data.fields[i].label === '抄表本') {
|
|
2825
|
+
f_meter_book = this.show_data.fields[i].value
|
|
910
2826
|
}
|
|
911
|
-
model.button.button_name = flag
|
|
912
2827
|
}
|
|
2828
|
+
let http = new HttpResetClass()
|
|
2829
|
+
let condition = " f_book_name = '" + f_meter_book + "'"
|
|
2830
|
+
let res = await http.load('POST','rs/sql/applysingleTable',{data:{tablename: 't_meter_book', condition: condition}}, {resolveMsg: null, rejectMsg: "获取抄表本失败"})
|
|
2831
|
+
if (res.data.length > 0) {
|
|
2832
|
+
model.f_super_book_id = res.data[0].id
|
|
2833
|
+
}
|
|
2834
|
+
}
|
|
2835
|
+
// 施工提交时如果所有用户施工信息没全部填写则无法提交
|
|
2836
|
+
// if (this.selectdata.defname === '安装施工' && model.button.button_name === '提交') {
|
|
2837
|
+
// let http = new HttpResetClass()
|
|
2838
|
+
// let data = {
|
|
2839
|
+
// f_process_id: this.selectdata.f_process_id
|
|
2840
|
+
// }
|
|
2841
|
+
// let control = 0
|
|
2842
|
+
// await http.load('POST', 'rs/logic/getConstructionInformation', {data: data}, {resolveMsg: null, rejectMsg: "查询失败"})
|
|
2843
|
+
// .then((res) => {
|
|
2844
|
+
// console.log("获取施工信息:" + JSON.stringify(res))
|
|
2845
|
+
// console.log("施工信息长度:" + res.data.length)
|
|
2846
|
+
// if (res.data.length > 0) {
|
|
2847
|
+
// let show = ""
|
|
2848
|
+
// for (let i = 0; i < res.data.length; i++) {
|
|
2849
|
+
// show = show + res.data[i].name + " "
|
|
2850
|
+
// }
|
|
2851
|
+
// control = 1
|
|
2852
|
+
// this.$showMessage(show + " 施工信息未填写完毕")
|
|
2853
|
+
//
|
|
2854
|
+
// }
|
|
2855
|
+
// })
|
|
2856
|
+
// if (control == 1) {
|
|
2857
|
+
// return
|
|
2858
|
+
// }
|
|
2859
|
+
// }
|
|
2860
|
+
//-------------------------------勘察结果 (成功)推送---------------------------------------------
|
|
2861
|
+
// debugger
|
|
2862
|
+
// if (model.button.button_name === '提交' && this.selectdata.defname == '现场勘察' && this.selectdata.f_order_id !='' && this.selectdata.f_order_id !=null){
|
|
2863
|
+
// debugger
|
|
2864
|
+
// let http = new HttpResetClass()
|
|
2865
|
+
// let data = {
|
|
2866
|
+
// orgname:this.selectdata.f_filiale,
|
|
2867
|
+
// f_entry_name: model.f_entry_name,
|
|
2868
|
+
// f_user_name: model.f_user_name,
|
|
2869
|
+
// f_process_id:model.f_process_id,
|
|
2870
|
+
// f_order_id:this.selectdata.f_order_id,
|
|
2871
|
+
// f_phone:model.f_phone,
|
|
2872
|
+
// f_address:model.f_address,
|
|
2873
|
+
// f_orgid:this.selectdata.f_orgid
|
|
2874
|
+
// }
|
|
2875
|
+
// let res = await http.load('POST', 'rs/logic/pushinformation', {data: data}, {
|
|
2876
|
+
// resolveMsg: null,
|
|
2877
|
+
// rejectMsg: "推送失败"
|
|
2878
|
+
// })
|
|
2879
|
+
// }
|
|
2880
|
+
// //-------------------------------勘察结果 (失败) 推送---------------------------------------------
|
|
2881
|
+
// if (model.button.button_name === '退回' && this.selectdata.defname == '现场勘察' && this.selectdata.f_order_id !='' && this.selectdata.f_order_id !=null){
|
|
2882
|
+
// debugger
|
|
2883
|
+
// let http = new HttpResetClass()
|
|
2884
|
+
// console.log('----------打印model' + model.button.button_fields.f_back_reason)
|
|
2885
|
+
// let data = {
|
|
2886
|
+
// orgname:this.selectdata.f_filiale,
|
|
2887
|
+
// f_process_id:model.f_process_id,
|
|
2888
|
+
// f_back_reason: model.button.button_fields.f_back_reason,
|
|
2889
|
+
// f_entry_name: model.f_entry_name,
|
|
2890
|
+
// f_user_name: model.f_user_name,
|
|
2891
|
+
// f_order_id: this.selectdata.f_order_id,
|
|
2892
|
+
// f_phone:model.f_phone,
|
|
2893
|
+
// f_address:model.f_address,
|
|
2894
|
+
// f_orgid:this.selectdata.f_orgid
|
|
2895
|
+
// }
|
|
2896
|
+
// let res = await http.load('POST', 'rs/logic/pushinformationNo', {data: data}, {
|
|
2897
|
+
// resolveMsg: null,
|
|
2898
|
+
// rejectMsg: "推送失败"
|
|
2899
|
+
// })
|
|
2900
|
+
// }
|
|
2901
|
+
// debugger
|
|
2902
|
+
// //-------------------------------预约通气 推送(安装信息及合同)---------------------------------------------
|
|
2903
|
+
// if (model.button.button_name === '提交' && this.selectdata.defname == '安装施工'&& this.selectdata.f_order_id !='' && this.selectdata.f_order_id !=null){
|
|
2904
|
+
// debugger
|
|
2905
|
+
// let http = new HttpResetClass()
|
|
2906
|
+
// let data = {
|
|
2907
|
+
// orgname:this.selectdata.f_filiale,
|
|
2908
|
+
// f_process_id:model.f_process_id,
|
|
2909
|
+
// f_production_date: model.f_production_date,
|
|
2910
|
+
// f_query_result: model.f_query_result,
|
|
2911
|
+
// f_order_id: this.selectdata.f_order_id,
|
|
2912
|
+
// f_user_name:model.f_user_name,
|
|
2913
|
+
// f_orgid:this.selectdata.f_orgid
|
|
2914
|
+
// }
|
|
2915
|
+
// let res = await http.load('POST', 'rs/logic/pushContract', {data: data}, {
|
|
2916
|
+
// resolveMsg: null,
|
|
2917
|
+
// rejectMsg: "推送失败"
|
|
2918
|
+
// })
|
|
2919
|
+
// }
|
|
2920
|
+
|
|
913
2921
|
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
2922
|
+
//-------------------------------通气成功 推送(安装信息)---------------------------------------------
|
|
2923
|
+
// if (model.button.button_name === '提交' && this.selectdata.defname == '通气'&& this.selectdata.f_order_id !='' && this.selectdata.f_order_id !=null){
|
|
2924
|
+
// debugger
|
|
2925
|
+
// let http = new HttpResetClass()
|
|
2926
|
+
// let data = {
|
|
2927
|
+
// orgname:this.selectdata.f_filiale,
|
|
2928
|
+
// f_process_id:model.f_process_id,
|
|
2929
|
+
// f_production_date: model.f_production_date,
|
|
2930
|
+
// f_query_result: model.f_query_result,
|
|
2931
|
+
// f_order_id: this.selectdata.f_order_id,
|
|
2932
|
+
// f_user_name:model.f_user_name,
|
|
2933
|
+
// f_orgid:this.selectdata.f_orgid
|
|
2934
|
+
// }
|
|
2935
|
+
// let res = await http.load('POST','rs/logic/installPush', {data: data}, {
|
|
2936
|
+
// resolveMsg: null,
|
|
2937
|
+
// rejectMsg: "推送失败"
|
|
2938
|
+
// })
|
|
2939
|
+
// }
|
|
2940
|
+
|
|
2941
|
+
if (model.button.button_name === '提交' && this.selectdata.defname == '用户建档'){
|
|
2942
|
+
if(model.f_apply_type == '新用户'){
|
|
2943
|
+
let http = new HttpResetClass()
|
|
2944
|
+
let roster = this.$parent.$parent.$parent.$refs.record.model.rows
|
|
2945
|
+
console.log("传送数据:" + JSON.stringify(roster))
|
|
920
2946
|
let data = {
|
|
921
|
-
|
|
922
|
-
|
|
2947
|
+
f_apply_type: model.f_apply_type,
|
|
2948
|
+
f_user_name: model.f_user_name,
|
|
2949
|
+
f_idnumber: model.f_idnumber,
|
|
2950
|
+
roster: roster
|
|
923
2951
|
}
|
|
924
|
-
let res = await http.load('POST', 'rs/
|
|
2952
|
+
let res = await http.load('POST', 'rs/logic/apply_recordQuery', {data: data}, {
|
|
925
2953
|
resolveMsg: null,
|
|
926
|
-
rejectMsg: "
|
|
2954
|
+
rejectMsg: "建档失败"
|
|
927
2955
|
})
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
}
|
|
2956
|
+
console.log("返回的消息:" + JSON.stringify(res.data))
|
|
2957
|
+
if (res.data != '建档成功') {
|
|
2958
|
+
let check = await this.$showMessage(res.data, ['confirm', 'cancel'])
|
|
2959
|
+
if (check == 'confirm') {
|
|
933
2960
|
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
let str = this.$appdata.getSingleValue("客户服务部")
|
|
939
|
-
let str2 = this.$appdata.getSingleValue("工程技术部")
|
|
940
|
-
let arr = str.split(",")
|
|
941
|
-
let arr2 = str2.split(",")
|
|
942
|
-
for(let i=0;i<arr.length;i++){
|
|
943
|
-
if(arr[i] == model.f_apply_type){
|
|
944
|
-
flag = '客户服务部'
|
|
945
|
-
break
|
|
2961
|
+
} else {
|
|
2962
|
+
this.$refs.service_show.disable_button = false
|
|
2963
|
+
return
|
|
2964
|
+
}
|
|
946
2965
|
}
|
|
947
2966
|
}
|
|
948
|
-
|
|
949
|
-
if(
|
|
950
|
-
|
|
951
|
-
|
|
2967
|
+
else {
|
|
2968
|
+
if(model.f_idnumber && model.f_user_name){
|
|
2969
|
+
let http = new HttpResetClass()
|
|
2970
|
+
//let roster = this.$parent.$parent.$parent.$refs.record.model.rows
|
|
2971
|
+
// console.log("传送数据:" + JSON.stringify(roster))
|
|
2972
|
+
let data = {
|
|
2973
|
+
f_apply_type: model.f_apply_type,
|
|
2974
|
+
f_user_name: model.f_user_name,
|
|
2975
|
+
f_idnumber: model.f_idnumber,
|
|
2976
|
+
roster: ''
|
|
2977
|
+
}
|
|
2978
|
+
let res = await http.load('POST', 'rs/logic/apply_recordQuery', {data: data}, {
|
|
2979
|
+
resolveMsg: null,
|
|
2980
|
+
rejectMsg: "建档失败"
|
|
2981
|
+
})
|
|
2982
|
+
console.log("返回的消息:" + JSON.stringify(res.data))
|
|
2983
|
+
if (res.data != '建档成功') {
|
|
2984
|
+
let check = await this.$showMessage(res.data, ['confirm', 'cancel'])
|
|
2985
|
+
if (check == 'confirm') {
|
|
2986
|
+
} else {
|
|
2987
|
+
this.$refs.service_show.disable_button = false
|
|
2988
|
+
return
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
952
2991
|
}
|
|
953
2992
|
}
|
|
954
|
-
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
this.dataChange(model.button.button_name)// 调用修改记录方法
|
|
2996
|
+
let operate = ''
|
|
2997
|
+
// 判断当前按钮是否为特殊业务,即子流程提交或者分发
|
|
2998
|
+
if (model.button.button_name === '提交' && model.button.button_event && model.button.button_event === '子流程提交') {
|
|
2999
|
+
operate = '子流程提交'
|
|
955
3000
|
}
|
|
956
3001
|
// ===================>青白江特殊流程开始,合并分支时请忽略这段代码 结束
|
|
957
|
-
console.log('本次点击button执行的操作是=>' + operate)
|
|
3002
|
+
// console.log('本次点击button执行的操作是=>' + operate)
|
|
3003
|
+
console.log("model:------------" + JSON.stringify(model))
|
|
3004
|
+
console.log("this.selectdata:------------" + JSON.stringify(this.selectdata))
|
|
958
3005
|
model = Object.assign({}, this.selectdata, model)
|
|
3006
|
+
|
|
959
3007
|
let http = new HttpResetClass()
|
|
960
|
-
|
|
961
|
-
|
|
3008
|
+
let url
|
|
3009
|
+
let requestData = {
|
|
962
3010
|
tables: this.data.tables,
|
|
963
3011
|
start_activity: this.$workflow_vue.start_activity,
|
|
964
3012
|
model: model,
|
|
965
|
-
loginUser: this.$login.f
|
|
3013
|
+
loginUser: this.$login.f,
|
|
3014
|
+
nowDate: new Date().Format("yyyy-MM-dd HH:mm:ss")
|
|
966
3015
|
}
|
|
3016
|
+
console.log("登录人的问题:" + JSON.stringify(this.$login.f))
|
|
967
3017
|
if (operate != '') {
|
|
968
3018
|
// 特殊操作走特殊logic业务处理
|
|
969
3019
|
url = 'rs/logic/SubprocessService'
|
|
970
3020
|
requestData = {
|
|
971
3021
|
tables: this.data.tables, model: model
|
|
972
3022
|
}
|
|
973
|
-
} else if(model.button.button_name === '提交' && model.button.button_event && model.button.button_event === '分支流程异步合并处理'){
|
|
3023
|
+
} else if (model.button.button_name === '提交' && model.button.button_event && model.button.button_event === '分支流程异步合并处理') {
|
|
974
3024
|
url = 'rs/logic/branchsyncprocess'
|
|
975
3025
|
requestData = {
|
|
976
3026
|
tables: this.data.tables, model: model
|
|
977
3027
|
}
|
|
978
|
-
} else{
|
|
3028
|
+
} else {
|
|
979
3029
|
// 下发,提交,保存,退回通用业务后台处理logic
|
|
3030
|
+
|
|
980
3031
|
url = 'rs/logic/ApplyProductService'
|
|
3032
|
+
|
|
3033
|
+
// 所属公司的保存
|
|
3034
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
3035
|
+
if (this.$refs.service_show.data.fields[i].label == '所属公司') {
|
|
3036
|
+
model.f_filiale = this.$refs.service_show.data.fields[i].value
|
|
3037
|
+
let http = new HttpResetClass()
|
|
3038
|
+
let data = {
|
|
3039
|
+
tablename: 't_organization',
|
|
3040
|
+
condition: "name = " + "'" + model.f_filiale + "'"
|
|
3041
|
+
}
|
|
3042
|
+
// 生成派工记录
|
|
3043
|
+
let res = await http.load('POST', 'rs/sql/applysingleTable', {data: data}, {resolveMsg: null, rejectMsg: "查询失败"})
|
|
3044
|
+
model.f_filiale_id = res.data[0].id
|
|
3045
|
+
model.f_orgid = res.data[0].id
|
|
3046
|
+
}
|
|
3047
|
+
if (this.$refs.service_show.data.fields[i].label == '用气性质') {
|
|
3048
|
+
model.f_stair_price_name = this.$refs.service_show.data.fields[i].value
|
|
3049
|
+
}
|
|
3050
|
+
|
|
3051
|
+
|
|
3052
|
+
}
|
|
3053
|
+
if (this.selectdata.defname == '用户建档') {
|
|
3054
|
+
model.depids = this.$login.f.depids
|
|
3055
|
+
model.userid = this.$login.f.id
|
|
3056
|
+
}else {
|
|
3057
|
+
model.userid = this.selectdata.userid
|
|
3058
|
+
}
|
|
981
3059
|
requestData = {
|
|
982
3060
|
tables: this.data.tables, model: model
|
|
983
3061
|
}
|
|
@@ -985,23 +3063,40 @@
|
|
|
985
3063
|
requestData.start_activity = this.$workflow_vue.start_activity
|
|
986
3064
|
requestData.loginUser = this.$login.f
|
|
987
3065
|
requestData.workflow_xmlfilename = this.$workflow_vue.workflow_xmlfilename
|
|
3066
|
+
// console.log("id:----------------"+this.model.button.f_ngineering_personnel.id)
|
|
3067
|
+
//下发人逻辑
|
|
3068
|
+
if (this.$refs.service_show.data.defname === '开户申请'){
|
|
3069
|
+
console.log("id:-------"+JSON.stringify(this.$refs.service_show.data.buttons[0].button_fields[0].value.id))
|
|
3070
|
+
requestData.employeetemplate = this.$refs.service_show.data.buttons[0].button_fields[0].value.id
|
|
3071
|
+
}else {
|
|
3072
|
+
requestData.employeetemplate = ''
|
|
3073
|
+
}
|
|
3074
|
+
// 累计缴费金额
|
|
3075
|
+
if (requestData.model.f_cumulative_money == 0 || requestData.model.f_cumulative_money == 0.00 ||
|
|
3076
|
+
requestData.model.f_cumulative_money == null || requestData.model.f_cumulative_money == undefined && this.selectdata.f_apply_type != '新用户') {
|
|
3077
|
+
requestData.model.f_cumulative_money = this.nowcost
|
|
3078
|
+
}
|
|
3079
|
+
if (this.selectdata.f_apply_type == '新用户' && this.selectdata.defname == '报建缴费' && this.selectdata.f_roster == '有' || this.selectdata.f_apply_type == '新用户' && this.selectdata.defname == '核对' && this.selectdata.f_roster == '有') {
|
|
3080
|
+
let http1 = new HttpResetClass()
|
|
3081
|
+
let data1 = {
|
|
3082
|
+
tablename: "t_apply",
|
|
3083
|
+
condition: " f_apply_num = '" + this.selectdata.f_apply_num + "'"
|
|
3084
|
+
}
|
|
3085
|
+
res = await http1.load('POST', 'rs/sql/applysingleTable', {data: data1}, {resolveMsg: null, rejectMsg: "添加失败"})
|
|
3086
|
+
requestData.model.f_contract_money = res.data[0].f_cumulative_money
|
|
3087
|
+
requestData.model.f_unaccounts_money = 0.00
|
|
3088
|
+
}
|
|
3089
|
+
// requestData.model.f_user_type = requestData.model.f_customer_type;
|
|
3090
|
+
// if (this.selectdata.defname == '核对') {
|
|
3091
|
+
// requestData.loginUser.id = this.selectdata.userid.toString()
|
|
3092
|
+
// }
|
|
3093
|
+
|
|
988
3094
|
console.log('即将发送请求url=>' + url + ',参数=>' + JSON.stringify(requestData))
|
|
989
|
-
let res =
|
|
3095
|
+
let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
990
3096
|
console.log("service处理完成返回数据:", JSON.stringify(res.data))
|
|
991
3097
|
if (res.data.code == 200) {
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
let http = new HttpResetClass()
|
|
995
|
-
let data = {
|
|
996
|
-
tablename: 't_singlevalue',
|
|
997
|
-
condition: `name = '合同编号' and f_filialeids = '${this.$login.f.f_orgids}'`,
|
|
998
|
-
value: (Number(this.contract) + 1) + ''
|
|
999
|
-
}
|
|
1000
|
-
await http.load('POST', 'rs/logic/updatesinglevalue', {data: data}, {
|
|
1001
|
-
resolveMsg: null,
|
|
1002
|
-
rejectMsg: "获取合同编号更新失败"
|
|
1003
|
-
})
|
|
1004
|
-
}
|
|
3098
|
+
|
|
3099
|
+
model = res.data.model
|
|
1005
3100
|
this.showview = false
|
|
1006
3101
|
// 特殊处理
|
|
1007
3102
|
this.special(model)
|
|
@@ -1012,7 +3107,9 @@
|
|
|
1012
3107
|
this.$showMessage(res.data.msg)
|
|
1013
3108
|
}
|
|
1014
3109
|
}
|
|
1015
|
-
|
|
3110
|
+
|
|
3111
|
+
}
|
|
3112
|
+
,
|
|
1016
3113
|
async 'onetomanydelete'(i, j) {
|
|
1017
3114
|
let http = new HttpResetClass()
|
|
1018
3115
|
let data = {
|
|
@@ -1026,10 +3123,11 @@
|
|
|
1026
3123
|
this.$dispatch('selfsearch')
|
|
1027
3124
|
this.$refs.service_show.model.rows[i].splice(j, 1)
|
|
1028
3125
|
})
|
|
1029
|
-
}
|
|
3126
|
+
}
|
|
3127
|
+
,
|
|
1030
3128
|
//获取view层confirm事件
|
|
1031
|
-
async 'confirm'(tables, row,showadd_index,j) {
|
|
1032
|
-
|
|
3129
|
+
async 'confirm'(tables, row, showadd_index, j) {
|
|
3130
|
+
var _this = this
|
|
1033
3131
|
for (let i = 0; i < tables.length; i++) {
|
|
1034
3132
|
let datas = {
|
|
1035
3133
|
tables: tables,
|
|
@@ -1043,10 +3141,11 @@
|
|
|
1043
3141
|
let billtype = datas.row['f_bill_style']
|
|
1044
3142
|
if (tables[i] == 't_charge_record') {
|
|
1045
3143
|
await this.loadbuyer()
|
|
1046
|
-
if (this.buyerinfo.rows.length < 1 && billtype === '增值税电子发票' && this.$appdata.getSingleValue('默认打印票据') === '是'){
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
3144
|
+
if (this.buyerinfo.rows.length < 1 && billtype === '增值税电子发票' && this.$appdata.getSingleValue('默认打印票据') === '是') {
|
|
3145
|
+
this.$showAlert('未找到购买方信息,请去报建功能"购买方信息"中完善购买方信息后再收费', 'info', 2000)
|
|
3146
|
+
this.$refs.service_show.model.rows[showadd_index].splice(j, 1)
|
|
3147
|
+
this.$refs.service_show.initializtion()
|
|
3148
|
+
return
|
|
1050
3149
|
}
|
|
1051
3150
|
datas.row.f_charging_status = '有效'
|
|
1052
3151
|
datas.row.f_is_correct = '否'
|
|
@@ -1067,20 +3166,20 @@
|
|
|
1067
3166
|
}
|
|
1068
3167
|
}*/
|
|
1069
3168
|
let temp = _this.$refs.service_show.model.rows[showadd_index][j]
|
|
1070
|
-
temp.id =
|
|
3169
|
+
temp.id = sellid
|
|
1071
3170
|
_this.$refs.service_show.model.rows[showadd_index][j] = temp
|
|
1072
3171
|
})
|
|
1073
3172
|
if (this.$appdata.getSingleValue('默认打印票据') && this.$appdata.getSingleValue('默认打印票据') === '是') {
|
|
1074
3173
|
this.$showMessage('是否打票据', ['confirm', 'cancel']).then((res) => {
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
}
|
|
3174
|
+
if (res === 'confirm') {
|
|
3175
|
+
console.log('打印票据')
|
|
3176
|
+
if (billtype === '增值税电子发票') {
|
|
3177
|
+
this.selectsellid = sellid
|
|
3178
|
+
this.showbuyerinfo = true
|
|
3179
|
+
} else {
|
|
3180
|
+
this.printbill(sellid)
|
|
1083
3181
|
}
|
|
3182
|
+
}
|
|
1084
3183
|
})
|
|
1085
3184
|
}
|
|
1086
3185
|
// 刷新列表数据
|