From 4e3ccfbf0fd155dd77ec2d4ca7126533cad27c67 Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Thu, 7 Mar 2024 10:37:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=B7=A5=E7=89=A9=E6=96=99=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/reportWork.js | 13 + src/api/mes/reportWorkConsume.js | 12 + src/api/quality/qcMarket.js | 44 ++ src/views/mes/reportWork/index.vue | 222 +++--- src/views/mes/reportWork/selectNewPrepare.vue | 80 ++ src/views/quality/qcInventory/index.vue | 12 +- src/views/quality/qcMarket/index.vue | 701 ++++++++++++++++++ src/views/quality/qcWarehousing/index.vue | 10 - 8 files changed, 964 insertions(+), 130 deletions(-) create mode 100644 src/api/quality/qcMarket.js create mode 100644 src/views/mes/reportWork/selectNewPrepare.vue create mode 100644 src/views/quality/qcMarket/index.vue diff --git a/src/api/mes/reportWork.js b/src/api/mes/reportWork.js index 408fe5a..0a183bb 100644 --- a/src/api/mes/reportWork.js +++ b/src/api/mes/reportWork.js @@ -273,3 +273,16 @@ export function getPutInOrderList(workorderCode) { data: data }); } + +// 获取最新物料列表 +export function getNewPrepareData(workorderCode) { + const data = { + workorderCode + } + return request({ + url: '/mes/reportWork/getNewPrepareData', + method: 'post', + data: data + }); +} + diff --git a/src/api/mes/reportWorkConsume.js b/src/api/mes/reportWorkConsume.js index 97d685d..e9d3b3b 100644 --- a/src/api/mes/reportWorkConsume.js +++ b/src/api/mes/reportWorkConsume.js @@ -60,6 +60,16 @@ export function getConsumeList(query) { params: query }); } + +// 2.0查询各级报工损耗列表 +export function getAllLevelConsumeList(query) { + return request({ + url: '/mes/reportWorkConsume/getAllLevelConsumeList', + method: 'get', + params: query + }); +} + // 提交报工物料损耗详细列表 export function submitConsumePS(data) { return request({ @@ -85,3 +95,5 @@ export function getBomList(query) { params: query }); } + + diff --git a/src/api/quality/qcMarket.js b/src/api/quality/qcMarket.js new file mode 100644 index 0000000..8f09759 --- /dev/null +++ b/src/api/quality/qcMarket.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询市场不良检验任务列表 +export function listQcMarket(query) { + return request({ + url: '/quality/qcMarket/list', + method: 'get', + params: query + }); +} + +// 查询市场不良检验任务详细 +export function getQcMarket(recordId) { + return request({ + url: '/quality/qcMarket/' + recordId, + method: 'get' + }); +} + +// 新增市场不良检验任务 +export function addQcMarket(data) { + return request({ + url: '/quality/qcMarket', + method: 'post', + data: data + }); +} + +// 修改市场不良检验任务 +export function updateQcMarket(data) { + return request({ + url: '/quality/qcMarket', + method: 'put', + data: data + }); +} + +// 删除市场不良检验任务 +export function delQcMarket(recordId) { + return request({ + url: '/quality/qcMarket/' + recordId, + method: 'delete' + }); +} diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue index 572bad5..ddb217e 100644 --- a/src/views/mes/reportWork/index.vue +++ b/src/views/mes/reportWork/index.vue @@ -61,7 +61,7 @@ - + - - - + + + 新增物料 + @@ -522,26 +527,17 @@ - - - - - - - - - - + - - - - + + - +