| | |
| | | this.$message.error('请输入样品型号') |
| | | } else if (!this.sampleList.every(m => m.standardMethodListId)) { |
| | | this.$message.error('请选择检验标准') |
| | | }else if (this.totalArr.find(a=>a.ask.includes('RTS'))&&!this.RTS) { |
| | | }else if (this.totalArr.find(a=>a.ask.includes('RTS')&&a.state==1)&&!this.RTS) { |
| | | this.$message.error('请输入RTS') |
| | | } else { |
| | | let sampleList = this.HaveJson(this.sampleList) |
| | | let isRTS = this.totalArr.find(a=>a.ask.includes('RTS')) |
| | | let isRTS = this.totalArr.find(a=>a.ask.includes('RTS')&&a.state==1) |
| | | if(isRTS){ |
| | | sampleList.forEach(item=>{ |
| | | if(item.insProduct&&item.insProduct.length>0){ |
| | | item.insProduct.forEach(a=>{ |
| | | let ask = this.handleAsk(a.ask) |
| | | if(ask){ |
| | | a.ask = ask |
| | | if(a.state==1){ |
| | | let ask = this.handleAsk(a.ask) |
| | | if(ask&&a.state==1){ |
| | | a.ask = ask |
| | | } |
| | | } |
| | | }) |
| | | } |
| | |
| | | a.fiber.forEach(b=>{ |
| | | if(b.productList&&b.productList.length>0){ |
| | | b.productList.forEach(c=>{ |
| | | let ask = this.handleAsk(c.ask) |
| | | if(ask){ |
| | | c.ask = ask |
| | | if(c.state==1){ |
| | | let ask = this.handleAsk(c.ask) |
| | | if(ask&&c.state==1){ |
| | | c.ask = ask |
| | | } |
| | | } |
| | | }) |
| | | } |
| | |
| | | a.fibers.forEach(b=>{ |
| | | if(b.productList&&b.productList.length>0){ |
| | | b.productList.forEach(c=>{ |
| | | let ask = this.handleAsk(c.ask) |
| | | if(ask){ |
| | | c.ask = ask |
| | | if(c.state==1){ |
| | | let ask = this.handleAsk(c.ask) |
| | | if(ask&&c.state==1){ |
| | | c.ask = ask |
| | | } |
| | | } |
| | | }) |
| | | } |
| | |
| | | b.fiber.forEach(c=>{ |
| | | if(c.productList&&c.productList.length>0){ |
| | | c.productList.forEach(d=>{ |
| | | let ask = this.handleAsk(d.ask) |
| | | if(ask){ |
| | | d.ask = ask |
| | | if(d.state==1){ |
| | | let ask = this.handleAsk(d.ask) |
| | | if(ask){ |
| | | d.ask = ask |
| | | } |
| | | } |
| | | }) |
| | | } |