| | |
| | | item.insProduct = this.productList |
| | | }) |
| | | this.getTotal(sampleList) |
| | | const pairing = [] |
| | | let trees = this.selectTree.split(" - ") |
| | | if (trees.length < 3) { |
| | | this.$message.error('未选择对象') |
| | |
| | | this.noNeedCheckLoad = true |
| | | addExemptionOrder({ |
| | | insOrder: this.addObj, |
| | | list: sampleList.map(a => { |
| | | sampleList: sampleList.map(a => { |
| | | if (a.modelNum) { |
| | | // 根据x号判断型号参数与样品型号的拼接位置 |
| | | // 例如×4,就为500ML×4;4×,就为4×500ML |
| | |
| | | a.insProduct = a.insProduct.filter(b=>b.state === 1) |
| | | return a |
| | | }), |
| | | pairing: pairing |
| | | }).then(res => { |
| | | this.noNeedCheckLoad = false |
| | | if (res.code == 201) return |
| | |
| | | }) |
| | | }, |
| | | saveMethod(sampleList){ |
| | | const pairing = [] |
| | | let trees = this.selectTree.split(" - ") |
| | | if (trees.length < 3) { |
| | | this.$message.error('未选择对象') |
| | |
| | | this.saveLoad = true |
| | | addInsOrder({ |
| | | insOrder: this.addObj, |
| | | list: sampleList.map(a => { |
| | | sampleList: sampleList.map(a => { |
| | | if (a.modelNum) { |
| | | // 根据x号判断型号参数与样品型号的拼接位置 |
| | | // 例如×4,就为500ML×4;4×,就为4×500ML |
| | |
| | | a.insProduct = a.insProduct.filter(b=>b.state === 1) |
| | | return a |
| | | }), |
| | | pairing: pairing |
| | | }).then(res => { |
| | | this.saveLoad = false |
| | | if (res.code == 201) return |