From 6d99bf3a466af3e688b2c87b832769779dc0ac14 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 4 Aug 2025 22:42:59 +0800 Subject: [PATCH 01/24] =?UTF-8?q?review=EF=BC=9A=E3=80=90erp=20=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E3=80=91purchase/order=20=E7=9A=84=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/erp/home/components/SummaryCard.vue | 1 + apps/web-antd/src/views/erp/purchase/order/index.vue | 3 +++ .../erp/purchase/order/modules/PurchaseOrderItemForm.vue | 5 +++++ .../src/views/erp/purchase/order/modules/form.vue | 8 +++++++- .../src/views/erp/stock/in/modules/StockInItemForm.vue | 1 + 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/apps/web-antd/src/views/erp/home/components/SummaryCard.vue b/apps/web-antd/src/views/erp/home/components/SummaryCard.vue index ff98e556a..fc36c15d1 100644 --- a/apps/web-antd/src/views/erp/home/components/SummaryCard.vue +++ b/apps/web-antd/src/views/erp/home/components/SummaryCard.vue @@ -32,6 +32,7 @@ const props = withDefaults(defineProps(), { }); /** 概览数据 */ +// TODO @nehc:应该是有 8 个小卡片,少了 4 个? const overviewItems = computed(() => [ { icon: SvgCardIcon, diff --git a/apps/web-antd/src/views/erp/purchase/order/index.vue b/apps/web-antd/src/views/erp/purchase/order/index.vue index 3cb0130a6..6331bd67c 100644 --- a/apps/web-antd/src/views/erp/purchase/order/index.vue +++ b/apps/web-antd/src/views/erp/purchase/order/index.vue @@ -35,6 +35,7 @@ function onRefresh() { gridApi.query(); } +// TODO @nehc handleRowCheckboxChange 放的位置; const checkedIds = ref([]); function handleRowCheckboxChange({ records, @@ -81,6 +82,7 @@ async function handleDelete(row: ErpPurchaseOrderApi.PurchaseOrder) { } /** 批量删除 */ +// TODO @nehc handleBatchDelete 是不是和别的模块,一个风格 async function handleBatchDelete() { const hideLoading = message.loading({ content: $t('ui.actionMessage.deleting'), @@ -106,6 +108,7 @@ function handleUpdateStatus( row: ErpPurchaseOrderApi.PurchaseOrder, status: number, ) { + // TODO @nehc 是不是和别的模块,类似的 status 处理一个风格 const hideLoading = message.loading({ content: `确定${status === 20 ? '审批' : '反审批'}该订单吗?`, duration: 0, diff --git a/apps/web-antd/src/views/erp/purchase/order/modules/PurchaseOrderItemForm.vue b/apps/web-antd/src/views/erp/purchase/order/modules/PurchaseOrderItemForm.vue index 7eae56d17..b61189322 100644 --- a/apps/web-antd/src/views/erp/purchase/order/modules/PurchaseOrderItemForm.vue +++ b/apps/web-antd/src/views/erp/purchase/order/modules/PurchaseOrderItemForm.vue @@ -1,4 +1,5 @@