Commit 932cd13d authored by krysent's avatar krysent

来料入库

parent 73b4032d
This diff is collapsed.
This diff is collapsed.
...@@ -41,8 +41,6 @@ const keytoval = { ...@@ -41,8 +41,6 @@ const keytoval = {
four: "其他出库", four: "其他出库",
}; };
function Outstore(props) { function Outstore(props) {
const { initialState, setInitialState } = useModel("@@initialState"); const { initialState, setInitialState } = useModel("@@initialState");
const [activeTabKey, onTabChange] = useState("1"); const [activeTabKey, onTabChange] = useState("1");
...@@ -160,10 +158,6 @@ function Outstore(props) { ...@@ -160,10 +158,6 @@ function Outstore(props) {
label: "退料入库", label: "退料入库",
value: "3", value: "3",
}, },
{
label: "其他入库",
value: "4",
},
], ],
}, },
{ {
...@@ -194,6 +188,7 @@ function Outstore(props) { ...@@ -194,6 +188,7 @@ function Outstore(props) {
dataIndex: "createTime", dataIndex: "createTime",
key: "createTimeList", key: "createTimeList",
valueType: "dateRange", valueType: "dateRange",
search: false,
formItemProps: { formItemProps: {
name: "createTimeList", name: "createTimeList",
}, },
...@@ -205,12 +200,8 @@ function Outstore(props) { ...@@ -205,12 +200,8 @@ function Outstore(props) {
valueType: "select", valueType: "select",
options: [ options: [
{ {
label: "待下架", label: "执行中",
value: "0", value: "7",
},
{
label: "下架中",
value: "2",
}, },
{ {
label: "待分配", label: "待分配",
...@@ -278,10 +269,6 @@ function Outstore(props) { ...@@ -278,10 +269,6 @@ function Outstore(props) {
label: "退料入库", label: "退料入库",
value: "3", value: "3",
}, },
{
label: "其他入库",
value: "4",
},
], ],
}, },
{ {
...@@ -297,7 +284,6 @@ function Outstore(props) { ...@@ -297,7 +284,6 @@ function Outstore(props) {
{ {
title: "备注", title: "备注",
dataIndex: "remark", dataIndex: "remark",
search: false,
key: "remark", key: "remark",
search: false, search: false,
}, },
...@@ -311,6 +297,7 @@ function Outstore(props) { ...@@ -311,6 +297,7 @@ function Outstore(props) {
title: "创建时间", title: "创建时间",
dataIndex: "createTime", dataIndex: "createTime",
key: "createTimeList", key: "createTimeList",
search: false,
valueType: "dateRange", valueType: "dateRange",
formItemProps: { formItemProps: {
name: "createTimeList", name: "createTimeList",
......
...@@ -735,7 +735,7 @@ const one = { ...@@ -735,7 +735,7 @@ const one = {
}, },
{ {
cardTitle: "物料信息列表", cardTitle: "物料信息列表",
extraContent: dom, extraContent: "",
itemData: [ itemData: [
{ {
key: "materialList", key: "materialList",
......
import React, { useEffect, useMemo, useRef, useState } from "react"; import React, { useEffect, useMemo, useRef, useState } from "react";
import { Dropdown, Menu, Button, message } from "antd"; import { Dropdown, Menu, Button, message, Table } from "antd";
import AutoTable from "@/components/AutoTable"; import AutoTable from "@/components/AutoTable";
// import defaultFields from "./fields"; // import defaultFields from "./fields";
import { doFetch } from "@/utils/doFetch"; import { doFetch } from "@/utils/doFetch";
...@@ -85,7 +85,7 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -85,7 +85,7 @@ const EditUpload = ({ record, fid, storeId }) => {
return ( return (
<EditableProTable <EditableProTable
rowKey={"id"} rowKey={"id"}
maxLength={1000} maxLength={1}
style={{ marginLeft: 48 }} style={{ marginLeft: 48 }}
columns={[ columns={[
{ {
...@@ -100,7 +100,7 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -100,7 +100,7 @@ const EditUpload = ({ record, fid, storeId }) => {
valueType: "select", valueType: "select",
request: async (params) => { request: async (params) => {
let res = await doFetch({ let res = await doFetch({
url: "/ngic-auth/sysStorePosition/queryByStoreId/selection", url: "/ngic-auth/sysStorePosition/queryUseAbleSelection",
params: { storeId: params.storeId }, params: { storeId: params.storeId },
}); });
return res?.data?.dataList; return res?.data?.dataList;
...@@ -403,7 +403,7 @@ const defaultFields = { ...@@ -403,7 +403,7 @@ const defaultFields = {
}, },
{ {
cardTitle: "物料信息列表", cardTitle: "物料信息列表",
extraContent: dom, extraContent: "",
itemData: [ itemData: [
{ {
key: "materialList", key: "materialList",
...@@ -663,9 +663,9 @@ const defaultFields = { ...@@ -663,9 +663,9 @@ const defaultFields = {
], ],
}, },
{ {
cardTitle: "物料信息列表", cardTitle: "物料信息",
extra: true, extra: true,
extrapath: "/ngic-workmanship/wmsMaterieInstore/upload", extrapath: "/ngic-workmanship/wmsMaterieInstore/uploadOtherInstore",
extrakey: "submit", //redux key extrakey: "submit", //redux key
itemData: [ itemData: [
{ {
...@@ -696,7 +696,7 @@ const defaultFields = { ...@@ -696,7 +696,7 @@ const defaultFields = {
}, },
}, },
{ {
title: "批次号/SN号", title: "批次号",
dataIndex: "materieControlNo", dataIndex: "materieControlNo",
key: "materieControlNo", key: "materieControlNo",
search: false, search: false,
...@@ -802,6 +802,7 @@ function Instore(props) { ...@@ -802,6 +802,7 @@ function Instore(props) {
title: "入库单号", title: "入库单号",
dataIndex: "materieInstoreNo", dataIndex: "materieInstoreNo",
key: "materieInstoreNo", key: "materieInstoreNo",
search: false,
render: (dom, record) => { render: (dom, record) => {
return ( return (
<a <a
...@@ -841,6 +842,7 @@ function Instore(props) { ...@@ -841,6 +842,7 @@ function Instore(props) {
title: "入库类型", title: "入库类型",
dataIndex: "instoreTypeName", dataIndex: "instoreTypeName",
key: "instoreType", key: "instoreType",
search: false,
valueType: "select", valueType: "select",
options: [ options: [
{ {
...@@ -863,6 +865,7 @@ function Instore(props) { ...@@ -863,6 +865,7 @@ function Instore(props) {
}, },
{ {
title: "入库仓库", title: "入库仓库",
search: false,
dataIndex: "storeName", dataIndex: "storeName",
key: "storeId", key: "storeId",
fieldProps: { fieldProps: {
...@@ -879,11 +882,7 @@ function Instore(props) { ...@@ -879,11 +882,7 @@ function Instore(props) {
}, },
valueType: "select", valueType: "select",
}, },
{
title: "相关单号",
dataIndex: "businessNo",
key: "businessNo",
},
{ {
title: "备注", title: "备注",
dataIndex: "remark", dataIndex: "remark",
...@@ -893,6 +892,7 @@ function Instore(props) { ...@@ -893,6 +892,7 @@ function Instore(props) {
{ {
title: "创建人", title: "创建人",
dataIndex: "createUserName", dataIndex: "createUserName",
search: false,
key: "createUserName", key: "createUserName",
}, },
{ {
...@@ -907,6 +907,7 @@ function Instore(props) { ...@@ -907,6 +907,7 @@ function Instore(props) {
{ {
title: "状态", title: "状态",
dataIndex: "statusName", dataIndex: "statusName",
search: false,
key: "status", key: "status",
valueType: "select", valueType: "select",
options: [ options: [
...@@ -1015,6 +1016,7 @@ function Instore(props) { ...@@ -1015,6 +1016,7 @@ function Instore(props) {
{ {
title: "入库类型", title: "入库类型",
dataIndex: "instoreTypeName", dataIndex: "instoreTypeName",
search: false,
key: "instoreType", key: "instoreType",
valueType: "select", valueType: "select",
options: [ options: [
...@@ -1038,6 +1040,7 @@ function Instore(props) { ...@@ -1038,6 +1040,7 @@ function Instore(props) {
}, },
{ {
title: "入库仓库", title: "入库仓库",
search: false,
dataIndex: "storeName", dataIndex: "storeName",
key: "storeId", key: "storeId",
fieldProps: { fieldProps: {
...@@ -1054,11 +1057,7 @@ function Instore(props) { ...@@ -1054,11 +1057,7 @@ function Instore(props) {
}, },
valueType: "select", valueType: "select",
}, },
{
title: "相关单号",
dataIndex: "businessNo",
key: "businessNo",
},
{ {
title: "备注", title: "备注",
dataIndex: "remark", dataIndex: "remark",
...@@ -1066,6 +1065,7 @@ function Instore(props) { ...@@ -1066,6 +1065,7 @@ function Instore(props) {
search: false, search: false,
}, },
{ {
search: false,
title: "创建人", title: "创建人",
dataIndex: "createUserName", dataIndex: "createUserName",
key: "createUserName", key: "createUserName",
...@@ -1091,6 +1091,7 @@ function Instore(props) { ...@@ -1091,6 +1091,7 @@ function Instore(props) {
{ {
title: "状态", title: "状态",
dataIndex: "statusName", dataIndex: "statusName",
search: false,
key: "status", key: "status",
valueType: "select", valueType: "select",
options: [ options: [
......
...@@ -699,7 +699,8 @@ const one = { ...@@ -699,7 +699,8 @@ const one = {
}, },
{ {
cardTitle: "物料信息列表", cardTitle: "物料信息列表",
extraContent: dom, extraContent: "",
itemData: [ itemData: [
{ {
key: "materialList", key: "materialList",
......
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