From 099e3ae3865163da089f0e4990f462b19e09c7a3 Mon Sep 17 00:00:00 2001 From: zhongwenkai <3478244299@qq.com> Date: Mon, 22 Jun 2026 17:51:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BB=93=E5=BA=93=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E5=A4=87=E4=BB=B6=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/moldget.js | 14 +- src/api/mes/sparepartCheck.js | 82 ++ src/pages.json | 42 + .../pages/sparepartCheck/create.vue | 497 ++++++++++ .../pages/sparepartCheck/execute.vue | 414 ++++++++ .../pages/sparepartCheck/index.vue | 917 ++++++++++++++++++ .../pages/sparepartCheck/itemSelect.vue | 347 +++++++ .../sparepartCheck/itemSelectByProduct.vue | 307 ++++++ .../pages/sparepartCheck/productSelect.vue | 340 +++++++ src/utils/permissionMenu.js | 3 + 10 files changed, 2961 insertions(+), 2 deletions(-) create mode 100644 src/api/mes/sparepartCheck.js create mode 100644 src/pages_function/pages/sparepartCheck/create.vue create mode 100644 src/pages_function/pages/sparepartCheck/execute.vue create mode 100644 src/pages_function/pages/sparepartCheck/index.vue create mode 100644 src/pages_function/pages/sparepartCheck/itemSelect.vue create mode 100644 src/pages_function/pages/sparepartCheck/itemSelectByProduct.vue create mode 100644 src/pages_function/pages/sparepartCheck/productSelect.vue diff --git a/src/api/mes/moldget.js b/src/api/mes/moldget.js index c1d333a..dbeb3b2 100644 --- a/src/api/mes/moldget.js +++ b/src/api/mes/moldget.js @@ -48,10 +48,20 @@ export function deleteMoldGet(ids = []) { }) } -export function getWarehouseSimpleList() { +export function getWarehouseSimpleList(params = {}) { return request({ url: '/admin-api/erp/warehouse/simple-list', - method: 'get' + method: 'get', + params + }) +} + +// 仓库分页列表(支持 categoryType 过滤) +export function getWarehousePage(params = {}) { + return request({ + url: '/admin-api/erp/warehouse/page', + method: 'get', + params }) } diff --git a/src/api/mes/sparepartCheck.js b/src/api/mes/sparepartCheck.js new file mode 100644 index 0000000..dfae2c1 --- /dev/null +++ b/src/api/mes/sparepartCheck.js @@ -0,0 +1,82 @@ +import request from '@/utils/request' + +// 创建盘点单 +export function createCheck(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 getSparepartCheckPage(params = {}) { + return request({ + url: '/admin-api/erp/stock-check/page', + method: 'get', + params + }) +} + +// 备件盘点单详情 +export function getSparepartCheckDetail(id) { + return request({ + url: '/admin-api/erp/stock-check/get', + method: 'get', + params: { id } + }) +} + +// 备件盘点执行(提交盘点结果) +export function executeSparepartCheck(data) { + return request({ + url: '/admin-api/erp/stock-check/update', + method: 'put', + data + }) +} + +// 备件盘点单提交 +export function submitSparepartCheck(data) { + return request({ + url: '/admin-api/erp/stock-check/submit', + method: 'put', + data + }) +} + +// 备件盘点单审核(status: 20=通过, 1=驳回) +export function auditSparepartCheck(data) { + return request({ + url: '/admin-api/erp/stock-check/audit', + method: 'put', + data + }) +} + +// 备件盘点单删除 +export function deleteSparepartCheck(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 2747e7c..535038b 100644 --- a/src/pages.json +++ b/src/pages.json @@ -458,6 +458,48 @@ "navigationStyle": "custom" } }, + { + "path": "sparepartCheck/index", + "style": { + "navigationBarTitleText": "备件盘点", + "navigationStyle": "custom" + } + }, + { + "path": "sparepartCheck/execute", + "style": { + "navigationBarTitleText": "执行盘点", + "navigationStyle": "custom" + } + }, + { + "path": "sparepartCheck/create", + "style": { + "navigationBarTitleText": "新增盘点单", + "navigationStyle": "custom" + } + }, + { + "path": "sparepartCheck/itemSelect", + "style": { + "navigationBarTitleText": "选择盘点项", + "navigationStyle": "custom" + } + }, + { + "path": "sparepartCheck/itemSelectByProduct", + "style": { + "navigationBarTitleText": "选择盘点项", + "navigationStyle": "custom" + } + }, + { + "path": "sparepartCheck/productSelect", + "style": { + "navigationBarTitleText": "选择产品", + "navigationStyle": "custom" + } + }, { "path": "keypart/index", diff --git a/src/pages_function/pages/sparepartCheck/create.vue b/src/pages_function/pages/sparepartCheck/create.vue new file mode 100644 index 0000000..4bfc3d0 --- /dev/null +++ b/src/pages_function/pages/sparepartCheck/create.vue @@ -0,0 +1,497 @@ +