fix(frontend)+chore(deploy): 修复明细表格渲染 + static/ 改服务器构建

- SalesOrdersTab/PurchaseOrdersTab/MaterialsTab/ProductsTab: t-table 明细行不渲染(push/splice 改新数组引用)+ Decimal 算术类型错误(Number() 包裹)
- static/ 不再进 git(.gitignore),改为 deploy.sh 在服务器 npm run build
- 新增 deploy.sh:拉取 + 构建前端 + 重启后端
This commit is contained in:
2026-08-03 16:12:34 +08:00
parent 4ec6f98f10
commit eab4137c0a
39 changed files with 55 additions and 173 deletions
@@ -98,16 +98,16 @@ async function openRestockModal() {
}
function addRestockItem() {
restockItems.value.push({
restockItems.value = [...restockItems.value, {
material_id: state.materials[0]?.id || null,
quantity: 1,
unit_price: 0,
remark: ''
})
}]
}
function removeRestockItem(index: number) {
restockItems.value.splice(index, 1)
restockItems.value = restockItems.value.filter((_, i) => i !== index)
}
const restockTotalAmount = computed(() => {