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

fix: 请购单转下单字段转换

parent 9b505c1a
......@@ -46,7 +46,7 @@ const RequisitionModalTable:React.FC<RequisitionModalTableProps> = (props) => {
schemaAction.setFieldValue('requisitionNo', item.requisitionNo)
schemaAction.setFieldValue('requisitionId', item.id)
schemaAction.setFieldValue('digest', item.digest)
schemaAction.setFieldValue('deliverDate', moment(item.deliverTime).format('YYYY-MM-DD HH:mm'))
schemaAction.setFieldValue('deliverDate', moment(item.advanceDeliveryDate).format('YYYY-MM-DD HH:mm'))
const { data } = await fetchOrderApi.getRequisitionPurchaseMaterielList({
requisitionId: item.id,
......
......@@ -137,8 +137,8 @@ export const requisitionColumns: any[] = [
},
{
title: getIntl().formatMessage({id: 'purchaseOrder.orderCollect.requisition.deliverTime'}),
dataIndex: 'deliverTime',
key: 'deliverTime',
dataIndex: 'advanceDeliveryDate',
key: 'advanceDeliveryDate',
},
{
title: getIntl().formatMessage({id: 'purchaseOrder.orderCollect.requisition.department'}),
......
......@@ -130,7 +130,7 @@ const AddRequisitionOrder:React.FC<AddRequisitionOrderProps> = (props) => {
requisitionId,
requisitionNo,
digest,
deliverTime,
advanceDeliveryDate,
vendorMemberName,
vendorMemberId,
vendorRoleId,
......@@ -138,7 +138,7 @@ const AddRequisitionOrder:React.FC<AddRequisitionOrderProps> = (props) => {
} = requisitionData
addSchemaAction.setFieldValue('requisitionId', requisitionId)
addSchemaAction.setFieldValue('requisitionNo', requisitionNo)
addSchemaAction.setFieldValue('deliverDate', moment(deliverTime).format('YYYY-MM-DD HH:mm'))
addSchemaAction.setFieldValue('deliverDate', moment(advanceDeliveryDate).format('YYYY-MM-DD HH:mm'))
addSchemaAction.setFieldValue('digest', digest)
addSchemaAction.setFieldValue('vendorMemberName', vendorMemberName)
addSchemaAction.setFieldValue('vendorMemberId', vendorMemberId)
......
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