|
|
|
@ -165,7 +165,7 @@ |
|
|
|
<el-button v-if="modalData.flag === '2'" type="primary" @click="copyRoutingAlternative">Copy</el-button> |
|
|
|
<el-button v-if="detailData.status === 'Tentative' || detailData.status === 'Obsolete'" type="primary" @click="updateStatusToBuildable">Build</el-button> |
|
|
|
<el-button v-if="detailData.status === 'Buildable' && (modalData.effPhaseOutDate == null || modalData.effPhaseOutDate === '')" type="primary" @click="updateStatusToObsolete">Retire</el-button> |
|
|
|
<el-button v-if="modalData.flag === '2' && detailData.officialFlag !== 'Y' && (modalData.ifsPartNo == null || modalData.ifsPartNo === '')" type="primary" @click="toBecomeOfficialRouting" :loading="toBecomeOfficialLoading">转正式Routing</el-button> |
|
|
|
<el-button v-if="modalData.flag === '2' && detailData.officialFlag !== 'Y'" type="primary" @click="toBecomeOfficialRouting" :loading="toBecomeOfficialLoading">转正式Routing</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="detailData" :rules="rules" style="margin-left: 7px"> |
|
|
|
@ -695,7 +695,7 @@ |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- copyAlternative --> |
|
|
|
<el-dialog title="Copy Structure Alternative" :close-on-click-modal="false" v-drag :visible.sync="copyAlternativeModelFlag" width="450px"> |
|
|
|
<el-dialog title="Copy Alternate" :close-on-click-modal="false" v-drag :visible.sync="copyAlternativeModelFlag" width="450px"> |
|
|
|
<fieldset style="width: 426px"> |
|
|
|
<legend>Source Revision</legend> |
|
|
|
<el-form :inline="true" label-position="top" :model="detailData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
@ -4273,10 +4273,10 @@ export default { |
|
|
|
this.$message.warning('请填写替代编码!') |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.copyAlternativeData.alternativeDescription === '' || this.copyAlternativeData.alternativeDescription == null) { |
|
|
|
this.$message.warning('请填写替代名称!') |
|
|
|
return |
|
|
|
} |
|
|
|
// if (this.copyAlternativeData.alternativeDescription === '' || this.copyAlternativeData.alternativeDescription == null) { |
|
|
|
// this.$message.warning('请填写替代名称!') |
|
|
|
// return |
|
|
|
// } |
|
|
|
this.copyAlternativeData.previousVersion = this.detailData |
|
|
|
this.copyLoading = true |
|
|
|
copyAlternative(this.copyAlternativeData).then(({data}) => { |
|
|
|
|