import {
|
ListGuesser,
|
EditGuesser,
|
ShowGuesser
|
} from "react-admin";
|
|
import host from "./system/host";
|
import config from "./system/config";
|
import tenant from "./system/tenant";
|
import role from "./system/role";
|
import userLogin from "./system/userLogin";
|
import dept from "./system/dept";
|
import menu from "./system/menu";
|
import user from "./system/user";
|
import operationRecord from "./system/operationRecord";
|
import matnr from "./basicInfo/matnr";
|
import matnrGroup from "./basicInfo/matnrGroup";
|
import warehouse from "./basicInfo/warehouse";
|
import warehouseAreas from "./warehouseAreas";
|
import loc from "./basicInfo/loc";
|
import container from "./container";
|
import contract from "./contract";
|
import qlyInspect from "./orders/qlyInspect";
|
import dictType from "./system/dicts/dictType";
|
import companys from "./basicInfo/companys";
|
import locType from "./basicInfo/locType";
|
import locArea from "./basicInfo//locArea";
|
import locAreaMatRela from "./basicInfo/locAreaMatRela";
|
import locAreaMat from "./basicInfo/locAreaMat";
|
import serialRule from "./system/serialRule";
|
import whMat from "./basicInfo/whMat";
|
import asnOrder from "./orders/asnOrder";
|
import purchase from "./orders/purchase";
|
import fields from "./fields";
|
import fieldsItem from "./fieldsItem";
|
import warehouseAreasItem from "./warehouseAreasItem";
|
import deviceSite from "./basicInfo/deviceSite";
|
import waitPakin from "./waitPakin";
|
import waitPakinLog from "./histories/waitPakinLog";
|
import asnOrderLog from "./histories/asnOrderLog";
|
import task from "./task";
|
import taskLog from "./histories/taskLog";
|
import stock from "./orders/stock";
|
import delivery from "./orders/delivery";
|
import outStock from "./orders/outStock";
|
import deviceBind from "./deviceBind";
|
import wave from "./orders/wave";
|
import locItem from "./locItem";
|
import basStation from "./basicInfo/basStation";
|
import warehouseStock from "./statistics/stockManage";
|
import basContainer from "./basicInfo/basContainer";
|
import outBound from "./work/outBound";
|
import checkOutBound from "./work/checkOutBound";
|
import stockTransfer from "./work/stockTransfer";
|
import waveRule from "./waveRule";
|
import check from "./orders/check";
|
import checkDiff from "./orders/check/checkDiff";
|
import transfer from "./orders/transfer";
|
|
|
const ResourceContent = (node) => {
|
switch (node.component) {
|
case "host":
|
return host;
|
case "config":
|
return config;
|
case "tenant":
|
return tenant;
|
case "role":
|
return role;
|
case "userLogin":
|
return userLogin;
|
case "dept":
|
return dept;
|
case "menu":
|
return menu;
|
case "user":
|
return user;
|
case "operationRecord":
|
return operationRecord;
|
case "matnr":
|
return matnr;
|
case "matnrGroup":
|
return matnrGroup;
|
case "warehouse":
|
return warehouse;
|
case "warehouseAreas":
|
return warehouseAreas;
|
case "warehouseAreasItem":
|
return warehouseAreasItem;
|
case "warehouseStock":
|
return warehouseStock;
|
case "loc":
|
return loc;
|
case "container":
|
return container;
|
case "contract":
|
return contract;
|
case "qlyInspect":
|
return qlyInspect;
|
case "dictType":
|
return dictType;
|
case "companys":
|
return companys;
|
case "serialRule":
|
return serialRule;
|
case "whMat":
|
return whMat;
|
case "asnOrder":
|
return asnOrder;
|
case "asnOrderLog":
|
return asnOrderLog;
|
case "purchase":
|
return purchase;
|
case "fields":
|
return fields;
|
case "fieldsItem":
|
return fieldsItem;
|
case "locType":
|
return locType;
|
case "locArea":
|
return locArea;
|
case "locAreaMatRela":
|
return locAreaMatRela;
|
case "locAreaMat":
|
return locAreaMat;
|
case "deviceSite":
|
return deviceSite;
|
case "waitPakin":
|
return waitPakin;
|
case "waitPakinLog":
|
return waitPakinLog;
|
case "task":
|
return task;
|
case "taskLog":
|
return taskLog;
|
case "stock":
|
return stock;
|
case "delivery":
|
return delivery;
|
case "outStock":
|
return outStock;
|
case "deviceBind":
|
return deviceBind;
|
case "wave":
|
return wave;
|
case "locItem":
|
return locItem;
|
case "basStation":
|
return basStation;
|
case "basContainer":
|
return basContainer;
|
case "outBound":
|
return outBound;
|
case "checkOutBound":
|
return checkOutBound;
|
case "stockTransfer":
|
return stockTransfer;
|
case "waveRule":
|
return waveRule;
|
case "check":
|
return check;
|
case "checkDiff":
|
return checkDiff;
|
case "transfer":
|
return transfer;
|
default:
|
return {
|
list: ListGuesser,
|
edit: EditGuesser,
|
show: ShowGuesser
|
};
|
}
|
};
|
|
export default ResourceContent;
|