|
|
|
@ -310,7 +310,7 @@ |
|
|
|
<el-input type="textarea" :rows="3" v-model="modalData.fiberInformation" :disabled="isRohsFieldDisabled('fiberInformation')" resize="none" style="width: 802px;height: 30px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-top: 50px"> |
|
|
|
<el-form v-if="shouldShowHsfStandard(modalData.endCustomer)" :inline="true" label-position="top" :model="modalData" style="margin-top: 50px"> |
|
|
|
<el-form-item label="HSF标准/HSF Standard" style="display: block;"> |
|
|
|
<el-input type="textarea" :rows="3" v-model="modalData.hsfStandard" :disabled="isRohsFieldDisabled('hsfStandard')" resize="none" style="width: 802px;height: 30px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -675,7 +675,7 @@ |
|
|
|
<el-form :inline="true" label-position="top" :model="currentRow"> |
|
|
|
<el-form-item label="Fiber报告信息/Fiber Information" style="display: block;"><el-input type="textarea" :rows="3" :value="currentRow.fiberInformation || ''" disabled resize="none" style="width: 802px;height: 30px"></el-input></el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="currentRow" style="margin-top: 50px"> |
|
|
|
<el-form v-if="shouldShowHsfStandard(currentRow.endCustomer)" :inline="true" label-position="top" :model="currentRow" style="margin-top: 50px"> |
|
|
|
<el-form-item label="HSF标准/HSF Standard" style="display: block;"><el-input type="textarea" :rows="3" :value="currentRow.hsfStandard || ''" disabled resize="none" style="width: 802px;height: 30px"></el-input></el-form-item> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
@ -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 |
|
|
|
|