| | |
| | | </div> |
| | | <div class="choose"> |
| | | <span>类型:</span> |
| | | <el-select v-model="search.type" size="small" placeholder="请选择" @change="type" style="width: 224px;margin-right: 30px;"> |
| | | <el-select v-model="search.type" size="small" placeholder="请选择" @change="type" style="width: 224px;margin-right: 30px;"> |
| | | <el-option label="橡胶连接器" :value="0"></el-option> |
| | | <el-option label="金属连接器" :value="1"></el-option> |
| | | <el-option label="湿插拔电连接器" :value="2"></el-option> |
| | |
| | | <el-col :span="4" style="font-size: 14px;text-align: right;">类型:</el-col> |
| | | <el-col :span="16" :offset="1"> |
| | | <template> |
| | | <el-select v-model="upData.type" placeholder="请选择类型" style="width: 310px;"> |
| | | <el-select v-model="edit.type" placeholder="请选择类型" style="width: 310px;"> |
| | | <el-option label="橡胶连接器" :value="0"></el-option> |
| | | <el-option label="金属连接器" :value="1"></el-option> |
| | | <el-option label="湿插拔电连接器" :value="2"></el-option> |
| | |
| | | <el-row style="line-height: 46px;"> |
| | | <el-col :span="4" style="font-size: 14px;text-align: right;">工序:</el-col> |
| | | <el-col :span="16" :offset="1"> |
| | | <el-select v-model="upData.father" style="width: 310px;" placeholder="请选择"> |
| | | <el-select v-model="edit.father" style="width: 310px;" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in procedure" |
| | | :key="item" |
| | |
| | | <el-row style="line-height: 46px;"> |
| | | <el-col :span="4" style="font-size: 14px;text-align: right;">元件:</el-col> |
| | | <el-col :span="16" :offset="1"> |
| | | <el-select v-model="upData.ele" style="width: 310px;" multiple placeholder="请选择"> |
| | | <el-select v-model="AAA.id" style="width: 310px;" multiple placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in element" |
| | | :key="item.index" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | |
| | | <el-row style="line-height: 46px;"> |
| | | <el-col :span="4" style="font-size: 14px;text-align: right;">工艺名称:</el-col> |
| | | <el-col :span="16" :offset="1"> |
| | | <el-input v-model="upData.name" size="small" clearable></el-input> |
| | | <el-input v-model="edit.name" size="small" clearable></el-input> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row style="line-height: 46px;"> |
| | |
| | | process: [], |
| | | product: [], |
| | | procedure:[], |
| | | checkTreeNode:'下料', |
| | | checkTreeNode:{ |
| | | name:'下料' |
| | | }, |
| | | towTree:[], |
| | | value:"", |
| | | modifyevent:false, |
| | | dialogVisible:false, |
| | | checkTreeNode: {}, |
| | | tableData: [], |
| | | upIndex: 0, |
| | | selects: [], |
| | | upDia: false, |
| | | element:[], |
| | | equipment:[0], |
| | | edit:[], |
| | | AAA:[{ |
| | | id:'', |
| | | }], |
| | | edit:{ |
| | | deviceGroup:'', |
| | | elementId:'', |
| | | father:'', |
| | | name:'', |
| | | type:'', |
| | | // children:[], |
| | | }, |
| | | upData: { |
| | | name:'', |
| | | device_group:'', |
| | | deviceGroup:'', |
| | | ele:'', |
| | | father:'', |
| | | type:'', |
| | |
| | | this.chooseTech() |
| | | this.chooseDevGroup() |
| | | this.chooseElement() |
| | | this.selectAllTechNam() |
| | | }, |
| | | methods: { |
| | | type(val){ |
| | | this.typeselect = val |
| | | this.upData.type = val |
| | | console.log(this.typeselect); |
| | | this.selectAllTechTem() |
| | | }, |
| | |
| | | Neworder() { |
| | | this.dialogVisible = false |
| | | this.addTechTemp() |
| | | this.selectAllTechNam() |
| | | // this.form = ''; |
| | | |
| | | }, |
| | | Deleteapi() { |
| | | this.dialogVisible = false |
| | |
| | | } |
| | | ).then(res=>{ |
| | | console.log(res); |
| | | this.selectAllTechNam() |
| | | this.form = {} |
| | | }) |
| | | }, |
| | | |
| | |
| | | id:this.upData.id, |
| | | technologyTemplateDto:{ |
| | | deviceGroup:this.upData.device_group, |
| | | elementId:this.upData.ele[0], |
| | | father:this.upData.father, |
| | | name:this.upData.name, |
| | | type:this.upData.type |
| | | elementId:this.edit.elementId, |
| | | father:this.edit.father, |
| | | name:this.edit.name, |
| | | type:this.edit.type |
| | | } |
| | | // id:this.upData.id, |
| | | } |
| | |
| | | headers: { |
| | | "Content-Type": "application/json" |
| | | } |
| | | }).then(res =>{ |
| | | console.log(res); |
| | | |
| | | }) |
| | | }, |
| | | |
| | |
| | | } |
| | | } |
| | | }) |
| | | // console.log(this.selects); |
| | | let cc = this.selects.map(el => { |
| | | // console.log(el.id); |
| | | return el.id |
| | | }) |
| | | // console.log(this.delete); |
| | | this.delete = cc.join(',') |
| | | console.log(this.delete); |
| | | this.delAllTech() |
| | | // this.delete = |
| | | // console.log('444'); |
| | | this.$message.success('删除完成') |
| | | }, |
| | | deleteRow(index, rows) { |
| | | // console.log(rows); |
| | | // rows.splice(index, 1); |
| | | this.tableData.splice(index,1) |
| | | this.upData.id = rows.id |
| | | this.delTechById() |
| | |
| | | params:{ |
| | | id:this.upData.id, |
| | | } |
| | | } |
| | | // , { |
| | | // headers: { |
| | | // "Content-Type": "application/json" |
| | | // } |
| | | // } |
| | | ).then(res =>{ |
| | | this.edit = res.data |
| | | }).then(res =>{ |
| | | this.edit = res.data[0] |
| | | this.AAA = res.data[0].children |
| | | console.log(this.edit); |
| | | console.log(this.AAA); |
| | | // this.edit.forEach(el => { |
| | | // // el.children.forEach(ele =>{ |
| | | // // this.AAA.push(ele) |
| | | // console.log(el); |
| | | // }) |
| | | // console.log(this.AAA.id); |
| | | // }) |
| | | // console.log(this.edit); |
| | | }) |
| | | }, |
| | | //编辑内容 |
| | | upContent(ob) { |
| | | this.upData = ob |
| | | this.selecTechById() |
| | | this.selecTechById() |
| | | console.log(this.upData); |
| | | this.upDia = true |
| | | }, |