Commit 3db67f9c by qinjianhui

fix: 问题修改

parent f58abe8d
...@@ -73,12 +73,14 @@ export default function useShipment(callback?: () => void) { ...@@ -73,12 +73,14 @@ export default function useShipment(callback?: () => void) {
}) })
} }
} else { } else {
playAudio('picking_beyond') if (rowData.num !== rowData.shipmentNum) {
ElMessage({ playAudio('picking_beyond')
message: `单号:${rowData.factorySubOrderNumber}未生产,请生产后再发货`, ElMessage({
type: 'error', message: `单号:${rowData.factorySubOrderNumber}未生产,请生产后再发货`,
offset: window.innerHeight / 2, type: 'error',
}) offset: window.innerHeight / 2,
})
}
} }
inputRef.value.focus() inputRef.value.focus()
productionOrderNumber.value = '' productionOrderNumber.value = ''
...@@ -137,12 +139,14 @@ export default function useShipment(callback?: () => void) { ...@@ -137,12 +139,14 @@ export default function useShipment(callback?: () => void) {
if (item.isProduction) { if (item.isProduction) {
item.count = 1 item.count = 1
} else { } else {
playAudio('picking_beyond') if (item.num !== item.shipmentNum) {
ElMessage({ playAudio('picking_beyond')
message: `单号:${item.factorySubOrderNumber}未生产,请生产后再发货`, ElMessage({
type: 'error', message: `单号:${item.factorySubOrderNumber}未生产,请生产后再发货`,
offset: window.innerHeight / 2, type: 'error',
}) offset: window.innerHeight / 2,
})
}
} }
currentRow.value = item currentRow.value = item
if (currentRow.value) { if (currentRow.value) {
......
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