Commit 19882cdb by wuqian

GCSC前缀判断

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