From cadb2b837f89f114afb08443f479f2010cd76a9c Mon Sep 17 00:00:00 2001 From: weicw1996 Date: Thu, 8 Oct 2026 14:54:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(order):=20=E4=B8=8B=E5=8D=95=E9=A1=B5?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8F=91=E7=A5=A8=E7=B1=BB=E5=9E=8B=E9=80=89?= =?UTF-8?q?=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - BuyDocument.vue:购买页新增「发票类型」单选(VAT_SPECIAL 电子专票 / VAT_NORMAL 电子普票), 必填,未选时拦在 $fetch 之前并点名提示「请选择发票类型」 - 预选值取企业档案的 invoiceType(走 /api/tender/enterprise,用 useRequestFetch 保证 SSR/CSR 一致); 取不到或值不在枚举内则不预选,由提交那道兜住 - 建单 body 带上 invoiceType - order.post.ts 本就把 readBody 结果整体透传给后端,未做字段白名单,无需改动; 仅更新接口契约注释 --- .../template-07/pages/BuyDocument.vue | 60 ++++++++++++++++++- server/api/tender/order.post.ts | 5 +- 2 files changed, 62 insertions(+), 3 deletions(-) diff --git a/app/templates/template-07/pages/BuyDocument.vue b/app/templates/template-07/pages/BuyDocument.vue index 3d624e2..4e7ac7f 100644 --- a/app/templates/template-07/pages/BuyDocument.vue +++ b/app/templates/template-07/pages/BuyDocument.vue @@ -39,6 +39,24 @@ +
+ 发票类型 + +
+ +
+

默认取企业档案里的发票类型,可改;按下单时选的类型开票

+