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
shenshaokai
jinfa-platform
Commits
6331efc7
Commit
6331efc7
authored
Nov 26, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:处理手工下单编辑商品异常
parent
491cd73e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
index.tsx
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
+1
-1
useProductTable.tsx
...tion/purchaseOrder/orderCollect/model/useProductTable.tsx
+2
-1
No files found.
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
View file @
6331efc7
...
@@ -181,7 +181,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
...
@@ -181,7 +181,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
orderProductRequests
:
_orderProductRequests
.
map
(
v
=>
{
orderProductRequests
:
_orderProductRequests
.
map
(
v
=>
{
v
.
price
=
1
v
.
price
=
1
v
.
isMemberPrice
=
Number
(
v
.
isMemberPrice
)
v
.
isMemberPrice
=
Number
(
v
.
isMemberPrice
)
v
.
memberPrice
=
toPoint
(
v
.
memberPrice
)
v
.
memberPrice
=
v
.
memberPrice
!==
1
?
toPoint
(
v
.
memberPrice
)
:
1
v
.
imgUrl
=
v
.
mainPic
v
.
imgUrl
=
v
.
mainPic
v
.
minOrder
=
v
.
minOrder
v
.
minOrder
=
v
.
minOrder
// v.productId = v.id
// v.productId = v.id
...
...
src/pages/transaction/purchaseOrder/orderCollect/model/useProductTable.tsx
View file @
6331efc7
...
@@ -29,7 +29,8 @@ export const getUnitPriceTotal = (record) => {
...
@@ -29,7 +29,8 @@ export const getUnitPriceTotal = (record) => {
}
}
})
})
// 考虑会员折扣
// 考虑会员折扣
let
memberPrice
=
record
?.
memberPrice
?
toPoint
(
record
.
memberPrice
)
:
1
console
.
log
(
'算价格'
,
record
.
memberPrice
)
let
memberPrice
=
record
.
memberPrice
!==
1
?
toPoint
(
record
.
memberPrice
)
:
1
return
unitPrice
*
purchaseCount
*
memberPrice
return
unitPrice
*
purchaseCount
*
memberPrice
}
}
export
const
useProductTable
=
(
ctx
:
ISchemaFormActions
|
ISchemaFormAsyncActions
)
=>
{
export
const
useProductTable
=
(
ctx
:
ISchemaFormActions
|
ISchemaFormAsyncActions
)
=>
{
...
...
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