gaoshp
2024-11-05 e2fdfe540eaf160dc7d063c60667041edcc64e86
src/views/console/product-process/process-route/add-craft.vue
@@ -129,7 +129,7 @@
               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 = [];
@@ -165,7 +165,7 @@
            var obj = Object.assign({},this.addStepForm0);
            this.$refs.dialogForm0.validate(async (valid) => {
               if (valid) {
                  this.$HTTP.put("/api/blade-cps/craft-routing/update",obj).then(res=> {
                  this.$HTTP.put("/api/smis/craft-routing/update",obj).then(res=> {
                     this.isSaveing = false;
                     if(res.code == 200) {
                        this.active = 1;
@@ -184,7 +184,7 @@
            obj.craftId = "";
            this.$refs.dialogForm1.validate(async (valid) => {
               if (valid) {
                  this.$HTTP.post("/api/blade-cps/production-craft-version/insert",obj).then(res=> {
                  this.$HTTP.post("/api/smis/production-craft-version/insert",obj).then(res=> {
                     this.isSaveing = false;
                     if(res.code == 200) {
                        this.active = 2;
@@ -200,14 +200,14 @@
            })
         },
         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.addStepForm0 = res.data;
               }
            })
         },
         getProductList() {
            this.$HTTP.get(`/api/blade-cps/craft-routing/not-band-craft?craftId=${this.$route.query.id}`).then(res=> {
            this.$HTTP.get(`/api/smis/craft-routing/not-band-craft?craftId=${this.$route.query.id}`).then(res=> {
               if(res.code == 200) {
                  this.productList = res.data;
                  this.getDetail();