| | |
| | | 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 = []; |
| | |
| | | obj.id = this.$route.query.craftId; |
| | | this.$refs.dialogForm0.validate(async (valid) => { |
| | | if (valid) { |
| | | this.$HTTP.put(`/api/blade-cps/production-craft-version/update`,obj).then(res=> { |
| | | this.$HTTP.put(`/api/smis/production-craft-version/update`,obj).then(res=> { |
| | | if(res.code == 200) { |
| | | this.active = 1; |
| | | //this.getVersionDetail(res.data.id); |
| | |
| | | }) |
| | | }, |
| | | getVersionDetail(id) { |
| | | this.$HTTP.get(`/api/blade-cps/production-craft-version/detail/${id}`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/production-craft-version/detail/${id}`).then(res=> { |
| | | if(res.code == 200) { |
| | | this.versionDetail = res.data; |
| | | }else { |
| | |
| | | } |
| | | }, |
| | | 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.detail = res.data; |
| | | res.data.dtos.forEach(item=> { |