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
3fb95e66
Commit
3fb95e66
authored
Mar 18, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 进货单问题修改
parent
cd53255e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+0
-5
No files found.
src/pages/lxMall/purchaseOrder/index.tsx
View file @
3fb95e66
...
@@ -620,10 +620,6 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
...
@@ -620,10 +620,6 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
buyCommodityInfo
.
channelProductId
=
item
.
commodityUnitPrice
.
commodityUnitPriceAndPicId
buyCommodityInfo
.
channelProductId
=
item
.
commodityUnitPrice
.
commodityUnitPriceAndPicId
}
}
// if (item.commodityUnitPrice.commodity.isMemberPrice) {
// buyCommodityInfo.memberDiscount = await getMemberCredit(item.commodityUnitPrice.commodity.memberId, item.commodityUnitPrice.commodity.memberRoleId)
// }
buyOrderlist
.
push
(
buyCommodityInfo
)
buyOrderlist
.
push
(
buyCommodityInfo
)
}
}
...
@@ -724,7 +720,6 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
...
@@ -724,7 +720,6 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
const
priceList
=
[...
priceRange
]
const
priceList
=
[...
priceRange
]
const
result
=
priceList
.
sort
((
a
,
b
)
=>
(
Number
(
b
.
max
)
<
Number
(
buyCount
)
&&
Number
(
buyCount
)
<
Number
(
a
.
min
)
?
1
:
-
1
))
const
result
=
priceList
.
sort
((
a
,
b
)
=>
(
Number
(
b
.
max
)
<
Number
(
buyCount
)
&&
Number
(
buyCount
)
<
Number
(
a
.
min
)
?
1
:
-
1
))
// const result = priceList.sort((a, b) => Math.abs(Number(b.max) - Number(buyCount)) < Math.abs(Number(a.min) - Number(buyCount)) ? 1 : -1 )
return
result
[
0
]
return
result
[
0
]
}
}
...
...
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