From 2fac4ff78266c759662bd4917590d328a0383956 Mon Sep 17 00:00:00 2001 From: chenhao Date: Wed, 3 Jun 2026 18:04:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(purchase):=20=E6=B7=BB=E5=8A=A0=E9=87=87?= =?UTF-8?q?=E8=B4=AD=E5=8D=95=E5=8F=B7=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=E5=8F=82=E6=95=B0=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在搜索框中统一使用“搜索采购单号”作为占位文本 - 在 `purchase.ts` API 中添加 `businessKey` 参数,用于传递采购单号 - 更新 `purchaseListParams` 类型定义,将 `keyword` 改为 `purchaseNo` - 优化 `onTabChange` 方法,移除冗余代码并调用 `handleClear` 清空搜索关键词 --- src/api/purchase.ts | 1 + src/store/purchase.ts | 4 ++-- src/types/index.ts | 2 +- src/views/Purchase/index.vue | 11 ++++++----- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/api/purchase.ts b/src/api/purchase.ts index cc2d511..f69f8e8 100644 --- a/src/api/purchase.ts +++ b/src/api/purchase.ts @@ -26,6 +26,7 @@ export const getCompletedPurchaseList = (params: PurchaseListParams): Promise { const onTabChange = (name: string) => { currentTab.value = name searchKeyword.value = '' - - if (name === 'completed' && completedList.value.length === 0) { - onCompletedLoad() - } + handleClear() + // + // if (name === 'completed' && completedList.value.length === 0) { + // onCompletedLoad() + // } } // 已审批列表加载