Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
19882cdb
Commit
19882cdb
authored
Jul 21, 2025
by
wuqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GCSC前缀判断
parent
efe7a90e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/views/order/hook/useQuarantine.ts
+3
-1
src/views/order/hook/useShipment.ts
+5
-2
No files found.
src/views/order/hook/useQuarantine.ts
View file @
19882cdb
...
...
@@ -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'
)
...
...
src/views/order/hook/useShipment.ts
View file @
19882cdb
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment