- 新增 logic/snapshot.py:导出后落快照,台账失败可复用上次导出数据重试,不用重新取数 - 台账只走 WPS 表格(不调 Office),字段提示同步改为关闭 WPS - 新增 通联扫码统计 支付数据追加 / 流程 两个测试;前端重建(ui 产物 + usePluginUI/style 拆分)
19 lines
744 B
PowerShell
19 lines
744 B
PowerShell
# Build the plugin UI (Vue + Element Plus) into ../ui/.
|
|
# Usage (from repo root):
|
|
# powershell -ExecutionPolicy Bypass -File "plugins\XQ0001-0100\XQ0052 ...\ui-src\_build.ps1"
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
Push-Location $here
|
|
try {
|
|
if (-not (Test-Path 'node_modules')) {
|
|
npm install --no-audit --no-fund
|
|
if ($LASTEXITCODE -ne 0) { throw "npm install failed (exit $LASTEXITCODE)" }
|
|
}
|
|
node (Join-Path $here 'node_modules\vite\bin\vite.js') build --config (Join-Path $here 'vite.build.config.js')
|
|
if ($LASTEXITCODE -ne 0) { throw "vite build failed (exit $LASTEXITCODE)" }
|
|
} finally {
|
|
Pop-Location
|
|
}
|
|
Write-Host "output -> $(Join-Path $here '..\ui')"
|