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

fix:修复新增订单支付方式字段设值异常

parent b39718ee
...@@ -87,7 +87,6 @@ export const PayInfoCell:React.FC<PayInfoCellProps> = ({ ...@@ -87,7 +87,6 @@ export const PayInfoCell:React.FC<PayInfoCellProps> = ({
} }
case 'select': { case 'select': {
const { options, ...rest } = formItemProps const { options, ...rest } = formItemProps
console.log(originOptions)
// 支付方式 // 支付方式
if (dataIndex === 'payWay') { if (dataIndex === 'payWay') {
return <Select ref={formItemRef} return <Select ref={formItemRef}
...@@ -116,7 +115,6 @@ export const PayInfoCell:React.FC<PayInfoCellProps> = ({ ...@@ -116,7 +115,6 @@ export const PayInfoCell:React.FC<PayInfoCellProps> = ({
} }
} }
console.log(type, originOptions, childOptions)
} }
let childNode = children; let childNode = children;
......
...@@ -205,7 +205,6 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => { ...@@ -205,7 +205,6 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
// theInvoiceInfo: value.theInvoiceInfo // theInvoiceInfo: value.theInvoiceInfo
} }
// 校验是否选择支付渠道 // 校验是否选择支付渠道
console.log(params, 'params')
let judgementByPay = params.paymentInformationResponses.map(item => { let judgementByPay = params.paymentInformationResponses.map(item => {
if(item.channel && item.payWay){ if(item.channel && item.payWay){
return true return true
......
...@@ -99,7 +99,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions ...@@ -99,7 +99,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
...item, ...item,
...row, ...row,
}); });
ctx.setFieldValue('paymentInfor+mationResponses', newData) ctx.setFieldValue('paymentInformationResponses', newData)
resolve({item, newData}) resolve({item, newData})
}) })
......
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