| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-dialog> |
| | | <el-dialog title="扫码检验" :visible.sync="qrCodeVisible" width="350px"> |
| | | <el-dialog title="扫码检验" :visible.sync="qrCodeVisible" width="400px"> |
| | | <el-row> |
| | | <el-col class="search_thing" :span="24"> |
| | | <div class="search_label" style="width: 90px"><span class="required-span">* </span>样品编号:</div> |
| | | <div class="search_input"> |
| | | <el-input v-model="sampleCode" size="small" clearable></el-input> |
| | | <el-input v-model="sampleCode" size="small" clearable :disabled="sampleCodeBtnDisabled"> |
| | | <el-tooltip :content="sampleCodeBtnDisabled?'手动输入':'扫码枪输入'" placement="top" slot="append"> |
| | | <el-button type="primary" icon="el-icon-edit" @click="sampleCodeBtnDisabled=!sampleCodeBtnDisabled"></el-button> |
| | | </el-tooltip> |
| | | </el-input> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <el-button type="primary" @click="confirmStorage" :loading="upLoadStorage">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="出库" :visible.sync="exportVisible" width="350px"> |
| | | <el-dialog title="出库" :visible.sync="exportVisible" width="400px"> |
| | | <el-row> |
| | | <el-col class="search_thing" :span="24"> |
| | | <div class="search_label" style="width: 90px"><span class="required-span">* </span>样品编号:</div> |
| | | <div class="search_input"> |
| | | <el-input v-model="sampleCode" size="small" clearable></el-input> |
| | | <el-input v-model="sampleCode" size="small" clearable :disabled="sampleCodeBtnDisabled"> |
| | | <el-tooltip :content="sampleCodeBtnDisabled?'手动输入':'扫码枪输入'" placement="top" slot="append"> |
| | | <el-button type="primary" icon="el-icon-edit" @click="sampleCodeBtnDisabled=!sampleCodeBtnDisabled"></el-button> |
| | | </el-tooltip> |
| | | </el-input> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | userInfo:{ |
| | | name:[], |
| | | ids:[] |
| | | } |
| | | }, |
| | | sampleCodeBtnDisabled:true, |
| | | } |
| | | }, |
| | | watch:{ |
| | |
| | | }else{ |
| | | // this.$message.warning('扫码:关闭') |
| | | clearInterval(this.startTime) |
| | | this.sampleCodeBtnDisabled=true |
| | | } |
| | | }, |
| | | exportVisible(newVal){ |
| | |
| | | }else{ |
| | | // this.$message.warning('扫码:关闭') |
| | | clearInterval(this.startTime) |
| | | this.sampleCodeBtnDisabled=true |
| | | } |
| | | }, |
| | | sampleCodeBtnDisabled(val){ |
| | | if(!val){ |
| | | this.startTime&&clearInterval(this.startTime) |
| | | }else if(this.exportVisible||this.qrCodeVisible){ |
| | | this.sampleCode = null |
| | | let input = document.getElementById('ScanCodeInfo'); |
| | | input.focus(); |
| | | this.startTime = setInterval(()=>{ |
| | | input.focus() |
| | | },1000) |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.getLaboratoryDicts() |