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