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
linweijiong
jinfa-platform
Commits
fe38862f
Commit
fe38862f
authored
Dec 03, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:处理销售订单确认回单和继续发货按钮显示异常
parent
27c98491
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
index.tsx
src/pages/transaction/components/orderSaleRecord/index.tsx
+12
-9
index.tsx
...transaction/purchaseOrder/orderCollect/constant/index.tsx
+4
-8
No files found.
src/pages/transaction/components/orderSaleRecord/index.tsx
View file @
fe38862f
...
...
@@ -25,11 +25,12 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
const
isDeleved
=
pathname
.
indexOf
(
'readyConfirmDelevedOrder'
)
!==
-
1
// 是否是确认回单页
const
isReturn
=
pathname
.
indexOf
(
'readyConfirmReturnOrder'
)
!==
-
1
console
.
log
(
isPreview
,
isDeleved
,
isReturn
)
// 用于储存已经修改过的订单id
const
dataRef
=
useRef
<
any
>
([])
const
{
data
,
reloadFormData
}
=
useContext
(
OrderDetailContext
)
const
{
orderReceivingStatisticsResponses
,
orderDeliveryDetailsResponses
,
orderModel
}
=
data
const
{
orderReceivingStatisticsResponses
,
orderDeliveryDetailsResponses
,
orderModel
,
externalState
}
=
data
const
creditsCommodity
=
(
orderModel
===
24
||
orderModel
===
25
)
// 积分或渠道积分下单模式
const
outOrderCols
:
any
[]
=
[
...
...
@@ -113,8 +114,8 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
key
:
'differenceCount'
,
},
]
const
sideChildrenCols
:
any
[]
=
[
{
title
:
'商品ID'
,
...
...
@@ -341,10 +342,13 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
childrenDataKey=
'orderDeliveryProducts'
dataSource=
{
orderDeliveryDetailsResponses
}
/>
<
Space
style=
{
{
marginTop
:
18
,
display
:
"flex"
,
justifyContent
:
"flex-end"
}
}
>
<
Button
type=
"primary"
onClick=
{
handelReciveReturnOrder
}
>
确认本单全部发货单已收到回单
</
Button
>
<
Button
type=
"primary"
onClick=
{
handleContinueDeliver
}
>
继续发货
</
Button
>
</
Space
>
{
externalState
===
11
&&
!
isPreview
&&
isReturn
&&
<
Space
style=
{
{
marginTop
:
18
,
display
:
"flex"
,
justifyContent
:
"flex-end"
}
}
>
<
Button
type=
"primary"
onClick=
{
handelReciveReturnOrder
}
>
确认本单全部发货单已收到回单
</
Button
>
<
Button
type=
"primary"
onClick=
{
handleContinueDeliver
}
>
继续发货
</
Button
>
</
Space
>
}
</
Tabs
.
TabPane
>
}
</
Tabs
>
...
...
@@ -356,4 +360,4 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
OrderSaleRecord
.
defaultProps
=
{}
export
default
OrderSaleRecord
\ No newline at end of file
export
default
OrderSaleRecord
src/pages/transaction/purchaseOrder/orderCollect/constant/index.tsx
View file @
fe38862f
...
...
@@ -277,15 +277,11 @@ export const productInfoColumns: any[] = [
align
:
'left'
,
key
:
'unitPrice'
,
render
:
(
t
,
r
)
=>
{
// if(r?.commodityId) {
// return <PriceComp priceSection={r.unitPrice}/>
// } else {
// return r.price
// }
if
(
JSON
.
stringify
(
r
.
unitPrice
)
===
'{}'
)
{
return
r
.
price
}
else
{
// todo 还差需求报价的商品数据字段对比
if
(
r
?.
commodityId
)
{
return
<
PriceComp
priceSection=
{
r
.
unitPrice
}
/>
}
else
{
return
<
span
style=
{
{
color
:
'red'
}
}
>
¥
{
r
.
price
}
</
span
>
}
}
},
...
...
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