Commit ecaab0cf by zhuzhequan

发货参数处理修改

parent 92946f6f
...@@ -32,11 +32,11 @@ export default function useShipment(callback?: () => void) { ...@@ -32,11 +32,11 @@ export default function useShipment(callback?: () => void) {
const searchShipmentByOrderNumber = async () => { const searchShipmentByOrderNumber = async () => {
let code = productionOrderNumber.value let code = productionOrderNumber.value
// AAAB_60527128-9_1_JMSC250121017 新版示例 // AAAB_60527128-9_1_JMSC250121017 新版示例
const regex = /^[A-Z]{4}_/ //是否以四个大写字母加下划线开头 // const regex = /^[A-Z]{4}_/ //是否以四个大写字母加下划线开头
if (regex.test(code)) { // if (regex.test(code)) {
code = // code =
code.split('_')[0] + '-' + code.split('_')[code.split('_').length - 1] // code.split('_')[0] + '-' + code.split('_')[code.split('_').length - 1]
} // }
shipmentVisible.value = true shipmentVisible.value = true
if (!code) { if (!code) {
isLock.value = false isLock.value = false
......
...@@ -606,7 +606,7 @@ const trackcodeInput = async () => { ...@@ -606,7 +606,7 @@ const trackcodeInput = async () => {
localStorage.setItem('historyData', JSON.stringify(historyData.value)) localStorage.setItem('historyData', JSON.stringify(historyData.value))
} }
let orderNumber = TrackingNumber.value const orderNumber = TrackingNumber.value
TrackingNumber.value = '' TrackingNumber.value = ''
if (props.type === 1) { if (props.type === 1) {
if (isAutoSure.value) { if (isAutoSure.value) {
......
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