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
cdf335d5
Commit
cdf335d5
authored
May 17, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复多个无聊单据明细 支付信息显示的问题
parent
8995a00a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
index.tsx
src/pages/afterService/components/ReturnInfoDrawer/index.tsx
+18
-15
No files found.
src/pages/afterService/components/ReturnInfoDrawer/index.tsx
View file @
cdf335d5
...
...
@@ -2,10 +2,10 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 17:36:45
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-1
3 11:46:5
6
* @LastEditTime: 2021-05-1
7 14:34:0
6
* @Description: 查看退货数量与退款金额 抽屉
*/
import
React
from
'react'
;
import
React
,
{
useEffect
}
from
'react'
;
import
{
Drawer
,
Button
}
from
'antd'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
createAsyncFormActions
}
from
'@formily/antd'
;
...
...
@@ -147,6 +147,22 @@ const ReturnInfoDrawer: React.FC<ReturnInfoDrawerProps> = ({
isEdit
=
false
,
})
=>
{
useEffect
(()
=>
{
const
{
setFieldState
}
=
schemaAction
;
const
{
orderType
}
=
(
orderInfo
||
{});
const
isMateriel
=
(
orderType
===
ORDER_TYPE_INQUIRY_CONTRACT
||
orderType
===
ORDER_TYPE_BIDDING_CONTRACT
||
orderType
===
ORDER_TYPE_TENDER_CONTRACT
);
if
(
isMateriel
)
{
setFieldState
(
'REPOSIT_TABS'
,
state
=>
{
state
.
props
[
'x-component-props'
].
hiddenKeys
=
[
'tab-2'
];
});
}
},
[
orderInfo
]);
const
handleClose
=
()
=>
{
if
(
onClose
)
{
onClose
();
...
...
@@ -203,20 +219,7 @@ const ReturnInfoDrawer: React.FC<ReturnInfoDrawerProps> = ({
}
}
editable=
{
isEdit
}
effects=
{
(
$
,
actions
)
=>
{
const
{
setFieldState
}
=
actions
;
const
{
orderType
}
=
orderInfo
;
const
isMateriel
=
(
orderType
===
ORDER_TYPE_INQUIRY_CONTRACT
||
orderType
===
ORDER_TYPE_BIDDING_CONTRACT
||
orderType
===
ORDER_TYPE_TENDER_CONTRACT
);
createEffects
(
$
,
actions
);
if
(
isMateriel
)
{
setFieldState
(
'REPOSIT_TABS'
,
state
=>
{
state
.
props
[
'x-component-props'
].
hiddenKeys
=
[
'tab-2'
]
});
}
}
}
onSubmit=
{
handleSubmit
}
actions=
{
schemaAction
}
...
...
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