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

fix:

parent adad797b
...@@ -3,7 +3,7 @@ import { Row, Col, Tag, Modal } from 'antd' ...@@ -3,7 +3,7 @@ import { Row, Col, Tag, Modal } from 'antd'
import MellowCard from '@/components/MellowCard' import MellowCard from '@/components/MellowCard'
import { OrderDetailContext } from '../../_public/order/context' import { OrderDetailContext } from '../../_public/order/context'
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
import { DELIVERY_TYPE } from '@/constants/order' import { DELIVERY_TYPE, OrderKindType } from '@/constants/order'
import style from './index.less' import style from './index.less'
import ContractList from '../ContractList' import ContractList from '../ContractList'
import cx from 'classnames' import cx from 'classnames'
...@@ -56,29 +56,25 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => { ...@@ -56,29 +56,25 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => {
</div> </div>
} }
</div>, resetCol: {flex: '1 1 100%'} }, </div>, resetCol: {flex: '1 1 100%'} },
{ title: '包装要求:', name: 'pageRequire' }, { title: '包装要求', name: 'requirement', render: (t, d) => d.requirement.detail?.pageRequire || '' },
{ title: '其他要求:', name: 'restsRequire' }, { title: '其他要求', name: 'requirement', render: (t, d) => d.requirement.detail?.restsRequire || '' },
] ]
if(data.orderModel > 30) {
otherInfo.shift()
}
return ( return (
<> <>
<Row style={{ marginTop: 24 }} gutter={24}> <Row style={{ marginTop: 24 }} gutter={24}>
<Col span={(data.externalStateName !== '不接受订单') || (data.orderModel > 30) ? 15 : 12}> <Col span={(data.externalStateName !== '不接受订单') || (data.orderKind === OrderKindType.SRM_ORDER) ? 15 : 12}>
<MellowCard title='交易信息' fullHeight> <MellowCard title='交易信息' fullHeight>
<RenderCard infoList={payInfo} dataSource={consignee} /> <RenderCard infoList={payInfo} dataSource={consignee} />
</MellowCard> </MellowCard>
</Col> </Col>
<Col span={(data.externalStateName !== '不接受订单') || (data.orderModel > 30) ? 9: 6}> <Col span={(data.externalStateName !== '不接受订单') || (data.orderKind === OrderKindType.SRM_ORDER) ? 9: 6}>
<MellowCard title='其他信息' fullHeight> <MellowCard title='其他信息' fullHeight>
<RenderCard infoList={otherInfo} dataSource={data} /> <RenderCard infoList={otherInfo} dataSource={data} />
</MellowCard> </MellowCard>
</Col> </Col>
{ {
(data.externalStateName !== '不接受订单') || (data.orderModel > 30) ? (data.orderKind === OrderKindType.SRM_ORDER) || !data.hasContract ?
null null
: :
<Col span={6}> <Col span={6}>
......
...@@ -117,7 +117,7 @@ const PurchaseOrder: React.FC<PurchaseOrderProps> = (props) => { ...@@ -117,7 +117,7 @@ const PurchaseOrder: React.FC<PurchaseOrderProps> = (props) => {
const handleCancel = async (id) => { const handleCancel = async (id) => {
destoryRef.current.setVisible(true) destoryRef.current.setVisible(true)
destroyActions.setFieldValue('id', id) destroyActions.setFieldValue('orderId', id)
} }
/** 参照后台数据生成 */ /** 参照后台数据生成 */
...@@ -250,12 +250,12 @@ const PurchaseOrder: React.FC<PurchaseOrderProps> = (props) => { ...@@ -250,12 +250,12 @@ const PurchaseOrder: React.FC<PurchaseOrderProps> = (props) => {
labelAlign: 'top', labelAlign: 'top',
}, },
properties: { properties: {
id: { orderId: {
type: 'number', type: 'number',
title: '当前id', title: '当前id',
visible: false, visible: false,
}, },
cancelReason: { reason: {
type: 'textarea', type: 'textarea',
"x-component-props": { "x-component-props": {
rows: 4, rows: 4,
......
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