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
ed7914cf
Commit
ed7914cf
authored
Aug 03, 2020
by
LeeJiancong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化.对接物流明细
parent
52187b79
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
103 additions
and
69 deletions
+103
-69
orderSearchDetail.tsx
src/pages/logistics/components/orderSearchDetail.tsx
+47
-20
orderSearchList.tsx
src/pages/logistics/components/orderSearchList.tsx
+0
-0
sumbitOrderModal.tsx
src/pages/logistics/components/sumbitOrderModal.tsx
+0
-0
addCompany.css
src/pages/logistics/list/addCompany.css
+7
-1
addCompany.less
src/pages/logistics/list/addCompany.less
+19
-5
addCompany.tsx
src/pages/logistics/list/addCompany.tsx
+2
-2
company.tsx
src/pages/logistics/list/company.tsx
+2
-2
addressForm.tsx
src/pages/logistics/list/components/addressForm.tsx
+4
-4
templateForm.tsx
src/pages/logistics/list/components/templateForm.tsx
+5
-7
template.tsx
src/pages/logistics/list/template.tsx
+2
-2
toOrderComfirmList.tsx
src/pages/logistics/logisticsResult/toOrderComfirmList.tsx
+2
-13
toOrderSubmitDetail.tsx
src/pages/logistics/logisticsSubmit/toOrderSubmitDetail.tsx
+11
-11
toOrderSumitList.tsx
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
+2
-2
index.ts
src/services/index.ts
+0
-0
No files found.
src/pages/logistics/components/orderSearchDetail.tsx
View file @
ed7914cf
...
@@ -38,9 +38,9 @@ interface dataInfoType{
...
@@ -38,9 +38,9 @@ interface dataInfoType{
}
}
const
detailInfo
:
React
.
FC
<
{}
>
=
()
=>
{
const
detailInfo
:
React
.
FC
<
{}
>
=
()
=>
{
const
ref
=
useRef
({})
const
ref
=
useRef
<
any
>
({})
let
[
isextraOption
,
setIsextraOption
]
=
useState
(
false
)
let
[
isextraOption
,
setIsextraOption
]
=
useState
(
false
)
let
[
dataInfo
,
setdataInfo
]
=
useState
<
dataInfoType
>
({
let
[
dataInfo
,
setdataInfo
]
=
useState
<
any
>
({
status
:
''
,
status
:
''
,
digest
:
''
,
digest
:
''
,
logisticsOrderNo
:
''
,
logisticsOrderNo
:
''
,
...
@@ -54,7 +54,7 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -54,7 +54,7 @@ const detailInfo: React.FC<{}> = () => {
freightPrice
:
0
,
freightPrice
:
0
,
settlementWay
:
''
settlementWay
:
''
})
})
const
[
id
,
setid
]
=
useState
(
''
)
const
[
id
,
setid
]
=
useState
(
history
.
location
.
query
.
id
)
let
[
visible
,
setvisible
]
=
useState
(
false
)
let
[
visible
,
setvisible
]
=
useState
(
false
)
const
[
pagination
,
setPagination
]
=
useState
({
const
[
pagination
,
setPagination
]
=
useState
({
current
:
1
,
current
:
1
,
...
@@ -179,19 +179,24 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -179,19 +179,24 @@ const detailInfo: React.FC<{}> = () => {
{
{
title
:
'状态'
,
title
:
'状态'
,
dataIndex
:
'status'
,
dataIndex
:
'status'
,
align
:
'
center
'
,
align
:
'
left
'
,
key
:
'status'
,
key
:
'status'
,
render
:
(
text
:
any
,
record
:
any
)
=>
{
render
:
(
text
:
number
,
record
:
any
)
=>
{
let
component
:
ReactNode
=
null
;
let
component
:
ReactNode
=
null
;
component
=
<
Badge
color=
"#FFC400"
text=
"待审核"
/>;
text
===
1
?
component
=
<
Badge
status=
'default'
text=
"待提交"
/>:
text
===
2
?
component
=
<
Badge
status=
'processing'
text=
"待确认"
/>:
text
===
3
?
component
=
<
Badge
status=
'success'
text=
"接受物流单"
/>:
component
=
<
Badge
status=
'error'
text=
"不接受物流单"
/>
return
component
;
return
component
;
},
},
},
},
{
{
title
:
'操作'
,
title
:
'操作'
,
dataIndex
:
'
operation
'
,
dataIndex
:
'
type
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'operation'
,
key
:
'type'
,
render
:
(
text
:
number
,
record
:
any
)
=>
<>
{
text
===
1
?
'提交物流单'
:
'确认物流单'
}
</>
},
},
{
{
title
:
'操作时间'
,
title
:
'操作时间'
,
...
@@ -208,6 +213,7 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -208,6 +213,7 @@ const detailInfo: React.FC<{}> = () => {
width
:
300
width
:
300
},
},
];
];
//在这做逻辑判断 判断路由 是由哪个页面进来的
//在这做逻辑判断 判断路由 是由哪个页面进来的
useEffect
(()
=>
{
useEffect
(()
=>
{
let
pathname
=
history
.
location
.
pathname
let
pathname
=
history
.
location
.
pathname
...
@@ -243,12 +249,15 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -243,12 +249,15 @@ const detailInfo: React.FC<{}> = () => {
//待确认物流单
//待确认物流单
if
(
pathname
===
'/memberCenter/logisticsAbility/logisticsResult/toOrderComfirmDeatil'
)
{
if
(
pathname
===
'/memberCenter/logisticsAbility/logisticsResult/toOrderComfirmDeatil'
)
{
setIsextraOption
(
true
)
PublicApi
.
getLogisticsOrderWaitConfirmGet
({
id
:
id
}).
then
(
res
=>
{
PublicApi
.
getLogisticsOrderWaitConfirmGet
({
id
:
id
}).
then
(
res
=>
{
setdataInfo
(
res
.
data
)
setdataInfo
(
res
.
data
)
let
current
=
0
let
current
=
0
if
(
res
.
data
.
status
<=
2
){
if
(
res
.
data
.
status
==
1
){
current
=
0
current
=
0
}
else
if
(
res
.
data
.
status
==
2
){
current
=
0
setIsextraOption
(
true
)
}
else
if
(
res
.
data
.
status
==
3
||
res
.
data
.
status
==
4
){
}
else
if
(
res
.
data
.
status
==
3
||
res
.
data
.
status
==
4
){
current
=
1
current
=
1
}
}
...
@@ -261,17 +270,27 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -261,17 +270,27 @@ const detailInfo: React.FC<{}> = () => {
},
[])
},
[])
const
fetchData
=
(
params
:
any
)
=>
{
const
fetchData
=
(
params
:
any
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
queryResult
=
data
.
find
(
v
=>
v
.
key
===
params
.
keywords
);
PublicApi
.
getLogisticsOrderWaitSubmitPageOrderLog
({...
params
,
orderId
:
id
}).
then
(
res
=>
{
setTimeout
(()
=>
{
if
(
res
.
code
===
1000
){
resolve
({
resolve
(
res
.
data
)
code
:
200
,
}
message
:
''
,
})
data
:
dataInfo
.
detailList
//dataInfo.logList
// const queryResult = data.find(v => v.key === params.keywords);
});
// setTimeout(() => {
},
1000
);
// resolve({
// code: 200,
// message: '',
// data: dataInfo.detailList//dataInfo.logList
// });
// }, 1000);
});
});
};
};
const
handleModalOK
=
()
=>
{
setvisible
(
false
)
ref
.
current
.
reload
()
}
return
(
return
(
<
PageHeaderWrapper
<
PageHeaderWrapper
...
@@ -364,7 +383,7 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -364,7 +383,7 @@ const detailInfo: React.FC<{}> = () => {
(
item
:
any
,
index
:
number
)
=>
{
(
item
:
any
,
index
:
number
)
=>
{
return
(
return
(
<
div
className=
{
style
[
'cols-main'
]
}
key=
{
index
}
>
<
div
className=
{
style
[
'cols-main'
]
}
key=
{
index
}
>
<
div
className=
{
style
[
'cols-main-options'
]
}
>
<
div
className=
{
style
[
'cols-main-options'
]
}
style=
{
{
flex
:
'1.5 1'
}
}
>
{
item
.
title
}
{
item
.
title
}
</
div
>
</
div
>
<
div
className=
{
style
[
'cols-main-options'
]
}
>
<
div
className=
{
style
[
'cols-main-options'
]
}
>
...
@@ -485,7 +504,14 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -485,7 +504,14 @@ const detailInfo: React.FC<{}> = () => {
<
div
className=
{
style
[
'mainCol-title'
]
}
>
<
div
className=
{
style
[
'mainCol-title'
]
}
>
外部流转记录
外部流转记录
</
div
>
</
div
>
<
Table
dataSource=
{
dataInfo
.
logList
}
columns=
{
columns
}
pagination=
{
pagination
}
/>
<
StandardTable
tableProps=
{
{
rowKey
:
'id'
}
}
currentRef=
{
ref
}
columns=
{
columns
}
fetchTableData=
{
(
params
:
any
)
=>
fetchData
(
params
)
}
/>
{
/* <Table dataSource={dataInfo.logList} columns={columns} pagination={pagination} /> */
}
</
Col
>
</
Col
>
...
@@ -494,6 +520,7 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -494,6 +520,7 @@ const detailInfo: React.FC<{}> = () => {
id=
{
id
}
id=
{
id
}
dialogVisible=
{
visible
}
dialogVisible=
{
visible
}
onCancel=
{
()
=>
setvisible
(
false
)
}
onCancel=
{
()
=>
setvisible
(
false
)
}
onOK
=
{()
=
>
handleModalOK}
/
>
/
>
</
PageHeaderWrapper
>
</
PageHeaderWrapper
>
...
...
src/pages/logistics/components/orderSearchList.tsx
View file @
ed7914cf
This diff is collapsed.
Click to expand it.
src/pages/logistics/components/sumbitOrderModal.tsx
View file @
ed7914cf
This diff is collapsed.
Click to expand it.
src/pages/logistics/list/addCompany.css
View file @
ed7914cf
.btn-wrap
.ant-input-group
.ant-input-group-addon
{
.selectBtn
{
padding
:
0
!important
;
}
.ant-form-item-control
.ant-form-item-control-input
.ant-form-item-control-input-content
.ant-input-group-wrapper
.ant-input-wrapper
.ant-input-group-addon
,
.ant-form-item-control
.ant-form-item-control-input
.ant-form-item-control-input-content
.selectBtn
.ant-input-wrapper
.ant-input-group-addon
,
.ant-form-item-control
.ant-form-item-control-input
.ant-form-item-control-input-content
.ant-input-group-wrapper
.ant-input-group
.ant-input-group-addon
,
.ant-form-item-control
.ant-form-item-control-input
.ant-form-item-control-input-content
.selectBtn
.ant-input-group
.ant-input-group-addon
{
padding
:
0
!important
;
padding
:
0
!important
;
}
}
src/pages/logistics/list/addCompany.less
View file @
ed7914cf
.btn-wrap{
.selectBtn{
.ant-input-group{
.ant-input-group-addon{
padding: 0 !important;
padding: 0 !important;
}
.ant-form-item-control{
.ant-form-item-control-input{
.ant-form-item-control-input-content{
.ant-input-group-wrapper, .selectBtn{
.ant-input-wrapper ,.ant-input-group{
.ant-input-group-addon{
padding: 0 !important;
}
}
}
}
}
}
}
}
}
\ No newline at end of file
src/pages/logistics/list/addCompany.tsx
View file @
ed7914cf
...
@@ -69,7 +69,7 @@ const { Option } = Select;
...
@@ -69,7 +69,7 @@ const { Option } = Select;
const
defaultValue
=
'lucy'
const
defaultValue
=
'lucy'
const
company
:
React
.
FC
<
{}
>
=
()
=>
{
const
company
:
React
.
FC
<
{}
>
=
()
=>
{
//hook只能写在函数组件的顶级作用域
//hook只能写在函数组件的顶级作用域
const
ref
=
useRef
({})
const
ref
=
useRef
<
any
>
({})
const
[
menuForm
]
=
Form
.
useForm
();
const
[
menuForm
]
=
Form
.
useForm
();
const
[
headerTitle
,
setHeaderTitle
]
=
useState
(
'新建物流公司'
)
const
[
headerTitle
,
setHeaderTitle
]
=
useState
(
'新建物流公司'
)
const
[
Code
,
setCode
]
=
useState
(
''
)
const
[
Code
,
setCode
]
=
useState
(
''
)
...
@@ -224,7 +224,7 @@ const company: React.FC<{}> = () => {
...
@@ -224,7 +224,7 @@ const company: React.FC<{}> = () => {
}
}
]
}
]
}
>
>
<
Input
className=
{
style
[
'
btn-wrap
'
]
}
disabled
maxLength=
{
20
}
addonAfter=
{
selectBtn
}
/>
<
Input
className=
{
style
[
'
selectBtn
'
]
}
disabled
maxLength=
{
20
}
addonAfter=
{
selectBtn
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
:
:
<
Form
.
Item
<
Form
.
Item
...
...
src/pages/logistics/list/company.tsx
View file @
ed7914cf
/*
/*
* @Date: 2020-07-13 15:01:40
* @Date: 2020-07-13 15:01:40
* @LastEditors: LeeJiancong
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-0
7-30 10:06:44
* @LastEditTime: 2020-0
8-03 16:52:53
*/
*/
import
React
,
{
ReactNode
,
useRef
}
from
'react'
import
React
,
{
ReactNode
,
useRef
}
from
'react'
...
@@ -50,7 +50,7 @@ const fetchData = (params?: any) => {
...
@@ -50,7 +50,7 @@ const fetchData = (params?: any) => {
}
}
const
Company
:
React
.
FC
<
{}
>
=
()
=>
{
const
Company
:
React
.
FC
<
{}
>
=
()
=>
{
const
ref
=
useRef
({})
const
ref
=
useRef
<
any
>
({})
const
columns
:
ColumnType
<
any
>
[]
=
[
const
columns
:
ColumnType
<
any
>
[]
=
[
{
{
...
...
src/pages/logistics/list/components/addressForm.tsx
View file @
ed7914cf
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Author: LeeJiancong
* @Date: 2020-07-15 10:31:55
* @Date: 2020-07-15 10:31:55
* @LastEditors: LeeJiancong
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-0
7-28 10:56:07
* @LastEditTime: 2020-0
8-03 17:59:56
*/
*/
import
React
,
{
Component
,
useState
,
useEffect
}
from
'react'
;
import
React
,
{
Component
,
useState
,
useEffect
}
from
'react'
;
import
ReactDOM
from
'react-dom'
import
ReactDOM
from
'react-dom'
...
@@ -175,7 +175,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
...
@@ -175,7 +175,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
setOptions
(
TelCodeList
)
setOptions
(
TelCodeList
)
})
})
const
getAllCode
=
setTimeout
(()
=>
{
const
getAllCode
=
setTimeout
(()
=>
{
PublicApi
.
get
Warehous
eAreaByPcodeAll
({
pcode
:
'100000'
}).
then
(
res
=>
{
PublicApi
.
get
Manag
eAreaByPcodeAll
({
pcode
:
'100000'
}).
then
(
res
=>
{
let
list
=
[]
let
list
=
[]
res
.
data
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
res
.
data
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
list
.
push
({
label
:
item
.
name
,
value
:
`
${
item
.
code
}
-
${
item
.
name
}
`
})
list
.
push
({
label
:
item
.
name
,
value
:
`
${
item
.
code
}
-
${
item
.
name
}
`
})
...
@@ -259,7 +259,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
...
@@ -259,7 +259,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
state
.
value
=
''
state
.
value
=
''
let
list
=
[]
let
list
=
[]
let
pcode
=
value
&&
value
.
split
(
'-'
).
length
>
1
?
value
.
split
(
'-'
)[
0
]
:
value
let
pcode
=
value
&&
value
.
split
(
'-'
).
length
>
1
?
value
.
split
(
'-'
)[
0
]
:
value
PublicApi
.
get
Warehous
eAreaByPcodeAll
({
pcode
:
pcode
}).
then
(
res
=>
{
PublicApi
.
get
Manag
eAreaByPcodeAll
({
pcode
:
pcode
}).
then
(
res
=>
{
res
.
data
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
res
.
data
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
// list.push({ label: item.name, value: item.code })
// list.push({ label: item.name, value: item.code })
list
.
push
({
label
:
item
.
name
,
value
:
`
${
item
.
code
}
-
${
item
.
name
}
`
})
list
.
push
({
label
:
item
.
name
,
value
:
`
${
item
.
code
}
-
${
item
.
name
}
`
})
...
@@ -277,7 +277,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
...
@@ -277,7 +277,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
state
.
value
=
''
state
.
value
=
''
let
list
=
[]
let
list
=
[]
let
pcode
=
value
&&
value
.
split
(
'-'
).
length
>
1
?
value
.
split
(
'-'
)[
0
]
:
value
let
pcode
=
value
&&
value
.
split
(
'-'
).
length
>
1
?
value
.
split
(
'-'
)[
0
]
:
value
PublicApi
.
get
Warehous
eAreaByPcodeAll
({
pcode
:
pcode
}).
then
(
res
=>
{
PublicApi
.
get
Manag
eAreaByPcodeAll
({
pcode
:
pcode
}).
then
(
res
=>
{
res
.
data
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
res
.
data
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
// list.push({ label: item.name, value: item.code })
// list.push({ label: item.name, value: item.code })
list
.
push
({
label
:
item
.
name
,
value
:
`
${
item
.
code
}
-
${
item
.
name
}
`
})
list
.
push
({
label
:
item
.
name
,
value
:
`
${
item
.
code
}
-
${
item
.
name
}
`
})
...
...
src/pages/logistics/list/components/templateForm.tsx
View file @
ed7914cf
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Author: LeeJiancong
* @Date: 2020-07-15 10:31:55
* @Date: 2020-07-15 10:31:55
* @LastEditors: LeeJiancong
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-0
7-30 19:37:57
* @LastEditTime: 2020-0
8-03 18:02:39
*/
*/
import
React
,
{
Component
,
useState
,
useEffect
}
from
'react'
;
import
React
,
{
Component
,
useState
,
useEffect
}
from
'react'
;
import
ReactDOM
from
'react-dom'
import
ReactDOM
from
'react-dom'
...
@@ -105,7 +105,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
...
@@ -105,7 +105,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
}
}
// console.log(id,typeof id,history.location.query.isSee,typeof history.location.query.isSee)
// console.log(id,typeof id,history.location.query.isSee,typeof history.location.query.isSee)
setHeaderTitle
(
`
${
_title
}
运费模板`
)
setHeaderTitle
(
`
${
_title
}
运费模板`
)
PublicApi
.
get
Warehous
eAreaByPcodeAll
({
pcode
:
'100000'
}).
then
(
res
=>
{
PublicApi
.
get
Manag
eAreaByPcodeAll
({
pcode
:
'100000'
}).
then
(
res
=>
{
let
list
=
[]
let
list
=
[]
res
.
data
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
res
.
data
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
list
.
push
({
label
:
item
.
name
,
value
:
Number
(
item
.
code
)
})
list
.
push
({
label
:
item
.
name
,
value
:
Number
(
item
.
code
)
})
...
@@ -152,10 +152,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
...
@@ -152,10 +152,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
history
.
goBack
()
history
.
goBack
()
},
1000
)
},
1000
)
}
}
const
addStyle
=
{
padding
:
'2px 0'
,
textAlign
:
'center'
}
const
onSearch
=
()
=>
{
const
onSearch
=
()
=>
{
}
}
...
@@ -335,7 +332,8 @@ const diaLogForm: React.FC<ListProps> = (props) => {
...
@@ -335,7 +332,8 @@ const diaLogForm: React.FC<ListProps> = (props) => {
operations
:
{
operations
:
{
title
:
'操作'
title
:
'操作'
},
},
renderAddition
:
()
=>
<
div
style=
{
addStyle
}
>
+添加指定地区
</
div
>,
renderAddition
:
()
=>
<
div
style=
{
{
padding
:
'2px 0'
,
textAlign
:
'center'
}
}
>
+添加指定地区
</
div
>,
renderMoveDown
:
()
=>
null
,
renderMoveDown
:
()
=>
null
,
renderMoveUp
:
()
=>
null
,
renderMoveUp
:
()
=>
null
,
renderRemove
:
(
idx
:
any
)
=>
{
renderRemove
:
(
idx
:
any
)
=>
{
...
...
src/pages/logistics/list/template.tsx
View file @
ed7914cf
...
@@ -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-24 20:08:29
* @LastEditTime: 2020-0
8-03 11:19:53
*/
*/
import
React
,
{
Component
,
ReactNode
,
useRef
,
useState
}
from
'react'
import
React
,
{
Component
,
ReactNode
,
useRef
,
useState
}
from
'react'
import
{
history
}
from
'umi'
import
{
history
}
from
'umi'
...
@@ -111,7 +111,7 @@ const EditableCell: React.FC<EditableCellProps> = ({
...
@@ -111,7 +111,7 @@ const EditableCell: React.FC<EditableCellProps> = ({
*/
*/
const
Template
:
React
.
FC
<
ListProps
>
=
(
props
)
=>
{
const
Template
:
React
.
FC
<
ListProps
>
=
(
props
)
=>
{
console
.
log
(
props
)
console
.
log
(
props
)
const
ref
=
useRef
({})
const
ref
=
useRef
<
any
>
({})
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
const
[
table
,
setTable
]
=
useState
([])
const
[
table
,
setTable
]
=
useState
([])
const
[
editingKey
,
setEditingKey
]
=
useState
(
''
);
const
[
editingKey
,
setEditingKey
]
=
useState
(
''
);
...
...
src/pages/logistics/logisticsResult/toOrderComfirmList.tsx
View file @
ed7914cf
...
@@ -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-08-0
1 11:10:57
* @LastEditTime: 2020-08-0
3 15:48:15
*/
*/
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'
...
@@ -199,7 +199,7 @@ const OrderList: React.FC<ListProps> = (props) => {
...
@@ -199,7 +199,7 @@ const OrderList: React.FC<ListProps> = (props) => {
},
},
{
{
title
:
'外部状态'
,
title
:
'外部状态'
,
align
:
'
center
'
,
align
:
'
left
'
,
dataIndex
:
'status'
,
dataIndex
:
'status'
,
key
:
'status'
,
key
:
'status'
,
filters
:
statusList
,
filters
:
statusList
,
...
@@ -360,17 +360,6 @@ const OrderList: React.FC<ListProps> = (props) => {
...
@@ -360,17 +360,6 @@ const OrderList: React.FC<ListProps> = (props) => {
})
})
}
}
</
Select
>
</
Select
>
<
Select
className=
{
style
.
select
}
value=
{
searchForm
.
status
}
onChange=
{
(
val
)
=>
setSearchForm
({
...
searchForm
,
status
:
val
})
}
>
{
outSideStatusList
.
map
((
item
,
index
)
=>
{
return
<
Option
key=
{
index
}
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
})
}
</
Select
>
</
Space
>
</
Space
>
</
Col
>
</
Col
>
}
}
...
...
src/pages/logistics/logisticsSubmit/toOrderSubmitDetail.tsx
View file @
ed7914cf
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
* @Author: LeeJiancong
* @Author: LeeJiancong
* @Date: 2020-07-28 11:25:30
* @Date: 2020-07-28 11:25:30
* @LastEditors: LeeJiancong
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-0
7-30 17:37:44
* @LastEditTime: 2020-0
8-03 16:48:12
*/
*/
import
React
,
{
Component
,
useEffect
,
useRef
,
useState
}
from
'react'
import
React
,
{
Component
,
useEffect
,
useRef
,
useState
,
ReactNode
}
from
'react'
import
{
Card
,
Row
,
Col
,
Tabs
,
Button
,
Input
as
SelectInput
,
Badge
}
from
'antd'
import
{
Card
,
Row
,
Col
,
Tabs
,
Button
,
Input
as
SelectInput
,
Badge
}
from
'antd'
import
{
LinkOutlined
}
from
'@ant-design/icons'
import
{
LinkOutlined
}
from
'@ant-design/icons'
import
{
StandardTable
}
from
'god'
import
{
StandardTable
}
from
'god'
...
@@ -82,17 +82,17 @@ const Deatail: React.FC<{}> = () => {
...
@@ -82,17 +82,17 @@ const Deatail: React.FC<{}> = () => {
},
},
{
{
title
:
'状态'
,
title
:
'状态'
,
align
:
'
center
'
,
align
:
'
left
'
,
dataIndex
:
'name'
,
dataIndex
:
'name'
,
key
:
'name'
,
key
:
'name'
,
render
:
(
_
:
any
,
record
)
=>
{
render
:
(
text
:
number
,
record
:
any
)
=>
{
return
(
let
component
:
ReactNode
=
null
;
<>
text
===
1
?
component
=
<
Badge
status=
'default'
text=
"待提交"
/>:
<
Badge
color=
"#6C9CEB"
text=
'待确认'
/>
text
===
2
?
component
=
<
Badge
status=
'processing'
text=
"待确认"
/>:
<
Badge
status=
'error'
text=
'不接受物流单'
/>
text
===
3
?
component
=
<
Badge
status=
'success'
text=
"接受物流单"
/>:
<
/>
component
=
<
Badge
status=
'error'
text=
"不接受物流单"
/>
)
return
component
;
}
}
,
},
},
{
{
title
:
'操作'
,
title
:
'操作'
,
...
...
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
View file @
ed7914cf
...
@@ -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-08-0
1 11:12:49
* @LastEditTime: 2020-08-0
3 15:49:51
*/
*/
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'
...
@@ -159,7 +159,7 @@ const OrderList: React.FC<ListProps> = (props) => {
...
@@ -159,7 +159,7 @@ const OrderList: React.FC<ListProps> = (props) => {
},
},
{
{
title
:
'外部状态'
,
title
:
'外部状态'
,
align
:
'
center
'
,
align
:
'
left
'
,
dataIndex
:
'status'
,
dataIndex
:
'status'
,
key
:
'status'
,
key
:
'status'
,
filters
:
statusList
,
filters
:
statusList
,
...
...
src/services/index.ts
View file @
ed7914cf
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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