From 10f68b3b554ec3329385ee11c2a42e3aa961efa1 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Fri, 21 Aug 2026 15:02:59 +0800 Subject: [PATCH] =?UTF-8?q?2026-08-21=201=E3=80=81ipqc=E6=A3=80=E9=AA=8C?= =?UTF-8?q?=EF=BC=8C=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6=E2=80=9D=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E7=B1=BB=E5=9E=8B=E2=80=9C=E6=94=B9=E6=88=90=E5=A4=9A?= =?UTF-8?q?=E9=80=89=EF=BC=9B=202=E3=80=81=E4=B8=8A=E4=BC=A0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=88=A4=E6=96=AD=E6=9C=BA=E5=99=A8=E5=8F=B7=E8=B5=8B?= =?UTF-8?q?=E5=80=BC=E5=B7=A5=E5=BA=8F=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/qc/IPQCResultEntry.vue | 27 ++++++++++++++++--- .../yieldReport/com_tid_upload_order.vue | 17 +++++++++++- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/src/views/modules/qc/IPQCResultEntry.vue b/src/views/modules/qc/IPQCResultEntry.vue index aac9d0b..f1aa94f 100644 --- a/src/views/modules/qc/IPQCResultEntry.vue +++ b/src/views/modules/qc/IPQCResultEntry.vue @@ -59,7 +59,12 @@ - + @@ -1668,6 +1673,7 @@ startDate2: '', endDate2: '', inspectionTypeNo: '', + inspectionTypeNos: [], partNo: '', partDesc: '', cinvSourceCode: '', @@ -3196,6 +3202,7 @@ userName: this.$store.state.user.name, inspectionNo: '', inspectionTypeNo: '', + inspectionTypeNos: [], isQualified: '', buNo: '', startDate: '', @@ -4124,7 +4131,8 @@ this.searchLoading = true this.searchData.limit = this.pageSize this.searchData.page = this.pageIndex - qcIPQCInspectionSearch(this.searchData).then(({data}) => { + const queryData = this.buildSearchQueryData() + qcIPQCInspectionSearch(queryData).then(({data}) => { if (data.code === 0) { this.dataList = data.page.list this.pageIndex = data.page.currPage @@ -4156,10 +4164,23 @@ async createExportData () { this.searchData.limit = -1 this.searchData.page = 1 - const { data } = await qcIPQCInspectionSearch(this.searchData) + const queryData = this.buildSearchQueryData() + const { data } = await qcIPQCInspectionSearch(queryData) return data.page.list || [] }, + buildSearchQueryData () { + const queryData = { + ...this.searchData + } + const inspectionTypeNos = Array.isArray(queryData.inspectionTypeNos) + ? queryData.inspectionTypeNos.filter(item => item !== null && item !== undefined && String(item).trim() !== '') + : [] + queryData.inspectionTypeNos = inspectionTypeNos + queryData.inspectionTypeNo = inspectionTypeNos.length === 1 ? inspectionTypeNos[0] : '' + return queryData + }, + startDownload () { this._exportLoading = this.$loading({ lock: true, diff --git a/src/views/modules/yieldReport/com_tid_upload_order.vue b/src/views/modules/yieldReport/com_tid_upload_order.vue index f46d9fa..edabf49 100644 --- a/src/views/modules/yieldReport/com_tid_upload_order.vue +++ b/src/views/modules/yieldReport/com_tid_upload_order.vue @@ -270,8 +270,8 @@ export default { scheduledDate: scheduleData.scheduledDate || '' } - this.uploadForm.process = '' this.uploadForm.machineNo = scheduleData.resourceId || scheduleData.resourceDesc || '' + this.uploadForm.process = this.getDefaultProcessByMachineNo(this.uploadForm.machineNo) this.uploadForm.shift = scheduleData.shiftNo || '' this.uploadForm.operatorNo = '' this.uploadForm.date = this.getTodayDateString() @@ -366,6 +366,21 @@ export default { return this.formatDateValue(new Date()) }, + getDefaultProcessByMachineNo (machineNo) { + const normalizedMachineNo = machineNo ? String(machineNo).trim().toUpperCase() : '' + if (!normalizedMachineNo) { + return '' + } + const firstLetter = normalizedMachineNo.charAt(0) + if (firstLetter === 'A') { + return 'testing' + } + if (firstLetter === 'M') { + return 'bonding' + } + return '' + }, + formatDateValue (dateObj) { var year = dateObj.getFullYear() var month = dateObj.getMonth() + 1