gaoshp
2024-11-03 3e091224ab26252d8624b42b461ba773ee8bee0f
src/views/console/product-process/process-route/workmanship.vue
@@ -135,7 +135,7 @@
            }
            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("操作成功");
@@ -159,7 +159,7 @@
            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;
@@ -167,7 +167,7 @@
            //       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) {
@@ -188,7 +188,7 @@
            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 {
@@ -245,7 +245,7 @@
                  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();
@@ -276,7 +276,7 @@
                  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();