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
fb981988
Commit
fb981988
authored
Sep 06, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产单搜索修改
parent
1c448d02
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
28 deletions
+22
-28
src/api/podOrder.ts
+2
-3
src/components/searchProdOrder.vue
+8
-9
src/views/podUsBillOrder/index.vue
+12
-16
No files found.
src/api/podOrder.ts
View file @
fb981988
...
...
@@ -37,13 +37,12 @@ export function getSubOrderBySubOrderNumber(thirdSubOrderNumber: string) {
)
}
export
function
getSubOrderBySubOrder
(
factorySubOrderNumber
:
string
,
orderFrom
:
string
)
{
export
function
getSubOrderBySubOrder
(
factorySubOrderNumber
:
string
)
{
return
axios
.
get
<
never
,
BaseRespData
<
PodProductList
>>
(
'factory/podJomallOrderProductCnUs/getSubOrderBySubOrderNumber'
,
{
params
:
{
factorySubOrderNumber
,
orderFrom
,
factorySubOrderNumber
},
},
)
...
...
src/components/searchProdOrder.vue
View file @
fb981988
...
...
@@ -84,20 +84,19 @@ const trackcodeInput = async () => {
}
const
user
=
JSON
.
parse
(
localStorage
.
getItem
(
'user'
)
||
'{}'
)
let
orderNumber
:
string
//
let orderNumber: string
const
underscoreCount
=
(
TrackingNumber
.
value
.
match
(
/_/g
)
||
[]).
length
//
const underscoreCount = (TrackingNumber.value.match(/_/g) || []).length
if
(
underscoreCount
>=
3
)
{
orderNumber
=
TrackingNumber
.
value
.
split
(
'_'
)[
3
]
}
else
{
orderNumber
=
TrackingNumber
.
value
}
//
if (underscoreCount >= 3) {
//
orderNumber = TrackingNumber.value.split('_')[3]
//
} else {
//
orderNumber = TrackingNumber.value
//
}
try
{
const
res
=
await
getSubOrderBySubOrder
(
orderNumber
,
user
.
factory
?.
countryCode
.
toLowerCase
(),
TrackingNumber
.
value
)
if
(
!
res
.
data
)
{
return
ElMessage
.
error
(
'生产单不存在'
)
...
...
src/views/podUsBillOrder/index.vue
View file @
fb981988
...
...
@@ -210,15 +210,6 @@
<
template
#
default
>
US
账户
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"应付金额($)"
header
-
align
=
"center"
prop
=
"totalAmount"
width
=
"130"
align
=
"center"
show
-
overflow
-
tooltip
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"实付金额($)"
header
-
align
=
"center"
prop
=
"actual_amount"
...
...
@@ -601,17 +592,23 @@
/>
<
el
-
table
-
column
label
=
"订单号"
prop
=
"
order.
order_number"
prop
=
"
erp_
order_number"
header
-
align
=
"center"
align
=
"center"
min
-
width
=
"220"
show
-
overflow
-
tooltip
>
<
template
#
default
=
"{ row
}
"
>
<
span
>
{{
row
.
erp_order_number
||
row
.
factory_order_number
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"工厂订单号"
prop
=
"order.factory_order_number"
header
-
align
=
"center"
align
=
"center"
min
-
width
=
"220"
show
-
overflow
-
tooltip
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"店铺单号"
...
...
@@ -945,7 +942,6 @@
<
el
-
col
:
span
=
"6"
>
物流总价
(
$
)
:
{{
currentRow
?.
carriage_total_amount
}}
<
/el-col
>
<
el
-
col
:
span
=
"6"
>
应付金额
(
$
)
:
{{
currentRow
?.
total_amount
}}
<
/el-col
>
<
el
-
col
:
span
=
"6"
>
实付金额
(
$
)
:
{{
currentRow
?.
actual_amount
}}
<
/el-col
>
<
/el-row
>
<
el
-
row
style
=
"margin: 10px 0"
>
...
...
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