产品管理: 复制: 文字说明

perf/export-docx
Lei OT 11 months ago
parent ceb3690530
commit 63561e3804

@ -48,7 +48,7 @@ export const CopyProductsForm = ({ action, initialValues, onFormInstanceReady, s
{/* disabledDate={(current) => current <= dayjs([source.sourceYear, 12, 31])} */} {/* disabledDate={(current) => current <= dayjs([source.sourceYear, 12, 31])} */}
</Form.Item> </Form.Item>
<Form.Item name={'with_quote'} label={`${t('products:CopyFormMsg.withQuote')}`}> <Form.Item name={'with_quote'} label={`${t('products:CopyFormMsg.withQuote')}`}>
<Switch checkedChildren={t('Yes')} unCheckedChildren={t('No')} /> <Switch checkedChildren={'含报价金额'} unCheckedChildren={'仅人等+日期'} />
</Form.Item> </Form.Item>
</Form> </Form>
); );

@ -400,8 +400,8 @@ const formValuesMapper = (values) => {
} }
// omit empty // omit empty
// Object.keys(dest).forEach((key) => (dest[key] == null || dest[key] === '' || dest[key].length === 0) && delete dest[key]); // Object.keys(dest).forEach((key) => (dest[key] == null || dest[key] === '' || dest[key].length === 0) && delete dest[key]);
const { lgc_details, lgc_details_mapped, quotation, ...info } = dest; // quotation const { lgc_details, lgc_details_mapped, quotation, ...info } = dest;
return { info, lgc_details, lgc_details_mapped, quotation }; // quotation return { info, lgc_details, lgc_details_mapped, quotation };
}; };
export default InfoForm; export default InfoForm;

Loading…
Cancel
Save