Commit 8c29991e authored by krysent's avatar krysent

bug

parent 7daae505
...@@ -125,12 +125,12 @@ function Outstore(props) { ...@@ -125,12 +125,12 @@ function Outstore(props) {
dataIndex: "operateUserName", dataIndex: "operateUserName",
key: "operateUserName", key: "operateUserName",
}, },
{ // {
title: "单据类型", // title: "单据类型",
dataIndex: "instoreTypeName", // dataIndex: "instoreTypeName",
search: false, // search: false,
key: "instoreType", // key: "instoreType",
}, // },
{ {
title: "物料编码", title: "物料编码",
dataIndex: "materieCode", dataIndex: "materieCode",
...@@ -171,6 +171,15 @@ function Outstore(props) { ...@@ -171,6 +171,15 @@ function Outstore(props) {
dataIndex: "documentsState", dataIndex: "documentsState",
key: "documentsState", key: "documentsState",
search: false, search: false,
render: (_, row) => {
if (row?.documentsState == "0") {
return "待执行";
} else if (row?.documentsState == "1") {
return "执行中";
} else if (row?.documentsState == "2") {
return "已执行";
}
},
}, },
]; ];
} else { } else {
...@@ -236,6 +245,9 @@ function Outstore(props) { ...@@ -236,6 +245,9 @@ function Outstore(props) {
dataIndex: "documentsState", dataIndex: "documentsState",
key: "documentsState", key: "documentsState",
search: false, search: false,
render: (_, row) => {
return "已完成";
},
}, },
]; ];
} }
......
...@@ -94,6 +94,10 @@ export function getColumns(setDrawer, formRef) { ...@@ -94,6 +94,10 @@ export function getColumns(setDrawer, formRef) {
key: "unilateralThickness", key: "unilateralThickness",
dataIndex: "unilateralThickness", dataIndex: "unilateralThickness",
valueType: "digit", valueType: "digit",
fieldProps: {
precision: 3,
max: 999999,
},
}, },
{ {
title: "备注", title: "备注",
...@@ -122,7 +126,7 @@ export function getColumns(setDrawer, formRef) { ...@@ -122,7 +126,7 @@ export function getColumns(setDrawer, formRef) {
}, },
columns: [ columns: [
{ {
title: "量", title: "量",
dataIndex: "weight", dataIndex: "weight",
key: "weight", key: "weight",
valueType: "digit", valueType: "digit",
......
...@@ -79,40 +79,40 @@ function Outstore(props) { ...@@ -79,40 +79,40 @@ function Outstore(props) {
dataIndex: "taskNo", dataIndex: "taskNo",
key: "taskNo", key: "taskNo",
search: false, search: false,
render: (dom, record) => { // render: (dom, record) => {
return ( // return (
<a // <a
onClick={() => { // onClick={() => {
const detail = defaultFields.detail( // const detail = defaultFields.detail(
setSelectKeys, // setSelectKeys,
PrintButton // PrintButton
); // );
setdrawprops((s) => ({ // setdrawprops((s) => ({
...s, // ...s,
visible: true, // visible: true,
//查看详情 props // //查看详情 props
val: "detail", // val: "detail",
title: `查看详情`, // title: `查看详情`,
...detail, // ...detail,
totalPath: // totalPath:
"/ngic-workmanship/wmsMaterieOutstore/getOutStoreInfoById", // "/ngic-workmanship/wmsMaterieOutstore/getOutStoreInfoById",
totalParams: { id: record.id }, // totalParams: { id: record.id },
extra: ( // extra: (
<Button // <Button
onClick={async () => { // onClick={async () => {
handlePrint(); // handlePrint();
}} // }}
> // >
打印 // 打印
</Button> // </Button>
), // ),
})); // }));
}} // }}
> // >
{dom} // {dom}
</a> // </a>
); // );
}, // },
}, },
{ {
title: "物料名称", title: "物料名称",
...@@ -145,13 +145,13 @@ function Outstore(props) { ...@@ -145,13 +145,13 @@ function Outstore(props) {
search: false, search: false,
}, },
{ {
title: "来源库位", title: "来源位置",
dataIndex: "sourceStorePositionName", dataIndex: "sourceStorePositionName",
key: "sourceStorePositionName", key: "sourceStorePositionName",
search: false, search: false,
}, },
{ {
title: "目标库位", title: "目标位置",
dataIndex: "targetStorePositionName", dataIndex: "targetStorePositionName",
key: "targetStorePositionName", key: "targetStorePositionName",
search: false, search: false,
...@@ -307,13 +307,13 @@ function Outstore(props) { ...@@ -307,13 +307,13 @@ function Outstore(props) {
key: "materieControlNo", key: "materieControlNo",
}, },
{ {
title: "来源库位", title: "来源位置",
dataIndex: "sourceStorePositionName", dataIndex: "sourceStorePositionName",
key: "sourceStorePositionName", key: "sourceStorePositionName",
search: false, search: false,
}, },
{ {
title: "目标库位", title: "目标位置",
dataIndex: "targetStorePositionName", dataIndex: "targetStorePositionName",
key: "targetStorePositionName", key: "targetStorePositionName",
search: false, search: false,
......
...@@ -40,7 +40,9 @@ const keytoval = { ...@@ -40,7 +40,9 @@ const keytoval = {
three: "退料入库", three: "退料入库",
four: "其他入库", four: "其他入库",
}; };
const EditUpload = ({ record, fid, storeId }) => { const EditUpload = ({ record, fid, storeId }) => {
console.log(123);
const [value, setvalue] = useState({ const [value, setvalue] = useState({
[record.id]: record.uploadList, [record.id]: record.uploadList,
}); });
...@@ -99,6 +101,7 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -99,6 +101,7 @@ const EditUpload = ({ record, fid, storeId }) => {
search: false, search: false,
valueType: "select", valueType: "select",
request: async (params) => { request: async (params) => {
console.log(5555);
let newParams = JSON.parse(JSON.stringify(params)); let newParams = JSON.parse(JSON.stringify(params));
let res = await doFetch({ let res = await doFetch({
url: "/ngic-auth/sysStorePosition/queryUseAbleSelection", url: "/ngic-auth/sysStorePosition/queryUseAbleSelection",
...@@ -226,6 +229,7 @@ function Instore(props) { ...@@ -226,6 +229,7 @@ function Instore(props) {
content: () => mutiPrintRef.current.dom.current, content: () => mutiPrintRef.current.dom.current,
}); });
const defaultFields = useMemo(() => { const defaultFields = useMemo(() => {
console.log(1);
return { return {
four: { four: {
materieInstoreNo: { materieInstoreNo: {
......
...@@ -799,16 +799,16 @@ function Outstore(props) { ...@@ -799,16 +799,16 @@ function Outstore(props) {
}, },
{ {
title: "创建人", title: "创建人",
dataIndex: "createUserName", dataIndex: "applyUserName",
key: "createUserName", key: "applyUserName",
}, },
{ {
title: "创建时间", title: "创建时间",
dataIndex: "createTime", dataIndex: "applyTime",
key: "createTime", key: "applyTime",
valueType: "dateRange", valueType: "dateRange",
formItemProps: { formItemProps: {
name: "createTimeList", name: "applyTimeList",
}, },
}, },
{ {
...@@ -981,16 +981,16 @@ function Outstore(props) { ...@@ -981,16 +981,16 @@ function Outstore(props) {
}, },
{ {
title: "创建人", title: "创建人",
dataIndex: "createUserName", dataIndex: "applyUserName",
key: "createUserName", key: "applyUserName",
}, },
{ {
title: "创建时间", title: "创建时间",
dataIndex: "createTime", dataIndex: "applyTime",
key: "createTime", key: "applyTime",
valueType: "dateRange", valueType: "dateRange",
formItemProps: { formItemProps: {
name: "createTimeList", name: "applyTimeList",
}, },
}, },
{ {
......
...@@ -70,7 +70,7 @@ export function str(data) { ...@@ -70,7 +70,7 @@ export function str(data) {
<div style="flex:3">片厚:${data?.sheetThickness ?? "--"}mm</div> <div style="flex:3">片厚:${data?.sheetThickness ?? "--"}mm</div>
</div> </div>
<div style="display:flex; flex-direction: row;flex:1;"> <div style="display:flex; flex-direction: row;flex:1;">
<div style="flex:2">量:${data?.weight ?? "--"}KG</div> <div style="flex:2">量:${data?.weight ?? "--"}KG</div>
<div style="flex:3">米数:${data?.length ?? "--"}M</div> <div style="flex:3">米数:${data?.length ?? "--"}M</div>
</div> </div>
......
...@@ -106,6 +106,7 @@ request.interceptors.response.use(async (response, options) => { ...@@ -106,6 +106,7 @@ request.interceptors.response.use(async (response, options) => {
message.destroy(); message.destroy();
message.warn(data?.msg); message.warn(data?.msg);
if (data?.code == "0001" && window.location.href.indexOf("login") == -1) { if (data?.code == "0001" && window.location.href.indexOf("login") == -1) {
console.log("跳转");
localStorage.clear(); localStorage.clear();
history.replace("/user/login"); history.replace("/user/login");
} }
......
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