Commit 19882cdb by wuqian

GCSC前缀判断

parent efe7a90e
......@@ -46,7 +46,9 @@ export default function useQuarantine() {
}
const searchQaByOrderNumber = () => {
const uid = shipmentUid.value
const code = getLastSegment(qaCode.value)
const code = qaCode.value.startsWith('GCSC')
? qaCode.value
: getLastSegment(qaCode.value)
if (!code) {
isLock.value = false
playAudio('picking_warning')
......
......@@ -6,7 +6,7 @@ import {
ShipmentForm,
ShipmentOrderRes,
} from '@/types/api/order'
import { useValue ,getLastSegment} from '@/utils/hooks/useValue'
import { useValue, getLastSegment } from '@/utils/hooks/useValue'
import { nextTick, ref } from 'vue'
import { ShipmentType } from '../Shipment.vue'
......@@ -30,7 +30,10 @@ export default function useShipment(callback?: () => void) {
const shipmentLoading = ref(false)
const shipmentOrderRef = ref<ShipmentType>()
const searchShipmentByOrderNumber = async () => {
const code = getLastSegment(productionOrderNumber.value)
// const code = getLastSegment(productionOrderNumber.value)
const code = productionOrderNumber.value.startsWith('GCSC')
? productionOrderNumber.value
: getLastSegment(productionOrderNumber.value)
shipmentVisible.value = true
if (!code) {
isLock.value = false
......
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