apply-clients 3.0.4 → 3.0.5-ys
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/{dist-android/static/.gitkeep → .gradle/5.2.1/gc.properties} +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/doc//346/226/260/347/224/250/346/210/267/350/212/261/345/220/215/345/206/214/345/257/274/345/205/245/346/250/241/346/235/277.xls +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/gradlew +0 -0
- package/gradlew.bat +84 -0
- package/index.html +26 -17
- package/package.json +8 -5
- package/src/App.vue +14 -21
- package/src/apply.js +55 -2
- package/src/applyAndroid.js +1 -1
- package/src/bootstrap/less/aofeng/animate.min.css +11 -0
- package/src/bootstrap/less/aofeng/standard.less +591 -0
- package/src/bootstrap/less/aofeng/themeOne/BinaryTemplate.less +478 -0
- package/src/bootstrap/less/aofeng/themeOne/loginStyle.less +1586 -0
- package/src/bootstrap/less/aofeng/themeOne/systemStyle.less +1915 -0
- package/src/bootstrap/less/aofeng/themeOne.less +10 -0
- package/src/bootstrap/less/aofeng/themeTwo/newStyle1.less +415 -0
- package/src/bootstrap/less/aofeng/themeTwo.less +2 -0
- package/src/bootstrap/less/bootstrap.less +11 -0
- package/src/bootstrap/less/forms.less +2 -2
- package/src/bootstrap/less/manageStyle/manageChile.less +180 -0
- package/src/bootstrap/less/manageStyle/manageStyle.less +1103 -0
- package/src/bootstrap/less/manageStyle/qinhuaStyle.less +116 -0
- package/src/bootstrap/less/manageStyle/safeStyle.less +498 -0
- package/src/bootstrap/less/manageStyle/telephoneanaly.less +92 -0
- package/src/bootstrap/less/navs.less +2 -3
- package/src/bootstrap/less/stand.less +207 -0
- package/src/bootstrap/less/standard.less +503 -0
- package/src/bootstrap/less/systemStyle.less +860 -0
- package/src/bootstrap/less/variables.less +2 -1
- package/src/components/Util.js +26 -22
- package/src/components/app_apply/ApplyDownList.vue +21 -8
- package/src/components/app_apply/ApplyToDoList.vue +94 -59
- package/src/components/app_apply/ApplyUserInfo.vue +3 -3
- package/src/components/app_apply/FieldExploration.vue +2 -2
- package/src/components/app_apply/PlaceControler.vue +16 -19
- package/src/components/app_apply/ServiceControl.vue +1136 -16
- package/src/components/app_apply/ServiceView.vue +395 -167
- package/src/components/app_apply/Ventilation.vue +2 -2
- package/src/components/image/doc.jpg +0 -0
- package/src/components/image/excel.jpg +0 -0
- package/src/components/image/pdf.jpg +0 -0
- package/src/components/image//345/233/276/345/261/20212.png +0 -0
- package/src/components/image//345/233/276/345/261/20213.png +0 -0
- package/src/components/image//345/233/276/345/261/20216.png +0 -0
- package/src/components/image//345/244/232/350/276/271/345/275/2422.png +0 -0
- package/src/components/image//345/244/232/350/276/271/345/275/2422/346/213/267/350/264/235.png +0 -0
- package/src/components/image//346/244/255/345/234/2062.png +0 -0
- package/src/components/image//346/244/255/345/234/2065.png +0 -0
- package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/235.png +0 -0
- package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2352.png +0 -0
- package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2353.png +0 -0
- package/src/components/image//347/273/2044.png +0 -0
- package/src/components/image//347/273/2045.png +0 -0
- package/src/components/image//347/273/2046.png +0 -0
- package/src/components/image//350/257/235/345/212/241/347/273/237/350/256/241/346/225/260/346/215/256/345/261/225/347/244/272.png +0 -0
- package/src/components/product/BatchFunction/BatchPay.vue +694 -0
- package/src/components/product/Bill/BillXSDMakeInfo.vue +1 -1
- package/src/components/product/Function/InstallFunction.vue +17 -13
- package/src/components/product/Function/InstallInfoSelect.vue +293 -71
- package/src/components/product/Function/Service/FunctionServiceControl.vue +50 -5
- package/src/components/product/Function/functions/AddContract.vue +161 -139
- package/src/components/product/Function/functions/BuyerMessage.vue +285 -137
- package/src/components/product/Function/functions/InstallFee.vue +1141 -912
- package/src/components/product/Function/functions/InstallFeeInfo.vue +5 -5
- package/src/components/product/Function/functions/PrestoreFee.vue +4 -4
- package/src/components/product/Function/functions/StopInstall.vue +14 -2
- package/src/components/product/HiddenDangersInProjects/AddHiddenDangers.vue +965 -0
- package/src/components/product/HiddenDangersInProjects/HiddenProjectList.vue +433 -0
- package/src/components/product/HiddenDangersInProjects/HiddenProjectSchedule.vue +146 -0
- package/src/components/product/MaterialBatchList.vue +109 -0
- package/src/components/product/MaterialBatchManage.vue +34 -0
- package/src/components/product/Procedures/ProceduresDataGrid.vue +1022 -0
- package/src/components/product/Process/ExplorationSelect.vue +767 -416
- package/src/components/product/Process/ExplorationUser.vue +96 -51
- package/src/components/product/Process/MaterialUseList.vue +159 -0
- package/src/components/product/Process/ModifyUserFiles.vue +1 -1
- package/src/components/product/Process/ProcessInfo/history_control.vue +29 -6
- package/src/components/product/Process/Processes/CustomerBuildingMessage.vue +5 -5
- package/src/components/product/Process/Processes/CustomerEquipmentMessage.vue +1 -1
- package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +499 -210
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +1457 -753
- package/src/components/product/Process/Processes/ProjectSettlement.vue +535 -24
- package/src/components/product/Process/Processes/ReceiveBatch.vue +301 -121
- package/src/components/product/Process/Processes/Service/ApplyChangeHistory.vue +105 -0
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +87 -68
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +2521 -422
- package/src/components/product/Process/ShowBackReason.vue +1 -1
- package/src/components/product/ProjectManagement/AddProjectSchedule.vue +896 -0
- package/src/components/product/ProjectManagement/ProjectList.vue +406 -0
- package/src/components/product/ProjectManagement/ProjectSchedule.vue +144 -0
- package/src/components/product/ReportForm/PaymentRecord.vue +801 -0
- package/src/components/product/ReportForm/PaymentRecordAdd.vue +105 -0
- package/src/components/product/ReportForm/PaymentRecordBad.vue +1273 -0
- package/src/components/product/ReportForm/PaymentRecordDetailed.vue +472 -0
- package/src/components/product/ReportForm/PaymentRecordTooBad.vue +60 -0
- package/src/components/product/ReportForm/PaymentReport.vue +532 -0
- package/src/components/product/ReportForm/ProjectReport.vue +447 -0
- package/src/components/product/ReportForm/SettlementReport.vue +336 -0
- package/src/components/product/ReportForm/SummaryReport.vue +451 -0
- package/src/components/product/ReportForm/UserReport.vue +402 -0
- package/src/components/product/ServiceView.vue +383 -123
- package/src/components/product/Statistics/ApplyStatisticsROOT.vue +27 -0
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +247 -23
- package/src/components/product/Supervisory/SupervisoryControl.vue +104 -44
- package/src/components/product/Supervisory/SupervisoryList.vue +412 -54
- package/src/components/product/Supervisory/SupervisoryhCart.vue +6 -3
- package/src/components/product/VueUtils/ApplyUpload.vue +310 -0
- package/src/components/product/VueUtils/Tree.vue +330 -0
- package/src/components/product/VueUtils/rightview/InstallCardList2.vue +35 -44
- package/src/components/product/VueUtils/rightview/carddetail/BuildFeeDetail2.vue +1 -1
- package/src/components/product/VueUtils/rightview/carddetail/ChangeFeeDetail2.vue +1 -1
- package/src/components/product/VueUtils/rightview/carddetail/ReduceFeeDetail2.vue +1 -1
- package/src/components/product/VueUtils/rightview/carddetail/StopApplyDetail2.vue +2 -2
- package/src/main.js +4 -2
- package/src/stores/ApplyLoadParams.js +1 -1
- package/src/stores/PagedListLogic.js +173 -0
- package/{dist-android/static/denglu.png → static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png} +0 -0
- package/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
- package/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
- package/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
- package/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
- package/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
- package/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
- package/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
- package/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
- package/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
- package/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
- package/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
- package/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
- package/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
- package/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
- package/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
- package/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
- package/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
- package/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
- package/static/newStyle/clear.png +0 -0
- package/static/newStyle/fife.png +0 -0
- package/static/newStyle/hidden.png +0 -0
- package/static/newStyle/label-clear.png +0 -0
- package/{dist-android/static/psicon.png → static/newStyle/left-img.png} +0 -0
- package/static/newStyle/list_ok.png +0 -0
- package/static/newStyle/login-check.png +0 -0
- package/static/newStyle/login-con.png +0 -0
- package/static/newStyle/login-do.gif +0 -0
- package/static/newStyle/login-f.png +0 -0
- package/static/newStyle/login-info.png +0 -0
- package/static/newStyle/login-left.png +0 -0
- package/static/newStyle/login-org.png +0 -0
- package/static/newStyle/login-pwd.png +0 -0
- package/static/newStyle/login-user.png +0 -0
- package/static/newStyle/loginbg.gif +0 -0
- package/static/newStyle/loginbg1280.gif +0 -0
- package/static/newStyle/loginbg1366.gif +0 -0
- package/static/newStyle/setting.png +0 -0
- package/static/newStyle/setting1.png +0 -0
- package/static/newStyle/shirk.png +0 -0
- package/static/newStyle/stretch_bottom.png +0 -0
- package/static/newStyle/stretch_left.png +0 -0
- package/static/newStyle/stretch_right.png +0 -0
- package/static/newStyle/stretch_top.png +0 -0
- package/static/newStyle/system-off.png +0 -0
- package/success.rar +0 -0
- package/.npmignore +0 -12
- package/dist-android/index.html +0 -3
- package/dist-android/static/0.js +0 -2
- package/dist-android/static/0.js.map +0 -1
- package/dist-android/static/1.js +0 -2
- package/dist-android/static/1.js.map +0 -1
- package/dist-android/static/10.js +0 -2
- package/dist-android/static/10.js.map +0 -1
- package/dist-android/static/11.js +0 -2
- package/dist-android/static/11.js.map +0 -1
- package/dist-android/static/12.js +0 -2
- package/dist-android/static/12.js.map +0 -1
- package/dist-android/static/13.js +0 -2
- package/dist-android/static/13.js.map +0 -1
- package/dist-android/static/14.js +0 -2
- package/dist-android/static/14.js.map +0 -1
- package/dist-android/static/15.js +0 -2
- package/dist-android/static/15.js.map +0 -1
- package/dist-android/static/16.js +0 -2
- package/dist-android/static/16.js.map +0 -1
- package/dist-android/static/17.js +0 -2
- package/dist-android/static/17.js.map +0 -1
- package/dist-android/static/18.js +0 -2
- package/dist-android/static/18.js.map +0 -1
- package/dist-android/static/19.js +0 -2
- package/dist-android/static/19.js.map +0 -1
- package/dist-android/static/2.js +0 -2
- package/dist-android/static/2.js.map +0 -1
- package/dist-android/static/20.js +0 -2
- package/dist-android/static/20.js.map +0 -1
- package/dist-android/static/21.js +0 -2
- package/dist-android/static/21.js.map +0 -1
- package/dist-android/static/22.js +0 -2
- package/dist-android/static/22.js.map +0 -1
- package/dist-android/static/23.js +0 -2
- package/dist-android/static/23.js.map +0 -1
- package/dist-android/static/24.js +0 -2
- package/dist-android/static/24.js.map +0 -1
- package/dist-android/static/25.js +0 -2
- package/dist-android/static/25.js.map +0 -1
- package/dist-android/static/26.js +0 -2
- package/dist-android/static/26.js.map +0 -1
- package/dist-android/static/27.js +0 -2
- package/dist-android/static/27.js.map +0 -1
- package/dist-android/static/28.js +0 -2
- package/dist-android/static/28.js.map +0 -1
- package/dist-android/static/29.js +0 -2
- package/dist-android/static/29.js.map +0 -1
- package/dist-android/static/3.js +0 -2
- package/dist-android/static/3.js.map +0 -1
- package/dist-android/static/30.js +0 -2
- package/dist-android/static/30.js.map +0 -1
- package/dist-android/static/31.js +0 -2
- package/dist-android/static/31.js.map +0 -1
- package/dist-android/static/32.js +0 -2
- package/dist-android/static/32.js.map +0 -1
- package/dist-android/static/33.js +0 -2
- package/dist-android/static/33.js.map +0 -1
- package/dist-android/static/34.js +0 -2
- package/dist-android/static/34.js.map +0 -1
- package/dist-android/static/35.js +0 -2
- package/dist-android/static/35.js.map +0 -1
- package/dist-android/static/36.js +0 -2
- package/dist-android/static/36.js.map +0 -1
- package/dist-android/static/37.js +0 -2
- package/dist-android/static/37.js.map +0 -1
- package/dist-android/static/38.js +0 -2
- package/dist-android/static/38.js.map +0 -1
- package/dist-android/static/39.js +0 -2
- package/dist-android/static/39.js.map +0 -1
- package/dist-android/static/4.js +0 -2
- package/dist-android/static/4.js.map +0 -1
- package/dist-android/static/40.js +0 -2
- package/dist-android/static/40.js.map +0 -1
- package/dist-android/static/41.js +0 -2
- package/dist-android/static/41.js.map +0 -1
- package/dist-android/static/42.js +0 -2
- package/dist-android/static/42.js.map +0 -1
- package/dist-android/static/43.js +0 -2
- package/dist-android/static/43.js.map +0 -1
- package/dist-android/static/44.js +0 -2
- package/dist-android/static/44.js.map +0 -1
- package/dist-android/static/45.js +0 -2
- package/dist-android/static/45.js.map +0 -1
- package/dist-android/static/46.js +0 -2
- package/dist-android/static/46.js.map +0 -1
- package/dist-android/static/47.js +0 -2
- package/dist-android/static/47.js.map +0 -1
- package/dist-android/static/48.js +0 -2
- package/dist-android/static/48.js.map +0 -1
- package/dist-android/static/49.js +0 -2
- package/dist-android/static/49.js.map +0 -1
- package/dist-android/static/5.js +0 -2
- package/dist-android/static/5.js.map +0 -1
- package/dist-android/static/50.js +0 -2
- package/dist-android/static/50.js.map +0 -1
- package/dist-android/static/51.js +0 -2
- package/dist-android/static/51.js.map +0 -1
- package/dist-android/static/52.js +0 -2
- package/dist-android/static/52.js.map +0 -1
- package/dist-android/static/53.js +0 -2
- package/dist-android/static/53.js.map +0 -1
- package/dist-android/static/54.js +0 -2
- package/dist-android/static/54.js.map +0 -1
- package/dist-android/static/55.js +0 -2
- package/dist-android/static/55.js.map +0 -1
- package/dist-android/static/56.js +0 -2
- package/dist-android/static/56.js.map +0 -1
- package/dist-android/static/57.js +0 -2
- package/dist-android/static/57.js.map +0 -1
- package/dist-android/static/58.js +0 -2
- package/dist-android/static/58.js.map +0 -1
- package/dist-android/static/59.js +0 -2
- package/dist-android/static/59.js.map +0 -1
- package/dist-android/static/60.js +0 -2
- package/dist-android/static/60.js.map +0 -1
- package/dist-android/static/61.js +0 -2
- package/dist-android/static/61.js.map +0 -1
- package/dist-android/static/62.js +0 -2
- package/dist-android/static/62.js.map +0 -1
- package/dist-android/static/63.js +0 -2
- package/dist-android/static/63.js.map +0 -1
- package/dist-android/static/64.js +0 -2
- package/dist-android/static/64.js.map +0 -1
- package/dist-android/static/65.js +0 -2
- package/dist-android/static/65.js.map +0 -1
- package/dist-android/static/66.js +0 -2
- package/dist-android/static/66.js.map +0 -1
- package/dist-android/static/67.js +0 -2
- package/dist-android/static/67.js.map +0 -1
- package/dist-android/static/68.js +0 -2
- package/dist-android/static/68.js.map +0 -1
- package/dist-android/static/69.js +0 -2
- package/dist-android/static/69.js.map +0 -1
- package/dist-android/static/7.js +0 -6
- package/dist-android/static/7.js.map +0 -1
- package/dist-android/static/70.js +0 -2
- package/dist-android/static/70.js.map +0 -1
- package/dist-android/static/71.js +0 -2
- package/dist-android/static/71.js.map +0 -1
- package/dist-android/static/72.js +0 -2
- package/dist-android/static/72.js.map +0 -1
- package/dist-android/static/73.js +0 -2
- package/dist-android/static/73.js.map +0 -1
- package/dist-android/static/74.js +0 -2
- package/dist-android/static/74.js.map +0 -1
- package/dist-android/static/75.js +0 -2
- package/dist-android/static/75.js.map +0 -1
- package/dist-android/static/76.js +0 -2
- package/dist-android/static/76.js.map +0 -1
- package/dist-android/static/8.js +0 -2
- package/dist-android/static/8.js.map +0 -1
- package/dist-android/static/9.js +0 -3
- package/dist-android/static/9.js.map +0 -1
- package/dist-android/static/app.css +0 -2
- package/dist-android/static/app.css.map +0 -1
- package/dist-android/static/app.js +0 -80
- package/dist-android/static/app.js.map +0 -1
- package/dist-android/static/batchleft.png +0 -0
- package/dist-android/static/batchright.png +0 -0
- package/dist-android/static/bluemainbg.jpg +0 -0
- package/dist-android/static/config.json +0 -7
- package/dist-android/static/glyphicons-halflings-regular.eot +0 -0
- package/dist-android/static/glyphicons-halflings-regular.svg +0 -288
- package/dist-android/static/glyphicons-halflings-regular.ttf +0 -0
- package/dist-android/static/glyphicons-halflings-regular.woff +0 -0
- package/dist-android/static/glyphicons-halflings-regular.woff2 +0 -0
- package/dist-android/static/huangtengbiaozhi.png +0 -0
- package/dist-android/static/jingyin.jpg +0 -0
- package/dist-android/static/login_bg.jpg +0 -0
- package/dist-android/static/login_title.png +0 -0
- package/dist-android/static/login_title1.png +0 -0
- package/dist-android/static/loginbg.jpg +0 -0
- package/dist-android/static/loginlogo.png +0 -0
- package/dist-android/static/main_logo.png +0 -0
- package/dist-android/static/mainbg.jpg +0 -0
- package/dist-android/static/menulogo.png +0 -0
- package/dist-android/static/newmainbg.jpg +0 -0
- package/dist-android/static/singleleft.png +0 -0
- package/dist-android/static/singleright.png +0 -0
- package/dist-android/static/treeopen.png +0 -0
- package/dist-android/static/treeout.png +0 -0
- package/dist-android/static/treeset.png +0 -0
- package/dist-android/static/usericon.png +0 -0
- package/dist-android/static/workflow_apply.json +0 -766
- package/dist-android/static/xinxi.png +0 -0
- package/dist-android/static//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
- package/dist-android/static//345/256/211/346/243/200/345/257/274/350/210/252/347/253/226/345/261/2173.png +0 -0
- package/dist-android/static//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
- package/dist-android/static//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
- package/src/assets/shipin1.mp4 +0 -0
- package/yarn.lock +0 -9008
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="auto select-overspread" v-if="refresh">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<!--</div>-->
|
|
3
|
+
<div class="panel panel-info" v-if="!data.titlehidden">
|
|
4
|
+
<div class="panel-heading">
|
|
5
|
+
<h3 class="panel-title">
|
|
6
|
+
<span>{{data.title}}</span>
|
|
7
|
+
</h3>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
11
10
|
<validator name="v">
|
|
12
11
|
<form class="form-horizontal">
|
|
13
|
-
<div class="col-sm-
|
|
12
|
+
<div class="col-sm-12 form-group">
|
|
14
13
|
<div v-for="(index,item) in data.fields">
|
|
15
14
|
<!--input-->
|
|
16
|
-
<div style="height: 34px
|
|
15
|
+
<div :style="item.style? item.style+';height: 34px;':'height: 34px;'"
|
|
16
|
+
v-if="item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email'"
|
|
17
|
+
v-show="!item.hidden"
|
|
17
18
|
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
|
|
18
|
-
<label :
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
<label :style="item.label_style? item.label_style:''"
|
|
20
|
+
:class="item.label_bootstraped?item.label_bootstraped+' control-label-justify control-label':item.label_style?'':'control-label-justify control-label col-sm-6'">{{item.label}}</label>
|
|
21
|
+
<div :style="item.value_style? item.value_style:''"
|
|
22
|
+
:class="item.value_bootstraped?item.value_bootstraped:item.value_style?'':'col-sm-6'">
|
|
23
|
+
<input class="form-control" style="background-color: #f7fbff;"
|
|
21
24
|
:type="item.type"
|
|
22
25
|
v-model="data.fields[index].value"
|
|
23
26
|
:placeholder="item.placeholder"
|
|
@@ -27,35 +30,47 @@
|
|
|
27
30
|
@change="select_change(index),disabled_check(data.fields[index].required,data.fields[index].value)"
|
|
28
31
|
@blur="select_change(index),check_disable"
|
|
29
32
|
/>
|
|
33
|
+
<span
|
|
34
|
+
v-if="data.fields[index].error&&data.fields[index].error.msg&&data.fields[index].error.flag"
|
|
35
|
+
style="color: red">{{data.fields[index].error.msg}}</span>
|
|
30
36
|
</div>
|
|
31
37
|
</div>
|
|
32
38
|
<!--时间datepicker-->
|
|
33
|
-
<div style="height: 34px" v-if="item.type==='datepicker'"
|
|
39
|
+
<div :style="item.style? item.style+';height: 34px;':'height: 34px;'" v-if="item.type==='datepicker'"
|
|
40
|
+
v-show="!item.hidden"
|
|
34
41
|
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
|
|
35
|
-
<label
|
|
42
|
+
<label
|
|
43
|
+
:class="item.label_bootstraped?item.label_bootstraped+' control-label-justify control-label':'control-label control-label-justify col-sm-6'">{{item.label}}</label>
|
|
36
44
|
<div :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'">
|
|
37
45
|
<datepicker
|
|
46
|
+
@change="select_change(index),disabled_check(data.fields[index].required,data.fields[index].value)"
|
|
47
|
+
@blur="select_change(index),check_disable"
|
|
38
48
|
:placeholder="item.placeholder"
|
|
39
49
|
:value.sync="data.fields[index].value"
|
|
40
|
-
:format="'yyyy-MM-dd
|
|
50
|
+
:format="'yyyy-MM-dd'"
|
|
41
51
|
v-model="data.fields[index].value"
|
|
42
|
-
:readonly=
|
|
52
|
+
:readonly="showadd_fields.fields[index].readonly"
|
|
43
53
|
:disabled="item.disabled"
|
|
44
|
-
@blur="check_disable"
|
|
45
54
|
:show-reset-button="reset">
|
|
46
55
|
</datepicker>
|
|
47
56
|
</div>
|
|
57
|
+
<span
|
|
58
|
+
v-if="showadd_fields.fields[index].error&&showadd_fields.fields[index].error.msg&&showadd_fields.fields[index].error.flag"
|
|
59
|
+
style="color: red">{{showadd_fields.fields[index].error.msg}}</span>
|
|
48
60
|
</div>
|
|
49
61
|
|
|
50
62
|
<!--textarea-->
|
|
51
|
-
<div
|
|
63
|
+
<div :style="item.style? item.style:'height: 34px;'" v-if="item.type==='textarea'" v-show="!item.hidden"
|
|
52
64
|
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-12 form-group']">
|
|
53
|
-
<label :
|
|
54
|
-
|
|
65
|
+
<label :style="item.label_style? item.label_style:''"
|
|
66
|
+
:class="item.label_bootstraped?item.label_bootstraped+' control-label-justify control-label':item.label_style?'':'control-label-justify control-label col-sm-3'">{{item.label}}</label>
|
|
67
|
+
<div :style="item.value_style? item.value_style:''"
|
|
68
|
+
:class="item.value_bootstraped?item.value_bootstraped:item.value_style?'':'col-sm-10'">
|
|
55
69
|
<textarea
|
|
56
70
|
:readonly="item.readonly"
|
|
57
71
|
:disabled="item.disabled"
|
|
58
72
|
class="form-control"
|
|
73
|
+
style="background-color: #f7fbff;"
|
|
59
74
|
:rows="item.rows"
|
|
60
75
|
v-model="data.fields[index].value"
|
|
61
76
|
@change="disabled_check(data.fields[index].required,data.fields[index].value)"
|
|
@@ -66,10 +81,10 @@
|
|
|
66
81
|
</div>
|
|
67
82
|
|
|
68
83
|
<!--radio-->
|
|
69
|
-
<div
|
|
84
|
+
<div v-if="item.type==='radio'"
|
|
70
85
|
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-12 form-group']">
|
|
71
86
|
<label v-if="item.label"
|
|
72
|
-
:class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-2'">{{item.label}}
|
|
87
|
+
:class="item.label_bootstraped?item.label_bootstraped+' control-label-justify control-label':'control-label-justify control-label col-sm-2'">{{item.label}}</label>
|
|
73
88
|
<div
|
|
74
89
|
:class="item.value_bootstraped?item.value_bootstraped:item.items.length%2 == 0?'col-sm-5': 'col-sm-3'"
|
|
75
90
|
v-for="(index2,row) in item.items">
|
|
@@ -86,7 +101,8 @@
|
|
|
86
101
|
<!--select-->
|
|
87
102
|
<div style="height: 34px" v-if="item.type==='select'" v-show="!item.hidden"
|
|
88
103
|
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
|
|
89
|
-
<label
|
|
104
|
+
<label
|
|
105
|
+
:class="item.label_bootstraped?item.label_bootstraped+' control-label control-label-justify':'control-label-justify control-label col-sm-6'">{{item.label}}</label>
|
|
90
106
|
<input-select :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'" @blur="check_disable"
|
|
91
107
|
@change="select_change(index),disabled_check(data.fields[index].required,data.fields[index].value)"
|
|
92
108
|
:readonly="item.readonly" :disabled="item.disabled" :value.sync="data.fields[index].value"
|
|
@@ -99,9 +115,9 @@
|
|
|
99
115
|
<div v-if="item.type==='checkbox'"
|
|
100
116
|
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-12 form-group']">
|
|
101
117
|
<label v-if="item.label"
|
|
102
|
-
:class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-2'">{{item.label}}
|
|
118
|
+
:class="item.label_bootstraped?item.label_bootstraped+' control-label ':'control-label col-sm-2'">{{item.label}}</label>
|
|
103
119
|
<div style="margin-top: 6px"
|
|
104
|
-
:class="item.value_bootstraped?item.value_bootstraped:'control-label
|
|
120
|
+
:class="item.value_bootstraped?item.value_bootstraped:'control-label col-sm-2'"
|
|
105
121
|
v-for="(index2,row) in item.items">
|
|
106
122
|
<label class="font-size form-group col-sm-6">{{row.label}}</label>
|
|
107
123
|
<input :readonly="item.readonly" :disabled="item.disabled" type="checkbox" class="col-sm-6"
|
|
@@ -110,22 +126,25 @@
|
|
|
110
126
|
</div>
|
|
111
127
|
</div>
|
|
112
128
|
<!-- onetomany -->
|
|
113
|
-
<div class="col-sm-12"
|
|
129
|
+
<div class="col-sm-12" v-for="(i,datagrid) in data.onetomany">
|
|
130
|
+
<h5 v-show="datagrid.title" style="text-align: center;color: darkcyan;background-color: #00A3F0">
|
|
131
|
+
{{datagrid.title}}</h5>
|
|
114
132
|
<table v-show="!datagrid.hidden" class="table table-bordered table-striped table-hover">
|
|
115
|
-
<tr style="background-color: #00A3F0"
|
|
133
|
+
<tr style="background-color: #00A3F0">
|
|
116
134
|
<th style="text-align: center;border-color: #00A3F0"><font color="white">序号</font></th>
|
|
117
135
|
<th v-for="labels in datagrid.fields" style="text-align: center;border-color: #00A3F0">
|
|
118
136
|
<nobr><font color="white">{{labels.label}}</font></nobr>
|
|
119
137
|
</th>
|
|
120
|
-
<th style="text-align: center;border-color: #00A3F0;padding: 0px"
|
|
121
|
-
<button type="button" @click="$dispatch('add',i)" class="btn btn-warning"
|
|
138
|
+
<th style="text-align: center;border-color: #00A3F0;padding: 0px">
|
|
139
|
+
<button type="button" @click="$dispatch('add',i)" class="btn btn-warning"
|
|
140
|
+
v-if="!data.onetomany[i].nopower && showprint">
|
|
122
141
|
+
|
|
123
142
|
</button>
|
|
124
143
|
</th>
|
|
125
144
|
</tr>
|
|
126
145
|
<tr v-for="(j,row) in model.rows[i]">
|
|
127
146
|
<td style="text-align: center">{{$index+1}}</td>
|
|
128
|
-
<td
|
|
147
|
+
<td v-for="key in surBodyData[i]" style="text-align: center">
|
|
129
148
|
{{row[key]}}
|
|
130
149
|
</td>
|
|
131
150
|
<td style="text-align: center">
|
|
@@ -135,37 +154,41 @@
|
|
|
135
154
|
</table>
|
|
136
155
|
</div>
|
|
137
156
|
</div>
|
|
138
|
-
<div class="col-sm-
|
|
139
|
-
<div class="form-group col-sm-
|
|
140
|
-
<label class=" col-sm-4 control-label">所属公司:</label>
|
|
141
|
-
<div class="col-sm-
|
|
157
|
+
<div class="col-sm-12 form-group text-center" style="padding-top:8px">
|
|
158
|
+
<div class="form-group col-sm-3 center-block">
|
|
159
|
+
<label class=" col-sm-4 control-label control-label-justify">所属公司:</label>
|
|
160
|
+
<div class="col-sm-8">
|
|
142
161
|
<input class="form-control" type="text" v-model="model.f_filiale" disabled>
|
|
143
162
|
</div>
|
|
144
163
|
</div>
|
|
145
|
-
<div class="col-sm-
|
|
146
|
-
|
|
147
|
-
|
|
164
|
+
<!-- <div class="col-sm-1 form-group center-block">-->
|
|
165
|
+
<!-- </div>-->
|
|
166
|
+
<div class="col-sm-3 form-group center-block">
|
|
167
|
+
<label class="control-label control-label-justify col-sm-4">部门:</label>
|
|
168
|
+
<div class="col-sm-8">
|
|
148
169
|
<input type="text" class="form-control" disabled v-model="model.f_parentname"/>
|
|
149
170
|
</div>
|
|
150
171
|
</div>
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
<div class="col-sm-
|
|
154
|
-
<label class="control-label col-sm-4"
|
|
155
|
-
<div class="col-sm-
|
|
156
|
-
<input type="text" class="form-control" disabled v-model="model.
|
|
172
|
+
<!-- <div class="col-sm-1 form-group center-block">-->
|
|
173
|
+
<!-- </div>-->
|
|
174
|
+
<div class="col-sm-3 form-group center-block">
|
|
175
|
+
<label class="control-label control-label-justify col-sm-4">操作人:</label>
|
|
176
|
+
<div class="col-sm-8 ">
|
|
177
|
+
<input type="text" class="form-control" disabled v-model="model.f_operator"/>
|
|
157
178
|
</div>
|
|
158
179
|
</div>
|
|
159
|
-
<div class="col-sm-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
180
|
+
<!-- <div class="col-sm-1 form-group center-block">-->
|
|
181
|
+
<!-- </div>-->
|
|
182
|
+
<div class="col-sm-3 form-group center-block">
|
|
183
|
+
<label class="control-label control-label-justify col-sm-4">操作日期:</label>
|
|
184
|
+
<div class="col-sm-8">
|
|
185
|
+
<input type="text" class="form-control" disabled v-model="model.f_operate_date"/>
|
|
163
186
|
</div>
|
|
164
187
|
</div>
|
|
165
188
|
</div>
|
|
166
189
|
</form>
|
|
167
190
|
</validator>
|
|
168
|
-
<div class="from-group col-sm-
|
|
191
|
+
<div class="from-group col-sm-11">
|
|
169
192
|
<center>
|
|
170
193
|
<!-- 按钮组 -->
|
|
171
194
|
<button v-for="(index,button) in data.buttons"
|
|
@@ -205,49 +228,81 @@
|
|
|
205
228
|
|
|
206
229
|
|
|
207
230
|
<!-- onetomany新增模态框 -->
|
|
208
|
-
<
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
<div
|
|
215
|
-
<
|
|
216
|
-
<
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
+
<div class="auto onetomanymodal"
|
|
232
|
+
style="z-index:8888;box-shadow: 0px 0px 100px 10px grey;position: fixed;"
|
|
233
|
+
v-if="showadd">
|
|
234
|
+
|
|
235
|
+
<div class="auto">
|
|
236
|
+
|
|
237
|
+
<div style="padding-top: 15px;padding-left: 15px;padding-right: 15px;">
|
|
238
|
+
<button type="button" class="close" @click="closemodal(modeltitle)"><span>×</span></button>
|
|
239
|
+
<span class="modal-title" style="border-bottom: 1px solid #e5e5e5;"><font
|
|
240
|
+
size="3">{{modeltitle}}</font></span>
|
|
241
|
+
</div>
|
|
242
|
+
|
|
243
|
+
<div style="padding-top: 15px;border-top: 0px solid #e5e5e5;border-bottom: 0px solid #e5e5e5;">
|
|
244
|
+
<div class="col-sm-12" v-for="(index,showadd_field) in showadd_fields.fields" v-if="refresh_modal">
|
|
245
|
+
<label v-show="!showadd_field.hidden" class="control-label col-sm-3" style="margin-top: 10px">{{showadd_field.label}}:</label>
|
|
246
|
+
<div class="col-sm-7" v-show="!showadd_field.hidden">
|
|
247
|
+
<!--时间datepicker-->
|
|
248
|
+
<div v-if="showadd_field.type=='datepicker'"
|
|
249
|
+
:class="[showadd_fields[index].required&&!(showadd_fields.fields[index].value) ? 'has-error' : '']">
|
|
250
|
+
<div>
|
|
251
|
+
<datepicker
|
|
252
|
+
@change="select_change_modal(index),disabled_check_modal(showadd_fields.fields[index].required,showadd_fields.fields[index].value)"
|
|
253
|
+
@blur="check_disable_modal,disabled_check_modal(showadd_fields.fields[index].required,showadd_fields.fields[index].value)"
|
|
254
|
+
:placeholder="showadd_field.placeholder"
|
|
255
|
+
:value.sync="showadd_fields.fields[index].value"
|
|
256
|
+
:format="'yyyy-MM-dd'"
|
|
257
|
+
v-model="showadd_fields.fields[index].value"
|
|
258
|
+
:readonly="showadd_fields.fields[index].readonly"
|
|
259
|
+
:disabled="showadd_fields.fields[index].disabled"
|
|
260
|
+
:show-reset-button="reset">
|
|
261
|
+
</datepicker>
|
|
262
|
+
</div>
|
|
231
263
|
</div>
|
|
264
|
+
<!--select-->
|
|
265
|
+
<input-select
|
|
266
|
+
@change="select_change_modal(index),disabled_check_modal(showadd_fields.fields[index].required,showadd_fields.fields[index].value)"
|
|
267
|
+
v-if="showadd_field.type=='select'"
|
|
268
|
+
@blur="check_disable_modal,disabled_check_modal(showadd_fields.fields[index].required,showadd_fields.fields[index].value)"
|
|
269
|
+
:mouseout="check_disable_modal,disabled_check_modal(showadd_fields.fields[index].required,showadd_fields.fields[index].value)"
|
|
270
|
+
:value.sync="showadd_fields.fields[index].value"
|
|
271
|
+
v-model="showadd_fields.fields[index].value"
|
|
272
|
+
:options='showadd_fields.fields[index].options'>
|
|
273
|
+
</input-select>
|
|
274
|
+
<!-- input -->
|
|
275
|
+
<input :type="showadd_field.type"
|
|
276
|
+
@change="select_change_modal(index),check_disable_modal,disabled_check_modal(showadd_fields.fields[index].required,showadd_fields.fields[index].value)"
|
|
277
|
+
v-if="(showadd_field.type=='input'||showadd_field.type=='number')&&!showadd_field.hidden"
|
|
278
|
+
@blur="check_disable_modal,disabled_check_modal(showadd_fields.fields[index].required,showadd_fields.fields[index].value)"
|
|
279
|
+
:mouseout="check_disable_modal,disabled_check_modal(showadd_fields.fields[index].required,showadd_fields.fields[index].value)"
|
|
280
|
+
:readonly="showadd_field.readonly" class="form-control"
|
|
281
|
+
v-model="showadd_fields.fields[index].value"
|
|
282
|
+
:value.sync="showadd_fields[index].value"/>
|
|
283
|
+
<span
|
|
284
|
+
v-if="showadd_fields.fields[index].error&&showadd_fields.fields[index].error.msg&&showadd_fields.fields[index].error.flag"
|
|
285
|
+
style="color: red">{{showadd_fields.fields[index].error.msg}}</span>
|
|
232
286
|
</div>
|
|
233
|
-
<!--select-->
|
|
234
|
-
<input-select @change="select_change(index)" v-if="showadd_field.type=='select'" :value.sync="showadd_fields[index].value"
|
|
235
|
-
v-model="showadd_fields[index].value"
|
|
236
|
-
:options='showadd_fields.fields[index].options'>
|
|
237
|
-
</input-select>
|
|
238
|
-
<!-- input -->
|
|
239
|
-
<input @change="select_change(index)" v-if="showadd_field.type=='input'&&!showadd_field.hidden" :readonly ="showadd_field.readonly" class="form-control" v-model="showadd_fields[index].value" :value.sync="showadd_fields[index].value"/>
|
|
240
287
|
</div>
|
|
241
288
|
</div>
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
289
|
+
|
|
290
|
+
<div style="padding-top: 15px;padding-left: 15px;padding-right: 15px;text-align: right;">
|
|
291
|
+
<button :class="disable_button_modal?'btn btn-default':'btn btn-primary'" v-show="showadd"
|
|
292
|
+
:disabled="disable_button_modal" type="button" @click="acknowledge(modeltitle)">
|
|
293
|
+
确认
|
|
294
|
+
</button>
|
|
295
|
+
</div>
|
|
296
|
+
|
|
297
|
+
</div>
|
|
298
|
+
|
|
299
|
+
</div>
|
|
300
|
+
|
|
247
301
|
</div>
|
|
248
302
|
</template>
|
|
249
303
|
<script>
|
|
250
|
-
import Vue from 'vue'
|
|
304
|
+
import Vue from 'vue'
|
|
305
|
+
import {HttpResetClass} from 'vue-client'
|
|
251
306
|
// Date格式化
|
|
252
307
|
Date.prototype.Format = function (fmt) {
|
|
253
308
|
var o = {
|
|
@@ -267,7 +322,15 @@ import Vue from 'vue'
|
|
|
267
322
|
|
|
268
323
|
export default {
|
|
269
324
|
title: '报建业务通用组件',
|
|
270
|
-
props:
|
|
325
|
+
props: {
|
|
326
|
+
data: {
|
|
327
|
+
type: Object
|
|
328
|
+
},
|
|
329
|
+
showprint: {
|
|
330
|
+
type: Boolean,
|
|
331
|
+
default: true
|
|
332
|
+
}
|
|
333
|
+
},
|
|
271
334
|
data() {
|
|
272
335
|
return {
|
|
273
336
|
data: {
|
|
@@ -275,10 +338,10 @@ import Vue from 'vue'
|
|
|
275
338
|
fields: []
|
|
276
339
|
}
|
|
277
340
|
},
|
|
278
|
-
surBodyData:[],
|
|
341
|
+
surBodyData: [],
|
|
279
342
|
refresh: true, // 控制重新渲染
|
|
280
343
|
model: {
|
|
281
|
-
rows:[],
|
|
344
|
+
rows: [],
|
|
282
345
|
button: {
|
|
283
346
|
button_name: null,
|
|
284
347
|
button_index: null
|
|
@@ -291,9 +354,13 @@ import Vue from 'vue'
|
|
|
291
354
|
showadd: false, // onetomany 新增模态框
|
|
292
355
|
showadd_fields: [], // onetomany 新增模态框的字段配置
|
|
293
356
|
data: null,
|
|
294
|
-
|
|
357
|
+
modeltitle: '',
|
|
358
|
+
tempid: null,
|
|
359
|
+
showadd_index: null,
|
|
295
360
|
showmodal: false,
|
|
296
|
-
disable_button: true
|
|
361
|
+
disable_button: true,
|
|
362
|
+
disable_button_modal: true,
|
|
363
|
+
refresh_modal: true
|
|
297
364
|
}
|
|
298
365
|
},
|
|
299
366
|
created() {
|
|
@@ -301,26 +368,141 @@ import Vue from 'vue'
|
|
|
301
368
|
this.initializtion()
|
|
302
369
|
},
|
|
303
370
|
events: {
|
|
304
|
-
'add'(index){
|
|
371
|
+
async 'add'(index) {
|
|
305
372
|
let templet = new Object()
|
|
306
373
|
templet = this.data.onetomany[index]
|
|
374
|
+
let count = 0
|
|
307
375
|
for (let j = 0; j < templet.fields.length; j++) {
|
|
308
376
|
templet.fields[j].value = ''
|
|
309
|
-
if(templet.fields[j].type == 'datepicker'){
|
|
310
|
-
templet.fields[j].value =
|
|
377
|
+
if (templet.fields[j].type == 'datepicker') {
|
|
378
|
+
templet.fields[j].value = new Date().Format("yyyy-MM-dd")
|
|
379
|
+
}
|
|
380
|
+
if (templet.fields[j].required) {
|
|
381
|
+
count++
|
|
311
382
|
}
|
|
312
383
|
}
|
|
384
|
+
if (count == 0) {
|
|
385
|
+
this.disable_button_modal = false
|
|
386
|
+
}
|
|
387
|
+
this.modeltitle = '新增'
|
|
313
388
|
this.showadd_fields = templet
|
|
314
389
|
this.showadd_index = index
|
|
315
390
|
this.showadd = true
|
|
316
391
|
}
|
|
317
392
|
},
|
|
318
393
|
methods: {
|
|
394
|
+
// 获取组件中的数据
|
|
395
|
+
getmodel() {
|
|
396
|
+
// 组织model.fields数据
|
|
397
|
+
let modeldatas = {}
|
|
398
|
+
for (let i = 0; i < this.data.fields.length; i++) {
|
|
399
|
+
// checkbox特殊处理
|
|
400
|
+
if (this.data.fields[i].type === 'checkbox') {
|
|
401
|
+
for (let j = 0; j < this.data.fields[i].items.length; j++) {
|
|
402
|
+
modeldatas[this.data.fields[i].items[j].field] = this.data.fields[i].items[j].value
|
|
403
|
+
}
|
|
404
|
+
} else {
|
|
405
|
+
modeldatas[this.data.fields[i].field] = this.data.fields[i].value
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
modeldatas.f_process_id = this.data.f_process_id
|
|
409
|
+
modeldatas.f_filiale = this.model.f_filiale
|
|
410
|
+
modeldatas.f_parentname = this.model.f_parentname
|
|
411
|
+
modeldatas.f_operator = this.model.f_operator
|
|
412
|
+
modeldatas.f_operate_date = this.model.f_operate_date
|
|
413
|
+
return modeldatas
|
|
414
|
+
},
|
|
415
|
+
// 修改
|
|
416
|
+
revise(index, index2) {
|
|
417
|
+
this.showadd_fields = []
|
|
418
|
+
let templet = new Object()
|
|
419
|
+
templet = this.data.onetomany[index]
|
|
420
|
+
for (let j = 0; j < templet.fields.length; j++) {
|
|
421
|
+
if (templet.fields[j].type == 'input') {
|
|
422
|
+
templet[j] = {}
|
|
423
|
+
templet[j].value = this.model.rows[index][index2][templet.fields[j].field]
|
|
424
|
+
templet.fields[j].value = this.model.rows[index][index2][templet.fields[j].field]
|
|
425
|
+
} else {
|
|
426
|
+
templet.fields[j].value = this.model.rows[index][index2][templet.fields[j].field]
|
|
427
|
+
if (templet.fields[j].type == 'datepicker') {
|
|
428
|
+
templet.fields[j].value = new Date().Format("yyyy-MM-dd")
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
this.tempid = this.model.rows[index][index2].id
|
|
433
|
+
this.modeltitle = '修改'
|
|
434
|
+
this.showadd_fields = templet
|
|
435
|
+
this.showadd_index = index
|
|
436
|
+
this.showadd = true
|
|
437
|
+
},
|
|
438
|
+
// 检测模态框按钮的disable
|
|
439
|
+
disabled_check_modal(required, value) {
|
|
440
|
+
if (required && value) {
|
|
441
|
+
this.disable_button_modal = false
|
|
442
|
+
|
|
443
|
+
let fields = this.showadd_fields.fields
|
|
444
|
+
let flag = false
|
|
445
|
+
for (let i = 0; i < fields.length; i++) {
|
|
446
|
+
if (fields[i].type !== 'checkbox' && fields[i].required && !fields[i].value) {
|
|
447
|
+
flag = true
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
this.disable_button_modal = flag
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
// 检测模态框按钮的disable,反向检查
|
|
454
|
+
check_disable_modal() {
|
|
455
|
+
let fields = this.showadd_fields.fields
|
|
456
|
+
let flag = false
|
|
457
|
+
for (let i = 0; i < fields.length; i++) {
|
|
458
|
+
if (fields[i].type !== 'checkbox' && fields[i].required && !fields[i].value) {
|
|
459
|
+
flag = true
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
let count = 0
|
|
463
|
+
for (let i = 0; i < fields.length; i++) {
|
|
464
|
+
if (fields[i].type !== 'checkbox' && !fields[i].required) {
|
|
465
|
+
count++
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
if (count == 0) {
|
|
469
|
+
flag = false
|
|
470
|
+
}
|
|
471
|
+
this.disable_button_modal = flag
|
|
472
|
+
},
|
|
473
|
+
// 模态框监听
|
|
474
|
+
select_change_modal(index) {
|
|
475
|
+
if (this.showadd_fields.fields[index].value) {
|
|
476
|
+
this.showadd_fields[index] = {}
|
|
477
|
+
this.showadd_fields[index].value = this.showadd_fields.fields[index].value
|
|
478
|
+
} else if (this.showadd_fields[index] && this.showadd_fields[index].value) {
|
|
479
|
+
this.showadd_fields.fields[index].value = this.showadd_fields[index].value
|
|
480
|
+
}
|
|
481
|
+
this.refresh_modal = false
|
|
482
|
+
this.$nextTick(() => {
|
|
483
|
+
this.refresh_modal = true
|
|
484
|
+
})
|
|
485
|
+
this.$dispatch('select_cascade_modal', this.showadd_index, index)
|
|
486
|
+
if (this.showadd_fields.fields[index].type == 'datepicker' || this.showadd_fields.fields[index].error) {
|
|
487
|
+
this.$dispatch('modal_error_check', this.showadd_index, index)
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
// 更新showadd模态框
|
|
491
|
+
update_showadd_fields_value(index, value) {
|
|
492
|
+
this.showadd_fields.fields[index].value = value
|
|
493
|
+
this.showadd_fields[index] = {}
|
|
494
|
+
this.showadd_fields[index].value = value
|
|
495
|
+
},
|
|
496
|
+
// 清理showadd模态框
|
|
497
|
+
clear_showadd_fields_value(index) {
|
|
498
|
+
this.showadd_fields.fields[index].value = ''
|
|
499
|
+
this.showadd_fields[index].value = ''
|
|
500
|
+
},
|
|
319
501
|
// 删除
|
|
320
|
-
delete(i,j){
|
|
321
|
-
this.$showMessage("您确定要删除这条记录吗?",['confirm']).then((res)=>{
|
|
322
|
-
if(res=='confirm'){
|
|
323
|
-
this.$dispatch('onetomanydelete',i,j)
|
|
502
|
+
delete(i, j) {
|
|
503
|
+
this.$showMessage("您确定要删除这条记录吗?", ['confirm']).then((res) => {
|
|
504
|
+
if (res == 'confirm') {
|
|
505
|
+
this.$dispatch('onetomanydelete', i, j)
|
|
324
506
|
}
|
|
325
507
|
})
|
|
326
508
|
},
|
|
@@ -333,7 +515,28 @@ import Vue from 'vue'
|
|
|
333
515
|
this.initializtion()
|
|
334
516
|
},
|
|
335
517
|
// 初始化数据
|
|
336
|
-
initializtion() {
|
|
518
|
+
async initializtion() {
|
|
519
|
+
// 燎原所属公司
|
|
520
|
+
for (let i = 0; i < this.data.fields.length; i++) {
|
|
521
|
+
// console.log("数据是否正确1:" + this.data.f_is_hege)
|
|
522
|
+
// console.log("数据是否正确2:" + this.data.f_demand)
|
|
523
|
+
if(this.data.fields[i].label === '所属公司' && this.data.f_is_hege == 1){
|
|
524
|
+
this.data.fields[i].value = this.data.f_demand
|
|
525
|
+
console.log("所属公司3:" + this.data.f_filiale)
|
|
526
|
+
// let http = new HttpResetClass()
|
|
527
|
+
// let data = {
|
|
528
|
+
// tablename: 't_apply',
|
|
529
|
+
// condition: "f_process_id = '" + this.data.f_process_id + "'"
|
|
530
|
+
// }
|
|
531
|
+
// await http.load('POST', 'rs/sql/applysingleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取所属公司失败'})
|
|
532
|
+
// .then((res) => {
|
|
533
|
+
// this.data.fields[i].value = res.data[0].f_filiale
|
|
534
|
+
// // this.json_datas.activitys.fields[i].value = res.data[0].f_filiale
|
|
535
|
+
// console.log("所属公司1:" + res.data[0].f_filiale)
|
|
536
|
+
// console.log("所属公司2:" + this.selectdata.f_filiale)
|
|
537
|
+
// })
|
|
538
|
+
}
|
|
539
|
+
}
|
|
337
540
|
let fields = this.data.fields
|
|
338
541
|
let flag = false
|
|
339
542
|
for (let i = 0; i < fields.length; i++) {
|
|
@@ -347,52 +550,52 @@ import Vue from 'vue'
|
|
|
347
550
|
count++
|
|
348
551
|
}
|
|
349
552
|
}
|
|
350
|
-
if(count = 0){
|
|
553
|
+
if (count = 0) {
|
|
351
554
|
flag = false
|
|
352
555
|
}
|
|
353
556
|
this.disable_button = flag
|
|
354
557
|
|
|
355
|
-
this.model.rows =[]
|
|
558
|
+
this.model.rows = []
|
|
356
559
|
this.surBodyData = []
|
|
357
|
-
if(this.data.onetomany&&this.data.onetomany.length>0){
|
|
358
|
-
for(let i = 0; i<this.data.onetomany.length;i++){
|
|
560
|
+
if (this.data.onetomany && this.data.onetomany.length > 0) {
|
|
561
|
+
for (let i = 0; i < this.data.onetomany.length; i++) {
|
|
359
562
|
let temp = []
|
|
360
|
-
for(let j = 0; j < this.data.onetomany[i].fields.length; j++){
|
|
563
|
+
for (let j = 0; j < this.data.onetomany[i].fields.length; j++) {
|
|
361
564
|
temp.push(this.data.onetomany[i].fields[j].field)
|
|
362
565
|
}
|
|
363
566
|
this.surBodyData.push(temp)
|
|
364
567
|
}
|
|
365
|
-
for(let i=0;i<this.data.onetomany.length;i++){
|
|
366
|
-
if(this.data.onetomany[i].rows){
|
|
568
|
+
for (let i = 0; i < this.data.onetomany.length; i++) {
|
|
569
|
+
if (this.data.onetomany[i].rows) {
|
|
367
570
|
this.model.rows.push(this.data.onetomany[i].rows)
|
|
368
571
|
}
|
|
369
572
|
}
|
|
370
573
|
|
|
371
574
|
}
|
|
372
575
|
// datepicker 没有值给当时值
|
|
373
|
-
if (this.data.fields&&this.data.fields.length>0) {
|
|
576
|
+
if (this.data.fields && this.data.fields.length > 0) {
|
|
374
577
|
for (let i = 0; i < this.data.fields.length; i++) {
|
|
375
578
|
if (this.data.fields[i].type === 'datepicker' && !this.data.fields[i].value) {
|
|
376
|
-
this.data.fields[i].value = new Date().Format("yyyy-MM-dd
|
|
579
|
+
this.data.fields[i].value = new Date().Format("yyyy-MM-dd")
|
|
377
580
|
}
|
|
378
581
|
}
|
|
379
|
-
}else {
|
|
582
|
+
} else {
|
|
380
583
|
this.disable_button = false
|
|
381
584
|
}
|
|
382
585
|
if (this.data.filiale) {
|
|
383
586
|
this.model.f_filiale = this.data.filiale
|
|
384
587
|
} else {
|
|
385
|
-
this.model.f_filiale = this.$login.f.
|
|
588
|
+
this.model.f_filiale = this.$login.f.orgs
|
|
386
589
|
}
|
|
387
590
|
if (this.data.f_parentname) {
|
|
388
591
|
this.model.f_parentname = this.data.f_parentname
|
|
389
592
|
} else {
|
|
390
|
-
this.model.f_parentname = this.$login.f.
|
|
593
|
+
this.model.f_parentname = this.$login.f.f_department_name
|
|
391
594
|
}
|
|
392
595
|
if (this.data.operate_date) {
|
|
393
596
|
this.model.f_operate_date = this.data.operate_date
|
|
394
597
|
} else {
|
|
395
|
-
this.model.f_operate_date = new Date().Format("yyyy-MM-dd
|
|
598
|
+
this.model.f_operate_date = new Date().Format("yyyy-MM-dd")
|
|
396
599
|
}
|
|
397
600
|
if (this.data.operator) {
|
|
398
601
|
this.model.f_operator = this.data.operator
|
|
@@ -404,16 +607,15 @@ import Vue from 'vue'
|
|
|
404
607
|
acknowledge(val) {
|
|
405
608
|
if (val == '新增') {
|
|
406
609
|
let temp = {}
|
|
407
|
-
for(let i=0;i<this.showadd_fields.fields.length;i++){
|
|
408
|
-
if(this.showadd_fields[i]){
|
|
409
|
-
temp[this.showadd_fields.fields[i].field] = this.showadd_fields[i].value
|
|
410
|
-
}else{
|
|
610
|
+
for (let i = 0; i < this.showadd_fields.fields.length; i++) {
|
|
611
|
+
if (this.showadd_fields.fields[i].value) {
|
|
411
612
|
temp[this.showadd_fields.fields[i].field] = this.showadd_fields.fields[i].value
|
|
613
|
+
} else if (this.showadd_fields && this.showadd_fields[i] && this.showadd_fields[i].value) {
|
|
614
|
+
temp[this.showadd_fields.fields[i].field] = this.showadd_fields[i].value
|
|
412
615
|
}
|
|
413
|
-
|
|
414
616
|
}
|
|
415
617
|
this.model.rows[this.showadd_index].push(temp)
|
|
416
|
-
this.$dispatch('confirm',this.data.onetomany[this.showadd_index].tables,temp,this.showadd_index,this.model.rows[this.showadd_index].length-1)
|
|
618
|
+
this.$dispatch('confirm', this.data.onetomany[this.showadd_index].tables, temp, this.showadd_index, this.model.rows[this.showadd_index].length - 1)
|
|
417
619
|
this.showadd_fields = null
|
|
418
620
|
this.showadd_index = null
|
|
419
621
|
this.closemodal(val)
|
|
@@ -427,10 +629,28 @@ import Vue from 'vue'
|
|
|
427
629
|
},
|
|
428
630
|
// 关闭模态框
|
|
429
631
|
closemodal(val) {
|
|
632
|
+
if (this.showadd_fields && this.showadd_fields.fields && this.showadd_fields.fields.length) {
|
|
633
|
+
for (let i = 0; i < this.showadd_fields.fields.length; i++) {
|
|
634
|
+
if (this.showadd_fields[i] && this.showadd_fields[i].value) {
|
|
635
|
+
this.showadd_fields[i].value = ''
|
|
636
|
+
}
|
|
637
|
+
if (this.showadd_fields.fields[i] && this.showadd_fields.fields[i].value) {
|
|
638
|
+
this.showadd_fields.fields[i].value = ''
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
if (val != '新增' || val != '修改' || val != '删除') {
|
|
644
|
+
this.disable_button = false
|
|
645
|
+
}
|
|
430
646
|
this.showmodal = false
|
|
431
647
|
if (val == '新增') {
|
|
432
648
|
this.showadd = false
|
|
433
649
|
}
|
|
650
|
+
this.showadd_fields = null
|
|
651
|
+
this.disable_button_modal = true
|
|
652
|
+
this.modeltitle = null
|
|
653
|
+
this.tempid = null
|
|
434
654
|
},
|
|
435
655
|
// 点击按钮
|
|
436
656
|
clicked(index, button) {
|
|
@@ -441,6 +661,7 @@ import Vue from 'vue'
|
|
|
441
661
|
// temp['rows'] = this.model.rows
|
|
442
662
|
// this.$dispatch('onetomanyevent',temp)
|
|
443
663
|
// }
|
|
664
|
+
this.disable_button = true
|
|
444
665
|
console.log(`点击了按钮index:${index}+button:${JSON.stringify(button)}`);
|
|
445
666
|
// 组织model.fields数据
|
|
446
667
|
let modeldatas = {}
|
|
@@ -471,6 +692,9 @@ import Vue from 'vue'
|
|
|
471
692
|
if (button.button_node) {
|
|
472
693
|
buttondatas.button_node = button.button_node
|
|
473
694
|
}
|
|
695
|
+
if (button.button_person) {
|
|
696
|
+
buttondatas.button_person = button.button_person
|
|
697
|
+
}
|
|
474
698
|
buttondatas.button_name = button.button_name
|
|
475
699
|
buttondatas.button_index = index
|
|
476
700
|
if (button.button_fields) {
|
|
@@ -487,9 +711,13 @@ import Vue from 'vue'
|
|
|
487
711
|
this.$dispatch('button', this.model)
|
|
488
712
|
}
|
|
489
713
|
},
|
|
490
|
-
//
|
|
714
|
+
// 监听
|
|
491
715
|
select_change(index) {
|
|
492
716
|
this.$dispatch('select_cascade', index)
|
|
717
|
+
// 如果有错误信息提示走错误信息判断处理
|
|
718
|
+
if (this.data.fields[index].error || this.data.fields[index].type == 'datepicker') {
|
|
719
|
+
this.$dispatch('error_check', index)
|
|
720
|
+
}
|
|
493
721
|
},
|
|
494
722
|
// 检测按钮的disable
|
|
495
723
|
disabled_check(required, value) {
|
|
@@ -509,6 +737,7 @@ import Vue from 'vue'
|
|
|
509
737
|
},
|
|
510
738
|
watch: {
|
|
511
739
|
'data.operate_date'() {
|
|
740
|
+
console.log("登录:--------" + this.$login.f)
|
|
512
741
|
if (this.data.filiale) {
|
|
513
742
|
this.model.f_filiale = this.data.filiale
|
|
514
743
|
} else {
|
|
@@ -522,7 +751,7 @@ import Vue from 'vue'
|
|
|
522
751
|
if (this.data.operate_date) {
|
|
523
752
|
this.model.f_operate_date = this.data.operate_date
|
|
524
753
|
} else {
|
|
525
|
-
this.model.f_operate_date = new Date().Format("yyyy-MM-dd
|
|
754
|
+
this.model.f_operate_date = new Date().Format("yyyy-MM-dd")
|
|
526
755
|
}
|
|
527
756
|
if (this.data.operator) {
|
|
528
757
|
this.model.f_operator = this.data.operator
|
|
@@ -555,7 +784,7 @@ import Vue from 'vue'
|
|
|
555
784
|
count++
|
|
556
785
|
}
|
|
557
786
|
}
|
|
558
|
-
if(count
|
|
787
|
+
if (count == 0) {
|
|
559
788
|
flag = false
|
|
560
789
|
}
|
|
561
790
|
this.disable_button = flag
|
|
@@ -568,16 +797,47 @@ import Vue from 'vue'
|
|
|
568
797
|
}
|
|
569
798
|
</script>
|
|
570
799
|
<style scoped>
|
|
571
|
-
th{
|
|
800
|
+
th {
|
|
801
|
+
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
.control-label-justify {
|
|
805
|
+
display: inline-block;
|
|
806
|
+
vertical-align: top;
|
|
807
|
+
width: 110px;
|
|
808
|
+
text-align: justify;
|
|
809
|
+
font-family: PingFang-SC-Bold;
|
|
572
810
|
}
|
|
811
|
+
|
|
812
|
+
.control-label-justify::after {
|
|
813
|
+
content: "";
|
|
814
|
+
display: inline-block;
|
|
815
|
+
width: 70px;
|
|
816
|
+
overflow: hidden;
|
|
817
|
+
height: 0;
|
|
818
|
+
}
|
|
819
|
+
|
|
573
820
|
input::-webkit-outer-spin-button,
|
|
574
821
|
input::-webkit-inner-spin-button {
|
|
575
822
|
-webkit-appearance: none;
|
|
576
823
|
}
|
|
577
|
-
|
|
824
|
+
|
|
825
|
+
input[type="number"] {
|
|
578
826
|
-moz-appearance: textfield;
|
|
579
827
|
}
|
|
580
|
-
|
|
828
|
+
|
|
829
|
+
.onetomanymodal {
|
|
830
|
+
background-color: #fff;
|
|
831
|
+
left: 40%;
|
|
832
|
+
margin: -300/2 0 0 -300/2;
|
|
833
|
+
position: fixed;
|
|
834
|
+
top: 15%;
|
|
835
|
+
width: 500px;
|
|
836
|
+
height: auto;
|
|
837
|
+
z-index: 25;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
tr {
|
|
581
841
|
height: 34px;
|
|
582
842
|
}
|
|
583
843
|
</style>
|