From 2ffec45f926600ddb10b4d8e13803280b9c5ee2b Mon Sep 17 00:00:00 2001 From: A0010407 Date: Fri, 25 Aug 2023 14:39:57 +0800 Subject: [PATCH] =?UTF-8?q?mes=E6=8A=A5=E5=B7=A5=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/reportWorkConsume.js | 53 +++++ src/views/mes/reportWork/index.vue | 305 ++++++++++++++++++++++------- 2 files changed, 283 insertions(+), 75 deletions(-) create mode 100644 src/api/mes/reportWorkConsume.js diff --git a/src/api/mes/reportWorkConsume.js b/src/api/mes/reportWorkConsume.js new file mode 100644 index 0000000..97944ea --- /dev/null +++ b/src/api/mes/reportWorkConsume.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询生产报工物料消耗列表 +export function listReportWorkConsume(query) { + return request({ + url: '/mes/reportWorkConsume/list', + method: 'get', + params: query + }); +} + +// 查询生产报工物料消耗列表 +export function listReportWorkConsumeById(query) { + return request({ + url: '/mes/reportWorkConsume/consumeList', + method: 'get', + params: query + }); +} + +// 查询生产报工物料消耗详细 +export function getReportWorkConsume(recordId) { + return request({ + url: '/mes/reportWorkConsume/' + recordId, + method: 'get' + }); +} + +// 新增生产报工物料消耗 +export function addReportWorkConsume(data) { + return request({ + url: '/mes/reportWorkConsume', + method: 'post', + data: data + }); +} + +// 修改生产报工物料消耗 +export function updateReportWorkConsume(data) { + return request({ + url: '/mes/reportWorkConsume', + method: 'put', + data: data + }); +} + +// 删除生产报工物料消耗 +export function delReportWorkConsume(recordId) { + return request({ + url: '/mes/reportWorkConsume/' + recordId, + method: 'delete' + }); +} diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue index 5ce8b44..2ef3e9e 100644 --- a/src/views/mes/reportWork/index.vue +++ b/src/views/mes/reportWork/index.vue @@ -79,7 +79,14 @@ - + + + @@ -88,8 +95,20 @@ - - + + + + + + @@ -135,95 +154,197 @@ /> - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +