From a8fb0bbdeda71e59fc11945efb8d8ab4ac7fa9c8 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Wed, 6 Aug 2025 16:54:27 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BA=A7=E5=93=81=E5=AE=A1=E6=A0=B8:?= =?UTF-8?q?=20=E4=BB=B7=E6=A0=BC=E5=8E=86=E5=8F=B2:=20=E5=9C=B0=E6=8E=A5?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=20=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/products/Audit.jsx | 28 ++++++++++--------- .../Detail/ProductQuotationLogPopover.jsx | 7 ++++- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/src/views/products/Audit.jsx b/src/views/products/Audit.jsx index 3df9410..d93de56 100644 --- a/src/views/products/Audit.jsx +++ b/src/views/products/Audit.jsx @@ -109,21 +109,23 @@ const PriceTable = ({ productType, dataSource, refresh }) => { key: 'action', render: (_, r, ri) => [-1, 0, 3].includes(Number(r.audit_state_id)) ? ( - + <> - {Number(r.audit_state_id) === 0 && ( - <> - - - - )} + + {Number(r.audit_state_id) === 0 && ( +
+ + +
+ )} +
setLogOpenPriceRow(open ? r.id : null)} />
-
+ ) : null, }, // { @@ -183,11 +185,11 @@ const TypesPanels = (props) => { r.concat( c.quotation.map((q, i) => ({ ...q, - weekdays: q.weekdays - .split(',') - .filter(Boolean) - .map((w) => t(`weekdaysShort.${w}`)) - .join(', '), + // weekdays: q.weekdays + // .split(',') + // .filter(Boolean) + // .map((w) => t(`weekdaysShort.${w}`)) + // .join(', '), info: c.info, lgc_details: c.lgc_details.reduce((rlgc, clgc) => ({...rlgc, [clgc.lgc]: clgc}), {}), rowSpan: i === 0 ? c.quotation.length : 0, diff --git a/src/views/products/Detail/ProductQuotationLogPopover.jsx b/src/views/products/Detail/ProductQuotationLogPopover.jsx index d5f58cc..9991f93 100644 --- a/src/views/products/Detail/ProductQuotationLogPopover.jsx +++ b/src/views/products/Detail/ProductQuotationLogPopover.jsx @@ -141,10 +141,15 @@ export const columnsSets = (t, colorize = true) => [ : ''; const preValue = ifCompare && ifData ?
{_weekdays}
: null; const editCls = ifCompare && ifData ? 'text-danger' : ''; + const weekdaysTxt = weekdays + .split(',') + .filter(Boolean) + .map((w) => t(`common:weekdaysShort.${w}`)) + .join(', '); return (
{preValue} - {text || t('Unlimited')} + {weekdaysTxt || t('Unlimited')}
); },