|
|
@ -2,12 +2,13 @@ |
|
|
|
<div class="padListPageOuter isPadForOutStockFinishPage"> |
|
|
|
<p class="pageTitle">{{pageTitle}}</p> |
|
|
|
<div class="bottomBox"> |
|
|
|
<el-form class="formBox" :inline="true" :model="formData" size="small"> |
|
|
|
<el-form @submit.native.prevent class="formBox" :inline="true" :model="formData" size="small"> |
|
|
|
<el-form-item label="出库物品条码"> |
|
|
|
<el-input ref="itemCode_Ref" clearable v-model="formData.itemCode" placeholder="请扫描出库物品条码"></el-input> |
|
|
|
<el-input @change="sureItem" ref="itemCode_Ref" clearable v-model="formData.itemCode" placeholder="请扫描出库物品条码"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="primary" @click="sureItem">确定</el-button> |
|
|
|
<p style="color:#999;line-height:30px;margin:0;padding:0">如果不是使用扫码,请点击回车</p> |
|
|
|
<!-- <el-button type="primary" @click="sureItem">回车/点击确定</el-button> --> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div class="isScanCodeBox"> |
|
|
@ -52,12 +53,14 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
sureItem(){ |
|
|
|
if(!this.formData.itemCode){ |
|
|
|
this.$warningMsg("请先扫描"); |
|
|
|
this.$nextTick(()=>{ |
|
|
|
if(this.$refs.itemCode_Ref)this.$refs.itemCode_Ref.focus() |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
// if(!this.formData.itemCode || this.formData.itemCode.length <= 0){ |
|
|
|
// this.$warningMsg("请先扫描") |
|
|
|
// this.$nextTick(()=>{ |
|
|
|
// if(this.$refs.itemCode_Ref)this.$refs.itemCode_Ref.focus() |
|
|
|
// }) |
|
|
|
// return |
|
|
|
// } |
|
|
|
if(this.formData.itemCode){ |
|
|
|
if(this.scanCodes.indexOf(this.formData.itemCode) < 0){ |
|
|
|
this.scanCodes.push(this.formData.itemCode) |
|
|
|
this.$nextTick(()=>{ |
|
|
|