Commit 3fb95e66 authored by GuanHua's avatar GuanHua

fix: 进货单问题修改

parent cd53255e
......@@ -620,10 +620,6 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
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)
}
......@@ -724,7 +720,6 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
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) => Math.abs(Number(b.max) - Number(buyCount)) < Math.abs(Number(a.min) - Number(buyCount)) ? 1 : -1 )
return result[0]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment