- 集成 ServerConnection 组件用于开发环境服务器切换 - 实现多服务器令牌隔离存储机制 - 添加 ArrivalOperation 屏幕处理到货和验收流程 - 支持待登记到货和待验收状态切换 - 优化库存操作界面的字段显示逻辑 - 增强 Excel 文件分片上传支持产品文件识别 - 添加 AI 助手会话滚动跟踪功能 - 实现开发服务器地址持久化存储 - 优化登录界面集成服务器连接组件 - 添加领用出库功能支持项目物资使用 - 改进盘点确认生效的操作流程 - 增强采购到货登记和验收的权限控制 - 优化移动端文件上传的断点续传机制 - 添加服务器切换时的数据清理保护机制 - 实现紧凑金额显示模式减少界面冗余 - 增强库存操作的数量验证和错误提示 - 优化 AI 助手的会话状态同步机制
19 lines
1.5 KiB
PowerShell
19 lines
1.5 KiB
PowerShell
param([ValidateSet('Backend','Frontend','Both')][string]$Component='Both',[switch]$RealDataReplay,[switch]$HistoryEntry,[string]$HistorySource='',[switch]$Restart)
|
|
$ErrorActionPreference='Stop'
|
|
$taskRoot=(Resolve-Path (Join-Path $PSScriptRoot '../..')).Path
|
|
$taskIdentity=[Security.Principal.WindowsIdentity]::GetCurrent()
|
|
$taskPrincipal=New-Object Security.Principal.WindowsPrincipal($taskIdentity)
|
|
if($taskPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)){throw 'Run local development from a normal PowerShell window, not Administrator mode.'}
|
|
$taskTemp=Join-Path $taskRoot '.codex-tmp'
|
|
New-Item -ItemType Directory -Path $taskTemp -Force | Out-Null
|
|
if ($Component -in @('Backend','Both')) {
|
|
& (Join-Path $PSScriptRoot 'Backend-Local.ps1') -Action $(if($Restart){'Restart'}else{'Start'}) -RealDataReplay:$RealDataReplay -HistoryEntry:$HistoryEntry -HistorySource $HistorySource
|
|
}
|
|
if ($Component -in @('Frontend','Both')) {
|
|
if (!(Get-NetTCPConnection -State Listen -LocalPort 8088 -ErrorAction SilentlyContinue)) {
|
|
$env:NODE_OPTIONS='--max-old-space-size=2048'
|
|
Start-Process -FilePath 'C:/Program Files/nodejs/node.exe' -ArgumentList @('node_modules/vite/bin/vite.js','--host','0.0.0.0','--port','8088') -WorkingDirectory (Join-Path $taskRoot 'ruoyi-ui-vue3') -WindowStyle Hidden -RedirectStandardOutput (Join-Path $taskTemp 'frontend.out.log') -RedirectStandardError (Join-Path $taskTemp 'frontend.err.log') | Out-Null
|
|
}
|
|
Write-Output 'Frontend Vue3: http://localhost:8088 (ruoyi-ui-vue3)'
|
|
}
|