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
9fd8a0b9
Commit
9fd8a0b9
authored
Mar 20, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理现货下单/代客下单查询支付信息添加跨境字段
parent
e3e72c5e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
index.ts
...ansaction/purchaseOrder/orderCollectCash/effects/index.ts
+1
-1
usePaymentInfo.tsx
...n/purchaseOrder/orderCollectCash/model/usePaymentInfo.tsx
+1
-1
index.ts
src/pages/transaction/saleOrder/agentOrder/effects/index.ts
+1
-1
usePaymentInfo.tsx
...transaction/saleOrder/agentOrder/model/usePaymentInfo.tsx
+1
-1
No files found.
src/pages/transaction/purchaseOrder/orderCollectCash/effects/index.ts
View file @
9fd8a0b9
...
...
@@ -75,7 +75,7 @@ export const useProductTableChangeForPay = (ctx: ISchemaFormActions | ISchemaFor
if
(
pageStatus
===
PageStatus
.
ADD
)
{
// 新增下 需要支付信息生成支付次数
ctx
.
setFieldValue
(
'payments'
,
[])
// 变动后先 清空支付信息
const
shopId
=
ctx
.
getFieldValue
(
'shopId'
)
const
products
=
value
.
map
(
item
=>
({
productId
:
item
.
commodityId
,
skuId
:
item
.
id
}))
const
products
=
value
.
map
(
item
=>
({
productId
:
item
.
commodityId
,
skuId
:
item
.
id
,
crossBorder
:
item
.
isCrossBorder
}))
if
(
shopId
&&
products
?.
length
)
{
// 判断不存在物流 隐藏交付地址
if
(
!
value
.
some
(
item
=>
item
.
logistics
.
deliveryType
===
1
))
{
...
...
src/pages/transaction/purchaseOrder/orderCollectCash/model/usePaymentInfo.tsx
View file @
9fd8a0b9
...
...
@@ -44,7 +44,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
roleId
:
memberRoleId
,
shopId
:
products
[
0
][
'shopId'
],
orderMode
:
products
[
0
][
'orderMode'
],
products
:
products
.
map
(
item
=>
({
productId
:
item
.
commodityId
,
skuId
:
item
.
id
}))
products
:
products
.
map
(
item
=>
({
productId
:
item
.
commodityId
,
skuId
:
item
.
id
,
crossBorder
:
item
.
isCrossBorder
}))
},
{
ctlType
:
'none'
}).
then
(
res
=>
{
const
{
code
,
data
}
=
res
if
(
code
===
1000
)
{
...
...
src/pages/transaction/saleOrder/agentOrder/effects/index.ts
View file @
9fd8a0b9
...
...
@@ -75,7 +75,7 @@ export const useProductTableChangeForPay = (ctx: ISchemaFormActions | ISchemaFor
if
(
pageStatus
===
PageStatus
.
ADD
)
{
// 新增下 需要支付信息生成支付次数
ctx
.
setFieldValue
(
'payments'
,
[])
// 变动后先 清空支付信息
const
shopId
=
ctx
.
getFieldValue
(
'shopId'
)
const
products
=
value
.
map
(
item
=>
({
productId
:
item
.
commodityId
,
skuId
:
item
.
id
}))
const
products
=
value
.
map
(
item
=>
({
productId
:
item
.
commodityId
,
skuId
:
item
.
id
,
crossBorder
:
item
.
isCrossBorder
}))
if
(
shopId
&&
products
?.
length
)
{
// 判断不存在物流 隐藏交付地址
if
(
!
value
.
some
(
item
=>
item
.
logistics
.
deliveryType
===
1
))
{
...
...
src/pages/transaction/saleOrder/agentOrder/model/usePaymentInfo.tsx
View file @
9fd8a0b9
...
...
@@ -42,7 +42,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
const
getPayLists
=
(
memberId
,
memberRoleId
)
=>
{
postOrderVendorCreateAgentPaymentFind
({
shopId
:
products
[
0
][
'shopId'
],
products
:
products
.
map
(
item
=>
({
productId
:
item
.
commodityId
,
skuId
:
item
.
id
}))
products
:
products
.
map
(
item
=>
({
productId
:
item
.
commodityId
,
skuId
:
item
.
id
,
crossBorder
:
item
.
isCrossBorder
}))
},
{
ctlType
:
'none'
}).
then
(
res
=>
{
const
{
code
,
data
}
=
res
if
(
code
===
1000
)
{
...
...
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