apply-clients 7.1.33 → 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 +33 -30
- 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 +31 -15
- 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 +131 -147
- package/src/components/product/Function/InstallInfoSelect.vue +294 -281
- 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 +281 -254
- package/src/components/product/Process/ExplorationUser.vue +151 -134
- 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 +616 -277
- 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 +207 -249
- package/src/components/product/Process/Processes/chargeManagement.vue +331 -347
- 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 +1314 -753
- 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/NewSupervisoryhCart.vue +167 -0
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +231 -199
- package/src/components/product/Supervisory/SupervisoryControl.vue +110 -121
- package/src/components/product/Supervisory/SupervisoryList.vue +98 -48
- package/src/components/product/Supervisory/SupervisoryhCart.vue +119 -103
- 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
|
@@ -0,0 +1,568 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="form-horizontal select-overspread">
|
|
3
|
+
<div v-for="(index,item) in data.fields">
|
|
4
|
+
<!--input-->
|
|
5
|
+
<div :style="item.style ? item.style : ''"
|
|
6
|
+
v-if="(item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email') && !item.hidden && (item.device === 'app' || !item.device)"
|
|
7
|
+
:class="[item.required && !(item.value) ? 'apply-has-error' : '', item.bootstraped ? item.bootstraped + ' form-group app-input':'col-xs-12 form-group app-input']">
|
|
8
|
+
<label class="control-label-justify">{{item.label}}</label>
|
|
9
|
+
<div :style="item.value_style ? item.value_style:''"
|
|
10
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-xs-8'">
|
|
11
|
+
<input class="" style="width: 100%"
|
|
12
|
+
:type="item.type"
|
|
13
|
+
v-model="data.fields[index].value"
|
|
14
|
+
:placeholder="item.placeholder"
|
|
15
|
+
:value="data.fields[index].value"
|
|
16
|
+
:readonly="item.readonly"
|
|
17
|
+
:disabled="item.disabled"
|
|
18
|
+
@change="onchange(index)"
|
|
19
|
+
@blur="onblur(index)"
|
|
20
|
+
@input="oninput(index)"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<!--select-->
|
|
26
|
+
<div :style="item.style ? item.style : ''"
|
|
27
|
+
v-if="item.type==='select' && !item.hidden && (item.device === 'app' || !item.device)"
|
|
28
|
+
:class="[item.required && !(item.value) ? 'apply-has-error' : '', item.bootstraped ? item.bootstraped + ' form-group app-input':'col-xs-12 form-group app-input']">
|
|
29
|
+
<label class="control-label-justify">{{item.label}}</label>
|
|
30
|
+
<div :style="item.value_style ? item.value_style:''"
|
|
31
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-xs-8'">
|
|
32
|
+
<v-select
|
|
33
|
+
class="select" width="100%" align="right"
|
|
34
|
+
:placeholder="item.placeholder"
|
|
35
|
+
:search="item.search"
|
|
36
|
+
close-on-select value-single
|
|
37
|
+
:options="data.fields[index].options"
|
|
38
|
+
v-model="data.fields[index].value"
|
|
39
|
+
:value.sync="data.fields[index].value"
|
|
40
|
+
@blur="onblur(index)"
|
|
41
|
+
@change="onchange(index)"
|
|
42
|
+
:readonly="item.readonly"
|
|
43
|
+
:disabled="item.disabled"
|
|
44
|
+
></v-select>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<!--时间datepicker-->
|
|
49
|
+
<div :style="item.style ? item.style : ''"
|
|
50
|
+
v-if="item.type==='datepicker' && !item.hidden && (item.device === 'app' || !item.device)"
|
|
51
|
+
:class="[item.required && !(item.value) ? 'apply-has-error' : '', item.bootstraped ? item.bootstraped+' form-group app-input':'col-xs-12 form-group app-input']">
|
|
52
|
+
<label class="control-label-justify">{{item.label}}</label>
|
|
53
|
+
<div class="form-group" :style="item.value_style ? item.value_style:''"
|
|
54
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-xs-8'">
|
|
55
|
+
<datepicker
|
|
56
|
+
@change="onchange(index)"
|
|
57
|
+
@blur="onblur(index)"
|
|
58
|
+
:placeholder="item.placeholder"
|
|
59
|
+
:value.sync="data.fields[index].value"
|
|
60
|
+
:format="item.format ? item.format : 'yyyy-MM-dd'"
|
|
61
|
+
v-model="data.fields[index].value"
|
|
62
|
+
:readonly="item.readonly"
|
|
63
|
+
:disabled="item.disabled"
|
|
64
|
+
:show-reset-button="true">
|
|
65
|
+
</datepicker>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<!--textarea-->
|
|
70
|
+
<div :style="item.style ? item.style : ''"
|
|
71
|
+
v-if="item.type==='textarea' && !item.hidden && (item.device === 'app' || !item.device)"
|
|
72
|
+
:class="[item.required && !(item.value) ? 'apply-has-error' : '', item.bootstraped?item.bootstraped+' form-group app-input':'col-xs-12 form-group app-input']">
|
|
73
|
+
<label class="control-label-justify">{{item.label}}</label>
|
|
74
|
+
<div :style="item.value_style ? item.value_style:''"
|
|
75
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-xs-8'">
|
|
76
|
+
<textarea
|
|
77
|
+
:readonly="item.readonly"
|
|
78
|
+
:disabled="item.disabled"
|
|
79
|
+
class="" rows="1"
|
|
80
|
+
style="width: 100%;height: 100%"
|
|
81
|
+
v-model="data.fields[index].value"
|
|
82
|
+
:value="data.fields[index].value"
|
|
83
|
+
@change="onchange(index)"
|
|
84
|
+
@blur="onblur(index)"
|
|
85
|
+
@input="oninput(index)"
|
|
86
|
+
></textarea>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<!--checkbox-->
|
|
91
|
+
<div :style="item.style ? item.style : ''"
|
|
92
|
+
v-if="item.type==='checkbox' && !item.hidden && (item.device === 'app' || !item.device)"
|
|
93
|
+
:class="[item.required && item.value.length === 0 ? 'apply-has-error' : '',item.bootstraped?item.bootstraped+' form-group app-input':'col-xs-12 form-group app-input']">
|
|
94
|
+
<label class="control-label-justify">{{item.label}}</label>
|
|
95
|
+
<div :style="item.value_style ? item.value_style:''"
|
|
96
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-xs-8'">
|
|
97
|
+
<label class="" v-for="(index2,row) in item.options">
|
|
98
|
+
<input type="checkbox" class=""
|
|
99
|
+
:readonly="data.fields[index].readonly"
|
|
100
|
+
:disabled="data.fields[index].disabled"
|
|
101
|
+
v-model="data.fields[index].value"
|
|
102
|
+
:value="data.fields[index].options[index2].value"
|
|
103
|
+
@change="onchange(index)"
|
|
104
|
+
@blur="onblur(index)">
|
|
105
|
+
{{row.label}}
|
|
106
|
+
</label>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
<div class="col-sm-12 col-xs-12">
|
|
112
|
+
<accordion one-at-a-time="true">
|
|
113
|
+
<panel v-for="(i,item) in data.onetomany" :header="item.title" :is-open="false" type="primary" v-if="(item.device === 'app' || !item.device) && !item.hidden">
|
|
114
|
+
<app-onetomany :onetomany="item" :index="i"></app-onetomany>
|
|
115
|
+
</panel>
|
|
116
|
+
<panel v-for="(i,item) in data.components" :header="item.title" :is-open="false" type="primary" v-if="(item.device === 'app' || !item.device) && !item.hidden">
|
|
117
|
+
<component :is="item.name" :selectdata="data" :mark="item.mark" :title="item.title"></component>
|
|
118
|
+
</panel>
|
|
119
|
+
</accordion>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<!--自定义组件-->
|
|
123
|
+
<slot></slot>
|
|
124
|
+
|
|
125
|
+
<!-- 按钮组 -->
|
|
126
|
+
<div class="text-center">
|
|
127
|
+
<button v-for="(index,button) in data.buttons"
|
|
128
|
+
:disabled="button.disabled && disable_button"
|
|
129
|
+
style="min-width:100px"
|
|
130
|
+
:class="button.disabled && disable_button ? 'btn btn-default button_spacing' : 'btn btn-warning button_spacing'"
|
|
131
|
+
v-if="!button.hidden"
|
|
132
|
+
@click.prevent="click_but(button)"
|
|
133
|
+
>
|
|
134
|
+
{{button.button_name}}
|
|
135
|
+
</button>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
<!-- 按钮模态框 -->
|
|
139
|
+
<modal v-if="showButModal" :show.sync="showButModal" backdrop="false" large>
|
|
140
|
+
<header slot="modal-header" class="modal-header">
|
|
141
|
+
<button type="button" class="close" @click="closeModal()"><span>×</span></button>
|
|
142
|
+
<span class="modal-title"><font
|
|
143
|
+
size="3">{{data.button.button_name}}</font></span>
|
|
144
|
+
</header>
|
|
145
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
146
|
+
<div class="form-group" >
|
|
147
|
+
<div v-for="(index,item) in data.button.button_fields">
|
|
148
|
+
<div :style="item.style ? item.style : ''" :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group' : 'form-group']"
|
|
149
|
+
v-if="(item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email') && !item.hidden && (item.device === 'pc' || !item.device)">
|
|
150
|
+
<label :style="item.label_style ? item.label_style : ''"
|
|
151
|
+
:class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label'">{{item.label}}</label>
|
|
152
|
+
<div :style="item.value_style ? item.value_style : ''"
|
|
153
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-xs-8'">
|
|
154
|
+
<input class="form-control input_view"
|
|
155
|
+
:placeholder="item.placeholder"
|
|
156
|
+
:type="item.type"
|
|
157
|
+
v-model="item.value"
|
|
158
|
+
:value="item.value"
|
|
159
|
+
:readonly="item.readonly"
|
|
160
|
+
:disabled="item.disabled"
|
|
161
|
+
@change="onbutchange(index)"
|
|
162
|
+
@blur="onbutblur(index)"
|
|
163
|
+
@input="onbutinput(index)"
|
|
164
|
+
/>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
|
|
168
|
+
<!--时间datepicker-->
|
|
169
|
+
<div :style="item.style ? item.style : ''" :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group':'form-group']"
|
|
170
|
+
v-if="item.type==='datepicker' && !item.hidden && (item.device === 'pc' || !item.device)">
|
|
171
|
+
<label :style="item.label_style ? item.label_style : ''"
|
|
172
|
+
:class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label'">{{item.label}}</label>
|
|
173
|
+
<div :style="item.value_style ? item.value_style : ''"
|
|
174
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-xs-8'">
|
|
175
|
+
<datepicker
|
|
176
|
+
:placeholder="item.placeholder"
|
|
177
|
+
:value.sync="item.value"
|
|
178
|
+
v-model="item.value"
|
|
179
|
+
:readonly="item.readonly"
|
|
180
|
+
:disabled="item.disabled"
|
|
181
|
+
:format="item.format ? item.format : 'yyyy-MM-dd'"
|
|
182
|
+
:show-reset-button="true"
|
|
183
|
+
@change="onbutchange(index)"
|
|
184
|
+
@blur="onbutblur(index)"
|
|
185
|
+
></datepicker>
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
|
|
189
|
+
<!--select-->
|
|
190
|
+
<div :style="item.style ? item.style : ''" :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group':'form-group']"
|
|
191
|
+
v-if="item.type==='select' && !item.hidden && (item.device === 'pc' || !item.device)">
|
|
192
|
+
<label :style="item.label_style ? item.label_style : ''"
|
|
193
|
+
:class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label'">{{item.label}}</label>
|
|
194
|
+
<div :style="item.value_style ? item.value_style : ''"
|
|
195
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-xs-8'">
|
|
196
|
+
<input-select
|
|
197
|
+
class="select select_list"
|
|
198
|
+
:value.sync="item.value"
|
|
199
|
+
v-model="item.value"
|
|
200
|
+
:options='item.options'
|
|
201
|
+
:readonly="item.readonly"
|
|
202
|
+
:disable="item.disabled"
|
|
203
|
+
:valueSingle="true"
|
|
204
|
+
@blur="onbutblur(index)"
|
|
205
|
+
@change="onbutchange(index)"
|
|
206
|
+
></input-select>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
|
|
210
|
+
<!--textarea-->
|
|
211
|
+
<div :style="item.style ? item.style : ''" :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group':'form-group']"
|
|
212
|
+
v-if="item.type==='textarea' && !item.hidden && (item.device === 'pc' || !item.device)">
|
|
213
|
+
<label :style="item.label_style ? item.label_style : ''"
|
|
214
|
+
:class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label'">{{item.label}}</label>
|
|
215
|
+
<div :style="item.value_style ? item.value_style : ''"
|
|
216
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-xs-8'">
|
|
217
|
+
<textarea
|
|
218
|
+
class="form-control input_view"
|
|
219
|
+
style="width: 100%;height: 100%"
|
|
220
|
+
v-model="item.value"
|
|
221
|
+
:value="item.value"
|
|
222
|
+
:rows="item.rows"
|
|
223
|
+
:readonly="item.readonly"
|
|
224
|
+
:disabled="item.disabled"
|
|
225
|
+
@change="onbutchange(index)"
|
|
226
|
+
@blur="onbutblur(index)"
|
|
227
|
+
@input="onbutinput(index)"
|
|
228
|
+
></textarea>
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
</article>
|
|
234
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
235
|
+
<button :class="disable_modal_button ? 'btn btn-default':'btn btn-primary'"
|
|
236
|
+
:disabled="disable_modal_button" type="button" @click="confirmModal()">
|
|
237
|
+
确认
|
|
238
|
+
</button>
|
|
239
|
+
</footer>
|
|
240
|
+
</modal>
|
|
241
|
+
</div>
|
|
242
|
+
</template>
|
|
243
|
+
<script>
|
|
244
|
+
import Vue from 'vue'
|
|
245
|
+
import {isEmpty} from "../Util";
|
|
246
|
+
// Date格式化
|
|
247
|
+
Date.prototype.Format = function (fmt) {
|
|
248
|
+
var o = {
|
|
249
|
+
'M+': this.getMonth() + 1, // 月份
|
|
250
|
+
'd+': this.getDate(), // 日
|
|
251
|
+
'H+': this.getHours(), // 小时
|
|
252
|
+
'm+': this.getMinutes(), // 分
|
|
253
|
+
's+': this.getSeconds(), // 秒
|
|
254
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
255
|
+
'S': this.getMilliseconds() // 毫秒
|
|
256
|
+
}
|
|
257
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
258
|
+
for (var k in o) {
|
|
259
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
260
|
+
}
|
|
261
|
+
return fmt
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export default {
|
|
265
|
+
title: '报建业务通用组件',
|
|
266
|
+
props: {
|
|
267
|
+
data: {
|
|
268
|
+
type: Object
|
|
269
|
+
},
|
|
270
|
+
showprint: {
|
|
271
|
+
type: Boolean,
|
|
272
|
+
default: true
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
data () {
|
|
276
|
+
return {
|
|
277
|
+
model: {}, // 公司等属性
|
|
278
|
+
disable_button: true, // 控制按钮禁用
|
|
279
|
+
disable_modal_button: true, // 控制按钮禁用
|
|
280
|
+
showButModal: false
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
watch: {
|
|
284
|
+
deep: true
|
|
285
|
+
},
|
|
286
|
+
computed: {
|
|
287
|
+
|
|
288
|
+
},
|
|
289
|
+
created () {
|
|
290
|
+
// 初始化数据
|
|
291
|
+
this.initializtion()
|
|
292
|
+
if (this.data.readyEvent) {
|
|
293
|
+
this.$dispatch(this.data.readyEvent)
|
|
294
|
+
}
|
|
295
|
+
this.$dispatch('initializtionView')
|
|
296
|
+
},
|
|
297
|
+
methods: {
|
|
298
|
+
// 初始化数据
|
|
299
|
+
initializtion () {
|
|
300
|
+
for (const item of this.data.fields) {
|
|
301
|
+
this.data[item.field] = item.value
|
|
302
|
+
}
|
|
303
|
+
setTimeout(() => {
|
|
304
|
+
// 是否禁用按钮
|
|
305
|
+
this.disableButton()
|
|
306
|
+
}, 2000)
|
|
307
|
+
},
|
|
308
|
+
// 是否禁用按钮
|
|
309
|
+
disableButton () {
|
|
310
|
+
let flag = false
|
|
311
|
+
|
|
312
|
+
for (const field of this.data.fields) {
|
|
313
|
+
if (field.required && !field.value && !field.hidden && field.value !== 0) {
|
|
314
|
+
flag = true
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// 任何选择框只要是否都不能提交
|
|
318
|
+
if (field.type === 'select' && field.value === '否' && field.value_no_disable) {
|
|
319
|
+
flag = true
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
if (field.type === 'checkbox' && field.required && field.value.length === 0) {
|
|
323
|
+
flag = true
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
this.disable_button = flag
|
|
328
|
+
},
|
|
329
|
+
// 失去焦点且值最终发生变化触发
|
|
330
|
+
async onchange (index) {
|
|
331
|
+
// 是否禁用按钮
|
|
332
|
+
this.disableButton()
|
|
333
|
+
|
|
334
|
+
if (!isEmpty(this.data.fields[index].value)) {
|
|
335
|
+
// 前缀、后缀
|
|
336
|
+
if (this.data.fields[index].prefix) {
|
|
337
|
+
this.data.fields[index].value = this.data.fields[index].prefix + this.data.fields[index].value
|
|
338
|
+
}
|
|
339
|
+
if (this.data.fields[index].suffix) {
|
|
340
|
+
this.data.fields[index].value = this.data.fields[index].value + this.data.fields[index].suffix
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// data赋值
|
|
345
|
+
this.data[this.data.fields[index].field] = this.data.fields[index].value
|
|
346
|
+
|
|
347
|
+
if (this.data.fields[index].type === 'datepicker') {
|
|
348
|
+
this.check_datepicker(index)
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
if (this.data.fields[index].onchange) {
|
|
352
|
+
this.$dispatch(this.data.fields[index].onchange, index)
|
|
353
|
+
}
|
|
354
|
+
this.$dispatch('onchange', index)
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
},
|
|
358
|
+
// 失去焦点触发,无论值是否发生变化
|
|
359
|
+
onblur (index) {
|
|
360
|
+
this.disableButton()
|
|
361
|
+
|
|
362
|
+
if (this.data.fields[index].onblur) {
|
|
363
|
+
this.$dispatch(this.data.fields[index].onblur, index)
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
this.$dispatch('onblur', index)
|
|
367
|
+
},
|
|
368
|
+
oninput (index) {
|
|
369
|
+
// 是否禁用按钮
|
|
370
|
+
this.disableButton()
|
|
371
|
+
|
|
372
|
+
if (this.data.fields[index].oninput) {
|
|
373
|
+
this.$dispatch(this.data.fields[index].oninput, index)
|
|
374
|
+
}
|
|
375
|
+
this.$dispatch('oninput', index)
|
|
376
|
+
},
|
|
377
|
+
// 点击按钮组按钮
|
|
378
|
+
async click_but (button) {
|
|
379
|
+
this.disable_button = true
|
|
380
|
+
|
|
381
|
+
this.data.fields.forEach(item => {
|
|
382
|
+
this.data[item.field] = item.value
|
|
383
|
+
})
|
|
384
|
+
|
|
385
|
+
this.data.button = button
|
|
386
|
+
|
|
387
|
+
if (button.button_fields && button.button_fields.length > 0) {
|
|
388
|
+
this.showButModal = true
|
|
389
|
+
return
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
if (this.data.button.event) {
|
|
393
|
+
this.$dispatch(this.data.button.event)
|
|
394
|
+
} else {
|
|
395
|
+
this.$dispatch('button')
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
confirmModal () {
|
|
399
|
+
this.closeModal()
|
|
400
|
+
|
|
401
|
+
this.data.button.button_fields.forEach(item => {
|
|
402
|
+
this.data.button[item.field] = item.value
|
|
403
|
+
})
|
|
404
|
+
|
|
405
|
+
if (this.data.button.event) {
|
|
406
|
+
this.$dispatch(this.data.button.event)
|
|
407
|
+
} else {
|
|
408
|
+
this.$dispatch('button')
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
// 关闭模态框
|
|
412
|
+
closeModal () {
|
|
413
|
+
this.showButModal = false
|
|
414
|
+
this.disable_modal_button = true
|
|
415
|
+
},
|
|
416
|
+
onbutchange (index) {
|
|
417
|
+
// 是否禁用按钮
|
|
418
|
+
this.disableModalButton()
|
|
419
|
+
|
|
420
|
+
if (this.data.button.button_fields[index].onchange) {
|
|
421
|
+
this.$dispatch(this.data.button.button_fields[index].onchange, index)
|
|
422
|
+
} else {
|
|
423
|
+
this.$dispatch('onbutchange', index)
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
},
|
|
427
|
+
onbutblur (index) {
|
|
428
|
+
this.disableModalButton()
|
|
429
|
+
|
|
430
|
+
if (this.data.button.button_fields[index].onblur) {
|
|
431
|
+
this.$dispatch(this.data.button.button_fields[index].onblur, index)
|
|
432
|
+
} else {
|
|
433
|
+
this.$dispatch('onbutblur', index)
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
onbutinput (index) {
|
|
437
|
+
// 是否禁用按钮
|
|
438
|
+
this.disableModalButton()
|
|
439
|
+
|
|
440
|
+
if (this.data.button.button_fields[index].oninput) {
|
|
441
|
+
this.$dispatch(this.data.button.button_fields[index].oninput, index)
|
|
442
|
+
} else {
|
|
443
|
+
this.$dispatch('onbutinput', index)
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
disableModalButton () {
|
|
447
|
+
let flag = false
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
for (const item of this.data.button.button_fields) {
|
|
451
|
+
if (item.required && !item.value) {
|
|
452
|
+
if (item.value === 0) {
|
|
453
|
+
flag = false
|
|
454
|
+
} else {
|
|
455
|
+
flag = true
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
this.disable_modal_button = flag
|
|
461
|
+
},
|
|
462
|
+
check_datepicker (index) {
|
|
463
|
+
// 时间格式检测
|
|
464
|
+
if (!isEmpty(this.data.fields[index].value)) {
|
|
465
|
+
|
|
466
|
+
let dateReg = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/
|
|
467
|
+
let timeReg = /^(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
|
|
468
|
+
let datetimeReg = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s+(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
|
|
469
|
+
if (this.data.fields[index].format) {
|
|
470
|
+
if (this.data.fields[index].format === 'yyyy-MM-dd') {
|
|
471
|
+
if (!dateReg.test(this.data.fields[index].value)) {
|
|
472
|
+
this.data.fields[index].value = ''
|
|
473
|
+
this.$showAlert(this.data.fields[index].label + '格式错误如:2021-01-01', 'warning', 2000)
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
if (this.data.fields[index].format === 'HH:mm:ss') {
|
|
477
|
+
if (!timeReg.test(this.data.fields[index].value)) {
|
|
478
|
+
this.data.fields[index].value = ''
|
|
479
|
+
this.$showAlert(this.data.fields[index].label + '格式错误如:00:00:00', 'warning', 2000)
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
if (this.data.fields[index].format === 'yyyy-MM-dd HH:mm:ss') {
|
|
483
|
+
if (!datetimeReg.test(this.data.fields[index].value)) {
|
|
484
|
+
this.data.fields[index].value = ''
|
|
485
|
+
this.$showAlert(this.data.fields[index].label + '格式错误如:2021-01-01 00:00:00', 'warning', 2000)
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
} else {
|
|
489
|
+
if (!dateReg.test(this.data.fields[index].value)) {
|
|
490
|
+
this.data.fields[index].value = ''
|
|
491
|
+
this.$showAlert(this.data.fields[index].label + '格式错误如:2021-01-01', 'warning', 2000)
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
events: {
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
</script>
|
|
501
|
+
<style scoped>
|
|
502
|
+
.control-label-justify {
|
|
503
|
+
width: 30%;
|
|
504
|
+
text-align: justify;
|
|
505
|
+
text-align-last: justify;
|
|
506
|
+
font-family: PingFang-SC-Bold;
|
|
507
|
+
float: left;
|
|
508
|
+
}
|
|
509
|
+
.button_spacing{margin: 0px 0px 0px 10px;}
|
|
510
|
+
</style>
|
|
511
|
+
<style lang="less">
|
|
512
|
+
.apply-has-error {
|
|
513
|
+
border-bottom: 1px solid #a94442;
|
|
514
|
+
}
|
|
515
|
+
.app-input {
|
|
516
|
+
label {
|
|
517
|
+
float: left;
|
|
518
|
+
}
|
|
519
|
+
.select {
|
|
520
|
+
button {
|
|
521
|
+
border: none;
|
|
522
|
+
outline: none;
|
|
523
|
+
text-align: left;
|
|
524
|
+
.btn-placeholder {
|
|
525
|
+
color: #ACA899
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
.datepicker {
|
|
530
|
+
.form-control:focus {
|
|
531
|
+
border: none!important;
|
|
532
|
+
outline: none!important;
|
|
533
|
+
-webkit-box-shadow: none;
|
|
534
|
+
box-shadow: none;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
textarea {
|
|
538
|
+
padding: 8px 10px;
|
|
539
|
+
border: none;
|
|
540
|
+
outline: none;
|
|
541
|
+
margin: 0px;
|
|
542
|
+
}
|
|
543
|
+
input[readonly]{
|
|
544
|
+
color: #ACA899!important;
|
|
545
|
+
background: #FFFFFF;
|
|
546
|
+
border: none;
|
|
547
|
+
outline: none;
|
|
548
|
+
}
|
|
549
|
+
input:disabled{
|
|
550
|
+
color: #ACA899!important;
|
|
551
|
+
background: #FFFFFF;
|
|
552
|
+
border: none;
|
|
553
|
+
outline: none;
|
|
554
|
+
}
|
|
555
|
+
textarea[readonly]{
|
|
556
|
+
color: #ACA899!important;
|
|
557
|
+
background: #FFFFFF;
|
|
558
|
+
border: none;
|
|
559
|
+
outline: none;
|
|
560
|
+
}
|
|
561
|
+
textarea:disabled{
|
|
562
|
+
color: #ACA899!important;
|
|
563
|
+
background: #FFFFFF;
|
|
564
|
+
border: none;
|
|
565
|
+
outline: none;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
</style>
|