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
a18d32d0
Commit
a18d32d0
authored
Dec 23, 2020
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改结算以及首页
parent
17db8a33
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
64 additions
and
11 deletions
+64
-11
BasicLayout.tsx
src/layouts/BasicLayout.tsx
+16
-3
index.tsx
src/pages/balance/accountsPayable/settlementList/index.tsx
+4
-0
index.tsx
...s/balance/accountsPayable/settlementList/schema/index.tsx
+5
-2
index.tsx
src/pages/balance/accountsReceivable/invoice/index.tsx
+1
-0
index.tsx
...pages/balance/accountsReceivable/settlementList/index.tsx
+4
-0
logisticsDetail.tsx
...nce/accountsReceivable/settlementList/logisticsDetail.tsx
+4
-0
productNoticeSettlementDetail.tsx
...ceivable/settlementList/productNoticeSettlementDetail.tsx
+6
-0
index.tsx
...alance/accountsReceivable/settlementList/schema/index.tsx
+5
-2
index.tsx
...es/balance/platformSettlement/accountReceivable/index.tsx
+4
-0
index.tsx
...nce/platformSettlement/accountReceivable/schema/index.tsx
+4
-2
index.tsx
src/pages/balance/platformSettlement/integral/index.tsx
+4
-0
index.tsx
...ages/balance/platformSettlement/integral/schema/index.tsx
+4
-2
index.tsx
src/pages/balance/settleRules/memberSettle/index.tsx
+3
-0
No files found.
src/layouts/BasicLayout.tsx
View file @
a18d32d0
...
...
@@ -15,6 +15,7 @@ import logo from '../../mockStatic/logo.png'
import
MenuSlider
from
'./components/MenuSlider'
import
{
getMatchMenu
}
from
'@umijs/route-utils'
;
import
{
useGlobal
}
from
'@/models/useGlobal'
;
import
{
MenuUnfoldOutlined
,
MenuFoldOutlined
}
from
'@ant-design/icons'
;
export
interface
BasicLayoutProps
extends
ProLayoutProps
{
breadcrumbNameMap
:
{
...
...
@@ -71,9 +72,13 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
const
[
collapsed
,
setCollapsed
]
=
useState
(
false
)
const
[
selectedKeys
,
setSelectedKeys
]
=
useState
<
string
[]
|
undefined
>
([]);
// 获取全局状态
const
[
globalState
,
globalDispatch
]
=
useGlobal
()
const
[
globalState
,
globalDispatch
]
=
useGlobal
();
const
isHome
=
location
.
pathname
===
'/memberCenter/home'
const
handleMenuCollapse
=
(
payload
:
boolean
):
void
=>
{
if
(
isHome
)
{
return
;
}
setCollapsed
(
payload
)
if
(
payload
)
{
setOpenKeys
([])
...
...
@@ -131,17 +136,24 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
},
[
currentRouter
,
collapsed
])
useLayoutEffect
(()
=>
{
if
(
location
.
pathname
===
'/memberCenter/home'
)
{
if
(
isHome
)
{
setCollapsed
(
true
)
}
else
{
setCollapsed
(
false
);
}
},
[
location
.
pathname
])
const
prolayoutStyle
=
isHome
?
{
minHeight
:
'100vh'
,
minWidth
:
'1280px'
}
:
{}
return
(
<
ProLayout
pageTitleRender=
{
()
=>
currentRouter
?
currentRouter
.
name
:
window
.
location
.
href
}
style=
{
{
minHeight
:
'100vh'
,
minWidth
:
"1500px"
}
}
style=
{
prolayoutStyle
}
logo=
{
logo
}
formatMessage=
{
formatMessage
}
menuHeaderRender=
{
(
logoDom
,
titleDom
)
=>
(
...
...
@@ -151,6 +163,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
</
Link
>
)
}
collapsed=
{
collapsed
}
collapsedButtonRender=
{
(
flag
)
=>
(
isHome
?
null
:
flag
?
<
MenuUnfoldOutlined
/>
:
<
MenuFoldOutlined
/>)
}
onCollapse=
{
handleMenuCollapse
}
disableContentMargin=
{
currentRouter
?.
noMargin
!==
undefined
}
breadcrumbRender=
{
(
routers
=
[])
=>
[
...
...
src/pages/balance/accountsPayable/settlementList/index.tsx
View file @
a18d32d0
...
...
@@ -159,6 +159,10 @@ const SettlementList = () => {
}
}
schema=
{
schema
}
onSubmit=
{
handleSearch
}
onReset=
{
()
=>
{
formActions
.
setFieldValue
(
'startTime'
,
null
);
formActions
.
setFieldValue
(
'endTime'
,
null
);
}
}
/>
}
/>
...
...
src/pages/balance/accountsPayable/settlementList/schema/index.tsx
View file @
a18d32d0
...
...
@@ -40,14 +40,17 @@ export const schema: ISchema = {
type
:
'string'
,
'x-component'
:
'DatePicker'
,
'x-component-props'
:
{
allowClear
:
true
allowClear
:
true
,
placeholder
:
"结算时间(开始时间)"
}
},
endTime
:
{
type
:
'string'
,
'x-component'
:
'DatePicker'
,
'x-component-props'
:
{
allowClear
:
true
allowClear
:
true
,
placeholder
:
"结算时间(结束时间)"
}
},
status
:
{
...
...
src/pages/balance/accountsReceivable/invoice/index.tsx
View file @
a18d32d0
...
...
@@ -183,6 +183,7 @@ const SettlementList = () => {
}
}
schema=
{
schema
}
onSubmit=
{
reload
}
/>
}
/>
...
...
src/pages/balance/accountsReceivable/settlementList/index.tsx
View file @
a18d32d0
...
...
@@ -170,6 +170,10 @@ const SettlementList = () => {
}
}
schema=
{
schema
}
onSubmit=
{
handleSearch
}
onReset=
{
()
=>
{
formActions
.
setFieldValue
(
'startTime'
,
null
);
formActions
.
setFieldValue
(
'endTime'
,
null
);
}
}
/>
}
/>
...
...
src/pages/balance/accountsReceivable/settlementList/logisticsDetail.tsx
View file @
a18d32d0
...
...
@@ -148,6 +148,10 @@ const logisticsDetail: React.FC = () => {
}
}
schema=
{
logisticsDetailSchema
}
onSubmit=
{
handleSearch
}
onReset=
{
()
=>
{
formActions
.
setFieldValue
(
'startTime'
,
null
);
formActions
.
setFieldValue
(
'endTime'
,
null
);
}
}
/>
}
/>
...
...
src/pages/balance/accountsReceivable/settlementList/productNoticeSettlementDetail.tsx
View file @
a18d32d0
...
...
@@ -152,6 +152,12 @@ const ProductNoticeSettlementDetail: React.FC = () => {
}
}
schema=
{
detailSchema
}
onSubmit=
{
handleSearch
}
onReset=
{
()
=>
{
formActions
.
setFieldValue
(
'startTime'
,
null
);
formActions
.
setFieldValue
(
'endTime'
,
null
);
formActions
.
setFieldValue
(
'receiveStartTime'
,
null
);
formActions
.
setFieldValue
(
'receiveEndTime'
,
null
);
}
}
/>
}
/>
...
...
src/pages/balance/accountsReceivable/settlementList/schema/index.tsx
View file @
a18d32d0
...
...
@@ -40,14 +40,17 @@ export const schema: ISchema = {
type
:
'string'
,
'x-component'
:
'DatePicker'
,
'x-component-props'
:
{
allowClear
:
true
allowClear
:
true
,
placeholder
:
'结算日期(开始时间)'
}
},
endTime
:
{
type
:
'string'
,
'x-component'
:
'DatePicker'
,
'x-component-props'
:
{
allowClear
:
true
allowClear
:
true
,
placeholder
:
'结算日期(开始时间)'
}
},
status
:
{
...
...
src/pages/balance/platformSettlement/accountReceivable/index.tsx
View file @
a18d32d0
...
...
@@ -167,6 +167,10 @@ const AccountReceivable = () => {
}
}
schema=
{
schema
}
onSubmit=
{
handleSearch
}
onReset=
{
()
=>
{
formActions
.
setFieldValue
(
'startTime'
,
null
);
formActions
.
setFieldValue
(
'endTime'
,
null
);
}
}
/>
}
/>
...
...
src/pages/balance/platformSettlement/accountReceivable/schema/index.tsx
View file @
a18d32d0
...
...
@@ -36,14 +36,16 @@ export const schema: ISchema = {
type
:
'string'
,
'x-component'
:
'DatePicker'
,
'x-component-props'
:
{
allowClear
:
true
allowClear
:
true
,
placeholder
:
'结算日期(开始时间)'
}
},
endTime
:
{
type
:
'string'
,
'x-component'
:
'DatePicker'
,
'x-component-props'
:
{
allowClear
:
true
allowClear
:
true
,
placeholder
:
'结算日期(结束时间)'
}
},
status
:
{
...
...
src/pages/balance/platformSettlement/integral/index.tsx
View file @
a18d32d0
...
...
@@ -168,6 +168,10 @@ const Integral: React.FC = () => {
}
}
schema=
{
schema
}
onSubmit=
{
handleSearch
}
onReset=
{
()
=>
{
formActions
.
setFieldValue
(
'startTime'
,
null
);
formActions
.
setFieldValue
(
'endTime'
,
null
);
}
}
/>
}
/>
...
...
src/pages/balance/platformSettlement/integral/schema/index.tsx
View file @
a18d32d0
...
...
@@ -41,14 +41,16 @@ export const schema: ISchema = {
type
:
'string'
,
'x-component'
:
'DatePicker'
,
'x-component-props'
:
{
allowClear
:
true
allowClear
:
true
,
placeholder
:
'结算日期(开始时间)'
}
},
endTime
:
{
type
:
'string'
,
'x-component'
:
'DatePicker'
,
'x-component-props'
:
{
allowClear
:
true
allowClear
:
true
,
placeholder
:
'结算日期(结束时间)'
}
},
status
:
{
...
...
src/pages/balance/settleRules/memberSettle/index.tsx
View file @
a18d32d0
...
...
@@ -73,6 +73,9 @@ const MemberSettle: React.FC<{}> = () => {
{
title
:
'操作'
,
render
:
(
text
,
record
)
=>
{
if
(
record
.
status
==
1
)
{
return
null
}
return
(
<
Space
>
<
Link
to=
{
`/memberCenter/balance/settleRules/memberSettleList/edit?id=${record.id}`
}
>
修改
</
Link
>
...
...
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