From f4857c48e825e69f838d2b5e31c298a1e53916d1 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 14 May 2026 17:50:52 +0800 Subject: [PATCH] =?UTF-8?q?2026-05-14=20RoHs=E5=8A=9F=E8=83=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/rohs/rohsRecord.vue | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/views/modules/rohs/rohsRecord.vue b/src/views/modules/rohs/rohsRecord.vue index 9f919de..45e0673 100644 --- a/src/views/modules/rohs/rohsRecord.vue +++ b/src/views/modules/rohs/rohsRecord.vue @@ -310,7 +310,7 @@ - + @@ -675,7 +675,7 @@ - + @@ -1127,6 +1127,9 @@ export default { if (fieldConfig.required !== 'Y') { continue } + if (fieldConfig.fieldId === 'hsfStandard' && !this.shouldShowHsfStandard(this.modalData.endCustomer)) { + continue + } const value = this.getRohsSubmitFieldValue(fieldConfig.fieldId) if (this.isSubmitFieldEmpty(value)) { this.$message.warning((fieldConfig.fieldName || fieldConfig.fieldId) + '不能为空!') @@ -1152,6 +1155,17 @@ export default { } return value || '' }, + shouldShowHsfStandard (customerCode) { + return String(customerCode || '').trim().toUpperCase() === 'C00052' + }, + normalizeHsfStandardByCustomer (formData) { + if (!formData) { + return + } + if (!this.shouldShowHsfStandard(formData.endCustomer)) { + this.$set(formData, 'hsfStandard', '') + } + }, isCurrentApprover () { return this.superAdmin || (this.modalData.createBy2 && this.modalData.createBy2.split(';').includes(this.createBy2)) }, @@ -1524,6 +1538,7 @@ export default { this.$message.warning('当前状态不允许保存') return } + this.normalizeHsfStandardByCustomer(this.modalData) this.modalData.qualificationDocumentsNeeded = this.modalData.qualificationDocumentsNeededList.join(';') this.modalData.testReportIncludingItems = this.modalData.testReportIncludingItemsList.join(';') this.modalData.materialClassify = this.modalData.materialClassifyList.join(';') @@ -1589,6 +1604,7 @@ export default { this.$message.warning('单据主键信息缺失,无法提交审批') return } + this.normalizeHsfStandardByCustomer(this.modalData) if (!this.nodeAuthorityLoaded) { this.$message.warning('节点权限加载中,请稍后重试') return