From 5519ec49e82d2219dd1edfb373407979cb951f28 Mon Sep 17 00:00:00 2001 From: jinna Date: Mon, 26 Jan 2026 16:53:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=AE=A1=E7=90=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionMonitoring.js | 52 +++++- .../components/closedDialog.vue | 112 +++++++++---- .../components/productionMonitoringDialog.vue | 150 ++++++++++-------- .../productionMonitoring.vue | 125 +++++++-------- 4 files changed, 270 insertions(+), 169 deletions(-) diff --git a/src/api/productionManagement/productionMonitoring.js b/src/api/productionManagement/productionMonitoring.js index 5ace83d..39ece0a 100644 --- a/src/api/productionManagement/productionMonitoring.js +++ b/src/api/productionManagement/productionMonitoring.js @@ -12,4 +12,54 @@ export const getList = (current, size, params) => { }); }; -// \ No newline at end of file +// 调整优先级 / +export const updatePrioritye = data => { + return request({ + url: '/blade-desk/workOrder/updatePrioritye', + method: 'post', + data: data, + }); +}; + +// 分批 +export const inBatches = data => { + return request({ + url: '/blade-desk/workOrder/inBatches', + method: 'post', + data: data, + }); +}; +// 获取分批详情 +export const batchesPrepare = woId => { + return request({ + url: `/blade-desk/workOrder/batchesPrepare/${woId}`, + method: 'get', + }); +}; + +// 获取转外协所需数据 +export const getListProProcess = data => { + return request({ + url: '/blade-desk/workOrder/listProProcess', + method: 'post', + data: data, + }); +}; + +// 转外协 / +export const transferBill = data => { + return request({ + url: '/blade-desk/workOrder/transferBill', + method: 'post', + data: data, + }); +}; + +// 关闭 / +export const updateStatus = data => { + return request({ + url: '/blade-desk/workOrder/updateStatus', + method: 'post', + data: data, + }); +}; diff --git a/src/views/productionManagement/components/closedDialog.vue b/src/views/productionManagement/components/closedDialog.vue index c39ad89..a6f5d4b 100644 --- a/src/views/productionManagement/components/closedDialog.vue +++ b/src/views/productionManagement/components/closedDialog.vue @@ -1,45 +1,91 @@ \ No newline at end of file diff --git a/src/views/productionManagement/components/productionMonitoringDialog.vue b/src/views/productionManagement/components/productionMonitoringDialog.vue index c110cbb..424bc6c 100644 --- a/src/views/productionManagement/components/productionMonitoringDialog.vue +++ b/src/views/productionManagement/components/productionMonitoringDialog.vue @@ -1,73 +1,97 @@ \ No newline at end of file diff --git a/src/views/productionManagement/productionMonitoring.vue b/src/views/productionManagement/productionMonitoring.vue index 0c5bb5c..c70d397 100644 --- a/src/views/productionManagement/productionMonitoring.vue +++ b/src/views/productionManagement/productionMonitoring.vue @@ -20,7 +20,7 @@ - - @@ -128,7 +126,12 @@ - + @@ -138,6 +141,7 @@ > + { + + // }) + + // this.$message.success( + // `优先级已调整为${data.priority === 1 ? '一级' : data.priority === 2 ? '二级' : '三级'}` + // ); }, selectionChange(val) { this.selectionList = val; @@ -705,9 +677,11 @@ export default { this.showScheduling = true; }, // 关闭 - handleClose() { + handleClose(row) { + this.itemData = [row]; this.showClose = true; }, + // 转烧结 handleSintering() { this.$confirm('确定将此订单转到烧结中心吗?', '是否继续', { @@ -760,7 +734,7 @@ export default { this.showAbnormal = true; }, // 关闭弹窗 - closeDialog() { + closeDialog(type) { this.showDialog = false; this.monitorDialog = false; this.showBatches = false; @@ -769,6 +743,9 @@ export default { this.showScheduling = false; this.showAbnormal = false; this.isPriorityOpen = false; + if (type) { + this.onLoad(this.page, this.query); + } }, currentChange(currentPage) { this.page.currentPage = currentPage; @@ -799,7 +776,11 @@ export default { }, onLoad(page, params = {}) { // this.loading = true; - getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { + getList( + page.currentPage, + page.pageSize, + Object.assign(params, this.query, { yieldType: 1 }) + ).then(res => { this.data = res.data.data.records; // this.loading = false; this.page.total = res.data.data.total;