|
@@ -188,11 +188,16 @@ onMounted(() => {
|
|
|
});
|
|
|
|
|
|
currentTimer = setInterval(() => {
|
|
|
- getStationInfo({ stanCode: userStore.user.stationCode }).then(
|
|
|
- (res: any) => {
|
|
|
- boxDetail.value = res.data;
|
|
|
- }
|
|
|
- );
|
|
|
+ if (currentBox.value && currentBox.value.trim() !== "") {
|
|
|
+ boxDetail.value.rfid = currentBox.value.trim();
|
|
|
+ } else {
|
|
|
+ getStationInfo({ stanCode: userStore.user.stationCode }).then(
|
|
|
+ (res: any) => {
|
|
|
+ boxDetail.value = res.data;
|
|
|
+ // 如果右边的输入框有值,就以右边的为准
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
}, 1500);
|
|
|
});
|
|
|
|
|
@@ -225,8 +230,7 @@ const createTask = () => {
|
|
|
ElMessage.success("创建成功");
|
|
|
|
|
|
//1366 一体机—物料流转任务创建成功后 清空页面数据
|
|
|
- currentBox.value = "";
|
|
|
- boxDetail.value = {};
|
|
|
+
|
|
|
scanCodeInput.value = "";
|
|
|
materialList.value = [];
|
|
|
});
|