|
|
|
@ -174,7 +174,7 @@ const Orders_sub = () => {
|
|
|
|
|
// 在逗号和分号处自动换行的函数
|
|
|
|
|
const addLineBreaksAtCommas = (text) => {
|
|
|
|
|
if (!text) return '';
|
|
|
|
|
return text.replace(/,/g, ',\n').replace(/,/g, ',\n').replace(/;/g, ';\n').replace(/;/g, ';\n');
|
|
|
|
|
return text.replace(/&/g, "&").replace(/,/g, ',\n').replace(/,/g, ',\n').replace(/;/g, ';\n').replace(/;/g, ';\n');
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const table_data = format_data_detail(orders_store.orderCountData_Form_sub.ordercount1);
|
|
|
|
@ -206,7 +206,7 @@ const Orders_sub = () => {
|
|
|
|
|
<Divider orientation="left" plain>
|
|
|
|
|
订单内容
|
|
|
|
|
</Divider>
|
|
|
|
|
{addLineBreaksAtCommas(decodeURIComponent(record.COLI_OrderDetailText.replace(/&/g, "&")))}
|
|
|
|
|
{addLineBreaksAtCommas(record.COLI_OrderDetailText)}
|
|
|
|
|
</pre>
|
|
|
|
|
),
|
|
|
|
|
}}
|
|
|
|
|