From ee1a7b90036ec6f4973851d397f547b89d926f93 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 7 Apr 2026 09:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(mes):=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=E7=9B=98=E7=82=B9?= =?UTF-8?q?=E6=96=B9=E6=A1=88=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 清理了不再使用的盘点方案列表获取方法和相关的 API 接口,简化了代码结构,提高了可维护性。 --- src/api/mes/wm/stocktaking/plan/index.ts | 4 - .../plan/components/StockTakingPlanSelect.vue | 185 ++++++++-- .../StockTakingPlanSelectDialog.vue | 315 ++++++++++++++++++ 3 files changed, 464 insertions(+), 40 deletions(-) create mode 100644 src/views/mes/wm/stocktaking/plan/components/StockTakingPlanSelectDialog.vue diff --git a/src/api/mes/wm/stocktaking/plan/index.ts b/src/api/mes/wm/stocktaking/plan/index.ts index 6572b8430..6e822e4dd 100644 --- a/src/api/mes/wm/stocktaking/plan/index.ts +++ b/src/api/mes/wm/stocktaking/plan/index.ts @@ -29,10 +29,6 @@ export const StockTakingPlanApi = { return await request.get({ url: '/mes/wm/stocktaking-plan/get?id=' + id }) }, - getEnabledConfirmedStockTakingPlanSimpleList: async () => { - return await request.get({ url: '/mes/wm/stocktaking-plan/simple-list' }) - }, - createStockTakingPlan: async (data: StockTakingPlanVO) => { return await request.post({ url: '/mes/wm/stocktaking-plan/create', data }) }, diff --git a/src/views/mes/wm/stocktaking/plan/components/StockTakingPlanSelect.vue b/src/views/mes/wm/stocktaking/plan/components/StockTakingPlanSelect.vue index 9c068c266..4b4abe989 100644 --- a/src/views/mes/wm/stocktaking/plan/components/StockTakingPlanSelect.vue +++ b/src/views/mes/wm/stocktaking/plan/components/StockTakingPlanSelect.vue @@ -1,37 +1,73 @@ - + + + diff --git a/src/views/mes/wm/stocktaking/plan/components/StockTakingPlanSelectDialog.vue b/src/views/mes/wm/stocktaking/plan/components/StockTakingPlanSelectDialog.vue new file mode 100644 index 000000000..05e49c9b1 --- /dev/null +++ b/src/views/mes/wm/stocktaking/plan/components/StockTakingPlanSelectDialog.vue @@ -0,0 +1,315 @@ + + + + + +