From cbb49d90889e60a828a69738084aca373bd64daa Mon Sep 17 00:00:00 2001 From: TengXF <302828528@qq.com> Date: Mon, 6 May 2024 09:47:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20update=20=E5=A2=9E=E5=8A=A0=E5=8F=AB?= =?UTF-8?q?=E6=96=99=E3=80=81=E9=A2=86=E6=96=99=E3=80=81=E8=A1=A5=E6=96=99?= =?UTF-8?q?=E3=80=81=E5=AE=8C=E5=B7=A5=E3=80=81=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/workScheduling/index.ts | 21 ++++++++++++ src/pages/mes/reworkBatch/create.vue | 1 + .../mes/workScheduling/workScheduling.vue | 33 +++++++++++++++++++ 3 files changed, 55 insertions(+) diff --git a/src/api/mes/workScheduling/index.ts b/src/api/mes/workScheduling/index.ts index eb3da07..4dfb516 100644 --- a/src/api/mes/workScheduling/index.ts +++ b/src/api/mes/workScheduling/index.ts @@ -77,3 +77,24 @@ export const getConfigProcessWorker = async (params: any) => { export const reportWorkByProcess = async (params: any) => { return http.post('/mes/work-scheduling-detail/reportWorkByProcess', params) } + +//完工处理 +export function completeHandle(data) { + return http.post('/mes/workScheduling/completeHandle', data) +} + +//叫料 +export function callBasicItem(data) { + return http.post('/mes/', data) +} + +//领料 +export function receiveBasicItem(data) { + return http.post('/mes/', data) +} + +//补料 +export function addBasicItem(data) { + return http.post('/mes/', data) +} + diff --git a/src/pages/mes/reworkBatch/create.vue b/src/pages/mes/reworkBatch/create.vue index c6a9d85..a29d0f3 100644 --- a/src/pages/mes/reworkBatch/create.vue +++ b/src/pages/mes/reworkBatch/create.vue @@ -198,6 +198,7 @@ } // 选择返工返修时间回调函数 function selectReworkTime(index){ + console.log(index) const dateStr = `${index.year}-${index.month}-${index.day}` form.value.reworkStr = dateStr form.value.reworkTime = index.timestamp diff --git a/src/pages/mes/workScheduling/workScheduling.vue b/src/pages/mes/workScheduling/workScheduling.vue index 05e93dc..0d9f60e 100644 --- a/src/pages/mes/workScheduling/workScheduling.vue +++ b/src/pages/mes/workScheduling/workScheduling.vue @@ -62,6 +62,12 @@ 开工 + + 叫料 + 领料 + 补料 + 完工 + @@ -267,6 +273,33 @@ async function searchTable() { } }) } + // 完工处理(临时,后续调整) +function completeHandle(item) { + console.log(item) + // proxy.$modal.loading('处理中') + // workSchedulingListApi.completeHandle(completedParams.value).then((res) => { + // proxy.$modal.closeLoading() + // if (res.data) { + + // } else { + + // } + // }).catch(() => { + // proxy.$modal.closeLoading() + // }) +} +// 叫料 +function callBasicItem(item){ + console.log(item) +} +// 补料 +function receiveBasicItem(item){ + console.log(item) +} +// 领料 +function addBasicItem(item){ + console.log(item) +}