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
9b505c1a
Commit
9b505c1a
authored
Apr 13, 2022
by
前端-彭佳文
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2-220418-order' into 'v2-220418'
fix: 暂时关闭选择日期验证 See merge request linkseeks-design/pro-platform!272
parents
d5a3fb12
9d23b6bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
create.tsx
...er/deliveryPlanManagement/deliveryPlanAwaitB2B/create.tsx
+4
-6
create.tsx
...er/deliveryPlanManagement/deliveryPlanAwaitSRM/create.tsx
+4
-6
No files found.
src/pages/order/deliveryPlanManagement/deliveryPlanAwaitB2B/create.tsx
View file @
9b505c1a
...
...
@@ -179,8 +179,8 @@ const DeliveryPlanAwaitB2BCreate: React.FC = () => {
// 获取计划送货
const
getPlannedDelivery
=
()
=>
{
getOrderDeliveryPlanOrderProductPage
({
startDate
:
selectedDate
[
0
],
endDate
:
selectedDate
[
1
],
//
startDate: selectedDate[0],
//
endDate: selectedDate[1],
memberId
:
selectedMember
.
memberId
,
roleId
:
selectedMember
.
roleId
,
roleType
:
ROLE_TYPE
,
...
...
@@ -205,13 +205,11 @@ const DeliveryPlanAwaitB2BCreate: React.FC = () => {
// 监听 选择日期 and 选择会员
useEffect
(()
=>
{
// 双条件满足 请求
if
(
!
_
.
isEmpty
(
selectedDate
)
&&
!
_
.
isEmpty
(
selectedMember
))
{
console
.
log
(
'订单能力 - 送货计划管理 - 待提交送货计划 B2B -----------:>> '
,
'双条件满足 请求 获取计划送货'
)
if
(
!
_
.
isEmpty
(
selectedMember
))
{
getPlannedDelivery
()
}
else
if
(
!
_
.
isEmpty
(
selectedDate
)
&&
!
_
.
isEmpty
(
selectedMember
))
{
const
planSummaryText
=
`
${
selectedDate
[
0
]}
~
${
selectedDate
[
1
]}
${
selectedMember
.
name
}
${
DeliveryPlanText
}
`
form
.
setFieldsValue
({
planSummaryText
})
}
else
{
console
.
log
(
'订单能力 - 送货计划管理 - 待提交送货计划 B2B -----------:>> '
,
'条件暂未满足不调取接口获取'
)
}
},
[
selectedDate
,
selectedMember
])
...
...
src/pages/order/deliveryPlanManagement/deliveryPlanAwaitSRM/create.tsx
View file @
9b505c1a
...
...
@@ -181,8 +181,8 @@ const DeliveryPlanAwaitSRMCreate: React.FC = () => {
// 获取计划送货 物料
const
getPlannedDelivery
=
()
=>
{
getOrderDeliveryPlanOrderProductPage
({
startDate
:
selectedDate
[
0
],
endDate
:
selectedDate
[
1
],
//
startDate: selectedDate[0],
//
endDate: selectedDate[1],
memberId
:
selectedMember
.
memberId
,
roleId
:
selectedMember
.
roleId
,
roleType
:
ROLE_TYPE
,
...
...
@@ -207,13 +207,11 @@ const DeliveryPlanAwaitSRMCreate: React.FC = () => {
// 监听 选择日期 and 选择会员
useEffect
(()
=>
{
// 双条件满足 请求
if
(
!
_
.
isEmpty
(
selectedDate
)
&&
!
_
.
isEmpty
(
selectedMember
))
{
console
.
log
(
'订单能力 - 送货计划管理 - 待提交送货计划 SRM -----------:>> '
,
'双条件满足 请求 获取计划送货'
)
if
(
!
_
.
isEmpty
(
selectedMember
))
{
getPlannedDelivery
()
}
else
if
(
!
_
.
isEmpty
(
selectedDate
)
&&
!
_
.
isEmpty
(
selectedMember
))
{
const
planSummaryText
=
`
${
selectedDate
[
0
]}
~
${
selectedDate
[
1
]}
${
selectedMember
.
name
}
${
DeliveryPlanText
}
`
form
.
setFieldsValue
({
planSummaryText
})
}
else
{
console
.
log
(
'订单能力 - 送货计划管理 - 待提交送货计划 SRM -----------:>> '
,
'条件暂未满足不调取接口获取'
)
}
},
[
selectedDate
,
selectedMember
])
...
...
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