test: freeze client receiving warehouse contract

This commit is contained in:
2026-09-08 16:11:29 +08:00
parent 1fc730d845
commit 9b9a2b103c
4 changed files with 22 additions and 11 deletions
@@ -2,6 +2,7 @@
import { onMounted, reactive, ref } from 'vue'
import { ElMessage } from 'element-plus'
import { getInboundPlan, listInboundPlans, type InboundPlanDetail, type InboundPlanSummary } from '../api/inboundPlans'
import { overseasWarehouseLabel } from '../inboundPlanDisplay'
const loading = ref(false)
const error = ref('')
@@ -23,10 +24,6 @@ const query = reactive({
})
function text(value: unknown) { return value === null || value === undefined || value === '' ? '—' : String(value) }
function overseasWarehouseLabel(code: unknown, name: unknown) {
if (typeof code !== 'string' || !code.trim() || typeof name !== 'string' || !name.trim()) return '—'
return `${code.trim()} · ${name.trim()}`
}
function destinationWarehouseLabel(...values: unknown[]) {
const parts = values
.filter((value): value is string => typeof value === 'string' && Boolean(value.trim()))