| | |
| | | }, |
| | | getProNum() { |
| | | this.sampleSelectionList.forEach((m, i) => { |
| | | Vue.set(this.sampleSelectionList[i], 'proNum', m.insProduct.filter(a => a.state == 1).length) |
| | | Vue.set(this.sampleSelectionList[i], 'proNum', 1) |
| | | }) |
| | | this.$refs.sampleTable.doLayout() |
| | | }, |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" label="待检项数量" prop="quantity" width="105"> |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="scope.row.quantity" :disabled="active>1|| scope.$index !== 0 || sampleList.length > 1" clearable |
| | | <el-select v-model="scope.row.quantity" disabled clearable |
| | | size="small"> |
| | | <el-option v-for="item in quantityList" :key="item.value" :label="item.label" :value="item.value"></el-option> |
| | | </el-select> |
| | |
| | | if (valid) { |
| | | if (!this.sampleList.every(m => m.standardMethodListId)) { |
| | | this.$message.error('请选择检验标准') |
| | | return |
| | | } |
| | | if (!this.sampleList.every(m => m.quantity)) { |
| | | this.$message.error('请选择待检项数量') |
| | | return |
| | | } |
| | | const sampleList = this.HaveJson(this.sampleList) |