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

fix: 处理新增请购单订单获取供应商配置时间段传会员参数异常

parent 386e40b3
...@@ -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; }
......
...@@ -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 />}>
......
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