perf/export-docx
Lei OT 1 year ago
parent 3f4fcc3789
commit 4fb6273ed1

@ -307,7 +307,7 @@ function Detail() {
const handleBatchImportOK = () => { const handleBatchImportOK = () => {
setBatchImportPriceVisible(false); setBatchImportPriceVisible(false);
} }
const EditableCell = ({ editing, dataIndex, title, inputType, record, children, handleDateSelect, ...restProps }) => { const EditableCell = ({ editing, dataIndex, title, inputType, record, children, handleDateSelect, ...restProps }) => {
let inputNode = inputType === 'number' ? <InputNumber /> : <Input />; let inputNode = inputType === 'number' ? <InputNumber /> : <Input />;
@ -422,14 +422,14 @@ const handleBatchImportOK = () => {
const editable = isEditing(record); const editable = isEditing(record);
return editable ? ( return editable ? (
<span> <span>
<a href="#!" onClick={() => handleSave(record.id)} style={{ marginRight: 8 }}>{t('products:save')}</a> <a href="#!" onClick={() => handleSave(record.id)} style={{ marginRight: 8 }}>{t('Save')}</a>
<Popconfirm title={t('products:sureCancel')} onConfirm={cancel}><a>{t('products:cancel')}</a></Popconfirm> <Popconfirm title={t('sureCancel')} onConfirm={cancel}><a>{t('Cancel')}</a></Popconfirm>
</span> </span>
) : ( ) : (
<span> <span>
<a disabled={editingid !== ''} onClick={() => edit(record)} style={{ marginRight: 8 }}>{t('products:edit')}</a> <a disabled={editingid !== ''} onClick={() => edit(record)} style={{ marginRight: 8 }}>{t('Edit')}</a>
<Popconfirm title={t('products:sureDelete')} onConfirm={() => handleDelete(record.id)}> <Popconfirm title={t('sureDelete')} onConfirm={() => handleDelete(record.id)}>
<a>{t('products:delete')}</a> <a>{t('Delete')}</a>
</Popconfirm> </Popconfirm>
</span> </span>
); );
@ -514,7 +514,7 @@ const handleBatchImportOK = () => {
if (selectedNodeid === node.key) return; if (selectedNodeid === node.key) return;
const fatherKey = node.key.split('-')[0]; const fatherKey = node.key.split('-')[0];
setSelectedCategory(productProject[fatherKey]) setSelectedCategory(productProject[fatherKey])
console.log("remainderLanguage",remainderLanguage) console.log("remainderLanguage",remainderLanguage)
let initialQuotationData = null; let initialQuotationData = null;
let infoData = null; let infoData = null;
@ -596,16 +596,16 @@ const handleBatchImportOK = () => {
style={{ width: "80%" }} style={{ width: "80%" }}
title={ title={
<Breadcrumb items={[ <Breadcrumb items={[
{ title: <Link to={'/'}>供应商</Link> }, // { title: <Link to={'/'}></Link> },
{ title: <Link to={'/products'}>综费</Link> }, { title: <Link to={'/products'}>综费</Link> },
{ title: '文章列表' } { title: '文章列表' }
]} /> ]} />
} }
> >
<h2>{t('products:productProject')}</h2> <h2>{t('products:EditComponents.info')}</h2>
<Row gutter={16}> <Row gutter={16}>
{selectedCategory.map((item, index) => ( {selectedCategory.map((item, index) => (
<Col span={8} id={index}> <Col span={8} key={item.code}>
<Form.Item name={['info', item.code]} label={item.name}> <Form.Item name={['info', item.code]} label={item.name}>
{item.code === "duration" ? ( {item.code === "duration" ? (
<Input suffix="H"/> <Input suffix="H"/>
@ -621,6 +621,7 @@ const handleBatchImportOK = () => {
<div> <div>
{tags.map(tag => ( {tags.map(tag => (
<Tag <Tag
key={tag}
id={tag} id={tag}
onClick={() => handleTagClick(tag)} onClick={() => handleTagClick(tag)}
color={tag === selectedTag ? 'blue' : undefined} color={tag === selectedTag ? 'blue' : undefined}
@ -681,7 +682,7 @@ const handleBatchImportOK = () => {
<Button onClick={handleAdd} type="primary" style={{ marginBottom: 16 }}> <Button onClick={handleAdd} type="primary" style={{ marginBottom: 16 }}>
{t('products:addQuotation')} {t('products:addQuotation')}
</Button> </Button>
<Button onClick={handleBatchImport} type="primary" style={{ marginBottom: 16 }}>批量添加</Button> <Button onClick={handleBatchImport} type="primary" style={{ marginBottom: 16 }}>批量添加</Button>
</Form.Item> </Form.Item>
</Card> </Card>
@ -692,7 +693,7 @@ const handleBatchImportOK = () => {
<Button type="primary" htmlType="submit" style={{ marginTop: 16, float: "right", marginRight: "20%" }}> <Button type="primary" htmlType="submit" style={{ marginTop: 16, float: "right", marginRight: "20%" }}>
{t('products:save')} {t('Save')}
</Button> </Button>
<Button type="primary" htmlType="submit" style={{ marginTop: 16, float: "right", marginRight: "5%" }}> <Button type="primary" htmlType="submit" style={{ marginTop: 16, float: "right", marginRight: "5%" }}>
提交审核 提交审核

Loading…
Cancel
Save