|
|
@ -7,7 +7,7 @@ |
|
|
<el-form-item :label="' '"> |
|
|
<el-form-item :label="' '"> |
|
|
<el-button type="primary" @click="refresh()">刷新数据</el-button> |
|
|
<el-button type="primary" @click="refresh()">刷新数据</el-button> |
|
|
<template v-if="(!ifDisableFlag && isAuth('103002:bmSave') && spForm.sp.includes(searchData.username) && dataForm.status === 'spz') || dataForm.status === 'cg' || (superAdmin)"> |
|
|
<template v-if="(!ifDisableFlag && isAuth('103002:bmSave') && spForm.sp.includes(searchData.username) && dataForm.status === 'spz') || dataForm.status === 'cg' || (superAdmin)"> |
|
|
<el-button type="primary" @click="saveData()">保存数据 </el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="saveData()">保存数据</el-button> |
|
|
</template> |
|
|
</template> |
|
|
<template v-if="dataForm.status === 'spz' && ((!ifDisableFlag && spForm.sp.includes(searchData.username)) || (superAdmin))"> |
|
|
<template v-if="dataForm.status === 'spz' && ((!ifDisableFlag && spForm.sp.includes(searchData.username)) || (superAdmin))"> |
|
|
<el-button type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button> |
|
|
<el-button type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button> |
|
|
@ -464,45 +464,45 @@ |
|
|
nodeName:'', |
|
|
nodeName:'', |
|
|
}, |
|
|
}, |
|
|
dataForm: { |
|
|
dataForm: { |
|
|
nodeName:'', |
|
|
|
|
|
process:'', |
|
|
|
|
|
buNo:'', |
|
|
|
|
|
|
|
|
nodeName: '', |
|
|
|
|
|
process: '', |
|
|
|
|
|
buNo: '', |
|
|
site: '', |
|
|
site: '', |
|
|
codeNo:'', |
|
|
|
|
|
revNo:'', |
|
|
|
|
|
workCenterNo:'', |
|
|
|
|
|
partRevNo:'', |
|
|
|
|
|
finalPartNo:'', |
|
|
|
|
|
testPartNo:'', |
|
|
|
|
|
customerPartNo:'', |
|
|
|
|
|
partDesc:'', |
|
|
|
|
|
pod:'', |
|
|
|
|
|
mpOperatorName:'', |
|
|
|
|
|
mpOperator:'', |
|
|
|
|
|
createBy:'', |
|
|
|
|
|
createDate:'', |
|
|
|
|
|
proofingNo:'', |
|
|
|
|
|
ecnFlag:'', |
|
|
|
|
|
ecnNo:'', |
|
|
|
|
|
ecnAddress:'', |
|
|
|
|
|
quotationOfficer:'', |
|
|
|
|
|
engineer:'', |
|
|
|
|
|
technician:'', |
|
|
|
|
|
quotationOfficerList:[], |
|
|
|
|
|
stage:'', |
|
|
|
|
|
remarkPage:'', |
|
|
|
|
|
cqcOperator:'', |
|
|
|
|
|
faiOperator:'', |
|
|
|
|
|
cqcOperatorName:'', |
|
|
|
|
|
faiOperatorName:'', |
|
|
|
|
|
peOperater:'', |
|
|
|
|
|
peOperaterName:'', |
|
|
|
|
|
csOperater:'', |
|
|
|
|
|
csOperaterName:'', |
|
|
|
|
|
dccOperater:'', |
|
|
|
|
|
dccOperaterName:'', |
|
|
|
|
|
engineerNo:'', |
|
|
|
|
|
technicianNo:'', |
|
|
|
|
|
|
|
|
codeNo: '', |
|
|
|
|
|
revNo: '', |
|
|
|
|
|
workCenterNo: '', |
|
|
|
|
|
partRevNo: '', |
|
|
|
|
|
finalPartNo: '', |
|
|
|
|
|
testPartNo: '', |
|
|
|
|
|
customerPartNo: '', |
|
|
|
|
|
partDesc: '', |
|
|
|
|
|
pod: '', |
|
|
|
|
|
mpOperatorName: '', |
|
|
|
|
|
mpOperator: '', |
|
|
|
|
|
createBy: '', |
|
|
|
|
|
createDate: '', |
|
|
|
|
|
proofingNo: '', |
|
|
|
|
|
ecnFlag: '', |
|
|
|
|
|
ecnNo: '', |
|
|
|
|
|
ecnAddress: '', |
|
|
|
|
|
quotationOfficer: '', |
|
|
|
|
|
engineer: '', |
|
|
|
|
|
technician: '', |
|
|
|
|
|
quotationOfficerList: [], |
|
|
|
|
|
stage: '', |
|
|
|
|
|
remarkPage: '', |
|
|
|
|
|
cqcOperator: '', |
|
|
|
|
|
faiOperator: '', |
|
|
|
|
|
cqcOperatorName: '', |
|
|
|
|
|
faiOperatorName: '', |
|
|
|
|
|
peOperater: '', |
|
|
|
|
|
peOperaterName: '', |
|
|
|
|
|
csOperater: '', |
|
|
|
|
|
csOperaterName: '', |
|
|
|
|
|
dccOperater: '', |
|
|
|
|
|
dccOperaterName: '', |
|
|
|
|
|
engineerNo: '', |
|
|
|
|
|
technicianNo: '', |
|
|
dcc: '', |
|
|
dcc: '', |
|
|
relevancePartNo: '', |
|
|
relevancePartNo: '', |
|
|
ecnUpgradeVersion: '', |
|
|
ecnUpgradeVersion: '', |
|
|
@ -521,6 +521,23 @@ |
|
|
planOperator: '', |
|
|
planOperator: '', |
|
|
planOperatorName: '', |
|
|
planOperatorName: '', |
|
|
}, |
|
|
}, |
|
|
|
|
|
dataForm2: { |
|
|
|
|
|
stage: '', |
|
|
|
|
|
pod: '', |
|
|
|
|
|
shopOrder: '', |
|
|
|
|
|
documentSource: '', |
|
|
|
|
|
ecnUpgradeVersion: '', |
|
|
|
|
|
remarkPage: '', |
|
|
|
|
|
relevancePartNo: '', |
|
|
|
|
|
csOperatorList: [], |
|
|
|
|
|
engineerList: [], |
|
|
|
|
|
technicianList: [], |
|
|
|
|
|
mpOperatorList: [], |
|
|
|
|
|
planOperatorList: [], |
|
|
|
|
|
cqcOperatorList: [], |
|
|
|
|
|
faiOperatorList: [], |
|
|
|
|
|
dccList: [] |
|
|
|
|
|
}, |
|
|
dataRole: { |
|
|
dataRole: { |
|
|
partTypeDesc: [ |
|
|
partTypeDesc: [ |
|
|
{ |
|
|
{ |
|
|
@ -1221,9 +1238,10 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
submitData (tempData) { |
|
|
submitData (tempData) { |
|
|
|
|
|
let map = new Map(Object.entries(this.dataForm2)) |
|
|
if (this.plmTechnicalSpecificationSheetArr) { |
|
|
if (this.plmTechnicalSpecificationSheetArr) { |
|
|
for (let i = 0; i < this.plmTechnicalSpecificationSheetArr.length; i++) { |
|
|
for (let i = 0; i < this.plmTechnicalSpecificationSheetArr.length; i++) { |
|
|
if (!this.dataForm[this.plmTechnicalSpecificationSheetArr[i].fieldId] && this.plmTechnicalSpecificationSheetArr[i].required === 'Y') { |
|
|
|
|
|
|
|
|
if (map.has(this.plmTechnicalSpecificationSheetArr[i].fieldId) && !this.dataForm[this.plmTechnicalSpecificationSheetArr[i].fieldId] && this.plmTechnicalSpecificationSheetArr[i].required === 'Y') { |
|
|
this.$message.warning(this.plmTechnicalSpecificationSheetArr[i].fieldName + '不能为空!') |
|
|
this.$message.warning(this.plmTechnicalSpecificationSheetArr[i].fieldName + '不能为空!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
@ -1231,7 +1249,7 @@ |
|
|
} |
|
|
} |
|
|
if (this.plmTechnicalSpecificationTeamArr) { |
|
|
if (this.plmTechnicalSpecificationTeamArr) { |
|
|
for (let i = 0; i < this.plmTechnicalSpecificationTeamArr.length; i++) { |
|
|
for (let i = 0; i < this.plmTechnicalSpecificationTeamArr.length; i++) { |
|
|
if (this.dataForm[this.plmTechnicalSpecificationTeamArr[i].fieldId].length === 0 && this.plmTechnicalSpecificationTeamArr[i].required === 'Y') { |
|
|
|
|
|
|
|
|
if (map.has(this.plmTechnicalSpecificationTeamArr[i].fieldId) && this.dataForm[this.plmTechnicalSpecificationTeamArr[i].fieldId].length === 0 && this.plmTechnicalSpecificationTeamArr[i].required === 'Y') { |
|
|
this.$message.warning(this.plmTechnicalSpecificationTeamArr[i].fieldName + '不能为空!') |
|
|
this.$message.warning(this.plmTechnicalSpecificationTeamArr[i].fieldName + '不能为空!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|