Commit c83d3ab8 authored by FE-安焕焕's avatar FE-安焕焕 👣

修复样式问题

parent 0f1a01df
......@@ -28,7 +28,7 @@ const TableList = props => {
<td
className={[
'tableContent',
index < record.mchOrderSkuVoList.length - 1 ? 'border' : null,
index < record?.mchOrderSkuVoList?.length - 1 ? 'border' : null,
].join(' ')}
>
{item[key]}
......@@ -100,7 +100,7 @@ const TableList = props => {
title: '商品规格',
dataIndex: 'skuAttr',
key: 'skuAttr',
width: 100,
width: 200,
className: 'colStyle',
hideInSearch: true,
render: (_, record) => renderContent(record, 'skuAttr'),
......@@ -136,7 +136,7 @@ const TableList = props => {
title: '订单状态',
dataIndex: 'orderStatus',
key: 'orderStatus',
width: 100,
width: 120,
hideInSearch: true,
valueEnum: {
12: '待发货',
......@@ -167,21 +167,21 @@ const TableList = props => {
fixed: 'right',
render: (_, record) => (
<React.Fragment>
{ShowUpdateBtn.includes(record.skuSource.value) ? null : (
{ShowUpdateBtn.includes(record?.skuSource?.value) ? null : (
<Button
type="primary"
style={{
marginBottom: '10px',
}}
onClick={async () => {
const skuListData = await getGoods(record.orderId);
const skuListData = await getGoods(record?.orderId);
let logisticsData = [{}];
setSkuList(skuListData);
const data = await getLogistics(record.orderId);
const data = await getLogistics(record?.orderId);
logisticsData = data.map(item => ({
selectedGoods: item.skus.map(sku => sku.orderSkuId),
selectedCompany: `${item.expressCompanyCode}-${item.expressCompanyName}`,
orderNum: item.deliveryNo,
selectedGoods: item?.skus?.map(sku => sku?.orderSkuId),
selectedCompany: `${item?.expressCompanyCode}-${item?.expressCompanyName}`,
orderNum: item?.deliveryNo,
}));
setLogisticsData(logisticsData);
handleModalVisible(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