| | |
| | | |
| | | <script> |
| | | export default { |
| | | props:['insProduct','orderId','sampleId','state'], |
| | | props:['insProduct','orderId','sampleId','state','num'], |
| | | data() { |
| | | return { |
| | | value: "", |
| | |
| | | // 初始化数据 |
| | | initData(){ |
| | | // 处理项目 |
| | | this.insProductNew = JSON.parse(JSON.stringify(this.insProduct)) |
| | | this.insProductNew = JSON.parse(JSON.stringify(this.insProduct)).filter(m=>m.inspectionItem.includes('电路试验')) |
| | | this.insProductNew.forEach(async item => { |
| | | // 获取设备列表 |
| | | item.equipOptions = await this.getEquipOptions(item) |
| | |
| | | often:n.often, |
| | | equipName:n.equipName, |
| | | equipValue:n.equipValue, |
| | | frequency:n.frequency |
| | | frequency:n.frequency, |
| | | sonLaboratory:item.sonLaboratory |
| | | } |
| | | this.$set(obj,'portList', n.port?portList:[]) |
| | | this.$set(obj,'angleList', n.angle?angleList:[]) |
| | |
| | | }).then(() => { |
| | | this.$axios.post(this.$api.insOrderPlan.deleteInsContext, { |
| | | frequency:list[index].band, |
| | | productIds:list[index].projectList.map(m=>m.id) |
| | | productIds:list[index].projectList.map(m=>m.id), |
| | | num:this.num |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | |
| | | list.splice(index+1, 0, obj) |
| | | }else if(type=='频段'){ |
| | | let obj = JSON.parse(JSON.stringify(list[0])); |
| | | console.log(2222,obj) |
| | | obj.band = '' |
| | | obj.projectList.forEach(item=>{ |
| | | item.often = '' |