From 3e24fe3fc70a0db5109cf859eb57a97e48b798c0 Mon Sep 17 00:00:00 2001 From: "s.esmaeili" Date: Mon, 14 Sep 2026 16:51:16 +0330 Subject: [PATCH] admin-panel: convert invoice add/edit form into a modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same open/id pattern, kept at width=xl since it embeds its own product-picker XTable plus a running cart table. Also deduped ListInvoice's confirmDelete onto the shared useDeleteHandler composable (missed in the earlier delete- handler pass since it wasn't byte-identical to the other 6 — it used message.success + a different fallback string, both preserved). Verified: pnpm build passes. Co-Authored-By: Claude Sonnet 5 --- .../src/views/invoice/AddInvoice.vue | 106 +++++++++++++++++- .../src/views/invoice/ListInvoice.vue | 44 +++++--- 2 files changed, 128 insertions(+), 22 deletions(-) diff --git a/apps/admin-panel/src/views/invoice/AddInvoice.vue b/apps/admin-panel/src/views/invoice/AddInvoice.vue index f6001ac..390680b 100644 --- a/apps/admin-panel/src/views/invoice/AddInvoice.vue +++ b/apps/admin-panel/src/views/invoice/AddInvoice.vue @@ -2,12 +2,91 @@ - + + + + + + + + + + + + + + +
+ + + + {{ b.name }} + + + + + + + +
+
+
+ + +