Add WmsLite monorepo with JWT auth, tenant context, and project READMEs.
Implement API security baseline (sys_user, JWT, audit fields, transactions, unique constraints) and Web real login with 401 handling. Document setup and development workflows in root, WmsLite.Api, and WmsLite.Web README files. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
fa1b286463
241 files changed
+31188
No files matched your search
@@ -0,0 +1,105 @@
|
||||
import { defineConfig } from '@umijs/max';
|
||||
|
||||
export default defineConfig({
|
||||
antd: {},
|
||||
access: {},
|
||||
model: {},
|
||||
initialState: {},
|
||||
request: {},
|
||||
layout: {
|
||||
title: 'WmsLite',
|
||||
},
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:9901',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
routes: [
|
||||
{ path: '/login', layout: false, component: './Login' },
|
||||
{ path: '/', redirect: '/home' },
|
||||
{
|
||||
name: 'Home',
|
||||
path: '/home',
|
||||
tabTitle: '主页',
|
||||
component: './Home',
|
||||
},
|
||||
{
|
||||
name: 'Base',
|
||||
path: '/base',
|
||||
routes: [
|
||||
{
|
||||
name: 'Warehouse',
|
||||
path: '/base/warehouse',
|
||||
tabTitle: '仓库',
|
||||
component: './Base/Warehouse',
|
||||
},
|
||||
{ name: 'Area', path: '/base/area', tabTitle: '库区', component: './Base/Area' },
|
||||
{ name: 'Zone', path: '/base/zone', tabTitle: '分区', component: './Base/Zone' },
|
||||
{ name: 'Location', path: '/base/location', tabTitle: '库位', component: './Base/Location' },
|
||||
{
|
||||
name: 'Material',
|
||||
path: '/base/material',
|
||||
tabTitle: '物料',
|
||||
component: './Base/Material',
|
||||
},
|
||||
{
|
||||
name: 'Container',
|
||||
path: '/base/container',
|
||||
tabTitle: '容器',
|
||||
component: './Base/Container',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Inventory',
|
||||
path: '/inventory',
|
||||
routes: [
|
||||
{
|
||||
name: 'Balance',
|
||||
path: '/inventory/balance',
|
||||
tabTitle: '库存余额',
|
||||
component: './Inventory/Balance',
|
||||
},
|
||||
{
|
||||
name: 'Transactions',
|
||||
path: '/inventory/transactions',
|
||||
tabTitle: '库存流水',
|
||||
component: './Inventory/Transactions',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Orders',
|
||||
path: '/orders',
|
||||
routes: [
|
||||
{ name: 'Inbound', path: '/orders/inbound', tabTitle: '入库单', component: './Orders/Inbound' },
|
||||
{
|
||||
name: 'Outbound',
|
||||
path: '/orders/outbound',
|
||||
tabTitle: '出库单',
|
||||
component: './Orders/Outbound',
|
||||
},
|
||||
{
|
||||
name: 'Transfer',
|
||||
path: '/orders/transfer',
|
||||
tabTitle: '移库单',
|
||||
component: './Orders/Transfer',
|
||||
},
|
||||
{
|
||||
name: 'Stocktake',
|
||||
path: '/orders/stocktake',
|
||||
tabTitle: '盘点单',
|
||||
component: './Orders/Stocktake',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Templates',
|
||||
path: '/templates',
|
||||
tabTitle: '单据模板',
|
||||
component: './Template/SysTemplate',
|
||||
},
|
||||
],
|
||||
npmClient: 'pnpm',
|
||||
});
|
||||
Reference in new issue
Block a user