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,755 +1,632 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="select-overspread" style="background-color: #ffffff;padding: 20px;overflow: scroll">
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
<div
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@input="oninput(index)"
|
|
26
|
-
/>
|
|
27
|
-
<span
|
|
28
|
-
v-if="item.error&&item.error.msg&&item.error.flag"
|
|
29
|
-
style="color: red">{{item.error.msg}}</span>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
<!--时间datepicker-->
|
|
33
|
-
<div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
|
|
34
|
-
v-if="item.type==='datepicker'"
|
|
35
|
-
v-show="!item.hidden"
|
|
36
|
-
:class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped ? item.bootstraped+' form-group':'col-sm-4 form-group']">
|
|
37
|
-
<label
|
|
38
|
-
:class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label control-label-justify col-sm-6'">{{item.label}}</label>
|
|
39
|
-
<div :style="item.value_style ? item.value_style:''"
|
|
40
|
-
:class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
|
|
41
|
-
<datepicker
|
|
42
|
-
@change="onchange(index)"
|
|
43
|
-
@blur="onblur(index)"
|
|
44
|
-
:placeholder="item.placeholder"
|
|
45
|
-
:value.sync="data.fields[index].value"
|
|
46
|
-
:format="item.format ? item.format : 'yyyy-MM-dd'"
|
|
47
|
-
v-model="data.fields[index].value"
|
|
48
|
-
:readonly="item.readonly"
|
|
49
|
-
:disabled="item.disabled"
|
|
50
|
-
:show-reset-button="reset">
|
|
51
|
-
</datepicker>
|
|
52
|
-
</div>
|
|
53
|
-
<span
|
|
54
|
-
v-if="item.error&&item.error.msg&&item.error.flag"
|
|
55
|
-
style="color: red">{{item.error.msg}}</span>
|
|
3
|
+
<form class="form-horizontal">
|
|
4
|
+
<div class="form-group">
|
|
5
|
+
<div v-for="(index,item) in data.fields">
|
|
6
|
+
<!--input-->
|
|
7
|
+
<div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
|
|
8
|
+
v-if="(item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email') && !item.hidden && (item.device === 'pc' || !item.device)"
|
|
9
|
+
:class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped ? item.bootstraped + ' form-group':'col-sm-4 form-group']">
|
|
10
|
+
<label :style="item.label_style ? item.label_style : ''"
|
|
11
|
+
:class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{item.label}}</label>
|
|
12
|
+
<div :style="item.value_style ? item.value_style:''"
|
|
13
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
|
|
14
|
+
<input class="form-control input_view" style=""
|
|
15
|
+
:type="item.type"
|
|
16
|
+
v-model="data.fields[index].value"
|
|
17
|
+
:placeholder="item.placeholder"
|
|
18
|
+
:value="data.fields[index].value"
|
|
19
|
+
:readonly="item.readonly"
|
|
20
|
+
:disabled="item.disabled"
|
|
21
|
+
@change="onchange(index)"
|
|
22
|
+
@blur="onblur(index)"
|
|
23
|
+
@input="oninput(index)"
|
|
24
|
+
/>
|
|
56
25
|
</div>
|
|
26
|
+
</div>
|
|
57
27
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
>
|
|
78
|
-
</textarea>
|
|
79
|
-
</div>
|
|
80
|
-
<span
|
|
81
|
-
v-if="item.error&&item.error.msg&&item.error.flag"
|
|
82
|
-
style="color: red">{{item.error.msg}}</span>
|
|
28
|
+
<!--时间datepicker-->
|
|
29
|
+
<div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
|
|
30
|
+
v-if="item.type==='datepicker' && !item.hidden && (item.device === 'pc' || !item.device)"
|
|
31
|
+
:class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped ? item.bootstraped+' form-group':'col-sm-4 form-group']">
|
|
32
|
+
<label
|
|
33
|
+
:class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label control-label-justify col-sm-6'">{{item.label}}</label>
|
|
34
|
+
<div :style="item.value_style ? item.value_style:''"
|
|
35
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
|
|
36
|
+
<datepicker
|
|
37
|
+
@change="onchange(index)"
|
|
38
|
+
@blur="onblur(index)"
|
|
39
|
+
:placeholder="item.placeholder"
|
|
40
|
+
:value.sync="data.fields[index].value"
|
|
41
|
+
:format="item.format ? item.format : 'yyyy-MM-dd'"
|
|
42
|
+
v-model="data.fields[index].value"
|
|
43
|
+
:readonly="item.readonly"
|
|
44
|
+
:disabled="item.disabled"
|
|
45
|
+
:show-reset-button="reset">
|
|
46
|
+
</datepicker>
|
|
83
47
|
</div>
|
|
48
|
+
</div>
|
|
84
49
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
50
|
+
<!--textarea-->
|
|
51
|
+
<div :style="item.style ? item.style+';margin-bottom: 20px':'margin-bottom: 20px'"
|
|
52
|
+
v-if="item.type==='textarea' && !item.hidden && (item.device === 'pc' || !item.device)"
|
|
53
|
+
:class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped?item.bootstraped+' form-group':'col-sm-12 form-group']">
|
|
54
|
+
<label :style="item.label_style ? item.label_style : ''"
|
|
55
|
+
:class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-3'">{{item.label}}</label>
|
|
56
|
+
<div :style="item.value_style ? item.value_style:''"
|
|
57
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-10'">
|
|
58
|
+
<textarea
|
|
59
|
+
:readonly="item.readonly"
|
|
60
|
+
:disabled="item.disabled"
|
|
61
|
+
class="form-control input_view"
|
|
62
|
+
style="width: 100%;height: 100%"
|
|
63
|
+
:rows="item.rows"
|
|
64
|
+
v-model="data.fields[index].value"
|
|
65
|
+
:value="data.fields[index].value"
|
|
66
|
+
@change="onchange(index)"
|
|
67
|
+
@blur="onblur(index)"
|
|
68
|
+
@input="oninput(index)"
|
|
69
|
+
>
|
|
70
|
+
</textarea>
|
|
106
71
|
</div>
|
|
72
|
+
</div>
|
|
107
73
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
<span
|
|
128
|
-
v-if="item.error&&item.error.msg&&item.error.flag"
|
|
129
|
-
style="color: red">{{item.error.msg}}</span>
|
|
74
|
+
<!--select-->
|
|
75
|
+
<div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
|
|
76
|
+
v-if="item.type==='select' && !item.hidden && (item.device === 'pc' || !item.device)"
|
|
77
|
+
:class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped?item.bootstraped+' form-group':'col-sm-4 form-group']">
|
|
78
|
+
<label
|
|
79
|
+
:class="item.label_bootstraped ? item.label_bootstraped+' control-label control-label-justify':'control-label-justify control-label col-sm-6'">{{item.label}}</label>
|
|
80
|
+
<div :style="item.value_style ? item.value_style:''"
|
|
81
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
|
|
82
|
+
<input-select
|
|
83
|
+
class="select select_list"
|
|
84
|
+
@blur="onblur(index)"
|
|
85
|
+
@change="onchange(index)"
|
|
86
|
+
@select-search="selectSearch($arguments,index)"
|
|
87
|
+
:readonly="item.readonly"
|
|
88
|
+
:disable="item.disabled"
|
|
89
|
+
:value.sync="data.fields[index].value"
|
|
90
|
+
v-model="data.fields[index].value"
|
|
91
|
+
:options='data.fields[index].options'
|
|
92
|
+
:valueSingle="true"></input-select>
|
|
130
93
|
</div>
|
|
94
|
+
</div>
|
|
131
95
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
<
|
|
142
|
-
|
|
143
|
-
:
|
|
144
|
-
|
|
96
|
+
<!--checkbox-->
|
|
97
|
+
<div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
|
|
98
|
+
v-if="item.type==='checkbox' && !item.hidden && (item.device === 'pc' || !item.device)"
|
|
99
|
+
:class="[item.required && item.value.length === 0 ? 'has-error' : '',item.bootstraped?item.bootstraped+' form-group':'col-sm-4 form-group']">
|
|
100
|
+
<label v-if="item.label"
|
|
101
|
+
:class="item.label_bootstraped?item.label_bootstraped+' control-label control-label-justify':'control-label-justify control-label col-sm-6'">{{item.label}}</label>
|
|
102
|
+
<div :style="item.value_style ? item.value_style:''"
|
|
103
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
|
|
104
|
+
<label class="checkbox-inline" v-for="(index2,row) in item.options">
|
|
105
|
+
<input type="checkbox" class=""
|
|
106
|
+
:readonly="data.fields[index].readonly"
|
|
107
|
+
:disabled="data.fields[index].disabled"
|
|
108
|
+
v-model="data.fields[index].value"
|
|
109
|
+
:value="data.fields[index].options[index2].value"
|
|
110
|
+
@change="onchange(index)"
|
|
111
|
+
@blur="onblur(index)">
|
|
112
|
+
{{row.label}}
|
|
113
|
+
</label>
|
|
145
114
|
</div>
|
|
146
115
|
</div>
|
|
147
116
|
</div>
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
{{row[key.field]}}
|
|
168
|
-
</td>
|
|
169
|
-
<td style="text-align: center" v-if="!item.hiddenOperate">
|
|
170
|
-
<span @click="update(i,j)" v-if="showprint && !item.updateHidden">
|
|
171
|
-
<span v-if="item.updateText === 'default' || !item.updateText" class="glyphicon glyphicon-wrench" aria-hidden="true"></span>
|
|
172
|
-
<span v-else :style="item.updateStyle">{{item.updateText}}</span>
|
|
173
|
-
</span>
|
|
174
|
-
<span @click="delete(i,j)" v-if="showprint && !item.deleteHidden" style="margin-left: 10px">
|
|
175
|
-
<span v-if="item.deleteText === 'default' || !item.deleteText" class="glyphicon glyphicon-trash" aria-hidden="true"></span>
|
|
176
|
-
<span v-else :style="item.deleteStyle">{{item.deleteText}}</span>
|
|
177
|
-
</span>
|
|
178
|
-
</td>
|
|
179
|
-
</tr>
|
|
180
|
-
</table>
|
|
181
|
-
</div>
|
|
182
|
-
|
|
183
|
-
<div v-for="(i,item) in data.components">
|
|
184
|
-
<component :is="item.name" :selectdata="data" :mark="item.mark"></component>
|
|
185
|
-
</div>
|
|
186
|
-
|
|
187
|
-
<!--自定义组件-->
|
|
188
|
-
<slot></slot>
|
|
189
|
-
<!--公司等属性-->
|
|
190
|
-
<div class="col-sm-12 form-group text-center" style="padding-top:8px">
|
|
191
|
-
<div class="col-sm-3 form-group center-block">
|
|
192
|
-
<label class="col-sm-5">所属公司:</label>
|
|
193
|
-
<div class="col-sm-6" style="text-align: left">
|
|
194
|
-
{{model.f_filiale}}
|
|
195
|
-
</div>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<!-- onetomany -->
|
|
120
|
+
<div class="" v-for="(index,item) in data.onetomany">
|
|
121
|
+
<onetomany :selectdata="data" :onetomany="item" :index="index" v-if="(item.device === 'pc' || !item.device) && !item.hidden"></onetomany>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
<div v-for="(i,item) in data.components">
|
|
125
|
+
<component v-if="(item.device === 'pc' || !item.device) && !item.hidden" :is="item.name" :selectdata="data" :mark="item.mark"></component>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
<!--自定义组件-->
|
|
129
|
+
<slot></slot>
|
|
130
|
+
<!--公司等属性-->
|
|
131
|
+
<div class="col-sm-12 form-group text-center" style="padding-top:8px">
|
|
132
|
+
<div class="col-sm-3 form-group center-block">
|
|
133
|
+
<label class="col-sm-5">所属公司:</label>
|
|
134
|
+
<div class="col-sm-6" style="text-align: left">
|
|
135
|
+
{{model.orgs}}
|
|
196
136
|
</div>
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
137
|
+
</div>
|
|
138
|
+
<div class="col-sm-3 form-group center-block">
|
|
139
|
+
<label class="col-sm-5">部门:</label>
|
|
140
|
+
<div class="col-sm-6" style="text-align: left">
|
|
141
|
+
{{model.parentname}}
|
|
202
142
|
</div>
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
143
|
+
</div>
|
|
144
|
+
<div class="col-sm-3 form-group center-block">
|
|
145
|
+
<label class="col-sm-5">操作人:</label>
|
|
146
|
+
<div class="col-sm-6 " style="text-align: left">
|
|
147
|
+
{{model.operator}}
|
|
208
148
|
</div>
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
149
|
+
</div>
|
|
150
|
+
<div class="col-sm-3 form-group center-block">
|
|
151
|
+
<label class="col-sm-5">操作日期:</label>
|
|
152
|
+
<div class="col-sm-6" style="text-align: left">
|
|
153
|
+
{{model.operate_date}}
|
|
214
154
|
</div>
|
|
215
155
|
</div>
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
<!-- 按钮组 -->
|
|
221
|
-
<div class="from-group col-sm-12" style="margin-top: 20px;height: 100px">
|
|
222
|
-
<center>
|
|
156
|
+
</div>
|
|
157
|
+
<!-- 按钮组 -->
|
|
158
|
+
<div class="from-group col-sm-12 text-center">
|
|
223
159
|
<!-- 按钮组 -->
|
|
224
160
|
<button v-for="(index,button) in data.buttons"
|
|
225
|
-
:disabled="
|
|
226
|
-
|
|
227
|
-
:class="
|
|
161
|
+
:disabled="button.disabled && disable_button"
|
|
162
|
+
style="min-width:100px"
|
|
163
|
+
:class="button.disabled && disable_button ? 'btn btn-default button_spacing' : 'btn btn-primary button_spacing'"
|
|
228
164
|
v-if="!button.hidden"
|
|
229
|
-
|
|
165
|
+
@click.prevent="click_but(button)"
|
|
166
|
+
>
|
|
230
167
|
{{button.button_name}}
|
|
231
168
|
</button>
|
|
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
|
-
|
|
169
|
+
</div>
|
|
170
|
+
|
|
171
|
+
<!-- 按钮模态框 -->
|
|
172
|
+
<modal v-if="showButModal" :show.sync="showButModal" backdrop="false" large>
|
|
173
|
+
<header slot="modal-header" class="modal-header">
|
|
174
|
+
<button type="button" class="close" @click="closeModal()"><span>×</span></button>
|
|
175
|
+
<span class="modal-title"><font
|
|
176
|
+
size="3">{{data.button.button_name}}</font></span>
|
|
177
|
+
</header>
|
|
178
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
179
|
+
<div class="form-group" style="padding: 0 150px">
|
|
180
|
+
<div v-for="(index,item) in data.button.button_fields">
|
|
181
|
+
<div :style="item.style ? item.style : ''" :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group' : 'form-group']"
|
|
182
|
+
v-if="(item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email') && !item.hidden && (item.device === 'pc' || !item.device)">
|
|
183
|
+
<label :style="item.label_style ? item.label_style : ''"
|
|
184
|
+
:class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{item.label}}</label>
|
|
185
|
+
<div :style="item.value_style ? item.value_style : ''"
|
|
186
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-9'">
|
|
187
|
+
<input class="form-control input_view"
|
|
188
|
+
:placeholder="item.placeholder"
|
|
189
|
+
:type="item.type"
|
|
190
|
+
v-model="item.value"
|
|
191
|
+
:value="item.value"
|
|
192
|
+
:readonly="item.readonly"
|
|
193
|
+
:disabled="item.disabled"
|
|
194
|
+
@change="onbutchange(index)"
|
|
195
|
+
@blur="onbutblur(index)"
|
|
196
|
+
@input="onbutinput(index)"
|
|
197
|
+
/>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
<!--时间datepicker-->
|
|
202
|
+
<div :style="item.style ? item.style : ''" :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group':'form-group']"
|
|
203
|
+
v-if="item.type==='datepicker' && !item.hidden && (item.device === 'pc' || !item.device)">
|
|
204
|
+
<label :style="item.label_style ? item.label_style : ''"
|
|
205
|
+
:class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{item.label}}</label>
|
|
206
|
+
<div :style="item.value_style ? item.value_style : ''"
|
|
207
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-9'">
|
|
208
|
+
<datepicker
|
|
209
|
+
:placeholder="item.placeholder"
|
|
210
|
+
:value.sync="item.value"
|
|
211
|
+
v-model="item.value"
|
|
212
|
+
:readonly="item.readonly"
|
|
213
|
+
:disabled="item.disabled"
|
|
214
|
+
:format="item.format ? item.format : 'yyyy-MM-dd'"
|
|
215
|
+
:show-reset-button="true"
|
|
216
|
+
@change="onbutchange(index)"
|
|
217
|
+
@blur="onbutblur(index)"
|
|
218
|
+
></datepicker>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
|
|
222
|
+
<!--select-->
|
|
223
|
+
<div :style="item.style ? item.style : ''" :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group':'form-group']"
|
|
224
|
+
v-if="item.type==='select' && !item.hidden && (item.device === 'pc' || !item.device)">
|
|
225
|
+
<label :style="item.label_style ? item.label_style : ''"
|
|
226
|
+
:class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{item.label}}</label>
|
|
227
|
+
<div :style="item.value_style ? item.value_style : ''"
|
|
228
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-9'">
|
|
229
|
+
<input-select
|
|
230
|
+
class="select select_list"
|
|
231
|
+
:value.sync="item.value"
|
|
232
|
+
v-model="item.value"
|
|
233
|
+
:options='item.options'
|
|
234
|
+
:readonly="item.readonly"
|
|
235
|
+
:disable="item.disabled"
|
|
236
|
+
:valueSingle="true"
|
|
237
|
+
@blur="onbutblur(index)"
|
|
238
|
+
@change="onbutchange(index)"
|
|
239
|
+
></input-select>
|
|
240
|
+
</div>
|
|
241
|
+
</div>
|
|
242
|
+
|
|
243
|
+
<!--textarea-->
|
|
244
|
+
<div :style="item.style ? item.style : ''" :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group':'form-group']"
|
|
245
|
+
v-if="item.type==='textarea' && !item.hidden && (item.device === 'pc' || !item.device)">
|
|
246
|
+
<label :style="item.label_style ? item.label_style : ''"
|
|
247
|
+
:class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{item.label}}</label>
|
|
248
|
+
<div :style="item.value_style ? item.value_style : ''"
|
|
249
|
+
:class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-9'">
|
|
250
|
+
<textarea
|
|
251
|
+
class="form-control input_view"
|
|
252
|
+
style="width: 100%;height: 100%"
|
|
253
|
+
v-model="item.value"
|
|
254
|
+
:value="item.value"
|
|
255
|
+
:rows="item.rows"
|
|
256
|
+
:readonly="item.readonly"
|
|
257
|
+
:disabled="item.disabled"
|
|
258
|
+
@change="onbutchange(index)"
|
|
259
|
+
@blur="onbutblur(index)"
|
|
260
|
+
@input="onbutinput(index)"
|
|
261
|
+
></textarea>
|
|
262
|
+
</div>
|
|
263
|
+
</div>
|
|
264
|
+
</div>
|
|
312
265
|
</div>
|
|
313
|
-
</
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
266
|
+
</article>
|
|
267
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
268
|
+
<button :class="disable_modal_button ? 'btn btn-default':'btn btn-primary'"
|
|
269
|
+
:disabled="disable_modal_button" type="button" @click="confirmModal()">
|
|
270
|
+
确认
|
|
271
|
+
</button>
|
|
272
|
+
</footer>
|
|
273
|
+
</modal>
|
|
274
|
+
</form>
|
|
319
275
|
</div>
|
|
320
276
|
</template>
|
|
321
277
|
<script>
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
278
|
+
import Vue from 'vue'
|
|
279
|
+
import {isEmpty} from '../Util'
|
|
280
|
+
// Date格式化
|
|
281
|
+
Date.prototype.Format = function (fmt) {
|
|
282
|
+
var o = {
|
|
283
|
+
'M+': this.getMonth() + 1, // 月份
|
|
284
|
+
'd+': this.getDate(), // 日
|
|
285
|
+
'H+': this.getHours(), // 小时
|
|
286
|
+
'm+': this.getMinutes(), // 分
|
|
287
|
+
's+': this.getSeconds(), // 秒
|
|
288
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
289
|
+
'S': this.getMilliseconds() // 毫秒
|
|
290
|
+
}
|
|
291
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
292
|
+
for (var k in o) {
|
|
293
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
294
|
+
}
|
|
295
|
+
return fmt
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export default {
|
|
299
|
+
title: '报建业务通用组件',
|
|
300
|
+
props: {
|
|
301
|
+
data: {
|
|
302
|
+
type: Object
|
|
333
303
|
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
304
|
+
},
|
|
305
|
+
data () {
|
|
306
|
+
return {
|
|
307
|
+
model: {}, // 公司等属性
|
|
308
|
+
disable_button: true, // 控制按钮禁用
|
|
309
|
+
disable_modal_button: true, // 控制按钮禁用
|
|
310
|
+
showButModal: false
|
|
337
311
|
}
|
|
338
|
-
|
|
339
|
-
|
|
312
|
+
},
|
|
313
|
+
watch: {
|
|
314
|
+
deep: true
|
|
315
|
+
},
|
|
316
|
+
computed: {
|
|
317
|
+
|
|
318
|
+
},
|
|
319
|
+
created () {
|
|
320
|
+
// 初始化数据
|
|
321
|
+
this.initializtion()
|
|
322
|
+
if (this.data.readyEvent) {
|
|
323
|
+
this.$dispatch(this.data.readyEvent)
|
|
324
|
+
}
|
|
325
|
+
this.$dispatch('initializtionView')
|
|
340
326
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
},
|
|
352
|
-
data () {
|
|
353
|
-
return {
|
|
354
|
-
model: {}, // 公司等属性
|
|
355
|
-
disable_button: true, // 控制按钮禁用
|
|
356
|
-
show: false, // 控制onetomany模态框
|
|
357
|
-
disable_button_onetomany: true, // 控制onetomany模态框按钮
|
|
358
|
-
onetomany_index: null, // 当前选择的下标
|
|
359
|
-
update_onetomany_index: null, // 当前需要修改的下标
|
|
360
|
-
modeltitle: null, // 模态框标题
|
|
361
|
-
modalSize: null, // 模态框大小
|
|
362
|
-
showbutmodal: false,
|
|
327
|
+
setTimeout(() => {
|
|
328
|
+
// 是否禁用按钮
|
|
329
|
+
this.disableButton()
|
|
330
|
+
}, 2000)
|
|
331
|
+
},
|
|
332
|
+
methods: {
|
|
333
|
+
// 初始化数据
|
|
334
|
+
initializtion () {
|
|
335
|
+
for (const item of this.data.fields) {
|
|
336
|
+
this.data[item.field] = item.value
|
|
363
337
|
}
|
|
364
|
-
},
|
|
365
|
-
watch: {
|
|
366
|
-
deep: true
|
|
367
|
-
},
|
|
368
|
-
computed: {
|
|
369
338
|
|
|
339
|
+
// 公司等属性初始化
|
|
340
|
+
if (this.data.orgs) {
|
|
341
|
+
this.model.orgs = this.data.orgs
|
|
342
|
+
} else {
|
|
343
|
+
this.model.orgs = this.$login.f.orgs
|
|
344
|
+
}
|
|
345
|
+
if (this.data.parentname) {
|
|
346
|
+
this.model.parentname = this.data.parentname
|
|
347
|
+
} else {
|
|
348
|
+
this.model.parentname = this.$login.f.f_department_name
|
|
349
|
+
}
|
|
350
|
+
if (this.data.operate_date) {
|
|
351
|
+
this.model.operate_date = this.data.operate_date
|
|
352
|
+
} else {
|
|
353
|
+
this.model.operate_date = new Date().Format('yyyy-MM-dd')
|
|
354
|
+
}
|
|
355
|
+
if (this.data.operator) {
|
|
356
|
+
this.model.operator = this.data.operator
|
|
357
|
+
} else {
|
|
358
|
+
this.model.operator = this.$login.f.name
|
|
359
|
+
}
|
|
370
360
|
},
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
this.$dispatch('initializtionView')
|
|
361
|
+
// 是否禁用按钮
|
|
362
|
+
disableButton () {
|
|
363
|
+
let flag = false
|
|
375
364
|
|
|
376
|
-
this.
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
// 按钮模态框确定
|
|
380
|
-
confirm_but_modal() {
|
|
381
|
-
for (const item of this.data.buttons[this.model.button.button_index].button_fields) {
|
|
382
|
-
this.model.button.button_fields[item.field] = item.value
|
|
365
|
+
for (const field of this.data.fields) {
|
|
366
|
+
if (field.required && !field.value && !field.hidden && field.value !== 0) {
|
|
367
|
+
flag = true
|
|
383
368
|
}
|
|
384
|
-
this.showbutmodal = false
|
|
385
|
-
this.disable_button_but = true
|
|
386
|
-
this.$dispatch('button', this.model)
|
|
387
|
-
},
|
|
388
|
-
// 点击按钮组按钮
|
|
389
|
-
async clicked(index, button) {
|
|
390
|
-
this.disable_button = true
|
|
391
|
-
// 组织model.fields数据
|
|
392
|
-
for (const item of this.data.fields) {
|
|
393
|
-
// checkbox特殊处理
|
|
394
|
-
if (item.type === 'checkbox') {
|
|
395
|
-
for (let j = 0; j < item.items.length; j++) {
|
|
396
|
-
this.model[item.items[j].field] = item.items[j].value
|
|
397
|
-
}
|
|
398
|
-
} else {
|
|
399
|
-
this.model[item.field] = item.value
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
this.model.f_process_id = this.data.f_process_id
|
|
403
369
|
|
|
404
|
-
//
|
|
405
|
-
|
|
406
|
-
|
|
370
|
+
// 任何选择框只要是否都不能提交
|
|
371
|
+
if (field.type === 'select' && field.value === '否' && field.value_no_disable) {
|
|
372
|
+
flag = true
|
|
407
373
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
for (const item of button.button_fields) {
|
|
412
|
-
buttondatas.button_fields[item.field] = item.value
|
|
413
|
-
}
|
|
374
|
+
|
|
375
|
+
if (field.type === 'checkbox' && field.required && field.value.length === 0) {
|
|
376
|
+
flag = true
|
|
414
377
|
}
|
|
415
|
-
|
|
416
|
-
this.model.title = this.data.title
|
|
417
|
-
this.model.fields = this.data.fields
|
|
418
|
-
this.model.onetomany = this.data.onetomany
|
|
378
|
+
}
|
|
419
379
|
|
|
380
|
+
this.disable_button = flag
|
|
381
|
+
},
|
|
382
|
+
// 失去焦点且值最终发生变化触发
|
|
383
|
+
async onchange (index) {
|
|
384
|
+
// 是否禁用按钮
|
|
385
|
+
this.disableButton()
|
|
420
386
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
this.
|
|
425
|
-
} else {
|
|
426
|
-
this.$dispatch('button', this.model)
|
|
387
|
+
if (!isEmpty(this.data.fields[index].value)) {
|
|
388
|
+
// 前缀、后缀
|
|
389
|
+
if (this.data.fields[index].prefix) {
|
|
390
|
+
this.data.fields[index].value = this.data.fields[index].prefix + this.data.fields[index].value
|
|
427
391
|
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
initializtion () {
|
|
431
|
-
// 是否禁用按钮
|
|
432
|
-
this.disableButton()
|
|
433
|
-
|
|
434
|
-
// datepicker 没有值给当时值
|
|
435
|
-
for (const item of this.data.fields) {
|
|
436
|
-
if (item.type === 'datepicker' && !item.value) {
|
|
437
|
-
item.value = new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
438
|
-
}
|
|
392
|
+
if (this.data.fields[index].suffix) {
|
|
393
|
+
this.data.fields[index].value = this.data.fields[index].value + this.data.fields[index].suffix
|
|
439
394
|
}
|
|
395
|
+
}
|
|
440
396
|
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
397
|
+
// data赋值
|
|
398
|
+
this.data[this.data.fields[index].field] = this.data.fields[index].value
|
|
399
|
+
|
|
400
|
+
if (this.data.fields[index].type === 'datepicker') {
|
|
401
|
+
this.check_datepicker(index)
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
if (this.data.fields[index].onchange) {
|
|
405
|
+
this.$dispatch(this.data.fields[index].onchange, index)
|
|
406
|
+
}
|
|
407
|
+
this.$dispatch('onchange', index)
|
|
408
|
+
},
|
|
409
|
+
// 失去焦点触发,无论值是否发生变化
|
|
410
|
+
onblur (index) {
|
|
411
|
+
this.disableButton()
|
|
412
|
+
|
|
413
|
+
if (this.data.fields[index].onblur) {
|
|
414
|
+
this.$dispatch(this.data.fields[index].onblur, index)
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
this.$dispatch('onblur', index)
|
|
418
|
+
},
|
|
419
|
+
oninput (index) {
|
|
463
420
|
// 是否禁用按钮
|
|
464
|
-
disableButton
|
|
465
|
-
let fields = this.data.fields
|
|
466
|
-
|
|
467
|
-
let flag = false
|
|
468
|
-
for (const item of fields) {
|
|
469
|
-
if (item.type !== 'checkbox' && item.required && !item.value) {
|
|
470
|
-
if (item.value === 0) {
|
|
471
|
-
flag = false
|
|
472
|
-
} else {
|
|
473
|
-
flag = true
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
// 任何选择框只要是否都不能提交
|
|
477
|
-
if (item.type === 'select' && item.value === '否' && item.disabledButton) {
|
|
478
|
-
flag = true
|
|
479
|
-
}
|
|
480
|
-
}
|
|
421
|
+
this.disableButton()
|
|
481
422
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
423
|
+
if (this.data.fields[index].oninput) {
|
|
424
|
+
this.$dispatch(this.data.fields[index].oninput, index)
|
|
425
|
+
}
|
|
426
|
+
this.$dispatch('oninput', index)
|
|
427
|
+
},
|
|
428
|
+
selectSearch(event, index) {
|
|
429
|
+
if (this.data.fields[index].selectSearch) {
|
|
430
|
+
this.$dispatch(this.data.fields[index].selectSearch, event[0], index)
|
|
431
|
+
}
|
|
432
|
+
this.$dispatch('selectSearch', event[0], index)
|
|
433
|
+
},
|
|
434
|
+
// 点击按钮组按钮
|
|
435
|
+
async click_but (button) {
|
|
436
|
+
this.disable_button = true
|
|
491
437
|
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
onblur (index) {
|
|
496
|
-
// 是否禁用按钮
|
|
497
|
-
this.disableButton()
|
|
438
|
+
this.data.fields.forEach(item => {
|
|
439
|
+
this.data[item.field] = item.value
|
|
440
|
+
})
|
|
498
441
|
|
|
499
|
-
|
|
500
|
-
// 如果有错误信息提示走错误信息判断处理
|
|
442
|
+
this.data.button = button
|
|
501
443
|
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
}
|
|
506
|
-
// 失去焦点且值最终发生变化触发
|
|
507
|
-
onchange (index) {
|
|
508
|
-
// 是否禁用按钮
|
|
509
|
-
this.disableButton()
|
|
444
|
+
if (button.button_fields && button.button_fields.length > 0) {
|
|
445
|
+
this.showButModal = true
|
|
446
|
+
return
|
|
447
|
+
}
|
|
510
448
|
|
|
511
|
-
|
|
449
|
+
if (this.data.button.event) {
|
|
450
|
+
this.$dispatch(this.data.button.event)
|
|
451
|
+
} else {
|
|
452
|
+
this.$dispatch('button')
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
confirmModal () {
|
|
456
|
+
this.closeModal()
|
|
512
457
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
458
|
+
this.data.button.button_fields.forEach(item => {
|
|
459
|
+
this.data.button[item.field] = item.value
|
|
460
|
+
})
|
|
516
461
|
|
|
517
|
-
|
|
462
|
+
if (this.data.button.event) {
|
|
463
|
+
this.$dispatch(this.data.button.event)
|
|
464
|
+
} else {
|
|
465
|
+
this.$dispatch('button')
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
// 关闭模态框
|
|
469
|
+
closeModal () {
|
|
470
|
+
this.showButModal = false
|
|
471
|
+
this.disable_modal_button = false
|
|
472
|
+
},
|
|
473
|
+
onbutchange (index) {
|
|
474
|
+
// 是否禁用按钮
|
|
475
|
+
this.disableModalButton()
|
|
518
476
|
|
|
519
|
-
|
|
477
|
+
if (this.data.button.button_fields[index].onchange) {
|
|
478
|
+
this.$dispatch(this.data.button.button_fields[index].onchange, index)
|
|
479
|
+
} else {
|
|
480
|
+
this.$dispatch('onbutchange', index)
|
|
481
|
+
}
|
|
520
482
|
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
525
|
-
},
|
|
526
|
-
oninput (index) {
|
|
527
|
-
// 是否禁用按钮
|
|
528
|
-
this.disableButton()
|
|
483
|
+
},
|
|
484
|
+
onbutblur (index) {
|
|
485
|
+
this.disableModalButton()
|
|
529
486
|
|
|
530
|
-
|
|
487
|
+
if (this.data.button.button_fields[index].onblur) {
|
|
488
|
+
this.$dispatch(this.data.button.button_fields[index].onblur, index)
|
|
489
|
+
} else {
|
|
490
|
+
this.$dispatch('onbutblur', index)
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
onbutinput (index) {
|
|
494
|
+
// 是否禁用按钮
|
|
495
|
+
this.disableModalButton()
|
|
531
496
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
if (this.data.onetomany[this.onetomany_index].updateEvent === 'default' || !this.data.onetomany[this.onetomany_index].updateEvent) {
|
|
547
|
-
this.$dispatch('onetomanyupdate', this.onetomany_index, this.update_onetomany_index)
|
|
497
|
+
if (this.data.button.button_fields[index].oninput) {
|
|
498
|
+
this.$dispatch(this.data.button.button_fields[index].oninput, index)
|
|
499
|
+
} else {
|
|
500
|
+
this.$dispatch('onbutinput', index)
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
disableModalButton () {
|
|
504
|
+
let flag = false
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
for (const item of this.data.button.button_fields) {
|
|
508
|
+
if (item.required && !item.value) {
|
|
509
|
+
if (item.value === 0) {
|
|
510
|
+
flag = false
|
|
548
511
|
} else {
|
|
549
|
-
|
|
512
|
+
flag = true
|
|
550
513
|
}
|
|
551
514
|
}
|
|
515
|
+
}
|
|
552
516
|
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
517
|
+
this.disable_modal_button = flag
|
|
518
|
+
},
|
|
519
|
+
check_datepicker (index) {
|
|
520
|
+
// 时间格式检测
|
|
521
|
+
if (!isEmpty(this.data.fields[index].value)) {
|
|
522
|
+
|
|
523
|
+
let dateReg = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/
|
|
524
|
+
let timeReg = /^(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
|
|
525
|
+
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$/
|
|
526
|
+
if (this.data.fields[index].format) {
|
|
527
|
+
if (this.data.fields[index].format === 'yyyy-MM-dd') {
|
|
528
|
+
if (!dateReg.test(this.data.fields[index].value)) {
|
|
529
|
+
this.data.fields[index].value = ''
|
|
530
|
+
this.$showAlert(this.data.fields[index].label + '格式错误如:2021-01-01', 'warning', 2000)
|
|
563
531
|
}
|
|
564
532
|
}
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
let item = this.data.onetomany[i].rows[j]
|
|
571
|
-
let count = 0
|
|
572
|
-
for (let k = 0; k < onetomany.fields.length; k++) {
|
|
573
|
-
// 防止初始化的时候没有value
|
|
574
|
-
Vue.set(this.data.onetomany[i].fields[k], 'value', item[this.data.onetomany[i].fields[k].field])
|
|
575
|
-
|
|
576
|
-
if (onetomany.fields[j].required) {
|
|
577
|
-
count++
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
if (count === 0) {
|
|
581
|
-
this.disable_button_onetomany = false
|
|
582
|
-
}
|
|
583
|
-
this.modeltitle = '修改'
|
|
584
|
-
this.modalSize = this.data.onetomany[i].modalSize
|
|
585
|
-
this.onetomany_index = i
|
|
586
|
-
this.update_onetomany_index = j
|
|
587
|
-
|
|
588
|
-
this.$dispatch('openUpdateModel',i,j)
|
|
589
|
-
|
|
590
|
-
this.show = true
|
|
591
|
-
},
|
|
592
|
-
// 添加
|
|
593
|
-
add (index) {
|
|
594
|
-
let count = 0
|
|
595
|
-
for (const item of this.data.onetomany[index].fields) {
|
|
596
|
-
if (item.type === 'datepicker') {
|
|
597
|
-
item.value = new Date().Format('yyyy-MM-dd')
|
|
598
|
-
}
|
|
599
|
-
if (item.required) {
|
|
600
|
-
count++
|
|
533
|
+
if (this.data.fields[index].format === 'HH:mm:ss') {
|
|
534
|
+
if (!timeReg.test(this.data.fields[index].value)) {
|
|
535
|
+
this.data.fields[index].value = ''
|
|
536
|
+
this.$showAlert(this.data.fields[index].label + '格式错误如:00:00:00', 'warning', 2000)
|
|
537
|
+
}
|
|
601
538
|
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
}
|
|
607
|
-
this.modeltitle = '新增'
|
|
608
|
-
this.modalSize = this.data.onetomany[index].modalSize
|
|
609
|
-
this.onetomany_index = index
|
|
610
|
-
|
|
611
|
-
this.$dispatch('openAddModel',index)
|
|
612
|
-
|
|
613
|
-
this.show = true
|
|
614
|
-
},
|
|
615
|
-
// 关闭模态框
|
|
616
|
-
closemodal (val) {
|
|
617
|
-
if (val === 'but'){
|
|
618
|
-
this.disableButton()
|
|
619
|
-
this.showbutmodal = false
|
|
620
|
-
return
|
|
621
|
-
}
|
|
622
|
-
for (const item of this.data.onetomany[this.onetomany_index].fields) {
|
|
623
|
-
item.value = ''
|
|
624
|
-
}
|
|
625
|
-
this.show = false
|
|
626
|
-
this.disable_button_onetomany = true
|
|
627
|
-
this.onetomany_index = null
|
|
628
|
-
this.update_onetomany_index = null
|
|
629
|
-
this.modeltitle = null
|
|
630
|
-
this.modalSize = null
|
|
631
|
-
},
|
|
632
|
-
// 是否禁用模态框按钮
|
|
633
|
-
disableModalButton () {
|
|
634
|
-
let fields = this.data.onetomany[this.onetomany_index].fields
|
|
635
|
-
|
|
636
|
-
let flag = false
|
|
637
|
-
for (const item of fields) {
|
|
638
|
-
if (item.type !== 'checkbox' && item.required && !item.value) {
|
|
639
|
-
if (item.value === 0) {
|
|
640
|
-
flag = false
|
|
641
|
-
} else {
|
|
642
|
-
flag = true
|
|
539
|
+
if (this.data.fields[index].format === 'yyyy-MM-dd HH:mm:ss') {
|
|
540
|
+
if (!datetimeReg.test(this.data.fields[index].value)) {
|
|
541
|
+
this.data.fields[index].value = ''
|
|
542
|
+
this.$showAlert(this.data.fields[index].label + '格式错误如:2021-01-01 00:00:00', 'warning', 2000)
|
|
643
543
|
}
|
|
644
544
|
}
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
if (item.type !== 'checkbox' && item.required) {
|
|
650
|
-
count++
|
|
545
|
+
} else {
|
|
546
|
+
if (!dateReg.test(this.data.fields[index].value)) {
|
|
547
|
+
this.data.fields[index].value = ''
|
|
548
|
+
this.$showAlert(this.data.fields[index].label + '格式错误如:2021-01-01', 'warning', 2000)
|
|
651
549
|
}
|
|
652
550
|
}
|
|
653
|
-
if (count === 0) {
|
|
654
|
-
flag = false
|
|
655
|
-
}
|
|
656
|
-
this.disable_button_onetomany = flag
|
|
657
|
-
},
|
|
658
|
-
// 监听模态框属性失去焦点
|
|
659
|
-
onchange_modal (index) {
|
|
660
|
-
this.disableModalButton()
|
|
661
|
-
this.$dispatch('onchange_modal', this.onetomany_index, index)
|
|
662
|
-
},
|
|
663
|
-
// 监听模态框属性失去焦点
|
|
664
|
-
onblur_modal (index) {
|
|
665
|
-
this.disableModalButton()
|
|
666
|
-
this.$dispatch('onblur_modal', this.onetomany_index, index)
|
|
667
|
-
},
|
|
668
|
-
// input输入属性值发生变化监听
|
|
669
|
-
oninput_modal (index) {
|
|
670
|
-
this.disableModalButton()
|
|
671
|
-
this.$dispatch('oninput_modal', this.onetomany_index, index)
|
|
672
551
|
}
|
|
673
|
-
},
|
|
674
|
-
events: {
|
|
675
|
-
|
|
676
552
|
}
|
|
553
|
+
},
|
|
554
|
+
events: {
|
|
555
|
+
|
|
677
556
|
}
|
|
557
|
+
}
|
|
678
558
|
</script>
|
|
679
559
|
<style>
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
560
|
+
.datepicker{
|
|
561
|
+
width: 100%!important;
|
|
562
|
+
}
|
|
563
|
+
.datepicker-input{
|
|
564
|
+
background-color: #ffffff!important;
|
|
565
|
+
width: 100%!important;
|
|
566
|
+
}
|
|
567
|
+
.datepicker-input:disabled{
|
|
568
|
+
border: 1px solid #DDD!important;
|
|
569
|
+
color: #ACA899!important;
|
|
570
|
+
width: 100%!important;
|
|
571
|
+
}
|
|
692
572
|
</style>
|
|
693
573
|
<style scoped>
|
|
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
|
-
input[type="number"] {
|
|
752
|
-
-moz-appearance: textfield;
|
|
753
|
-
}
|
|
574
|
+
th{
|
|
575
|
+
font-size: 15px !important;
|
|
576
|
+
text-align: center !important;
|
|
577
|
+
background-color: #dfedfb!important;
|
|
578
|
+
color: #666666 !important;
|
|
579
|
+
font-family: PINGFANG-BOLD !important;
|
|
580
|
+
font-weight: normal!important;
|
|
581
|
+
}
|
|
582
|
+
/*清除model中的浮动*/
|
|
583
|
+
.clearfix:after,.clearfix:before{
|
|
584
|
+
display: table;
|
|
585
|
+
}
|
|
586
|
+
.clearfix:after{
|
|
587
|
+
clear: both;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.input_view{
|
|
591
|
+
background-color: #ffffff;
|
|
592
|
+
border-radius: 2px;
|
|
593
|
+
border: solid 1px #c7c7c7!important;
|
|
594
|
+
color: #333333!important;
|
|
595
|
+
font-size: 15px!important;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.input_view[readonly]{
|
|
599
|
+
border: 1px solid #DDD!important;
|
|
600
|
+
color:#ACA899!important;
|
|
601
|
+
}
|
|
602
|
+
.input_view:disabled{
|
|
603
|
+
border: 1px solid #DDD!important;
|
|
604
|
+
color:#ACA899!important;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.control-label-justify {
|
|
608
|
+
display: inline-block;
|
|
609
|
+
vertical-align: top;
|
|
610
|
+
width: 110px;
|
|
611
|
+
text-align: justify;
|
|
612
|
+
font-family: PingFang-SC-Bold;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.control-label-justify::after {
|
|
616
|
+
content: "";
|
|
617
|
+
display: inline-block;
|
|
618
|
+
width: 100%;
|
|
619
|
+
overflow: hidden;
|
|
620
|
+
height: 0;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
input::-webkit-outer-spin-button,
|
|
624
|
+
input::-webkit-inner-spin-button {
|
|
625
|
+
-webkit-appearance: none;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
input[type="number"] {
|
|
629
|
+
-moz-appearance: textfield;
|
|
630
|
+
}
|
|
754
631
|
|
|
755
632
|
</style>
|