| | |
| | | sampleList.forEach(a => { |
| | | if (a.insProduct.length > 0) { |
| | | a.insProduct.forEach(c => { |
| | | delete c.id |
| | | if (this.tabIndex != 4) { |
| | | delete c.id |
| | | } |
| | | }) |
| | | } |
| | | if (a.endModels) { |
| | |
| | | sampleList.forEach(a => { |
| | | if (a.insProduct.length > 0) { |
| | | a.insProduct.forEach(c => { |
| | | delete c.id |
| | | if (this.tabIndex != 4) { |
| | | delete c.id |
| | | } |
| | | }) |
| | | } |
| | | if (a.endModels) { |
| | |
| | | } |
| | | }, |
| | | saveMethod(sampleList){ |
| | | console.log('sampleList----', sampleList) |
| | | this.saveLoad = true |
| | | if (this.addObj.quarterItemId) { |
| | | this.addObj.quarterItemId = this.addObj.quarterItemId[1] |
| | | } |
| | | if(this.tabIndex==4&&this.active==2){ |
| | | if (this.addObj.createTime) { |
| | | delete this.addObj.createTime |
| | | } |
| | | // 退回后提交 |
| | | updateInsOrder({insOrder: this.addObj, sampleList: sampleList}).then(res => { |
| | | updateInsOrder({insOrder: this.addObj, sampleProduct: sampleList}).then(res => { |
| | | this.saveLoad = false |
| | | this.$message.success('已提交') |
| | | this.bsm3Dia = false; |
| | |
| | | if (node.data.code === '[3]') { |
| | | this.sampleViewEn = val.sampleTypeEn |
| | | } else if (node.data.code === '[4]') { |
| | | console.log('node.data---', node.data) |
| | | if (node.data.children!==null && node.data.children.length>0) { |
| | | this.sampleViewEn = val.sampleEn |
| | | } |
| | |
| | | }, |
| | | tableRowClassName({row, rowIndex}) { |
| | | if (row.state == 1) { |
| | | console.log('row.state---', row.state) |
| | | return 'warning-row'; |
| | | } else { |
| | | return ''; |
| | |
| | | >>>.warning-row { |
| | | color: #1890FF; |
| | | } |
| | | .node_i { |
| | | color: orange; |
| | | font-size: 18px; |
| | | } |
| | | </style> |