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
d0a6b161
Commit
d0a6b161
authored
Dec 31, 2020
by
前端-许佳敏
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
b63e79fb
4dfc68e6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
126 additions
and
75 deletions
+126
-75
index.tsx
src/pages/lxMall/components/CommonHeader/index.tsx
+1
-1
index.tsx
src/pages/lxMall/components/Header/index.tsx
+4
-3
checkDetail.tsx
...dSettle/amountAccountManage/checkWithdraw/checkDetail.tsx
+8
-8
addBrand.tsx
src/pages/trademark/addBrand.tsx
+1
-0
index.less
src/pages/trademark/index.less
+18
-11
index.less
src/pages/transaction/components/orderPayTabs/index.less
+23
-18
index.tsx
src/pages/transaction/components/orderPayTabs/index.tsx
+52
-15
index.ts
...s/transaction/purchaseOrder/orderCollect/effects/index.ts
+17
-15
usePaymentInfo.tsx
...ction/purchaseOrder/orderCollect/model/usePaymentInfo.tsx
+2
-4
RuleSetting.tsx
...s/transaction/transactionRules/components/RuleSetting.tsx
+0
-0
No files found.
src/pages/lxMall/components/CommonHeader/index.tsx
View file @
d0a6b161
...
...
@@ -15,7 +15,7 @@ const CommonHeader: React.FC<ShopHeaderPropsType> = (props) => {
const
{
title
,
logoUrl
,
type
,
shopUrlParam
}
=
props
const
getLink
=
()
=>
{
let
url
:
string
=
''
let
url
:
string
switch
(
type
)
{
case
LAYOUT_TYPE
.
channel
:
url
=
`
${
GlobalConfig
.
channelRootRoute
}
?channelId=
${
shopUrlParam
}
`
...
...
src/pages/lxMall/components/Header/index.tsx
View file @
d0a6b161
...
...
@@ -5,6 +5,7 @@ import { history } from 'umi'
import
{
FileTextOutlined
,
DownOutlined
}
from
'@ant-design/icons'
import
isEmpty
from
'lodash/isEmpty'
import
{
PublicApi
}
from
'@/services/api'
import
ImageBox
from
'@/components/ImageBox'
import
{
getAuth
}
from
'@/utils/auth'
import
styles
from
'./index.less'
...
...
@@ -19,7 +20,7 @@ const Header: React.FC<HeaderPropsType> = (props) => {
const
[
count
,
setCount
]
=
useState
<
number
>
(
0
)
const
{
search
}
=
history
.
location
.
query
le
t
handleScroll
=
()
=>
{
cons
t
handleScroll
=
()
=>
{
const
scrollTop
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
const
floatSearch
=
document
.
getElementById
(
"floatSearch"
)
if
(
floatSearch
)
{
...
...
@@ -50,7 +51,7 @@ const Header: React.FC<HeaderPropsType> = (props) => {
},
[])
useEffect
(()
=>
{
if
(
!!
search
)
{
if
(
search
)
{
setSearchValue
(
search
)
}
else
{
setSearchValue
(
""
)
...
...
@@ -97,7 +98,7 @@ const Header: React.FC<HeaderPropsType> = (props) => {
<
div
className=
{
styles
.
header
}
>
<
div
className=
{
styles
.
header_container
}
>
<
div
className=
{
styles
.
logo
}
>
<
img
src
=
{
logo
}
/>
<
ImageBox
width=
{
145
}
height=
{
50
}
imgUrl
=
{
logo
}
/>
</
div
>
<
div
className=
{
styles
.
mall_search
}
>
<
div
className=
{
styles
.
mall_search_tags
}
>
...
...
src/pages/payandSettle/amountAccountManage/checkWithdraw/checkDetail.tsx
View file @
d0a6b161
...
...
@@ -41,7 +41,7 @@ const CheckDetail: React.FC<{}> = () => {
const
{
code
,
data
}
=
res
setDetails
(
data
)
if
(
code
===
1000
)
{
let
bankRes
=
await
PublicApi
.
getSettleAccountsCorporateAccountConfig
({
memberId
:
data
.
memberId
+
''
})
let
bankRes
=
await
PublicApi
.
getSettleAccountsCorporateAccountConfig
({
memberId
:
data
.
memberId
+
''
,
memberRoleId
:
data
.
memberRoleId
+
''
})
setBankDetail
(
bankRes
.
data
)
}
}
...
...
@@ -66,7 +66,7 @@ const CheckDetail: React.FC<{}> = () => {
title
:
'交易时间'
,
dataIndex
:
'tradeTime'
,
key
:
'tradeTime'
,
render
:
(
text
:
any
)
=>
moment
(
text
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
render
:
(
text
:
any
)
=>
moment
(
text
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
},
{
title
:
'交易金额(元)'
,
...
...
@@ -116,7 +116,7 @@ const CheckDetail: React.FC<{}> = () => {
}
const
handleCancel
=
()
=>
{
checkForm
.
resetFields
()
checkForm
.
resetFields
()
setVisibleModal
(
false
)
}
...
...
@@ -126,7 +126,7 @@ const CheckDetail: React.FC<{}> = () => {
onBack=
{
()
=>
history
.
goBack
()
}
backIcon=
{
<
ReutrnEle
/>
}
extra=
{
urlParams
.
preview
?
[]
:
[
<
Button
<
Button
icon=
{
<
CheckSquareOutlined
/>
}
key=
"1"
type=
"primary"
...
...
@@ -288,8 +288,8 @@ const CheckDetail: React.FC<{}> = () => {
layout=
"vertical"
form=
{
checkForm
}
>
<
Form
.
Item
name=
"status"
<
Form
.
Item
name=
"status"
label=
""
rules=
{
[
{
...
...
@@ -305,8 +305,8 @@ const CheckDetail: React.FC<{}> = () => {
</
Radio
.
Group
>
</
Form
.
Item
>
{
checkStatus
===
2
&&
<
Form
.
Item
name=
"remark"
checkStatus
===
2
&&
<
Form
.
Item
name=
"remark"
label=
{
'审核不通过原因'
}
rules=
{
[
{
...
...
src/pages/trademark/addBrand.tsx
View file @
d0a6b161
...
...
@@ -186,6 +186,7 @@ const AddBrand: React.FC<{}> = () => {
保存
</
Button
>,
]
}
className=
{
styles
.
brandBox
}
>
<
Space
direction=
"vertical"
style=
{
{
width
:
'100%'
}
}
>
<
Card
headStyle=
{
{
borderBottom
:
'none'
}
}
title=
"流程进度"
>
...
...
src/pages/trademark/index.less
View file @
d0a6b161
.proveBox{
width:175px;
height:120px;
border:1px solid rgba(235,236,240,1);
img {
width: 100%;
height: 100%;
padding: 18px;
}
}
\ No newline at end of file
.proveBox{
width:175px;
height:120px;
border:1px solid rgba(235,236,240,1);
img {
width: 100%;
height: 100%;
padding: 18px;
}
}
.brandBox {
:global {
.ant-form-item {
display: block;
}
}
}
src/pages/transaction/components/orderPayTabs/index.less
View file @
d0a6b161
.fontGray {
font-size: 12px;
color: #909399;
margin-bottom: 10px;
}
.bignumber {
font-size: 24px;
color: #303133;
margin-bottom: 10px;
}
.smallnumber {
font-size: 14px;
color: #303133;
line-height: 24px;
}
\ No newline at end of file
.fontGray {
font-size: 12px;
color: #909399;
margin-bottom: 10px;
}
.bignumber {
font-size: 24px;
color: #303133;
margin-bottom: 10px;
}
.smallnumber {
font-size: 14px;
color: #303133;
line-height: 24px;
}
.card-list {
font-size: 12px;
line-height: 20px;
margin-top: 4px;
}
src/pages/transaction/components/orderPayTabs/index.tsx
View file @
d0a6b161
...
...
@@ -4,6 +4,11 @@ import { Tabs, Row, Col } from 'antd'
import
{
OrderDetailContext
}
from
'../../_public/order/context'
import
MellowCard
from
'@/components/MellowCard'
import
StatusColors
from
'../StatusColors'
import
moment
from
'moment'
/**
* 展示 支付比例和简单流程的发货信息
*/
export
interface
OrderPayTabsProps
{}
...
...
@@ -35,6 +40,9 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = (props) => {
const
{
data
,
payList
,
ctl
}
=
useContext
(
OrderDetailContext
)
// 简单流程为24
const
processEnum
=
data
.
processEnum
useEffect
(()
=>
{
// 过滤支付信息 取第一个待支付的id
if
(
data
?.
paymentInformationResponses
?.
length
)
{
...
...
@@ -50,24 +58,53 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = (props) => {
}
return
(
<
MellowCard
style=
{
{
marginTop
:
24
}
}
bordered=
{
false
}
>
<
Tabs
defaultActiveKey=
'1'
onChange=
{
onChange
}
>
{
data
.
paymentInformationResponses
&&
data
.
paymentInformationResponses
.
map
(
v
=>
<
TabPane
key=
{
v
.
id
}
tab=
{
<
TabHeader
dataSource=
{
v
}
/>
}
>
<
Row
>
<
Col
className=
{
style
.
fontGray
}
span=
{
4
}
>
支付环节:
</
Col
>
<
Col
>
{
v
.
payNode
}
</
Col
>
<
Row
gutter=
{
24
}
style=
{
{
marginTop
:
24
}
}
>
<
Col
span=
{
processEnum
===
24
?
12
:
24
}
>
<
MellowCard
bordered=
{
false
}
fullHeight
>
{
/* <Row gutter={24}> */
}
<
Tabs
defaultActiveKey=
'1'
onChange=
{
onChange
}
>
{
data
.
paymentInformationResponses
&&
data
.
paymentInformationResponses
.
map
(
v
=>
<
TabPane
key=
{
v
.
id
}
tab=
{
<
TabHeader
dataSource=
{
v
}
/>
}
>
<
Row
>
<
Col
className=
{
style
.
fontGray
}
span=
{
4
}
>
支付环节:
</
Col
>
<
Col
>
{
v
.
payNode
}
</
Col
>
</
Row
>
<
Row
>
<
Col
className=
{
style
.
fontGray
}
span=
{
4
}
>
支付方式:
</
Col
>
<
Col
>
{
payTextList
[
v
.
payWay
]
}
</
Col
>
</
Row
>
<
Row
>
<
Col
className=
{
style
.
fontGray
}
span=
{
4
}
>
支付渠道:
</
Col
>
<
Col
>
{
payList
.
find
(
j
=>
j
.
id
===
v
.
channel
)?.
way
||
(
v
.
channel
===
0
&&
'积分支付'
)
}
</
Col
>
</
Row
>
</
TabPane
>)
}
</
Tabs
>
{
/* </Row> */
}
</
MellowCard
>
</
Col
>
{
processEnum
===
24
&&
data
&&
<
Col
span=
{
12
}
>
<
MellowCard
title=
"发货信息"
fullHeight
>
<
Row
className=
{
style
[
'card-list'
]
}
>
<
Col
span=
{
6
}
><
p
>
发货地址:
</
p
></
Col
>
<
Col
><
p
>
{
data
.
name
}
</
p
></
Col
>
</
Row
>
<
Row
>
<
Col
className=
{
style
.
fontGray
}
span=
{
4
}
>
支付方式:
</
Col
>
<
Col
>
{
payTextList
[
v
.
payWay
]
}
</
Col
>
<
Row
className=
{
style
[
'card-list'
]
}
>
<
Col
span=
{
6
}
><
p
>
发货时间:
</
p
>
</
Col
>
<
Col
>
<
p
>
{
moment
(
data
.
deliverTime
).
format
(
'YYYY-MM-DD'
)
}
</
p
>
</
Col
>
</
Row
>
<
Row
>
<
Col
className=
{
style
.
fontGray
}
span=
{
4
}
>
支付渠道:
</
Col
>
<
Col
>
{
payList
.
find
(
j
=>
j
.
id
===
v
.
channel
)?.
way
||
(
v
.
channel
===
0
&&
'积分支付'
)
}
</
Col
>
<
Row
className=
{
style
[
'card-list'
]
}
>
<
Col
span=
{
6
}
><
p
>
物流单号:
</
p
>
</
Col
>
<
Col
>
<
p
><
a
href=
{
`https://www.kuaidi100.com/chaxun?nu=${data.deliverNo}`
}
target=
"_blank"
>
{
data
.
deliverNo
}
</
a
></
p
>
</
Col
>
</
Row
>
</
TabPane
>)
}
</
Tabs
>
</
MellowCard
>
<
Row
className=
{
style
[
'card-list'
]
}
>
<
Col
span=
{
6
}
><
p
>
物流公司:
</
p
></
Col
>
<
Col
><
p
>
{
data
.
logisticsCompany
}
</
p
></
Col
>
</
Row
>
</
MellowCard
>
</
Col
>
}
</
Row
>
)
}
...
...
src/pages/transaction/purchaseOrder/orderCollect/effects/index.ts
View file @
d0a6b161
...
...
@@ -259,21 +259,23 @@ export const useElectronicContract = (ctx: ISchemaFormActions | ISchemaFormAsync
params
[
'memberId'
]
=
ctx
.
getFieldValue
(
'supplyMembersId'
)
params
[
'memberRoleId'
]
=
ctx
.
getFieldValue
(
'supplyMembersRoleId'
)
fetchOrderApi
.
getOrderWorkFlow
(
params
).
then
(
data
=>
{
// 简单流程并使用电子合同 强行启用电子合同
if
(
data
[
"processEnum"
]
===
24
&&
data
[
"isElectronicContract"
])
{
ctx
.
setFieldState
(
"usingElectronicContracts"
,
state
=>
{
state
.
visible
=
true
})
ctx
.
setFieldValue
(
"processEnum"
,
data
[
"processEnum"
])
// ctx.setFieldValue("usingElectronicContracts", data["isElectronicContract"] ? 1 : 0)
}
if
(
data
[
'electronicContractId'
])
{
fetchOrderApi
.
createContract
({
contractTemplateId
:
data
[
'electronicContractId'
],
signMemberId
:
params
[
'memberId'
]
}).
then
(
_data
=>
{
if
(
params
[
'memberId'
]
&&
params
[
'memberRoleId'
])
{
fetchOrderApi
.
getOrderWorkFlow
(
params
).
then
(
data
=>
{
// 简单流程并使用电子合同 强行启用电子合同
if
(
data
[
"processEnum"
]
===
24
&&
data
[
"isElectronicContract"
])
{
ctx
.
setFieldState
(
"usingElectronicContracts"
,
state
=>
{
state
.
props
[
"x-component-props"
].
contract
=
{
contractTemplateId
:
data
[
'electronicContractId'
],
...
_data
,
}
state
.
visible
=
true
})
})
}
})
ctx
.
setFieldValue
(
"processEnum"
,
data
[
"processEnum"
])
// ctx.setFieldValue("usingElectronicContracts", data["isElectronicContract"] ? 1 : 0)
}
if
(
data
[
'electronicContractId'
])
{
fetchOrderApi
.
createContract
({
contractTemplateId
:
data
[
'electronicContractId'
],
signMemberId
:
params
[
'memberId'
]
}).
then
(
_data
=>
{
ctx
.
setFieldState
(
"usingElectronicContracts"
,
state
=>
{
state
.
props
[
"x-component-props"
].
contract
=
{
contractTemplateId
:
data
[
'electronicContractId'
],
...
_data
,
}
})
})
}
})
}
}
src/pages/transaction/purchaseOrder/orderCollect/model/usePaymentInfo.tsx
View file @
d0a6b161
...
...
@@ -3,8 +3,6 @@ import { PayInfoCell, EditableRow } from '../components/payInfoTableCell'
import
{
ISchemaFormActions
,
ISchemaFormAsyncActions
}
from
'@formily/antd'
import
{
useEffect
,
useState
,
useRef
,
useContext
}
from
'react'
import
{
PublicApi
}
from
'@/services/api'
import
{
ReadyAddOrderDetailContext
}
from
'../../context'
import
{
message
}
from
'antd'
export
const
usePaymentInfo
=
(
ctx
:
ISchemaFormActions
|
ISchemaFormAsyncActions
,
memberId
:
any
,
memberRoleId
:
any
,
orderProducts
:
any
):
any
=>
{
const
paywayData
=
useRef
<
any
>
({})
...
...
@@ -148,7 +146,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
if
(
options
.
filter
(
_item
=>
_item
.
payType
===
4
).
length
)
options
.
filter
(
_item
=>
_item
.
payType
===
4
)[
0
].
disabled
=
false
}
}
,
5
00
)
}
,
8
00
)
setTimeout
(()
=>
{
if
(
pros
.
filter
(
item
=>
item
.
deliveryType
===
1
).
length
!==
pros
.
length
)
{
...
...
@@ -161,7 +159,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
}
}
}
,
800
)
console
.
log
(
newColumns
,
'newColumns'
)
setColumns
(
newColumns
)
}
}
...
...
src/pages/transaction/transactionRules/components/RuleSetting.tsx
View file @
d0a6b161
This diff is collapsed.
Click to expand it.
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