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
0efdc615
Commit
0efdc615
authored
Jan 10, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理新增请购单订单获取供应商配置时间段传会员参数异常
parent
386e40b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
index.ts
...ransaction/purchaseOrder/orderCollectB2b/effects/index.ts
+11
-2
index.tsx
...pages/transaction/purchaseOrder/orderCollectB2b/index.tsx
+1
-1
No files found.
src/pages/transaction/purchaseOrder/orderCollectB2b/effects/index.ts
View file @
0efdc615
...
@@ -113,9 +113,18 @@ export interface JumpFormValueType {
...
@@ -113,9 +113,18 @@ export interface JumpFormValueType {
}
}
// 异步处理发货 预约时间 时间段配置
// 异步处理发货 预约时间 时间段配置
export
const
useOrderDeliverTimeEffect
=
async
(
ctx
:
ISchemaFormActions
|
ISchemaFormAsyncActions
,
shopId
,
jumpFormValue
?:
JumpFormValueType
)
=>
{
export
const
useOrderDeliverTimeEffect
=
async
(
ctx
:
ISchemaFormActions
|
ISchemaFormAsyncActions
,
shopId
,
jumpFormValue
:
JumpFormValueType
)
=>
{
const
{
pageStatus
}
=
usePageStatus
()
if
(
shopId
)
{
if
(
shopId
)
{
const
{
vendorMemberId
,
vendorRoleId
}
=
jumpFormValue
let
vendorMemberId
,
vendorRoleId
;
if
(
pageStatus
===
PageStatus
.
ADD
)
{
vendorMemberId
=
ctx
.
getFieldValue
(
'vendorMemberId'
)
vendorRoleId
=
ctx
.
getFieldValue
(
'vendorRoleId'
)
}
else
if
(
pageStatus
===
PageStatus
.
EDIT
)
{
vendorMemberId
=
jumpFormValue
.
vendorMemberId
vendorRoleId
=
jumpFormValue
.
vendorRoleId
}
console
.
log
(
vendorMemberId
,
vendorRoleId
,
'jumpFormValue'
)
const
{
code
,
data
}
=
await
getOrderBuyerFindDeliveryDate
({
shopId
,
vendorMemberId
,
vendorRoleId
})
const
{
code
,
data
}
=
await
getOrderBuyerFindDeliveryDate
({
shopId
,
vendorMemberId
,
vendorRoleId
})
if
(
code
!==
1000
)
{
return
false
;
}
if
(
code
!==
1000
)
{
return
false
;
}
...
...
src/pages/transaction/purchaseOrder/orderCollectB2b/index.tsx
View file @
0efdc615
...
@@ -432,7 +432,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = () => {
...
@@ -432,7 +432,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = () => {
return
(<
div
style=
{
{
margin
:
-
24
}
}
>
return
(<
div
style=
{
{
margin
:
-
24
}
}
>
<
FormDetailContext
.
Provider
value=
{
providerValue
}
>
<
FormDetailContext
.
Provider
value=
{
providerValue
}
>
<
FormDetailHeader
<
FormDetailHeader
title=
{
id
?
intl
.
formatMessage
({
id
:
'purchaseOrder.
add'
}):
intl
.
formatMessage
({
id
:
'purchaseOrder.edit
'
})
}
title=
{
id
?
intl
.
formatMessage
({
id
:
'purchaseOrder.
edit'
}):
intl
.
formatMessage
({
id
:
'purchaseOrder.add
'
})
}
schema=
{
orderAddSchema
}
schema=
{
orderAddSchema
}
extraRight=
{
[
extraRight=
{
[
<
Button
key=
"1"
onClick=
{
()
=>
addSchemaAction
.
submit
()
}
loading=
{
btnLoading
}
type=
"primary"
icon=
{
<
SaveOutlined
/>
}
>
<
Button
key=
"1"
onClick=
{
()
=>
addSchemaAction
.
submit
()
}
loading=
{
btnLoading
}
type=
"primary"
icon=
{
<
SaveOutlined
/>
}
>
...
...
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