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