diff --git a/src/views/modules/yieldReport/com_process_inspection.vue b/src/views/modules/yieldReport/com_process_inspection.vue index 7f17761..a592856 100644 --- a/src/views/modules/yieldReport/com_process_inspection.vue +++ b/src/views/modules/yieldReport/com_process_inspection.vue @@ -311,6 +311,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
+ + 应用 + 保存 + 关闭 + +
+ @@ -332,7 +485,8 @@ import { queryPartList, // 查询物料集合 rollNoEnter as rollNoEnterAPI, // 标签号回车事件 searchSeqInfo, // 派工单号查询 - getSiteAndBuByUserName2 // 获取BU列表 + getSiteAndBuByUserName2, // 获取BU列表 + saveIPQCDetailedRecord // 保存检验明细记录 } from "@/api/qc/qc.js" import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" import { getInspectionFile } from '@/api/eam/eam_object_list.js' @@ -649,6 +803,14 @@ export default { batchQualifiedQty: '' }, detailList: [], + transferLoadFlag: false, + saveInformationData: { + site: '', + buNo: '', + inspectionNo:'', + detailList: [], + type: '' + }, // 开始检验相关 ItemObjectModelFlag: false, actionData: { @@ -1330,6 +1492,28 @@ export default { this.fileFlag = true }, + // 保存检验明细(应用/保存) + Transfer(type) { + this.transferLoadFlag = true + this.saveInformationData.site = this.detailData.site + this.saveInformationData.buNo = this.detailData.buNo + this.saveInformationData.inspectionNo = this.detailData.inspectionNo + this.saveInformationData.detailList = this.detailList + this.saveInformationData.type = type + saveIPQCDetailedRecord(this.saveInformationData).then(({data}) => { + if (data && data.code === 0) { + this.getDataList() + this.detailInformationFlag = false + this.$message.success('操作成功') + } else { + this.$message.error(data.msg) + } + this.transferLoadFlag = false + }).catch(() => { + this.transferLoadFlag = false + }) + }, + // 关闭弹窗 handleClose() { this.$emit('update:visible', false)