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
58d7286f
Commit
58d7286f
authored
Apr 01, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 刷新商品信息功能
parent
6f1cd812
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
16 deletions
+31
-16
src/api/factoryOrderNew.ts
+9
-9
src/views/order/factoryOrderNew/index.vue
+22
-7
No files found.
src/api/factoryOrderNew.ts
View file @
58d7286f
...
...
@@ -90,10 +90,13 @@ export function getFactoryOrderNewLogApi(id: number | string) {
)
}
export
function
refreshProductInfoApi
(
ids
:
(
number
|
string
)[])
{
export
function
refreshProductInfoApi
(
data
:
{
orderIds
?:
(
number
|
string
)[]
productIds
?:
(
number
|
string
)[]
})
{
return
axios
.
post
<
never
,
BaseRespData
<
void
>>
(
'factory/podOrderProduct/refreshProductInfo'
,
{
ids
}
,
data
,
)
}
...
...
@@ -395,15 +398,12 @@ export function listByNoPodOrderApi(params: {
no
:
string
logisticsCompanyCode
?:
string
})
{
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'factory/podOrder/listByNo'
,
{
params
},
)
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'factory/podOrder/listByNo'
,
{
params
,
})
}
export
function
orderWeighingPodOrderApi
(
params
:
unknown
,
)
{
export
function
orderWeighingPodOrderApi
(
params
:
unknown
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'factory/podOrder/orderWeighing'
,
params
as
{
...
...
src/views/order/factoryOrderNew/index.vue
View file @
58d7286f
...
...
@@ -1421,13 +1421,28 @@ const handleCancelOrder = () => {
if
(
!
ensureSelection
())
return
cancelOrderDialogRef
.
value
?.
open
(
getSelectedIds
())
}
const
handleRefreshProductInfo
=
async
()
=>
executeBatchAction
({
getIds
:
getSelectedIds
,
api
:
refreshProductInfoApi
,
confirmText
:
'确定刷新商品信息吗?'
,
successText
:
'刷新商品信息成功'
,
}
)
const
handleRefreshProductInfo
=
async
()
=>
{
try
{
await
ElMessageBox
.
confirm
(
'确定刷新商品信息吗?'
,
'提示'
,
{
type
:
'warning'
,
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
}
)
}
catch
{
return
}
try
{
const
res
=
await
refreshProductInfoApi
({
orderIds
:
!
isCardLayout
.
value
?
getSelectedIds
()
:
undefined
,
productIds
:
isCardLayout
.
value
?
getSelectedIds
()
:
undefined
,
}
)
if
(
res
.
code
!==
200
)
return
ElMessage
.
success
(
'刷新商品信息成功'
)
refreshCurrentView
()
}
catch
(
e
)
{
console
.
error
(
e
)
}
}
const
handleTransferOldFlow
=
async
()
=>
{
try
{
await
executeBatchAction
({
...
...
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