| | |
| | | </div> |
| | | <div class="correlation-product-line">关联产线<span>千文科技</span></div> |
| | | <div class="process-main-content"> |
| | | <!-- isCustomization 新建/步骤 --> |
| | | <workmanship :isCustomization="true" :craftId="craftId"></workmanship> |
| | | </div> |
| | | </div> |
| | |
| | | this.$confirm(`确认要删除此工艺版本吗?`, '', { |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.$HTTP.delete("/api/blade-cps/production-craft-version/remove/"+that.delIconId).then(res=> { |
| | | this.$HTTP.delete("/api/smis/production-craft-version/remove/"+that.delIconId).then(res=> { |
| | | if(res.code == 200) { |
| | | that.$message.success("操作成功"); |
| | | that.getDetail(); |
| | |
| | | this.craftId = item.id; |
| | | }, |
| | | addVision() { |
| | | this.$router.push({path: `/console/product-process/process-route/add-craft-version`,query: {id:this.id}}) |
| | | this.$router.push({path: `/console/product-process/process-route/add-craft-version`,query: {id:this.id,craftId:this.craftId}}) |
| | | }, |
| | | addRoute() { |
| | | this.$router.push({path: `/console/product-process/process-route/add-craft`,query: {id:this.id}}) |
| | |
| | | } |
| | | }, |
| | | showDetail(item) { |
| | | this.$HTTP.get(`/api/blade-cps/production-craft-version/detail/${item.id}`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/production-craft-version/detail/${item.id}`).then(res=> { |
| | | if(res.code == 200) { |
| | | this.vHtml = `<ul class='detailUl'> |
| | | <li><span class='detailStyle'>名称</span><span>${res.data.name}</span></li> |
| | |
| | | }) |
| | | }, |
| | | table_edit(row){ |
| | | this.$HTTP.get(`/api/blade-cps/craft-routing/not-band-craft?craftId=${row.id}`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/craft-routing/not-band-craft?craftId=${row.id}`).then(res=> { |
| | | if(res.code == 200) { |
| | | this.dialog.save = true; |
| | | this.$nextTick(() => { |
| | |
| | | this.info = this.leftData[index]; |
| | | }, |
| | | getDetail() { |
| | | this.$HTTP.get(`/api/blade-cps/craft-routing/detail?id=${this.id}`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/craft-routing/detail?id=${this.id}`).then(res=> { |
| | | if(res.code == 200) { |
| | | if(res.data.dtos.length != 0) { |
| | | res.data.dtos.forEach(item=> { |
| | |
| | | },{ |
| | | key: "0",value: "" |
| | | }] |
| | | this.$HTTP.post("/api/blade-cps/craft-routing/list",{params}).then(res=> { |
| | | this.$HTTP.post("/api/smis/craft-routing/list",{params}).then(res=> { |
| | | if(res.code == 200) { |
| | | this.leftData = res.data; |
| | | if(res.data) { |