| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-05-24 11:25:26 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-05-27 16:58:03 |
| | | * @LastEditTime: 2024-05-28 11:09:17 |
| | | * @FilePath: /src/views/console/product-process/process-route/workmanship.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | <script> |
| | | import addWorkmanship from './addWorkmanship' |
| | | import saveDialog from './addWorking' |
| | | import { rowProps } from 'element-plus'; |
| | | export default { |
| | | name: 'workmanship', |
| | | components: {saveDialog,addWorkmanship}, |
| | |
| | | } |
| | | 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(); |