From 53fe484c552aca367a82bc84c61870594216bed9 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 11 Dec 2025 16:12:03 +0800 Subject: [PATCH] =?UTF-8?q?2025-12-11=20=E8=BF=87=E7=AB=99=E9=87=87?= =?UTF-8?q?=E9=9B=86-=E3=80=8B=E8=BD=A6=E9=97=B4=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0->=E6=9D=90=E6=96=99=E6=B8=85=E5=8D=95?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E3=80=90=E6=9D=90=E6=96=99=E6=9A=82=E5=AD=98?= =?UTF-8?q?=E3=80=91=E3=80=90=E6=9D=90=E6=96=99=E6=8B=BC=E5=8D=B7=E3=80=91?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/yieldReport/com_material_loss.js | 7 + src/api/yieldReport/com_material_roll_up.js | 7 + src/views/modules/qc/OQCResultEntry.vue | 4 +- .../modules/yieldReport/com_material_loss.vue | 616 ++++++++++++++++++ .../yieldReport/com_material_roll_up.vue | 616 ++++++++++++++++++ .../yieldReport/com_produce_report_normal.vue | 49 +- 6 files changed, 1293 insertions(+), 6 deletions(-) create mode 100644 src/api/yieldReport/com_material_loss.js create mode 100644 src/api/yieldReport/com_material_roll_up.js create mode 100644 src/views/modules/yieldReport/com_material_loss.vue create mode 100644 src/views/modules/yieldReport/com_material_roll_up.vue diff --git a/src/api/yieldReport/com_material_loss.js b/src/api/yieldReport/com_material_loss.js new file mode 100644 index 0000000..6832f5d --- /dev/null +++ b/src/api/yieldReport/com_material_loss.js @@ -0,0 +1,7 @@ +import { createAPI } from '@/utils/httpRequest.js' + +/** + * 材料损耗(调用 MaterialProcessLoss 存储过程) + */ +export const materialProcessLoss = data => createAPI(`/pms/yieldReportCommons/materialProcessLoss`, 'post', data) + diff --git a/src/api/yieldReport/com_material_roll_up.js b/src/api/yieldReport/com_material_roll_up.js new file mode 100644 index 0000000..b7ebd43 --- /dev/null +++ b/src/api/yieldReport/com_material_roll_up.js @@ -0,0 +1,7 @@ +import { createAPI } from '@/utils/httpRequest.js' + +/** + * 材料接卷(调用 MaterialProcessRollUp 存储过程) + */ +export const materialProcessRollUp = data => createAPI(`/pms/yieldReportCommons/materialProcessRollUp`, 'post', data) + diff --git a/src/views/modules/qc/OQCResultEntry.vue b/src/views/modules/qc/OQCResultEntry.vue index db6b014..4882ca9 100644 --- a/src/views/modules/qc/OQCResultEntry.vue +++ b/src/views/modules/qc/OQCResultEntry.vue @@ -1872,7 +1872,8 @@ responsiblePersonName: '', passQty: '', notPassQty: '', - spec: '' + spec: '', + state: '' }, detailInformationFlag: false, detailList: [], @@ -2815,6 +2816,7 @@ this.detailData.operatorName = row.operatorName this.detailData.responsiblePerson = row.responsiblePerson this.detailData.responsiblePersonName = row.responsiblePersonName + this.detailData.state = row.state this.detailData.spec = row.spec if (row.state === '待检验') { this.detailData.passQty = row.samplingQty diff --git a/src/views/modules/yieldReport/com_material_loss.vue b/src/views/modules/yieldReport/com_material_loss.vue new file mode 100644 index 0000000..212f109 --- /dev/null +++ b/src/views/modules/yieldReport/com_material_loss.vue @@ -0,0 +1,616 @@ + + + + + + diff --git a/src/views/modules/yieldReport/com_material_roll_up.vue b/src/views/modules/yieldReport/com_material_roll_up.vue new file mode 100644 index 0000000..1577f40 --- /dev/null +++ b/src/views/modules/yieldReport/com_material_roll_up.vue @@ -0,0 +1,616 @@ + + + + + + diff --git a/src/views/modules/yieldReport/com_produce_report_normal.vue b/src/views/modules/yieldReport/com_produce_report_normal.vue index ae486ee..9f9999f 100644 --- a/src/views/modules/yieldReport/com_produce_report_normal.vue +++ b/src/views/modules/yieldReport/com_produce_report_normal.vue @@ -435,7 +435,7 @@ fixed="left" header-align="center" align="center" - width="160" + width="150" label="操作"> + + + + + + + + + + @@ -875,6 +892,8 @@ 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 comMaterialLoss from "./com_material_loss"/*材料损耗*/ +import comMaterialRollUp from "./com_material_roll_up"/*材料接卷*/ import comProduceDown from "./com_produce_down";/*停机组件*/ import comFinishSchedule from "./com_finish_schedule";/*结束派工单组件*/ import notOverFinishRoll from "./not_over_finish_roll";/*生产过程的停机组件*/ @@ -914,6 +933,8 @@ export default { showReplaceMaterialFlag: false, showCuttingMaterialFlag: false, showAbnormalMaterialOfflineFlag: false, + showMaterialLossFlag: false, + showMaterialRollUpFlag: false, showDownFlag: false, showFinishScheduleFlag: false, showSopPreviewFlag: false, // SOP预览弹出框显示状态 @@ -3789,6 +3810,8 @@ export default { comReplaceMaterial,/*换料的组件*/ comCuttingMaterial,/*材料下料的功能*/ comAbnormalMaterialOffline,/*材料异常下机*/ + comMaterialLoss,/*材料损耗*/ + comMaterialRollUp,/*材料接卷*/ comProduceDown,/*生产过程的停机组件*/ comFinishSchedule,/*结束派工单的组件*/ notOverFinishRoll,/*异常下级报工*/ @@ -4587,6 +4610,22 @@ export default { }); }, + /*材料损耗的modal*/ + materialLossModal(materialRow) { + this.$nextTick(() => { + this.showMaterialLossFlag = true; + this.$refs.comMaterialLoss.init(this.scheduleData, this.operatorData, materialRow); + }); + }, + + /*材料接卷的modal*/ + materialRollUpModal(materialRow) { + this.$nextTick(() => { + this.showMaterialRollUpFlag = true; + this.$refs.comMaterialRollUp.init(this.scheduleData, this.operatorData, materialRow); + }); + }, + /*材料结束生产的modal*/ finishMaterialModal(materialRow) { this.$nextTick(() => {