| | |
| | | } |
| | | this.$refs.mergeVisibleData.validate(async (valid) => { |
| | | if (valid) { |
| | | that.$HTTP.post("/api/blade-cps/production-craft-process/save-parallel",obj).then(res=> { |
| | | that.$HTTP.post("/api/smis/production-craft-process/save-parallel",obj).then(res=> { |
| | | if(res.code == 200) { |
| | | that.mergeVisible = false; |
| | | that.$message.success("操作成功"); |
| | |
| | | this.getcraftlList(); |
| | | }, |
| | | getcraftlList() { |
| | | // this.$HTTP.get(`/api/blade-cps/production-craft-version/detail/${this.craftId}`).then(res=> { |
| | | // this.$HTTP.get(`/api/smis/production-craft-version/detail/${this.craftId}`).then(res=> { |
| | | // if(res.code == 200) { |
| | | // res.data.processList.forEach((item,index)=> { |
| | | // item.index = index + 1; |
| | |
| | | // this.tableData = res.data.processList; |
| | | // } |
| | | // }) |
| | | this.$HTTP.get(`/api/blade-cps/production-craft-process/child-tree?versionId=${this.craftId}`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/production-craft-process/child-tree?versionId=${this.craftId}`).then(res=> { |
| | | if(res.code == 200) { |
| | | res.data.forEach((item,index)=> { |
| | | if(item.children && item.children.length > 0) { |
| | |
| | | this.$confirm(`工艺路线定版后,不支持编辑、删除、添加工序,请确认是否定版?`, '', { |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.$HTTP.put(`/api/blade-cps/production-craft-version/fix-version/${this.craftId}`).then(res=> { |
| | | this.$HTTP.put(`/api/smis/production-craft-version/fix-version/${this.craftId}`).then(res=> { |
| | | if(res.code == 200) { |
| | | that.$message.success("操作成功"); |
| | | }else { |
| | |
| | | removeIds: [row.id], |
| | | versionId: that.craftId |
| | | } |
| | | this.$HTTP.post(`/api/blade-cps/production-craft-process/child-process-update`,obj).then(res=> { |
| | | this.$HTTP.post(`/api/smis/production-craft-process/child-process-update`,obj).then(res=> { |
| | | if(res.code == 200) { |
| | | that.$message.success("操作成功"); |
| | | that.getcraftlList(); |
| | |
| | | removeIds: [row.parentId], |
| | | versionId: that.craftId |
| | | } |
| | | this.$HTTP.post(`/api/blade-cps/production-craft-process/child-process-update`,obj).then(res=> { |
| | | this.$HTTP.post(`/api/smis/production-craft-process/child-process-update`,obj).then(res=> { |
| | | if(res.code == 200) { |
| | | that.$message.success("操作成功"); |
| | | that.getcraftlList(); |