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
52187b79
Commit
52187b79
authored
Aug 01, 2020
by
LeeJiancong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接物流单详情
parent
748a7e58
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
230 additions
and
202 deletions
+230
-202
orderSearchDetail.tsx
src/pages/logistics/components/orderSearchDetail.tsx
+145
-70
orderSearchList.tsx
src/pages/logistics/components/orderSearchList.tsx
+9
-44
toOrderComfirmList.tsx
src/pages/logistics/logisticsResult/toOrderComfirmList.tsx
+6
-44
toOrderSumitList.tsx
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
+6
-44
statusList.ts
src/pages/logistics/statusList.ts
+64
-0
No files found.
src/pages/logistics/components/orderSearchDetail.tsx
View file @
52187b79
import
React
,
{
Component
,
useEffect
,
useState
,
ReactNode
,
useRef
}
from
'react'
;
import
React
,
{
Component
,
useEffect
,
useState
,
ReactNode
,
useRef
}
from
'react'
;
import
{
Row
,
Col
,
Modal
,
Tooltip
,
Input
,
Select
,
Button
,
Popconfirm
,
Card
,
Tag
,
Badge
,
Steps
,
}
from
'antd'
import
{
Row
,
Col
,
Modal
,
Table
,
Tooltip
,
Input
,
Select
,
Button
,
Popconfirm
,
Card
,
Tag
,
Badge
,
Steps
,
}
from
'antd'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
EyeOutlined
,
ClockCircleOutlined
,
UpOutlined
,
DownOutlined
,
StopOutlined
,
CheckSquareOutlined
}
from
'@ant-design/icons'
import
{
EyeOutlined
,
ClockCircleOutlined
,
UpOutlined
,
DownOutlined
,
StopOutlined
,
CheckSquareOutlined
}
from
'@ant-design/icons'
import
{
StandardTable
}
from
'god'
import
{
StandardTable
}
from
'god'
import
{
ColumnType
}
from
'antd/lib/table/interface'
import
{
ColumnType
}
from
'antd/lib/table/interface'
import
ConfirmModal
from
'./confirmModal'
import
ConfirmModal
from
'./confirmModal'
import
{
history
}
from
'umi'
import
{
history
}
from
'umi'
import
{
PublicApi
}
from
'@/services/api'
import
moment
from
'moment'
import
style
from
'./index.less'
import
style
from
'./index.less'
import
statuStyle
from
'../colorTag'
const
{
Step
}
=
Steps
const
{
Step
}
=
Steps
const
data
=
[
const
data
=
[
{
{
...
@@ -19,11 +22,44 @@ const data = [
...
@@ -19,11 +22,44 @@ const data = [
status
:
2
,
status
:
2
,
},
},
];
];
interface
dataInfoType
{
status
:
any
;
digest
?:
any
;
logisticsOrderNo
:
string
;
companyName
:
string
;
invoicesTime
:
any
,
detailList
:
Array
<
any
>
,
logList
:
Array
<
any
>
,
totalCarton
:
number
,
totalVolume
:
number
,
totalWeight
:
number
,
freightPrice
:
number
,
settlementWay
:
string
}
const
detailInfo
:
React
.
FC
<
{}
>
=
()
=>
{
const
detailInfo
:
React
.
FC
<
{}
>
=
()
=>
{
const
ref
=
useRef
({})
const
ref
=
useRef
({})
let
[
isextraOption
,
setIsextraOption
]
=
useState
(
false
)
let
[
isextraOption
,
setIsextraOption
]
=
useState
(
false
)
let
[
dataInfo
,
setdataInfo
]
=
useState
<
dataInfoType
>
({
status
:
''
,
digest
:
''
,
logisticsOrderNo
:
''
,
companyName
:
''
,
invoicesTime
:
''
,
detailList
:[],
logList
:[],
totalCarton
:
0
,
totalVolume
:
0
,
totalWeight
:
0
,
freightPrice
:
0
,
settlementWay
:
''
})
const
[
id
,
setid
]
=
useState
(
''
)
let
[
visible
,
setvisible
]
=
useState
(
false
)
let
[
visible
,
setvisible
]
=
useState
(
false
)
const
[
pagination
,
setPagination
]
=
useState
({
current
:
1
,
pageSize
:
10
})
const
[
detailData
,
setDetailData
]
=
useState
<
any
>
({
const
[
detailData
,
setDetailData
]
=
useState
<
any
>
({
step
:
{
step
:
{
current
:
0
,
current
:
0
,
...
@@ -48,15 +84,15 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -48,15 +84,15 @@ const detailInfo: React.FC<{}> = () => {
base
:
{
base
:
{
title
:
'基本信息'
,
title
:
'基本信息'
,
leftElem
:
[
leftElem
:
[
{
title
:
'对应发货单号:'
,
key
:
'
'
},
{
title
:
'对应发货单号:'
,
key
:
'
shipmentOrderNo'
,
value
:
dataInfo
.
shipmentOrderNo
},
{
title
:
'对应订单号/售后单:'
,
key
:
''
}
{
title
:
'对应订单号/售后单:'
,
key
:
''
,
value
:
dataInfo
.
invoicesNo
}
],
],
centerElem
:
[
centerElem
:
[
{
title
:
'收货方:'
,
key
:
''
},
{
title
:
'收货方:'
,
key
:
''
,
value
:
dataInfo
.
receiverName
},
{
title
:
'收货地址:'
,
key
:
''
}
{
title
:
'收货地址:'
,
key
:
''
,
value
:
dataInfo
.
receiverFullAddress
}
],
],
rightElem
:
[
rightElem
:
[
{
title
:
'发货地址:'
,
key
:
''
}
{
title
:
'发货地址:'
,
key
:
''
,
value
:
dataInfo
.
shipperFullAddress
}
],
],
elem
:
[
elem
:
[
...
@@ -65,80 +101,80 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -65,80 +101,80 @@ const detailInfo: React.FC<{}> = () => {
freight
:
{
freight
:
{
title
:
'运费'
,
title
:
'运费'
,
leftElem
:
[
leftElem
:
[
{
title
:
'运费:'
,
key
:
'freight'
},
{
title
:
'运费:'
,
key
:
'freight'
,
value
:
dataInfo
.
freightPrice
},
{
title
:
'结算方式:'
,
key
:
''
}
{
title
:
'结算方式:'
,
key
:
''
,
value
:
dataInfo
.
settlementWay
}
]
]
}
}
}
}
const
columns1
:
ColumnType
<
any
>
[]
=
[
const
columns1
:
ColumnType
<
any
>
[]
=
[
{
{
title
:
'ID'
,
title
:
'ID'
,
dataIndex
:
'
i
d'
,
dataIndex
:
'
productI
d'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
i
d'
,
key
:
'
productI
d'
,
},
},
{
{
title
:
'商品名称'
,
title
:
'商品名称'
,
dataIndex
:
'
rol
e'
,
dataIndex
:
'
productNam
e'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
rol
e'
,
key
:
'
productNam
e'
,
width
:
240
width
:
240
},
},
{
{
title
:
'品类'
,
title
:
'品类'
,
dataIndex
:
'
role2
'
,
dataIndex
:
'
categoryName
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
role3
'
,
key
:
'
categoryName
'
,
},
},
{
{
title
:
'品牌'
,
title
:
'品牌'
,
dataIndex
:
'
role1
'
,
dataIndex
:
'
brandName
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
role2
'
,
key
:
'
brandName
'
,
},
},
{
{
title
:
'单位'
,
title
:
'单位'
,
dataIndex
:
'
role3
'
,
dataIndex
:
'
unitName
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
role3
'
,
key
:
'
unitName
'
,
},
},
{
{
title
:
'数量'
,
title
:
'数量'
,
dataIndex
:
'
role3
'
,
dataIndex
:
'
amount
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
role3
'
,
key
:
'
amount
'
,
},
},
{
{
title
:
'箱数'
,
title
:
'箱数'
,
dataIndex
:
'
role3
'
,
dataIndex
:
'
carton
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
role3
'
,
key
:
'
carton
'
,
},
},
{
{
title
:
'重量 (KG)'
,
title
:
'重量 (KG)'
,
dataIndex
:
'
role3
'
,
dataIndex
:
'
weight
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
role3
'
,
key
:
'
weight
'
,
},
},
{
{
title
:
'体积 (M3)'
,
title
:
'体积 (M3)'
,
dataIndex
:
'
role3
'
,
dataIndex
:
'
volume
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
role3
'
,
key
:
'
volume
'
,
}
}
];
];
const
columns
:
ColumnType
<
any
>
[]
=
[
const
columns
:
ColumnType
<
any
>
[]
=
[
{
{
title
:
'序号'
,
title
:
'序号'
,
dataIndex
:
'
i
d'
,
dataIndex
:
'
operatorRoleI
d'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
i
d'
,
key
:
'
operatorRoleI
d'
,
},
},
{
{
title
:
'操作角色'
,
title
:
'操作角色'
,
dataIndex
:
'
rol
e'
,
dataIndex
:
'
operatorRoleNam
e'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
rol
e'
,
key
:
'
operatorRoleNam
e'
,
},
},
{
{
title
:
'状态'
,
title
:
'状态'
,
...
@@ -159,23 +195,65 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -159,23 +195,65 @@ const detailInfo: React.FC<{}> = () => {
},
},
{
{
title
:
'操作时间'
,
title
:
'操作时间'
,
dataIndex
:
'opTime'
,
dataIndex
:
'op
erate
Time'
,
align
:
'center'
,
align
:
'center'
,
key
:
'opTime'
,
key
:
'operateTime'
,
},
render
:(
text
:
any
,
record
:
any
)
=>
<>
{
moment
(
text
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
</>
},
{
{
title
:
'审核意见'
,
title
:
'审核意见'
,
dataIndex
:
'
suggest
'
,
dataIndex
:
'
remark
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
suggest
'
,
key
:
'
remark
'
,
width
:
300
width
:
300
},
},
];
];
//在这做逻辑判断 判断路由 是由哪个页面进来的
//在这做逻辑判断 判断路由 是由哪个页面进来的
useEffect
(()
=>
{
useEffect
(()
=>
{
let
pathname
=
history
.
location
.
pathname
let
pathname
=
history
.
location
.
pathname
if
(
pathname
===
'/memberCenter/logisticsAbility/logisticsResult/toOrderComfirmDeatil'
){
const
id
=
history
.
location
.
query
.
id
setid
(
id
)
if
(
pathname
===
'/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitDeatil'
)
{
PublicApi
.
getLogisticsOrderSubmitGet
({
id
:
id
}).
then
(
res
=>
{
setdataInfo
(
res
.
data
)
let
current
=
0
if
(
res
.
data
.
status
<=
2
){
current
=
0
}
else
if
(
res
.
data
.
status
==
3
||
res
.
data
.
status
==
4
){
current
=
1
}
setDetailData
({...
detailData
,
'step.current'
:
current
})
})
}
if
(
pathname
===
'/memberCenter/logisticsAbility/logisticsResult/orderResultDeatil'
)
{
PublicApi
.
getLogisticsOrderConfirmGet
({
id
:
id
}).
then
(
res
=>
{
setdataInfo
(
res
.
data
)
let
current
=
0
if
(
res
.
data
.
status
<=
2
){
current
=
0
}
else
if
(
res
.
data
.
status
==
3
||
res
.
data
.
status
==
4
){
current
=
1
}
setDetailData
({...
detailData
,
'step.current'
:
current
})
})
}
//待确认物流单
if
(
pathname
===
'/memberCenter/logisticsAbility/logisticsResult/toOrderComfirmDeatil'
)
{
setIsextraOption
(
true
)
setIsextraOption
(
true
)
PublicApi
.
getLogisticsOrderWaitConfirmGet
({
id
:
id
}).
then
(
res
=>
{
setdataInfo
(
res
.
data
)
let
current
=
0
if
(
res
.
data
.
status
<=
2
){
current
=
0
}
else
if
(
res
.
data
.
status
==
3
||
res
.
data
.
status
==
4
){
current
=
1
}
setDetailData
({...
detailData
,
'step.current'
:
current
})
})
}
}
return
()
=>
{
return
()
=>
{
...
@@ -188,11 +266,12 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -188,11 +266,12 @@ const detailInfo: React.FC<{}> = () => {
resolve
({
resolve
({
code
:
200
,
code
:
200
,
message
:
''
,
message
:
''
,
data
:
queryResult
?
[
queryResult
]
:
data
,
data
:
dataInfo
.
detailList
//dataInfo.logList
});
});
},
1000
);
},
1000
);
});
});
};
};
return
(
return
(
<
PageHeaderWrapper
<
PageHeaderWrapper
...
@@ -202,8 +281,8 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -202,8 +281,8 @@ const detailInfo: React.FC<{}> = () => {
<
div
className=
{
style
[
'headerTop'
]
}
>
<
div
className=
{
style
[
'headerTop'
]
}
>
<
div
className=
{
style
[
'headerTop-prefix'
]
}
>
单
</
div
>
<
div
className=
{
style
[
'headerTop-prefix'
]
}
>
单
</
div
>
<
div
className=
{
style
[
'headerTop-name'
]
}
>
<
div
className=
{
style
[
'headerTop-name'
]
}
>
物流单号:
WL0954548
物流单号:
{
dataInfo
.
logisticsOrderNo
}
</
div
>
</
div
>
<
div
className=
{
style
[
`levelIcon${'1'}`
]
}
></
div
>
<
div
className=
{
style
[
`levelIcon${'1'}`
]
}
></
div
>
</
div
>
</
div
>
</>
</>
...
@@ -226,22 +305,27 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -226,22 +305,27 @@ const detailInfo: React.FC<{}> = () => {
<
div
className=
{
style
[
'headerMain-left'
]
}
>
<
div
className=
{
style
[
'headerMain-left'
]
}
>
<
div
className=
{
style
[
'headerMain-left-option'
]
}
>
<
div
className=
{
style
[
'headerMain-left-option'
]
}
>
<
div
>
单据摘要:
</
div
>
<
div
>
单据摘要:
</
div
>
<
div
>
xxxx
</
div
>
<
div
>
{
dataInfo
.
digest
}
</
div
>
</
div
>
</
div
>
<
div
className=
{
style
[
'headerMain-left-option'
]
}
>
<
div
className=
{
style
[
'headerMain-left-option'
]
}
>
<
div
>
物流服务商:
</
div
>
<
div
>
物流服务商:
</
div
>
<
div
>
xxx
</
div
>
<
div
>
{
dataInfo
.
companyName
}
</
div
>
</
div
>
</
div
>
<
div
className=
{
style
[
'headerMain-left-option'
]
}
>
<
div
className=
{
style
[
'headerMain-left-option'
]
}
>
<
div
>
单据时间:
</
div
>
<
div
>
单据时间:
</
div
>
<
div
>
<
div
>
<
Tag
color=
"green"
>
2020-09-09 12:58:25
</
Tag
>
<
Tag
color=
"green"
>
{
moment
(
dataInfo
.
invoicesTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
</
Tag
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
{
style
[
'headerMain-left-option'
]
}
>
<
div
className=
{
style
[
'headerMain-left-option'
]
}
>
<
div
>
外部状态:
</
div
>
<
div
>
外部状态:
</
div
>
<
div
>
<
div
>
<
Tag
color=
"gold"
>
待审核
</
Tag
>
{
dataInfo
.
status
==
1
?<><
span
style=
{
statuStyle
.
default
}
>
待提交
</
span
></>:
dataInfo
.
status
==
2
?<><
span
style=
{
statuStyle
.
confirm
}
>
待确认
</
span
></>:
dataInfo
.
status
==
3
?<><
span
style=
{
statuStyle
.
success
}
>
接受物流单
</
span
></>:
<><
span
style=
{
statuStyle
.
warn
}
>
不接受物流单
</
span
></>
}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -283,7 +367,9 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -283,7 +367,9 @@ const detailInfo: React.FC<{}> = () => {
<
div
className=
{
style
[
'cols-main-options'
]
}
>
<
div
className=
{
style
[
'cols-main-options'
]
}
>
{
item
.
title
}
{
item
.
title
}
</
div
>
</
div
>
<
div
className=
{
style
[
'cols-main-options'
]
}
>
张三
</
div
>
<
div
className=
{
style
[
'cols-main-options'
]
}
>
<
Button
type=
'link'
>
{
item
.
value
}
</
Button
>
</
div
>
</
div
>
</
div
>
);
);
},
},
...
@@ -297,7 +383,7 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -297,7 +383,7 @@ const detailInfo: React.FC<{}> = () => {
<
div
className=
{
style
[
'cols-main-options'
]
}
>
<
div
className=
{
style
[
'cols-main-options'
]
}
>
{
item
.
title
}
{
item
.
title
}
</
div
>
</
div
>
<
div
className=
{
style
[
'cols-main-options'
]
}
>
张三
</
div
>
<
div
className=
{
style
[
'cols-main-options'
]
}
>
{
item
.
value
}
</
div
>
</
div
>
</
div
>
);
);
...
@@ -312,7 +398,7 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -312,7 +398,7 @@ const detailInfo: React.FC<{}> = () => {
<
div
className=
{
style
[
'cols-main-options'
]
}
>
<
div
className=
{
style
[
'cols-main-options'
]
}
>
{
item
.
title
}
{
item
.
title
}
</
div
>
</
div
>
<
div
className=
{
style
[
'cols-main-options'
]
}
>
张三
</
div
>
<
div
className=
{
style
[
'cols-main-options'
]
}
>
{
item
.
value
}
</
div
>
</
div
>
</
div
>
);
);
...
@@ -340,28 +426,21 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -340,28 +426,21 @@ const detailInfo: React.FC<{}> = () => {
<
div
className=
{
style
[
'mainCol-title'
]
}
>
<
div
className=
{
style
[
'mainCol-title'
]
}
>
物流单明细
物流单明细
</
div
>
</
div
>
<
StandardTable
<
Table
dataSource=
{
dataInfo
.
detailList
}
columns=
{
columns1
}
pagination=
{
false
}
/>
tableProps=
{
{
pagination
:
false
,
}
}
columns=
{
columns1
}
currentRef=
{
ref
}
fetchTableData=
{
(
params
:
any
)
=>
fetchData
(
params
)
}
/>
<
Row
style=
{
{
marginTop
:
'26px'
}
}
>
<
Row
style=
{
{
marginTop
:
'26px'
}
}
>
<
Col
span=
{
9
}
push=
{
15
}
>
<
Col
span=
{
9
}
push=
{
15
}
>
<
Row
align=
'middle'
justify=
'center'
gutter=
{
[
16
,
16
]
}
>
<
Row
align=
'middle'
justify=
'center'
gutter=
{
[
16
,
16
]
}
>
<
Col
span=
{
8
}
>
<
Col
span=
{
8
}
>
<
div
>
总箱数(箱)
</
div
>
<
div
>
总箱数(箱)
</
div
>
<
div
className=
{
style
.
count
}
>
700
</
div
>
<
div
className=
{
style
.
count
}
>
{
dataInfo
.
totalCarton
}
</
div
>
</
Col
>
</
Col
>
<
Col
span=
{
8
}
>
<
Col
span=
{
8
}
>
<
div
>
总重量(KG)
</
div
>
<
div
>
总重量(KG)
</
div
>
<
div
className=
{
style
.
count
}
>
700
</
div
>
<
div
className=
{
style
.
count
}
>
{
dataInfo
.
totalWeight
}
</
div
>
</
Col
>
</
Col
>
<
Col
span=
{
8
}
>
<
Col
span=
{
8
}
>
<
div
>
总体积(M3)
</
div
>
<
div
>
总体积(M3)
</
div
>
<
div
className=
{
style
.
count
}
>
700
</
div
>
<
div
className=
{
style
.
count
}
>
{
dataInfo
.
totalVolume
}
</
div
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
...
@@ -385,11 +464,12 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -385,11 +464,12 @@ const detailInfo: React.FC<{}> = () => {
{
{
item
.
key
===
'freight'
?
item
.
key
===
'freight'
?
<
div
className=
{
style
[
'cols-main-options'
]
}
>
<
div
className=
{
style
[
'cols-main-options'
]
}
>
1000.00
{
item
.
value
}
<
Input
addonBefore=
" ¥ "
defaultValue=
"1000"
/>
{
/* <Input addonBefore=" ¥ " defaultValue={100} /> */
}
</
div
>
</
div
>
:
<
div
className=
{
style
[
'cols-main-options'
]
}
>
:
<
div
className=
{
style
[
'cols-main-options'
]
}
>
张三
{
item
.
value
}
</
div
>
</
div
>
}
}
</
div
>
</
div
>
...
@@ -405,21 +485,16 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -405,21 +485,16 @@ const detailInfo: React.FC<{}> = () => {
<
div
className=
{
style
[
'mainCol-title'
]
}
>
<
div
className=
{
style
[
'mainCol-title'
]
}
>
外部流转记录
外部流转记录
</
div
>
</
div
>
<
StandardTable
<
Table
dataSource=
{
dataInfo
.
logList
}
columns=
{
columns
}
pagination=
{
pagination
}
/>
tableProps=
{
{
}
}
columns=
{
columns
}
currentRef=
{
ref
}
fetchTableData=
{
(
params
:
any
)
=>
fetchData
(
params
)
}
/>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
<
ConfirmModal
<
ConfirmModal
id=
{
id
}
dialogVisible=
{
visible
}
dialogVisible=
{
visible
}
onCancel=
{
()
=>
setvisible
(
false
)
}
onCancel=
{
()
=>
setvisible
(
false
)
}
/>
/>
</
PageHeaderWrapper
>
</
PageHeaderWrapper
>
)
)
...
...
src/pages/logistics/components/orderSearchList.tsx
View file @
52187b79
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Author: LeeJiancong
* @Date: 2020-07-18 15:55:51
* @Date: 2020-07-18 15:55:51
* @LastEditors: LeeJiancong
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-0
7-31 19:23:51
* @LastEditTime: 2020-0
8-01 11:09:05
*/
*/
import
React
,
{
useState
,
useEffect
,
useRef
,
ReactNode
}
from
'react'
;
import
React
,
{
useState
,
useEffect
,
useRef
,
ReactNode
}
from
'react'
;
import
{
Card
,
Button
,
Row
,
Col
,
Tooltip
,
Input
,
Select
,
Tag
,
Space
}
from
'antd'
import
{
Card
,
Button
,
Row
,
Col
,
Tooltip
,
Input
,
Select
,
Tag
,
Space
}
from
'antd'
...
@@ -16,6 +16,7 @@ import { hidden } from 'chalk';
...
@@ -16,6 +16,7 @@ import { hidden } from 'chalk';
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
timeRange
}
from
'@/utils/index'
import
{
timeRange
}
from
'@/utils/index'
import
statuStyle
from
'../colorTag'
import
statuStyle
from
'../colorTag'
import
{
TimeList
,
statusList
,
outSideStatusList
}
from
'../statusList'
import
moment
from
'moment'
import
moment
from
'moment'
let
{
Option
}
=
Select
let
{
Option
}
=
Select
export
interface
listProps
{
export
interface
listProps
{
...
@@ -50,49 +51,6 @@ const orderSearchList: React.FC<listProps> = (props) => {
...
@@ -50,49 +51,6 @@ const orderSearchList: React.FC<listProps> = (props) => {
console
.
log
(
props
)
console
.
log
(
props
)
const
ref
=
useRef
<
any
>
({})
const
ref
=
useRef
<
any
>
({})
const
[
selectRow
,
setSelectRow
]
=
useState
<
Item
[]
>
([])
const
[
selectRow
,
setSelectRow
]
=
useState
<
Item
[]
>
([])
const
TimeList
=
[
{
label
:
'单据时间(全部)'
,
value
:
0
},
{
label
:
'今天'
,
value
:
1
},
{
label
:
'一周内'
,
value
:
2
},
{
label
:
'一个月内'
,
value
:
3
},
{
label
:
'三个月内'
,
value
:
4
},
{
label
:
'六个月内'
,
value
:
5
},
{
label
:
'一年内'
,
value
:
6
},
{
label
:
'一年前'
,
value
:
7
}
]
const
outSideStatusList
=
[
{
label
:
'外部状态(全部)'
,
value
:
''
},
{
label
:
'待提交'
,
value
:
1
},
{
label
:
'待确认'
,
value
:
2
},
{
label
:
'接受物流单'
,
value
:
3
},
{
label
:
'不接受物流单'
,
value
:
4
}
]
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
<
Array
<
string
>>
([])
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
<
Array
<
string
>>
([])
const
[
companyList
,
setcompanyList
]
=
useState
([])
const
[
companyList
,
setcompanyList
]
=
useState
([])
const
[
shipperAddressList
,
setshipperAddressList
]
=
useState
([])
const
[
shipperAddressList
,
setshipperAddressList
]
=
useState
([])
...
@@ -258,6 +216,9 @@ const orderSearchList: React.FC<listProps> = (props) => {
...
@@ -258,6 +216,9 @@ const orderSearchList: React.FC<listProps> = (props) => {
align
:
'center'
,
align
:
'center'
,
dataIndex
:
'status'
,
dataIndex
:
'status'
,
key
:
'status'
,
key
:
'status'
,
filters
:
statusList
,
filterMultiple
:
false
,
onFilter
:(
value
,
record
)
=>
record
.
status
===
value
,
render
:
(
_
:
any
,
reconds
)
=>
{
render
:
(
_
:
any
,
reconds
)
=>
{
let
component
:
ReactNode
=
null
let
component
:
ReactNode
=
null
if
(
reconds
.
status
==
3
)
{
if
(
reconds
.
status
==
3
)
{
...
@@ -277,6 +238,10 @@ const orderSearchList: React.FC<listProps> = (props) => {
...
@@ -277,6 +238,10 @@ const orderSearchList: React.FC<listProps> = (props) => {
]
]
const
statusFilter
=
(
value
:
any
,
record
:
any
)
=>
{
console
.
log
(
value
,
record
)
}
const
rowSelection
:
TableRowSelection
<
any
>
=
{
const
rowSelection
:
TableRowSelection
<
any
>
=
{
type
:
'checkbox'
,
type
:
'checkbox'
,
selectedRowKeys
:
selectedTableRowKeys
,
selectedRowKeys
:
selectedTableRowKeys
,
...
...
src/pages/logistics/logisticsResult/toOrderComfirmList.tsx
View file @
52187b79
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Author: LeeJiancong
* @Date: 2020-07-14 15:07:34
* @Date: 2020-07-14 15:07:34
* @LastEditors: LeeJiancong
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-0
7-31 19:27:46
* @LastEditTime: 2020-0
8-01 11:10:57
*/
*/
import
React
,
{
Component
,
ReactNode
,
useRef
,
useState
,
useEffect
}
from
'react'
import
React
,
{
Component
,
ReactNode
,
useRef
,
useState
,
useEffect
}
from
'react'
import
{
history
}
from
'umi'
import
{
history
}
from
'umi'
...
@@ -28,6 +28,7 @@ import { PublicApi } from '@/services/api'
...
@@ -28,6 +28,7 @@ import { PublicApi } from '@/services/api'
import
{
timeRange
}
from
'@/utils/index'
import
{
timeRange
}
from
'@/utils/index'
import
moment
from
'moment'
import
moment
from
'moment'
import
statuStyle
from
'../colorTag'
import
statuStyle
from
'../colorTag'
import
{
TimeList
,
outSideStatusList
,
statusList
}
from
'../statusList'
import
style
from
'../components/index.less'
import
style
from
'../components/index.less'
const
{
Option
}
=
Select
const
{
Option
}
=
Select
const
data
=
[
const
data
=
[
...
@@ -143,49 +144,7 @@ const OrderList: React.FC<ListProps> = (props) => {
...
@@ -143,49 +144,7 @@ const OrderList: React.FC<ListProps> = (props) => {
invoicesTimeStart
:
''
,
invoicesTimeStart
:
''
,
invoicesTimeEnd
:
''
invoicesTimeEnd
:
''
})
})
const
TimeList
=
[
{
label
:
'单据时间(全部)'
,
value
:
0
},
{
label
:
'今天'
,
value
:
1
},
{
label
:
'一周内'
,
value
:
2
},
{
label
:
'一个月内'
,
value
:
3
},
{
label
:
'三个月内'
,
value
:
4
},
{
label
:
'六个月内'
,
value
:
5
},
{
label
:
'一年内'
,
value
:
6
},
{
label
:
'一年前'
,
value
:
7
}
]
const
outSideStatusList
=
[
{
label
:
'外部状态(全部)'
,
value
:
''
},
{
label
:
'待提交'
,
value
:
1
},
{
label
:
'待确认'
,
value
:
2
},
{
label
:
'接受物流单'
,
value
:
3
},
{
label
:
'不接受物流单'
,
value
:
4
}
]
const
columns
:
ColumnType
<
any
>
[]
=
[
const
columns
:
ColumnType
<
any
>
[]
=
[
{
{
title
:
'物流单号'
,
title
:
'物流单号'
,
...
@@ -243,6 +202,9 @@ const OrderList: React.FC<ListProps> = (props) => {
...
@@ -243,6 +202,9 @@ const OrderList: React.FC<ListProps> = (props) => {
align
:
'center'
,
align
:
'center'
,
dataIndex
:
'status'
,
dataIndex
:
'status'
,
key
:
'status'
,
key
:
'status'
,
filters
:
statusList
,
filterMultiple
:
false
,
onFilter
:(
value
,
record
)
=>
record
.
status
===
value
,
render
:
(
text
:
any
,
record
:
any
)
=>
{
render
:
(
text
:
any
,
record
:
any
)
=>
{
let
component
:
ReactNode
=
null
let
component
:
ReactNode
=
null
if
(
text
==
3
)
{
if
(
text
==
3
)
{
...
...
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
View file @
52187b79
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Author: LeeJiancong
* @Date: 2020-07-14 15:07:34
* @Date: 2020-07-14 15:07:34
* @LastEditors: LeeJiancong
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-0
7-31 20:20:1
9
* @LastEditTime: 2020-0
8-01 11:12:4
9
*/
*/
import
React
,
{
Component
,
ReactNode
,
useRef
,
useState
,
useEffect
}
from
'react'
import
React
,
{
Component
,
ReactNode
,
useRef
,
useState
,
useEffect
}
from
'react'
import
{
history
}
from
'umi'
import
{
history
}
from
'umi'
...
@@ -26,6 +26,7 @@ import { IFormFilter, IButtonFilter } from 'god/dist/src/standard-table/TableCon
...
@@ -26,6 +26,7 @@ import { IFormFilter, IButtonFilter } from 'god/dist/src/standard-table/TableCon
import
{
PublicApi
}
from
'@/services/api'
import
{
PublicApi
}
from
'@/services/api'
import
style
from
'../components/index.less'
import
style
from
'../components/index.less'
import
statuStyle
from
'../colorTag'
import
statuStyle
from
'../colorTag'
import
{
TimeList
,
outSideStatusList
,
statusList
}
from
'../statusList'
import
moment
from
'moment'
import
moment
from
'moment'
import
{
timeRange
}
from
'@/utils/index'
import
{
timeRange
}
from
'@/utils/index'
import
Index
from
'@/pages'
;
import
Index
from
'@/pages'
;
...
@@ -57,49 +58,7 @@ const data = [
...
@@ -57,49 +58,7 @@ const data = [
interface
Item
{
interface
Item
{
key
:
string
key
:
string
}
}
const
TimeList
=
[
{
label
:
'单据时间(全部)'
,
value
:
0
},
{
label
:
'今天'
,
value
:
1
},
{
label
:
'一周内'
,
value
:
2
},
{
label
:
'一个月内'
,
value
:
3
},
{
label
:
'三个月内'
,
value
:
4
},
{
label
:
'六个月内'
,
value
:
5
},
{
label
:
'一年内'
,
value
:
6
},
{
label
:
'一年前'
,
value
:
7
}
]
const
outSideStatusList
=
[
{
label
:
'外部状态(全部)'
,
value
:
''
},
{
label
:
'待提交'
,
value
:
1
},
{
label
:
'待确认'
,
value
:
2
},
{
label
:
'接受物流单'
,
value
:
3
},
{
label
:
'不接受物流单'
,
value
:
4
}
]
//父页面传递来的参数
//父页面传递来的参数
export
interface
ListProps
{
export
interface
ListProps
{
}
}
...
@@ -203,6 +162,9 @@ const OrderList: React.FC<ListProps> = (props) => {
...
@@ -203,6 +162,9 @@ const OrderList: React.FC<ListProps> = (props) => {
align
:
'center'
,
align
:
'center'
,
dataIndex
:
'status'
,
dataIndex
:
'status'
,
key
:
'status'
,
key
:
'status'
,
filters
:
statusList
,
filterMultiple
:
false
,
onFilter
:(
value
,
record
)
=>
record
.
status
===
value
,
render
:
(
text
:
any
,
reconds
:
any
)
=>
{
render
:
(
text
:
any
,
reconds
:
any
)
=>
{
let
component
:
ReactNode
=
null
let
component
:
ReactNode
=
null
if
(
text
==
3
)
{
if
(
text
==
3
)
{
...
...
src/pages/logistics/statusList.ts
0 → 100644
View file @
52187b79
/*
* @Author: LeeJiancong
* @Date: 2020-08-01 11:06:09
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-08-01 11:07:49
*/
export
const
TimeList
=
[
{
label
:
'单据时间(全部)'
,
value
:
0
},
{
label
:
'今天'
,
value
:
1
},
{
label
:
'一周内'
,
value
:
2
},
{
label
:
'一个月内'
,
value
:
3
},
{
label
:
'三个月内'
,
value
:
4
},
{
label
:
'六个月内'
,
value
:
5
},
{
label
:
'一年内'
,
value
:
6
},
{
label
:
'一年前'
,
value
:
7
}
]
export
const
outSideStatusList
=
[
{
label
:
'外部状态(全部)'
,
value
:
''
},
{
label
:
'待提交'
,
value
:
1
},
{
label
:
'待确认'
,
value
:
2
},
{
label
:
'接受物流单'
,
value
:
3
},
{
label
:
'不接受物流单'
,
value
:
4
}
]
export
const
statusList
=
[
{
text
:
'待提交'
,
value
:
1
},
{
text
:
'待确认'
,
value
:
2
},
{
text
:
'接受物流单'
,
value
:
3
},
{
text
:
'不接受物流单'
,
value
:
4
}
]
\ No newline at end of file
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