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
9ea285cd
Commit
9ea285cd
authored
Mar 18, 2026
by
li.jian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产计划在生产任务执行前增加撤回操作。
parent
208821f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
48 deletions
+72
-48
xjrsoft-vue3/src/api/scgl/scjh/index.ts
+16
-0
xjrsoft-vue3/src/views/scgl/bgjl/components/config.ts
+2
-2
xjrsoft-vue3/src/views/scgl/scjh/index.vue
+54
-46
No files found.
xjrsoft-vue3/src/api/scgl/scjh/index.ts
View file @
9ea285cd
...
...
@@ -9,6 +9,7 @@ enum Api {
Info
=
'/scgl/scjh/info'
,
MesProductionPlan
=
'/scgl/scjh'
,
Issue
=
'/scgl/scjh/issue'
,
recall
=
'/scgl//scrw/recall'
,
}
/**
...
...
@@ -100,3 +101,18 @@ export async function issueMesProductionPlan(ids: string[], mode: ErrorMessageMo
},
);
}
/**
* @description: 撤回任务
*/
export
async
function
recallMesProductionPlan
(
jhbhs
:
string
,
mode
:
ErrorMessageMode
=
'modal'
)
{
return
defHttp
.
get
<
boolean
>
(
{
url
:
Api
.
recall
,
params
:
{
jhbhs
},
},
{
errorMessageMode
:
mode
,
},
);
}
xjrsoft-vue3/src/views/scgl/bgjl/components/config.ts
View file @
9ea285cd
...
...
@@ -1009,7 +1009,7 @@ export const formProps: FormProps = {
defaultValue
:
0
,
min
:
0
,
step
:
0.01
,
disabled
:
tru
e
,
disabled
:
fals
e
,
showLabel
:
true
,
controls
:
true
,
required
:
false
,
...
...
@@ -1035,7 +1035,7 @@ export const formProps: FormProps = {
defaultValue
:
0
,
min
:
0
,
step
:
0.01
,
disabled
:
tru
e
,
disabled
:
fals
e
,
showLabel
:
true
,
controls
:
true
,
required
:
false
,
...
...
xjrsoft-vue3/src/views/scgl/scjh/index.vue
View file @
9ea285cd
...
...
@@ -73,6 +73,7 @@
getMesProductionPlanPage
,
deleteMesProductionPlan
,
issueMesProductionPlan
,
recallMesProductionPlan
,
}
from
'/@/api/scgl/scjh'
;
import
{
ResizePageWrapper
}
from
'/@/components/Page'
;
import
{
useMessage
}
from
'/@/hooks/web/useMessage'
;
...
...
@@ -145,52 +146,12 @@
//展示在列表内的按钮
const
actionButtons
=
ref
<
string
[]
>
([
'view'
,
'edit'
,
'delete'
]);
const
buttonConfigs
=
computed
(()
=>
{
const
list
=
[
{
buttonId
:
'2004396569122545664'
,
name
:
'查看'
,
code
:
'view'
,
icon
:
'ant-design:eye-outlined'
,
isDefault
:
true
,
isUse
:
true
,
},
{
buttonId
:
'2004396569122545665'
,
name
:
'新增'
,
code
:
'add'
,
icon
:
'ant-design:plus-outlined'
,
isDefault
:
true
,
isUse
:
true
,
},
{
buttonId
:
'2004396569122545666'
,
name
:
'编辑'
,
code
:
'edit'
,
icon
:
'ant-design:form-outlined'
,
isDefault
:
true
,
isUse
:
true
,
isEnableLock
:
true
,
},
{
buttonId
:
'2004471125057142784'
,
name
:
'下发任务'
,
code
:
'xiafa'
,
icon
:
'ant-design:export-outlined'
,
isDefault
:
false
,
isUse
:
true
,
setting
:
[],
showType
:
'top'
,
buttonType
:
'primary'
,
},
{
buttonId
:
'2004396569122545667'
,
name
:
'删除'
,
code
:
'delete'
,
icon
:
'ant-design:delete-outlined'
,
isDefault
:
true
,
isUse
:
true
,
},
];
const
list
=
[{
"buttonId"
:
"2004396569122545664"
,
"name"
:
"查看"
,
"code"
:
"view"
,
"icon"
:
"ant-design:eye-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
},
{
"buttonId"
:
"2004396569122545665"
,
"name"
:
"新增"
,
"code"
:
"add"
,
"icon"
:
"ant-design:plus-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
},
{
"buttonId"
:
"2004396569122545666"
,
"name"
:
"编辑"
,
"code"
:
"edit"
,
"icon"
:
"ant-design:form-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
,
"isEnableLock"
:
true
},
{
"buttonId"
:
"2004471125057142784"
,
"name"
:
"下发任务"
,
"code"
:
"xiafa"
,
"icon"
:
"ant-design:export-outlined"
,
"isDefault"
:
false
,
"isUse"
:
true
,
"setting"
:[],
"showType"
:
"top"
,
"buttonType"
:
"primary"
},
{
"isUse"
:
true
,
"name"
:
"撤回"
,
"code"
:
"chehui"
,
"icon"
:
"ant-design:loading-3-quarters-outlined"
,
"isDefault"
:
false
,
"setting"
:[],
"showType"
:
"top"
,
"buttonType"
:
"primary"
},
{
"buttonId"
:
"2004396569122545667"
,
"name"
:
"删除"
,
"code"
:
"delete"
,
"icon"
:
"ant-design:delete-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
}]
return
filterButtonAuth
(
list
);
});
...
...
@@ -208,6 +169,7 @@
edit
:
handleEdit
,
delete
:
handleDelete
,
xiafa
:
handleXiafa
,
chehui
:
handleChehui
,
};
const
{
currentRoute
}
=
useRouter
();
...
...
@@ -441,6 +403,52 @@
});
}
function
handleChehui
(
record
:
Recordable
)
{
Modal
.
confirm
({
title
:
t
(
'提示信息'
),
icon
:
createVNode
(
ExclamationCircleOutlined
),
content
:
t
(
'是否撤回?'
),
okText
:
t
(
'确认'
),
cancelText
:
t
(
'取消'
),
async
onOk
()
{
if
(
selectedKeys
.
value
.
length
===
0
)
{
Modal
.
warning
({
title
:
'提示'
,
content
:
'请选择计划'
,
});
return
;
}
if
(
selectedKeys
.
value
.
length
>
1
)
{
Modal
.
warning
({
title
:
'提示'
,
content
:
'请选择一个计划'
,
});
return
;
}
const
hasNonDraft
=
selectedRowsData
.
value
.
some
((
item
)
=>
item
.
zt
===
'已完工'
);
if
(
hasNonDraft
)
{
Modal
.
warning
({
title
:
'提示'
,
content
:
'已完工计划无法撤回'
,
});
return
;
}
const
jhbhs
=
selectedRowsData
.
value
.
map
((
x
)
=>
x
.
jhbh
);
console
.
log
(
jhbhs
);
recallMesProductionPlan
(
jhbhs
[
0
]).
then
((
_
)
=>
{
handleSuccess
();
notification
.
success
({
message
:
'Tip'
,
description
:
'撤回成功!'
,
});
});
},
onCancel
()
{},
});
}
function
getLessActions
(
record
:
Recordable
)
{
let
list
=
getActions
(
record
);
return
list
.
slice
(
0
,
listSpliceNum
.
value
);
...
...
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