Commit fc7932eb12ec9d861caaf230b61f68448b86bca4
1 parent
6f7d0d94
下载文件导入模板功能
Showing
3 changed files
with
5 additions
and
4 deletions
src/pages/pms/part/PartPriceCoefficient/components/UploadModal.tsx
... | ... | @@ -127,12 +127,13 @@ export default function UploadExcel(props: Props) { |
127 | 127 | <span>导入原因:</span> |
128 | 128 | <Input value={uploadInfo?.fixRemark} onChange={(e) => setUploadInfo({ ...uploadInfo, fixRemark: e.target.value})} style={{width: 250}} /> |
129 | 129 | </div> |
130 | - <Dragger {...uploadProps}> | |
130 | + <Dragger {...uploadProps} style={{ marginBottom: 20 }}> | |
131 | 131 | <p className="ant-upload-drag-icon"> |
132 | 132 | <InboxOutlined /> |
133 | 133 | </p> |
134 | 134 | <p className="ant-upload-text">将文件拖到此处上传</p> |
135 | 135 | </Dragger> |
136 | + <a href="/api/pms/erp/part/template/part/price/import">下载导入模版</a> | |
136 | 137 | </div> |
137 | 138 | ) : ( |
138 | 139 | <div> | ... | ... |
src/pages/pms/part/Repertory/index.tsx
... | ... | @@ -12,7 +12,6 @@ import Filter from './components/Filter'; |
12 | 12 | import SpecList from './components/SpecList'; |
13 | 13 | import List from './components/List'; |
14 | 14 | import SpecEcpModal from './components/SpecEpcModal'; |
15 | -import moment from 'moment'; | |
16 | 15 | |
17 | 16 | const { TabPane } = Tabs; |
18 | 17 | export const { Provider, useStore } = createStore(store); |
... | ... | @@ -42,7 +41,7 @@ function RepertoryIndex() { |
42 | 41 | 导入 |
43 | 42 | </Button> |
44 | 43 | <Button type="default" style={{ marginLeft: 10 }}> |
45 | - <a href={`http://static.feewee.cn/templates/配件批量导入模板.xlsx?t=${moment().valueOf()}`}> | |
44 | + <a href="/api/pms/erp/part/template/part/import"> | |
46 | 45 | 下载模板 |
47 | 46 | </a> |
48 | 47 | </Button> | ... | ... |
src/pages/pms/partPlan/AppointPart/comonents/UploadExcel.tsx
... | ... | @@ -77,12 +77,13 @@ export default function UploadExcel(props: Props) { |
77 | 77 | </Popconfirm> |
78 | 78 | ]} |
79 | 79 | > |
80 | - <Dragger {...uploadProps}> | |
80 | + <Dragger {...uploadProps} style={{ marginBottom: 20 }}> | |
81 | 81 | <p className="ant-upload-drag-icon"> |
82 | 82 | <InboxOutlined /> |
83 | 83 | </p> |
84 | 84 | <p className="ant-upload-text">将文件拖到此处上传</p> |
85 | 85 | </Dragger> |
86 | + <a href="/api/pms/erp/part/template/plan/part/import">下载导入模版</a> | |
86 | 87 | </Modal> |
87 | 88 | ); |
88 | 89 | } | ... | ... |