Commit 8a7c24313d6c23f58a7c22f5e5fdc81041f29a19
1 parent
9535a1a2
fix: 修改审核与订单列表
Showing
2 changed files
with
11 additions
and
23 deletions
src/pages/Order/Order/components/CheckModal.tsx
... | ... | @@ -84,27 +84,6 @@ export default ({ |
84 | 84 | // let res = await postServiceOrderQueryAfterSalesInfoSnapshot({ |
85 | 85 | // data: { subOrderIds: subOrderIds }, |
86 | 86 | // }); |
87 | - | |
88 | - // 检查subOrders是否存在且有元素 | |
89 | - if (!subOrders || !subOrders.length) { | |
90 | - // 如果是预存审核类型,直接返回,不需要处理售后信息 | |
91 | - if (checkType(CHECK_TYPE.PREPAID_AUDIT)) { | |
92 | - return; | |
93 | - } | |
94 | - | |
95 | - // 对于其他类型,设置一个空的售后信息 | |
96 | - setAfterSalesInfo( | |
97 | - <div className="my-5"> | |
98 | - <Row gutter={[16, 24]}> | |
99 | - <Col span={24}> | |
100 | - <span>暂无售后信息</span> | |
101 | - </Col> | |
102 | - </Row> | |
103 | - </div>, | |
104 | - ); | |
105 | - return; | |
106 | - } | |
107 | - | |
108 | 87 | //附件 |
109 | 88 | let annex = subOrders[0]?.afterSalesAnnexList || []; |
110 | 89 | let index = 1; |
... | ... | @@ -151,8 +130,6 @@ export default ({ |
151 | 130 | useEffect(() => { |
152 | 131 | if (checkType(CHECK_TYPE.CONFIRM_DELIVER)) { |
153 | 132 | setAPopoverTitle('确认发货'); |
154 | - } else if (checkType(CHECK_TYPE.PREPAID_AUDIT)) { | |
155 | - setAPopoverTitle('预存审核'); | |
156 | 133 | } |
157 | 134 | getOrderAfterSalesInfo(); |
158 | 135 | ... | ... |
src/pages/Order/OrderList/index.less
... | ... | @@ -3,6 +3,15 @@ |
3 | 3 | margin-inline: 0 !important; |
4 | 4 | } |
5 | 5 | |
6 | +// 修复表格单元格超出边界问题 | |
7 | +.order-page-container .ant-table-cell { | |
8 | + word-break: break-word; | |
9 | + white-space: normal !important; | |
10 | + overflow: hidden; | |
11 | + max-width: 500px; // 设置最大宽度,防止单元格过宽 | |
12 | + box-sizing: border-box; | |
13 | +} | |
14 | + | |
6 | 15 | .order-page-container td { |
7 | 16 | font-family: 'San Francisco', 'Helvetica Neue', Helvetica, Arial, |
8 | 17 | 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC', |
... | ... | @@ -54,6 +63,8 @@ |
54 | 63 | .order-page-container .ant-table-thead .ant-table-cell { |
55 | 64 | background-color: #fff !important; |
56 | 65 | border-radius: 8px !important; |
66 | + overflow: hidden; | |
67 | + white-space: normal !important; | |
57 | 68 | } |
58 | 69 | |
59 | 70 | #sub-table tbody td { | ... | ... |