From 8b3dd94e572d24b082e9203e46345a9c00b3a84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Fri, 26 Dec 2025 10:18:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/check/physicalInventory.js | 6 + .../modules/check/searchPhysicalInventory.vue | 117 +++++++++++++++++- 2 files changed, 120 insertions(+), 3 deletions(-) diff --git a/src/api/check/physicalInventory.js b/src/api/check/physicalInventory.js index c6f8718..13cf22f 100644 --- a/src/api/check/physicalInventory.js +++ b/src/api/check/physicalInventory.js @@ -23,6 +23,12 @@ export const queryMaterialForManualCount = data => createAPI(`/check/physicalInv // 手工盘点 - 添加物料到盘点单 export const addMaterialToCount = data => createAPI(`/check/physicalInventory/addMaterialToCount`, 'post', data) +// 一键添加物料 - 根据物料号精确查询所有标签并添加到盘点单 - rqrq +export const quickAddMaterialByPartNo = data => createAPI(`/check/physicalInventory/quickAddMaterialByPartNo`, 'post', data) + +// 一键删除物料 - 根据物料号删除盘点单中该物料的所有标签 - rqrq +export const deleteMaterialByPartNo = data => createAPI(`/check/physicalInventory/deleteMaterialByPartNo`, 'post', data) + // 下达盘点单 export const releaseCount = data => createAPI(`/check/physicalInventory/releaseCount`, 'post', data) diff --git a/src/views/modules/check/searchPhysicalInventory.vue b/src/views/modules/check/searchPhysicalInventory.vue index bcdc507..9f0ddfe 100644 --- a/src/views/modules/check/searchPhysicalInventory.vue +++ b/src/views/modules/check/searchPhysicalInventory.vue @@ -309,8 +309,34 @@ -
- 添加物料 +
+ 选择物料 + +
+ 一键物料操作: + + + + + + + + {{ quickMaterialLoading ? '处理中...' : (quickMaterialAction === 'add' ? '添加' : '删除') }} + +
@@ -377,7 +403,7 @@