Browse Source

2026-06-12

RoHs优化
master
fengyuan_yang 2 months ago
parent
commit
8a858e78f7
  1. 156
      src/views/modules/rohs/rohsRecord.vue

156
src/views/modules/rohs/rohsRecord.vue

@ -115,8 +115,16 @@
<el-table-column prop="isMeetRohsRequirement" header-align="center" align="center" label="符合RoHS" width="170"></el-table-column> <el-table-column prop="isMeetRohsRequirement" header-align="center" align="center" label="符合RoHS" width="170"></el-table-column>
<el-table-column prop="isAhGrade" header-align="center" align="center" label="AH属性" width="140"></el-table-column> <el-table-column prop="isAhGrade" header-align="center" align="center" label="AH属性" width="140"></el-table-column>
<el-table-column prop="hsfSupplierClassification" header-align="center" align="center" label="HSF供应商等级" width="220"></el-table-column> <el-table-column prop="hsfSupplierClassification" header-align="center" align="center" label="HSF供应商等级" width="220"></el-table-column>
<el-table-column prop="hsfApprover" header-align="center" align="center" label="HSF审批人" width="240" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="relatedPeople" header-align="center" align="center" label="Inform Related people" width="200" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="hsfApproverName" header-align="center" align="center" label="HSF审批人" width="240" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span>{{ scope.row.hsfApproverName || scope.row.hsfApprover || '' }}</span>
</template>
</el-table-column>
<el-table-column prop="relatedPeopleName" header-align="center" align="center" label="Inform Related people" width="200" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span>{{ scope.row.relatedPeopleName || scope.row.relatedPeople || '' }}</span>
</template>
</el-table-column>
<el-table-column prop="isSameMaterialDiffSize" header-align="center" align="center" label="同材不同规格" width="220"></el-table-column> <el-table-column prop="isSameMaterialDiffSize" header-align="center" align="center" label="同材不同规格" width="220"></el-table-column>
<el-table-column prop="ifsPartNo" header-align="center" align="center" label="IFS编号" width="150"></el-table-column> <el-table-column prop="ifsPartNo" header-align="center" align="center" label="IFS编号" width="150"></el-table-column>
<el-table-column prop="remark" header-align="center" align="center" label="备注" width="220" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="remark" header-align="center" align="center" label="备注" width="220" :show-overflow-tooltip="true"></el-table-column>
@ -442,13 +450,13 @@
<span style="cursor: pointer" v-if="!isRohsFieldDisabled('hsfApprover')" slot="label" @click="openHsfApproverChooseModal"><a herf="#">HSF审批人/HSF Approver</a></span> <span style="cursor: pointer" v-if="!isRohsFieldDisabled('hsfApprover')" slot="label" @click="openHsfApproverChooseModal"><a herf="#">HSF审批人/HSF Approver</a></span>
<span v-else slot="label">HSF审批人/HSF Approver</span> <span v-else slot="label">HSF审批人/HSF Approver</span>
<el-input <el-input
v-model="modalData.hsfApprover"
v-model="modalData.hsfApproverName"
readonly readonly
:disabled="isRohsFieldDisabled('hsfApprover')" :disabled="isRohsFieldDisabled('hsfApprover')"
style="width: 396px" style="width: 396px"
placeholder="请选择人员" placeholder="请选择人员"
@focus="openHsfApproverChooseModal"> @focus="openHsfApproverChooseModal">
<span slot="suffix" v-show="modalData.hsfApprover && !isRohsFieldDisabled('hsfApprover')" @click.stop="clearHsfApproverSelection">
<span slot="suffix" v-show="modalData.hsfApproverName && !isRohsFieldDisabled('hsfApprover')" @click.stop="clearHsfApproverSelection">
<i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i> <i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i>
</span> </span>
</el-input> </el-input>
@ -457,13 +465,13 @@
<span style="cursor: pointer" v-if="!isRohsFieldDisabled('relatedPeople')" slot="label" @click="openRelatedPeopleChooseModal"><a herf="#">Inform Related people</a></span> <span style="cursor: pointer" v-if="!isRohsFieldDisabled('relatedPeople')" slot="label" @click="openRelatedPeopleChooseModal"><a herf="#">Inform Related people</a></span>
<span v-else slot="label">Inform Related people</span> <span v-else slot="label">Inform Related people</span>
<el-input <el-input
v-model="modalData.relatedPeople"
v-model="modalData.relatedPeopleName"
readonly readonly
:disabled="isRohsFieldDisabled('relatedPeople')" :disabled="isRohsFieldDisabled('relatedPeople')"
style="width: 396px" style="width: 396px"
placeholder="请从HSF审批人中选择" placeholder="请从HSF审批人中选择"
@focus="openRelatedPeopleChooseModal"> @focus="openRelatedPeopleChooseModal">
<span slot="suffix" v-show="modalData.relatedPeople && !isRohsFieldDisabled('relatedPeople')" @click.stop="clearRelatedPeopleSelection">
<span slot="suffix" v-show="modalData.relatedPeopleName && !isRohsFieldDisabled('relatedPeople')" @click.stop="clearRelatedPeopleSelection">
<i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i> <i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i>
</span> </span>
</el-input> </el-input>
@ -975,8 +983,8 @@
<el-form-item label="Fiber报告信息/Fiber Information" style="display: block;"><el-input type="textarea" :rows="3" :value="currentRow.fiberInformation || ''" disabled resize="none" style="width: 804px;height: 30px"></el-input></el-form-item> <el-form-item label="Fiber报告信息/Fiber Information" style="display: block;"><el-input type="textarea" :rows="3" :value="currentRow.fiberInformation || ''" disabled resize="none" style="width: 804px;height: 30px"></el-input></el-form-item>
</el-form> </el-form>
<el-form :inline="true" label-position="top" :model="currentRow" style="margin-top: 45px"> <el-form :inline="true" label-position="top" :model="currentRow" style="margin-top: 45px">
<el-form-item label="HSF审批人/HSF Approver"><el-input :value="currentRow.hsfApprover || ''" disabled style="width: 396px"></el-input></el-form-item>
<el-form-item label="Inform Related people"><el-input :value="currentRow.relatedPeople || ''" disabled style="width: 396px"></el-input></el-form-item>
<el-form-item label="HSF审批人/HSF Approver"><el-input :value="currentRow.hsfApproverName || currentRow.hsfApprover || ''" disabled style="width: 396px"></el-input></el-form-item>
<el-form-item label="Inform Related people"><el-input :value="currentRow.relatedPeopleName || currentRow.relatedPeople || ''" disabled style="width: 396px"></el-input></el-form-item>
</el-form> </el-form>
<el-form v-if="shouldShowHsfStandard(currentRow.endCustomer)" :inline="true" label-position="top" :model="currentRow" style="margin-top: 0px"> <el-form v-if="shouldShowHsfStandard(currentRow.endCustomer)" :inline="true" label-position="top" :model="currentRow" style="margin-top: 0px">
<el-form-item label="HSF标准/HSF Standard" style="display: block;"><el-input type="textarea" :rows="3" :value="currentRow.hsfStandard || ''" disabled resize="none" style="width: 804px;height: 30px"></el-input></el-form-item> <el-form-item label="HSF标准/HSF Standard" style="display: block;"><el-input type="textarea" :rows="3" :value="currentRow.hsfStandard || ''" disabled resize="none" style="width: 804px;height: 30px"></el-input></el-form-item>
@ -1326,8 +1334,10 @@ export default {
fiberInformation: '', fiberInformation: '',
hsfStandard: '', hsfStandard: '',
hsfApprover: '', hsfApprover: '',
hsfApproverList: [],
hsfApproverName: '',
hsfApproverCodeList: [],
relatedPeople: '', relatedPeople: '',
relatedPeopleName: '',
buNo: '', buNo: '',
validUntilValue: 0, validUntilValue: 0,
validUntil: '', validUntil: '',
@ -1642,7 +1652,7 @@ export default {
materialClassify: 'materialClassifyList', materialClassify: 'materialClassifyList',
qualificationDocumentsNeeded: 'qualificationDocumentsNeededList', qualificationDocumentsNeeded: 'qualificationDocumentsNeededList',
testReportIncludingItems: 'testReportIncludingItemsList', testReportIncludingItems: 'testReportIncludingItemsList',
hsfApprover: 'hsfApproverList'
hsfApprover: 'hsfApproverCodeList'
} }
const mappedField = fieldMapping[fieldId] const mappedField = fieldMapping[fieldId]
if (mappedField) { if (mappedField) {
@ -1757,55 +1767,88 @@ export default {
} }
this.applyHsfStandardDefaultByCustomer(formData) this.applyHsfStandardDefaultByCustomer(formData)
}, },
resolveOperatorNameById (operatorId) {
const normalizedId = String(operatorId || '').trim()
if (!normalizedId) {
return ''
}
const option = (this.hsfApproverOptionList || []).find(item => String(item.operatorId || '').trim() === normalizedId) ||
(this.relatedPeopleOptionList || []).find(item => String(item.operatorId || '').trim() === normalizedId)
return option ? String(option.operatorName || '').trim() : normalizedId
},
resolveOperatorIdByCodeOrName (operatorValue) {
const normalizedValue = String(operatorValue || '').trim()
if (!normalizedValue) {
return ''
}
const option = (this.hsfApproverOptionList || []).find(item => String(item.operatorId || '').trim() === normalizedValue) ||
(this.hsfApproverOptionList || []).find(item => String(item.operatorName || '').trim() === normalizedValue) ||
(this.relatedPeopleOptionList || []).find(item => String(item.operatorId || '').trim() === normalizedValue) ||
(this.relatedPeopleOptionList || []).find(item => String(item.operatorName || '').trim() === normalizedValue)
return option ? String(option.operatorId || '').trim() : normalizedValue
},
syncHsfApproverFields () { syncHsfApproverFields () {
const sourceList = Array.isArray(this.modalData.hsfApproverList)
? this.modalData.hsfApproverList
const sourceList = Array.isArray(this.modalData.hsfApproverCodeList)
? this.modalData.hsfApproverCodeList
: [] : []
const uniqueList = []
const uniqueCodeList = []
const seen = new Set() const seen = new Set()
sourceList.forEach(item => { sourceList.forEach(item => {
const value = String(item || '').trim()
const value = this.resolveOperatorIdByCodeOrName(item)
if (!value || seen.has(value)) { if (!value || seen.has(value)) {
return return
} }
seen.add(value) seen.add(value)
uniqueList.push(value)
uniqueCodeList.push(value)
}) })
this.$set(this.modalData, 'hsfApproverList', uniqueList)
this.$set(this.modalData, 'hsfApprover', uniqueList.join(';'))
this.buildRelatedPeopleOptions(uniqueList)
const relatedPeople = String(this.modalData.relatedPeople || '').trim()
if (relatedPeople && !uniqueList.includes(relatedPeople)) {
this.$set(this.modalData, 'hsfApproverCodeList', uniqueCodeList)
this.$set(this.modalData, 'hsfApprover', uniqueCodeList.join(';'))
this.$set(this.modalData, 'hsfApproverName', uniqueCodeList.map(item => this.resolveOperatorNameById(item)).join(';'))
this.buildRelatedPeopleOptions(uniqueCodeList)
const relatedPeopleCode = this.resolveOperatorIdByCodeOrName(this.modalData.relatedPeople)
if (relatedPeopleCode && !uniqueCodeList.includes(relatedPeopleCode)) {
this.$set(this.modalData, 'relatedPeople', '') this.$set(this.modalData, 'relatedPeople', '')
this.$set(this.modalData, 'relatedPeopleName', '')
return
}
if (relatedPeopleCode) {
this.$set(this.modalData, 'relatedPeople', relatedPeopleCode)
this.$set(this.modalData, 'relatedPeopleName', this.resolveOperatorNameById(relatedPeopleCode))
} }
}, },
buildRelatedPeopleOptions (selectedNames) {
const normalizedNames = (Array.isArray(selectedNames) ? selectedNames : (this.modalData.hsfApproverList || []))
.map(item => String(item || '').trim())
buildRelatedPeopleOptions (selectedOperatorIds) {
const normalizedIds = (Array.isArray(selectedOperatorIds) ? selectedOperatorIds : (this.modalData.hsfApproverCodeList || []))
.map(item => this.resolveOperatorIdByCodeOrName(item))
.filter(item => !!item) .filter(item => !!item)
const selectedSet = new Set(normalizedNames)
const selectedSet = new Set(normalizedIds)
let optionList = (this.hsfApproverOptionList || []) let optionList = (this.hsfApproverOptionList || [])
.filter(item => selectedSet.has(String(item.operatorName || '').trim()))
.filter(item => selectedSet.has(String(item.operatorId || '').trim()))
.map(item => ({ .map(item => ({
operatorId: item.operatorId, operatorId: item.operatorId,
operatorName: item.operatorName operatorName: item.operatorName
})) }))
const existingNameSet = new Set(optionList.map(item => String(item.operatorName || '').trim()))
normalizedNames.forEach(name => {
if (existingNameSet.has(name)) {
const existingIdSet = new Set(optionList.map(item => String(item.operatorId || '').trim()))
normalizedIds.forEach(operatorId => {
if (existingIdSet.has(operatorId)) {
return return
} }
optionList.push({ optionList.push({
operatorId: name,
operatorName: name
operatorId: operatorId,
operatorName: this.resolveOperatorNameById(operatorId)
}) })
existingNameSet.add(name)
existingIdSet.add(operatorId)
}) })
this.relatedPeopleOptionList = optionList this.relatedPeopleOptionList = optionList
this.filterRelatedPeopleOptions() this.filterRelatedPeopleOptions()
const selectedRelatedPeople = String(this.modalData.relatedPeople || '').trim()
if (selectedRelatedPeople && !optionList.some(item => String(item.operatorName || '').trim() === selectedRelatedPeople)) {
const selectedRelatedPeopleCode = this.resolveOperatorIdByCodeOrName(this.modalData.relatedPeople)
const selectedRelatedPeopleRow = optionList.find(item => String(item.operatorId || '').trim() === selectedRelatedPeopleCode)
if (!selectedRelatedPeopleRow) {
this.$set(this.modalData, 'relatedPeople', '') this.$set(this.modalData, 'relatedPeople', '')
this.$set(this.modalData, 'relatedPeopleName', '')
} else {
this.$set(this.modalData, 'relatedPeople', selectedRelatedPeopleCode)
this.$set(this.modalData, 'relatedPeopleName', String(selectedRelatedPeopleRow.operatorName || '').trim())
} }
}, },
normalizeHsfApproverOptionList (rows) { normalizeHsfApproverOptionList (rows) {
@ -1870,12 +1913,12 @@ export default {
operatorName: '' operatorName: ''
} }
this.filterHsfApproverOptions() this.filterHsfApproverOptions()
const selectedNameSet = new Set(
(this.modalData.hsfApproverList || [])
const selectedOperatorSet = new Set(
(this.modalData.hsfApproverCodeList || [])
.map(item => String(item || '').trim()) .map(item => String(item || '').trim())
.filter(item => !!item) .filter(item => !!item)
) )
const selectedRows = (this.hsfApproverOptionList || []).filter(item => selectedNameSet.has(item.operatorName))
const selectedRows = (this.hsfApproverOptionList || []).filter(item => selectedOperatorSet.has(String(item.operatorId || '').trim()))
this.hsfApproverSelectionCache = JSON.parse(JSON.stringify(selectedRows)) this.hsfApproverSelectionCache = JSON.parse(JSON.stringify(selectedRows))
this.$nextTick(() => { this.$nextTick(() => {
if (!this.$refs.hsfApproverTable) { if (!this.$refs.hsfApproverTable) {
@ -1899,26 +1942,26 @@ export default {
} }
}, },
saveHsfApproverChooseModal () { saveHsfApproverChooseModal () {
const selectedNames = (this.hsfApproverSelectionCache || [])
.map(item => String(item.operatorName || '').trim())
const selectedCodes = (this.hsfApproverSelectionCache || [])
.map(item => String(item.operatorId || '').trim())
.filter(item => !!item) .filter(item => !!item)
this.$set(this.modalData, 'hsfApproverList', selectedNames)
this.$set(this.modalData, 'hsfApproverCodeList', selectedCodes)
this.syncHsfApproverFields() this.syncHsfApproverFields()
this.hsfApproverFlag = false this.hsfApproverFlag = false
}, },
clearHsfApproverSelection () { clearHsfApproverSelection () {
this.$set(this.modalData, 'hsfApproverList', [])
this.$set(this.modalData, 'hsfApproverCodeList', [])
this.syncHsfApproverFields() this.syncHsfApproverFields()
}, },
openRelatedPeopleChooseModal () { openRelatedPeopleChooseModal () {
if (this.isRohsFieldDisabled('relatedPeople')) { if (this.isRohsFieldDisabled('relatedPeople')) {
return return
} }
if (!this.modalData || !Array.isArray(this.modalData.hsfApproverList) || this.modalData.hsfApproverList.length === 0) {
if (!this.modalData || !Array.isArray(this.modalData.hsfApproverCodeList) || this.modalData.hsfApproverCodeList.length === 0) {
this.$message.warning('请先选择HSF审批人') this.$message.warning('请先选择HSF审批人')
return return
} }
this.buildRelatedPeopleOptions(this.modalData.hsfApproverList)
this.buildRelatedPeopleOptions(this.modalData.hsfApproverCodeList)
if (!this.relatedPeopleOptionList || this.relatedPeopleOptionList.length === 0) { if (!this.relatedPeopleOptionList || this.relatedPeopleOptionList.length === 0) {
this.$message.warning('未查询到可选Inform Related people') this.$message.warning('未查询到可选Inform Related people')
return return
@ -1931,8 +1974,8 @@ export default {
operatorName: '' operatorName: ''
} }
this.filterRelatedPeopleOptions() this.filterRelatedPeopleOptions()
const relatedPeople = String(this.modalData.relatedPeople || '').trim()
const selectedRow = (this.relatedPeopleOptionList || []).find(item => String(item.operatorName || '').trim() === relatedPeople) || null
const relatedPeopleCode = String(this.modalData.relatedPeople || '').trim()
const selectedRow = (this.relatedPeopleOptionList || []).find(item => String(item.operatorId || '').trim() === relatedPeopleCode) || null
this.relatedPeopleSelection = selectedRow this.relatedPeopleSelection = selectedRow
this.$nextTick(() => { this.$nextTick(() => {
if (!this.$refs.relatedPeopleTable) { if (!this.$refs.relatedPeopleTable) {
@ -1954,12 +1997,15 @@ export default {
} }
}, },
saveRelatedPeopleChooseModal () { saveRelatedPeopleChooseModal () {
const selectedCode = this.relatedPeopleSelection ? String(this.relatedPeopleSelection.operatorId || '').trim() : ''
const selectedName = this.relatedPeopleSelection ? String(this.relatedPeopleSelection.operatorName || '').trim() : '' const selectedName = this.relatedPeopleSelection ? String(this.relatedPeopleSelection.operatorName || '').trim() : ''
this.$set(this.modalData, 'relatedPeople', selectedName)
this.$set(this.modalData, 'relatedPeople', selectedCode)
this.$set(this.modalData, 'relatedPeopleName', selectedName)
this.relatedPeopleFlag = false this.relatedPeopleFlag = false
}, },
clearRelatedPeopleSelection () { clearRelatedPeopleSelection () {
this.$set(this.modalData, 'relatedPeople', '') this.$set(this.modalData, 'relatedPeople', '')
this.$set(this.modalData, 'relatedPeopleName', '')
this.relatedPeopleSelection = null this.relatedPeopleSelection = null
if (this.$refs.relatedPeopleTable) { if (this.$refs.relatedPeopleTable) {
this.$refs.relatedPeopleTable.setCurrentRow(null) this.$refs.relatedPeopleTable.setCurrentRow(null)
@ -1984,9 +2030,11 @@ export default {
operatorId: '', operatorId: '',
operatorName: '' operatorName: ''
} }
this.$set(this.modalData, 'hsfApproverList', [])
this.$set(this.modalData, 'hsfApproverCodeList', [])
this.$set(this.modalData, 'hsfApprover', '') this.$set(this.modalData, 'hsfApprover', '')
this.$set(this.modalData, 'hsfApproverName', '')
this.$set(this.modalData, 'relatedPeople', '') this.$set(this.modalData, 'relatedPeople', '')
this.$set(this.modalData, 'relatedPeopleName', '')
}, },
loadHsfApproverByCurrentProcess (forceSelectAll = false) { loadHsfApproverByCurrentProcess (forceSelectAll = false) {
if (!this.modalData || !this.modalData.site) { if (!this.modalData || !this.modalData.site) {
@ -2020,8 +2068,8 @@ export default {
this.filterHsfApproverOptions() this.filterHsfApproverOptions()
this.hsfApproverSelectionCache = [] this.hsfApproverSelectionCache = []
if (forceSelectAll) { if (forceSelectAll) {
const defaultSelectedNames = this.hsfApproverOptionList.map(item => item.operatorName).filter(item => item)
this.$set(this.modalData, 'hsfApproverList', defaultSelectedNames)
const defaultSelectedCodes = this.hsfApproverOptionList.map(item => item.operatorId).filter(item => item)
this.$set(this.modalData, 'hsfApproverCodeList', defaultSelectedCodes)
} }
this.syncHsfApproverFields() this.syncHsfApproverFields()
} else { } else {
@ -2257,7 +2305,7 @@ export default {
if (!target) { if (!target) {
return return
} }
const fields = ['nodeId', 'nodeName', 'currentApprover', 'applicantName', 'pmName', 'npdEngineerName', 'technicalPlanName', 'buyerName', 'endCustomerName', 'projectName', 'commGroup1Desc', 'commGroup2Desc', 'commGroup3Desc']
const fields = ['nodeId', 'nodeName', 'currentApprover', 'applicantName', 'pmName', 'npdEngineerName', 'technicalPlanName', 'buyerName', 'endCustomerName', 'projectName', 'commGroup1Desc', 'commGroup2Desc', 'commGroup3Desc', 'hsfApproverName', 'relatedPeopleName']
fields.forEach(field => { fields.forEach(field => {
const value = target[field] || fallbackData[field] || '' const value = target[field] || fallbackData[field] || ''
this.$set(target, field, value) this.$set(target, field, value)
@ -2349,6 +2397,8 @@ export default {
commGroup1Desc: '', commGroup1Desc: '',
commGroup2Desc: '', commGroup2Desc: '',
commGroup3Desc: '', commGroup3Desc: '',
hsfApproverName: '',
relatedPeopleName: '',
...item ...item
} }
}) })
@ -2422,6 +2472,8 @@ export default {
row.expiredDate = this.normalizeDateOnly(row.expiredDate) row.expiredDate = this.normalizeDateOnly(row.expiredDate)
row.expiryDate = this.normalizeDateOnly(row.expiryDate) row.expiryDate = this.normalizeDateOnly(row.expiryDate)
row.validUntilDisplay = this.getValidUntilDisplay(row.validUntilValue, row.validUntil) row.validUntilDisplay = this.getValidUntilDisplay(row.validUntilValue, row.validUntil)
row.hsfApproverName = row.hsfApproverName || row.hsfApprover || ''
row.relatedPeopleName = row.relatedPeopleName || row.relatedPeople || ''
return row return row
}) })
} else { } else {
@ -2528,7 +2580,7 @@ export default {
this.$set(this.modalData, 'testReportIncludingItemsList', this.modalData.testReportIncludingItems ? this.modalData.testReportIncludingItems.split(';').filter(item => item) : []) this.$set(this.modalData, 'testReportIncludingItemsList', this.modalData.testReportIncludingItems ? this.modalData.testReportIncludingItems.split(';').filter(item => item) : [])
this.$set(this.modalData, 'materialClassifyList', this.modalData.materialClassify ? this.modalData.materialClassify.split(';').filter(item => item) : []) this.$set(this.modalData, 'materialClassifyList', this.modalData.materialClassify ? this.modalData.materialClassify.split(';').filter(item => item) : [])
this.$set(this.modalData, 'materialList', Array.isArray(this.modalData.materialList) ? this.modalData.materialList : []) this.$set(this.modalData, 'materialList', Array.isArray(this.modalData.materialList) ? this.modalData.materialList : [])
this.$set(this.modalData, 'hsfApproverList', this.modalData.hsfApprover ? this.modalData.hsfApprover.split(';').filter(item => item) : [])
this.$set(this.modalData, 'hsfApproverCodeList', this.modalData.hsfApprover ? this.modalData.hsfApprover.split(';').filter(item => item) : [])
this.$set(this.modalData, 'buNo', this.modalData.process || '') this.$set(this.modalData, 'buNo', this.modalData.process || '')
this.$set(this.modalData, 'isAhGrade', this.normalizeCheckboxFlag(this.modalData.isAhGrade)) this.$set(this.modalData, 'isAhGrade', this.normalizeCheckboxFlag(this.modalData.isAhGrade))
this.$set(this.modalData, 'validUntilValue', this.normalizeValidUntilValue(this.modalData.validUntilValue)) this.$set(this.modalData, 'validUntilValue', this.normalizeValidUntilValue(this.modalData.validUntilValue))
@ -2609,8 +2661,10 @@ export default {
fiberInformation: '', fiberInformation: '',
hsfStandard: '', hsfStandard: '',
hsfApprover: '', hsfApprover: '',
hsfApproverList: [],
hsfApproverName: '',
hsfApproverCodeList: [],
relatedPeople: '', relatedPeople: '',
relatedPeopleName: '',
buNo: '', buNo: '',
validUntilValue: 0, validUntilValue: 0,
validUntil: '', validUntil: '',

Loading…
Cancel
Save