From 60360cd54a16e827b19088578efb3aecf5ca517d Mon Sep 17 00:00:00 2001 From: ruanqi Date: Fri, 12 Jul 2024 09:19:08 +0800 Subject: [PATCH] =?UTF-8?q?0412=20=E6=96=B0=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/production/generateReport.js | 1 + .../modules/production/closeSchedule.vue | 27 ++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/api/production/generateReport.js b/src/api/production/generateReport.js index 40405de..7587258 100644 --- a/src/api/production/generateReport.js +++ b/src/api/production/generateReport.js @@ -33,6 +33,7 @@ export const continueWork= data => createAPI(`dailyPlan/continueWork`, 'post', d export const circulationSchedule= data => createAPI(`dailyPlan/circulationSchedule`, 'post', data); export const closeSchedule= data => createAPI(`dailyPlan/closeSchedule`, 'post', data); +export const openSchedule= data => createAPI(`dailyPlan/openSchedule`, 'post', data); export const searchLastApproveQty= data => createAPI(`dailyPlan/searchLastApproveQty`, 'post', data); export const transFerSearch= data => createAPI(`dailyPlan/transFerSearch`, 'post', data); diff --git a/src/views/modules/production/closeSchedule.vue b/src/views/modules/production/closeSchedule.vue index 8d2516a..2309426 100644 --- a/src/views/modules/production/closeSchedule.vue +++ b/src/views/modules/production/closeSchedule.vue @@ -117,6 +117,7 @@ @@ -381,7 +382,7 @@ import { getSOScheduleRoutingData, circulationSchedule, - closeSchedule + closeSchedule,openSchedule } from '@/api/production/generateReport.js' import Chooselist from '@/views/modules/common/Chooselist' export default { @@ -642,6 +643,30 @@ }) }) }, + openSchedule(row){ + this.$confirm(`确定打开此派工单`, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + openSchedule(row).then(({data}) => { + if (data && data.code === 0) { + this.search(); + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => { + } + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }) + }, closeSchedule(row){ this.$confirm(`确定关闭此派工单`, '提示', { confirmButtonText: '确定',