fix(产品管理): 编辑: 保存再次提交多语种重复

perf/export-docx
Lei OT 11 months ago
parent eb4592acd0
commit b861cc66ae

@ -26,8 +26,9 @@ const ProductInfo = ({ ...props }) => {
const [editablePerm, setEditablePerm] = useState(false);
const [infoEditable, setInfoEditable] = useState(false);
const [priceEditable, setPriceEditable] = useState(false);
const topPerm = isPermitted(PERM_PRODUCTS_MANAGEMENT); //
useEffect(() => {
const topPerm = isPermitted(PERM_PRODUCTS_MANAGEMENT); //
const hasHT = (editingProduct?.info?.htid || 0) > 0;
// const hasAuditPer = isPermitted(PERM_PRODUCTS_OFFER_AUDIT);
const hasEditPer = isPermitted(PERM_PRODUCTS_OFFER_PUT);

@ -24,7 +24,7 @@ const ProductInfoLgc = ({ editable, formInstance, ...props }) => {
closable: false, // isPermitted(PERM_PRODUCTS_MANAGEMENT) ? true : false,
forceRender: true,
children: (
<Form.Item noStyle>
<Form.Item noStyle key={`${editingProduct.info.id}-${ele.id}`}>
<Form.Item name={['lgc_details_mapped', `${ele.lgc}`, 'title']} label={t('products:Title')} initialValue={ele.title} rules={[{ required: true }]} tooltip={t(`FormTooltip.NewTitle.${editingProduct?.info?.product_type_id}`)}>
<Input
className={' !text-slate-600'}

Loading…
Cancel
Save