apply-clients 7.1.34 → 7.1.36-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +5 -1
- package/android.html +9 -0
- package/build/css-loaders.js +34 -0
- package/build/dev-client.js +8 -0
- package/build/dev-server.js +166 -0
- package/build/example-server.js +80 -0
- package/build/release.sh +28 -0
- package/build/utils.js +80 -0
- package/build/webpack.base.conf.js +123 -0
- package/build/webpack.baseandroid.conf.js +123 -0
- package/build/webpack.dev.conf.js +43 -0
- package/build/webpack.devandroid.conf.js +34 -0
- package/build/webpack.example.conf.js +49 -0
- package/build/webpack.prod.conf.js +60 -0
- package/build/webpack.prodandroid.conf.js +60 -0
- package/dist-android.7z +0 -0
- package/dist.7z +0 -0
- package/index.html +39 -30
- package/package.json +14 -8
- package/src/AndroidApp.vue +21 -14
- package/src/App.vue +4 -6
- package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.eot +0 -0
- package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.svg +0 -0
- package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.ttf +0 -0
- package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.woff +0 -0
- package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.woff2 +0 -0
- package/src/android-bootstrap/less/.csscomb.json +304 -0
- package/src/android-bootstrap/less/.csslintrc +19 -0
- package/src/android-bootstrap/less/alerts.less +73 -0
- package/src/android-bootstrap/less/badges.less +66 -0
- package/src/android-bootstrap/less/bootstrap.less +56 -0
- package/src/android-bootstrap/less/breadcrumbs.less +26 -0
- package/src/android-bootstrap/less/button-groups.less +247 -0
- package/src/android-bootstrap/less/buttons.less +173 -0
- package/src/android-bootstrap/less/carousel.less +269 -0
- package/src/android-bootstrap/less/close.less +34 -0
- package/src/android-bootstrap/less/code.less +69 -0
- package/src/android-bootstrap/less/component-animations.less +33 -0
- package/src/android-bootstrap/less/dropdowns.less +216 -0
- package/src/android-bootstrap/less/forms.less +626 -0
- package/src/android-bootstrap/less/glyphicons.less +305 -0
- package/src/android-bootstrap/less/grid.less +84 -0
- package/src/android-bootstrap/less/input-groups.less +167 -0
- package/src/android-bootstrap/less/jumbotron.less +52 -0
- package/src/android-bootstrap/less/labels.less +64 -0
- package/src/android-bootstrap/less/list-group.less +141 -0
- package/src/android-bootstrap/less/media.less +66 -0
- package/src/android-bootstrap/less/mixins/alerts.less +14 -0
- package/src/android-bootstrap/less/mixins/background-variant.less +9 -0
- package/src/android-bootstrap/less/mixins/border-radius.less +18 -0
- package/src/android-bootstrap/less/mixins/buttons.less +69 -0
- package/src/android-bootstrap/less/mixins/center-block.less +7 -0
- package/src/android-bootstrap/less/mixins/clearfix.less +22 -0
- package/src/android-bootstrap/less/mixins/forms.less +90 -0
- package/src/android-bootstrap/less/mixins/gradients.less +59 -0
- package/src/android-bootstrap/less/mixins/grid-framework.less +92 -0
- package/src/android-bootstrap/less/mixins/grid.less +122 -0
- package/src/android-bootstrap/less/mixins/hide-text.less +21 -0
- package/src/android-bootstrap/less/mixins/image.less +33 -0
- package/src/android-bootstrap/less/mixins/labels.less +12 -0
- package/src/android-bootstrap/less/mixins/list-group.less +30 -0
- package/src/android-bootstrap/less/mixins/nav-divider.less +10 -0
- package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -0
- package/src/android-bootstrap/less/mixins/opacity.less +8 -0
- package/src/android-bootstrap/less/mixins/pagination.less +24 -0
- package/src/android-bootstrap/less/mixins/panels.less +24 -0
- package/src/android-bootstrap/less/mixins/progress-bar.less +10 -0
- package/src/android-bootstrap/less/mixins/reset-filter.less +8 -0
- package/src/android-bootstrap/less/mixins/reset-text.less +18 -0
- package/src/android-bootstrap/less/mixins/resize.less +6 -0
- package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -0
- package/src/android-bootstrap/less/mixins/size.less +10 -0
- package/src/android-bootstrap/less/mixins/tab-focus.less +9 -0
- package/src/android-bootstrap/less/mixins/table-row.less +44 -0
- package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -0
- package/src/android-bootstrap/less/mixins/text-overflow.less +8 -0
- package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -0
- package/src/android-bootstrap/less/mixins.less +40 -0
- package/src/android-bootstrap/less/modals.less +151 -0
- package/src/android-bootstrap/less/navbar.less +660 -0
- package/src/android-bootstrap/less/navs.less +302 -0
- package/src/android-bootstrap/less/normalize.less +424 -0
- package/src/android-bootstrap/less/pager.less +76 -0
- package/src/android-bootstrap/less/pagination.less +89 -0
- package/src/android-bootstrap/less/panels.less +274 -0
- package/src/android-bootstrap/less/popovers.less +131 -0
- package/src/android-bootstrap/less/print.less +101 -0
- package/src/android-bootstrap/less/progress-bars.less +87 -0
- package/src/android-bootstrap/less/responsive-embed.less +35 -0
- package/src/android-bootstrap/less/responsive-utilities.less +194 -0
- package/src/android-bootstrap/less/scaffolding.less +161 -0
- package/src/android-bootstrap/less/tables.less +262 -0
- package/src/android-bootstrap/less/theme.less +291 -0
- package/src/android-bootstrap/less/thumbnails.less +36 -0
- package/src/android-bootstrap/less/tooltip.less +102 -0
- package/src/android-bootstrap/less/type.less +303 -0
- package/src/android-bootstrap/less/utilities.less +55 -0
- package/src/android-bootstrap/less/variables.less +896 -0
- package/src/android-bootstrap/less/wells.less +29 -0
- package/src/android.js +7 -4
- package/src/apply.js +109 -69
- package/src/applyAndroid.js +65 -28
- package/src/assets/marker-default.png +0 -0
- package/src/assets/myLocationIcon.png +0 -0
- package/src/assets//345/210/240/351/231/244.png +0 -0
- package/src/components/android/AppOnetomany.vue +301 -0
- package/src/components/android/AppServiceView.vue +603 -0
- package/src/components/android/AppSign.vue +228 -0
- package/src/components/android/AppTakePic.vue +142 -0
- package/src/components/android/AppUpload.vue +260 -0
- package/src/components/android/Ignition/VentilationIgnition.vue +408 -0
- package/src/components/android/Ignition/VentilationIgnitionHandle.vue +455 -0
- package/src/components/android/Process/AppExplorationUser.vue +454 -0
- package/src/components/android/Process/AppServiceControl.vue +1397 -0
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +338 -0
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +818 -0
- package/src/components/android/Process/Processes/SurveyUserSign.vue +65 -0
- package/src/components/android/Process/Processes/newAppDevicesManagement.vue +343 -0
- package/src/components/android/Process/Processes/newAppInstallationDetails.vue +669 -0
- package/src/components/android/Sign/AppSignTask.vue +183 -0
- package/src/components/android/Sign/SignProcess.vue +103 -0
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +298 -0
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +128 -0
- package/src/components/android/Task/Build/BuildTsak.vue +114 -0
- package/src/components/android/Task/BuildIgnition/BuildIgnition.vue +114 -0
- package/src/components/android/Task/RepairFromSend/RepairFrom.vue +124 -0
- package/src/components/android/Task/RepairFromSend/RepairSend.vue +124 -0
- package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +427 -0
- package/src/components/android/Task/ShiGongXinXi/ShowBuild.vue +95 -0
- package/src/components/android/Task/Survey/SurveyTsak.vue +141 -0
- package/src/components/android/Task/UpBuild/UpBuildDui.vue +95 -0
- package/src/components/android/Task/UpBuild/UpBuildTsak.vue +95 -0
- package/src/components/android/Task/UpBuild/UpJianLi.vue +95 -0
- package/src/components/android/TaskGraph.vue +130 -0
- package/src/components/android/newPackage/customerServiceManager.vue +218 -0
- package/src/components/android/newPackage/designDrawings.vue +94 -0
- package/src/components/android/newPackage/detailedData.vue +24 -0
- package/src/components/android/newPackage/projectPrice.vue +218 -0
- package/src/components/image/dwg.png +0 -0
- package/src/components/image/dxf.png +0 -0
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +541 -73
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +2 -2
- package/src/components/product/ApplyMap/ApplyDragaboutList.vue +223 -0
- package/src/components/product/ApplyMap/ApplyInputSearch.vue +212 -0
- package/src/components/product/ApplyMap/ApplyMapCom.vue +82 -0
- package/src/components/product/ApplyMap/ApplyMapLocation.vue +850 -0
- package/src/components/product/ChongZheng/ApplyChongZhengList.vue +414 -0
- package/src/components/product/ChongZheng/ApplyChongZhengSearch.vue +30 -0
- package/src/components/product/Function/InstallFunction.vue +133 -147
- package/src/components/product/Function/InstallInfoSelect.vue +370 -281
- package/src/components/product/Function/Service/FunctionServiceControl.vue +378 -148
- package/src/components/product/Ignition/IgnitionDispatch.vue +92 -0
- package/src/components/product/Ignition/IgnitionList.vue +232 -0
- package/src/components/product/Ignition/IgnitionListManage.vue +362 -0
- package/src/components/product/Ignition/IgnitionRecord.vue +318 -0
- package/src/components/product/List/ShowDevices.vue +277 -0
- package/src/components/product/Onetomany.vue +377 -0
- package/src/components/product/Print/BuildOrder/buildOrderList.vue +445 -0
- package/src/components/product/Print/BuildOrder/printBuildOrder.vue +252 -0
- package/src/components/product/Print/BuildOrder/printGaiXianOrder.vue +232 -0
- package/src/components/product/Print/OrderPrint/GaiXianOrder.vue +281 -0
- package/src/components/product/Print/img/R-C.jpg +0 -0
- package/src/components/product/Process/ExplorationSelect.vue +566 -347
- package/src/components/product/Process/ExplorationUser.vue +155 -135
- package/src/components/product/Process/Processes/ExhibitionPicture.vue +27 -0
- package/src/components/product/Process/Processes/InstallationDetails.vue +1000 -484
- package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
- package/src/components/product/Process/Processes/Print/printCharge.vue +246 -0
- package/src/components/product/Process/Processes/Print/printPaymentApproval.vue +221 -0
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -249
- package/src/components/product/Process/Processes/chargeManagement.vue +686 -562
- package/src/components/product/Process/Processes/devicesManagement.vue +373 -0
- package/src/components/product/Process/Processes/newDevicesManagement.vue +379 -0
- package/src/components/product/Process/Processes/newInstallationDetails.vue +718 -0
- package/src/components/product/Process/Processes/satisfactionShow.vue +202 -0
- package/src/components/product/Process/Processes/selectApply.vue +250 -0
- package/src/components/product/Process/Processes/selectOldUserinfo.vue +241 -0
- package/src/components/product/Process/Processes/selectUserinfo.vue +234 -0
- package/src/components/product/Process/Processes/supplementalAgreement.vue +182 -181
- package/src/components/product/Process/Service/ServiceControl.vue +1900 -756
- package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
- package/src/components/product/ServiceView.vue +632 -755
- package/src/components/product/Stop/StopApply.vue +105 -0
- package/src/components/product/Stop/StopApplyList.vue +224 -0
- package/src/components/product/Supervisory/ExportExcel.vue +360 -0
- package/src/components/product/Supervisory/NewSupervisoryhCart.vue +175 -0
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +425 -73
- package/src/components/product/Supervisory/SupervisoryControl.vue +114 -121
- package/src/components/product/Supervisory/SupervisoryList.vue +339 -62
- package/src/components/product/Supervisory/SupervisoryhCart.vue +119 -103
- package/src/components/product/VueUtils/ApplyUpload.vue +70 -47
- package/src/components/product/VueUtils/HighMeter.vue +208 -0
- package/src/expandcssAndroid.less +1034 -0
- package/src/main.js +5 -1
- package/src/public/history/HistoryApplyList.vue +108 -0
- package/src/public/history/PublicHistoryApply.vue +39 -0
- package/src/public/history/PublicSupervisoryhCart.vue +72 -0
- package/src/public/order/PublicOrderApply.vue +387 -0
- package/static/images/lefticon/{/345/256/211/346/243/200/346/237/245/347/234/213.png → anjianjihua.png} +0 -0
- package/static/images/lefticon/{/346/241/243/346/241/210/347/256/241/347/220/206.png → danganguanli.png} +0 -0
- package/static/images/lefticon/{/345/224/256/346/260/224/346/224/266/350/264/271.png → shouqishoufei.png} +0 -0
- package/static/images/lefticon/{/347/211/251/350/201/224/347/275/221/350/241/250.png → wulianwang.png} +0 -0
- package/static/images/lefticon/{/347/263/273/347/273/237/347/256/241/347/220/206.png → xitongguanli.png} +0 -0
- package/static/images/lefticon/{/347/273/274/345/220/210/346/237/245/350/257/242.png → yingyechaxun.png} +0 -0
- package/static/images/lefticon/{/345/221/274/345/217/253/347/263/273/347/273/237.png → yuyinkefu.png} +0 -0
- package/static/images/lefticon/{/347/273/274/345/220/210/344/270/232/345/212/241.png → zongheyewu.png} +0 -0
- package/static/images/lefticon//345/220/210/345/220/214/347/256/241/347/220/206.png +0 -0
- package/{dist-android/static/denglu.png → static/images/lefticonNew//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png} +0 -0
- package/static/images/lefticonNew//345/220/210/345/220/214/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticonNew//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
- package/static/images/lefticonNew//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
- package/static/images/lefticonNew//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
- package/static/images/lefticonNew//345/233/276/345/261/202577.png +0 -0
- package/{dist-android/static/psicon.png → static/images/lefticonNew//345/233/276/345/261/2028/346/213/267/350/264/23513.png} +0 -0
- package/static/images/lefticonNew//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
- package/static/images/lefticonNew//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
- package/static/images/lefticonNew//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
- package/static/images/lefticonNew//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
- package/static/images/lefticonNew//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
- package/static/images/lefticonNew//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticonNew//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticonNew//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
- package/static/images/lefticonNew//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticonNew//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
- package/static/images/lefticonNew//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticonNew//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
- package/static/images/lefticonNew//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
- package/static/images/lefticonNew//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
- package/static/images/lefticonNew//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
- package/static/images/lefticonNew//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
- package/static/images/lefticonNew//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
- package/yarn-error.log +9976 -0
- package/dist-android/index.html +0 -3
- package/dist-android/static/.gitkeep +0 -0
- 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/100.js +0 -2
- package/dist-android/static/100.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/6.js +0 -2
- package/dist-android/static/6.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/77.js +0 -2
- package/dist-android/static/77.js.map +0 -1
- package/dist-android/static/78.js +0 -2
- package/dist-android/static/78.js.map +0 -1
- package/dist-android/static/79.js +0 -2
- package/dist-android/static/79.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/80.js +0 -2
- package/dist-android/static/80.js.map +0 -1
- package/dist-android/static/81.js +0 -2
- package/dist-android/static/81.js.map +0 -1
- package/dist-android/static/82.js +0 -2
- package/dist-android/static/82.js.map +0 -1
- package/dist-android/static/83.js +0 -2
- package/dist-android/static/83.js.map +0 -1
- package/dist-android/static/84.js +0 -2
- package/dist-android/static/84.js.map +0 -1
- package/dist-android/static/85.js +0 -2
- package/dist-android/static/85.js.map +0 -1
- package/dist-android/static/86.js +0 -2
- package/dist-android/static/86.js.map +0 -1
- package/dist-android/static/87.js +0 -2
- package/dist-android/static/87.js.map +0 -1
- package/dist-android/static/88.js +0 -2
- package/dist-android/static/88.js.map +0 -1
- package/dist-android/static/89.js +0 -2
- package/dist-android/static/89.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/90.js +0 -2
- package/dist-android/static/90.js.map +0 -1
- package/dist-android/static/91.js +0 -2
- package/dist-android/static/91.js.map +0 -1
- package/dist-android/static/92.js +0 -2
- package/dist-android/static/92.js.map +0 -1
- package/dist-android/static/93.js +0 -2
- package/dist-android/static/93.js.map +0 -1
- package/dist-android/static/94.js +0 -2
- package/dist-android/static/94.js.map +0 -1
- package/dist-android/static/95.js +0 -2
- package/dist-android/static/95.js.map +0 -1
- package/dist-android/static/96.js +0 -2
- package/dist-android/static/96.js.map +0 -1
- package/dist-android/static/97.js +0 -2
- package/dist-android/static/97.js.map +0 -1
- package/dist-android/static/98.js +0 -2
- package/dist-android/static/98.js.map +0 -1
- package/dist-android/static/99.js +0 -2
- package/dist-android/static/99.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/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/components/app_apply/Acceptance.vue +0 -298
- package/src/components/app_apply/ApplyApp.vue +0 -91
- package/src/components/app_apply/ApplyDownList.vue +0 -166
- package/src/components/app_apply/ApplyInfo.vue +0 -56
- package/src/components/app_apply/ApplyListUpload.vue +0 -258
- package/src/components/app_apply/ApplyToDoList.vue +0 -165
- package/src/components/app_apply/ApplyUserInfo.vue +0 -56
- package/src/components/app_apply/FieldExploration.vue +0 -267
- package/src/components/app_apply/PlaceControler.vue +0 -258
- package/src/components/app_apply/ServiceControl.vue +0 -267
- package/src/components/app_apply/ServiceView.vue +0 -355
- package/src/components/app_apply/ToolsPage.vue +0 -51
- package/src/components/app_apply/Ventilation.vue +0 -199
- package/src/components/product/ApplyCharge/ApplyChargeReport.vue +0 -107
- package/src/components/product/Function/StopApplyCrrdList.vue +0 -176
- package/src/components/product/Function/functions/ApplyRecordCancel.vue +0 -102
- package/src/components/product/Function/functions/StopInstall.vue +0 -106
- package/src/components/product/Process/Processes/printCharge.vue +0 -126
- package/src/components/product/Process/ShowBackReason.vue +0 -32
- package/src/components/product/ReportForm/GasIgnitionSummary.vue +0 -352
- package/src/components/product/VueUtils/ToolsPage.vue +0 -51
- package/src/components/product/VueUtils/Tree.vue +0 -330
|
@@ -0,0 +1,1397 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="col-sm-12 col-xs-12 p-10">
|
|
3
|
+
<accordion one-at-a-time="true">
|
|
4
|
+
<panel :header="selectdata.defname" :is-open="isOpen" type="primary">
|
|
5
|
+
<app-service-view v-ref:serviceview :data="show_data" v-if="showview"></app-service-view>
|
|
6
|
+
</panel>
|
|
7
|
+
<panel header='地图' :is-open="!isOpen" type="primary" v-if="selectdata.defname ==='现场勘察'">
|
|
8
|
+
<div style="height: 85vh">
|
|
9
|
+
<apply-map-com :selectdata="selectdata"></apply-map-com>
|
|
10
|
+
</div>
|
|
11
|
+
</panel>
|
|
12
|
+
</accordion>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
<script>
|
|
16
|
+
import Vue from 'vue'
|
|
17
|
+
import {HttpResetClass} from 'vue-client'
|
|
18
|
+
import {isEmpty} from '../../Util'
|
|
19
|
+
// Date格式化
|
|
20
|
+
Date.prototype.Format = function (fmt) {
|
|
21
|
+
var o = {
|
|
22
|
+
'M+': this.getMonth() + 1, // 月份
|
|
23
|
+
'd+': this.getDate(), // 日
|
|
24
|
+
'H+': this.getHours(), // 小时
|
|
25
|
+
'm+': this.getMinutes(), // 分
|
|
26
|
+
's+': this.getSeconds(), // 秒
|
|
27
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
28
|
+
'S': this.getMilliseconds() // 毫秒
|
|
29
|
+
}
|
|
30
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
31
|
+
for (var k in o) {
|
|
32
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
33
|
+
}
|
|
34
|
+
return fmt
|
|
35
|
+
}
|
|
36
|
+
export default {
|
|
37
|
+
title: '报建流程业务控制层',
|
|
38
|
+
props: ['selectdata'],
|
|
39
|
+
data() {
|
|
40
|
+
return {
|
|
41
|
+
json_datas: null,
|
|
42
|
+
data: null,
|
|
43
|
+
show_data: null,
|
|
44
|
+
showview: false,
|
|
45
|
+
config: {},
|
|
46
|
+
isOpen: true
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
ready() {
|
|
50
|
+
this.refurbish()
|
|
51
|
+
},
|
|
52
|
+
methods: {
|
|
53
|
+
async refurbish() {
|
|
54
|
+
this.showview = false
|
|
55
|
+
let data = {
|
|
56
|
+
workname: this.selectdata.processname
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
let res = await this.$resetpost(
|
|
60
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetConfigs`,
|
|
61
|
+
{data: data},
|
|
62
|
+
{resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
this.json_datas = res.data
|
|
66
|
+
|
|
67
|
+
let sum = 0
|
|
68
|
+
let jsonData = {}
|
|
69
|
+
if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
|
|
70
|
+
this.$showMessage("网络故障,请刷新页面")
|
|
71
|
+
return
|
|
72
|
+
}
|
|
73
|
+
this.json_datas.activitys.forEach(item => {
|
|
74
|
+
if (this.selectdata.defname === '施工信息') {
|
|
75
|
+
if (item.title === '工程施工') {
|
|
76
|
+
jsonData = item // 拿到当前节点的json配置信息
|
|
77
|
+
sum++ // 节点名一样的个数
|
|
78
|
+
}
|
|
79
|
+
}else if (this.selectdata.defname === item.title) {
|
|
80
|
+
jsonData = item // 拿到当前节点的json配置信息
|
|
81
|
+
sum++ // 节点名一样的个数
|
|
82
|
+
}
|
|
83
|
+
return this.selectdata.defname === item.title // 拿到当前节点的json配置信息
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
if (sum === 0) {
|
|
87
|
+
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
88
|
+
return
|
|
89
|
+
}
|
|
90
|
+
if (sum > 1) {
|
|
91
|
+
this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
|
|
92
|
+
return
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
this.selectdata = Object.assign({}, this.selectdata, jsonData)
|
|
96
|
+
|
|
97
|
+
// fields 字段填充值
|
|
98
|
+
for (const item of this.selectdata.fields) {
|
|
99
|
+
if (!item.value) {
|
|
100
|
+
item.value = null
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
|
|
104
|
+
if (item.eval) {
|
|
105
|
+
let user = Vue.user
|
|
106
|
+
// 将PC用户信息 替换成 APP的
|
|
107
|
+
item.value = eval(item.default.replace('this.$login.f', 'user'))
|
|
108
|
+
} else {
|
|
109
|
+
item.value = item.default
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (this.selectdata[item.field]) {
|
|
114
|
+
// 将json字符串格式化赋值给value
|
|
115
|
+
if (String(this.selectdata[item.field]).startsWith("{")) {
|
|
116
|
+
item.value = JSON.parse(this.selectdata[item.field])
|
|
117
|
+
} else {
|
|
118
|
+
item.value = this.selectdata[item.field]
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (this.selectdata[item.field] === 0) {
|
|
122
|
+
item.value = 0
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// datepicker
|
|
126
|
+
if (item.type === 'datepicker' && !item.value && item.default) {
|
|
127
|
+
item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
131
|
+
if (item.type === 'select' || item.type === 'checkbox') {
|
|
132
|
+
if (item.param) {
|
|
133
|
+
let temp = this.$appdata.getParam(item.label)
|
|
134
|
+
|
|
135
|
+
if (temp && temp.length > 0) {
|
|
136
|
+
item.options = temp
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (item.paramLabel) {
|
|
140
|
+
temp = this.$appdata.getParam(item.paramLabel)
|
|
141
|
+
if (temp && temp.length > 0) {
|
|
142
|
+
item.options = temp
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
}
|
|
148
|
+
if (item.ready) {
|
|
149
|
+
item.options = await this[item.ready]()
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (item.type === 'checkbox') {
|
|
153
|
+
if (this.selectdata[item.field]) {
|
|
154
|
+
item.value = JSON.parse(this.selectdata[item.field])
|
|
155
|
+
} else {
|
|
156
|
+
item.value = []
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
if(this.selectdata.defname === '施工信息'){
|
|
160
|
+
item.readonly = true
|
|
161
|
+
item.disabled = true
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// 控制组件
|
|
166
|
+
if (this.selectdata.components) {
|
|
167
|
+
this.selectdata.components.forEach(item => {
|
|
168
|
+
if (!item.mark) {
|
|
169
|
+
item.mark = 0
|
|
170
|
+
}
|
|
171
|
+
})
|
|
172
|
+
}
|
|
173
|
+
// 控制组件
|
|
174
|
+
if(this.selectdata.defname === '施工信息') {
|
|
175
|
+
if (this.selectdata.components) {
|
|
176
|
+
this.selectdata.components.forEach(item => {
|
|
177
|
+
item.mark = 1
|
|
178
|
+
})
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
// 初始化onetomany
|
|
182
|
+
if (this.selectdata.onetomany) {
|
|
183
|
+
for (const item of this.selectdata.onetomany) {
|
|
184
|
+
let res = null
|
|
185
|
+
if (item.queryEvent) {
|
|
186
|
+
res = this[item.queryEvent]()
|
|
187
|
+
} else {
|
|
188
|
+
let http = new HttpResetClass()
|
|
189
|
+
let data = {
|
|
190
|
+
tablename: item.tables[0],
|
|
191
|
+
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
192
|
+
}
|
|
193
|
+
res = await http.load(
|
|
194
|
+
'POST',
|
|
195
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`,
|
|
196
|
+
// `rs/sql/applySingleTable`,
|
|
197
|
+
{data: data},
|
|
198
|
+
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
199
|
+
)
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
item.rows = res.data
|
|
203
|
+
|
|
204
|
+
// 初始化onetomany中的fields
|
|
205
|
+
for (const field of item.fields) {
|
|
206
|
+
if (!field.value) {
|
|
207
|
+
if (field.value !== 0) {
|
|
208
|
+
field.value = null
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
if (field.default || field.default === 0) {
|
|
213
|
+
field.value = field.default
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// datepicker
|
|
217
|
+
if (field.type === 'datepicker' && !field.value && field.default) {
|
|
218
|
+
field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (field.type === 'select') {
|
|
222
|
+
|
|
223
|
+
if (field.param) {
|
|
224
|
+
let temp = this.$appdata.getParam(field.label)
|
|
225
|
+
|
|
226
|
+
if (temp && temp.length > 0) {
|
|
227
|
+
field.options = temp
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (field.paramLabel) {
|
|
231
|
+
temp = this.$appdata.getParam(field.paramLabel)
|
|
232
|
+
if (temp && temp.length > 0) {
|
|
233
|
+
item.options = temp
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
if(this.selectdata.defname === '施工信息'){
|
|
241
|
+
// 隐藏所有操作
|
|
242
|
+
item.hiddenOperate = true
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// 初始化 buttons_fields
|
|
248
|
+
for (const item of this.selectdata.buttons) {
|
|
249
|
+
if (item.button_name === '下发') {
|
|
250
|
+
let data = {
|
|
251
|
+
source: item.source,
|
|
252
|
+
userid: Vue.user.id
|
|
253
|
+
// userid: '51953'
|
|
254
|
+
}
|
|
255
|
+
if (item.sourceMethod) {
|
|
256
|
+
data.source = this[item.sourceMethod]()
|
|
257
|
+
}
|
|
258
|
+
if (!data.source) {
|
|
259
|
+
this.$showMessage("请配置获取人员表达式")
|
|
260
|
+
return
|
|
261
|
+
}
|
|
262
|
+
let res = await this.$resetpost(
|
|
263
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
264
|
+
// `rs/search`,
|
|
265
|
+
{data: data},
|
|
266
|
+
{resolveMsg: null, rejectMsg: '下发人员查询失败!!!'}
|
|
267
|
+
)
|
|
268
|
+
|
|
269
|
+
let options = res.data.map(source => {
|
|
270
|
+
return {
|
|
271
|
+
"label": source.name,
|
|
272
|
+
"value": source.id
|
|
273
|
+
}
|
|
274
|
+
})
|
|
275
|
+
|
|
276
|
+
if (item.button_fields.length !== 1) {
|
|
277
|
+
this.$showMessage("下发有且只能有一个字段!!!")
|
|
278
|
+
return
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
item.button_fields[0].options = options
|
|
282
|
+
}
|
|
283
|
+
if (item.button_fields) {
|
|
284
|
+
item.button_fields.forEach(x => {
|
|
285
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
286
|
+
if (x.type === 'select') {
|
|
287
|
+
|
|
288
|
+
if (x.param) {
|
|
289
|
+
let temp = this.$appdata.getParam(x.label)
|
|
290
|
+
|
|
291
|
+
if (temp && temp.length > 0) {
|
|
292
|
+
x.options = temp
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
if (x.paramLabel) {
|
|
296
|
+
temp = this.$appdata.getParam(x.paramLabel)
|
|
297
|
+
if (temp && temp.length > 0) {
|
|
298
|
+
x.options = temp
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
}
|
|
304
|
+
})
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
if(this.selectdata.defname === '施工信息'){
|
|
308
|
+
this.selectdata.buttons = null
|
|
309
|
+
}
|
|
310
|
+
if (this.selectdata.f_apply_nature === '散户' && this.selectdata.defname === '现场勘察') {
|
|
311
|
+
for (const item of this.selectdata.fields) {
|
|
312
|
+
if (item.label.includes('安装户数')) {
|
|
313
|
+
item.readonly = true
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
318
|
+
let temp = JSON.parse(JSON.stringify(this.selectdata))
|
|
319
|
+
|
|
320
|
+
this.show_data = temp
|
|
321
|
+
this.$nextTick(() => {
|
|
322
|
+
this.showview = true
|
|
323
|
+
})
|
|
324
|
+
},
|
|
325
|
+
// 金额转大写
|
|
326
|
+
smalltoBIG(n) {
|
|
327
|
+
let fraction = ['角', '分'];
|
|
328
|
+
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
|
|
329
|
+
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
|
|
330
|
+
let head = n < 0 ? '欠' : '';
|
|
331
|
+
n = Math.abs(n);
|
|
332
|
+
|
|
333
|
+
let s = '';
|
|
334
|
+
|
|
335
|
+
for (var i = 0; i < fraction.length; i++) {
|
|
336
|
+
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
|
|
337
|
+
}
|
|
338
|
+
s = s || '整';
|
|
339
|
+
n = Math.floor(n);
|
|
340
|
+
|
|
341
|
+
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
342
|
+
let p = '';
|
|
343
|
+
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
344
|
+
p = digit[n % 10] + unit[1][j] + p;
|
|
345
|
+
n = Math.floor(n / 10);
|
|
346
|
+
}
|
|
347
|
+
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
|
|
348
|
+
}
|
|
349
|
+
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
350
|
+
},
|
|
351
|
+
getLableValue(label) {
|
|
352
|
+
for (const item of this.show_data.fields) {
|
|
353
|
+
if (item.label === label && item.type !== 'number') {
|
|
354
|
+
return item.value || ''
|
|
355
|
+
}
|
|
356
|
+
if (item.label === label && item.type === 'number') {
|
|
357
|
+
return item.value || 0
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
getLableOptions(label) {
|
|
362
|
+
for (const item of this.show_data.fields) {
|
|
363
|
+
if (item.label === label) {
|
|
364
|
+
return item.options
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
setLabelValue(label, value) {
|
|
369
|
+
for (const item of this.show_data.fields) {
|
|
370
|
+
if (item.label === label) {
|
|
371
|
+
item.value = value
|
|
372
|
+
this.show_data[item.field] = value
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
setLabelOptions(label, options) {
|
|
377
|
+
for (const item of this.show_data.fields) {
|
|
378
|
+
if (item.label === label) {
|
|
379
|
+
item.options = options
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
showLabels(...labels) {
|
|
384
|
+
for (const item of this.show_data.fields) {
|
|
385
|
+
if (labels.includes(item.label)) {
|
|
386
|
+
item.hidden = false
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
hideLabels(...labels) {
|
|
391
|
+
for (const item of this.show_data.fields) {
|
|
392
|
+
if (labels.includes(item.label)) {
|
|
393
|
+
item.hidden = true
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
showButtons(...buttons) {
|
|
398
|
+
for (const item of this.show_data.buttons) {
|
|
399
|
+
if (buttons.includes(item.button_name)) {
|
|
400
|
+
item.hidden = false
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
hideButtons(...buttons) {
|
|
405
|
+
for (const item of this.show_data.buttons) {
|
|
406
|
+
if (buttons.includes(item.button_name)) {
|
|
407
|
+
item.hidden = true
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
requiredLabels(...labels) {
|
|
412
|
+
for (const item of this.show_data.fields) {
|
|
413
|
+
if (labels.includes(item.label)) {
|
|
414
|
+
item.required = true
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
electiveLabels(...labels) {
|
|
419
|
+
for (const item of this.show_data.fields) {
|
|
420
|
+
if (labels.includes(item.label)) {
|
|
421
|
+
item.required = false
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
readonlyLabels(...labels) {
|
|
426
|
+
for (const item of this.show_data.fields) {
|
|
427
|
+
if (labels.includes(item.label)) {
|
|
428
|
+
item.readonly = true
|
|
429
|
+
item.disabled = true
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
readwriteLabels(...labels) {
|
|
434
|
+
for (const item of this.show_data.fields) {
|
|
435
|
+
if (labels.includes(item.label)) {
|
|
436
|
+
item.readonly = false
|
|
437
|
+
item.disabled = false
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
disabledButtons(...buttons) {
|
|
442
|
+
for (const item of this.show_data.buttons) {
|
|
443
|
+
if (buttons.includes(item.button_name)) {
|
|
444
|
+
item.disabled = true
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
enableButtons(...buttons) {
|
|
449
|
+
for (const item of this.show_data.buttons) {
|
|
450
|
+
if (buttons.includes(item.button_name)) {
|
|
451
|
+
item.disabled = false
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
showComponents(...titles) {
|
|
456
|
+
for (const item of this.show_data.components) {
|
|
457
|
+
if (titles.includes(item.title) && item.device === 'app') {
|
|
458
|
+
item.hidden = false
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
hideComponents(...titles) {
|
|
463
|
+
for (const item of this.show_data.components) {
|
|
464
|
+
if (titles.includes(item.title) && item.device === 'app') {
|
|
465
|
+
item.hidden = true
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
async checkDuplicate(index) {
|
|
470
|
+
let http = new HttpResetClass()
|
|
471
|
+
let data = {
|
|
472
|
+
tablename: 't_apply',
|
|
473
|
+
condition: `${this.show_data.fields[index].field} = '${this.show_data.fields[index].value}'`
|
|
474
|
+
}
|
|
475
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`, {data: data}, {
|
|
476
|
+
resolveMsg: null,
|
|
477
|
+
rejectMsg: `${this.show_data.fields[index].label}查询失败`
|
|
478
|
+
})
|
|
479
|
+
if (res.data.length > 0) {
|
|
480
|
+
this.show_data.fields[index].value = null
|
|
481
|
+
this.$showAlert(`${this.show_data.fields[index].label}已存在!!!`, 'warning', 3000)
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
async breakControl() {
|
|
485
|
+
if (this.show_data.id) {
|
|
486
|
+
let data = {
|
|
487
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
488
|
+
data: {
|
|
489
|
+
userid: Vue.user.id,
|
|
490
|
+
f_filiale: Vue.user.f_fengongsi
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
let res = await this.$resetpost(
|
|
494
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
|
|
495
|
+
{data: data},
|
|
496
|
+
{resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
|
|
497
|
+
)
|
|
498
|
+
|
|
499
|
+
this.selectdata = res.data[0]
|
|
500
|
+
} else {
|
|
501
|
+
this.selectdata = servicedata
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
this.refurbish()
|
|
505
|
+
},
|
|
506
|
+
// ------------------------------
|
|
507
|
+
async getConstructionWorker() {
|
|
508
|
+
let data = {
|
|
509
|
+
source: 'this.getParentByType($organization$).getChildByName($建设单位$).getChildren()',
|
|
510
|
+
userid: Vue.user.id
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
let res = await this.$resetpost(
|
|
514
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
515
|
+
{data: data},
|
|
516
|
+
{resolveMsg: null, rejectMsg: '现场负责人查询失败!!!'}
|
|
517
|
+
)
|
|
518
|
+
|
|
519
|
+
return res.data.map(item => {
|
|
520
|
+
return {
|
|
521
|
+
label: item.name,
|
|
522
|
+
value: item.name
|
|
523
|
+
}
|
|
524
|
+
})
|
|
525
|
+
},
|
|
526
|
+
//获取下发人
|
|
527
|
+
getSource () {
|
|
528
|
+
return 'this.getParentByType($organization$).getChildByName($'+ Vue.user.f_parentname + '$).getChildren()'
|
|
529
|
+
},
|
|
530
|
+
async getUserName() {
|
|
531
|
+
let data = {
|
|
532
|
+
tablename: 't_user',
|
|
533
|
+
condition: `id='${this.selectdata.f_construction_unit_id}'`
|
|
534
|
+
}
|
|
535
|
+
let res = await this.$resetpost(
|
|
536
|
+
'${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable',
|
|
537
|
+
{data: data},
|
|
538
|
+
{resolveMsg: null, rejectMsg: null}
|
|
539
|
+
)
|
|
540
|
+
return res.data.map(item => {
|
|
541
|
+
return {
|
|
542
|
+
label: item.name,
|
|
543
|
+
value: item.id
|
|
544
|
+
}
|
|
545
|
+
})
|
|
546
|
+
},
|
|
547
|
+
// 安装单位签字人
|
|
548
|
+
async getConstructionUnitId () {
|
|
549
|
+
let data = {
|
|
550
|
+
source: '',
|
|
551
|
+
userid: Vue.user.id
|
|
552
|
+
}
|
|
553
|
+
data.source = 'this.getParentByType($organization$).getChildByName($'+ Vue.user.f_parentname + '$).getChildren()'
|
|
554
|
+
let res = await this.$resetpost(
|
|
555
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
556
|
+
{data: data},
|
|
557
|
+
{resolveMsg: null, rejectMsg: '安装单位施工班组查询失败!!!'}
|
|
558
|
+
)
|
|
559
|
+
|
|
560
|
+
return res.data.map(item => {
|
|
561
|
+
return {
|
|
562
|
+
label: item.name,
|
|
563
|
+
value: item.id
|
|
564
|
+
}
|
|
565
|
+
})
|
|
566
|
+
},
|
|
567
|
+
// 安装单位负责人
|
|
568
|
+
async getConstructionUnit() {
|
|
569
|
+
let data = {
|
|
570
|
+
source: 'this.getParentByType($organization$).getChildByName($工程施工队$).getChildren()',
|
|
571
|
+
userid: Vue.user.id
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
let res = await this.$resetpost(
|
|
575
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
576
|
+
{data: data},
|
|
577
|
+
{resolveMsg: null, rejectMsg: '安装单位人员查询失败!!!'}
|
|
578
|
+
)
|
|
579
|
+
|
|
580
|
+
return res.data.map(item => {
|
|
581
|
+
return {
|
|
582
|
+
label: item.name,
|
|
583
|
+
value: item.id
|
|
584
|
+
}
|
|
585
|
+
})
|
|
586
|
+
},
|
|
587
|
+
// 建设单位
|
|
588
|
+
async getConstructOperator() {
|
|
589
|
+
let data = {
|
|
590
|
+
source: 'this.getParentByType($organization$).getChildByName($建设单位$).getChildren()',
|
|
591
|
+
userid: Vue.user.id
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
let res = await this.$resetpost(
|
|
595
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
596
|
+
{data: data},
|
|
597
|
+
{resolveMsg: null, rejectMsg: '建设单位人员查询失败!!!'}
|
|
598
|
+
)
|
|
599
|
+
|
|
600
|
+
return res.data.map(item => {
|
|
601
|
+
return {
|
|
602
|
+
label: item.name,
|
|
603
|
+
value: item.id
|
|
604
|
+
}
|
|
605
|
+
})
|
|
606
|
+
},
|
|
607
|
+
// 监理单位
|
|
608
|
+
async getSupervisorOperator() {
|
|
609
|
+
let data = {
|
|
610
|
+
source: 'this.getParentByType($organization$).getChildByName($监理单位$).getChildren()',
|
|
611
|
+
userid: Vue.user.id
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
let res = await this.$resetpost(
|
|
615
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
616
|
+
{data: data},
|
|
617
|
+
{resolveMsg: null, rejectMsg: '监理单位人员查询失败!!!'}
|
|
618
|
+
)
|
|
619
|
+
for (const item of this.selectdata.fields) {
|
|
620
|
+
if (item.label === '监理单位') {
|
|
621
|
+
item.value = res.data[0].id
|
|
622
|
+
this.selectdata[item.field] = res.data[0].id
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
return res.data.map(item => {
|
|
626
|
+
return {
|
|
627
|
+
label: item.name,
|
|
628
|
+
value: item.id
|
|
629
|
+
}
|
|
630
|
+
})
|
|
631
|
+
},
|
|
632
|
+
// 监理现场负责人
|
|
633
|
+
async getSupervisorOperatorId () {
|
|
634
|
+
let data = {
|
|
635
|
+
source: 'this.getParentByType($organization$).getChildByName($监理班组$).getChildren()',
|
|
636
|
+
userid: Vue.user.id
|
|
637
|
+
}
|
|
638
|
+
let res = await this.$resetpost(
|
|
639
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
640
|
+
{data: data},
|
|
641
|
+
{resolveMsg: null, rejectMsg: '监理单位人员查询失败!!!'}
|
|
642
|
+
)
|
|
643
|
+
return res.data.map(item => {
|
|
644
|
+
return {
|
|
645
|
+
label: item.name,
|
|
646
|
+
value: item.id
|
|
647
|
+
}
|
|
648
|
+
})
|
|
649
|
+
},
|
|
650
|
+
// 土建单位
|
|
651
|
+
async getEngineeringOperator() {
|
|
652
|
+
let data = {
|
|
653
|
+
source: 'this.getParentByType($organization$).getChildByName($土建单位$).getChildren()',
|
|
654
|
+
userid: Vue.user.id
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
let res = await this.$resetpost(
|
|
658
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
659
|
+
{data: data},
|
|
660
|
+
{resolveMsg: null, rejectMsg: '土建单位人员查询失败!!!'}
|
|
661
|
+
)
|
|
662
|
+
|
|
663
|
+
let result = res.data.map(item => {
|
|
664
|
+
return {
|
|
665
|
+
label: item.name,
|
|
666
|
+
value: item.id
|
|
667
|
+
}
|
|
668
|
+
})
|
|
669
|
+
result.push({label: '用户自理', value: '用户自理'})
|
|
670
|
+
result.push({label:'无',value:'无'})
|
|
671
|
+
return result
|
|
672
|
+
},
|
|
673
|
+
// 检测单位
|
|
674
|
+
async getCheckOperator() {
|
|
675
|
+
let data = {
|
|
676
|
+
source: 'this.getParentByType($organization$).getChildByName($检测单位$).getChildren()',
|
|
677
|
+
userid: Vue.user.id
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
let res = await this.$resetpost(
|
|
681
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
682
|
+
{data: data},
|
|
683
|
+
{resolveMsg: null, rejectMsg: '检测单位人员查询失败!!!'}
|
|
684
|
+
)
|
|
685
|
+
|
|
686
|
+
let result = res.data.map(item => {
|
|
687
|
+
return {
|
|
688
|
+
label: item.name,
|
|
689
|
+
value: item.id
|
|
690
|
+
}
|
|
691
|
+
})
|
|
692
|
+
result.push({label:'无',value:'无'})
|
|
693
|
+
return result
|
|
694
|
+
},
|
|
695
|
+
// 获取气表品牌
|
|
696
|
+
async getMeterBrand() {
|
|
697
|
+
let data = {}
|
|
698
|
+
|
|
699
|
+
let http = new HttpResetClass()
|
|
700
|
+
let res = await http.load(
|
|
701
|
+
'POST',
|
|
702
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/getMeterBrand`,
|
|
703
|
+
{data: data},
|
|
704
|
+
{resolveMsg: null, rejectMsg: '气表品牌查询失败!!!'}
|
|
705
|
+
)
|
|
706
|
+
|
|
707
|
+
return res.data
|
|
708
|
+
},
|
|
709
|
+
// 获取小区
|
|
710
|
+
async getResidentialArea() {
|
|
711
|
+
let data = {
|
|
712
|
+
tablename: 't_area_address',
|
|
713
|
+
condition: `f_filiale = '${Vue.user.f_fengongsi}' and f_area_status = '启用'`
|
|
714
|
+
}
|
|
715
|
+
let http = new HttpResetClass()
|
|
716
|
+
let res = await http.load(
|
|
717
|
+
'POST',
|
|
718
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`,
|
|
719
|
+
{data: data},
|
|
720
|
+
{resolveMsg: null, rejectMsg: '小区查询失败!!!'}
|
|
721
|
+
)
|
|
722
|
+
return res.data.map(item => {
|
|
723
|
+
return {
|
|
724
|
+
label: item.f_residential_area,
|
|
725
|
+
value: item.id
|
|
726
|
+
}
|
|
727
|
+
})
|
|
728
|
+
},
|
|
729
|
+
//现场勘察
|
|
730
|
+
async prospectingBefore() {
|
|
731
|
+
let data = {
|
|
732
|
+
tablename: 't_files',
|
|
733
|
+
condition: `f_blobid = '${this.selectdata.f_process_id}' and defname = '现场勘察' and fremarks = '报装手机签字文件'`
|
|
734
|
+
}
|
|
735
|
+
let http = new HttpResetClass()
|
|
736
|
+
let res = await http.load(
|
|
737
|
+
'POST',
|
|
738
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`,
|
|
739
|
+
{data: data},
|
|
740
|
+
{resolveMsg: null, rejectMsg: null}
|
|
741
|
+
)
|
|
742
|
+
if (res.data.length <= 0) {
|
|
743
|
+
this.$showAlert('现场勘察未签字,无法提交!!!', 'warning', 3000)
|
|
744
|
+
throw '现场勘察未签字,无法提交!'
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
// 施工前置
|
|
748
|
+
async constructionBefore() {
|
|
749
|
+
await this.userSignBefore()
|
|
750
|
+
if (this.show_data.f_apply_nature !== '分户挂表') {
|
|
751
|
+
let http = new HttpResetClass()
|
|
752
|
+
let data = {
|
|
753
|
+
condition: `ui.f_process_id = '${this.show_data.f_process_id}' and f_meternumber is null and f_gasbrand_id is not null `
|
|
754
|
+
}
|
|
755
|
+
let res = await http.load(
|
|
756
|
+
'POST',
|
|
757
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/countApplyUserinfo`,
|
|
758
|
+
{data: data},
|
|
759
|
+
{
|
|
760
|
+
resolveMsg: null,
|
|
761
|
+
rejectMsg: '安装明细查询失败!!!'
|
|
762
|
+
})
|
|
763
|
+
if (res.data[0].num > 0) {
|
|
764
|
+
this.$showAlert(`还有${res.data[0].num}户未表号未录入,无法提交`, 'warning', 3000)
|
|
765
|
+
throw `还有${res.data[0].num}户未表号未录入,无法提交`
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
async userSignBefore() {
|
|
770
|
+
let http = new HttpResetClass()
|
|
771
|
+
let data = {
|
|
772
|
+
tablename: 't_files',
|
|
773
|
+
condition: `f_blobid = '${this.selectdata.f_process_id}' and defname = '${this.selectdata.defname}' and fremarks = '报装手机签字文件'`
|
|
774
|
+
}
|
|
775
|
+
let res = await http.load(
|
|
776
|
+
'POST',
|
|
777
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`,
|
|
778
|
+
{data: data},
|
|
779
|
+
{resolveMsg: null, rejectMsg: null}
|
|
780
|
+
)
|
|
781
|
+
if (res.data.length <= 0) {
|
|
782
|
+
this.$showAlert('用户未签字,无法生成签字流程!!!', 'warning', 3000)
|
|
783
|
+
throw '用户未签字,无法生成签字流程!'
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
signBefore() {
|
|
787
|
+
if (this.show_data.defname === '检测单位签字') {
|
|
788
|
+
if (isEmpty(this.show_data.f_check_sign)) {
|
|
789
|
+
this.$showAlert(`签字后才可提交!!!`, 'warning', 3000)
|
|
790
|
+
throw `签字后才可提交!!!`
|
|
791
|
+
}
|
|
792
|
+
this.show_data.f_check_operator = Vue.user.name
|
|
793
|
+
this.show_data.f_check_date = new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
794
|
+
this.show_data.employeetemplate = this.show_data.f_build_operator_id
|
|
795
|
+
}
|
|
796
|
+
if (this.show_data.defname === '安装单位签字') {
|
|
797
|
+
if (isEmpty(this.show_data.f_build_sign)) {
|
|
798
|
+
this.$showAlert(`签字后才可提交!!!`, 'warning', 3000)
|
|
799
|
+
throw `签字后才可提交!!!`
|
|
800
|
+
}
|
|
801
|
+
this.show_data.f_build_operator = Vue.user.name
|
|
802
|
+
this.show_data.f_build_date = new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
803
|
+
this.show_data.employeetemplate = this.show_data.f_engineering_operator_id
|
|
804
|
+
if (this.show_data.f_engineering_operator_id === '用户自理' || this.show_data.f_engineering_operator_id === '无') {
|
|
805
|
+
this.show_data.f_engineering_operator = this.show_data.f_engineering_operator_id
|
|
806
|
+
this.show_data.f_engineering_date = new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
807
|
+
this.show_data.employeetemplate = this.show_data.f_supervisor_operator_id
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
if (this.show_data.defname === '土建单位签字') {
|
|
811
|
+
if (isEmpty(this.show_data.f_engineering_sign)) {
|
|
812
|
+
this.$showAlert(`签字后才可提交!!!`, 'warning', 3000)
|
|
813
|
+
throw `签字后才可提交!!!`
|
|
814
|
+
}
|
|
815
|
+
this.show_data.f_engineering_operator = Vue.user.name
|
|
816
|
+
this.show_data.f_engineering_date = new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
817
|
+
this.show_data.employeetemplate = this.show_data.f_supervisor_operator_id
|
|
818
|
+
}
|
|
819
|
+
if (this.show_data.defname === '监理单位签字') {
|
|
820
|
+
if (isEmpty(this.show_data.f_supervisor_sign)) {
|
|
821
|
+
this.$showAlert(`签字后才可提交!!!`, 'warning', 3000)
|
|
822
|
+
throw `签字后才可提交!!!`
|
|
823
|
+
}
|
|
824
|
+
this.show_data.f_supervisor_operator = Vue.user.name
|
|
825
|
+
this.show_data.f_supervisor_date = new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
826
|
+
this.show_data.employeetemplate = this.show_data.f_construct_operator_id
|
|
827
|
+
}
|
|
828
|
+
if (this.show_data.defname === '建设单位签字') {
|
|
829
|
+
if (isEmpty(this.show_data.f_construct_sign)) {
|
|
830
|
+
this.$showAlert(`签字后才可提交!!!`, 'warning', 3000)
|
|
831
|
+
throw `签字后才可提交!!!`
|
|
832
|
+
}
|
|
833
|
+
this.show_data.f_construct_operator = Vue.user.name
|
|
834
|
+
this.show_data.f_construct_date = new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
//分户挂表生成安检单
|
|
838
|
+
async getChecklist() {
|
|
839
|
+
let http = new HttpResetClass()
|
|
840
|
+
let data = {
|
|
841
|
+
f_process_id: this.selectdata.f_process_id,
|
|
842
|
+
f_userinfo_id: this.selectdata.f_userinfo_id,
|
|
843
|
+
user: Vue.user
|
|
844
|
+
}
|
|
845
|
+
let res = await http.load(
|
|
846
|
+
'POST',
|
|
847
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/getChecklist`,
|
|
848
|
+
{data: data},
|
|
849
|
+
{resolveMsg: null, rejectMsg: null}
|
|
850
|
+
)
|
|
851
|
+
},
|
|
852
|
+
//工商户验证表具类型是否需选择
|
|
853
|
+
async meterBrandCheck() {
|
|
854
|
+
let data = {
|
|
855
|
+
f_process_id: this.selectdata.f_process_id,
|
|
856
|
+
orgid:Vue.user.orgid
|
|
857
|
+
}
|
|
858
|
+
let http = new HttpResetClass()
|
|
859
|
+
let res = await http.load(
|
|
860
|
+
'POST',
|
|
861
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/meterCheck`,
|
|
862
|
+
{data: data},
|
|
863
|
+
{resolveMsg: null, rejectMsg: null}
|
|
864
|
+
)
|
|
865
|
+
if (res.data[0].num > 0){
|
|
866
|
+
this.$showAlert(`还有${res.data[0].num}处未选择表具,请选择后提交!`, 'warning', 3000)
|
|
867
|
+
throw null
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
// 安装户数
|
|
871
|
+
async installCountCheck() {
|
|
872
|
+
let data = {
|
|
873
|
+
tablename: 't_userinfo',
|
|
874
|
+
condition: `f_process_id = '${this.show_data.f_process_id}' and f_user_state != '销户'`,
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
let http = new HttpResetClass()
|
|
878
|
+
let res = await http.load(
|
|
879
|
+
'POST',
|
|
880
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`,
|
|
881
|
+
{data: data},
|
|
882
|
+
{resolveMsg: null, rejectMsg: '用户数量查询失败'}
|
|
883
|
+
)
|
|
884
|
+
this.setLabelValue('安装户数',res.data.length)
|
|
885
|
+
},
|
|
886
|
+
async stopApply () {
|
|
887
|
+
console.log('终止报建!!!!!')
|
|
888
|
+
|
|
889
|
+
if (this.show_data.defname === '报建受理') {
|
|
890
|
+
this.show_data.f_stop_reason = this.show_data.f_accept_result
|
|
891
|
+
}
|
|
892
|
+
if (this.show_data.defname === '现场勘察') {
|
|
893
|
+
this.show_data.f_stop_reason = this.show_data.f_prospecting_result
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
let data = {
|
|
897
|
+
apply: this.show_data,
|
|
898
|
+
user: Vue.user
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
let res = await this.$resetpost(
|
|
902
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/stopApply`,
|
|
903
|
+
{data: data},
|
|
904
|
+
{resolveMsg: null, rejectMsg: '终止报建失败!!!'}
|
|
905
|
+
)
|
|
906
|
+
|
|
907
|
+
this.$dispatch('loadPage')
|
|
908
|
+
|
|
909
|
+
throw '终止报建!!!'
|
|
910
|
+
},
|
|
911
|
+
// 户内出单日期
|
|
912
|
+
getOutdoorsTime () {
|
|
913
|
+
for (const item of this.selectdata.fields) {
|
|
914
|
+
console.log('是否进入')
|
|
915
|
+
if (item.label === '户内出单日期') {
|
|
916
|
+
item.value = this.selectdata.f_release_date
|
|
917
|
+
this.selectdata[item.field] = item.value
|
|
918
|
+
console.log('当前出单时间',item.value)
|
|
919
|
+
}else if(item.label === '庭院出单日期'){
|
|
920
|
+
item.value = this.selectdata.f_release_date
|
|
921
|
+
this.selectdata[item.field] = item.value
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
//获取缴费日期
|
|
926
|
+
async getChargeDate() {
|
|
927
|
+
let data = {
|
|
928
|
+
tablename: 'activityins',
|
|
929
|
+
condition: `processid = '${this.selectdata.f_process_id}' and defname = '报装缴费'`,
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
let http = new HttpResetClass()
|
|
933
|
+
let res = await http.load(
|
|
934
|
+
'POST',
|
|
935
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`,
|
|
936
|
+
{data: data},
|
|
937
|
+
{resolveMsg: null, rejectMsg: null}
|
|
938
|
+
)
|
|
939
|
+
for (const item of this.selectdata.fields) {
|
|
940
|
+
if (item.label === '缴费日期') {
|
|
941
|
+
item.value = res.data[0].finishtime
|
|
942
|
+
this.selectdata[item.field] = item.value
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
async getSingAct() {
|
|
947
|
+
let data = {
|
|
948
|
+
f_process_id: this.selectdata.f_process_id
|
|
949
|
+
}
|
|
950
|
+
let http = new HttpResetClass()
|
|
951
|
+
let res = await http.load(
|
|
952
|
+
'POST',
|
|
953
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/getSingAct`,
|
|
954
|
+
{data: data},
|
|
955
|
+
{resolveMsg: null, rejectMsg: '签字状态查询失败!!!'}
|
|
956
|
+
)
|
|
957
|
+
if (res.data.length > 0) {
|
|
958
|
+
for (const item of this.selectdata.fields) {
|
|
959
|
+
if (item.label === '签字所在环节') {
|
|
960
|
+
item.value = res.data[0].defname
|
|
961
|
+
this.selectdata[item.field] = item.value
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
getYiFang() {
|
|
967
|
+
return [{label: '榆林榆川天然气', value: '榆林榆川天然气'},
|
|
968
|
+
{label: this.selectdata.f_user_name, value: this.selectdata.f_user_name},
|
|
969
|
+
{label: '无', value: '无'}]
|
|
970
|
+
},
|
|
971
|
+
async repair() {
|
|
972
|
+
let data = {
|
|
973
|
+
f_process_id: this.show_data.f_process_id
|
|
974
|
+
}
|
|
975
|
+
let http = new HttpResetClass()
|
|
976
|
+
let res = await http.load(
|
|
977
|
+
'POST',
|
|
978
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/updateRepair`,
|
|
979
|
+
{data: data},
|
|
980
|
+
{resolveMsg: null, rejectMsg: '维修工单状态修改!!!'}
|
|
981
|
+
)
|
|
982
|
+
this.$dispatch('loadPage')
|
|
983
|
+
throw ''
|
|
984
|
+
},
|
|
985
|
+
changeDispatch(value){
|
|
986
|
+
if (value === '维修安检中心'){
|
|
987
|
+
this.hideLabels('现场项目负责人', '安装单位', '建设单位', '监理单位', '土建单位', '检测单位', '户内出单日期', '户内回单日期'
|
|
988
|
+
, '户内施工备注', '庭院出单日期', '庭院回单日期', '庭院施工备注', '是否发起签字', '签字是否完成', '签字所在环节')
|
|
989
|
+
this.hideButtons('签字')
|
|
990
|
+
this.electiveLabels('现场项目负责人', '安装单位', '建设单位', '监理单位', '土建单位', '检测单位', '户内出单日期', '户内回单日期'
|
|
991
|
+
, '户内施工备注', '庭院出单日期', '庭院回单日期', '庭院施工备注', '是否发起签字', '签字是否完成', '签字所在环节')
|
|
992
|
+
}
|
|
993
|
+
if (value === '施工工队'){
|
|
994
|
+
this.showLabels('现场项目负责人', '安装单位', '建设单位', '监理单位', '土建单位', '检测单位', '户内出单日期', '户内回单日期'
|
|
995
|
+
, '户内施工备注', '庭院出单日期', '庭院回单日期', '庭院施工备注', '是否发起签字', '签字是否完成', '签字所在环节')
|
|
996
|
+
this.requiredLabels('现场项目负责人', '安装单位', '建设单位', '监理单位', '土建单位', '检测单位', '现场项目负责人', '是否发起签字', '签字是否完成', '签字所在环节')
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
geIsOpen(){
|
|
1000
|
+
this.isOpen = false
|
|
1001
|
+
}
|
|
1002
|
+
},
|
|
1003
|
+
events: {
|
|
1004
|
+
// 强制开关阀
|
|
1005
|
+
async 'onOffValve'() {
|
|
1006
|
+
let data = {
|
|
1007
|
+
condition: `ui.f_userinfo_id = '${this.show_data.f_userinfo_id}'`
|
|
1008
|
+
}
|
|
1009
|
+
let http = new HttpResetClass()
|
|
1010
|
+
let res = await http.load(
|
|
1011
|
+
'POST',
|
|
1012
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyUserinfo`,
|
|
1013
|
+
{data: data},
|
|
1014
|
+
{resolveMsg: null, rejectMsg: '档案获取失败!!!'}
|
|
1015
|
+
)
|
|
1016
|
+
|
|
1017
|
+
let userinfo = res.data[0]
|
|
1018
|
+
|
|
1019
|
+
data = {
|
|
1020
|
+
condition: `t_userfiles.f_meternumber = '${userinfo.f_meternumber}'`,
|
|
1021
|
+
contentData: {
|
|
1022
|
+
isOpen: this.show_data.button.button_name === '强制开阀' ? 1 : 0
|
|
1023
|
+
},
|
|
1024
|
+
inputtor: Vue.user.name,
|
|
1025
|
+
instructTitle: this.show_data.button.button_name === '强制开阀' ? '开阀' : '关阀',
|
|
1026
|
+
instructType: '阀门控制',
|
|
1027
|
+
meterBrandName: userinfo.f_alias
|
|
1028
|
+
}
|
|
1029
|
+
res = await http.load(
|
|
1030
|
+
'POST',
|
|
1031
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/saveInstruct`,
|
|
1032
|
+
{data: data},
|
|
1033
|
+
{resolveMsg: null, rejectMsg: `${this.show_data.button.button_name}失败!!!`}
|
|
1034
|
+
)
|
|
1035
|
+
|
|
1036
|
+
data = {
|
|
1037
|
+
f_user_id: userinfo.f_user_id,
|
|
1038
|
+
f_userinfo_id: userinfo.f_userinfo_id,
|
|
1039
|
+
record: {
|
|
1040
|
+
f_filiale: Vue.user.f_fengongsi,
|
|
1041
|
+
f_instruct_meta_data: this.show_data.button.button_name === '退出强制状态' ? '退出强制阀控' : '进入强制阀控',
|
|
1042
|
+
f_instruct_title: this.show_data.button.button_name === '退出强制状态' ? '退出强制阀控' : '进入强制阀控',
|
|
1043
|
+
f_instruct_type: '阀门控制',
|
|
1044
|
+
f_meternumber: userinfo.f_meternumber,
|
|
1045
|
+
f_operator: Vue.user.name,
|
|
1046
|
+
f_outlets: userinfo.f_outlets,
|
|
1047
|
+
f_reason: this.show_data.button.f_reason,
|
|
1048
|
+
f_user_id: userinfo.f_user_id,
|
|
1049
|
+
f_userinfo_id: userinfo.f_userinfo_id
|
|
1050
|
+
},
|
|
1051
|
+
state: this.show_data.button.button_name === '退出强制状态' ? 0 : 1,
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
res = await http.load(
|
|
1055
|
+
'POST',
|
|
1056
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/updateNetWorkValve`,
|
|
1057
|
+
{data: data},
|
|
1058
|
+
{resolveMsg: '执行成功!!!', rejectMsg: `执行失败!!!`}
|
|
1059
|
+
)
|
|
1060
|
+
|
|
1061
|
+
},
|
|
1062
|
+
// 修改用户档案
|
|
1063
|
+
async 'updateUserinfoState'() {
|
|
1064
|
+
let data = {
|
|
1065
|
+
f_userinfo_id: this.show_data.f_userinfo_id
|
|
1066
|
+
}
|
|
1067
|
+
let http = new HttpResetClass()
|
|
1068
|
+
let res = await http.load(
|
|
1069
|
+
'POST',
|
|
1070
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/updateUserinfoState`,
|
|
1071
|
+
{data: data},
|
|
1072
|
+
{resolveMsg: '该用户档案已为正常档案,可进行开关阀操作!!!', rejectMsg: '档案状态修改失败!!!'}
|
|
1073
|
+
)
|
|
1074
|
+
|
|
1075
|
+
this.showButtons('退出强制状态', '强制关阀')
|
|
1076
|
+
this.hideButtons('转正式档案')
|
|
1077
|
+
},
|
|
1078
|
+
async 'startSignActivity'() {
|
|
1079
|
+
this.hideButtons('签字')
|
|
1080
|
+
await this.constructionBefore()
|
|
1081
|
+
|
|
1082
|
+
let data = {
|
|
1083
|
+
apply: this.show_data,
|
|
1084
|
+
user: Vue.user
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
let res = await this.$resetpost(
|
|
1088
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/startSignActivity`,
|
|
1089
|
+
{data: data},
|
|
1090
|
+
{resolveMsg: '签字流程已发起!!!', rejectMsg: '签字发起失败!!!'}
|
|
1091
|
+
)
|
|
1092
|
+
|
|
1093
|
+
this.breakControl()
|
|
1094
|
+
},
|
|
1095
|
+
// 工程施工初始化
|
|
1096
|
+
async 'buildReadyEvent'() {
|
|
1097
|
+
if (this.getLableValue('是否发起签字') === '是') {
|
|
1098
|
+
this.hideButtons('签字')
|
|
1099
|
+
}
|
|
1100
|
+
let http = new HttpResetClass()
|
|
1101
|
+
console.log("当前流程",this.show_data.f_apply_type)
|
|
1102
|
+
if (isEmpty(this.show_data.f_meter_brand)) {
|
|
1103
|
+
return
|
|
1104
|
+
}else {
|
|
1105
|
+
if (this.show_data.f_meter_brand === 'null') {
|
|
1106
|
+
this.setLabelOptions('气表型号', [{label: '无', value: 'null'}])
|
|
1107
|
+
return
|
|
1108
|
+
}
|
|
1109
|
+
data = {
|
|
1110
|
+
f_gasbrand_id: this.show_data.f_meter_brand
|
|
1111
|
+
}
|
|
1112
|
+
let res = await http.load(
|
|
1113
|
+
'POST',
|
|
1114
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/getGasModel`,
|
|
1115
|
+
{data: data},
|
|
1116
|
+
{resolveMsg: null, rejectMsg: '气表型号查询失败!!!'}
|
|
1117
|
+
)
|
|
1118
|
+
this.setLabelOptions('气表型号', res.data)
|
|
1119
|
+
}
|
|
1120
|
+
if (this.show_data.f_apply_type === '分户挂表') {
|
|
1121
|
+
let data = {
|
|
1122
|
+
condition: `ui.f_userinfo_id = '${this.show_data.f_userinfo_id}'`
|
|
1123
|
+
}
|
|
1124
|
+
let http = new HttpResetClass()
|
|
1125
|
+
let res = await http.load(
|
|
1126
|
+
'POST',
|
|
1127
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyUserinfo`,
|
|
1128
|
+
{data: data},
|
|
1129
|
+
{resolveMsg: null, rejectMsg: '档案状态获取失败!!!'}
|
|
1130
|
+
)
|
|
1131
|
+
setTimeout(() => {
|
|
1132
|
+
if (res.data[0].f_meter_classify === '物联网表') {
|
|
1133
|
+
if (res.data[0].f_user_state === '正常') {
|
|
1134
|
+
this.showButtons('退出强制状态', '强制关阀')
|
|
1135
|
+
this.hideButtons('转正式档案')
|
|
1136
|
+
} else {
|
|
1137
|
+
this.showButtons('转正式档案')
|
|
1138
|
+
this.hideButtons('退出强制状态', '强制关阀')
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
}, 1000)
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
// 气表品牌失去焦点
|
|
1145
|
+
async 'meterBrandChenge' (index) {
|
|
1146
|
+
if (isEmpty(this.show_data.f_meter_brand)) {
|
|
1147
|
+
return
|
|
1148
|
+
}
|
|
1149
|
+
this.setLabelValue('气表型号', null)
|
|
1150
|
+
let data = {
|
|
1151
|
+
f_gasbrand_id: this.show_data.f_meter_brand
|
|
1152
|
+
}
|
|
1153
|
+
let http = new HttpResetClass()
|
|
1154
|
+
let res = await http.load(
|
|
1155
|
+
'POST',
|
|
1156
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/getGasModel`,
|
|
1157
|
+
{data: data},
|
|
1158
|
+
{resolveMsg: null, rejectMsg: '气表型号查询失败!!!'}
|
|
1159
|
+
)
|
|
1160
|
+
|
|
1161
|
+
this.setLabelOptions('气表型号', res.data)
|
|
1162
|
+
},
|
|
1163
|
+
// 安装户数失去焦点
|
|
1164
|
+
'installCountChange'(index) {
|
|
1165
|
+
if (isEmpty(this.show_data.f_install_count)) {
|
|
1166
|
+
return
|
|
1167
|
+
}
|
|
1168
|
+
if (Number(this.show_data.f_install_count) > Number(this.show_data.f_apply_count)) {
|
|
1169
|
+
this.$showAlert('安装数已超过申请数!!!', 'warning', 3000)
|
|
1170
|
+
// this.setLabelValue('安装户数', null)
|
|
1171
|
+
// this.setLabelValue('安装点数', null)
|
|
1172
|
+
// return
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
if (Number(this.show_data.f_install_count) <= 0) {
|
|
1176
|
+
this.$showAlert('至少有一个用户!!!', 'warning', 3000)
|
|
1177
|
+
this.setLabelValue('安装户数', null)
|
|
1178
|
+
this.setLabelValue('安装点数', null)
|
|
1179
|
+
return
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
'complyInstallation'(index) {
|
|
1183
|
+
if (this.show_data.defname === '报建受理'){
|
|
1184
|
+
if (this.show_data.f_accept_install === '否') {
|
|
1185
|
+
console.log("测试")
|
|
1186
|
+
this.hideButtons('下发','提交')
|
|
1187
|
+
this.showButtons('终止')
|
|
1188
|
+
} else {
|
|
1189
|
+
this.hideButtons('终止')
|
|
1190
|
+
this.showButtons('下发','提交')
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
if (this.show_data.defname === '现场勘察'){
|
|
1194
|
+
if (this.show_data.f_survey_opinion === '否') {
|
|
1195
|
+
console.log("测试")
|
|
1196
|
+
this.hideButtons('下发','提交')
|
|
1197
|
+
this.showButtons('终止')
|
|
1198
|
+
} else {
|
|
1199
|
+
this.hideButtons('终止')
|
|
1200
|
+
this.showButtons('下发','提交')
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
if (this.show_data.defname === '报建受理' || this.show_data.defname === '现场勘察'){
|
|
1204
|
+
this.installCountCheck()
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
//搜索小区
|
|
1208
|
+
'selectArea' (val,index) {
|
|
1209
|
+
let pcdText = `and f_residential_area like '%${val}%'`
|
|
1210
|
+
let data = {
|
|
1211
|
+
tablename: 't_area_address',
|
|
1212
|
+
condition: `f_filiale = '${Vue.user.f_fengongsi}' and f_area_status = '启用' ${pcdText}`
|
|
1213
|
+
}
|
|
1214
|
+
new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`, {data:data}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
|
|
1215
|
+
console.log('请求发送完成!!!!!'+JSON.stringify(res))
|
|
1216
|
+
if(res.data.length>0){
|
|
1217
|
+
this.setLabelOptions('小区/巷道', res.data.map(item => {
|
|
1218
|
+
return {
|
|
1219
|
+
label: item.f_residential_area,
|
|
1220
|
+
value: item.id
|
|
1221
|
+
}
|
|
1222
|
+
}))
|
|
1223
|
+
}
|
|
1224
|
+
})
|
|
1225
|
+
},
|
|
1226
|
+
'changeDispatching'(index){
|
|
1227
|
+
if (this.show_data.fields[index].value === '安检维修中心'){
|
|
1228
|
+
this.hideLabels('现场项目负责人', '安装单位', '建设单位', '监理单位', '土建单位', '检测单位')
|
|
1229
|
+
this.electiveLabels('现场项目负责人', '安装单位', '建设单位', '监理单位', '土建单位', '检测单位')
|
|
1230
|
+
}else if (this.show_data.fields[index].value === '施工工队'){
|
|
1231
|
+
this.showLabels('现场项目负责人', '安装单位', '建设单位', '监理单位', '土建单位', '检测单位')
|
|
1232
|
+
this.requiredLabels('现场项目负责人', '安装单位', '建设单位', '监理单位', '土建单位', '检测单位')
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1235
|
+
'getRefund'(index){
|
|
1236
|
+
if (this.show_data.fields[index].value === '否'){
|
|
1237
|
+
this.hideLabels('退费金额', '退款项')
|
|
1238
|
+
this.electiveLabels('退费金额', '退款项')
|
|
1239
|
+
}else if (this.show_data.fields[index].value === '是'){
|
|
1240
|
+
this.showLabels('退费金额', '退款项')
|
|
1241
|
+
this.requiredLabels('退费金额', '退款项')
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
'hasTrouble'(index) {
|
|
1245
|
+
if (this.show_data.fields[index].value === '有纠纷'){
|
|
1246
|
+
this.hideButtons('提交', '签字', '图纸变更')
|
|
1247
|
+
this.showLabels('纠纷原因')
|
|
1248
|
+
}else {
|
|
1249
|
+
this.showButtons('提交', '签字', '图纸变更')
|
|
1250
|
+
this.hideLabels('纠纷原因')
|
|
1251
|
+
}
|
|
1252
|
+
},
|
|
1253
|
+
// ===========================================
|
|
1254
|
+
'initializtionView'() {
|
|
1255
|
+
if (this.show_data.f_apply_type === '民用报建' && this.show_data.f_apply_nature === '散户') {
|
|
1256
|
+
this.hideLabels('营业执照', '小区/巷道')
|
|
1257
|
+
this.electiveLabels('营业执照', '购货单位识别号', '购货单位银行账号', '购货单位地址电话', '小区/巷道')
|
|
1258
|
+
}
|
|
1259
|
+
if (this.show_data.f_apply_type === '民用报建' && this.show_data.f_apply_nature === '小区') {
|
|
1260
|
+
this.showLabels('营业执照', '小区/巷道', '小区名称')
|
|
1261
|
+
this.requiredLabels( '小区/巷道')
|
|
1262
|
+
this.hideComponents('用户花名单')
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
1265
|
+
'breakControl'() {
|
|
1266
|
+
this.breakControl()
|
|
1267
|
+
},
|
|
1268
|
+
// 检查重复
|
|
1269
|
+
'checkRepeat'(index) {
|
|
1270
|
+
this.checkDuplicate(index)
|
|
1271
|
+
},
|
|
1272
|
+
async 'button'() {
|
|
1273
|
+
if (this.show_data.button.before) {
|
|
1274
|
+
await this[this.show_data.button.before]()
|
|
1275
|
+
}
|
|
1276
|
+
// 点击重置按钮就重置数据
|
|
1277
|
+
if (this.show_data.button.button_name === '重置') {
|
|
1278
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
1279
|
+
return
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
this.show_data.start_activity = this.json_datas.start_activity
|
|
1283
|
+
this.show_data.xmlfilename = this.json_datas.workflow_xmlfilename
|
|
1284
|
+
|
|
1285
|
+
let data = {
|
|
1286
|
+
apply: this.show_data,
|
|
1287
|
+
user: Vue.user
|
|
1288
|
+
}
|
|
1289
|
+
console.log("当前提交数据",this.show_data)
|
|
1290
|
+
let res = await this.$resetpost(
|
|
1291
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyProductService`,
|
|
1292
|
+
{data: data},
|
|
1293
|
+
{resolveMsg: null, rejectMsg: '数据保存失败'}
|
|
1294
|
+
)
|
|
1295
|
+
|
|
1296
|
+
if (this.show_data.button.after) {
|
|
1297
|
+
this[this.show_data.button.after]()
|
|
1298
|
+
}
|
|
1299
|
+
// 返回上层
|
|
1300
|
+
this.$dispatch('confirm')
|
|
1301
|
+
},
|
|
1302
|
+
'locationclick' (res) {
|
|
1303
|
+
console.log('/*/*/*/*/*/*/*/*/*/*/*/*/*/**/*/*/*/*')
|
|
1304
|
+
if (res.pname){
|
|
1305
|
+
this.setLabelValue('定位地址', res.pname + res.cityname + res.adname + res.address + res.name)
|
|
1306
|
+
}else {
|
|
1307
|
+
this.setLabelValue('定位地址', res.province + res.city + res.address + res.name)
|
|
1308
|
+
}
|
|
1309
|
+
this.show_data.f_lng = res.location.lng
|
|
1310
|
+
this.show_data.f_lat = res.location.lat
|
|
1311
|
+
this.isOpen = !this.isOpen
|
|
1312
|
+
},
|
|
1313
|
+
selectSearch (val, index) {},
|
|
1314
|
+
// 失去焦点出触发事件
|
|
1315
|
+
'onchange'(index) {
|
|
1316
|
+
},
|
|
1317
|
+
'onblur'(index) {
|
|
1318
|
+
},
|
|
1319
|
+
'oninput'(index) {
|
|
1320
|
+
},
|
|
1321
|
+
async 'onchangeModal'(index, fieldIndex) {
|
|
1322
|
+
},
|
|
1323
|
+
async 'onblurModal'(index, fieldIndex) {
|
|
1324
|
+
|
|
1325
|
+
},
|
|
1326
|
+
async 'oninputModal'(index, fieldIndex) {
|
|
1327
|
+
|
|
1328
|
+
},
|
|
1329
|
+
async 'onetomanydelete'(index, rowIndex) {
|
|
1330
|
+
|
|
1331
|
+
let http = new HttpResetClass()
|
|
1332
|
+
|
|
1333
|
+
let res = await http.load(
|
|
1334
|
+
'DELETE',
|
|
1335
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
|
|
1336
|
+
null,
|
|
1337
|
+
{resolveMsg: null, rejectMsg: '删除失败!!!'}
|
|
1338
|
+
)
|
|
1339
|
+
res = await this.$resetpost(
|
|
1340
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1341
|
+
this.show_data
|
|
1342
|
+
)
|
|
1343
|
+
this.breakControl()
|
|
1344
|
+
},
|
|
1345
|
+
async 'onetomanyupdate'(index, rowIndex) {
|
|
1346
|
+
let data = this.show_data.onetomany[index].rows[rowIndex]
|
|
1347
|
+
|
|
1348
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
1349
|
+
data[item.field] = item.value
|
|
1350
|
+
})
|
|
1351
|
+
let res = await this.$resetpost(
|
|
1352
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
1353
|
+
data
|
|
1354
|
+
)
|
|
1355
|
+
res = await this.$resetpost(
|
|
1356
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1357
|
+
this.show_data
|
|
1358
|
+
)
|
|
1359
|
+
this.breakControl()
|
|
1360
|
+
},
|
|
1361
|
+
async 'onetomanyadd'(index) {
|
|
1362
|
+
let data = {
|
|
1363
|
+
f_process_id: this.show_data.f_process_id,
|
|
1364
|
+
f_operator_id: Vue.user.id,
|
|
1365
|
+
f_operator: Vue.user.name,
|
|
1366
|
+
f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
1367
|
+
f_orgid: Vue.user.orgid,
|
|
1368
|
+
f_orgname: Vue.user.orgs
|
|
1369
|
+
}
|
|
1370
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
1371
|
+
data[item.field] = item.value
|
|
1372
|
+
})
|
|
1373
|
+
let res = await this.$resetpost(
|
|
1374
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
1375
|
+
data
|
|
1376
|
+
)
|
|
1377
|
+
res = await this.$resetpost(
|
|
1378
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1379
|
+
this.show_data
|
|
1380
|
+
)
|
|
1381
|
+
this.breakControl()
|
|
1382
|
+
},
|
|
1383
|
+
'onbutchange'(index) {
|
|
1384
|
+
|
|
1385
|
+
},
|
|
1386
|
+
'onbutblur'(index) {
|
|
1387
|
+
|
|
1388
|
+
},
|
|
1389
|
+
'onbutinput'(index) {
|
|
1390
|
+
|
|
1391
|
+
}
|
|
1392
|
+
},
|
|
1393
|
+
watch: {}
|
|
1394
|
+
}
|
|
1395
|
+
</script>
|
|
1396
|
+
<style scoped>
|
|
1397
|
+
</style>
|