1
This commit is contained in:
parent
a641265cf9
commit
8ccae95455
@ -1018,15 +1018,6 @@ const isAllSameProductInWave = computed(() => {
|
|||||||
return stock.every((s: any) => String(s.item_code || s.barcode || '').trim() === firstCode)
|
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 hasSelectedIntercept = computed(() => {
|
||||||
const order = selectedOrderRow.value as any
|
const order = selectedOrderRow.value as any
|
||||||
@ -1479,6 +1470,14 @@ async function handleConfirm() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 团购波次且所有商品一致:先弹出称重弹窗,称重完成后再确认复核
|
||||||
|
if (isAllSameProductInWave.value) {
|
||||||
|
weighingBeforeConfirm.value = true
|
||||||
|
weighingForm.weight = null
|
||||||
|
weighingDialogVisible.value = true
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await ElMessageBox.confirm(`确认对订单 ID ${id} 提交复核记录?`, '确认复核', {
|
await ElMessageBox.confirm(`确认对订单 ID ${id} 提交复核记录?`, '确认复核', {
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user