From 7c55b009e689ab7718db989cc7e507ac468b12cc Mon Sep 17 00:00:00 2001 From: zhongwenkai <3478244299@qq.com> Date: Wed, 24 Jun 2026 10:10:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=93=E5=82=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E7=89=A9=E6=96=99=E7=9B=98=E7=82=B9=E6=89=A7=E8=A1=8C=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/materialCheck.js | 82 ++ src/pages.json | 58 ++ .../pages/materialCheck/areaSelect.vue | 190 ++++ .../pages/materialCheck/create.vue | 407 ++++++++ .../pages/materialCheck/execute.vue | 392 ++++++++ .../pages/materialCheck/index.vue | 872 ++++++++++++++++++ .../pages/materialCheck/itemSelect.vue | 269 ++++++ .../materialCheck/itemSelectByProduct.vue | 225 +++++ .../pages/materialCheck/productSelect.vue | 228 +++++ .../pages/sparepartCheck/areaSelect.vue | 190 ++++ .../pages/sparepartCheck/create.vue | 104 +-- .../pages/sparepartCheck/itemSelect.vue | 48 +- .../sparepartCheck/itemSelectByProduct.vue | 41 +- src/utils/permissionMenu.js | 4 + 14 files changed, 3032 insertions(+), 78 deletions(-) create mode 100644 src/api/mes/materialCheck.js create mode 100644 src/pages_function/pages/materialCheck/areaSelect.vue create mode 100644 src/pages_function/pages/materialCheck/create.vue create mode 100644 src/pages_function/pages/materialCheck/execute.vue create mode 100644 src/pages_function/pages/materialCheck/index.vue create mode 100644 src/pages_function/pages/materialCheck/itemSelect.vue create mode 100644 src/pages_function/pages/materialCheck/itemSelectByProduct.vue create mode 100644 src/pages_function/pages/materialCheck/productSelect.vue create mode 100644 src/pages_function/pages/sparepartCheck/areaSelect.vue diff --git a/src/api/mes/materialCheck.js b/src/api/mes/materialCheck.js new file mode 100644 index 0000000..e31d942 --- /dev/null +++ b/src/api/mes/materialCheck.js @@ -0,0 +1,82 @@ +import request from '@/utils/request' + +// 创建盘点单 +export function createMaterialCheck(data) { + return request({ + url: '/admin-api/erp/stock-check/create', + method: 'post', + data + }) +} + +// 生成盘点项(按仓库/库区) +export function generateCheckItemsByLocation(data) { + return request({ + url: '/admin-api/erp/stock-check/generate-items/by-location', + method: 'post', + data + }) +} + +// 生成盘点项(按产品) +export function generateCheckItemsByProduct(data) { + return request({ + url: '/admin-api/erp/stock-check/generate-items/by-product', + method: 'post', + data + }) +} + +// 物料盘点单分页查询 +export function getMaterialCheckPage(params = {}) { + return request({ + url: '/admin-api/erp/stock-check/page', + method: 'get', + params + }) +} + +// 物料盘点单详情 +export function getMaterialCheckDetail(id) { + return request({ + url: '/admin-api/erp/stock-check/get', + method: 'get', + params: { id } + }) +} + +// 物料盘点执行(提交盘点结果) +export function executeMaterialCheck(data) { + return request({ + url: '/admin-api/erp/stock-check/update', + method: 'put', + data + }) +} + +// 物料盘点单提交 +export function submitMaterialCheck(data) { + return request({ + url: '/admin-api/erp/stock-check/submit', + method: 'put', + data + }) +} + +// 物料盘点单审核(status: 20=通过, 1=驳回) +export function auditMaterialCheck(data) { + return request({ + url: '/admin-api/erp/stock-check/audit', + method: 'put', + data + }) +} + +// 物料盘点单删除 +export function deleteMaterialCheck(id) { + return request({ + url: '/admin-api/erp/stock-check/delete', + method: 'delete', + params: { ids: String(id) } + }) +} diff --git a/src/pages.json b/src/pages.json index 0a15a39..47d8442 100644 --- a/src/pages.json +++ b/src/pages.json @@ -647,6 +647,64 @@ "navigationStyle": "custom" } }, + { + "path": "sparepartCheck/areaSelect", + "style": { + "navigationBarTitleText": "选择库区", + "navigationStyle": "custom" + } + }, + + + { + "path": "materialCheck/index", + "style": { + "navigationBarTitleText": "物料盘点", + "navigationStyle": "custom" + } + }, + { + "path": "materialCheck/execute", + "style": { + "navigationBarTitleText": "执行盘点", + "navigationStyle": "custom" + } + }, + { + "path": "materialCheck/create", + "style": { + "navigationBarTitleText": "新增盘点单", + "navigationStyle": "custom" + } + }, + { + "path": "materialCheck/itemSelect", + "style": { + "navigationBarTitleText": "选择盘点项", + "navigationStyle": "custom" + } + }, + { + "path": "materialCheck/itemSelectByProduct", + "style": { + "navigationBarTitleText": "选择盘点项", + "navigationStyle": "custom" + } + }, + { + "path": "materialCheck/productSelect", + "style": { + "navigationBarTitleText": "选择产品", + "navigationStyle": "custom" + } + }, + { + "path": "materialCheck/areaSelect", + "style": { + "navigationBarTitleText": "选择库区", + "navigationStyle": "custom" + } + }, { "path": "keypart/index", diff --git a/src/pages_function/pages/materialCheck/areaSelect.vue b/src/pages_function/pages/materialCheck/areaSelect.vue new file mode 100644 index 0000000..f7b8541 --- /dev/null +++ b/src/pages_function/pages/materialCheck/areaSelect.vue @@ -0,0 +1,190 @@ + + + + + diff --git a/src/pages_function/pages/materialCheck/create.vue b/src/pages_function/pages/materialCheck/create.vue new file mode 100644 index 0000000..3da4ee4 --- /dev/null +++ b/src/pages_function/pages/materialCheck/create.vue @@ -0,0 +1,407 @@ +