Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
shenshaokai
jinfa-admin
Commits
67f9fb61
Commit
67f9fb61
authored
Jan 21, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 结算佣金列,以及上传付款凭证bug
parent
4f4d700e
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
115 additions
and
43 deletions
+115
-43
add.png
src/asserts/add.png
+0
-0
subtraction.png
src/asserts/subtraction.png
+0
-0
index.ts
src/constants/index.ts
+1
-1
info.tsx
src/pages/platformSettlement/accountPayable/info.tsx
+65
-17
index.tsx
...ges/platformSettlement/components/StatusActions/index.tsx
+2
-1
index.tsx
src/pages/platformSettlement/components/Voucher/index.tsx
+15
-4
index.tsx
src/pages/platformSettlement/score/info/index.tsx
+14
-9
index.tsx
src/pages/productionNotice/query/index.tsx
+1
-1
schema.tsx
src/pages/productionNotice/query/schema.tsx
+17
-10
No files found.
src/asserts/add.png
0 → 100644
View file @
67f9fb61
414 Bytes
src/asserts/subtraction.png
0 → 100644
View file @
67f9fb61
339 Bytes
src/constants/index.ts
View file @
67f9fb61
...
...
@@ -125,7 +125,7 @@ export const STATUS_ENUM = [
]
// 1是阿里云oss服务器, 2是本地文件服务器
export
const
UPLOAD_TYPE
=
isDev
?
2
:
1
export
const
UPLOAD_TYPE
=
1
// 会员规则类型
export
const
VIP_RULE_TRANSACTION
=
1
;
// 交易
...
...
src/pages/platformSettlement/accountPayable/info.tsx
View file @
67f9fb61
...
...
@@ -14,24 +14,41 @@ import { FORM_FILTER_PATH } from '@/formSchema/const';
import
{
ISchema
,
createFormActions
}
from
'@formily/antd'
;
import
{
StandardTable
}
from
'god'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useAsyncInitSelect
}
from
'@/formSchema/effects/useAsyncInitSelect'
;
import
{
detailSchema
}
from
'./schema'
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
StatusTag
from
'../components/StatusTag'
;
import
{
timeRange
}
from
'@/utils/index'
;
import
moment
from
'moment'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
add
from
'@/asserts/add.png'
;
import
subtraction
from
'@/asserts/subtraction.png'
;
const
formActions
=
createFormActions
();
const
c
olumns
=
[
const
inintC
olumns
=
[
{
title
:
'单据号'
,
dataIndex
:
'orderNo'
},
{
title
:
'单据摘要'
,
dataIndex
:
'orderAbstract'
},
{
title
:
'单据类型'
,
dataIndex
:
'settlementOrderTypeName'
},
{
title
:
'单据时间'
,
dataIndex
:
'orderTime'
},
{
title
:
'订单类型'
,
dataIndex
:
'orderTypeName'
},
{
title
:
'单据总额'
,
dataIndex
:
'orderAmount'
},
{
title
:
'代收金额'
,
dataIndex
:
'collectAmount'
},
{
title
:
'单据总额'
,
dataIndex
:
'orderAmount'
,
render
:
(
text
)
=>
{
return
"¥"
+
text
;
}
},
{
title
:
'代收金额'
,
dataIndex
:
'collectAmount'
,
render
:
(
text
)
=>
{
return
(
<
div
style=
{
{
display
:
"flex"
,
flexDirection
:
"row"
,
alignItems
:
'center'
}
}
>
<
img
src=
{
text
>
0
?
add
:
subtraction
}
width=
{
16
}
height=
{
16
}
/>
<
span
style=
{
{
marginLeft
:
'8px'
}
}
>
{
text
}
</
span
>
</
div
>
)
}
},
{
title
:
'支付时间'
,
dataIndex
:
'payTime'
},
{
title
:
'佣金比率'
,
...
...
@@ -40,15 +57,37 @@ const columns = [
return
(
record
.
ratio
+
'%'
);
}
},
{
title
:
'扣减佣金'
,
dataIndex
:
'brokerage'
},
{
title
:
'本期结算金额'
,
dataIndex
:
'settlementAmount'
},
{
title
:
'扣减佣金'
,
dataIndex
:
'brokerage'
,
render
:
(
text
)
=>
{
return
(
<
div
style=
{
{
display
:
"flex"
,
flexDirection
:
"row"
,
alignItems
:
'center'
}
}
>
<
img
src=
{
text
>
0
?
add
:
subtraction
}
width=
{
16
}
height=
{
16
}
/>
<
span
style=
{
{
marginLeft
:
'8px'
}
}
>
{
text
}
</
span
>
</
div
>
)
}
},
{
title
:
'本期结算金额'
,
dataIndex
:
'settlementAmount'
,
render
:
(
text
)
=>
{
return
(
<
div
style=
{
{
display
:
"flex"
,
flexDirection
:
"row"
,
alignItems
:
'center'
}
}
>
<
img
src=
{
text
>
0
?
add
:
subtraction
}
width=
{
16
}
height=
{
16
}
/>
<
span
style=
{
{
marginLeft
:
'8px'
}
}
>
{
text
}
</
span
>
</
div
>
)
}
},
]
// 如果佣金设置有效则显示这两列
const
blackList
=
[
"brokerage"
,
"ratio"
];
const
logisticsDetail
:
React
.
FC
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
{
id
}
=
usePageStatus
();
const
[
columns
,
setColumns
]
=
useState
(
inintColumns
);
const
[
infoDetail
,
setInfoDetail
]
=
useState
<
any
>
();
const
fetchListData
=
async
(
params
)
=>
{
const
postData
=
{
...
...
@@ -90,6 +129,15 @@ const logisticsDetail: React.FC = () => {
ref
.
current
.
reload
({...
rest
,
payStartTime
,
payEndTime
,
orderStartTime
,
orderEndTime
});
}
useEffect
(()
=>
{
PublicApi
.
getSettleAccountsPlatformSettlementIsExistsBrokerage
()
.
then
(({
data
,
code
})
=>
{
if
(
code
===
1000
&&
!
data
)
{
setColumns
(
inintColumns
.
filter
((
item
)
=>
blackList
.
includes
(
item
.
dataIndex
)))
}
})
},
[])
return
(
<
PageHeaderWrapper
title=
{
...
...
@@ -101,10 +149,10 @@ const logisticsDetail: React.FC = () => {
<
AvatarWrap
info=
{
{
aloneTxt
:
'单'
,
name
:
"
结算单号:
"
name
:
""
}
}
extra=
{
(
<
span
style=
{
{
fontSize
:
1
2
,
fontWeight
:
'normal'
}
}
>
{
infoDetail
?.
settlementNo
}
</
span
>
<
span
style=
{
{
fontSize
:
1
6
,
fontWeight
:
'bold'
,
color
:
"#303133"
}
}
>
结算单号:
{
infoDetail
?.
settlementNo
}
</
span
>
)
}
/>
}
...
...
@@ -115,11 +163,11 @@ const logisticsDetail: React.FC = () => {
padding
:
'0 32px'
,
}
}
>
<
Descriptions
.
Item
label=
"结算日期
:
"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数
:
"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额
:
"
>
¥
{
infoDetail
?.
amount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式
:
"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算状态
:
"
>
<
Descriptions
.
Item
label=
"结算日期"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额"
>
¥
{
infoDetail
?.
amount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算状态"
>
<
StatusTag
text=
{
infoDetail
?.
statusName
}
/>
</
Descriptions
.
Item
>
</
Descriptions
>
...
...
src/pages/platformSettlement/components/StatusActions/index.tsx
View file @
67f9fb61
...
...
@@ -186,7 +186,7 @@ const UploadVoucher: React.FC<UploadVocherProps> = (props) => {
}
const
handleComfirm
=
(
params
)
=>
{
props
.
handleUpload
({
onCancel
:
params
.
c
ancel
,
id
:
params
.
id
,
fileList
:
params
.
fileList
})
props
.
handleUpload
({
onCancel
:
params
.
onC
ancel
,
id
:
params
.
id
,
fileList
:
params
.
fileList
})
}
return
(
...
...
@@ -196,6 +196,7 @@ const UploadVoucher: React.FC<UploadVocherProps> = (props) => {
return
(
<>
<
Modal
destroyOnClose
width=
{
548
}
title=
"上传付款凭证"
onCancel=
{
cancel
}
...
...
src/pages/platformSettlement/components/Voucher/index.tsx
View file @
67f9fb61
...
...
@@ -7,6 +7,9 @@
import
React
from
'react'
;
import
styles
from
'./index.less'
import
image_icon
from
'@/asserts/image_icon.png'
;
// import Icon from '@ant-design/icons';
import
{
DeleteOutlined
}
from
'@ant-design/icons'
;
interface
VoucherFileProps
{
name
:
string
,
...
...
@@ -14,7 +17,7 @@ interface VoucherFileProps {
}
interface
Iprops
{
files
:
VoucherFileProps
[]
onRemove
:
(
item
)
=>
void
onRemove
?:
null
|
((
item
)
=>
void
)
}
const
Voucher
:
React
.
FC
<
Iprops
>
=
(
props
)
=>
{
...
...
@@ -37,9 +40,17 @@ const Voucher: React.FC<Iprops> = (props) => {
<
div
className=
{
styles
.
text
}
>
<
a
href=
{
item
.
proveUrl
}
target=
{
"_blank"
}
>
{
item
.
name
}
</
a
>
</
div
>
<
div
className=
{
styles
.
view
}
>
<
a
onClick=
{
()
=>
handleRemove
(
item
)
}
>
删除
</
a
>
</
div
>
{
props
.
onRemove
&&
(
<
div
className=
{
styles
.
view
}
>
<
a
onClick=
{
()
=>
handleRemove
(
item
)
}
>
<
DeleteOutlined
/>
</
a
>
</
div
>
)
}
</
div
>
)
})
...
...
src/pages/platformSettlement/score/info/index.tsx
View file @
67f9fb61
...
...
@@ -40,7 +40,13 @@ const columns = [
return
(
record
.
ratio
+
'%'
);
}
},
{
title
:
'本期结算金额'
,
dataIndex
:
'settlementAmount'
},
{
title
:
'本期结算金额'
,
dataIndex
:
'settlementAmount'
,
render
:
(
text
,
record
)
=>
(
"¥"
+
record
.
ratio
)
},
]
...
...
@@ -93,7 +99,6 @@ const ScoreInfo: React.FC = () => {
return
(
<
PageHeaderWrapper
// onBack={() => history.goBack()}
title=
{
<>
<
PageHeader
...
...
@@ -103,10 +108,10 @@ const ScoreInfo: React.FC = () => {
<
AvatarWrap
info=
{
{
aloneTxt
:
'单'
,
name
:
"
结算单号:
"
name
:
""
}
}
extra=
{
(
<
span
style=
{
{
fontSize
:
1
2
,
fontWeight
:
'normal'
}
}
>
{
infoDetail
?.
settlementNo
}
</
span
>
<
span
style=
{
{
fontSize
:
1
6
,
fontWeight
:
'bold'
,
color
:
"#303133"
}
}
>
结算单号:
{
infoDetail
?.
settlementNo
}
</
span
>
)
}
/>
}
...
...
@@ -117,11 +122,11 @@ const ScoreInfo: React.FC = () => {
padding
:
'0 32px'
,
}
}
>
<
Descriptions
.
Item
label=
"结算日期
:
"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数
:
"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额
:
"
>
¥
{
infoDetail
?.
amount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式
:
"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"外部状态
:
"
>
<
Descriptions
.
Item
label=
"结算日期"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额"
>
¥
{
infoDetail
?.
amount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"外部状态"
>
<
StatusTag
text=
{
infoDetail
?.
statusName
}
/>
</
Descriptions
.
Item
>
</
Descriptions
>
...
...
src/pages/productionNotice/query/index.tsx
View file @
67f9fb61
...
...
@@ -70,7 +70,7 @@ const Query: React.FC<IProps> = () => {
let
searchData
=
{
...
rest
,
startTime
:
st
,
endT
t
ime
:
et
endTime
:
et
}
ref
.
current
.
reload
(
searchData
)
...
...
src/pages/productionNotice/query/schema.tsx
View file @
67f9fb61
...
...
@@ -17,7 +17,7 @@ export const commonTimeList = [
export
const
docTime
=
[{
label
:
'单据时间(全部)'
,
value
:
0
}].
concat
(
commonTimeList
);
/**
/**
* @author: Bill
* @description: 指派生产通知单查询页 schema - 生产通知单查询
*/
...
...
@@ -33,8 +33,8 @@ export const querySchema: ISchema = {
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
'搜索'
,
align
:
'flex-left'
,
tip
:
'输入通知单号进行搜索'
,
align
:
'flex-left'
,
tip
:
'输入通知单号进行搜索'
,
},
},
[
FORM_FILTER_PATH
]:
{
...
...
@@ -47,11 +47,18 @@ export const querySchema: ISchema = {
columns
:
6
,
},
properties
:
{
memberName
:
{
summary
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'通知单摘要'
,
allowClear
:
true
,
},
},
processName
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'加工企业名'
,
allowClear
:
true
,
placeholder
:
'加工企业名'
,
allowClear
:
true
,
},
},
docTime
:
{
...
...
@@ -59,8 +66,8 @@ export const querySchema: ISchema = {
default
:
0
,
enum
:
docTime
,
'x-component-props'
:
{
placeholder
:
'单据时间(全部)'
,
allowClear
:
true
,
placeholder
:
'单据时间(全部)'
,
allowClear
:
true
,
},
},
outerStatus
:
{
...
...
@@ -68,8 +75,8 @@ export const querySchema: ISchema = {
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'外部状态(全部)'
,
allowClear
:
true
,
placeholder
:
'外部状态(全部)'
,
allowClear
:
true
,
},
},
submit
:
{
...
...
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