diff --git a/src/views/modules/recv/qualifiedStorage.vue b/src/views/modules/recv/qualifiedStorage.vue
index 5af7604..3fd0be6 100644
--- a/src/views/modules/recv/qualifiedStorage.vue
+++ b/src/views/modules/recv/qualifiedStorage.vue
@@ -119,7 +119,7 @@
-
+
@@ -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();
}
});
// 默认加载检验合格列表
diff --git a/src/views/modules/recv/recv.vue b/src/views/modules/recv/recv.vue
index f7f2055..5dbde95 100644
--- a/src/views/modules/recv/recv.vue
+++ b/src/views/modules/recv/recv.vue
@@ -80,10 +80,8 @@
-
-
+
+