| | |
| | | color: #bababa; |
| | | } |
| | | |
| | | .el-select .is-disabled { |
| | | .ins_order_add .el-select .is-disabled { |
| | | background: transparent !important; |
| | | } |
| | | |
| | | .el-select .is-disabled .el-input__inner { |
| | | .ins_order_add .el-select .is-disabled .el-input__inner { |
| | | background: transparent !important; |
| | | } |
| | | </style> |
| | |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="scope.row.standardMethodListId" :disabled="scope.row.model==null||active>1" |
| | | placeholder="检验标准" size="small" :loading="methodLoad" @change="(value)=>methodChange(value, scope.row)" |
| | | @focus="methodFocus" :readonly="active>1"> |
| | | @focus="methodFocus" :readonly="active>1" style="width: 100%;"> |
| | | <el-option v-for="item in methods" :key="item.id" :label="item.code" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | this.addObj.sampleNum = this.sampleList.length |
| | | this.$nextTick(() => { |
| | | this.$refs.sampleTable.doLayout() |
| | | if(this.addObj.sampleNum>0){ |
| | | this.$refs.sampleTable.setCurrentRow(this.sampleList[0],true) |
| | | this.rowClick(this.sampleList[0]) |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | |
| | | }, |
| | | activeStandardTree() { |
| | | let trees = this.selectTree.split(" - ") |
| | | if (trees.length < 4) { |
| | | this.$message.error('未选择样品') |
| | | if (trees.length < 5) { |
| | | this.$message.error('未选择型号') |
| | | return |
| | | } |
| | | this.addObj.factory = trees[0] |