index.jsx 2.12 KB
Newer Older
krysent's avatar
krysent committed
1 2 3 4 5 6 7 8 9 10 11 12
import React, { useEffect, useMemo, useRef, useState } from "react";
import { Dropdown, Menu, Button, Tooltip } from "antd";
import { ProTable } from "@ant-design/pro-table";
import { doFetch } from "@/utils/doFetch";
import AutoTable from "@/components/AutoTable";

function Instore(props) {
  const columns = [
    {
      title: "操作时间",
      dataIndex: "operateTime",
      key: "operateTimeList",
krysent's avatar
krysent committed
13
      width: 300,
krysent's avatar
krysent committed
14
      valueType: "dateRange",
krysent's avatar
krysent committed
15
      search: false,
krysent's avatar
krysent committed
16 17 18 19 20 21 22 23 24 25 26 27 28
      render: (_, row) => {
        return <div>{row.operateTime}</div>;
      },
    },
    {
      title: "操作人",
      dataIndex: "operateUserName",
      key: "operateUserName",
    },
    {
      title: "物料编码",
      dataIndex: "materieCode",
      key: "materieCode",
krysent's avatar
krysent committed
29 30
      width: 300,
      search: false,
krysent's avatar
krysent committed
31 32 33 34 35 36 37
    },
    {
      title: "物料名称",
      dataIndex: "materieName",
      key: "materieName",
    },
    {
krysent's avatar
krysent committed
38
      title: "批次号",
krysent's avatar
krysent committed
39 40 41 42 43 44 45 46
      dataIndex: "materieControlNo",
      key: "materieControlNo",
    },
    {
      title: "当时库存数量",
      dataIndex: "currentNum",
      key: "currentNum",
      search: false,
krysent's avatar
krysent committed
47
      width: 200,
krysent's avatar
krysent committed
48 49 50 51 52 53 54 55 56 57 58 59
    },
    {
      title: "操作数量",
      dataIndex: "operateNum",
      key: "operateNum",
      search: false,
    },
    {
      title: "库存单位",
      dataIndex: "productionUnitName",
      key: "productionUnitName",
      search: false,
krysent's avatar
krysent committed
60
      width: 280,
krysent's avatar
krysent committed
61
    },
krysent's avatar
krysent committed
62

krysent's avatar
krysent committed
63
    {
krysent's avatar
krysent committed
64
      title: "仓库名称",
krysent's avatar
krysent committed
65
      dataIndex: "storeName",
krysent's avatar
krysent committed
66 67
      key: "storeName",
      search: false,
krysent's avatar
krysent committed
68 69 70 71 72
    },
    {
      title: "库位",
      dataIndex: "storePositionName",
      key: "storePositionName",
krysent's avatar
krysent committed
73 74 75 76 77 78 79
      search: false,
    },
    {
      title: "操作类型",
      dataIndex: "stockDetailTypeName",
      key: "stockDetailTypeName",
      width: 280,
krysent's avatar
krysent committed
80 81 82 83 84
    },
    {
      title: "相关单号",
      dataIndex: "relatedNo",
      key: "relatedNo",
krysent's avatar
krysent committed
85
      search: false,
krysent's avatar
krysent committed
86
    },
krysent's avatar
krysent committed
87
  ];
krysent's avatar
krysent committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101

  return (
    <div>
      <AutoTable
        {...props}
        pageextra="none"
        path="/ngic-workmanship/wmsMaterieStockRecord/queryList"
        columns={columns}
      ></AutoTable>
    </div>
  );
}

export default Instore;