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
609cfc9a
Commit
609cfc9a
authored
Dec 04, 2025
by
linjinhong
Committed by
qinjianhui
Dec 05, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改提示问题
parent
87b70878
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
18 deletions
+43
-18
src/views/order/podCN/components/WeightDialog.vue
+1
-1
src/views/order/podCN/components/weigh.ts
+42
-17
No files found.
src/views/order/podCN/components/WeightDialog.vue
View file @
609cfc9a
...
...
@@ -281,7 +281,7 @@ const weightChange = async () => {
const
weightGet
=
async
()
=>
{
if
(
tableData
.
value
.
length
<
1
)
{
ElMessage
.
warning
(
'
请先导出数据
'
)
ElMessage
.
warning
(
'
当前没有可提交的数据!
'
)
return
}
for
(
const
iterator
of
tableData
.
value
)
{
...
...
src/views/order/podCN/components/weigh.ts
View file @
609cfc9a
...
...
@@ -27,6 +27,7 @@ interface WeighItem {
shopNumber
?:
string
platform
?:
string
logisticsCompanyName
?:
string
logisticsCompanyCode
?:
string
logisticsCompanyId
?:
string
wgap
?:
number
|
string
weight
?:
string
...
...
@@ -38,6 +39,7 @@ interface SearchItem {
}
interface
Data
{
data
:
WeighItem
[]
code
:
number
}
type
AudioKey
=
...
...
@@ -239,31 +241,54 @@ class Weigh extends Lock {
try
{
const
response
=
await
apiCall
(
params
)
console
.
log
(
211
,
response
)
const
{
data
}
=
response
console
.
log
(
211
,
data
)
const
waitWeighingList
=
data
.
filter
(
(
el
)
=>
el
.
status
===
'WAIT_WEIGHING'
,
)
if
(
waitWeighingList
.
length
===
0
)
{
this
.
playAudio
(
'weight_search_error'
,
`必须是待称重状态的订单下的
${
this
.
selectType
===
'trackingNumber'
?
'跟踪号'
:
'店铺单号'
}
才能使用`
,
)
if
(
!
data
.
length
)
{
this
.
playAudio
(
'weight_search_error'
,
'查询失败'
)
return
}
if
(
!
waitWeighingList
.
length
)
{
this
.
playAudio
(
'weight_search_error'
,
'查询失败'
)
return
// const waitWeighingList = data.filter(
// (el) => el.status === 'WAIT_WEIGHING',
// )
// if (waitWeighingList.length === 0) {
// this.playAudio(
// 'weight_search_error',
// `必须是待称重状态的订单下的${
// this.selectType === 'trackingNumber' ? '跟踪号' : '店铺单号'
// }才能使用`,
// )
// return
// }
if
(
this
.
list
?.
length
)
{
const
firstLogisticsCode
=
data
[
0
]?.
logisticsCompanyCode
const
hasDifferentLogistics
=
this
.
list
.
some
(
(
el
)
=>
// 如果两个代码不都是undefined,并且它们不相等
!
(
el
.
logisticsCompanyCode
===
undefined
&&
firstLogisticsCode
===
undefined
)
&&
el
.
logisticsCompanyCode
!==
firstLogisticsCode
,
)
if
(
hasDifferentLogistics
)
{
this
.
playAudio
(
'weight_search_error'
,
'当前查询的订单不属于所选择的物流公司,请核实后再试'
,
)
return
}
}
// 最终去重检查
if
(
this
.
deduplicate
(
(
waitWeighingList
[
0
]
as
WeighItem
).
trackingNumber
as
string
,
(
data
[
0
]
as
WeighItem
).
trackingNumber
as
string
,
callback
,
)
)
{
...
...
@@ -271,10 +296,10 @@ class Weigh extends Lock {
}
// 添加新项目
this
.
addNewItem
(
waitWeighingList
,
callback
)
this
.
addNewItem
(
data
,
callback
)
}
catch
(
error
)
{
console
.
error
(
'跟踪号查询错误:'
,
error
)
this
.
playAudio
(
'weight_search_error'
)
//
this.playAudio('weight_search_error')
}
}
...
...
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