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
4a39aa83
Commit
4a39aa83
authored
Sep 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
3f7ca6be
9984e307
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
7 deletions
+15
-7
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+10
-2
LXChannelLayout.tsx
src/pages/lxMall/layouts/LXChannelLayout.tsx
+1
-1
LXIChannelLayout.tsx
src/pages/lxMall/layouts/LXIChannelLayout.tsx
+1
-1
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+3
-3
No files found.
src/pages/lxMall/commodityDetail/index.tsx
View file @
4a39aa83
...
...
@@ -189,12 +189,12 @@ const CommodityDetail = (props) => {
}
}
},
[
selectAttrVal
])
},
[
selectAttrVal
,
commodityDetail
])
const
getCommodityPriceRange
=
()
=>
{
if
(
commodityDetail
?.
unitPriceAndPicList
)
{
for
(
let
item
of
commodityDetail
?.
unitPriceAndPicList
)
{
let
temp
=
item
.
attributeAndValueList
.
map
(
attrItem
=>
{
return
{
attrId
:
attrItem
.
customerAttribute
.
id
,
...
...
@@ -371,6 +371,11 @@ const CommodityDetail = (props) => {
}
}
const
judegeImageExist
=
(
list
,
pic
)
=>
{
return
list
.
every
(
item
=>
item
.
commodityPic
!==
pic
.
commodityPic
)
}
/**
* 初始化商品详情数据
* @param unitPriceAndPicList
...
...
@@ -394,9 +399,12 @@ const CommodityDetail = (props) => {
commodityPic
:
picItem
}
})
// if (judegeImageExist(tempImgList, tempCommodityPic)) {
// }
tempImgList
=
[...
tempImgList
,
...
tempCommodityPic
]
}
console
.
log
(
tempImgList
,
""
)
for
(
let
attrListItem
of
item
.
attributeAndValueList
)
{
if
(
judgeAttrInList
(
tempAttrList
,
attrListItem
.
customerAttribute
.
id
))
{
let
tempAttrListIndex
=
0
...
...
src/pages/lxMall/layouts/LXChannelLayout.tsx
View file @
4a39aa83
...
...
@@ -74,7 +74,7 @@ const LXChannelLayout: React.FC<LXChannelLayoutPropsType> = (props) => {
return
(
<
div
className=
{
styles
.
lxmall_page
}
>
<
TopBar
langComponent=
{
<
SelectLang
/>
}
/>
<
TopBar
langComponent=
{
<
SelectLang
/>
}
name=
{
shopInfo
?.
company
}
/>
<
div
className=
{
styles
.
content
}
>
{
!
menuRouter
?.
hideHeader
&&
(
...
...
src/pages/lxMall/layouts/LXIChannelLayout.tsx
View file @
4a39aa83
...
...
@@ -73,7 +73,7 @@ const LXIChannelLayout: React.FC<LXIChannelLayoutPropsType> = (props) => {
return
(
<
div
className=
{
styles
.
lxmall_page
}
>
<
TopBar
langComponent=
{
<
SelectLang
/>
}
/>
<
TopBar
langComponent=
{
<
SelectLang
/>
}
name=
{
shopInfo
?.
company
}
/>
<
div
className=
{
styles
.
content
}
>
{
!
menuRouter
?.
hideHeader
&&
(
...
...
src/pages/lxMall/purchaseOrder/index.tsx
View file @
4a39aa83
...
...
@@ -406,8 +406,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
* 结算
*/
const
handleSettlement
=
async
()
=>
{
if
(
orderList
.
every
(
item
=>
item
.
checkedList
.
length
>
0
))
{
if
(
orderList
.
every
(
item
=>
item
.
checkedList
.
length
>
1
))
{
message
.
info
(
"暂不支持多个供应商商品生成订单,请选择相同供应商的商品"
)
return
}
else
if
(
orderList
.
every
(
item
=>
item
.
checkedList
.
length
===
0
))
{
...
...
@@ -460,6 +459,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
buyOrderInfo
.
payWayList
=
await
getPayWayListByMemberId
(
selectItem
.
memberId
)
PublicApi
.
postOrderIsWorkFlow
({
productIds
}).
then
(
res
=>
{
message
.
destroy
()
setConfirmLoading
(
false
)
if
(
res
.
code
===
1000
)
{
let
sessionKey
=
`
${
selectItem
.
id
}${
new
Date
().
getTime
()}
`
...
...
@@ -577,7 +577,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
}
</
div
>
<
div
className=
{
cx
(
styles
.
order_list_item_item
,
styles
.
count
)
}
>
<
InputNumber
disabled=
{
true
}
max=
{
childItem
.
stockCount
||
0
}
min=
{
0
}
value=
{
childItem
.
count
}
onChange=
{
(
value
)
=>
handleCountChange
(
value
,
childItem
.
id
)
}
/>
<
InputNumber
disabled=
{
true
}
max=
{
childItem
.
stockCount
||
0
}
min=
{
childItem
.
commodityUnitPrice
.
commodity
.
minOrder
||
1
}
value=
{
childItem
.
count
}
onChange=
{
(
value
)
=>
handleCountChange
(
value
,
childItem
.
id
)
}
/>
<
div
className=
{
styles
.
stock
}
>
(库存
{
numFormat
(
childItem
.
stockCount
)
}{
childItem
.
commodityUnitPrice
.
commodity
.
unitName
}
)
</
div
>
</
div
>
<
div
className=
{
cx
(
styles
.
order_list_item_item
,
styles
.
amount
)
}
>
...
...
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