| | |
| | | groupCategory: 1, |
| | | groupType: "group_workstation" |
| | | } |
| | | this.$HTTP.post(`/api/blade-cps/group/groupWorkstation`,obj).then(res=> { |
| | | this.$HTTP.post(`/api/smis/group/groupWorkstation`,obj).then(res=> { |
| | | if(res.code == 200) { |
| | | var tree = []; |
| | | var children = []; |
| | |
| | | var obj = Object.assign({},this.addStepForm0); |
| | | this.$refs.dialogForm0.validate(async (valid) => { |
| | | if (valid) { |
| | | this.$HTTP.put("/api/blade-cps/craft-routing/update",obj).then(res=> { |
| | | this.$HTTP.put("/api/smis/craft-routing/update",obj).then(res=> { |
| | | this.isSaveing = false; |
| | | if(res.code == 200) { |
| | | this.active = 1; |
| | |
| | | obj.craftId = ""; |
| | | this.$refs.dialogForm1.validate(async (valid) => { |
| | | if (valid) { |
| | | this.$HTTP.post("/api/blade-cps/production-craft-version/insert",obj).then(res=> { |
| | | this.$HTTP.post("/api/smis/production-craft-version/insert",obj).then(res=> { |
| | | this.isSaveing = false; |
| | | if(res.code == 200) { |
| | | this.active = 2; |
| | |
| | | }) |
| | | }, |
| | | getDetail(id) { |
| | | this.$HTTP.get(`/api/blade-cps/craft-routing/detail?id=${this.$route.query.id}`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/craft-routing/detail?id=${this.$route.query.id}`).then(res=> { |
| | | if(res.code == 200) { |
| | | this.addStepForm0 = res.data; |
| | | } |
| | | }) |
| | | }, |
| | | getProductList() { |
| | | this.$HTTP.get(`/api/blade-cps/craft-routing/not-band-craft?craftId=${this.$route.query.id}`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/craft-routing/not-band-craft?craftId=${this.$route.query.id}`).then(res=> { |
| | | if(res.code == 200) { |
| | | this.productList = res.data; |
| | | this.getDetail(); |