Commit 4ccb35d7 by wusiyi

fix: old pod 快捷生产自动完成上一单勾选后localStorage为更新bug修复

parent ec6e09e1
......@@ -585,7 +585,8 @@ const playAudio = (key: AudioKey, message?: string) => {
console.error(`No audio found for key: ${key}`)
}
}
// 上一单数据
const lastOrderNumber = ref('')
const trackcodeInput = async () => {
if (!TrackingNumber.value) {
// ElMessage.warning('请扫描生产单号')
......@@ -610,7 +611,8 @@ const trackcodeInput = async () => {
TrackingNumber.value = ''
if (props.type === 1) {
if (isAutoSure.value) {
await setData(orderNumber)
await setData(lastOrderNumber.value)
lastOrderNumber.value = orderNumber
}
} else {
await setData(orderNumber)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment