From 877e697e9911f6a664580ac9880a2a45619e121e Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 30 Jul 2026 13:30:11 +0800 Subject: [PATCH] =?UTF-8?q?2026-07-30=20RoHS=EF=BC=9A=20=E5=BD=93=E2=80=9C?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E2=80=9D=E6=94=B9=E4=B8=BADead=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=B0=86=E6=9D=90=E6=96=99=E4=BF=A1=E6=81=AF=E9=A1=B5?= =?UTF-8?q?=E7=AD=BE=E4=B8=AD=E7=9A=84=E7=89=A9=E6=96=99=E7=9A=84=E2=80=9C?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E2=80=9D=E6=94=B9=E4=B8=BAD=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/rohs/rohsRecord.vue | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/views/modules/rohs/rohsRecord.vue b/src/views/modules/rohs/rohsRecord.vue index e82302d..f39ae73 100644 --- a/src/views/modules/rohs/rohsRecord.vue +++ b/src/views/modules/rohs/rohsRecord.vue @@ -3166,6 +3166,7 @@ export default { const rohsStatus = String(latestData.rohsStatus || this.updateExpiryForm.rohsStatus || this.modalData.rohsStatus || 'Active').trim() || 'Active' const expiryDate = this.normalizeDateOnly(latestData.expiryDate || this.updateExpiryForm.expiryDate) const isExpiring = String(latestData.isExpiring || this.modalData.isExpiring || 'N').trim().toUpperCase() === 'Y' ? 'Y' : 'N' + const isDeadStatus = rohsStatus.toUpperCase() === 'DEAD' this.$set(this.modalData, 'expiredDate', expiredDate) this.$set(this.modalData, 'validUntilValue', validUntilValue) @@ -3173,6 +3174,15 @@ export default { this.$set(this.modalData, 'rohsStatus', rohsStatus) this.$set(this.modalData, 'expiryDate', expiryDate) this.$set(this.modalData, 'isExpiring', isExpiring) + if (Array.isArray(latestData.materialList)) { + this.$set(this.modalData, 'materialList', latestData.materialList) + } + if (isDeadStatus && Array.isArray(this.modalData.materialList) && this.modalData.materialList.length) { + this.$set(this.modalData, 'materialList', this.modalData.materialList.map(item => ({ + ...(item || {}), + partStatus: 'D' + }))) + } if (this.currentRow && this.currentRow.site === this.modalData.site && this.currentRow.referenceNo === this.modalData.referenceNo) { this.$set(this.currentRow, 'expiredDate', expiredDate) @@ -3181,6 +3191,15 @@ export default { this.$set(this.currentRow, 'rohsStatus', rohsStatus) this.$set(this.currentRow, 'expiryDate', expiryDate) this.$set(this.currentRow, 'isExpiring', isExpiring) + if (Array.isArray(latestData.materialList)) { + this.$set(this.currentRow, 'materialList', latestData.materialList) + } + if (isDeadStatus && Array.isArray(this.currentRow.materialList) && this.currentRow.materialList.length) { + this.$set(this.currentRow, 'materialList', this.currentRow.materialList.map(item => ({ + ...(item || {}), + partStatus: 'D' + }))) + } } const target = (this.dataList || []).find(item => item.site === this.modalData.site && item.referenceNo === this.modalData.referenceNo) if (target) {