|
|
|
@ -119,7 +119,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="目标库位"> |
|
|
|
<el-input v-model="inboundData.targetLocationId" placeholder="请输入目标库位" /> |
|
|
|
<el-input v-model="inboundData.targetLocationId" ref="scanLocationRef" placeholder="请输入目标库位" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
@ -259,10 +259,14 @@ export default { |
|
|
|
this.resetInboundData(); |
|
|
|
// 默认入库数量为合格数量 |
|
|
|
this.inboundData.inboundQty = item.qualifiedQty; |
|
|
|
this.inboundData.targetLocationId = item.locationId; // 默认使用原库位 |
|
|
|
this.inboundData.inboundDate = this.getCurrentDate(); |
|
|
|
this.inboundData.operatorName = this.$store.state.user.userDisplay; // 这里应该从用户信息中获取 |
|
|
|
this.processFlag = 2; |
|
|
|
this.$nextTick(() => { |
|
|
|
if (this.$refs.scanLocationRef) { |
|
|
|
this.$refs.scanLocationRef.focus(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 确认入库 |
|
|
|
@ -371,8 +375,8 @@ export default { |
|
|
|
|
|
|
|
mounted() { |
|
|
|
this.$nextTick(() => { |
|
|
|
if (this.$refs.scanCodeRef) { |
|
|
|
this.$refs.scanCodeRef.focus(); |
|
|
|
if (this.$refs.scanLocationRef) { |
|
|
|
this.$refs.scanLocationRef.focus(); |
|
|
|
} |
|
|
|
}); |
|
|
|
// 默认加载检验合格列表 |
|
|
|
|