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 @@ +