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
08dfd448
Commit
08dfd448
authored
Jan 05, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复最大可换货数量判断错误的问题
parent
5ebf02a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
useBusinessEffects.ts
...mit/components/ExchangeForm/effects/useBusinessEffects.ts
+1
-1
index.tsx
...cation/exchangePrSubmit/components/ExchangeForm/index.tsx
+2
-2
No files found.
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/effects/useBusinessEffects.ts
View file @
08dfd448
...
...
@@ -58,7 +58,7 @@ export const useBusinessEffects = (context, actions) => {
FormPath
.
transform
(
name
,
/
\d
/
,
$1
=>
{
return
`replaceGoodsList.
${
$1
}
.extraData`
}),
state
=>
state
.
value
.
re
placedCount
,
state
=>
state
.
value
.
re
maining
,
);
setFieldState
(
...
...
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/index.tsx
View file @
08dfd448
...
...
@@ -251,7 +251,7 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
data
:
goodsDetailList
.
map
(
item
=>
({
...
item
,
extraData
:
{
re
placedCount
:
item
.
purchaseCount
||
0
,
// 已换货数量,这里取 采购数量判断即可
re
maining
:
item
.
purchaseCount
||
0
,
// 已换货数量,这里取 采购数量判断即可
id
:
item
.
orderRecordId
,
taskType
,
},
...
...
@@ -442,7 +442,7 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
purchaseAmount
:
+
(
item
.
price
*
item
.
purchaseCount
).
toFixed
(
2
),
replaceReason
:
''
,
extraData
:
{
re
placedCount
:
item
.
replaceCount
||
item
.
purchaseCount
||
0
,
// 已
换货数量
re
maining
:
item
.
purchaseCount
-
(
item
.
replaceCount
||
0
),
// 可
换货数量
id
:
item
.
id
,
taskType
:
item
.
processEnum
,
},
...
...
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