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,25 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="auto">
|
|
3
|
-
<div class="form-inline auto" style="margin-bottom: 5px;">
|
|
3
|
+
<div class="form-inline auto" style="margin-bottom: 5px;width: 100%" v-if="refreshed">
|
|
4
4
|
<form novalidate class="auto" partial>
|
|
5
|
-
<div class="col-sm-
|
|
6
|
-
|
|
5
|
+
<div class="col-sm-12">
|
|
7
6
|
<div class="col-sm-2">
|
|
8
7
|
<div class="col-sm-10">
|
|
9
|
-
<
|
|
10
|
-
|
|
8
|
+
<v-select :options="f_user_name" placeholder='操作人' condition="f_user_type = '{}'"
|
|
9
|
+
v-model="f_material_operator" :value.sync="f_material_operator" close-on-select>
|
|
10
|
+
</v-select>
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
|
-
|
|
14
|
-
<div class="col-sm-1">
|
|
15
|
-
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
|
|
19
13
|
<div class="col-sm-2 ">
|
|
20
|
-
<div class="col-sm-11 pull-right"
|
|
21
|
-
<v-select
|
|
22
|
-
|
|
14
|
+
<div class="col-sm-11 pull-right">
|
|
15
|
+
<v-select :options="f_effective_state" placeholder='有效状态' condition="f_user_type = '{}'"
|
|
16
|
+
v-model="f_effective_stated" :value.sync="f_effective_stated" close-on-select>
|
|
23
17
|
</v-select>
|
|
24
18
|
</div>
|
|
25
19
|
</div>
|
|
@@ -30,29 +24,30 @@
|
|
|
30
24
|
<!--</v-select>-->
|
|
31
25
|
<!--</div>-->
|
|
32
26
|
<!--</div>-->
|
|
33
|
-
|
|
34
27
|
<div class="col-sm-1">
|
|
35
28
|
<center>
|
|
36
29
|
<div class="col-sm-12 pull-right">
|
|
37
|
-
<button type="button" class="btn btn-primary"
|
|
30
|
+
<button type="button" class="btn btn-primary"
|
|
31
|
+
@click="filterParams(f_material_operator,f_effective_stated,f_picking_stated)">查询
|
|
32
|
+
</button>
|
|
38
33
|
</div>
|
|
39
|
-
|
|
40
34
|
</center>
|
|
41
35
|
</div>
|
|
42
|
-
<div class="col-sm-
|
|
36
|
+
<div class="col-sm-4" style="float: right">
|
|
43
37
|
<center>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
38
|
+
<div class="col-sm-6 pull-right">
|
|
39
|
+
<button type="button" class="btn btn-warning add-postition" @click="addmaterial()"
|
|
40
|
+
v-show="edit && showprint">添加批次材料
|
|
41
|
+
</button>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="col-sm-6 pull-right">
|
|
44
|
+
<button type="button" class="btn btn-warning add-postition" @click="impexcel()" v-show="edit">导入批次材料
|
|
45
|
+
</button>
|
|
50
46
|
</div>
|
|
51
47
|
</center>
|
|
52
48
|
</div>
|
|
53
49
|
</div>
|
|
54
50
|
</form>
|
|
55
|
-
|
|
56
51
|
<!-- <button type="button" class="btn btn-primary" @click="filterParams(param)">查询</button>-->
|
|
57
52
|
<!--<button type="button" class="btn btn-warning" @click="add()" v-show="edit">新增</button>-->
|
|
58
53
|
<!-- <div class="form-inline" style="float: right">
|
|
@@ -69,20 +64,27 @@
|
|
|
69
64
|
<th>报建编号</th>
|
|
70
65
|
<th>批次操作人</th>
|
|
71
66
|
<th>导入时间</th>
|
|
72
|
-
<th
|
|
67
|
+
<th>操作</th>
|
|
73
68
|
</tr>
|
|
74
69
|
</template>
|
|
75
|
-
<template partial='body'
|
|
70
|
+
<template partial='body'>
|
|
76
71
|
<td @click="$parent.$parent.$parent.showdetail(row.id,row.f_effective_state)">{{$index+1}}</td>
|
|
77
|
-
<td @click="$parent.$parent.$parent.showdetail(row.id,row.f_effective_state)">{{row.f_effective_state}}
|
|
72
|
+
<td @click="$parent.$parent.$parent.showdetail(row.id,row.f_effective_state)">{{row.f_effective_state}}
|
|
73
|
+
</td>
|
|
78
74
|
<!--<td @click="$parent.$parent.$parent.showdetail(row.id)">{{row.f_picking_state}}</td>-->
|
|
79
75
|
<td @click="$parent.$parent.$parent.showdetail(row.id,row.f_effective_state)">{{row.f_apply_num}}</td>
|
|
80
|
-
<td @click="$parent.$parent.$parent.showdetail(row.id,row.f_effective_state)">
|
|
81
|
-
|
|
76
|
+
<td @click="$parent.$parent.$parent.showdetail(row.id,row.f_effective_state)">
|
|
77
|
+
{{row.f_material_operator}}
|
|
78
|
+
</td>
|
|
79
|
+
<td @click="$parent.$parent.$parent.showdetail(row.id,row.f_effective_state)">{{row.f_batch_importdate}}
|
|
80
|
+
</td>
|
|
82
81
|
|
|
83
82
|
<!--<td>{{row.f_remarks}}</td>-->
|
|
84
|
-
|
|
85
|
-
<td class="">
|
|
83
|
+
<!--<td v-show="$parent.$parent.$parent.edit"><input type="checkbox" v-model="row.f_pay" @click="$parent.$parent.$parent.paychange(row)"/></td>-->
|
|
84
|
+
<td class="" v-show="$parent.$parent.$parent.showprint">
|
|
85
|
+
<button type="button" name="button" class="btn btn-link" :disabled="row.f_effective_state == '无效'"
|
|
86
|
+
@click.stop="$parent.$parent.$parent.export(row)">导出
|
|
87
|
+
</button>
|
|
86
88
|
<button type="button" name="button" class="btn btn-link" :disabled="row.f_effective_state == '无效'"
|
|
87
89
|
@click.stop="$parent.$parent.$parent.tovoid(row)">作废
|
|
88
90
|
</button>
|
|
@@ -97,62 +99,50 @@
|
|
|
97
99
|
</div>
|
|
98
100
|
|
|
99
101
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
<
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
<th>数量</th>
|
|
124
|
-
<th>材料单位</th>
|
|
125
|
-
<th>单价</th>
|
|
126
|
-
<th v-show="edit">是否缴费</th>
|
|
127
|
-
<th >操作</th>
|
|
128
|
-
</tr>
|
|
129
|
-
</template>
|
|
130
|
-
<template partial='body'>
|
|
131
|
-
<td>{{$index+1}}</td>
|
|
102
|
+
<div class="col-sm-12 span recordTable" style="margin-top: 10px;height:auto;" v-if="isShowdetail">
|
|
103
|
+
<div style="width: 100%;height: auto">
|
|
104
|
+
<button type="button" class="btn btn-warning add-postition" v-show="isbuttonshow && showprint"
|
|
105
|
+
style="float: right" @click="addDetailed()">添加明细
|
|
106
|
+
</button>
|
|
107
|
+
</div>
|
|
108
|
+
<div style="width: 100%;height: auto;float: left">
|
|
109
|
+
<table class="table table-bordered table-striped table-hover">
|
|
110
|
+
<tr style="background-color: #88C78E">
|
|
111
|
+
<!-- <th><font color="white"><nobr>材料编码</nobr></font></th>-->
|
|
112
|
+
<th><font color="white"><nobr>材料名称</nobr></font></th>
|
|
113
|
+
<!-- <th><font color="white"><nobr>材料类型</nobr></font></th>-->
|
|
114
|
+
<!-- <th><font color="white"><nobr>材料型号</nobr></font></th>-->
|
|
115
|
+
<!-- <th><font color="white"><nobr>材料规格</nobr></font></th>-->
|
|
116
|
+
<th><font color="white"><nobr>单位</nobr></font></th>
|
|
117
|
+
<th><font color="white"><nobr>数量</nobr></font></th>
|
|
118
|
+
<!-- <th><font color="white"><nobr>材料单位</nobr></font></th>-->
|
|
119
|
+
<th><font color="white"><nobr>是否收费</nobr></font></th>
|
|
120
|
+
<!--<th v-show="$parent.$parent.$parent.edit">是否缴费</th>-->
|
|
121
|
+
<th>操作</th>
|
|
122
|
+
</tr>
|
|
123
|
+
<tr v-for="(j,row) in batchmodel.rows">
|
|
124
|
+
<!-- <td>{{row.f_batch_code}}</td>-->
|
|
132
125
|
<td>{{row.f_batch_name}}</td>
|
|
133
|
-
<td>{{row.f_batch_type}}</td
|
|
134
|
-
<td>{{row.
|
|
135
|
-
<td>{{row.f_batch_norms}}</td
|
|
136
|
-
<td>{{row.f_budget_num}}</td>
|
|
126
|
+
<!-- <td>{{row.f_batch_type}}</td>-->
|
|
127
|
+
<!-- <td>{{row.f_batch_version}}</td>-->
|
|
128
|
+
<!-- <td>{{row.f_batch_norms}}</td>-->
|
|
137
129
|
<td>{{row.f_batch_company}}</td>
|
|
138
|
-
<td>{{row.
|
|
130
|
+
<td>{{row.f_budget_num}}</td>
|
|
131
|
+
|
|
139
132
|
<!--<td>{{row.f_remarks}}</td>-->
|
|
140
|
-
|
|
141
|
-
<td class="">
|
|
133
|
+
<!--<td v-show="$parent.$parent.$parent.edit"><input type="checkbox" v-model="row.f_pay" @click="$parent.$parent.$parent.paychange(row)"/></td>-->
|
|
134
|
+
<td class="" v-show="showprint">
|
|
142
135
|
<button type="button" name="button" class="btn btn-link"
|
|
143
|
-
@click.stop="
|
|
136
|
+
@click.stop="modifyParam(row)">修改
|
|
137
|
+
</button>
|
|
138
|
+
<button type="button" name="button" class="btn btn-link"
|
|
139
|
+
@click.stop="deleteItem(row)" >删除
|
|
144
140
|
</button>
|
|
145
|
-
<!-- <button type="button" name="button" class="btn btn-link"
|
|
146
|
-
@click.stop="$parent.$parent.$parent.deleteItem(row)" >删除
|
|
147
|
-
</button>-->
|
|
148
|
-
</td>
|
|
149
|
-
</template>
|
|
150
|
-
</data-grid>
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
141
|
|
|
155
|
-
|
|
142
|
+
</td>
|
|
143
|
+
</tr>
|
|
144
|
+
</table>
|
|
145
|
+
</div>
|
|
156
146
|
</div>
|
|
157
147
|
</div>
|
|
158
148
|
<modal :show.sync="addshow" v-ref:modal backdrop="false">
|
|
@@ -160,24 +150,17 @@
|
|
|
160
150
|
<button type="button" class="close" @click="addclose"><span>×</span></button>
|
|
161
151
|
<h4 class="modal-title">添加明细</h4>
|
|
162
152
|
</header>
|
|
163
|
-
<article slot="modal-body" class="modal-body">
|
|
164
|
-
<div
|
|
165
|
-
<
|
|
166
|
-
|
|
167
|
-
<
|
|
168
|
-
:options='material' placeholder='请选择' style="width: 50%"
|
|
169
|
-
close-on-select search="" >
|
|
170
|
-
</v-select>
|
|
171
|
-
</div>
|
|
172
|
-
|
|
173
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 100%">
|
|
174
|
-
<label style="float: left" class="control-label">材料数量</label>
|
|
175
|
-
<input type="number" class="form-control" placeholder="材料数量" style="width: 50%;float: left" v-model="model.f_budget_num">
|
|
153
|
+
<article slot="modal-body" class="modal-body" style="max-height: 80vh">
|
|
154
|
+
<div>
|
|
155
|
+
<span>输入材料名称搜索</span>
|
|
156
|
+
<input type="text" v-model="searchName" />
|
|
157
|
+
<button @click="searchByName" class="btn-info">查询</button>
|
|
176
158
|
</div>
|
|
159
|
+
<tree2 v-ref:tree2 v-if="addshowm" :menulist="menulist" :scrolltop = "scrollTop"></tree2>
|
|
177
160
|
</article>
|
|
178
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
179
|
-
|
|
180
|
-
|
|
161
|
+
<footer slot="modal-footer" class="modal-footer flex">
|
|
162
|
+
<!--<button type="button" class="btn btn-default" @click='addclose'>取消</button>-->
|
|
163
|
+
<!--<button type="button" class="btn btn-success" @click='addconfirm'>确认</button>-->
|
|
181
164
|
</footer>
|
|
182
165
|
</modal>
|
|
183
166
|
<modal :show.sync="show" v-ref:modal backdrop="false">
|
|
@@ -205,31 +188,33 @@
|
|
|
205
188
|
<button type="button" class="close" @click="closeFile"><span>×</span></button>
|
|
206
189
|
<h4 class="modal-title">材料导入</h4>
|
|
207
190
|
</header>
|
|
191
|
+
|
|
208
192
|
<article slot="modal-body" class="modal-body">
|
|
209
193
|
<div class="form-group">
|
|
210
|
-
<file-upload class="my-file-uploader" name="
|
|
194
|
+
<file-upload class="my-file-uploader" :name="'materialExcelsxq'+flag"
|
|
211
195
|
action="rs/file/uploadFile" tagname="文件导入" :headers="headers" v-ref:file></file-upload>
|
|
212
196
|
</div>
|
|
213
197
|
</article>
|
|
214
198
|
|
|
215
|
-
|
|
216
199
|
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
217
200
|
</modal>
|
|
218
201
|
</div>
|
|
219
202
|
</template>
|
|
220
203
|
|
|
221
204
|
<script>
|
|
205
|
+
import { PagedList } from 'vue-client'
|
|
222
206
|
import {HttpResetClass} from 'vue-client'
|
|
223
207
|
import co from 'co'
|
|
208
|
+
|
|
224
209
|
let insert = async function (self) {
|
|
225
210
|
let param = {
|
|
226
211
|
processid: self.selectdata.f_process_id,
|
|
227
212
|
f_apply_num: self.selectdata.f_apply_num,
|
|
228
|
-
f_filiale:self.selectdata.f_filiale,
|
|
229
|
-
f_parentname:self.$login.f.f_parentname,
|
|
230
|
-
f_material_operator:self.$login.f.name,
|
|
231
|
-
f_effective_state:'有效',
|
|
232
|
-
f_picking_state:'未领完'
|
|
213
|
+
f_filiale: self.selectdata.f_filiale,
|
|
214
|
+
f_parentname: self.$login.f.f_parentname,
|
|
215
|
+
f_material_operator: self.$login.f.name,
|
|
216
|
+
f_effective_state: '有效',
|
|
217
|
+
f_picking_state: '未领完'
|
|
233
218
|
}
|
|
234
219
|
console.log('新增批次', param)
|
|
235
220
|
self.$resetpost('rs/entity/t_material_batch', param).then(() => {
|
|
@@ -241,45 +226,53 @@
|
|
|
241
226
|
|
|
242
227
|
}
|
|
243
228
|
let insertdetail = async function (self) {
|
|
244
|
-
let data={
|
|
245
|
-
f_batch_name:self.model.f_batch_name[0],
|
|
229
|
+
let data = {
|
|
230
|
+
f_batch_name: self.model.f_batch_name[0],
|
|
231
|
+
f_batch_code: self.model.f_batch_code[0],
|
|
246
232
|
f_apply_num: self.selectdata.f_apply_num,
|
|
247
233
|
f_batch_id: self.batch_id,
|
|
248
234
|
}
|
|
249
|
-
console.log('判断数据:',data)
|
|
250
|
-
self.$resetpost('rs/logic/insertdetail', data
|
|
235
|
+
console.log('判断数据:', data)
|
|
236
|
+
return await self.$resetpost('rs/logic/insertdetail', data, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
251
237
|
// this.params.rows.splice(index, 1)
|
|
252
|
-
console.log('更新成功!',res)
|
|
253
|
-
if (res.data.batch.length>0){
|
|
238
|
+
console.log('更新成功!', res)
|
|
239
|
+
if (res.data.batch.length > 0) {
|
|
254
240
|
self.$showMessage("已添加过此材料,请勿重复添加,若要修改数量请点击修改!")
|
|
255
|
-
|
|
256
|
-
|
|
241
|
+
return false
|
|
242
|
+
} else {
|
|
243
|
+
if (res.data.array.length > 0) {
|
|
257
244
|
let param = {
|
|
258
245
|
f_batch_id: self.batch_id,
|
|
259
246
|
f_apply_num: self.selectdata.f_apply_num,
|
|
260
|
-
f_filiale:self.selectdata.f_filiale,
|
|
261
|
-
f_parentname:self.$login.f.f_parentname,
|
|
262
|
-
f_material_operator:self.$login.f.name,
|
|
263
|
-
f_batch_name:self.model.f_batch_name[0],
|
|
264
|
-
f_budget_num:self.model.f_budget_num,
|
|
265
|
-
f_surplus_num:self.model.f_budget_num,
|
|
266
|
-
f_add_receive:0,
|
|
267
|
-
f_receive_num:0,
|
|
268
|
-
f_revenue_id:res.data.array[0].id,
|
|
269
|
-
f_batch_type:res.data.array[0].f_type,
|
|
270
|
-
f_batch_code:res.data.array[0].
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
247
|
+
f_filiale: self.selectdata.f_filiale,
|
|
248
|
+
f_parentname: self.$login.f.f_parentname,
|
|
249
|
+
f_material_operator: self.$login.f.name,
|
|
250
|
+
f_batch_name: self.model.f_batch_name[0],
|
|
251
|
+
f_budget_num: self.model.f_budget_num,
|
|
252
|
+
f_surplus_num: self.model.f_budget_num,
|
|
253
|
+
f_add_receive: 0,
|
|
254
|
+
f_receive_num: 0,
|
|
255
|
+
f_revenue_id: res.data.array[0].id,
|
|
256
|
+
f_batch_type: res.data.array[0].f_type,
|
|
257
|
+
f_batch_code: res.data.array[0].f_code,
|
|
258
|
+
f_batch_version: res.data.array[0].f_num,
|
|
259
|
+
f_batch_norms: res.data.array[0].f_format,
|
|
260
|
+
f_batch_company: res.data.array[0].f_unit,
|
|
261
|
+
f_batch_price: res.data.array[0].f_price
|
|
274
262
|
}
|
|
275
|
-
console.log('添加明细:',param)
|
|
263
|
+
console.log('添加明细:', param)
|
|
276
264
|
self.$resetpost('rs/entity/t_material_list', param).then(() => {
|
|
277
265
|
// this.params.rows.splice(index, 1)
|
|
278
266
|
console.log('更新成功!')
|
|
279
|
-
self.showdetail(self.batch_id,'有效')
|
|
267
|
+
self.showdetail(self.batch_id, '有效')
|
|
268
|
+
self.model.f_batch_name = []
|
|
269
|
+
self.model.f_batch_code = []
|
|
270
|
+
self.model.f_batch_version = []
|
|
271
|
+
self.model.f_batch_norms = []
|
|
272
|
+
self.model.f_budget_num = ''
|
|
280
273
|
self.addshow = false
|
|
281
274
|
})
|
|
282
|
-
}else {
|
|
275
|
+
} else {
|
|
283
276
|
self.$showMessage('此种材料系统中不存在!请检查材料名称')
|
|
284
277
|
}
|
|
285
278
|
}
|
|
@@ -289,11 +282,11 @@
|
|
|
289
282
|
|
|
290
283
|
|
|
291
284
|
}
|
|
292
|
-
let getInfo = async function (self,isbatchdetail,batchid,istoVoidBatch) {
|
|
285
|
+
let getInfo = async function (self, isbatchdetail, batchid, istoVoidBatch) {
|
|
293
286
|
if (!self.selectdata)
|
|
294
287
|
return
|
|
295
288
|
|
|
296
|
-
if (isbatchdetail==1){
|
|
289
|
+
if (isbatchdetail == 1) {
|
|
297
290
|
let data = {
|
|
298
291
|
tablename: 't_material_list',
|
|
299
292
|
condition: `f_apply_num = '${self.selectdata.f_apply_num}' and f_batch_id ='${batchid}' `
|
|
@@ -302,23 +295,24 @@
|
|
|
302
295
|
await reset.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取材料信息失败'})
|
|
303
296
|
.then((res) => {
|
|
304
297
|
console.log('查询完毕,返回res.data=>' + JSON.stringify(res.data))
|
|
298
|
+
self.batchmodel.rows = []
|
|
305
299
|
self.batchmodel.rows = res.data
|
|
306
300
|
// 备份用于查询
|
|
307
301
|
/* self.params = res.data*/
|
|
308
|
-
if (istoVoidBatch){
|
|
302
|
+
if (istoVoidBatch) {
|
|
309
303
|
console.log('进入istovoidBatch')
|
|
310
|
-
let num=0
|
|
304
|
+
let num = 0
|
|
311
305
|
for (var i = 0; i < self.batchmodel.rows.length; i++) {
|
|
312
|
-
num+=self.batchmodel.rows[i].f_add_receive
|
|
313
|
-
console.log(i+'f_add_receive'+self.batchmodel.rows[i].f_add_receive)
|
|
306
|
+
num += self.batchmodel.rows[i].f_add_receive
|
|
307
|
+
console.log(i + 'f_add_receive' + self.batchmodel.rows[i].f_add_receive)
|
|
314
308
|
}
|
|
315
|
-
if (num>0){
|
|
309
|
+
if (num > 0) {
|
|
316
310
|
self.$showMessage('累计领取数量大于0,不能作废!')
|
|
317
|
-
}else{
|
|
311
|
+
} else {
|
|
318
312
|
self.$showMessage('作废后不可恢复,确认作废吗?', ['confirm', 'cancel']).then((res) => {
|
|
319
313
|
if (res === 'confirm') {
|
|
320
|
-
self.$resetpost('rs/logic/tovoidbatch',{id: batchid}).then((res) => {
|
|
321
|
-
getInfo(self,0,0,false)
|
|
314
|
+
self.$resetpost('rs/logic/tovoidbatch', {id: batchid}).then((res) => {
|
|
315
|
+
getInfo(self, 0, 0, false)
|
|
322
316
|
})
|
|
323
317
|
}
|
|
324
318
|
})
|
|
@@ -328,7 +322,7 @@
|
|
|
328
322
|
|
|
329
323
|
})
|
|
330
324
|
|
|
331
|
-
} else{
|
|
325
|
+
} else {
|
|
332
326
|
|
|
333
327
|
let data = {
|
|
334
328
|
tablename: 't_material_batch',
|
|
@@ -345,8 +339,6 @@
|
|
|
345
339
|
}
|
|
346
340
|
|
|
347
341
|
|
|
348
|
-
|
|
349
|
-
|
|
350
342
|
}
|
|
351
343
|
|
|
352
344
|
|
|
@@ -372,60 +364,100 @@
|
|
|
372
364
|
}
|
|
373
365
|
export default {
|
|
374
366
|
title: '材料信息',
|
|
375
|
-
props:
|
|
367
|
+
props: {
|
|
368
|
+
flag:{
|
|
369
|
+
type: String,
|
|
370
|
+
default: 'cl'
|
|
371
|
+
},
|
|
372
|
+
selectdata: {
|
|
373
|
+
type: Object
|
|
374
|
+
},
|
|
375
|
+
edit: {
|
|
376
|
+
type: Boolean,
|
|
377
|
+
default: true
|
|
378
|
+
},
|
|
379
|
+
state: {
|
|
380
|
+
type: Number
|
|
381
|
+
},
|
|
382
|
+
showprint: {
|
|
383
|
+
type: Boolean,
|
|
384
|
+
default: true
|
|
385
|
+
}
|
|
386
|
+
},
|
|
376
387
|
data() {
|
|
377
388
|
return {
|
|
389
|
+
scrollTop:0, // 添加材料模态框的高度
|
|
390
|
+
searchName:null,
|
|
391
|
+
addshowm:true,
|
|
392
|
+
menulist: null,
|
|
393
|
+
refreshed: true,
|
|
394
|
+
guigeoptions: [],
|
|
395
|
+
xinhaooptions: [],
|
|
396
|
+
materialItem: [],
|
|
397
|
+
codeOptions: [],
|
|
378
398
|
fmaterialtype: [],
|
|
379
399
|
fmaterialname: [],
|
|
380
400
|
fmaterialspec: [],
|
|
381
401
|
fmaterialprice: [],
|
|
382
|
-
headers: {'username': this.$login.f.name, 'blodid': this.selectdata.f_process_id,'fusetype':'报建execl导入材料'},
|
|
402
|
+
headers: {'username': this.$login.f.name, 'blodid': this.selectdata.f_process_id, 'fusetype': '报建execl导入材料'},
|
|
383
403
|
params: null,
|
|
384
404
|
record: {},
|
|
385
405
|
selectItem: {},
|
|
406
|
+
isbuttonshow: true,
|
|
386
407
|
model: {
|
|
387
408
|
rows: []
|
|
388
409
|
},
|
|
389
410
|
// istoVoidBatch:false,
|
|
390
|
-
f_material_operator:'',
|
|
411
|
+
f_material_operator: '',
|
|
391
412
|
f_picking_stated: '',
|
|
392
|
-
f_effective_stated:'',
|
|
393
|
-
f_picking_state:[
|
|
413
|
+
f_effective_stated: '',
|
|
414
|
+
f_picking_state: [
|
|
394
415
|
{label: '未领完', value: '未领完'},
|
|
395
|
-
{label:'已领完', value: '已领完'},
|
|
396
|
-
{label:'全部', value: ''}
|
|
416
|
+
{label: '已领完', value: '已领完'},
|
|
417
|
+
{label: '全部', value: ''}
|
|
397
418
|
],
|
|
398
|
-
f_effective_state:[
|
|
419
|
+
f_effective_state: [
|
|
399
420
|
{label: '有效', value: '有效'},
|
|
400
|
-
{label:'无效', value: '无效'},
|
|
401
|
-
{label:'全部', value: ''}
|
|
421
|
+
{label: '无效', value: '无效'},
|
|
422
|
+
{label: '全部', value: ''}
|
|
402
423
|
],
|
|
403
|
-
batchmodel:{
|
|
404
|
-
rows:[]
|
|
424
|
+
batchmodel: {
|
|
425
|
+
rows: []
|
|
405
426
|
},
|
|
406
427
|
show: false,
|
|
407
428
|
isShow: false,
|
|
408
|
-
isShowdetail:false,
|
|
409
|
-
addshow:false,
|
|
429
|
+
isShowdetail: false,
|
|
430
|
+
addshow: false,
|
|
410
431
|
batch_id: 0,
|
|
411
|
-
material:[]
|
|
432
|
+
material: [],
|
|
433
|
+
optionsx: [],
|
|
434
|
+
f_user_name: []
|
|
412
435
|
}
|
|
413
436
|
},
|
|
414
437
|
async ready() {
|
|
438
|
+
// 获取材料数据
|
|
439
|
+
this.guige()
|
|
440
|
+
this.isShowdetail = false
|
|
415
441
|
this.load()
|
|
416
|
-
getInfo(this,0,0,false)
|
|
442
|
+
getInfo(this, 0, 0, false)
|
|
417
443
|
this.getname()
|
|
418
444
|
},
|
|
419
445
|
watch: {
|
|
420
446
|
'selectdata.f_process_id'() {
|
|
447
|
+
this.isShowdetail = false
|
|
421
448
|
this.headers.blodid = this.selectdata.f_process_id
|
|
422
|
-
getInfo(this,0,0,false)
|
|
449
|
+
getInfo(this, 0, 0, false)
|
|
423
450
|
},
|
|
424
|
-
|
|
451
|
+
'state'() {
|
|
452
|
+
this.f_material_operator = ''
|
|
453
|
+
this.f_picking_stated = ''
|
|
454
|
+
this.f_effective_stated = ''
|
|
455
|
+
},
|
|
456
|
+
deep: true
|
|
425
457
|
},
|
|
426
458
|
computed: {
|
|
427
|
-
async fprice(){
|
|
428
|
-
if(this.selectItem.f_material_type && this.selectItem.f_material_name && this.selectItem.f_material_spec){
|
|
459
|
+
async fprice() {
|
|
460
|
+
if (this.selectItem.f_material_type && this.selectItem.f_material_name && this.selectItem.f_material_spec) {
|
|
429
461
|
this.fmaterialprice = []
|
|
430
462
|
let http = new HttpResetClass()
|
|
431
463
|
let data = {
|
|
@@ -494,60 +526,215 @@
|
|
|
494
526
|
}
|
|
495
527
|
},
|
|
496
528
|
methods: {
|
|
497
|
-
|
|
498
|
-
|
|
529
|
+
//使用a标签下载--推荐使用
|
|
530
|
+
commDownload(url) {
|
|
531
|
+
// url += "?";
|
|
532
|
+
// for(let key in params) {
|
|
533
|
+
// url += key + "=" + params[key] + "&";
|
|
534
|
+
// }
|
|
535
|
+
// url = url.substr(0, url.length - 1);
|
|
536
|
+
$("<a href=" + url + " />")[0].click();
|
|
537
|
+
},
|
|
538
|
+
async searchByName(){
|
|
539
|
+
|
|
540
|
+
console.log('搜索材料名车')
|
|
541
|
+
let http = new HttpResetClass()
|
|
542
|
+
let data2 = {
|
|
543
|
+
columnname: `f_type`,
|
|
544
|
+
tablename: 't_material_class',
|
|
545
|
+
condition: ` f_name like '%${this.searchName}%'`
|
|
546
|
+
}
|
|
547
|
+
let resTypes = await http.load('POST', 'rs/sql/getdistinct', {data: data2}, {
|
|
548
|
+
resolveMsg: null,
|
|
549
|
+
rejectMsg: "获取f_material_name失败"
|
|
550
|
+
}, {silent: true})
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
let data = {
|
|
554
|
+
columnname: `f_name,f_type`,
|
|
555
|
+
tablename: 't_material_class',
|
|
556
|
+
condition: ` f_name like '%${this.searchName}%'`
|
|
557
|
+
}
|
|
558
|
+
let res = await this.$resetpost('rs/sql/getdistinct', {data: data}, {
|
|
559
|
+
resolveMsg: null,
|
|
560
|
+
rejectMsg: '搜索材料名称失败'
|
|
561
|
+
})
|
|
562
|
+
this.menulist = []
|
|
563
|
+
for(let i=0;i<resTypes.data.length;i++){
|
|
564
|
+
this.menulist.push({catename:resTypes.data[i].f_type,expanded: true,type:'材料类型'})
|
|
565
|
+
}
|
|
566
|
+
for(let i=0;i<this.menulist.length;i++){
|
|
567
|
+
let _child = []
|
|
568
|
+
for(let j=0;j<res.data.length;j++){
|
|
569
|
+
if(this.menulist[i].catename == res.data[j].f_type){
|
|
570
|
+
_child.push({catename:res.data[j].f_name,expanded: false,type:'材料名称'})
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
this.menulist[i]._child=_child
|
|
574
|
+
}
|
|
575
|
+
this.addshowm = false
|
|
576
|
+
this.$nextTick(()=> {
|
|
577
|
+
this.addshowm = true
|
|
578
|
+
})
|
|
579
|
+
console.log('menulist',this.menulist)
|
|
580
|
+
},
|
|
581
|
+
async export(row) {
|
|
582
|
+
console.log("导出",row)
|
|
583
|
+
let exportdata = {
|
|
584
|
+
body:{
|
|
585
|
+
data:{
|
|
586
|
+
condition:`f_apply_num = '${this.selectdata.f_apply_num}' and f_batch_id ='${row.id}' `, // 查询条件
|
|
587
|
+
items:"f_batch_code,f_batch_name,f_batch_type,f_batch_version,f_batch_norms,f_budget_num,f_batch_company"
|
|
588
|
+
},
|
|
589
|
+
field:["f_batch_code:材料编码","f_batch_name:材料名称","f_batch_type:材料类型","f_batch_version:材料型号","f_batch_norms:材料规格","f_budget_num:数量","f_batch_company:材料单位"],
|
|
590
|
+
sqlName:"materialExport",
|
|
591
|
+
templateName:"材料导出"
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
let httpExport = new HttpResetClass()
|
|
595
|
+
let res = await httpExport.load('POST', 'rs/logic/exportfile', {data: exportdata}, {
|
|
596
|
+
resolveMsg: null,
|
|
597
|
+
rejectMsg: "材料导出失败"
|
|
598
|
+
}, {silent: true})
|
|
599
|
+
//res :[{"filename":"/D:/服务文件/apache-5002/webapps/manage/excel/流程监控全部导出.xlsx"}]
|
|
600
|
+
let downloadPath = res.data[0].filename
|
|
601
|
+
let downloadURL = "http://" + location.host + "/excel" + downloadPath.split('excel')[1]
|
|
602
|
+
// js 下载
|
|
603
|
+
let aTag = document.createElement('a')
|
|
604
|
+
aTag.download = "材料导出.xlsx"
|
|
605
|
+
aTag.href = downloadURL
|
|
606
|
+
aTag.click()
|
|
607
|
+
URL.revokeObjectURL(aTag.href)
|
|
608
|
+
// $("<a href=" + downloadURL + " />")[0].click()
|
|
609
|
+
},
|
|
610
|
+
async deleteItem(row) {
|
|
611
|
+
let res = await this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel'])
|
|
612
|
+
if (res === 'confirm') {
|
|
613
|
+
let http = new HttpResetClass()
|
|
614
|
+
http.load('DELETE', `rs/entity/t_material_list/${row.id}`).then((res)=>{
|
|
615
|
+
for(let i=0;i<this.batchmodel.rows.length;i++){
|
|
616
|
+
if(this.batchmodel.rows[i].id == row.id){
|
|
617
|
+
this.batchmodel.rows.splice(i,1)
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
})
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
},
|
|
624
|
+
async xinhao() {
|
|
625
|
+
if (!this.model.f_batch_norms[0]) {
|
|
626
|
+
return
|
|
627
|
+
}
|
|
628
|
+
let temp = []
|
|
629
|
+
for (let row of this.optionsx) {
|
|
630
|
+
if (this.model.f_batch_norms[0] == row.f_format) {
|
|
631
|
+
temp.push({label: row.f_num, value: row.f_num})
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
this.xinhaooptions = temp
|
|
635
|
+
},
|
|
636
|
+
async bianma() {
|
|
637
|
+
let temp = []
|
|
638
|
+
for (let row of this.optionsx) {
|
|
639
|
+
if (this.model.f_batch_norms[0] && this.model.f_batch_norms[0] == row.f_format && this.model.f_batch_version[0] && this.model.f_batch_version[0] == row.f_num) {
|
|
640
|
+
temp.push({label: row.f_code, value: row.f_code})
|
|
641
|
+
} else if (this.model.f_batch_norms[0] && this.model.f_batch_norms[0] == row.f_format) {
|
|
642
|
+
temp.push({label: row.f_code, value: row.f_code})
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
this.codeOptions = temp
|
|
646
|
+
},
|
|
647
|
+
async guige() {
|
|
648
|
+
// let http = new HttpResetClass()
|
|
649
|
+
let data = {
|
|
650
|
+
columnname: `f_type`,
|
|
651
|
+
tablename: 't_material_class',
|
|
652
|
+
condition: `1=1`
|
|
653
|
+
}
|
|
654
|
+
let http = new HttpResetClass()
|
|
655
|
+
|
|
656
|
+
let res = await http.load('POST','rs/sql/getdistinct', {data: data}, {
|
|
657
|
+
resolveMsg: null,
|
|
658
|
+
rejectMsg: '获取材料类型失败'
|
|
659
|
+
})
|
|
660
|
+
this.menulist = []
|
|
661
|
+
for(let i=0;i<res.data.length;i++){
|
|
662
|
+
this.menulist.push({catename:res.data[i].f_type,expanded: false,type:'材料类型'})
|
|
663
|
+
}
|
|
664
|
+
console.log('menulist',this.menulist)
|
|
665
|
+
},
|
|
666
|
+
async getname() {
|
|
667
|
+
let http = new HttpResetClass()
|
|
668
|
+
let data = await http.load('POST', 'rs/logic/getMaterialAddItem', {data: {condition: `f_apply_num = '${this.selectdata.f_apply_num}' `}}, {
|
|
669
|
+
resolveMsg: null,
|
|
670
|
+
rejectMsg: null
|
|
671
|
+
})
|
|
672
|
+
console.log('查询到的选项', data)
|
|
499
673
|
let house = []
|
|
500
|
-
|
|
501
|
-
|
|
674
|
+
let codeOptionstemp = []
|
|
675
|
+
for (let row of data.data.f_name) {
|
|
676
|
+
// codeOptionstemp.push({label: row.f_code,value: row.f_code})
|
|
677
|
+
house.push({label: row.f_name, value: row.f_name})
|
|
502
678
|
}
|
|
679
|
+
// this.codeOptions = codeOptionstemp
|
|
680
|
+
this.material = []
|
|
503
681
|
this.material = house
|
|
682
|
+
let house2 = [{label: '全部', value: ''}]
|
|
683
|
+
for (let row of data.data.f_user_name) {
|
|
684
|
+
house2.push({label: row.f_material_operator, value: row.f_material_operator})
|
|
685
|
+
}
|
|
686
|
+
this.f_user_name = []
|
|
687
|
+
this.f_user_name = house2
|
|
504
688
|
},
|
|
505
|
-
addDetailed(){
|
|
689
|
+
addDetailed() {
|
|
506
690
|
this.addshow = true
|
|
507
691
|
},
|
|
508
|
-
addclose(){
|
|
692
|
+
addclose() {
|
|
509
693
|
this.addshow = false
|
|
694
|
+
// this.model = {}
|
|
510
695
|
},
|
|
511
|
-
async addconfirm(){
|
|
512
|
-
if(!this.model.f_batch_name){
|
|
513
|
-
this.$showAlert("请输入材料名称","warning", 1500)
|
|
696
|
+
async addconfirm() {
|
|
697
|
+
if (!this.model.f_batch_name) {
|
|
698
|
+
this.$showAlert("请输入材料名称", "warning", 1500)
|
|
514
699
|
return
|
|
515
700
|
}
|
|
516
|
-
if(!this.model.
|
|
517
|
-
this.$showAlert("
|
|
701
|
+
if (!this.model.f_batch_code) {
|
|
702
|
+
this.$showAlert("请选择材料编码", "warning", 1500)
|
|
518
703
|
return
|
|
519
704
|
}
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
705
|
+
if (!this.model.f_budget_num) {
|
|
706
|
+
this.$showAlert("请输入材料数量", "warning", 1500)
|
|
707
|
+
return
|
|
708
|
+
}
|
|
709
|
+
return await insertdetail(this)
|
|
710
|
+
|
|
525
711
|
},
|
|
526
712
|
// 父组件更新子组件属性
|
|
527
713
|
updateData(val) {
|
|
528
714
|
this.headers.blodid = val.f_process_id
|
|
529
715
|
this.selectdata = val
|
|
530
716
|
},
|
|
531
|
-
addmaterial(){
|
|
717
|
+
addmaterial() {
|
|
532
718
|
this.$showMessage(`是否确认添加批次`, ['confirm', 'cancel']).then((res) => {
|
|
533
719
|
if (res === 'confirm') {
|
|
534
720
|
insert(this)
|
|
535
721
|
}
|
|
536
722
|
})
|
|
537
723
|
},
|
|
538
|
-
showdetail(val,f_effective_state) {
|
|
539
|
-
if (f_effective_state === '无效'){
|
|
540
|
-
this.
|
|
541
|
-
} else{
|
|
542
|
-
|
|
543
|
-
console.log(val)
|
|
544
|
-
this.batch_id = val
|
|
545
|
-
this.isShowdetail=true
|
|
546
|
-
getInfo(this,1,val,false)
|
|
724
|
+
showdetail(val, f_effective_state) {
|
|
725
|
+
if (f_effective_state === '无效') {
|
|
726
|
+
this.isbuttonshow = false
|
|
727
|
+
} else {
|
|
728
|
+
this.isbuttonshow = true
|
|
547
729
|
}
|
|
548
|
-
|
|
730
|
+
console.log('查询明细')
|
|
731
|
+
console.log(val)
|
|
732
|
+
this.batch_id = val
|
|
733
|
+
this.isShowdetail = true
|
|
734
|
+
getInfo(this, 1, val, false)
|
|
549
735
|
},
|
|
550
|
-
async load(){
|
|
736
|
+
async load() {
|
|
737
|
+
|
|
551
738
|
let http = new HttpResetClass()
|
|
552
739
|
let data = {
|
|
553
740
|
columnname: 'f_material_type',
|
|
@@ -572,7 +759,8 @@
|
|
|
572
759
|
//判断当前节点的状态(开始活动/完工)
|
|
573
760
|
var entryName = this.model.f_entry_name //项目名称
|
|
574
761
|
var ename = this.selectdata.f_entry_name
|
|
575
|
-
|
|
762
|
+
let http = new HttpResetClass()
|
|
763
|
+
http.load('POST', 'rs/sql/findProcessState', {data: {actid: this.selectdata.actid}}, {
|
|
576
764
|
resolveMsg: null,
|
|
577
765
|
rejectMsg: '提交错误!'
|
|
578
766
|
}).then((res) => {
|
|
@@ -581,10 +769,11 @@
|
|
|
581
769
|
this.reset()
|
|
582
770
|
} else {
|
|
583
771
|
//通过数据校验再进行下一步判断
|
|
584
|
-
if (this.verification())
|
|
585
|
-
if(name == null){
|
|
772
|
+
if (this.verification()) {
|
|
773
|
+
if (name == null) {
|
|
586
774
|
//项目名称唯一性判断
|
|
587
|
-
|
|
775
|
+
let http2 = new HttpResetClass()
|
|
776
|
+
http2.load('POST', 'rs/sql/findByEntryName', {data: {entryName: entryName}}, {
|
|
588
777
|
resolveMsg: null,
|
|
589
778
|
rejectMsg: '提交错误!'
|
|
590
779
|
}).then((res) => {
|
|
@@ -599,7 +788,7 @@
|
|
|
599
788
|
console.log('co(getgen)')
|
|
600
789
|
}
|
|
601
790
|
})
|
|
602
|
-
}else{
|
|
791
|
+
} else {
|
|
603
792
|
let getGen = gen(this, this.model)
|
|
604
793
|
co(getGen)
|
|
605
794
|
}
|
|
@@ -634,19 +823,21 @@
|
|
|
634
823
|
},
|
|
635
824
|
tovoid(row) {
|
|
636
825
|
console.log('作废')
|
|
637
|
-
getInfo(this,1,row.id,true)
|
|
826
|
+
getInfo(this, 1, row.id, true)
|
|
638
827
|
},
|
|
639
|
-
async filterParams(f_material_operator,f_effective_stated,f_picking_stated) {
|
|
828
|
+
async filterParams(f_material_operator, f_effective_stated, f_picking_stated) {
|
|
829
|
+
this.isShowdetail = false
|
|
640
830
|
let data = {
|
|
641
831
|
tablename: 't_material_batch',
|
|
642
832
|
condition: `f_apply_num = '${this.selectdata.f_apply_num}' and f_material_operator like '%${f_material_operator}%'
|
|
643
833
|
and f_effective_state like '%${f_effective_stated}%' and f_picking_state like '%${f_picking_stated}%'
|
|
644
834
|
`
|
|
645
835
|
}
|
|
836
|
+
console.log('condition:', data.condition)
|
|
646
837
|
let reset = new HttpResetClass()
|
|
647
838
|
await reset.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取材料信息失败'})
|
|
648
839
|
.then((res) => {
|
|
649
|
-
console.log('查询结果:',res)
|
|
840
|
+
console.log('查询结果:', res)
|
|
650
841
|
|
|
651
842
|
this.model.rows = []
|
|
652
843
|
this.model.rows = res.data
|
|
@@ -665,6 +856,7 @@
|
|
|
665
856
|
this.$set('selectItem.f_surplus_num', row.f_surplus_num)
|
|
666
857
|
this.$set('selectItem.f_batch_type', row.f_batch_type)
|
|
667
858
|
this.$set('selectItem.f_batch_code', row.f_batch_code)
|
|
859
|
+
this.$set('selectItem.f_batch_version', row.f_batch_version)
|
|
668
860
|
this.$set('selectItem.f_batch_name', row.f_batch_name)
|
|
669
861
|
this.$set('selectItem.f_batch_norms', row.f_batch_norms)
|
|
670
862
|
this.$set('selectItem.f_batch_company', row.f_batch_company)
|
|
@@ -679,8 +871,8 @@
|
|
|
679
871
|
// 缴费情况修改
|
|
680
872
|
paychange(row) {
|
|
681
873
|
let http = new HttpResetClass()
|
|
682
|
-
row.f_pay
|
|
683
|
-
http.load('POST','rs/logic/saveentity', {data:{tablename:'t_material',parameters:row}}, {
|
|
874
|
+
row.f_pay = !row.f_pay
|
|
875
|
+
http.load('POST', 'rs/logic/saveentity', {data: {tablename: 't_material', parameters: row}}, {
|
|
684
876
|
resolveMsg: null,
|
|
685
877
|
rejectMsg: "缴费状态更新失败"
|
|
686
878
|
}, {silent: true})
|
|
@@ -691,11 +883,11 @@
|
|
|
691
883
|
tablename: 't_material_list',
|
|
692
884
|
parameters: this.selectItem
|
|
693
885
|
}
|
|
694
|
-
let this1=this
|
|
886
|
+
let this1 = this
|
|
695
887
|
this.$resetpost('rs/logic/saveentity', {data: data}).then((res) => {
|
|
696
888
|
this.show = false
|
|
697
889
|
// 如果没有id,需要在数组中添加
|
|
698
|
-
getInfo(this,1,this.selectItem.f_batch_id,false)
|
|
890
|
+
getInfo(this, 1, this.selectItem.f_batch_id, false)
|
|
699
891
|
this.selectItem = {}
|
|
700
892
|
|
|
701
893
|
})
|
|
@@ -707,7 +899,7 @@
|
|
|
707
899
|
this.selectItem = {}
|
|
708
900
|
},
|
|
709
901
|
|
|
710
|
-
async getaaa(){
|
|
902
|
+
async getaaa() {
|
|
711
903
|
console.log('进来了')
|
|
712
904
|
let data = {
|
|
713
905
|
tablename: 't_material_batch',
|
|
@@ -724,6 +916,101 @@
|
|
|
724
916
|
}
|
|
725
917
|
,
|
|
726
918
|
events: {
|
|
919
|
+
updateTree(){
|
|
920
|
+
this.scrollTop = document.getElementById("treemx").scrollTop
|
|
921
|
+
this.addshowm = false
|
|
922
|
+
this.$nextTick(()=> {
|
|
923
|
+
this.addshowm = true
|
|
924
|
+
})
|
|
925
|
+
},
|
|
926
|
+
async menulistSelected(item,root,parent){
|
|
927
|
+
this.scrollTop = document.getElementById("treemx").scrollTop
|
|
928
|
+
console.log("scrollTop",this.scrollTop)
|
|
929
|
+
if(item.type=='材料类型'){
|
|
930
|
+
console.log('选了材料类型')
|
|
931
|
+
let data = {
|
|
932
|
+
columnname: `f_name`,
|
|
933
|
+
tablename: 't_material_class',
|
|
934
|
+
condition: `f_type = '${item.catename}'`
|
|
935
|
+
}
|
|
936
|
+
let res = await this.$resetpost('rs/sql/getdistinct', {data: data}, {
|
|
937
|
+
resolveMsg: null,
|
|
938
|
+
rejectMsg: '获取材料名称失败'
|
|
939
|
+
})
|
|
940
|
+
// this.menulist = []
|
|
941
|
+
let _child = []
|
|
942
|
+
for(let i=0;i<res.data.length;i++){
|
|
943
|
+
_child.push({catename:res.data[i].f_name,expanded: false,type:'材料名称'})
|
|
944
|
+
}
|
|
945
|
+
for(let i=0;i<this.menulist.length;i++){
|
|
946
|
+
if(this.menulist[i].catename==item.catename){
|
|
947
|
+
this.menulist[i]._child= []
|
|
948
|
+
this.menulist[i].expanded = true
|
|
949
|
+
this.menulist[i]._child= _child
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
this.addshowm = false
|
|
953
|
+
this.$nextTick(()=> {
|
|
954
|
+
this.addshowm = true
|
|
955
|
+
})
|
|
956
|
+
console.log('menulist',this.menulist)
|
|
957
|
+
}else if(item.type=='材料名称'){
|
|
958
|
+
console.log('选了材料名称')
|
|
959
|
+
let data = {
|
|
960
|
+
columnname: `f_format,f_code`,
|
|
961
|
+
tablename: 't_material_class',
|
|
962
|
+
condition: ` f_name = '${item.catename}' and f_type = '${this.menulist[root].catename}'`
|
|
963
|
+
}
|
|
964
|
+
let res = await this.$resetpost('rs/sql/getdistinct', {data: data}, {
|
|
965
|
+
resolveMsg: null,
|
|
966
|
+
rejectMsg: '获取材料规格失败'
|
|
967
|
+
})
|
|
968
|
+
// this.menulist = []
|
|
969
|
+
let _child = []
|
|
970
|
+
for(let i=0;i<res.data.length;i++){
|
|
971
|
+
_child.push({catename:res.data[i].f_format,expanded: false,type:'材料规格',f_code:res.data[i].f_code})
|
|
972
|
+
}
|
|
973
|
+
for(let i=0;i<this.menulist.length;i++){
|
|
974
|
+
if(this.menulist[i].catename==this.menulist[root].catename){
|
|
975
|
+
for(let j=0;j<this.menulist[i]._child.length;j++){
|
|
976
|
+
if(this.menulist[i]._child[j].catename==item.catename){
|
|
977
|
+
this.$refs.tree2.menulist[i]._child[j]._child= []
|
|
978
|
+
this.$refs.tree2.menulist[i]._child[j].expanded = true
|
|
979
|
+
this.$refs.tree2.menulist[i]._child[j]._child= _child
|
|
980
|
+
break
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
this.addshowm = false
|
|
986
|
+
this.$nextTick(()=> {
|
|
987
|
+
this.addshowm = true
|
|
988
|
+
})
|
|
989
|
+
console.log('menulist',this.menulist)
|
|
990
|
+
}else if(item.type=='材料规格'){
|
|
991
|
+
console.log('选了材料规格')
|
|
992
|
+
this.model.f_batch_name = [this.menulist[root]._child[parent].catename]
|
|
993
|
+
this.model.f_batch_code = [item.f_code]
|
|
994
|
+
this.model.f_budget_num = item.count
|
|
995
|
+
let flag = await this.addconfirm()
|
|
996
|
+
if(flag == false){
|
|
997
|
+
for(let i =0;i<this.menulist[root]._child[parent]._child.length;i++){
|
|
998
|
+
if(this.menulist[root]._child[parent]._child[i].f_code = item.f_code){
|
|
999
|
+
this.menulist[root]._child[parent]._child[i].count = null
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
this.addshowm = false
|
|
1004
|
+
this.$nextTick(()=> {
|
|
1005
|
+
this.addshowm = true
|
|
1006
|
+
})
|
|
1007
|
+
console.log('menulist',this.menulist)
|
|
1008
|
+
}
|
|
1009
|
+
this.addshowm = false
|
|
1010
|
+
this.$nextTick(()=> {
|
|
1011
|
+
this.addshowm = true
|
|
1012
|
+
})
|
|
1013
|
+
},
|
|
727
1014
|
onFileUpload: function (file, res) {
|
|
728
1015
|
if (!this.selectdata.f_process_id) {
|
|
729
1016
|
this.$showMessage("数据异常,导入失败")
|
|
@@ -734,17 +1021,19 @@
|
|
|
734
1021
|
filepath: res.f_downloadpath,
|
|
735
1022
|
processid: this.selectdata.f_process_id,
|
|
736
1023
|
f_apply_num: this.selectdata.f_apply_num,
|
|
737
|
-
f_filiale:this.selectdata.f_filiale,
|
|
738
|
-
f_parentname:this.$login.f.f_parentname,
|
|
739
|
-
f_material_operator:this.$login.f.name
|
|
1024
|
+
f_filiale: this.selectdata.f_filiale,
|
|
1025
|
+
f_parentname: this.$login.f.f_parentname,
|
|
1026
|
+
f_material_operator: this.$login.f.name
|
|
740
1027
|
/* processid:this.selectdata.f_processid*/
|
|
741
1028
|
}
|
|
742
1029
|
|
|
743
1030
|
|
|
744
|
-
|
|
745
1031
|
this.$resetpost('rs/logic/materialImport', data, {resolveMsg: '上传成功', rejectMsg: '上传失败'}).then((res) => {
|
|
746
|
-
|
|
747
|
-
|
|
1032
|
+
if (res.data.msg) {
|
|
1033
|
+
this.$showMessage(res.data.msg)
|
|
1034
|
+
} else {
|
|
1035
|
+
getInfo(this, 0, 0, false)
|
|
1036
|
+
}
|
|
748
1037
|
this.closeFile()
|
|
749
1038
|
})
|
|
750
1039
|
}
|