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

缓存

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