From 021c92ee8ac6a429ef28f13ffad6c7e679cf36b9 Mon Sep 17 00:00:00 2001 From: yueli Date: Mon, 31 Aug 2026 13:05:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(purchase):=20=E9=87=87=E8=B4=AD=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E6=94=B9=E4=B8=BA=E5=8A=A8=E6=80=81=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E8=A1=A8=EF=BC=8C=E6=94=AF=E6=8C=81=E4=B8=80=E8=A1=8C=E5=A4=9A?= =?UTF-8?q?=E7=89=A9=E6=96=99=E6=89=B9=E9=87=8F=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新建弹窗物料区改为动态明细表格:每行独立选择物料/规格/数量/日期/单价/总价/税率 - 支持 [+ 添加一行] 动态增行、行内删除 - 审批人/商家链接/备注/图片凭证为公共信息 - 提交时 for 循环逐行调用单条 createPurchase 接口,后端无需改动 - 行内价格半联动:改单价自动算总价,手动改总价后不再覆盖 --- inventory-web/src/views/purchase/index.vue | 276 +++++++++++++-------- 1 file changed, 170 insertions(+), 106 deletions(-) diff --git a/inventory-web/src/views/purchase/index.vue b/inventory-web/src/views/purchase/index.vue index 7b18acc..c470a76 100644 --- a/inventory-web/src/views/purchase/index.vue +++ b/inventory-web/src/views/purchase/index.vue @@ -71,21 +71,25 @@ /> - + - +
-
物料信息
- - - +
+ 物料明细({{ formItems.length }} 项) + 添加一行 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
公共信息
+ @@ -185,7 +192,9 @@ @@ -255,7 +264,7 @@