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

fix: 处理订单收发货明细展开异常

parent 1ea8e835
...@@ -285,7 +285,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => { ...@@ -285,7 +285,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
deliveryDetails?.length > 0 && <Tabs.TabPane tab='订单收发货明细' key="2"> deliveryDetails?.length > 0 && <Tabs.TabPane tab='订单收发货明细' key="2">
<NestTable <NestTable
NestColumns={[sideOrderCols, sideChildrenCols]} NestColumns={[sideOrderCols, sideChildrenCols]}
rowKey='id' rowKey='batchNo'
childrenDataKey='products' childrenDataKey='products'
dataSource={deliveryDetails} dataSource={deliveryDetails}
/> />
......
...@@ -79,7 +79,7 @@ export const ProductTableCell:React.FC<ProductTableCellProps> = ({ ...@@ -79,7 +79,7 @@ export const ProductTableCell:React.FC<ProductTableCellProps> = ({
<Form.Item <Form.Item
className="customFormItem" className="customFormItem"
name={dataIndex} name={dataIndex}
initialValue={record[dataIndex] || ''} initialValue={record[dataIndex]}
rules={[ rules={[
{ {
required: true, required: true,
......
...@@ -22,8 +22,13 @@ const schema: ISchema = { ...@@ -22,8 +22,13 @@ const schema: ISchema = {
type: 'object', type: 'object',
"x-component": "mega-layout", "x-component": "mega-layout",
"x-component-props": { "x-component-props": {
// labelAlign: 'left',
// labelCol: 6,
grid: true,
autoRow: true,
labelCol: 4,
labelAlign: 'left', labelAlign: 'left',
labelCol: 6, columns: 2
}, },
properties: { properties: {
addresId: { addresId: {
...@@ -35,7 +40,10 @@ const schema: ISchema = { ...@@ -35,7 +40,10 @@ const schema: ISchema = {
message: '请选择发货地址', message: '请选择发货地址',
required: true required: true
} }
] ],
"x-mega-props": {
span: 1
}
}, },
deliveryTime: { deliveryTime: {
type: 'string', type: 'string',
...@@ -48,7 +56,8 @@ const schema: ISchema = { ...@@ -48,7 +56,8 @@ const schema: ISchema = {
} }
], ],
"x-mega-props": { "x-mega-props": {
full: true full: true,
span: 1
} }
}, },
logisticsNo: { logisticsNo: {
...@@ -63,7 +72,10 @@ const schema: ISchema = { ...@@ -63,7 +72,10 @@ const schema: ISchema = {
limitByte: true, limitByte: true,
maxByte: 20 maxByte: 20
}, },
] ],
"x-mega-props": {
span: 1
}
}, },
logisticsCompanyId: { logisticsCompanyId: {
type: 'string', type: 'string',
...@@ -74,7 +86,10 @@ const schema: ISchema = { ...@@ -74,7 +86,10 @@ const schema: ISchema = {
message: '请选择物流公司', message: '请选择物流公司',
required: true required: true
} }
] ],
"x-mega-props": {
span: 1
}
}, },
products: { products: {
type: 'array', type: 'array',
...@@ -86,6 +101,9 @@ const schema: ISchema = { ...@@ -86,6 +101,9 @@ const schema: ISchema = {
// expandable: "{{productChildren}}", // expandable: "{{productChildren}}",
// pagination: { size: 'small' } // pagination: { size: 'small' }
}, },
"x-mega-props": {
span: 2
}
}, },
address: { address: {
type: 'string', type: 'string',
...@@ -99,6 +117,7 @@ const schema: ISchema = { ...@@ -99,6 +117,7 @@ const schema: ISchema = {
} }
} }
} }
const OrderHandDeleveModal:React.FC<OrderHandDeleveModalProps> = (props) => { const OrderHandDeleveModal:React.FC<OrderHandDeleveModalProps> = (props) => {
const { data } = useContext(OrderDetailContext) const { data } = useContext(OrderDetailContext)
const dataRef = useRef<any>({}) const dataRef = useRef<any>({})
......
...@@ -343,7 +343,7 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => { ...@@ -343,7 +343,7 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
columns={outOrderCols} columns={outOrderCols}
dataSource={deliveries} dataSource={deliveries}
pagination={false} pagination={false}
rowKey="id" rowKey="productId"
/> />
</Tabs.TabPane> </Tabs.TabPane>
} }
...@@ -351,7 +351,7 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => { ...@@ -351,7 +351,7 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
deliveryDetails?.length > 0 && <Tabs.TabPane tab='订单收发货明细' key="2"> deliveryDetails?.length > 0 && <Tabs.TabPane tab='订单收发货明细' key="2">
<NestTable <NestTable
NestColumns={[sideOrderCols, sideChildrenCols]} NestColumns={[sideOrderCols, sideChildrenCols]}
rowKey='id' rowKey='batchNo'
childrenDataKey='products' childrenDataKey='products'
dataSource={deliveryDetails} dataSource={deliveryDetails}
/> />
......
...@@ -20,7 +20,8 @@ const ReadyConfirmDelevedOrderDetail: React.FC = () => { ...@@ -20,7 +20,8 @@ const ReadyConfirmDelevedOrderDetail: React.FC = () => {
// const isShowBtn = isHandDeleved || formContext.data?.orderDeliveryDetailsResponses?.some(v => v.interiorState === DeliverySideState.ADD_LOGISTICS_ORDER) // const isShowBtn = isHandDeleved || formContext.data?.orderDeliveryDetailsResponses?.some(v => v.interiorState === DeliverySideState.ADD_LOGISTICS_ORDER)
// 是否发过货 // 是否发过货
const isHandDeleved = Number(batchNo) <= 0 // const isHandDeleved = Number(batchNo) <= 0
const isHandDeleved = true
// 是否发货完成 // 是否发货完成
......
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