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
linweijiong
jinfa-platform
Commits
c8d9ed11
Commit
c8d9ed11
authored
Dec 23, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复点击批次,对应批次信息不显示的问题
parent
ab3dd248
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
17 deletions
+35
-17
index.tsx
...ges/afterService/components/ExchangeDeliverInfo/index.tsx
+12
-6
index.tsx
...es/afterService/components/ExchangeReceivedInfo/index.tsx
+11
-5
index.tsx
src/pages/afterService/components/ReturnAnalysis/index.tsx
+12
-6
No files found.
src/pages/afterService/components/ExchangeDeliverInfo/index.tsx
View file @
c8d9ed11
...
...
@@ -2,10 +2,10 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 15:18:15
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-
03 20:47:30
* @LastEditTime: 2020-12-
23 10:48:05
* @Description: 换货发货统计、换货发货明细
*/
import
React
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
Tabs
,
Button
,
Row
,
Col
,
Descriptions
,
Badge
,
Radio
,
Modal
}
from
'antd'
;
import
{
ExclamationCircleOutlined
}
from
'@ant-design/icons'
;
import
{
SummaryData
,
Detailed
}
from
'./interface'
;
...
...
@@ -74,6 +74,7 @@ const ExchangeDeliverInfo: React.FC<ExchangeDeliverInfoProps> = ({
onConfirmExchangeReceive
,
innerStatus
,
})
=>
{
const
[
currentBatch
,
setCurrentBatch
]
=
useState
(
1
);
const
summaryColumns
:
EditableColumns
[]
=
[
{
...
...
@@ -198,8 +199,8 @@ const ExchangeDeliverInfo: React.FC<ExchangeDeliverInfoProps> = ({
},
];
const
handleBatchChange
=
valu
e
=>
{
const
handleBatchChange
=
e
=>
{
setCurrentBatch
(
e
.
target
.
value
);
};
const
handleConfirmExchangeDeliver
=
(
id
)
=>
{
...
...
@@ -260,13 +261,18 @@ const ExchangeDeliverInfo: React.FC<ExchangeDeliverInfoProps> = ({
value
:
item
.
batch
,
}))
}
defaultValue=
{
1
}
defaultValue=
{
currentBatch
}
onChange=
{
handleBatchChange
}
optionType=
"button"
/>
{
detailed
.
map
(
item
=>
(
<
div
key=
{
item
.
batch
}
>
<
div
key=
{
item
.
batch
}
style=
{
{
display
:
item
.
batch
===
currentBatch
?
'block'
:
'none'
,
}
}
>
<
div
className=
{
styles
.
detailedWrap
}
>
<
Row
align=
"middle"
>
<
Col
span=
{
16
}
>
...
...
src/pages/afterService/components/ExchangeReceivedInfo/index.tsx
View file @
c8d9ed11
...
...
@@ -5,7 +5,7 @@
* @LastEditTime: 2020-12-22 11:25:50
* @Description: 退货收货统计、退货发货明细
*/
import
React
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
Tabs
,
Button
,
Row
,
Col
,
Descriptions
,
Badge
,
Radio
,
Modal
}
from
'antd'
;
import
{
ClockCircleOutlined
,
...
...
@@ -77,6 +77,7 @@ const ExchangeReceivedInfo: React.FC<ExchangeReceivedInfoProps> = ({
onConfirmReturnReceive
,
innerStatus
,
})
=>
{
const
[
currentBatch
,
setCurrentBatch
]
=
useState
(
1
);
const
summaryColumns
:
EditableColumns
[]
=
[
{
...
...
@@ -201,8 +202,8 @@ const ExchangeReceivedInfo: React.FC<ExchangeReceivedInfoProps> = ({
},
];
const
handleBatchChange
=
valu
e
=>
{
const
handleBatchChange
=
e
=>
{
setCurrentBatch
(
e
.
target
.
value
);
};
const
handleConfirmReturnDeliver
=
(
id
)
=>
{
...
...
@@ -270,13 +271,18 @@ const ExchangeReceivedInfo: React.FC<ExchangeReceivedInfoProps> = ({
value
:
item
.
batch
,
}))
}
defaultValue=
{
1
}
defaultValue=
{
currentBatch
}
onChange=
{
handleBatchChange
}
optionType=
"button"
/>
{
detailed
.
map
(
item
=>
(
<
div
key=
{
item
.
batch
}
>
<
div
key=
{
item
.
batch
}
style=
{
{
display
:
item
.
batch
===
currentBatch
?
'block'
:
'none'
,
}
}
>
<
div
className=
{
styles
.
detailedWrap
}
>
<
Row
align=
"middle"
>
<
Col
span=
{
16
}
>
...
...
src/pages/afterService/components/ReturnAnalysis/index.tsx
View file @
c8d9ed11
...
...
@@ -2,10 +2,10 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 15:18:15
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-2
2 13:34:38
* @LastEditTime: 2020-12-2
3 10:45:27
* @Description: 退货收货统计、退货发货明细
*/
import
React
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
Tabs
,
Button
,
Row
,
Col
,
Descriptions
,
Badge
,
Radio
,
Modal
}
from
'antd'
;
import
{
ClockCircleOutlined
,
...
...
@@ -76,6 +76,7 @@ const ReturnInfo: React.FC<ReturnInfoProps> = ({
onConfirmReturnReceive
,
innerStatus
,
})
=>
{
const
[
currentBatch
,
setCurrentBatch
]
=
useState
(
1
);
const
summaryColumns
:
EditableColumns
[]
=
[
{
...
...
@@ -200,8 +201,8 @@ const ReturnInfo: React.FC<ReturnInfoProps> = ({
},
];
const
handleBatchChange
=
valu
e
=>
{
const
handleBatchChange
=
e
=>
{
setCurrentBatch
(
e
.
target
.
value
);
};
const
handleConfirmReturnDeliver
=
(
id
)
=>
{
...
...
@@ -269,13 +270,18 @@ const ReturnInfo: React.FC<ReturnInfoProps> = ({
value
:
item
.
batch
,
}))
}
defaultValue=
{
1
}
defaultValue=
{
currentBatch
}
onChange=
{
handleBatchChange
}
optionType=
"button"
/>
{
detailed
.
map
(
item
=>
(
<
div
key=
{
item
.
batch
}
>
<
div
key=
{
item
.
batch
}
style=
{
{
display
:
item
.
batch
===
currentBatch
?
'block'
:
'none'
,
}
}
>
<
div
className=
{
styles
.
detailedWrap
}
>
<
Row
align=
"middle"
>
<
Col
span=
{
16
}
>
...
...
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