Commit dd4dc916 by zhuzhequan

pod 扫码参数情况特殊处理

parent dd6fb12d
...@@ -579,7 +579,7 @@ const trackcodeInput = async () => { ...@@ -579,7 +579,7 @@ const trackcodeInput = async () => {
localStorage.setItem('historyData', JSON.stringify(historyData.value)) localStorage.setItem('historyData', JSON.stringify(historyData.value))
} }
const orderNumber = TrackingNumber.value let orderNumber = TrackingNumber.value
TrackingNumber.value = '' TrackingNumber.value = ''
if (props.type === 1) { if (props.type === 1) {
if (isAutoSure.value) { if (isAutoSure.value) {
...@@ -588,6 +588,11 @@ const trackcodeInput = async () => { ...@@ -588,6 +588,11 @@ const trackcodeInput = async () => {
} else { } else {
await setData(orderNumber) await setData(orderNumber)
} }
// AAAB_60527128-9_1_JMSC250121017 新版示例
const regex = /^[A-Z]{4}_/ //是否以四个大写字母加下划线开头
if (regex.test(orderNumber)) {
orderNumber = orderNumber.split('_')[0] + "-"+ orderNumber.split('_')[orderNumber.split('_').length - 1]
}
try { try {
const res = await getSubOrderBySubOrderNumber(orderNumber) const res = await getSubOrderBySubOrderNumber(orderNumber)
if (!res.data) { if (!res.data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment