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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
85 additions
and
132 deletions
+85
-132
orderSearchDetail.tsx
src/pages/logistics/components/orderSearchDetail.tsx
+0
-0
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
This diff is collapsed.
Click to expand it.
src/pages/logistics/components/orderSearchList.tsx
View file @
52187b79
...
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Date: 2020-07-18 15:55:51
* @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
{
Card
,
Button
,
Row
,
Col
,
Tooltip
,
Input
,
Select
,
Tag
,
Space
}
from
'antd'
...
...
@@ -16,6 +16,7 @@ import { hidden } from 'chalk';
import
{
PublicApi
}
from
'@/services/api'
;
import
{
timeRange
}
from
'@/utils/index'
import
statuStyle
from
'../colorTag'
import
{
TimeList
,
statusList
,
outSideStatusList
}
from
'../statusList'
import
moment
from
'moment'
let
{
Option
}
=
Select
export
interface
listProps
{
...
...
@@ -50,49 +51,6 @@ const orderSearchList: React.FC<listProps> = (props) => {
console
.
log
(
props
)
const
ref
=
useRef
<
any
>
({})
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
[
companyList
,
setcompanyList
]
=
useState
([])
const
[
shipperAddressList
,
setshipperAddressList
]
=
useState
([])
...
...
@@ -258,6 +216,9 @@ const orderSearchList: React.FC<listProps> = (props) => {
align
:
'center'
,
dataIndex
:
'status'
,
key
:
'status'
,
filters
:
statusList
,
filterMultiple
:
false
,
onFilter
:(
value
,
record
)
=>
record
.
status
===
value
,
render
:
(
_
:
any
,
reconds
)
=>
{
let
component
:
ReactNode
=
null
if
(
reconds
.
status
==
3
)
{
...
...
@@ -277,6 +238,10 @@ const orderSearchList: React.FC<listProps> = (props) => {
]
const
statusFilter
=
(
value
:
any
,
record
:
any
)
=>
{
console
.
log
(
value
,
record
)
}
const
rowSelection
:
TableRowSelection
<
any
>
=
{
type
:
'checkbox'
,
selectedRowKeys
:
selectedTableRowKeys
,
...
...
src/pages/logistics/logisticsResult/toOrderComfirmList.tsx
View file @
52187b79
...
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Date: 2020-07-14 15:07:34
* @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
{
history
}
from
'umi'
...
...
@@ -28,6 +28,7 @@ import { PublicApi } from '@/services/api'
import
{
timeRange
}
from
'@/utils/index'
import
moment
from
'moment'
import
statuStyle
from
'../colorTag'
import
{
TimeList
,
outSideStatusList
,
statusList
}
from
'../statusList'
import
style
from
'../components/index.less'
const
{
Option
}
=
Select
const
data
=
[
...
...
@@ -143,49 +144,7 @@ const OrderList: React.FC<ListProps> = (props) => {
invoicesTimeStart
:
''
,
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
>
[]
=
[
{
title
:
'物流单号'
,
...
...
@@ -243,6 +202,9 @@ const OrderList: React.FC<ListProps> = (props) => {
align
:
'center'
,
dataIndex
:
'status'
,
key
:
'status'
,
filters
:
statusList
,
filterMultiple
:
false
,
onFilter
:(
value
,
record
)
=>
record
.
status
===
value
,
render
:
(
text
:
any
,
record
:
any
)
=>
{
let
component
:
ReactNode
=
null
if
(
text
==
3
)
{
...
...
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
View file @
52187b79
...
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Date: 2020-07-14 15:07:34
* @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
{
history
}
from
'umi'
...
...
@@ -26,6 +26,7 @@ import { IFormFilter, IButtonFilter } from 'god/dist/src/standard-table/TableCon
import
{
PublicApi
}
from
'@/services/api'
import
style
from
'../components/index.less'
import
statuStyle
from
'../colorTag'
import
{
TimeList
,
outSideStatusList
,
statusList
}
from
'../statusList'
import
moment
from
'moment'
import
{
timeRange
}
from
'@/utils/index'
import
Index
from
'@/pages'
;
...
...
@@ -57,49 +58,7 @@ const data = [
interface
Item
{
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
{
}
...
...
@@ -203,6 +162,9 @@ const OrderList: React.FC<ListProps> = (props) => {
align
:
'center'
,
dataIndex
:
'status'
,
key
:
'status'
,
filters
:
statusList
,
filterMultiple
:
false
,
onFilter
:(
value
,
record
)
=>
record
.
status
===
value
,
render
:
(
text
:
any
,
reconds
:
any
)
=>
{
let
component
:
ReactNode
=
null
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