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

fix: 调整b2b下单配送时间段传参

parent 2143120e
......@@ -155,6 +155,7 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
})
} else if (checked.id === 6) { // 授信额度支付
console.log('选择了授信支付')
mobilePayFlag.current = 0
setIsSpin(true)
PublicApi.getPayCreditGetCredit({
parentMemberId: data.vendorMemberId,
......@@ -169,6 +170,7 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
setPayStep(1)
} else if (checked.id === 4) { // 余额支付
console.log('选择了余额支付')
mobilePayFlag.current = 0
setIsSpin(true)
PublicApi.getPayAssetAccountBalance({
fundMode: checked.fundMode,
......@@ -184,6 +186,7 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
setPayStep(1)
} else if(checked.id === 7) {
console.log('选择了货到付款')
mobilePayFlag.current = 0
setCurrent(5)
setPayStep(1)
} else if(checked.id === 2) {
......@@ -204,10 +207,12 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
handleSubmitPay()
} else if(checked.id === 100) {
console.log('选择了账期结算模式')
mobilePayFlag.current = 0
setCurrent(100)
setPayStep(1)
} else if(checked.id === 101) {
console.log('选择了月结结算模式')
mobilePayFlag.current = 0
setCurrent(101)
setPayStep(1)
}
......
......@@ -102,7 +102,6 @@ export const procurementProcessField = (value) => {
supplyMemberName: item.upperMemberName,
}
delete obj.imgUrl
delete obj.address
delete obj.logistics
return obj
})
......
......@@ -315,11 +315,13 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = () => {
telephone: addressDetail.tel,
defaultConsignee: !!addressDetail.isDefault,
}
if(params?.timeLine) {
params.consignee.deliverDate = `${params.deliverDate} ${params.timeLine} `
} else {
params.consignee.deliverDate = params.deliverDate
}
}
// 组合配送时间字段
if(params?.timeLine) {
params.deliverDate = `${params.deliverDate} ${params.timeLine}`
} else {
params.deliverDate = params.deliverDate
}
// 其他需求
......
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