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
f2603aa7
Commit
f2603aa7
authored
Oct 21, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev
parents
721c9768
ea3c15ff
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
185 additions
and
79 deletions
+185
-79
index.less
src/pages/lxMall/commodity/index.less
+1
-1
list.tsx
src/pages/lxMall/commodity/list.tsx
+1
-1
index.less
...mponents/ProductDescription/components/Comment/index.less
+5
-5
index.less
...ents/ProductDescription/components/TradeRecord/index.less
+20
-22
index.tsx
...nents/ProductDescription/components/TradeRecord/index.tsx
+51
-28
index.tsx
...l/commodityDetail/components/ProductDescription/index.tsx
+12
-2
index.tsx
...ages/lxMall/components/Filter/components/Points/index.tsx
+36
-8
index.tsx
...pages/lxMall/components/Filter/components/Price/index.tsx
+35
-9
index.tsx
src/pages/lxMall/components/InterestedCommodity/index.tsx
+2
-2
index.less
src/pages/lxMall/components/MainNav/index.less
+8
-0
LXShopLayout.tsx
src/pages/lxMall/layouts/LXShopLayout.tsx
+3
-1
index.tsx
src/pages/lxMall/order/index.tsx
+8
-0
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+3
-0
No files found.
src/pages/lxMall/commodity/index.less
View file @
f2603aa7
...
...
@@ -185,7 +185,7 @@
&:hover {
&>a {
color: #ffffff;
color: #ffffff
!important
;
}
}
...
...
src/pages/lxMall/commodity/list.tsx
View file @
f2603aa7
...
...
@@ -107,7 +107,7 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
<
div
className=
{
styles
.
info_box
}
>
<
div
className=
{
styles
.
info_box_content
}
>
<
div
className=
{
styles
.
name
}
>
{
item
.
name
}
</
div
>
<
div
className=
{
styles
.
price
}
><
span
>
¥
</
span
>
{
item
.
min
}
</
div
>
<
div
className=
{
styles
.
price
}
><
span
>
¥
</
span
>
{
priceFormat
(
item
.
min
)
}
</
div
>
<
div
className=
{
styles
.
count
}
>
已售:
{
numFormat
(
item
.
sold
)
||
0
}
</
div
>
</
div
>
<
ul
className=
{
styles
.
tags_list
}
>
...
...
src/pages/lxMall/commodityDetail/components/ProductDescription/components/Comment/index.less
View file @
f2603aa7
...
...
@@ -123,21 +123,21 @@
&:hover,
&:active {
border-color:
#D32F2F
;
border-color:
var(--mall_main_color)
;
&>a {
color:
#D32F2F
;
color:
var(--mall_main_color)
;
}
}
}
.ant-pagination-item-active {
background-color:
#D32F2F
;
border-color:
#D32F2F
;
background-color:
var(--mall_main_color)
;
border-color:
var(--mall_main_color)
;
&:hover {
&>a {
color: #ffffff;
color: #ffffff
!important
;
}
}
...
...
src/pages/lxMall/commodityDetail/components/ProductDescription/components/TradeRecord/index.less
View file @
f2603aa7
...
...
@@ -12,37 +12,35 @@
}
.trade_record_container {
.ant-pagination-item {
:global {
.ant-pagination-item {
&:hover,
&:active {
border-color: #D32F2F
;
&:hover,
&:active {
border-color: var(--mall_main_color)
;
&>a {
color: #FFF;
&>a {
color: var(--mall_main_color);
}
}
}
}
.ant-pagination-item-active {
background-color: #D32F2F;
border-color: #D32F2F;
.ant-pagination-item-active {
background-color: var(--mall_main_color);
border-color: var(--mall_main_color);
&:hover {
&>a {
color: #ffffff !important;
}
}
&>a {
color: #ffffff;
&>a {
color: #ffffff;
}
}
}
// .ant-pagination-item-active {
// border-color: #D32F2F;
// background-color: #D32F2F;
// color: #ffffff;
// a {
// color: #FFFFFF;
// }
// }
.columns_item {
height: 48px;
display: flex;
...
...
src/pages/lxMall/commodityDetail/components/ProductDescription/components/TradeRecord/index.tsx
View file @
f2603aa7
import
React
from
'react'
import
React
,
{
useEffect
,
useState
}
from
'react'
import
{
Table
}
from
'antd'
import
isEmpty
from
'lodash/isEmpty'
import
{
PublicApi
}
from
'@/services/api'
import
moment
from
'moment'
import
{
GetOrderTransactionRecordsListResponseDetail
}
from
'@/services/OrderApi'
import
styles
from
'./index.less'
const
TradeRecord
:
React
.
FC
=
()
=>
{
interface
TradeRecordPropsType
{
productIds
:
number
[],
setCount
:
Function
}
const
TradeRecord
:
React
.
FC
<
TradeRecordPropsType
>
=
(
props
)
=>
{
const
{
productIds
,
setCount
}
=
props
const
[
current
,
setCurrent
]
=
useState
<
number
>
(
1
)
const
[
pageSize
,
setPageSize
]
=
useState
<
number
>
(
10
)
const
[
totalCount
,
setTotalCount
]
=
useState
<
number
>
(
0
)
const
[
recordList
,
setRecordList
]
=
useState
<
GetOrderTransactionRecordsListResponseDetail
[]
>
([])
useEffect
(()
=>
{
if
(
productIds
&&
!
isEmpty
(
productIds
))
{
fetchRecordsList
()
}
},
[
productIds
])
const
fetchRecordsList
=
()
=>
{
let
param
=
{
current
,
pageSize
,
productIds
:
productIds
.
toString
()
// '2339'
}
//@ts-ignore
PublicApi
.
getOrderTransactionRecordsList
(
param
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setTotalCount
(
res
.
data
.
totalCount
)
setRecordList
(
res
.
data
.
data
)
setCount
(
res
.
data
.
totalCount
)
}
})
}
const
columns
=
[
{
...
...
@@ -10,42 +46,24 @@ const TradeRecord: React.FC = () => {
width
:
'33%'
,
render
:
(
_
,
record
:
any
)
=>
{
return
(
<
div
className=
"columns_item"
>
<
div
className=
"columns_item_name"
>
{
record
.
name
}
</
div
>
{
record
.
type
===
1
&&
<
div
className=
"columns_item_member"
>
VIP会员
</
div
>
}
<
div
className=
{
styles
.
columns_item
}
>
<
div
className=
{
styles
.
columns_item_name
}
>
{
record
.
memberName
}
</
div
>
<
div
className=
{
styles
.
columns_item_member
}
>
VIP会员
</
div
>
</
div
>
)
}
},
{
title
:
'成交数量'
,
dataIndex
:
'
c
ount'
,
dataIndex
:
'
purchaseC
ount'
,
width
:
'33%'
},
{
title
:
'交易时间'
,
dataIndex
:
'date'
,
width
:
'33%'
},
]
const
mockData
=
[
{
id
:
1
,
name
:
'温州市****皮具有限公司'
,
count
:
30
,
date
:
'2020-05-20 15:58'
,
type
:
1
},
{
id
:
2
,
name
:
'温州市****皮具有限公司'
,
count
:
30
,
date
:
'2020-05-20 15:58'
,
type
:
2
dataIndex
:
'tradingTime'
,
width
:
'33%'
,
render
:
(
tradingTime
)
=>
moment
(
tradingTime
).
format
(
'YYYY-MM-DD HH:mm'
)
},
]
return
(
...
...
@@ -54,7 +72,12 @@ const TradeRecord: React.FC = () => {
交易记录
</
div
>
<
div
className=
{
styles
.
trade_record_container
}
>
<
Table
rowKey=
"id"
columns=
{
columns
}
dataSource=
{
mockData
}
/>
<
Table
rowKey=
"orderId"
columns=
{
columns
}
dataSource=
{
recordList
}
locale=
{
{
emptyText
:
'暂无交易记录'
}
}
/>
</
div
>
</
div
>
)
...
...
src/pages/lxMall/commodityDetail/components/ProductDescription/index.tsx
View file @
f2603aa7
...
...
@@ -19,6 +19,8 @@ interface ProductDescriptionPropsType {
const
ProductDescription
:
React
.
FC
<
ProductDescriptionPropsType
>
=
(
props
)
=>
{
const
{
commodityDetail
,
dataList
}
=
props
const
[
currentAnchor
,
setCurrentAnchor
]
=
useState
<
string
>
(
"#introduction"
)
const
[
productIds
,
setProductIds
]
=
useState
<
number
[]
>
([])
const
[
tradeRecordCount
,
setTradeRecordCount
]
=
useState
<
number
>
(
0
)
const
handleAnchorChange
=
(
currentActiveLink
:
string
)
=>
{
if
(
currentActiveLink
)
{
...
...
@@ -26,6 +28,14 @@ const ProductDescription: React.FC<ProductDescriptionPropsType> = (props) => {
}
}
useEffect
(()
=>
{
if
(
commodityDetail
)
{
if
(
commodityDetail
.
unitPricePicList
)
{
setProductIds
(
commodityDetail
.
unitPricePicList
.
map
(
item
=>
item
.
id
))
}
}
},
[
commodityDetail
])
return
(
<
div
className=
{
styles
.
product_description
}
id=
"product_description"
>
<
Anchor
...
...
@@ -34,12 +44,12 @@ const ProductDescription: React.FC<ProductDescriptionPropsType> = (props) => {
onChange=
{
handleAnchorChange
}
>
<
Link
className=
{
cx
(
currentAnchor
===
"#introduction"
?
'active'
:
''
)
}
href=
"#introduction"
title=
"产品简介"
/>
<
Link
href=
"#trade_record"
title=
{
commodityDetail
?.
priceType
===
COMMODITY_TYPE
.
integral
?
`兑换记录(2)`
:
`交易记录
(2)
`
}
/>
<
Link
href=
"#trade_record"
title=
{
commodityDetail
?.
priceType
===
COMMODITY_TYPE
.
integral
?
`兑换记录(2)`
:
`交易记录
${tradeRecordCount ? `
(
$
{
tradeRecordCount
})
` : `
(
0
)
`}
`
}
/>
<
Link
href=
"#comment"
title=
"交易评价(96)"
/>
<
BackTop
className=
{
styles
.
buy_now_btn
}
visibilityHeight=
{
800
}
>
立即订购
</
BackTop
>
</
Anchor
>
<
Introduction
commodityDetail=
{
commodityDetail
}
/>
<
TradeRecord
/>
<
TradeRecord
productIds=
{
productIds
}
setCount=
{
(
count
)
=>
setTradeRecordCount
(
count
)
}
/>
<
Comment
/>
<
Recommand
dataList=
{
dataList
}
{
...
props
}
/>
</
div
>
...
...
src/pages/lxMall/components/Filter/components/Points/index.tsx
View file @
f2603aa7
import
React
,
{
useState
}
from
'react'
import
React
,
{
useState
,
useEffect
}
from
'react'
import
{
Slider
}
from
'antd'
import
{
LAYOUT_TYPE
,
FILTER_TYPE
}
from
'@/constants'
import
{
PublicApi
}
from
'@/services/api'
import
FilterBox
from
'../FilterBox'
import
'./index.less'
...
...
@@ -10,8 +11,35 @@ interface PricePropsType {
}
const
Points
:
React
.
FC
<
PricePropsType
>
=
(
props
)
=>
{
const
{
layoutType
=
LAYOUT_TYPE
.
mall
}
=
props
const
{
onFilter
}
=
props
.
FilterStore
const
[
pointsRange
,
setPointsRange
]
=
useState
<
any
>
([
0
,
900
])
const
[
maxPrice
,
setMaxPrice
]
=
useState
<
number
>
(
900
)
const
[
pointsRange
,
setPointsRange
]
=
useState
<
any
>
([
0
,
maxPrice
])
useEffect
(()
=>
{
fetchMaxPrice
()
},
[])
const
fetchMaxPrice
=
()
=>
{
let
getFn
switch
(
layoutType
)
{
case
LAYOUT_TYPE
.
channel
:
case
LAYOUT_TYPE
.
ichannel
:
case
LAYOUT_TYPE
.
channelScoreMall
:
getFn
=
PublicApi
.
getSearchShopChannelGetCommodityMaxPrice
break
;
default
:
getFn
=
PublicApi
.
getSearchShopStoreGetCommodityMaxPrice
break
;
}
getFn
&&
getFn
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setMaxPrice
(
res
.
data
)
setPointsRange
([
0
,
res
.
data
])
}
})
}
const
handlePriceChange
=
(
value
)
=>
{
setPointsRange
(
value
)
...
...
@@ -36,15 +64,15 @@ const Points: React.FC<PricePropsType> = (props) => {
const
handleConfirmpointsRange
=
()
=>
{
let
min
=
pointsRange
[
0
]
let
max
=
pointsRange
[
1
]
if
(
min
===
900
)
{
if
(
min
===
maxPrice
)
{
filterMinPoints
(
min
)
}
else
if
(
min
===
0
&&
max
!==
900
)
{
}
else
if
(
min
===
0
&&
max
!==
maxPrice
)
{
filterMinPoints
(
min
,
false
)
filterMaxPoints
(
max
)
}
else
if
(
min
!==
0
&&
max
===
900
)
{
}
else
if
(
min
!==
0
&&
max
===
maxPrice
)
{
filterMinPoints
(
min
)
filterMaxPoints
(
max
,
false
)
}
else
if
((
min
===
0
&&
max
===
900
)
||
(
min
!==
0
&&
max
!==
900
))
{
}
else
if
((
min
===
0
&&
max
===
maxPrice
)
||
(
min
!==
0
&&
max
!==
maxPrice
))
{
filterMinPoints
(
min
)
filterMaxPoints
(
max
)
}
...
...
@@ -55,13 +83,13 @@ const Points: React.FC<PricePropsType> = (props) => {
title=
"所需积分范围"
>
<
div
className=
"filter_price"
>
<
Slider
range
step=
{
1
}
min=
{
0
}
max=
{
900
}
value=
{
pointsRange
}
onChange=
{
handlePriceChange
}
/>
<
Slider
range
step=
{
1
}
min=
{
0
}
max=
{
maxPrice
}
value=
{
pointsRange
}
onChange=
{
handlePriceChange
}
/>
<
div
className=
"price_box"
>
<
span
className=
"price_box_brief"
>
积分:
</
span
>
<
div
className=
"price_range"
>
<
span
className=
"price"
>
{
pointsRange
[
0
]
}
</
span
>
<
span
className=
"split"
>
-
</
span
>
<
span
className=
"price"
>
{
pointsRange
[
0
]
===
900
?
''
:
`${pointsRange[1]}`
}
</
span
>
<
span
className=
"price"
>
{
pointsRange
[
0
]
===
maxPrice
?
''
:
`${pointsRange[1]}`
}
</
span
>
</
div
>
<
div
className=
"confirm_btn"
onClick=
{
()
=>
handleConfirmpointsRange
()
}
>
确定
</
div
>
</
div
>
...
...
src/pages/lxMall/components/Filter/components/Price/index.tsx
View file @
f2603aa7
import
React
,
{
useState
}
from
'react'
import
React
,
{
useState
,
useEffect
}
from
'react'
import
{
Slider
}
from
'antd'
import
{
LAYOUT_TYPE
,
FILTER_TYPE
}
from
'@/constants'
import
{
PublicApi
}
from
'@/services/api'
import
FilterBox
from
'../FilterBox'
import
'./index.less'
...
...
@@ -10,9 +11,34 @@ interface PricePropsType {
}
const
Price
:
React
.
FC
<
PricePropsType
>
=
(
props
)
=>
{
const
{
layoutType
=
LAYOUT_TYPE
.
mall
}
=
props
const
{
onFilter
,
filterList
}
=
props
.
FilterStore
const
MAX_COUNT
=
900
const
[
priceRange
,
setPriceRange
]
=
useState
<
any
>
([
0
,
MAX_COUNT
])
const
[
maxPrice
,
setMaxPrice
]
=
useState
<
number
>
(
900
)
const
[
priceRange
,
setPriceRange
]
=
useState
<
any
>
([
0
,
maxPrice
])
useEffect
(()
=>
{
fetchMaxPrice
()
},
[])
const
fetchMaxPrice
=
()
=>
{
let
getFn
switch
(
layoutType
)
{
case
LAYOUT_TYPE
.
channel
:
case
LAYOUT_TYPE
.
ichannel
:
case
LAYOUT_TYPE
.
shopScoreMall
:
getFn
=
PublicApi
.
getSearchShopChannelGetCommodityMaxPrice
break
;
default
:
getFn
=
PublicApi
.
getSearchShopStoreGetCommodityMaxPrice
break
;
}
getFn
&&
getFn
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setMaxPrice
(
res
.
data
)
setPriceRange
([
0
,
res
.
data
])
}
})
}
const
handlePriceChange
=
(
value
)
=>
{
setPriceRange
(
value
)
...
...
@@ -37,19 +63,19 @@ const Price: React.FC<PricePropsType> = (props) => {
const
handleConfirmPriceRange
=
()
=>
{
let
min
=
priceRange
[
0
]
let
max
=
priceRange
[
1
]
if
(
min
===
MAX_COUNT
)
{
if
(
min
===
maxPrice
)
{
filterMinPrice
(
min
)
}
else
if
(
min
===
0
&&
max
!==
MAX_COUNT
)
{
}
else
if
(
min
===
0
&&
max
!==
maxPrice
)
{
if
(
checkHasType
(
FILTER_TYPE
.
minPrice
))
{
filterMinPrice
(
min
,
false
)
}
filterMaxPrice
(
max
)
}
else
if
(
min
!==
0
&&
max
===
MAX_COUNT
)
{
}
else
if
(
min
!==
0
&&
max
===
maxPrice
)
{
filterMinPrice
(
min
)
if
(
checkHasType
(
FILTER_TYPE
.
maxPrice
))
{
filterMaxPrice
(
max
,
false
)
}
}
else
if
((
min
===
0
&&
max
===
MAX_COUNT
)
||
(
min
!==
0
&&
max
!==
MAX_COUNT
))
{
}
else
if
((
min
===
0
&&
max
===
maxPrice
)
||
(
min
!==
0
&&
max
!==
maxPrice
))
{
filterMinPrice
(
min
)
filterMaxPrice
(
max
)
}
...
...
@@ -64,13 +90,13 @@ const Price: React.FC<PricePropsType> = (props) => {
title=
"价格"
>
<
div
className=
"filter_price"
>
<
Slider
range
step=
{
1
}
min=
{
0
}
max=
{
MAX_COUNT
}
value=
{
priceRange
}
onChange=
{
handlePriceChange
}
/>
<
Slider
range
step=
{
1
}
min=
{
0
}
max=
{
maxPrice
}
value=
{
priceRange
}
onChange=
{
handlePriceChange
}
/>
<
div
className=
"price_box"
>
<
span
className=
"price_box_brief"
>
价格:
</
span
>
<
div
className=
"price_range"
>
<
span
className=
"price"
>
¥
{
priceRange
[
0
]
}
</
span
>
<
span
className=
"split"
>
-
</
span
>
<
span
className=
"price"
>
{
priceRange
[
0
]
===
MAX_COUNT
?
''
:
`¥${priceRange[1]}`
}
</
span
>
<
span
className=
"price"
>
{
priceRange
[
0
]
===
maxPrice
?
''
:
`¥${priceRange[1]}`
}
</
span
>
</
div
>
<
div
className=
"confirm_btn"
onClick=
{
()
=>
handleConfirmPriceRange
()
}
>
确定
</
div
>
</
div
>
...
...
src/pages/lxMall/components/InterestedCommodity/index.tsx
View file @
f2603aa7
...
...
@@ -46,7 +46,7 @@ const InterestedCommodity: React.FC<InterestedCommodityPropsType> = (props) => {
return
link
}
return
(
return
dataList
&&
dataList
.
length
>
0
&&
(
<
div
className=
{
styles
.
interested_commodity
}
>
<
div
className=
{
styles
.
interested_commodity_title
}
>
<
span
>
您可能也感兴趣:
</
span
>
...
...
@@ -57,7 +57,7 @@ const InterestedCommodity: React.FC<InterestedCommodityPropsType> = (props) => {
</
div
>
<
div
className=
{
styles
.
interested_commodity_list
}
>
{
dataList
&&
dataList
.
map
((
item
,
index
)
=>
index
<
5
&&
(
dataList
.
map
((
item
,
index
)
=>
index
<
5
&&
(
<
div
className=
{
styles
.
interested_commodity_list_item
}
key=
{
`interested_commodity_list_item_${item.id}`
}
>
<
a
href=
{
getCommodityDetailLink
(
item
)
}
target=
"_blank"
>
<
div
className=
{
styles
.
interested_commodity_list_item_imgbox
}
>
...
...
src/pages/lxMall/components/MainNav/index.less
View file @
f2603aa7
...
...
@@ -31,6 +31,10 @@
&>a {
color: #303133;
&:hover {
color: #303133 !important;
}
}
&.active {
...
...
@@ -55,6 +59,10 @@
a {
color: #FFF;
&:hover {
color: #FFF !important;
}
}
}
}
...
...
src/pages/lxMall/layouts/LXShopLayout.tsx
View file @
f2603aa7
...
...
@@ -70,9 +70,11 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => {
}
useEffect
(()
=>
{
let
body
=
document
.
getElementsByTagName
(
'body'
)[
0
];
if
(
shopInfo
)
{
let
body
=
document
.
getElementsByTagName
(
'body'
)[
0
];
body
.
className
=
shopInfo
.
fileName
?
`theme-shop-
${
shopInfo
.
fileName
}
`
:
templateName
;
}
else
{
body
.
className
=
templateName
;
}
},
[
shopInfo
])
...
...
src/pages/lxMall/order/index.tsx
View file @
f2603aa7
...
...
@@ -263,9 +263,12 @@ const Order: React.FC<OrderPropsType> = (props) => {
}
let
orderProductRequests
=
[]
let
purchaseIds
=
[]
for
(
let
item
of
orderList
)
{
for
(
let
orderItem
of
item
.
orderList
)
{
let
temp
:
any
=
{}
purchaseIds
.
push
(
orderItem
.
purchaseId
)
temp
.
imgUrl
=
orderItem
.
commodityPic
temp
.
productId
=
orderItem
.
id
temp
.
productName
=
orderItem
.
name
...
...
@@ -292,6 +295,11 @@ const Order: React.FC<OrderPropsType> = (props) => {
params
.
theInvoiceId
=
selectInvoiceInfo
.
id
params
.
theInvoiceInfo
=
selectInvoiceInfo
}
if
(
!!
orderInfo
.
purchaseOrder
)
{
params
.
idList
=
purchaseIds
params
.
productType
=
(
layoutType
===
LAYOUT_TYPE
.
channel
||
layoutType
===
LAYOUT_TYPE
.
ichannel
)
?
2
:
1
}
setConfirmLoading
(
true
)
PublicApi
.
postOrderProcurementOrderAdd
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/lxMall/purchaseOrder/index.tsx
View file @
f2603aa7
...
...
@@ -145,6 +145,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
defaultCheckedList
:
item
.
orderList
.
map
(
item
=>
item
.
id
)
})
})
console
.
log
(
result
)
setOrderList
(
result
)
// !initChecked && setCheckedList(result.map(item => item.id))
}
...
...
@@ -503,6 +504,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
commonLogistics
=
item
.
commodityUnitPrice
.
commodity
.
logistics
let
buyCommodityInfo
:
any
=
{
id
:
item
.
commodityUnitPrice
.
id
,
purchaseId
:
item
.
id
,
count
:
item
.
count
,
unitName
:
item
.
commodityUnitPrice
.
commodity
.
unitName
,
unitPrice
:
getUnitPrice
(
item
.
commodityUnitPrice
,
item
.
count
),
...
...
@@ -523,6 +525,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
}
let
buyOrderInfo
:
any
=
{
purchaseOrder
:
true
,
logistics
:
commonLogistics
,
supplyMembersName
:
selectItem
.
shopname
,
supplyMembersId
:
selectItem
.
memberId
,
...
...
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