refactor(wave): 移除团购波次面板内嵌散单抓取弹窗,统一确认打印为运单号口径

- GroupWaveBatchListPanel 删除内嵌「散单抓取」弹窗及其 ScanBox、订单表格、
  查询/提交逻辑(约 1400 行),团购波次面板只保留团购相关操作,
  散单抓取统一走散单波次 / 策略入口,避免两处实现分叉
- 确认打印(print.confirmWavePrint)相关文案统一为「运单号」:
  扫描提示、输入占位、连续扫码注释与错误提示均改为运单号口径
- 散单波次面板将 hasExpress 重命名为 hasWaybill,
  打印数据提示改为「含运单号 / 无运单号」
- 波次管理页与配置注释同步改为运单号描述,明确扫描的是波次内任一订单的运单号
This commit is contained in:
yin 2026-11-24 18:20:32 +08:00
parent a796f968e3
commit ebf20f5269
5 changed files with 17 additions and 1475 deletions

File diff suppressed because it is too large Load Diff

View File

@ -496,7 +496,7 @@
<printer-list-test-dialog v-model="printerListTestVisible" /> <printer-list-test-dialog v-model="printerListTestVisible" />
<!-- 确认打印(print.confirmWavePrint):扫/输面单号确认整波已打印订单 --> <!-- 确认打印(print.confirmWavePrint):扫/输运单号确认整波已打印订单 -->
<confirm-wave-print-dialog v-model="confirmWavePrintVisible" @success="loadData" /> <confirm-wave-print-dialog v-model="confirmWavePrintVisible" @success="loadData" />
</div> </div>
</template> </template>
@ -628,7 +628,7 @@ const platformPrintErrorMessage = ref('')
const platformPrintRequestMeta = ref<{ warehouse_id: number; wave_ids: Array<number | string> } | null>(null) const platformPrintRequestMeta = ref<{ warehouse_id: number; wave_ids: Array<number | string> } | null>(null)
const printerComponentConnectionVisible = ref(false) const printerComponentConnectionVisible = ref(false)
const printerListTestVisible = ref(false) const printerListTestVisible = ref(false)
/** 确认打印弹窗(print.confirmWavePrint,扫面单号确认整波) */ /** 确认打印弹窗(print.confirmWavePrint,扫运单号确认整波) */
const confirmWavePrintVisible = ref(false) const confirmWavePrintVisible = ref(false)
const batchAllocateExpressLoading = ref(false) const batchAllocateExpressLoading = ref(false)
const batchAllocateStorageLoading = ref(false) const batchAllocateStorageLoading = ref(false)
@ -1597,8 +1597,8 @@ async function handleBatchPrint() {
})) }))
wavePrintDataMap.value = nextMap wavePrintDataMap.value = nextMap
wavePrintDialogVisible.value = true wavePrintDialogVisible.value = true
const hasExpress = orderList.some(hasWaybillData) const hasWaybill = orderList.some(hasWaybillData)
ElMessage.success(`已获取打印数据,共 ${orderList.length} 条订单${hasExpress ? '(含运单号)' : '(无运单号)'}`) ElMessage.success(`已获取打印数据,共 ${orderList.length} 条订单${hasWaybill ? '(含运单号)' : '(无运单号)'}`)
} catch (error: any) { } catch (error: any) {
wavePrintRows.value = [] wavePrintRows.value = []
wavePrintDataMap.value = {} wavePrintDataMap.value = {}
@ -1692,8 +1692,8 @@ async function handleBatchPrintInternal(rows: any[]) {
})) }))
wavePrintDataMap.value = nextMap wavePrintDataMap.value = nextMap
wavePrintDialogVisible.value = true wavePrintDialogVisible.value = true
const hasExpress = orderList.some(hasWaybillData) const hasWaybill = orderList.some(hasWaybillData)
ElMessage.success(`已获取打印数据,共 ${orderList.length} 条订单${hasExpress ? '(含运单号)' : '(无运单号)'}`) ElMessage.success(`已获取打印数据,共 ${orderList.length} 条订单${hasWaybill ? '(含运单号)' : '(无运单号)'}`)
} catch (error: any) { } catch (error: any) {
wavePrintRows.value = [] wavePrintRows.value = []
wavePrintDataMap.value = {} wavePrintDataMap.value = {}

View File

@ -161,11 +161,11 @@ async function handleSubmit() {
emit('success', { waveId, status: 'confirmed' }) emit('success', { waveId, status: 'confirmed' })
} }
// 支持连扫:清空输入框并重新聚焦,方便直接扫下一个波次的面单号 // 支持连扫:清空输入框并重新聚焦,方便直接扫下一个波次的运单号
waybillNo.value = '' waybillNo.value = ''
focusInput() focusInput()
} catch { } catch {
// 请求层已统一提示(存在未打印订单被阻断 / 未查询到该面单号 / 无权限等) // 请求层已统一提示(存在未打印订单被阻断 / 未查询到该运单号 / 无权限等)
} finally { } finally {
submitting.value = false submitting.value = false
} }
@ -255,7 +255,7 @@ async function handleSubmit() {
border-radius: 4px; border-radius: 4px;
background: #fafafa; background: #fafafa;
/* 面单号输入行:不需要灰色容器,与上方静态信息行拉开层次 */ /* 运单号输入行:不需要灰色容器,与上方静态信息行拉开层次 */
&--input { &--input {
align-items: flex-start; align-items: flex-start;
min-height: 0; min-height: 0;

View File

@ -837,8 +837,8 @@ export const waveToolbarButtons: WaveToolbarButtonConfig[] = [
onlyForWaveType: 2 onlyForWaveType: 2
}, },
{ {
// print.confirmWavePrint:扫波次内任一面单号 → 整波次「已打印且非拦截」订单批量确认打印。 // print.confirmWavePrint:扫波次内任一运单号 → 整波次「已打印且非拦截」订单批量确认打印。
// 面单号自行定位波次,故不依赖选中行、不做 onlyForWaveType 限制(团购波次 / 散单波次都显示)。 // 运单号自行定位波次,故不依赖选中行、不做 onlyForWaveType 限制(团购波次 / 散单波次都显示)。
key: 'confirmWavePrint', key: 'confirmWavePrint',
label: '确认打印', label: '确认打印',
category: 'action', category: 'action',

View File

@ -219,7 +219,7 @@ watch(activeTab, (name) => {
// 扫码确认打印(全局扫码事件) // 扫码确认打印(全局扫码事件)
// ============================================================ // ============================================================
/** /**
* 波次管理页注册全局扫码事件:扫描波次内任一订单的面单号(长度超过 8 位)→ * 波次管理页注册全局扫码事件:扫描波次内任一订单的运单号(长度超过 8 位)→
* order.wave.confirmPrintScan(与领单 pick.waveClaimScan 操作一致):把该波次下全部已打印 * order.wave.confirmPrintScan(与领单 pick.waveClaimScan 操作一致):把该波次下全部已打印
* (print_status='fin')且非拦截的订单批量置 confirm_print_status='fin',并写订单操作日志 * (print_status='fin')且非拦截的订单批量置 confirm_print_status='fin',并写订单操作日志
* (ORDER_CONFIRM_PRINT)。 * (ORDER_CONFIRM_PRINT)。
@ -249,7 +249,7 @@ async function handleConfirmPrintScan(waybillNo: string) {
].filter(Boolean).join(',') ].filter(Boolean).join(',')
ElMessage.success(`${waveLabel}(${waybillNo})确认打印成功:${detail}`) ElMessage.success(`${waveLabel}(${waybillNo})确认打印成功:${detail}`)
} catch { } catch {
// 请求层已统一提示(存在未打印订单阻断 / 订单未分配波次 / 未查询到该面单号等) // 请求层已统一提示(存在未打印订单阻断 / 订单未分配波次 / 未查询到该运单号等)
} finally { } finally {
confirmPrintScanPending.value = false confirmPrintScanPending.value = false
} }