Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weiqiao-vue
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
金民
weiqiao-vue
Commits
787a58ae
Commit
787a58ae
authored
Mar 26, 2026
by
sunhaiwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产计划和生产任务删除的时候添加校验
parent
429ad3de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
14 deletions
+55
-14
xjrsoft-vue3/src/views/scgl/scjh/index.vue
+28
-7
xjrsoft-vue3/src/views/scgl/scrw/index.vue
+27
-7
No files found.
xjrsoft-vue3/src/views/scgl/scjh/index.vue
View file @
787a58ae
...
...
@@ -121,6 +121,7 @@
import
{
useConcurrentLock
}
from
'/@/hooks/web/useConcurrentLock'
;
import
{
rksqMesProductOutput
}
from
"/@/api/scgl/ccmx"
;
import
{
useUserStore
}
from
"/@/store/modules/user"
;
const
pageParamsInfo
=
ref
<
any
>
({});
const
{
...
...
@@ -284,10 +285,16 @@
function
handleDelete
(
record
:
Recordable
)
{
deleteList
([
record
.
id
]);
deleteList
([
record
.
id
]
,
record
);
}
const
userStore
=
useUserStore
();
function
deleteList
(
ids
)
{
function
deleteList
(
ids
,
record
)
{
//当前登录人的id
let
userId
=
userStore
.
getUserInfo
.
id
;
//创建人的id
let
createUserId
=
record
.
createUserId
;
Modal
.
confirm
({
title
:
'提示信息'
,
icon
:
createVNode
(
ExclamationCircleOutlined
),
...
...
@@ -295,13 +302,27 @@
okText
:
'确认'
,
cancelText
:
'取消'
,
onOk
()
{
deleteMesProductionPlan
(
ids
).
then
((
_
)
=>
{
handleSuccess
();
notification
.
success
({
if
(
userId
==
createUserId
)
{
if
(
record
.
zt
!=
'已下发'
)
{
deleteMesProductionPlan
(
ids
).
then
((
_
)
=>
{
handleSuccess
();
notification
.
success
({
message
:
'Tip'
,
description
:
t
(
'删除成功!'
),
});
});
}
else
{
notification
.
warning
({
message
:
'Tip'
,
description
:
t
(
'已下发的计划不能删除!'
),
});
}
}
else
{
notification
.
warning
({
message
:
'Tip'
,
description
:
t
(
'
删除成功
!'
),
description
:
t
(
'
不是本人的计划不能删除
!'
),
});
}
);
}
},
onCancel
()
{},
});
...
...
xjrsoft-vue3/src/views/scgl/scrw/index.vue
View file @
787a58ae
...
...
@@ -113,6 +113,7 @@
import
{
useConcurrentLock
}
from
'/@/hooks/web/useConcurrentLock'
;
import
{
recallMesProductionPlan
,
revokeMesProductionTask
}
from
"/@/api/scgl/scjh"
;
import
{
useUserStore
}
from
"/@/store/modules/user"
;
const
pageParamsInfo
=
ref
<
any
>
({});
const
{
enableLockeData
,
handleOpenFormEnableLockeData
,
handleCloseFormEnableLocke
,
handleHasEnableLocke
}
=
...
...
@@ -271,7 +272,7 @@
function
handleDelete
(
record
:
Recordable
)
{
deleteList
([
record
.
id
]);
deleteList
([
record
.
id
]
,
record
);
}
function
handleBack
(
record
:
Recordable
)
{
...
...
@@ -302,8 +303,13 @@
onCancel
()
{},
});
}
const
userStore
=
useUserStore
();
function
deleteList
(
ids
)
{
function
deleteList
(
ids
,
record
)
{
//当前登录人的id
let
userId
=
userStore
.
getUserInfo
.
id
;
//创建人的id
let
createUserId
=
record
.
createUserId
;
Modal
.
confirm
({
title
:
'提示信息'
,
icon
:
createVNode
(
ExclamationCircleOutlined
),
...
...
@@ -311,13 +317,27 @@
okText
:
'确认'
,
cancelText
:
'取消'
,
onOk
()
{
deleteMesProductionTask
(
ids
).
then
((
_
)
=>
{
handleSuccess
();
notification
.
success
({
if
(
userId
==
createUserId
)
{
if
(
record
.
zt
==
'草稿'
)
{
deleteMesProductionTask
(
ids
).
then
((
_
)
=>
{
handleSuccess
();
notification
.
success
({
message
:
'Tip'
,
description
:
t
(
'删除成功!'
),
});
});
}
else
{
notification
.
warning
({
message
:
'Tip'
,
description
:
t
(
'已进行的任务不能删除!'
),
});
}
}
else
{
notification
.
warning
({
message
:
'Tip'
,
description
:
t
(
'
删除成功
!'
),
description
:
t
(
'
不是本人的任务不能删除
!'
),
});
}
);
}
},
onCancel
()
{},
});
...
...
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