| | |
| | | }; |
| | | this.addObj.type = String(this.addObj.type) |
| | | this.sampleList = this.HaveJson(res.data.sampleProduct); |
| | | this.sampleList.forEach(m => { |
| | | if (m.standardMethodListId) { |
| | | m.standardMethodListId = JSON.parse(m.standardMethodListId) |
| | | } |
| | | }) |
| | | this.specialStandardMethod = this.sampleList[0].specialStandardMethod |
| | | this.getProNum() |
| | | this.addObj.sampleNum = this.sampleList.length |
| | |
| | | }) |
| | | } else { |
| | | // 常规提交 |
| | | sampleList.forEach(m => { |
| | | m.standardMethodListId = JSON.stringify(m.standardMethodListId) |
| | | }) |
| | | addInsOrder({ insOrder: this.addObj, sampleList: sampleList }).then(res => { |
| | | this.saveLoad = false |
| | | this.$message.success('已提交') |
| | |
| | | selectStandardProductList({ |
| | | model: this.addObj.model ? this.addObj.model : row.model, |
| | | modelNum: row.modelNum, |
| | | standardMethodListId: JSON.stringify(val), |
| | | standardMethodListIds: val, |
| | | state: 1, |
| | | factory: selectTreeList.join(" - "), |
| | | cores: row.cores, |
| | |
| | | selectStandardProductList({ |
| | | model: this.addObj.model ? this.addObj.model : row.model, |
| | | modelNum: row.modelNum, |
| | | standardMethodListId: JSON.stringify(val), |
| | | standardMethodListIds: val, |
| | | state: 1, |
| | | cores: row.cores, |
| | | factory: selectTreeList.join(" - "), |