Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈智峰
jinfa-admin
Commits
af7536b0
Commit
af7536b0
authored
Nov 08, 2022
by
shenshaokai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jinfa-20221102' into 'jinfa-20221102'
fix: 修改物料审核流程规则-获取物料流程规则配置的逻辑 See merge request
project/jinfa-admin!25
parents
b62dd558
4255bb31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
add.tsx
.../systemManage/material/materialAuditProcessConfig/add.tsx
+14
-11
No files found.
src/pages/systemManage/material/materialAuditProcessConfig/add.tsx
View file @
af7536b0
...
...
@@ -79,9 +79,12 @@ const Add = () => {
if
(
code
!==
1000
)
{
return
;
}
if
(
data
.
isDefault
===
1
)
{
getProcessBaseList
({
processType
:
data
.
baseProcess
?.
processType
})
}
// 原先是只有默认流程才可以修改
// 产品说,默认和非默认都可以修改 时间 2022/11/08
// 所以这里把标品逻辑改掉,改成都可以修改
// if (data.isDefault === 1) {
getProcessBaseList
({
processType
:
data
.
baseProcess
?.
processType
})
// }
const
listData
=
await
getProductPlatformMaterialProcessMemberPage
({
processId
:
id
}
as
any
);
setInitialValue
({
...
data
,
...
...
@@ -110,15 +113,15 @@ const Add = () => {
const
handleSubmit
=
async
(
values
:
SubmitDataType
)
=>
{
if
(
values
.
isDefault
&&
isEdit
)
{
const
params
:
any
=
{
processId
:
values
.
baseProcessId
,
processId
:
values
.
baseProcessId
,
}
postProductPlatformMaterialProcessSaveDefault
(
params
).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
setLoading
?.(
false
)
return
}
postProductPlatformMaterialProcessSaveDefault
(
params
).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
setLoading
?.(
false
)
return
}
history
.
goBack
()
})
history
.
goBack
()
})
}
else
{
const
defaultPostData
=
{
...
values
,
...
...
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