Commit 9fd8a0b9 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 处理现货下单/代客下单查询支付信息添加跨境字段

parent e3e72c5e
......@@ -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)) {
......
......@@ -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) {
......
......@@ -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)) {
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment