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
690056cf
Commit
690056cf
authored
Mar 22, 2022
by
前端-彭佳文
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2-0418-transferOrder-molei' into 'v2-220418'
送货单 收货单详情页面 See merge request GavinPeng/pro-platform!4
parents
15eab181
04bb879c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
283 additions
and
46 deletions
+283
-46
receivingNote.ts
config/routes/orderRoute/receivingNote.ts
+16
-14
index.tsx
src/components/AnchorPage/index.tsx
+1
-1
BaseInfo.tsx
src/components/BaseInfo/BaseInfo.tsx
+4
-4
index.ts
src/components/BaseInfo/index.ts
+6
-0
anchors.ts
src/pages/order/receivingNote/columns/anchors.ts
+51
-0
index.ts
src/pages/order/receivingNote/columns/index.ts
+1
-0
details.tsx
src/pages/order/receivingNote/deliveryNoteManage/details.tsx
+104
-21
details.tsx
src/pages/order/receivingNote/deliveryNoteQuery/details.tsx
+92
-4
tailwind.config.js
tailwind.config.js
+8
-2
No files found.
config/routes/orderRoute/receivingNote.ts
View file @
690056cf
...
@@ -9,31 +9,33 @@ const ReceivingNote = [
...
@@ -9,31 +9,33 @@ const ReceivingNote = [
routes
:
[
routes
:
[
{
{
/** 送货单查询*/
/** 送货单查询*/
path
:
'/memberCenter/order/receivingNote/deliveryNoteQuery'
,
path
:
'/memberCenter/order/receivingNote/deliveryNoteQuery'
,
name
:
'送货单查询'
,
name
:
'送货单查询'
,
component
:
'@/pages/order/receivingNote/deliveryNoteQuery'
component
:
'@/pages/order/receivingNote/deliveryNoteQuery'
},
},
{
{
/** 送货单详情*/
/** 送货单详情*/
path
:
'/memberCenter/order/receivingNote/deliveryNoteQuery/details'
,
path
:
'/memberCenter/order/receivingNote/deliveryNoteQuery/details'
,
name
:
'送货单详情'
,
name
:
'送货单详情'
,
component
:
'@/pages/order/receivingNote/deliveryNoteQuery/details'
,
component
:
'@/pages/order/receivingNote/deliveryNoteQuery/details'
,
hideInMenu
:
true
,
hideInMenu
:
true
,
noMargin
:
true
},
},
{
{
/** 收货单管理*/
/** 收货单管理*/
path
:
'/memberCenter/order/receivingNote/deliveryNoteManage'
,
path
:
'/memberCenter/order/receivingNote/deliveryNoteManage'
,
name
:
'收货单管理'
,
name
:
'收货单管理'
,
component
:
'@/pages/order/receivingNote/deliveryNoteManage'
component
:
'@/pages/order/receivingNote/deliveryNoteManage'
},
},
{
{
/** 收货单管理详情*/
/** 收货单管理详情*/
path
:
'/memberCenter/order/receivingNote/deliveryNoteManage/details'
,
path
:
'/memberCenter/order/receivingNote/deliveryNoteManage/details'
,
name
:
'收货单管理详情'
,
name
:
'收货单管理详情'
,
component
:
'@/pages/order/receivingNote/deliveryNoteManage/details'
,
component
:
'@/pages/order/receivingNote/deliveryNoteManage/details'
,
hideInMenu
:
true
,
hideInMenu
:
true
,
noMargin
:
true
},
},
]
]
}
}
...
...
src/components/AnchorPage/index.tsx
View file @
690056cf
...
@@ -21,7 +21,7 @@ export interface AnchorsItem {
...
@@ -21,7 +21,7 @@ export interface AnchorsItem {
/**
/**
* 名称
* 名称
*/
*/
name
:
React
.
ReactNode
,
name
:
React
.
ReactNode
|
string
,
}
}
interface
IProps
{
interface
IProps
{
...
...
src/components/BaseInfo/BaseInfo.tsx
View file @
690056cf
...
@@ -2,9 +2,9 @@ import { Card } from 'antd';
...
@@ -2,9 +2,9 @@ import { Card } from 'antd';
import
React
from
'react'
;
import
React
from
'react'
;
interface
BaseInfoPorps
{
interface
BaseInfoPorps
{
title
?:
string
title
?:
string
|
React
.
ReactNode
className
?:
string
className
?:
string
children
:
JSX
.
Element
[]
children
:
React
.
ReactNode
cols
?:
number
,
cols
?:
number
,
id
?:
string
id
?:
string
}
}
...
@@ -34,10 +34,10 @@ function BaseInfoItem({ label, children }: {
...
@@ -34,10 +34,10 @@ function BaseInfoItem({ label, children }: {
})
{
})
{
return
(
return
(
<
div
className=
'base_info_item flex text-lg'
>
<
div
className=
'base_info_item flex text-lg'
>
<
div
className=
'label flex-
grow-0 w-6
0 text-gray-400'
>
<
div
className=
'label flex-
4 flex-grow-0 w-10
0 text-gray-400'
>
{
label
}
{
label
}
</
div
>
</
div
>
<
div
className=
'value f
ont-semibold
'
>
<
div
className=
'value f
lex-auto
'
>
{
typeof
children
===
'string'
?
<
span
>
{
children
}
</
span
>
:
children
}
{
typeof
children
===
'string'
?
<
span
>
{
children
}
</
span
>
:
children
}
</
div
>
</
div
>
</
div
>
</
div
>
...
...
src/components/BaseInfo/index.ts
0 → 100644
View file @
690056cf
import
BaseInfo
from
"./BaseInfo"
;
export
{
BaseInfo
}
\ No newline at end of file
src/pages/order/receivingNote/columns/anchors.ts
0 → 100644
View file @
690056cf
import
{
AnchorsItem
}
from
"@/components/AnchorPage"
;
const
BaseInfo
:
AnchorsItem
=
{
key
:
'BaseInfo'
,
name
:
"基本信息"
}
const
BillsInfo
:
AnchorsItem
=
{
key
:
"BillsInfo"
,
name
:
"单据信息"
}
const
Distribution
:
AnchorsItem
=
{
key
:
"Distribution"
,
name
:
"单据信息"
}
const
DeliveryInfo
:
AnchorsItem
=
{
key
:
"DeliveryInfo"
,
name
:
"发货信息"
}
const
LogisticsInfo
:
AnchorsItem
=
{
key
:
"DeliveryInfo"
,
name
:
"物流信息单"
}
const
Material
:
AnchorsItem
=
{
key
:
"Material"
,
name
:
"送货物料"
}
const
DeliveryNoteQuery
:
AnchorsItem
[]
=
[
BaseInfo
,
Distribution
,
BillsInfo
,
DeliveryInfo
,
LogisticsInfo
,
Material
]
export
{
BaseInfo
,
BillsInfo
,
DeliveryInfo
,
LogisticsInfo
,
Material
,
Distribution
,
DeliveryNoteQuery
}
\ No newline at end of file
src/pages/order/receivingNote/columns/index.ts
0 → 100644
View file @
690056cf
export
*
from
'./anchors'
src/pages/order/receivingNote/deliveryNoteManage/details.tsx
View file @
690056cf
...
@@ -3,23 +3,106 @@
...
@@ -3,23 +3,106 @@
* @author: Gavin
* @author: Gavin
* @description:
* @description:
*/
*/
import
React
,
{
useState
}
from
'react'
import
React
,
{
useState
}
from
'react'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
AnchorPage
from
'@/components/AnchorPage'
import
{
history
}
from
'umi'
import
{
BaseInfo
as
ListInfo
}
from
'@/components/BaseInfo'
import
ReutrnEle
from
'@/components/ReturnEle'
import
{
BillsInfo
,
DeliveryInfo
,
DeliveryNoteQuery
,
Distribution
,
LogisticsInfo
,
Material
}
from
'../columns'
import
{
Tag
}
from
'antd'
;
const
DeliveryNoteManageDetails
:
React
.
FC
=
()
=>
{
const
[
details
,
setDetails
]
=
useState
<
any
>
({})
const
ListInfoItem
=
ListInfo
.
BaseInfoItem
;
return
(
const
DeliveryNoteManageDetails
:
React
.
FC
=
()
=>
{
<
PageHeaderWrapper
title=
{
details
?.
name
}
const
anchors
=
DeliveryNoteQuery
onBack=
{
()
=>
history
.
goBack
()
}
backIcon=
{
<
ReutrnEle
/>
}
return
(
>
<
AnchorPage
<
div
>
收货单 - 收货单管理详情
</
div
>
title=
"2014-07-01 进口头层黄牛皮荔枝纹送货单|FH2014070100001"
</
PageHeaderWrapper
>
anchors=
{
anchors
}
)
>
}
<
ListInfo
className=
'mt-15'
title=
{
BillsInfo
.
name
}
id=
{
BillsInfo
.
key
}
>
export
default
DeliveryNoteManageDetails
<
ListInfoItem
label=
'送货单'
>
\ No newline at end of file
SH2014071000001
</
ListInfoItem
>
<
ListInfoItem
label=
'供应会员'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'送货单摘要'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'备注'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'外部状态'
>
<
Tag
color=
"green"
>
已提交
</
Tag
>
</
ListInfoItem
>
</
ListInfo
>
<
ListInfo
className=
'mt-15'
title=
{
Distribution
.
name
}
id=
{
Distribution
.
key
}
>
<
ListInfoItem
label=
'送货日期'
>
SH2014071000001
</
ListInfoItem
>
<
ListInfoItem
label=
'送货人'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'送货时间'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'送货电话'
>
广州白马
</
ListInfoItem
>
</
ListInfo
>
<
ListInfo
className=
'mt-15'
title=
{
DeliveryInfo
.
name
}
id=
{
DeliveryInfo
.
key
}
>
<
ListInfoItem
label=
'送货日期'
>
SH2014071000001
</
ListInfoItem
>
<
ListInfoItem
label=
'送货人'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'送货时间'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'送货电话'
>
广州白马
</
ListInfoItem
>
</
ListInfo
>
<
ListInfo
className=
'mt-15'
title=
{
LogisticsInfo
.
name
}
id=
{
LogisticsInfo
.
key
}
>
<
ListInfoItem
label=
'物流方式'
>
SH2014071000001
</
ListInfoItem
>
<
ListInfoItem
label=
'物流单号'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'物流公司'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'车牌号码'
>
广州白马
</
ListInfoItem
>
</
ListInfo
>
<
ListInfo
className=
'mt-15'
title=
{
Material
.
name
}
id=
{
Material
.
key
}
>
</
ListInfo
>
</
AnchorPage
>
)
}
export
default
DeliveryNoteManageDetails
\ No newline at end of file
src/pages/order/receivingNote/deliveryNoteQuery/details.tsx
View file @
690056cf
...
@@ -4,16 +4,104 @@
...
@@ -4,16 +4,104 @@
* @description:
* @description:
*/
*/
import
React
,
{
useState
}
from
'react'
import
React
,
{
useState
}
from
'react'
import
{
PageHeader
}
from
'@/components/PageHeader'
import
AnchorPage
from
'@/components/AnchorPage'
import
{
BaseInfo
as
ListInfo
}
from
'@/components/BaseInfo'
import
{
BillsInfo
,
DeliveryInfo
,
DeliveryNoteQuery
,
LogisticsInfo
,
Material
,
Distribution
}
from
'../columns'
import
{
Tag
}
from
'antd'
const
ListInfoItem
=
ListInfo
.
BaseInfoItem
;
const
DeliveryNoteDetails
:
React
.
FC
=
()
=>
{
const
DeliveryNoteDetails
:
React
.
FC
=
()
=>
{
const
anchors
=
DeliveryNoteQuery
return
(
return
(
<
PageHeader
<
AnchorPage
title=
"2014-07-01 进口头层黄牛皮荔枝纹送货单|FH2014070100001"
title=
"2014-07-01 进口头层黄牛皮荔枝纹送货单|FH2014070100001"
anchors=
{
anchors
}
>
>
<
div
>
收货单 - 送货单详情
</
div
>
</
PageHeader
>
<
ListInfo
className=
'mt-15'
title=
{
BillsInfo
.
name
}
id=
{
BillsInfo
.
key
}
>
<
ListInfoItem
label=
'送货单'
>
SH2014071000001
</
ListInfoItem
>
<
ListInfoItem
label=
'供应会员'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'送货单摘要'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'备注'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'外部状态'
>
<
Tag
color=
"green"
>
已提交
</
Tag
>
</
ListInfoItem
>
</
ListInfo
>
<
ListInfo
className=
'mt-15'
title=
{
Distribution
.
name
}
id=
{
Distribution
.
key
}
>
<
ListInfoItem
label=
'送货日期'
>
SH2014071000001
</
ListInfoItem
>
<
ListInfoItem
label=
'送货人'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'送货时间'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'送货电话'
>
广州白马
</
ListInfoItem
>
</
ListInfo
>
<
ListInfo
className=
'mt-15'
title=
{
DeliveryInfo
.
name
}
id=
{
DeliveryInfo
.
key
}
>
<
ListInfoItem
label=
'送货日期'
>
SH2014071000001
</
ListInfoItem
>
<
ListInfoItem
label=
'送货人'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'送货时间'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'送货电话'
>
广州白马
</
ListInfoItem
>
</
ListInfo
>
<
ListInfo
className=
'mt-15'
title=
{
LogisticsInfo
.
name
}
id=
{
LogisticsInfo
.
key
}
>
<
ListInfoItem
label=
'物流方式'
>
SH2014071000001
</
ListInfoItem
>
<
ListInfoItem
label=
'物流单号'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'物流公司'
>
广州白马
</
ListInfoItem
>
<
ListInfoItem
label=
'车牌号码'
>
广州白马
</
ListInfoItem
>
</
ListInfo
>
<
ListInfo
className=
'mt-15'
title=
{
Material
.
name
}
id=
{
Material
.
key
}
>
</
ListInfo
>
</
AnchorPage
>
)
)
}
}
...
...
tailwind.config.js
View file @
690056cf
...
@@ -66,6 +66,12 @@ module.exports = {
...
@@ -66,6 +66,12 @@ module.exports = {
10
:
'40px'
,
10
:
'40px'
,
11
:
'44px'
,
11
:
'44px'
,
12
:
'48px'
,
12
:
'48px'
,
13
:
'54px'
,
14
:
'60px'
,
15
:
'72px'
,
16
:
'84px'
,
17
:
'96px'
,
100
:
'100px'
},
},
blur
:
{
blur
:
{
0
:
'0'
,
0
:
'0'
,
...
@@ -126,8 +132,8 @@ module.exports = {
...
@@ -126,8 +132,8 @@ module.exports = {
xs
:
[
'10px'
,
{
lineHeight
:
'12px'
}],
xs
:
[
'10px'
,
{
lineHeight
:
'12px'
}],
sm
:
[
'12px'
,
{
lineHeight
:
'14px'
}],
sm
:
[
'12px'
,
{
lineHeight
:
'14px'
}],
base
:
[
'14px'
,
{
lineHeight
:
'16px'
}],
base
:
[
'14px'
,
{
lineHeight
:
'16px'
}],
lg
:
[
'1
6px'
,
{
lineHeight
:
'18
px'
}],
lg
:
[
'1
4px'
,
{
lineHeight
:
'16
px'
}],
xl
:
[
'1
8px'
,
{
lineHeight
:
'20
px'
}],
xl
:
[
'1
4px'
,
{
lineHeight
:
'16
px'
}],
'2xl'
:
[
'20px'
,
{
lineHeight
:
'22px'
}],
'2xl'
:
[
'20px'
,
{
lineHeight
:
'22px'
}],
'3xl'
:
[
'30px'
,
{
lineHeight
:
'30px'
}],
'3xl'
:
[
'30px'
,
{
lineHeight
:
'30px'
}],
'4xl'
:
[
'40px'
,
{
lineHeight
:
'40px'
}],
'4xl'
:
[
'40px'
,
{
lineHeight
:
'40px'
}],
...
...
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