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