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(() => {