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
e99e47ee
Commit
e99e47ee
authored
Aug 12, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 编辑配货分拣规则的校验优化 #1013114
parent
a636bb53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
src/views/order/allocationSortingRule/components/addDialog.vue
+22
-0
No files found.
src/views/order/allocationSortingRule/components/addDialog.vue
View file @
e99e47ee
...
@@ -539,6 +539,28 @@ const handleSubmit = async () => {
...
@@ -539,6 +539,28 @@ const handleSubmit = async () => {
}),
}),
),
),
}
}
if
(
props
.
isEdit
)
{
submitData
.
id
=
props
.
editData
?.
id
try
{
await
checkUsedBoxApi
(
submitData
.
id
as
number
)
}
catch
(
err
)
{
const
error
=
err
as
BaseRespData
<
never
>
if
(
error
?.
code
!==
301
)
{
showError
(
error
?.
message
)
return
}
try
{
await
ElMessageBox
.
confirm
(
error
.
message
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
dangerouslyUseHTMLString
:
true
,
})
}
catch
{
return
}
}
}
if
(
!
submitData
.
name
)
{
if
(
!
submitData
.
name
)
{
const
desc
=
areaList
.
value
.
find
(
const
desc
=
areaList
.
value
.
find
(
...
...
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