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
project
jinfa-admin
Commits
e43d817b
Commit
e43d817b
authored
Oct 26, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
26ca46f9
695e32c5
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
457 additions
and
24 deletions
+457
-24
balancedRoute.ts
config/routes/balancedRoute.ts
+12
-0
image_icon.png
src/asserts/image_icon.png
+0
-0
menu.ts
src/locales/zh-CN/menu.ts
+4
-3
index.tsx
src/pages/comment/manage/detailed/index.tsx
+18
-18
index.tsx
src/pages/comment/manage/index.tsx
+1
-1
index.tsx
src/pages/comment/query/index.tsx
+1
-1
index.tsx
src/pages/platformSettlement/accountReceivable/index.tsx
+152
-0
info.tsx
src/pages/platformSettlement/accountReceivable/info.tsx
+115
-0
schema.tsx
src/pages/platformSettlement/accountReceivable/schema.tsx
+152
-0
index.tsx
src/pages/platformSettlement/components/Voucher/index.tsx
+1
-1
info.tsx
src/pages/platformSettlement/receipt/info.tsx
+1
-0
No files found.
config/routes/balancedRoute.ts
View file @
e43d817b
...
...
@@ -35,6 +35,18 @@ const router = {
component
:
'@/pages/platformSettlement/receipt/info'
,
hidePageHeader
:
true
,
hideInMenu
:
true
,
},
// 代收账款结算列表
{
path
:
'/balanced/accountReceivable'
,
name
:
'accountReceivableList'
,
component
:
'@/pages/platformSettlement/accountReceivable'
,
},
// 代收账款结算明细
{
path
:
'/balanced/accountReceivable/detail'
,
name
:
'accountReceivableDetail'
,
component
:
'@/pages/platformSettlement/accountReceivable/info'
,
}
]
}
...
...
src/asserts/image_icon.png
0 → 100644
View file @
e43d817b
792 Bytes
src/locales/zh-CN/menu.ts
View file @
e43d817b
...
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Date: 2020-08-04 15:05:52
* @LastEditors: Please set LastEditors
* @LastEditTime: 2020-10-22 1
5:46:18
* @LastEditTime: 2020-10-22 1
8:53:15
*/
import
utils
from
'@/utils'
import
menu
from
'../en-US/menu'
...
...
@@ -177,7 +177,8 @@ export default {
'menu.balanced.corporateAccount'
:
'对公账号配置'
,
'menu.balanced.receipt'
:
'发票管理'
,
'menu.balanced.receiptAdd'
:
'新建发票'
,
'menu.balanced.receiptDetail'
:
'发票详情'
'menu.balanced.receiptDetail'
:
'发票详情'
,
'menu.balanced.accountReceivableList'
:
'代收账款结算'
,
'menu.balanced.accountReceivableDetail'
:
'代收账款明细'
}
// export default utils.transformDataPre(data, 'menu')
src/pages/comment/manage/detailed/index.tsx
View file @
e43d817b
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-09-23 11:02:03
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-10-2
1 15:19:00
* @LastEditTime: 2020-10-2
6 09:52:13
* @Description:
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
...
@@ -31,28 +31,28 @@ import styles from './evaluate.less';
const
formActions
=
createFormActions
();
interface
OrderInfo
{
// 下单时间
created
:
string
;
// 订单号
orderNo
:
string
;
};
const
CommentManageDetailed
:
React
.
FC
=
()
=>
{
const
{
id
,
orderId
}
=
usePageStatus
();
const
[
orderInfo
,
setOrderInfo
]
=
useState
<
GetOrderPlatformOrderDetailsResponse
>
();
const
[
orderInfoLoading
,
setOrderInfoLoading
]
=
useState
(
false
);
const
[
orderInfo
,
setOrderInfo
]
=
useState
<
OrderInfo
>
();
const
[
commentInfo
,
setCommentInfo
]
=
useState
<
Unevaluated
[]
>
([]);
const
[
commentInfoLoading
,
setCommentInfoLoading
]
=
useState
(
false
);
// 获取订单详情
const
getOrderInfo
=
()
=>
{
if
(
!
orderId
||
orderId
===
'undefined'
)
{
const
getOrderInfo
=
(
data
)
=>
{
if
(
!
data
||
!
data
.
id
)
{
return
;
}
setOrderInfoLoading
(
true
);
PublicApi
.
getOrderPlatformOrderDetails
({
id
:
orderId
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setOrderInfo
(
res
.
data
);
}
}).
finally
(()
=>
{
setOrderInfoLoading
(
false
);
});
return
{
created
:
data
.
dealTime
,
orderNo
:
data
.
remark
,
};
};
// 获取评论详情
...
...
@@ -66,6 +66,7 @@ const CommentManageDetailed: React.FC = () => {
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setCommentInfo
(
normalizeUnevaluatedList
([
res
.
data
]));
setOrderInfo
(
getOrderInfo
(
res
.
data
));
}
}).
finally
(()
=>
{
setCommentInfoLoading
(
false
);
...
...
@@ -73,7 +74,6 @@ const CommentManageDetailed: React.FC = () => {
};
useEffect
(()
=>
{
getOrderInfo
();
getCommentInfo
();
},
[]);
...
...
@@ -100,7 +100,7 @@ const CommentManageDetailed: React.FC = () => {
);
return
(
<
Spin
spinning=
{
commentInfoLoading
||
orderInfoLoading
}
>
<
Spin
spinning=
{
commentInfoLoading
}
>
<
PageHeaderWrapper
title=
{
<>
...
...
@@ -123,7 +123,7 @@ const CommentManageDetailed: React.FC = () => {
padding
:
'0 32px'
,
}
}
>
<
Descriptions
.
Item
label=
"下单时间"
span=
{
2
}
>
{
orderInfo
?.
create
Time
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"下单时间"
span=
{
2
}
>
{
orderInfo
?.
create
d
}
</
Descriptions
.
Item
>
</
Descriptions
>
</
PageHeader
>
</>
...
...
src/pages/comment/manage/index.tsx
View file @
e43d817b
...
...
@@ -50,7 +50,7 @@ const CommentManage: React.FC = () => {
align
:
'center'
,
render
:
(
text
,
record
)
=>
(
<
EyePreview
url=
{
`/comment/manage/detail?
orderId=${record.orderId}&
id=${record.id}`
}
url=
{
`/comment/manage/detail?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
...
...
src/pages/comment/query/index.tsx
View file @
e43d817b
...
...
@@ -31,7 +31,7 @@ const CommentQuery = () => {
align
:
'center'
,
render
:
(
text
,
record
)
=>
(
<
EyePreview
url=
{
`/comment/query/detail`
}
url=
{
`/comment/query/detail
?memberId=${record.memberId}&roleId=${record.roleId}
`
}
>
{
text
}
</
EyePreview
>
...
...
src/pages/platformSettlement/accountReceivable/index.tsx
0 → 100644
View file @
e43d817b
/*
* @Author: Bill
* @Date: 2020-10-20 11:04:07
* @Description: 应付账款结算
*/
import
React
,
{
useRef
}
from
'react'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
Card
,
Button
,
Modal
,
DatePicker
,
Tag
,
Space
}
from
'antd'
;
import
NiceForm
from
'@/components/NiceForm'
;
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
{
schema
}
from
'./schema'
;
import
ModalContainer
from
'../components/ModalContainer'
;
import
ConfirmAccount
from
'../components/ConfirmAccount'
;
import
Voucher
from
'../components/Voucher'
;
import
UploadPayVoucher
from
'../components/UploadPayVoucher'
;
const
formActions
=
createFormActions
();
const
SettlementList
=
()
=>
{
const
ref
=
useRef
<
any
>
({})
const
fetchListData
=
async
(
params
)
=>
{
return
{
data
:
[{
id
:
1
}],
totalCount
:
1
}
}
const
columns
=
[
{
title
:
'结算单号'
,
dataIndex
:
'num'
},
{
title
:
'结算日期'
,
dataIndex
:
'num'
},
{
title
:
'结算方式'
,
dataIndex
:
'num'
},
{
title
:
'总单数'
,
dataIndex
:
'num'
},
{
title
:
'代收金额'
,
dataIndex
:
'num'
},
{
title
:
'佣金'
,
dataIndex
:
'num'
},
{
title
:
'结算金额'
,
dataIndex
:
'num'
},
{
title
:
'结算日期'
,
dataIndex
:
'num'
},
{
title
:
'支付方式'
,
dataIndex
:
'payMethod'
},
{
title
:
'结算状态'
,
dataIndex
:
'status'
,
render
:
(
text
,
record
)
=>
{
return
(
<
Tag
>
待对账
</
Tag
>
)
}
},
{
title
:
'操作'
,
render
:
(
text
,
record
)
=>
{
return
(
<>
<
ModalContainer
>
{
({
visible
,
show
,
cancel
})
=>
{
return
(
<>
<
Modal
width=
{
400
}
title=
"确认对账完成"
visible=
{
visible
}
onCancel=
{
cancel
}
onOk=
{
()
=>
handleConfirm
(
cancel
)
}
>
<
ConfirmAccount
/>
</
Modal
>
<
div
onClick=
{
show
}
>
确认对账完成
</
div
>
</>
)
}
}
</
ModalContainer
>
<
ModalContainer
>
{
({
visible
,
show
,
cancel
})
=>
{
return
(
<>
<
Modal
width=
{
548
}
title=
"查看付款凭证"
onCancel=
{
cancel
}
visible=
{
visible
}
footer=
{
null
}
>
<
Voucher
/>
</
Modal
>
<
div
onClick=
{
show
}
>
查看付款凭证
</
div
>
</>
)
}
}
</
ModalContainer
>
<
ModalContainer
>
{
({
visible
,
show
,
cancel
})
=>
{
return
(
<>
<
Modal
width=
{
548
}
title=
"上传付款凭证"
onCancel=
{
cancel
}
visible=
{
visible
}
footer=
{
(
<
Space
>
<
Button
>
取消
</
Button
>
<
Button
>
确认未到款
</
Button
>
<
Button
>
确认到款
</
Button
>
</
Space
>
)
}
>
<
UploadPayVoucher
/>
</
Modal
>
<
div
onClick=
{
show
}
>
上传付款凭证
</
div
>
</>
)
}
}
</
ModalContainer
>
</>
)
}
}
]
/**
* 确认对账
* @param cancel 关闭回调函数
*/
const
handleConfirm
=
(
cancel
)
=>
{
console
.
log
(
123
)
cancel
();
}
return
(
<
PageHeaderWrapper
>
<
Card
>
<
StandardTable
tableProps=
{
{
rowKey
:
'id'
,
}
}
columns=
{
columns
}
currentRef=
{
ref
}
fetchTableData=
{
(
params
:
any
)
=>
fetchListData
(
params
)
}
controlRender=
{
<
NiceForm
components=
{
{
DatePicker
}
}
actions=
{
formActions
}
expressionScope=
{
{}
}
effects=
{
(
$
,
actions
)
=>
{
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'megaLayout.name'
,
FORM_FILTER_PATH
);
// useAsyncInitSelect(
// ['innerStatus', 'outerStatus'],
// fetchSelectOptions,
// );
}
}
schema=
{
schema
}
onSubmit=
{
values
=>
ref
.
current
.
reload
(
values
)
}
/>
}
/>
</
Card
>
</
PageHeaderWrapper
>
)
}
export
default
SettlementList
src/pages/platformSettlement/accountReceivable/info.tsx
0 → 100644
View file @
e43d817b
/*
* @Author: Bill
* @Date: 2020-10-20 10:54:00
* @Description: 积分结算详情页
*/
import
React
,
{
useRef
}
from
'react'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
Card
,
PageHeader
,
Descriptions
,
Button
}
from
'antd'
;
import
{
history
}
from
'umi'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
NiceForm
from
'@/components/NiceForm'
;
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'
const
formActions
=
createFormActions
();
const
columns
=
[
{
title
:
'单据号'
,
dataIndex
:
'no'
},
{
title
:
'单据摘要'
,
dataIndex
:
'desc'
},
{
title
:
'单据类型'
,
dataIndex
:
'type'
},
{
title
:
'单据时间'
,
dataIndex
:
'time'
},
{
title
:
'总箱数'
,
dataIndex
:
'box'
},
{
title
:
'总重量'
,
dataIndex
:
'weight'
},
{
title
:
'总体积'
,
dataIndex
:
'volumn'
},
{
title
:
'接单金额'
,
dataIndex
:
'price'
},
{
title
:
'支付时间'
,
dataIndex
:
'payTime'
},
{
title
:
'结算金额'
,
dataIndex
:
'payPrice'
},
]
const
logisticsDetail
:
React
.
FC
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
fetchListData
=
async
(
params
)
=>
{
return
{}
}
return
(
<
PageHeaderWrapper
title=
{
<>
<
PageHeader
style=
{
{
padding
:
'0'
}
}
onBack=
{
()
=>
history
.
goBack
()
}
title=
{
<
AvatarWrap
info=
{
{
aloneTxt
:
'单'
,
name
:
"结算单号:"
}
}
extra=
{
(
<
span
style=
{
{
fontSize
:
12
,
fontWeight
:
'normal'
}
}
>
{
"TPTY12"
}
</
span
>
)
}
/>
}
>
<
Descriptions
column=
{
3
}
style=
{
{
padding
:
'0 32px'
,
}
}
>
<
Descriptions
.
Item
label=
"通知单摘要"
>
{
"进口头层黄牛皮荔枝纹"
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"供应会员:"
>
{
"广州白马皮具交易中心"
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"单据时间:"
>
{
"2020-09-09 12:58:25"
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"通知单来源:"
>
{
"订单加工"
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"外部状态:"
>
{
"以完成通知单"
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"内部状态:"
>
{
"审核通过"
}
</
Descriptions
.
Item
>
</
Descriptions
>
</
PageHeader
>
</>
}
>
<
Card
>
<
StandardTable
tableProps=
{
{
rowKey
:
'id'
,
}
}
columns=
{
columns
}
currentRef=
{
ref
}
fetchTableData=
{
(
params
:
any
)
=>
fetchListData
(
params
)
}
controlRender=
{
<
NiceForm
actions=
{
formActions
}
expressionScope=
{
{
exportBtn
:
(
<
div
>
<
Button
>
导出
</
Button
>
</
div
>
)
}
}
effects=
{
(
$
,
actions
)
=>
{
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'megaLayout.topLayout.search'
,
FORM_FILTER_PATH
);
// useAsyncInitSelect(
// ['innerStatus', 'outerStatus'],
// fetchSelectOptions,
// );
}
}
schema=
{
detailSchema
}
onSubmit=
{
values
=>
ref
.
current
.
reload
(
values
)
}
/>
}
/>
</
Card
>
</
PageHeaderWrapper
>
)
}
export
default
logisticsDetail
\ No newline at end of file
src/pages/platformSettlement/accountReceivable/schema.tsx
0 → 100644
View file @
e43d817b
/*
* @Author: Bill
* @Date: 2020-10-22 09:52:10
* @Description: 应收账款结算 schema集合
*/
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
ISchema
,
createFormActions
}
from
'@formily/antd'
;
/**
* 应收账款 index.tsx 列表页schema
*/
export
const
schema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
megaLayout
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
properties
:
{
name
:
{
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
'搜索'
,
align
:
'flex-left'
,
tip
:
'输入通知单号、通知单摘要进行搜索'
,
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
grid
:
true
,
full
:
true
,
autoRow
:
true
,
columns
:
6
,
},
properties
:
{
startTime
:
{
type
:
'string'
,
'x-component'
:
'DatePicker'
,
'x-component-props'
:
{
allowClear
:
true
}
},
endTime
:
{
type
:
'string'
,
'x-component'
:
'DatePicker'
,
'x-component-props'
:
{
allowClear
:
true
}
},
status
:
{
type
:
'string'
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'结算状态(全部)'
,
allowClear
:
true
,
},
},
// submit: {
// 'x-component': 'Submit',
// 'x-mega-props': {
// span: 1,
// },
// 'x-component-props': {
// children: '查询',
// },
// },
},
},
},
},
},
};
/**
* 应收账款管理--物流单结算明细详情, 生产通知单结算明细
*/
export
const
detailSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
megaLayout
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
properties
:
{
topLayout
:
{
type
:
'object'
,
'x-component'
:
'Mega-Layout'
,
'x-component-props'
:
{
grid
:
true
,
},
properties
:
{
ctl
:
{
type
:
'object'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
children
:
'{{exportBtn}}'
,
},
},
search
:
{
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
'搜索'
,
},
},
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'flex-layout'
,
'x-component-props'
:
{
colStyle
:
{
marginLeft
:
20
,
},
},
properties
:
{
orderTime
:
{
type
:
'string'
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'下单时间(全部)'
,
allowClear
:
true
,
},
},
payTime
:
{
type
:
'string'
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'支付时间(全部)'
,
allowClear
:
true
,
},
},
// submit: {
// 'x-component': 'Submit',
// 'x-mega-props': {
// span: 1,
// },
// 'x-component-props': {
// children: '查询',
// },
// },
},
},
},
},
},
};
\ No newline at end of file
src/pages/platformSettlement/components/Voucher/index.tsx
View file @
e43d817b
...
...
@@ -6,7 +6,7 @@
import
React
from
'react'
;
import
styles
from
'./index.less'
import
image_icon
from
'@/asse
ts/img
s/image_icon.png'
;
import
image_icon
from
'@/asse
rt
s/image_icon.png'
;
const
Voucher
=
()
=>
{
return
(
...
...
src/pages/platformSettlement/receipt/info.tsx
View file @
e43d817b
...
...
@@ -129,6 +129,7 @@ const Info: React.FC = () => {
const
handleSubmit
=
(
value
)
=>
{
console
.
log
(
value
);
const
serviceActions
=
isAdd
?
PublicApi
.
postSettleAccountsPlatformConfigAddPlatformInvoice
:
PublicApi
.
postSettleAccountsPlatformConfigUpdatePlatformInvoice
...
...
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