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
shenshaokai
jinfa-platform
Commits
e303e9b6
Commit
e303e9b6
authored
Apr 22, 2022
by
Gavin Peng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复计划送货协同bug
parent
6cb72ac5
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
30 additions
and
29 deletions
+30
-29
label.ts
src/pages/order/constants/label.ts
+3
-0
details.tsx
...r/deliveryPlanCollaboration/deliveryPlanAwait/details.tsx
+5
-6
details.tsx
...r/deliveryPlanCollaboration/deliveryPlanQuery/details.tsx
+16
-17
details.tsx
...r/deliveryPlanManagement/deliveryPlanAwaitB2B/details.tsx
+1
-1
create.tsx
...er/deliveryPlanManagement/deliveryPlanAwaitSRM/create.tsx
+1
-1
details.tsx
...r/deliveryPlanManagement/deliveryPlanAwaitSRM/details.tsx
+1
-1
update.tsx
...er/deliveryPlanManagement/deliveryPlanAwaitSRM/update.tsx
+1
-1
details.tsx
...rder/deliveryPlanManagement/deliveryPlanQuery/details.tsx
+1
-1
update.tsx
...order/deliveryPlanManagement/deliveryPlanQuery/update.tsx
+1
-1
No files found.
src/pages/order/constants/label.ts
View file @
e303e9b6
...
...
@@ -61,6 +61,9 @@ export const DeliveryPlanRemark = '最长600个字符,300个汉字'
export
const
CreateDeliveryPlanTitleSRM
=
'新增送货计划(SRM)'
export
const
CreateDeliveryPlanTitleB2B
=
'新增送货计划(B2B)'
export
const
NoticeGenerated
=
'生成送货通知单'
export
const
DeliveryNoteGenerated
=
'生成送货单'
export
const
AlreadyNoticeGenerated
=
'已生成送货通知单'
export
const
AlreadyDeliveryNoteGenerated
=
'已生成送货单'
...
...
src/pages/order/deliveryPlanCollaboration/deliveryPlanAwait/details.tsx
View file @
e303e9b6
...
...
@@ -10,7 +10,7 @@ import _ from 'lodash'
import
AnchorPage
,
{
AnchorsItem
}
from
'@/components/AnchorPage'
import
{
Button
,
Space
,
Spin
,
Steps
,
Table
,
Tag
}
from
'antd'
import
{
CaretDownOutlined
,
CaretRightOutlined
,
CheckCircleOutlined
}
from
'@ant-design/icons'
import
{
Circulation
,
BaseInfo
as
base_Info
,
Purchaser
,
SubmitDeliveryPlan
,
Supplier
,
ConfirmDeliveryPlan
,
PlanNumber
,
SupplyMember
,
PlanSummary
,
PlanningCycle
,
ExternalState
,
PlannedDelivery
,
ExternalRoamRecord
,
SupplyMembers
Label
,
}
from
'../../constants'
import
{
Circulation
,
BaseInfo
as
base_Info
,
Purchaser
,
SubmitDeliveryPlan
,
Supplier
,
ConfirmDeliveryPlan
,
PlanNumber
,
PlanSummary
,
PlanningCycle
,
ExternalState
,
PlannedDelivery
,
Buyer
Label
,
}
from
'../../constants'
import
BaseInfo
from
'@/components/BaseInfo/BaseInfo'
import
{
columnB2B
,
columnSRM
,
ExternalRoamRecordTableColumn
,
initExpandIconColumn
}
from
'../../constants/page-table-column'
import
CustomizedModal
,
{
SubmitFeedback
}
from
'../../components/customizedModal'
...
...
@@ -32,7 +32,6 @@ const DeliveryPlanCollaborationAwaitDetails: React.FC = () => {
Circulation
,
base_Info
,
PlannedDelivery
,
ExternalRoamRecord
,
])
const
[
spinning
,
setSpinning
]
=
useState
<
boolean
>
(
false
)
...
...
@@ -123,7 +122,7 @@ const DeliveryPlanCollaborationAwaitDetails: React.FC = () => {
return
(<
Spin
spinning=
{
spinning
}
>
<
AnchorPage
title=
{
details
?.
planNo
}
title=
{
`${details?.digest} | ${details?.planNo}`
}
onBack=
{
()
=>
history
.
goBack
()
}
anchors=
{
iAnchors
}
extra=
{
...
...
@@ -147,14 +146,14 @@ const DeliveryPlanCollaborationAwaitDetails: React.FC = () => {
}
>
<
Steps
progressDot
current=
{
details
?.
outerStatus
-
1
}
>
<
Steps
.
Step
title=
{
Purchaser
}
description=
{
SubmitDeliveryPlan
}
/>
<
Steps
.
Step
title=
{
Supplier
}
description=
{
ConfirmDeliveryPlan
}
/>
<
Steps
.
Step
title=
{
SubmitDeliveryPlan
}
description=
{
Purchaser
}
/>
<
Steps
.
Step
title=
{
ConfirmDeliveryPlan
}
description=
{
Supplier
}
/>
</
Steps
>
</
BaseInfo
>
<
BaseInfo
className=
'mt-16'
title=
{
base_Info
.
name
}
id=
{
base_Info
.
key
}
>
<
BaseInfo
.
BaseInfoItem
label=
{
PlanNumber
}
>
{
details
?.
planNo
}
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
{
SupplyMembers
Label
}
>
{
details
?.
vendorMemberName
}
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
{
Buyer
Label
}
>
{
details
?.
vendorMemberName
}
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
{
PlanSummary
}
>
{
details
?.
digest
}
</
BaseInfo
.
BaseInfoItem
>
...
...
src/pages/order/deliveryPlanCollaboration/deliveryPlanQuery/details.tsx
View file @
e303e9b6
...
...
@@ -8,11 +8,11 @@ import { history } from 'umi'
import
moment
from
'moment'
import
_
from
'lodash'
import
AnchorPage
,
{
AnchorsItem
}
from
'@/components/AnchorPage'
import
{
B
adge
,
Button
,
message
,
Modal
,
Space
,
Spin
,
Steps
,
Table
,
Tag
,
Tooltip
}
from
'antd'
import
{
B
utton
,
message
,
Space
,
Spin
,
Steps
,
Table
,
Tag
}
from
'antd'
import
{
CaretDownOutlined
,
CaretRightOutlined
,
CheckCircleOutlined
}
from
'@ant-design/icons'
import
BaseInfo
from
'@/components/BaseInfo/BaseInfo'
import
CalendarModal
from
'../../components/CalendarModal'
import
{
BaseInfo
as
base_Info
,
Circulation
,
ConfirmDeliveryPlan
,
External
RoamRecord
,
ExternalState
,
PlanMaterial
,
PlanningCycle
,
PlanNumber
,
PlanSummary
,
Purchaser
,
Remarks
,
SubmitDeliveryPlan
,
Supplier
,
SupplyMember
,
SupplyMembersLabel
,
PlannedDelivery
,
AlreadyNoticeGenerated
,
AlreadyDeliveryNot
eGenerated
}
from
'../../constants'
import
{
BaseInfo
as
base_Info
,
Circulation
,
ConfirmDeliveryPlan
,
External
State
,
PlanMaterial
,
PlanningCycle
,
PlanNumber
,
PlanSummary
,
Purchaser
,
SubmitDeliveryPlan
,
Supplier
,
SupplyMembersLabel
,
PlannedDelivery
,
BuyerLabel
,
DeliveryNoteGenerated
,
Notic
eGenerated
}
from
'../../constants'
import
{
columnB2B
,
columnSRM
,
ExternalRoamRecordTableColumn
,
initExpandIconColumn
}
from
'../../constants/page-table-column'
import
{
getDayAll
,
godAtob
,
integrationArrToObj
,
integrationOjb
,
newMapValues
,
TagStatus
}
from
'../../utils'
import
{
getOrderDeliveryPlanDeliveryHistory
,
getOrderDeliveryPlanDeliveryOrder
,
getOrderDeliveryPlanDetail
,
getOrderDeliveryPlanDetailProductPage
,
getOrderDeliveryPlanNoticeOrder
}
from
'@/services/OrderNewV2Api'
...
...
@@ -36,7 +36,7 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
const
[
iAnchors
,
setIAnchors
]
=
useState
<
AnchorsItem
[]
>
([
Circulation
,
base_Info
,
PlannedDelivery
,
deliveryPlanType
===
'1'
?
PlannedDelivery
:
PlanMaterial
,
])
const
[
spinning
,
setSpinning
]
=
useState
<
boolean
>
(
false
)
...
...
@@ -51,13 +51,12 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
// 动态 expandIconColumn
const
[
expandIconColumn
,
setExpandIconColumn
]
=
useState
<
any
>
(
initExpandIconColumn
)
const
expandIconRowSelection
=
(
sku
Id
:
string
)
=>
{
const
expandIconRowSelection
=
(
planProduct
Id
:
string
)
=>
{
return
{
onChange
:
(
selectedRowKeys
:
React
.
Key
[],
selectedRows
:
any
[])
=>
{
// TODO 挂坑 ---> 父级rowKey(skuId)由于数据返回可能不是唯一值, 后续可能出现重复
// console.log(`expandIconRowSelection -> selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows)
// console.log('selectedRowKeys :>> ', skuId, '====>', selectedRowKeys)
selectedTableItem
.
set
(
sku
Id
,
selectedRowKeys
)
selectedTableItem
.
set
(
planProduct
Id
,
selectedRowKeys
)
},
}
}
...
...
@@ -70,7 +69,7 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
dataSource=
{
record
.
orders
}
pagination=
{
false
}
tableLayout=
"fixed"
rowSelection=
{
expandIconRowSelection
(
record
.
sku
Id
)
}
rowSelection=
{
expandIconRowSelection
(
record
.
planProduct
Id
)
}
/>
</
div
>
}
...
...
@@ -97,7 +96,7 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
getOrderDeliveryPlanDetailProductPage
({
id
,
current
:
'1'
,
pageSize
:
'
10
'
pageSize
:
'
999
'
}).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
const
assemble
=
res
.
data
.
data
.
map
(
item
=>
{
...
...
@@ -205,7 +204,7 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
return
(
<
Spin
spinning=
{
spinning
}
>
<
AnchorPage
title=
{
details
?.
planNo
}
title=
{
`${details?.digest} | ${details?.planNo}`
}
onBack=
{
()
=>
history
.
goBack
()
}
anchors=
{
iAnchors
}
extra=
{
...
...
@@ -213,9 +212,9 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
{
/* 条件渲染 */
}
{
pageBtn
===
'notice'
?
<
Button
type=
'primary'
icon=
{
<
CheckCircleOutlined
/>
}
onClick=
{
()
=>
handleSubmitVerify
(
'Notice'
)
}
>
生成送货通知单
</
Button
>
?
<
Button
type=
'primary'
icon=
{
<
CheckCircleOutlined
/>
}
onClick=
{
()
=>
handleSubmitVerify
(
'Notice'
)
}
>
{
NoticeGenerated
}
</
Button
>
:
pageBtn
===
'deliveryNote'
?
<
Button
type=
'primary'
icon=
{
<
CheckCircleOutlined
/>
}
onClick=
{
()
=>
handleSubmitVerify
(
'DeliveryNote'
)
}
>
生成送货单
</
Button
>
?
<
Button
type=
'primary'
icon=
{
<
CheckCircleOutlined
/>
}
onClick=
{
()
=>
handleSubmitVerify
(
'DeliveryNote'
)
}
>
{
DeliveryNoteGenerated
}
</
Button
>
:
null
}
</
Space
>
...
...
@@ -235,26 +234,26 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
}
>
<
Steps
progressDot
current=
{
details
?.
status
===
4
?
1
:
0
}
>
<
Steps
.
Step
title=
{
Purchaser
}
description=
{
SubmitDeliveryPlan
}
/>
<
Steps
.
Step
title=
{
Supplier
}
description=
{
ConfirmDeliveryPlan
}
/>
<
Steps
.
Step
title=
{
SubmitDeliveryPlan
}
description=
{
Purchaser
}
/>
<
Steps
.
Step
title=
{
ConfirmDeliveryPlan
}
description=
{
Supplier
}
/>
</
Steps
>
</
BaseInfo
>
<
BaseInfo
className=
'mt-16'
title=
{
base_Info
.
name
}
id=
{
base_Info
.
key
}
>
<
BaseInfo
.
BaseInfoItem
label=
{
PlanNumber
}
>
{
details
?.
planNo
}
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
{
SupplyMembersLabel
}
>
{
details
?.
vendorMemberName
}
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
{
PlanningCycle
}
>
{
moment
(
details
?.
planStartTime
).
format
(
'YYYY-MM-DD'
)
}
~
{
moment
(
details
?.
planEndTime
).
format
(
'YYYY-MM-DD'
)
}
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
{
BuyerLabel
}
>
{
details
?.
vendorMemberName
}
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
{
PlanSummary
}
>
{
details
?.
digest
}
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
{
PlanningCycle
}
>
{
moment
(
details
?.
planStartTime
).
format
(
'YYYY-MM-DD'
)
}
~
{
moment
(
details
?.
planEndTime
).
format
(
'YYYY-MM-DD'
)
}
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
{
ExternalState
}
>
<
Tag
color=
{
tagStatus
.
getTagStyle
(
details
?.
status
).
bgColor
}
>
<
span
style=
{
{
color
:
tagStatus
.
getTagStyle
(
details
?.
status
).
fontColor
}
}
>
{
statusTxt
.
get
(
details
?.
status
)
}
</
span
>
</
Tag
>
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
>
<
BaseInfo
className=
'mt-16'
title=
{
PlanMaterial
.
name
}
id=
{
PlanMaterial
.
key
}
cols=
{
1
}
>
<
BaseInfo
className=
'mt-16'
title=
{
deliveryPlanType
===
'1'
?
PlannedDelivery
.
name
:
PlanMaterial
.
name
}
id=
{
deliveryPlanType
===
'1'
?
PlannedDelivery
.
key
:
PlanMaterial
.
key
}
cols=
{
1
}
>
{
/* B2B 显示计划送货物料,SRM显示计划送货商品 */
}
<
Table
// defaultExpandAllRows
...
...
src/pages/order/deliveryPlanManagement/deliveryPlanAwaitB2B/details.tsx
View file @
e303e9b6
...
...
@@ -108,7 +108,7 @@ const DeliveryPlanAwaitB2BDetails: React.FC = () => {
return
(<>
<
AnchorPage
title=
{
`${details?.digest}
|
${details?.planNo}`
}
title=
{
`${details?.digest}
|
${details?.planNo}`
}
onBack=
{
()
=>
history
.
goBack
()
}
anchors=
{
iAnchors
}
>
...
...
src/pages/order/deliveryPlanManagement/deliveryPlanAwaitSRM/create.tsx
View file @
e303e9b6
...
...
@@ -227,7 +227,7 @@ const DeliveryPlanAwaitSRMCreate: React.FC = () => {
label=
{
PlanSummary
}
name=
'planSummaryText'
rules=
{
[
{
required
:
fals
e
,
message
:
'请选择'
}
{
required
:
tru
e
,
message
:
'请选择'
}
]
}
>
<
Input
/>
...
...
src/pages/order/deliveryPlanManagement/deliveryPlanAwaitSRM/details.tsx
View file @
e303e9b6
...
...
@@ -102,7 +102,7 @@ const DeliveryPlanAwaitSRMDetails: React.FC = () => {
return
(
<
AnchorPage
title=
{
`${details?.digest}
|
${details?.planNo}`
}
title=
{
`${details?.digest}
|
${details?.planNo}`
}
onBack=
{
()
=>
history
.
goBack
()
}
anchors=
{
iAnchors
}
>
...
...
src/pages/order/deliveryPlanManagement/deliveryPlanAwaitSRM/update.tsx
View file @
e303e9b6
...
...
@@ -169,7 +169,7 @@ const DeliveryPlanAwaitSRMUpdate: React.FC = () => {
return
(
<
Spin
spinning=
{
spinning
}
>
<
AnchorPage
title=
{
`${details?.digest}
|
${details?.planNo}`
}
title=
{
`${details?.digest}
|
${details?.planNo}`
}
onBack=
{
()
=>
history
.
goBack
()
}
anchors=
{
iAnchors
}
extra=
{
...
...
src/pages/order/deliveryPlanManagement/deliveryPlanQuery/details.tsx
View file @
e303e9b6
...
...
@@ -106,7 +106,7 @@ const DeliveryPlanManagementDetails: React.FC = () => {
return
(
<
AnchorPage
title=
{
`${details?.digest}
|
${details?.planNo}`
}
title=
{
`${details?.digest}
|
${details?.planNo}`
}
onBack=
{
()
=>
history
.
goBack
()
}
anchors=
{
iAnchors
}
>
...
...
src/pages/order/deliveryPlanManagement/deliveryPlanQuery/update.tsx
View file @
e303e9b6
...
...
@@ -169,7 +169,7 @@ const DeliveryPlanManagementUpdate: React.FC = () => {
return
(
<
Spin
spinning=
{
spinning
}
>
<
AnchorPage
title=
{
`${details?.digest}
|
${details?.planNo}`
}
title=
{
`${details?.digest}
|
${details?.planNo}`
}
onBack=
{
()
=>
history
.
goBack
()
}
anchors=
{
iAnchors
}
extra=
{
...
...
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