|
|
|
@ -171,6 +171,12 @@ const Orders_sub = () => {
|
|
|
|
|
return result;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 在逗号和分号处自动换行的函数
|
|
|
|
|
const addLineBreaksAtCommas = (text) => {
|
|
|
|
|
if (!text) return '';
|
|
|
|
|
return text.replace(/,/g, ',\n').replace(/,/g, ',\n').replace(/;/g, ';\n').replace(/;/g, ';\n');
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const table_data = format_data_detail(orders_store.orderCountData_Form_sub.ordercount1);
|
|
|
|
|
const table_data2 = format_data_detail(orders_store.orderCountData_Form_sub.ordercount2);
|
|
|
|
|
const table_data_p = format_data(orders_store.orderCountData_Form_sub.ordercount1);
|
|
|
|
@ -192,7 +198,7 @@ const Orders_sub = () => {
|
|
|
|
|
rowKey={record => record.key}
|
|
|
|
|
expandable={{
|
|
|
|
|
expandedRowRender: record => (
|
|
|
|
|
<pre>
|
|
|
|
|
<pre style={{ whiteSpace: 'pre-wrap', wordWrap: 'break-word', fontSize: '16px' }}>
|
|
|
|
|
<Divider orientation="left" plain>
|
|
|
|
|
客户需求
|
|
|
|
|
</Divider>
|
|
|
|
@ -200,7 +206,7 @@ const Orders_sub = () => {
|
|
|
|
|
<Divider orientation="left" plain>
|
|
|
|
|
订单内容
|
|
|
|
|
</Divider>
|
|
|
|
|
{record.COLI_OrderDetailText}
|
|
|
|
|
{addLineBreaksAtCommas(decodeURIComponent(record.COLI_OrderDetailText.replace(/&/g, "&")))}
|
|
|
|
|
</pre>
|
|
|
|
|
),
|
|
|
|
|
}}
|
|
|
|
@ -224,7 +230,7 @@ const Orders_sub = () => {
|
|
|
|
|
size="small"
|
|
|
|
|
rowKey={record => record.key}
|
|
|
|
|
expandable={{
|
|
|
|
|
expandedRowRender: record => <pre>{record.COLI_OrderDetailText}</pre>,
|
|
|
|
|
expandedRowRender: record => <pre style={{ whiteSpace: 'pre-wrap', wordWrap: 'break-word', fontSize: '16px' }}>{record.COLI_OrderDetailText}</pre>,
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|