Commit 4586c6c8 authored by 左玲玲's avatar 左玲玲 😬

缓存

parent 2c455fc1
...@@ -37,8 +37,7 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -37,8 +37,7 @@ const EditUpload = ({ record, fid, storeId }) => {
} }
}) })
}) })
}, [value]) }, [value]);
return <EditableProTable return <EditableProTable
rowKey={"id"} rowKey={"id"}
maxLength={1000} maxLength={1000}
...@@ -50,13 +49,14 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -50,13 +49,14 @@ const EditUpload = ({ record, fid, storeId }) => {
key: "storePositionId", key: "storePositionId",
search: false, search: false,
valueType: "select", valueType: "select",
request: async () => { request: async (params) => {
let res = await doFetch({ url: "/ngic-auth/sysStorePosition/queryByStoreId/selection", params: { storeId: storeId } }); let res = await doFetch({ url: "/ngic-auth/sysStorePosition/queryByStoreId/selection", params});
return res?.data?.dataList return res?.data?.dataList
}, },
editable: (text, record, index) => { editable: (text, record, index) => {
return !record.materieOutstoreDetailId return !record.materieOutstoreDetailId
} },
params:{storeId: storeId}
}, },
{ {
title: "上架数量", title: "上架数量",
......
...@@ -63,6 +63,7 @@ function Instore(props) { ...@@ -63,6 +63,7 @@ function Instore(props) {
setdrawprops(s => ({ setdrawprops(s => ({
...s, ...s,
visible: false, visible: false,
fields:{}
})) }))
}, },
fields: {}, fields: {},
...@@ -79,7 +80,8 @@ function Instore(props) { ...@@ -79,7 +80,8 @@ function Instore(props) {
message.success("操作成功"); message.success("操作成功");
setdrawprops(s => ({ setdrawprops(s => ({
...s, ...s,
visible: false visible: false,
fields:{}
})) }))
} }
...@@ -209,10 +211,10 @@ function Instore(props) { ...@@ -209,10 +211,10 @@ function Instore(props) {
//查看详情 props //查看详情 props
val: "detail", val: "detail",
title: `上架采集`, title: `上架采集`,
...extra,
totalPath: "/ngic-workmanship/wmsMaterieInstore/getInStoreInfoById", totalPath: "/ngic-workmanship/wmsMaterieInstore/getInStoreInfoById",
totalParams: { id: record.id }, totalParams: { id: record.id },
extra:null extra:null,
...extra,
})) }))
setInitialState(s => { setInitialState(s => {
return ({ return ({
......
...@@ -64,13 +64,14 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -64,13 +64,14 @@ const EditUpload = ({ record, fid, storeId }) => {
key: "storePositionId", key: "storePositionId",
search: false, search: false,
valueType: "select", valueType: "select",
request: async () => { request: async (params) => {
let res = await doFetch({ url: "/ngic-auth/sysStorePosition/queryByStoreId/selection", params: { storeId: storeId } }); let res = await doFetch({ url: "/ngic-auth/sysStorePosition/queryByStoreId/selection", params });
return res?.data?.dataList return res?.data?.dataList
}, },
editable: (text, record, index) => { editable: (text, record, index) => {
return !record.materieOutstoreDetailId return !record.materieOutstoreDetailId
} },
params:{storeId: storeId}
}, },
{ {
title: "批次号/SN号", title: "批次号/SN号",
......
...@@ -63,6 +63,7 @@ function Outstore(props) { ...@@ -63,6 +63,7 @@ function Outstore(props) {
setdrawprops(s => ({ setdrawprops(s => ({
...s, ...s,
visible: false, visible: false,
fields:{}
})) }))
}, },
fields: {}, fields: {},
...@@ -79,7 +80,8 @@ function Outstore(props) { ...@@ -79,7 +80,8 @@ function Outstore(props) {
message.success("操作成功"); message.success("操作成功");
setdrawprops(s => ({ setdrawprops(s => ({
...s, ...s,
visible: false visible: false,
fields:{}
})) }))
} }
......
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