Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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-platform
Commits
4b331284
Commit
4b331284
authored
Apr 07, 2022
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改跳转链接以及新增物料时报错bug
parent
57e4b125
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
index.tsx
...s/commodity/material/materialAuditProcessConfig/index.tsx
+3
-3
add.tsx
src/pages/commodity/material/materialPendingAdd/add.tsx
+4
-6
No files found.
src/pages/commodity/material/materialAuditProcessConfig/index.tsx
View file @
4b331284
...
@@ -19,7 +19,7 @@ import { Link } from 'umi';
...
@@ -19,7 +19,7 @@ import { Link } from 'umi';
* 物料审核流程规则配置
* 物料审核流程规则配置
*/
*/
const
formActions
=
createFormActions
();
const
formActions
=
createFormActions
();
const
CREATE_URL
=
'/memberCenter/material/materialAuditProcessConfig/add'
const
CREATE_URL
=
'/memberCenter/
commodityAbility/
material/materialAuditProcessConfig/add'
const
MaterialAuditProcessConfig
=
()
=>
{
const
MaterialAuditProcessConfig
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
...
@@ -50,7 +50,7 @@ const MaterialAuditProcessConfig = () => {
...
@@ -50,7 +50,7 @@ const MaterialAuditProcessConfig = () => {
dataIndex
:
'processId'
,
dataIndex
:
'processId'
,
render
:
(
text
,
record
)
=>
{
render
:
(
text
,
record
)
=>
{
return
(
return
(
<
Link
to=
{
`/memberCenter/material/materialAuditProcessConfig/detail?id=${record.processId}`
}
>
<
Link
to=
{
`/memberCenter/
commodityAbility/
material/materialAuditProcessConfig/detail?id=${record.processId}`
}
>
{
record
.
processId
}
{
record
.
processId
}
</
Link
>
</
Link
>
)
)
...
@@ -82,7 +82,7 @@ const MaterialAuditProcessConfig = () => {
...
@@ -82,7 +82,7 @@ const MaterialAuditProcessConfig = () => {
}
}
return
(
return
(
<
Space
>
<
Space
>
<
Link
to=
{
`/memberCenter/material/materialAuditProcessConfig/edit?id=${record.processId}`
}
>
<
Link
to=
{
`/memberCenter/
commodityAbility/
material/materialAuditProcessConfig/edit?id=${record.processId}`
}
>
修改
修改
</
Link
>
</
Link
>
{
{
...
...
src/pages/commodity/material/materialPendingAdd/add.tsx
View file @
4b331284
...
@@ -71,7 +71,7 @@ const MaterialAdd = (props) => {
...
@@ -71,7 +71,7 @@ const MaterialAdd = (props) => {
if
(
!
formatInitialValue
)
{
if
(
!
formatInitialValue
)
{
return
return
}
}
if
(
formatInitialValue
.
interiorState
===
FROZEN
)
{
if
(
formatInitialValue
?
.
interiorState
===
FROZEN
)
{
formActions
.
setFieldState
(
'changeCard'
,
(
state
)
=>
{
formActions
.
setFieldState
(
'changeCard'
,
(
state
)
=>
{
FormPath
.
setIn
(
state
,
'visible'
,
true
);
FormPath
.
setIn
(
state
,
'visible'
,
true
);
})
})
...
@@ -184,14 +184,12 @@ const MaterialAdd = (props) => {
...
@@ -184,14 +184,12 @@ const MaterialAdd = (props) => {
:
{}
:
{}
/** 物料是否变更 */
/** 物料是否变更 */
const
withChangeData
=
formatInitialValue
.
interiorState
===
FROZEN
const
withChangeData
=
formatInitialValue
?
.
interiorState
===
FROZEN
?
{
?
{
changeRemark
:
rest
.
changeRemark
,
changeRemark
:
rest
.
changeRemark
||
''
,
change
:
1
,
change
:
1
,
}
}
:
{
:
{}
change
:
1
,
}
/** 物料组 */
/** 物料组 */
const
withMaterialGroup
=
materialGroup
const
withMaterialGroup
=
materialGroup
...
...
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