From 61aa5aa3963167dd0e6d562844f3134fb3b022f3 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 2 Dec 2025 15:24:32 +0800 Subject: [PATCH] =?UTF-8?q?2025-12-02=20=E6=9C=BA=E5=8F=B0=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E5=8F=B0=E5=BC=82=E5=B8=B8=E4=B8=8B=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com_abnormal_material_offline.js | 9 + .../com_abnormal_material_offline.vue | 516 ++++++++++++++++++ .../yieldReport/com_produce_report_normal.vue | 71 ++- 3 files changed, 571 insertions(+), 25 deletions(-) create mode 100644 src/api/yieldReport/com_abnormal_material_offline.js create mode 100644 src/views/modules/yieldReport/com_abnormal_material_offline.vue diff --git a/src/api/yieldReport/com_abnormal_material_offline.js b/src/api/yieldReport/com_abnormal_material_offline.js new file mode 100644 index 0000000..55a0b3f --- /dev/null +++ b/src/api/yieldReport/com_abnormal_material_offline.js @@ -0,0 +1,9 @@ +import { createAPI } from "@/utils/httpRequest.js"; + +/** + * 材料生产过程中异常退料 + * @param {Object} data - 退料数据 + * @returns {Promise} + */ +export const materialReturnDuringProduction = data => createAPI(`/schedule/materialReturnDuringProduction`, 'POST', data); + diff --git a/src/views/modules/yieldReport/com_abnormal_material_offline.vue b/src/views/modules/yieldReport/com_abnormal_material_offline.vue new file mode 100644 index 0000000..65c6ce4 --- /dev/null +++ b/src/views/modules/yieldReport/com_abnormal_material_offline.vue @@ -0,0 +1,516 @@ + + + + + diff --git a/src/views/modules/yieldReport/com_produce_report_normal.vue b/src/views/modules/yieldReport/com_produce_report_normal.vue index 467ad5d..dcbaca2 100644 --- a/src/views/modules/yieldReport/com_produce_report_normal.vue +++ b/src/views/modules/yieldReport/com_produce_report_normal.vue @@ -391,7 +391,7 @@ fixed="left" header-align="center" align="center" - width="115" + width="160" label="操作"> + + + + + @@ -819,6 +829,7 @@ import comProduceMaterial from "./com_produce_material";/*生产过程的材料 import comProduceKeyMaterial from "./com_produce_key_material";/*生产过程的材料组件*/ import comReplaceMaterial from "./com_replace_material"/*换料组件*/ import comCuttingMaterial from "./com_cutting_material"/*材料下料*/ +import comAbnormalMaterialOffline from "./com_abnormal_material_offline"/*材料异常下机*/ import comProduceDown from "./com_produce_down";/*停机组件*/ import comFinishSchedule from "./com_finish_schedule";/*结束派工单组件*/ import notOverFinishRoll from "./not_over_finish_roll";/*生产过程的停机组件*/ @@ -857,6 +868,7 @@ export default { showKeyMaterialFlag: false, showReplaceMaterialFlag: false, showCuttingMaterialFlag: false, + showAbnormalMaterialOfflineFlag: false, showDownFlag: false, showFinishScheduleFlag: false, showSopPreviewFlag: false, // SOP预览弹出框显示状态 @@ -1781,7 +1793,7 @@ export default { headerAlign: "center", align: "center", columnLabel: "序号", - columnWidth: 60, + columnWidth: 50, columnHidden: false, columnImage: false, columnSortable: true, @@ -1810,13 +1822,13 @@ export default { { userId: this.$store.state.user.name, functionId: 5303, - serialNumber: '5303MaterialRollNo', + serialNumber: '5303MaterialRmRollNo', tableId: "5303Material", tableName: "派工单材料", - columnProp: "rollNo", + columnProp: "rmRollNo", headerAlign: "center", - align: "center", - columnLabel: "卷号", + align: "left", + columnLabel: "材料卷号", columnWidth: 100, columnHidden: false, columnImage: false, @@ -1861,24 +1873,6 @@ export default { status: true, fixed: false }, - { - userId: this.$store.state.user.name, - functionId: 5303, - serialNumber: '5303MaterialRmRollNo', - tableId: "5303Material", - tableName: "派工单材料", - columnProp: "rmRollNo", - headerAlign: "center", - align: "left", - columnLabel: "材料卷号", - columnWidth: 100, - columnHidden: false, - columnImage: false, - columnSortable: true, - sortLv: 0, - status: true, - fixed: false - }, { userId: this.$store.state.user.name, functionId: 5303, @@ -1889,7 +1883,7 @@ export default { headerAlign: "center", align: "left", columnLabel: "零部件编码", - columnWidth: 100, + columnWidth: 120, columnHidden: false, columnImage: false, columnSortable: true, @@ -2059,6 +2053,24 @@ export default { status: true, fixed: false }, + { + userId: this.$store.state.user.name, + functionId: 5303, + serialNumber: '5303MaterialRollNo', + tableId: "5303Material", + tableName: "派工单材料", + columnProp: "rollNo", + headerAlign: "center", + align: "center", + columnLabel: "扫描卷号", + columnWidth: 140, + columnHidden: false, + columnImage: false, + columnSortable: true, + sortLv: 0, + status: true, + fixed: false + }, { userId: this.$store.state.user.name, functionId: 5303, @@ -3725,6 +3737,7 @@ export default { comProduceKeyMaterial,/*生产过程的材料组件*/ comReplaceMaterial,/*换料的组件*/ comCuttingMaterial,/*材料下料的功能*/ + comAbnormalMaterialOffline,/*材料异常下机*/ comProduceDown,/*生产过程的停机组件*/ comFinishSchedule,/*结束派工单的组件*/ notOverFinishRoll,/*异常下级报工*/ @@ -4490,6 +4503,14 @@ export default { }); }, + /*材料异常下机的modal*/ + abnormalMaterialOfflineModal(materialRow) { + this.$nextTick(() => { + this.showAbnormalMaterialOfflineFlag = true; + this.$refs.comAbnormalMaterialOffline.init(this.scheduleData, this.operatorData, materialRow); + }); + }, + /*材料结束生产的modal*/ finishMaterialModal(materialRow) { this.$nextTick(() => {