gaoshp
2024-11-04 eef1ef0be935d4a3d8fc691b2666f41796b2d4a5
src/views/console/product-process/process-route/workmanship.vue
@@ -2,7 +2,7 @@
 * @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
-->
@@ -76,7 +76,6 @@
<script>
   import addWorkmanship from './addWorkmanship'
   import saveDialog from './addWorking'
import { rowProps } from 'element-plus';
   export default {
      name: 'workmanship',
      components: {saveDialog,addWorkmanship},
@@ -136,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("操作成功");
@@ -160,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;
@@ -168,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) {
@@ -189,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 {
@@ -246,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();
@@ -277,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();