This commit is contained in:
liufumingren 2026-06-11 09:38:02 +08:00
parent a641265cf9
commit 8ccae95455

View File

@ -1018,15 +1018,6 @@ const isAllSameProductInWave = computed(() => {
return stock.every((s: any) => String(s.item_code || s.barcode || '').trim() === firstCode)
})
// 团购同款全部扫完时自动弹出称重弹窗
watch(allItemsScanned, (scanned) => {
if (scanned && isAllSameProductInWave.value && !weighingDialogVisible.value && !confirmLoading.value) {
weighingBeforeConfirm.value = true
weighingForm.weight = null
weighingDialogVisible.value = true
}
})
/** 选中订单是否设置了拦截 */
const hasSelectedIntercept = computed(() => {
const order = selectedOrderRow.value as any
@ -1479,6 +1470,14 @@ async function handleConfirm() {
return
}
// 团购波次且所有商品一致:先弹出称重弹窗,称重完成后再确认复核
if (isAllSameProductInWave.value) {
weighingBeforeConfirm.value = true
weighingForm.weight = null
weighingDialogVisible.value = true
return
}
try {
await ElMessageBox.confirm(`确认对订单 ID ${id} 提交复核记录?`, '确认复核', {
type: 'warning'