|
|
|
@ -158,7 +158,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'" type="primary" @click="toBecomeOfficialRouting">转正式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"> |
|
|
|
@ -436,12 +436,9 @@ |
|
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> |
|
|
|
<el-form-item :label="'产出单位'" prop="runTimeCode" :rules="componentRules.runTimeCode"> |
|
|
|
<el-select v-model="componentData.runTimeCode" clearable style="width: 221px"> |
|
|
|
<el-option label="单位/小时" value="A"></el-option> |
|
|
|
<el-option label="小时/单位" value="B"></el-option> |
|
|
|
<el-option label="小时" value="C"></el-option> |
|
|
|
<!-- <el-option label="单位/小时" value="Units/Hour"></el-option>--> |
|
|
|
<!-- <el-option label="小时/单位" value="Hours/Unit"></el-option>--> |
|
|
|
<!-- <el-option label="小时" value="Hours"></el-option>--> |
|
|
|
<el-option label="单位/小时" value="Units/Hour"></el-option> |
|
|
|
<el-option label="小时/单位" value="Hours/Unit"></el-option> |
|
|
|
<el-option label="小时" value="Hours"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="laborClassNo" :rules="componentRules.laborClassNo"> |
|
|
|
@ -927,6 +924,7 @@ export default { |
|
|
|
saveHeaderLoading: false, |
|
|
|
saveDetailLoading: false, |
|
|
|
saveAllLoading: false, |
|
|
|
toBecomeOfficialLoading: false, |
|
|
|
// 初始页签 |
|
|
|
detailTable: 'routing_detail', |
|
|
|
subDetailTable: 'routing_sub_detail', |
|
|
|
@ -3804,6 +3802,7 @@ export default { |
|
|
|
|
|
|
|
// 临时Routing转为正式Routing |
|
|
|
toBecomeOfficialRouting () { |
|
|
|
this.toBecomeOfficialLoading = true |
|
|
|
toBecomeOfficialRouting(this.detailData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList() |
|
|
|
@ -3819,6 +3818,9 @@ export default { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
this.toBecomeOfficialLoading = false |
|
|
|
}).catch(()=>{ |
|
|
|
this.toBecomeOfficialLoading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|