This commit is contained in:
2026-08-19 09:14:38 +08:00
parent eedaa2f080
commit 372ec3dc37
10 changed files with 217 additions and 62 deletions
+16 -4
View File
@@ -318,11 +318,23 @@ async function loadChannels() {
}
}
async function submitQuickOrder() {
if (!inboundCodePolicy.value) {
ElMessage.warning('入仓码规则尚未加载,请刷新页面后重试')
return
async function refreshInboundCodePolicyForWrite() {
try {
const policy = await getMerchantInboundCodePolicy()
inboundCodePolicy.value = policy
if (policy.mode === 'AUTO') {
rows.forEach((row) => { row.inboundCode = '' })
}
return true
} catch (error) {
inboundCodePolicy.value = null
ElMessage.warning(error instanceof Error ? error.message : '入仓码规则加载失败,请稍后重试')
return false
}
}
async function submitQuickOrder() {
if (!await refreshInboundCodePolicyForWrite()) return
const missingInboundCodeIndex = manualInboundCodeRequired.value
? rows.findIndex((row) => !row.inboundCode.trim())
: -1