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
27eac8db
Commit
27eac8db
authored
Dec 17, 2020
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of 10.0.0.22:lingxi/lingxi-business-paltform into dev
parents
944badf6
52c22aec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
36 deletions
+82
-36
index.tsx
src/pages/logistics/addLogistics/index.tsx
+42
-2
colorTag.ts
src/pages/logistics/colorTag.ts
+37
-32
toOrderSumitList.tsx
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
+3
-2
No files found.
src/pages/logistics/addLogistics/index.tsx
View file @
27eac8db
...
@@ -606,6 +606,44 @@ const AddLogistics: React.FC<{}> = () => {
...
@@ -606,6 +606,44 @@ const AddLogistics: React.FC<{}> = () => {
})
})
}
}
},
[
memberInfo
])
},
[
memberInfo
])
/**跳转到售后/订单的详情 */
const
jumpOrderDetail
=
(
id
:
any
)
=>
{
switch
(
Number
(
createType
))
{
case
1
:
switch
(
Number
(
relevanceType
))
{
case
1
:
window
.
open
(
`/memberCenter/tranactionAbility/saleOrder/readyAddLogisticsOrder/preview?id=
${
id
}
`
)
break
;
case
2
:
window
.
open
(
`/memberCenter/afterService/exchangeApplication/exchangePrAddLogistics/detail?id=
${
id
}
`
)
break
;
case
3
:
window
.
open
(
`/memberCenter/afterService/exchangeManage/exchangePrAddLogistics/detail?id=
${
id
}
`
)
break
;
case
4
:
window
.
open
(
`/memberCenter/afterService/returnApplication/returnPrAddLogistics/detail?id=
${
id
}
`
)
break
;
}
break
;
case
2
:
window
.
open
(
`/memberCenter/tranactionAbility/saleOrder/readyAddLogisticsOrder/preview?id=
${
id
}
`
)
break
;
case
3
:
window
.
open
(
`/memberCenter/handling/confirm/pendingDelivered/detail?id=
${
id
}
`
)
break
;
case
4
:
window
.
open
(
`/memberCenter/afterService/exchangeApplication/exchangePrAddLogistics/detail?id=
${
id
}
`
)
break
;
case
5
:
window
.
open
(
`/memberCenter/afterService/exchangeManage/exchangePrAddLogistics/detail?id=
${
id
}
`
)
break
;
case
6
:
window
.
open
(
`/memberCenter/afterService/returnApplication/returnPrAddLogistics/detail?id=
${
id
}
`
)
break
;
}
}
return
(
return
(
<
PageHeaderWrapper
<
PageHeaderWrapper
onBack=
{
()
=>
history
.
goBack
()
}
onBack=
{
()
=>
history
.
goBack
()
}
...
@@ -636,11 +674,13 @@ const AddLogistics: React.FC<{}> = () => {
...
@@ -636,11 +674,13 @@ const AddLogistics: React.FC<{}> = () => {
<
Form
.
Item
label=
"物流单号"
name=
'receiverName1'
><
span
></
span
></
Form
.
Item
>
<
Form
.
Item
label=
"物流单号"
name=
'receiverName1'
><
span
></
span
></
Form
.
Item
>
<
Form
.
Item
label=
'对应发货单号'
name=
'shipmentOrderCode'
>
<
Form
.
Item
label=
'对应发货单号'
name=
'shipmentOrderCode'
>
<
Search
disabled=
{
!!
history
.
location
.
query
.
createType
}
readOnly
value=
{
Object
.
keys
(
query
).
length
>
0
?
query
.
shipmentOrderCode
:
undefined
}
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setshippingvisible
(
true
)
}
/>
<
Search
disabled=
{
!!
history
.
location
.
query
.
createType
}
readOnly
value=
{
Object
.
keys
(
query
).
length
>
0
?
query
.
shipmentOrderCode
:
undefined
}
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setshippingvisible
(
true
)
}
/>
{
query
.
shipmentOrderCode
&&
<
Button
type=
'link'
>
查看单号详情
</
Button
>
}
{
query
.
shipmentOrderCode
&&
<
Button
type=
'link'
onClick=
{
()
=>
window
.
open
(
`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${query.shipmentOrderId}&preview=1`
)
}
>
查看单号详情
</
Button
>
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
'对应订单号/售后单'
name=
'relevanceOrderCode'
>
<
Form
.
Item
label=
'对应订单号/售后单'
name=
'relevanceOrderCode'
>
<
Search
disabled=
{
!!
history
.
location
.
query
.
createType
}
readOnly
value=
{
Object
.
keys
(
query
).
length
>
0
?
query
.
relevanceOrderCode
:
undefined
}
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setinvoicesvisible
(
true
)
}
/>
<
Search
disabled=
{
!!
history
.
location
.
query
.
createType
}
readOnly
value=
{
Object
.
keys
(
query
).
length
>
0
?
query
.
relevanceOrderCode
:
undefined
}
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setinvoicesvisible
(
true
)
}
/>
{
query
.
relevanceOrderCode
&&
<
Button
type=
'link'
>
查看单号详情
</
Button
>
}
{
query
.
relevanceOrderCode
&&
<
Button
type=
'link'
onClick=
{
()
=>
jumpOrderDetail
(
query
.
relevanceOrderId
)
}
>
查看单号详情
</
Button
>
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
"收货方"
name=
'receiverName'
><
span
>
{
query
.
receiverName
}
/
{
query
.
receiverPhone
}
</
span
></
Form
.
Item
>
<
Form
.
Item
label=
"收货方"
name=
'receiverName'
><
span
>
{
query
.
receiverName
}
/
{
query
.
receiverPhone
}
</
span
></
Form
.
Item
>
<
Form
.
Item
label=
"收货地址"
name=
'receiverFullAddress'
>
<
Form
.
Item
label=
"收货地址"
name=
'receiverFullAddress'
>
...
...
src/pages/logistics/colorTag.ts
View file @
27eac8db
/*
/*
* @Author: LeeJiancong
* @Author: LeeJiancong
* @Date: 2020-07-30 17:23:48
* @Date: 2020-07-30 17:23:48
* @LastEditors: LeeJiancong
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-30 17:24:49
* @LastEditTime: 2020-07-30 17:24:49
*/
*/
export
default
{
export
default
{
default
:
{
default
:
{
padding
:
'2px 5px'
,
padding
:
'2px 5px'
,
background
:
'rgba(244,245,247,1)'
,
background
:
'rgba(244,245,247,1)'
,
borderRadius
:
'4px'
borderRadius
:
'4px'
},
},
confirm
:
{
confirm
:
{
color
:
'#3F7ED2'
,
color
:
'#3F7ED2'
,
padding
:
'2px 5px'
,
padding
:
'2px 5px'
,
background
:
'rgba(240, 248, 255, 1)'
,
background
:
'rgba(240, 248, 255, 1)'
,
borderRadius
:
'4px'
borderRadius
:
'4px'
},
},
success
:
{
success
:
{
color
:
'#00B37A'
,
color
:
'#00B37A'
,
padding
:
'2px 5px'
,
padding
:
'2px 5px'
,
background
:
'rgba(235,247,242,1)'
,
background
:
'rgba(235,247,242,1)'
,
borderRadius
:
'4px'
borderRadius
:
'4px'
},
},
warn
:
{
warn
:
{
color
:
'#E63F3B'
,
color
:
'#E63F3B'
,
padding
:
'2px 5px'
,
padding
:
'2px 5px'
,
background
:
'rgba(255,235,230,1)'
,
background
:
'rgba(255,235,230,1)'
,
borderRadius
:
'4px'
borderRadius
:
'4px'
}
},
}
error
:
{
\ No newline at end of file
color
:
'#ff0404'
,
padding
:
'2px 5px'
,
background
:
'rgba(247,235,235,1)'
,
borderRadius
:
'4px'
}
}
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
View file @
27eac8db
...
@@ -174,7 +174,8 @@ const OrderList: React.FC<ListProps> = (props) => {
...
@@ -174,7 +174,8 @@ const OrderList: React.FC<ListProps> = (props) => {
render
:
(
text
:
any
,
reconds
:
any
)
=>
{
render
:
(
text
:
any
,
reconds
:
any
)
=>
{
let
component
:
ReactNode
=
null
let
component
:
ReactNode
=
null
if
(
text
==
3
)
{
if
(
text
==
3
)
{
component
=
<><
span
style=
{
statuStyle
.
success
}
>
不接受物流单
</
span
></>
//外部状态1-待提交2-待确认3-不接受物流单4-接受物流单
component
=
<><
span
style=
{
statuStyle
.
error
}
>
不接受物流单
</
span
></>
}
else
if
(
text
==
4
)
{
}
else
if
(
text
==
4
)
{
component
=
<><
span
style=
{
statuStyle
.
warn
}
>
接受物流单
</
span
></>
component
=
<><
span
style=
{
statuStyle
.
warn
}
>
接受物流单
</
span
></>
}
else
if
(
text
==
2
)
{
}
else
if
(
text
==
2
)
{
...
@@ -194,7 +195,7 @@ const OrderList: React.FC<ListProps> = (props) => {
...
@@ -194,7 +195,7 @@ const OrderList: React.FC<ListProps> = (props) => {
<>
<>
{
{
(
record
.
status
===
1
||
record
.
status
===
4
)
&&
(
record
.
status
===
1
||
record
.
status
===
3
)
&&
<
Button
type=
"link"
onClick=
{
()
=>
toEdit
(
record
.
id
)
}
>
编辑
</
Button
>
<
Button
type=
"link"
onClick=
{
()
=>
toEdit
(
record
.
id
)
}
>
编辑
</
Button
>
}
}
...
...
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