Commit 27425159 by wusiyi

fix: 快捷生产提示bug修复 #1002069

parent a3972075
......@@ -643,15 +643,15 @@ watch(
if (newVal) {
const history = localStorage.getItem(props.historyStorageKey)
historyData.value = history ? JSON.parse(history) : []
const len = historyData.value
// 防止消息提示数量不全
const historyList = [...historyData.value]
if (
len.length > 0 &&
historyList.length > 0 &&
['fastProduction', 'fastReceipt', 'productionScan'].includes(
props.fastKey,
)
) {
confirmQuery(len, 0)
confirmQuery(historyList, 0)
}
placeholderText.value = props.trackingPlaceholder
......@@ -844,16 +844,15 @@ const setData = async (
}
playAudio('weight_success')
if (trigger === 'auto') {
// new 快捷生产:扫码后直接将订单流转至生产中
localStorage.setItem(props.historyStorageKey, JSON.stringify([]))
} else {
detail.value = {
id: -1,
podJomallOrderCnId: -1,
imgList: [] as cardImages[],
}
}
// if (trigger === 'auto') {
// } else {
// detail.value = {
// id: -1,
// podJomallOrderCnId: -1,
// imgList: [] as cardImages[],
// }
// }
TrackingNumber.value = ''
isDownloadImage.value = false
trackingNumberRef.value && trackingNumberRef.value.focus()
......
......@@ -1158,7 +1158,7 @@
pending-order-label="操作单号"
please-scan-tip="请扫码操作单号"
search-input-audio-tip="请录入操作单号"
history-storage-key="historyFactoryOrderNewData"
:history-storage-key="fastHistoryStorageKey"
tracking-placeholder="扫描枪输入操作单号"
:query-api="getOperationByNo"
:complete-api="completeOperationById"
......@@ -2661,6 +2661,11 @@ const updateCustomsDialogVisible = ref(false)
const weightDialogRef = ref()
const detailVisible = ref(false)
const fastKey = ref('')
const fastHistoryStorageKey = computed(() =>
fastKey.value === 'qualityScan'
? 'historyFactoryOrderNewQualityData'
: 'historyFactoryOrderNewData',
)
const detailData = ref<Record<string, unknown>>({})
const { ensureSelection, executeBatchAction } = useOrderBatchActions({
getIds: getSelectedIds,
......
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