Commit 25d68206 authored by 前端-许佳敏's avatar 前端-许佳敏

fix:代码修复

parent a3b4fca8
......@@ -136,6 +136,8 @@ export const useOrderFormInitEffect = (ctx: ISchemaFormActions | ISchemaFormAsyn
ctx.setFieldValue('supplyMembersId', initValue.supplyMembersId)
ctx.setFieldValue('supplyMembersRoleId', initValue.supplyMembersRoleId)
ctx.setFieldValue('supplyMembersName', initValue.supplyMembersName)
initValue.idList && ctx.setFieldValue('idList', initValue.idList)
initValue.productType && ctx.setFieldValue('productType', initValue.productType)
ctx.setFieldValue('orderProductRequests', await filterProductDataById([], productInfo.map(v => {
return {
......
......@@ -173,6 +173,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
v.price = 1
v.isMemberPrice = Number(v.isMemberPrice)
v.memberPrice = parseInt(v.memberPrice)
v.imgUrl = v.mainPic
// v.productId = v.id
// v.productName = v.name
// v.category = v.customerCategoryName
......@@ -186,7 +187,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
...omit(value.deliveryAddresId, ['id']),
// 冗余发票信息
theInvoiceId: value.theInvoiceId ? value.theInvoiceId.id : undefined,
theInvoiceInfo: value.theInvoiceId || null
// theInvoiceInfo: value.theInvoiceId || null
}
setBtnLoading(true)
fnResult = id ? await PublicApi.postOrderProcurementOrderUpdate({...params, id}) : await PublicApi.postOrderProcurementOrderAddReinsurancePolicy(params)
......
......@@ -176,6 +176,15 @@ const basicInfo: ISchema = {
type: 'string',
display: false
},
idList: {
type: 'array',
display: false
},
productType: {
type: 'number',
display: false
},
orderNo: {
type: 'string',
title: '订单编号',
......
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