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
linweijiong
jinfa-platform
Commits
269e175e
Commit
269e175e
authored
Jan 25, 2021
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of 10.0.0.22:lingxi/lingxi-business-paltform into dev
parents
5af97bb5
1913e34c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
9 deletions
+34
-9
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+1
-1
index.less
src/pages/lxMall/components/Category/index.less
+1
-0
index.tsx
...es/lxMall/components/Filter/components/Category/index.tsx
+1
-0
index.less
src/pages/lxMall/order/index.less
+6
-0
index.tsx
src/pages/lxMall/order/index.tsx
+9
-3
index.tsx
src/pages/lxMall/pay/index.tsx
+4
-1
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+12
-4
No files found.
src/pages/lxMall/commodityDetail/index.tsx
View file @
269e175e
...
@@ -627,7 +627,7 @@ const CommodityDetail = (props) => {
...
@@ -627,7 +627,7 @@ const CommodityDetail = (props) => {
const
sessionKey
=
`inquiry
${
selectCommodityId
}${
new
Date
().
getTime
()}
`
const
sessionKey
=
`inquiry
${
selectCommodityId
}${
new
Date
().
getTime
()}
`
updateOrderInfo
(
inquiryParam
,
sessionKey
).
then
(()
=>
{
updateOrderInfo
(
inquiryParam
,
sessionKey
).
then
(()
=>
{
window
.
location
.
href
=
`/memberCenter/tranactionAbility/goodsOffer/addEnquiryOrder/rfq?id=
${
id
}
&memberId=
${
memberId
}
&spam_id=
${
sessionKey
}
`
window
.
location
.
href
=
`/memberCenter/tranactionAbility/goodsOffer/addEnquiryOrder/rfq?id=
${
id
}
&memberId=
${
memberId
}
&spam_id=
${
sessionKey
}
&commodityId=
${
id
}
`
})
})
}
}
...
...
src/pages/lxMall/components/Category/index.less
View file @
269e175e
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
margin: 0;
margin: 0;
&_item {
&_item {
position: relative;
padding-left: 20px;
padding-left: 20px;
padding-top: 12px;
padding-top: 12px;
height: 56px;
height: 56px;
...
...
src/pages/lxMall/components/Filter/components/Category/index.tsx
View file @
269e175e
...
@@ -237,6 +237,7 @@ const Category: React.FC<CategoryPropsType> = (props) => {
...
@@ -237,6 +237,7 @@ const Category: React.FC<CategoryPropsType> = (props) => {
switch
(
layoutType
)
{
switch
(
layoutType
)
{
case
LAYOUT_TYPE
.
mall
:
case
LAYOUT_TYPE
.
mall
:
case
LAYOUT_TYPE
.
shopList
:
onFilter
({
onFilter
({
type
:
FILTER_TYPE
.
category
,
type
:
FILTER_TYPE
.
category
,
key
:
selectedKeys
,
key
:
selectedKeys
,
...
...
src/pages/lxMall/order/index.less
View file @
269e175e
...
@@ -149,6 +149,12 @@
...
@@ -149,6 +149,12 @@
background-color: var(--mall_main_color);
background-color: var(--mall_main_color);
cursor: pointer;
cursor: pointer;
&[disabled] {
background: #F4F5F7;
border-color: #F4F5F7;
color: rgba(0, 0, 0, 0.25);
}
&:hover {
&:hover {
opacity: .9;
opacity: .9;
}
}
...
...
src/pages/lxMall/order/index.tsx
View file @
269e175e
...
@@ -70,7 +70,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
...
@@ -70,7 +70,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
const
[
contracErrorInfo
,
setContracErrorInfo
]
=
useState
<
any
>
()
const
[
contracErrorInfo
,
setContracErrorInfo
]
=
useState
<
any
>
()
const
[
electronicContractId
,
setElectronicContractId
]
=
useState
<
number
>
()
const
[
electronicContractId
,
setElectronicContractId
]
=
useState
<
number
>
()
const
[
agreeSingLoading
,
setAgreeSignLoading
]
=
useState
<
boolean
>
(
false
)
const
[
agreeSingLoading
,
setAgreeSignLoading
]
=
useState
<
boolean
>
(
false
)
const
[
btnDisabled
]
=
useState
<
boolean
>
(
fals
e
)
const
[
btnDisabled
,
setBtnDisable
]
=
useState
<
boolean
>
(
tru
e
)
const
{
storeId
}
=
useStoreId
(
getLayoutType
(
layoutType
,
Number
(
type
)))
const
{
storeId
}
=
useStoreId
(
getLayoutType
(
layoutType
,
Number
(
type
)))
useEffect
(()
=>
{
useEffect
(()
=>
{
...
@@ -131,6 +131,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
...
@@ -131,6 +131,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
if
(
sessionStorage
.
getItem
(
`contract
${
spam_id
}
`
))
{
if
(
sessionStorage
.
getItem
(
`contract
${
spam_id
}
`
))
{
setContractInfo
(
JSON
.
parse
(
sessionStorage
.
getItem
(
`contract
${
spam_id
}
`
)))
setContractInfo
(
JSON
.
parse
(
sessionStorage
.
getItem
(
`contract
${
spam_id
}
`
)))
setIsElectronicContract
(
true
)
setIsElectronicContract
(
true
)
setBtnDisable
(
false
)
}
else
{
}
else
{
// 根据电子合同模板id获取生成电子合同
// 根据电子合同模板id获取生成电子合同
const
param
:
any
=
{
const
param
:
any
=
{
...
@@ -155,12 +156,19 @@ const Order: React.FC<OrderPropsType> = (props) => {
...
@@ -155,12 +156,19 @@ const Order: React.FC<OrderPropsType> = (props) => {
setContracErrorInfo
(
signRes
.
message
)
setContracErrorInfo
(
signRes
.
message
)
}
}
setIsElectronicContract
(
true
)
setIsElectronicContract
(
true
)
setBtnDisable
(
false
)
}
}
}
else
{
setBtnDisable
(
false
)
}
}
}
else
{
setBtnDisable
(
false
)
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
"获取交易规则失败"
)
console
.
log
(
"获取交易规则失败"
)
}
}
}
else
{
setBtnDisable
(
false
)
}
}
}
}
...
@@ -193,8 +201,6 @@ const Order: React.FC<OrderPropsType> = (props) => {
...
@@ -193,8 +201,6 @@ const Order: React.FC<OrderPropsType> = (props) => {
setSpinningState
(
false
)
setSpinningState
(
false
)
}
}
const
renderLogisticsInfo
=
(
type
,
logisticsInfo
)
=>
{
const
renderLogisticsInfo
=
(
type
,
logisticsInfo
)
=>
{
switch
(
type
)
{
switch
(
type
)
{
case
1
:
case
1
:
...
...
src/pages/lxMall/pay/index.tsx
View file @
269e175e
...
@@ -74,7 +74,10 @@ const PayPage: React.FC<PayPagePropsType> = (props) => {
...
@@ -74,7 +74,10 @@ const PayPage: React.FC<PayPagePropsType> = (props) => {
},
[
query
])
},
[
query
])
const
fetchOrderInfo
=
()
=>
{
const
fetchOrderInfo
=
()
=>
{
PublicApi
.
getOrderOrderPayDetails
({
id
:
query
.
orderId
}).
then
(
res
=>
{
const
param
:
any
=
{
id
:
query
.
orderId
}
PublicApi
.
getOrderOrderPayDetails
(
param
).
then
(
res
=>
{
message
.
destroy
()
message
.
destroy
()
setLoading
(
false
)
setLoading
(
false
)
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/lxMall/purchaseOrder/index.tsx
View file @
269e175e
...
@@ -103,7 +103,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
...
@@ -103,7 +103,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
const
tempResult
=
[]
const
tempResult
=
[]
for
(
const
tempItem
of
result
)
{
for
(
const
tempItem
of
result
)
{
if
(
tempItem
.
id
===
item
.
commodityUnitPrice
.
commodity
.
storeId
)
{
if
(
tempItem
.
id
===
item
.
commodityUnitPrice
.
commodity
.
storeId
)
{
cons
t
tempPriceRange
=
[]
le
t
tempPriceRange
=
[]
const
unitPrice
=
item
.
commodityUnitPrice
.
unitPrice
const
unitPrice
=
item
.
commodityUnitPrice
.
unitPrice
let
parameter
:
any
=
1
let
parameter
:
any
=
1
const
isMemberPrice
=
item
.
commodityUnitPrice
.
commodity
.
isMemberPrice
const
isMemberPrice
=
item
.
commodityUnitPrice
.
commodity
.
isMemberPrice
...
@@ -122,7 +122,11 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
...
@@ -122,7 +122,11 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
price
:
isMemberPrice
?
Number
(
unitPrice
[
key
])
*
Number
(
parameter
)
:
unitPrice
[
key
]
price
:
isMemberPrice
?
Number
(
unitPrice
[
key
])
*
Number
(
parameter
)
:
unitPrice
[
key
]
})
})
})
})
try
{
tempPriceRange
=
tempPriceRange
.
sort
((
a
,
b
)
=>
a
.
price
<
b
.
price
?
1
:
-
1
)
}
catch
(
error
)
{
console
.
log
(
error
)
}
item
.
commodityUnitPrice
[
'priceRange'
]
=
tempPriceRange
item
.
commodityUnitPrice
[
'priceRange'
]
=
tempPriceRange
tempItem
.
orderList
=
[...
tempItem
.
orderList
,
item
]
tempItem
.
orderList
=
[...
tempItem
.
orderList
,
item
]
tempResult
.
push
(
tempItem
)
tempResult
.
push
(
tempItem
)
...
@@ -137,7 +141,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
...
@@ -137,7 +141,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
temp
.
memberId
=
item
.
commodityUnitPrice
.
commodity
.
memberId
temp
.
memberId
=
item
.
commodityUnitPrice
.
commodity
.
memberId
temp
.
memberRoleId
=
item
.
commodityUnitPrice
.
commodity
.
memberRoleId
temp
.
memberRoleId
=
item
.
commodityUnitPrice
.
commodity
.
memberRoleId
temp
.
shopname
=
item
.
commodityUnitPrice
.
commodity
.
memberName
temp
.
shopname
=
item
.
commodityUnitPrice
.
commodity
.
memberName
cons
t
tempPriceRange
=
[]
le
t
tempPriceRange
=
[]
const
unitPrice
=
item
.
commodityUnitPrice
.
unitPrice
const
unitPrice
=
item
.
commodityUnitPrice
.
unitPrice
let
parameter
:
any
=
1
let
parameter
:
any
=
1
const
isMemberPrice
=
item
.
commodityUnitPrice
.
commodity
.
isMemberPrice
const
isMemberPrice
=
item
.
commodityUnitPrice
.
commodity
.
isMemberPrice
...
@@ -156,7 +160,11 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
...
@@ -156,7 +160,11 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
price
:
isMemberPrice
?
Number
(
unitPrice
[
key
])
*
Number
(
parameter
)
:
unitPrice
[
key
]
price
:
isMemberPrice
?
Number
(
unitPrice
[
key
])
*
Number
(
parameter
)
:
unitPrice
[
key
]
})
})
})
})
try
{
tempPriceRange
=
tempPriceRange
.
sort
((
a
,
b
)
=>
a
.
price
<
b
.
price
?
1
:
-
1
)
}
catch
(
error
)
{
console
.
log
(
error
)
}
item
.
commodityUnitPrice
[
'priceRange'
]
=
tempPriceRange
item
.
commodityUnitPrice
[
'priceRange'
]
=
tempPriceRange
temp
.
orderList
=
[
item
]
temp
.
orderList
=
[
item
]
result
.
push
(
temp
)
result
.
push
(
temp
)
...
...
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