Commit 36e15889 authored by 左玲玲's avatar 左玲玲 😬

1512

parent 8c356db4
...@@ -5,7 +5,7 @@ import { EditableProTable } from "@ant-design/pro-table"; ...@@ -5,7 +5,7 @@ import { EditableProTable } from "@ant-design/pro-table";
import { useEffect, useState } from 'react' import { useEffect, useState } from 'react'
import { useModel } from 'umi' import { useModel } from 'umi'
const EditUpload = ({ record, fid ,storeId}) => { const EditUpload = ({ record, fid, storeId }) => {
const [value, setvalue] = useState({ const [value, setvalue] = useState({
[record.id]: record.uploadList [record.id]: record.uploadList
}); });
...@@ -36,6 +36,7 @@ const EditUpload = ({ record, fid ,storeId}) => { ...@@ -36,6 +36,7 @@ const EditUpload = ({ record, fid ,storeId}) => {
}, [value]) }, [value])
return <EditableProTable return <EditableProTable
rowKey={"id"}
maxLength={1000} maxLength={1000}
style={{ marginLeft: 48 }} style={{ marginLeft: 48 }}
columns={[ columns={[
...@@ -114,7 +115,7 @@ const one = { ...@@ -114,7 +115,7 @@ const one = {
"materieInstoreNo" "materieInstoreNo"
], ],
"required": false, "required": false,
placeholder:"不填写系统自动生成" placeholder: "不填写系统自动生成"
}, },
"storeId": { "storeId": {
"value": null, "value": null,
...@@ -246,7 +247,7 @@ const one = { ...@@ -246,7 +247,7 @@ const one = {
"materieInstoreNo" "materieInstoreNo"
], ],
"required": false, "required": false,
placeholder:"不填写系统自动生成" placeholder: "不填写系统自动生成"
}, },
"storeId": { "storeId": {
"value": null, "value": null,
...@@ -381,7 +382,7 @@ const one = { ...@@ -381,7 +382,7 @@ const one = {
"materieInstoreNo" "materieInstoreNo"
], ],
"required": false, "required": false,
placeholder:"不填写系统自动生成" placeholder: "不填写系统自动生成"
}, },
"storeId": { "storeId": {
"value": null, "value": null,
...@@ -520,7 +521,7 @@ const one = { ...@@ -520,7 +521,7 @@ const one = {
"materieInstoreNo" "materieInstoreNo"
], ],
"required": false, "required": false,
placeholder:"不填写系统自动生成" placeholder: "不填写系统自动生成"
}, },
"storeId": { "storeId": {
"value": null, "value": null,
...@@ -753,7 +754,8 @@ const one = { ...@@ -753,7 +754,8 @@ const one = {
pagination={false} pagination={false}
/>, />,
}, },
pagination: "false" pagination: "false",
rowKey: "id"
}, },
], ],
}, },
...@@ -864,7 +866,7 @@ const one = { ...@@ -864,7 +866,7 @@ const one = {
], ],
}, },
] ]
}, doinsert = (fid,storeId) => ({ }, doinsert = (fid, storeId) => ({
totalCard: [ totalCard: [
//物料详情 //物料详情
{ {
...@@ -949,8 +951,9 @@ const one = { ...@@ -949,8 +951,9 @@ const one = {
}, },
], ],
expandable: { expandable: {
expandedRowRender: record => <EditUpload record={record} fid={fid} storeId={storeId}/>, expandedRowRender: record => <EditUpload record={record} fid={fid} storeId={storeId} />,
} },
rowKey: "id"
}, },
], ],
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment