|
|
|
@ -174,12 +174,12 @@ |
|
|
|
<el-form label-position="top" style="margin-top: -10px"> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="primary" @click="saveRoutingDetail" style="margin-left: 7px">新增</el-button> |
|
|
|
<el-button type="primary" @click="deleteRoutingDetail">删除</el-button> |
|
|
|
<el-button type="primary" @click="updateRoutingDetail">编辑</el-button> |
|
|
|
<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 type="primary" @click="createByStandardOperation">基于标准工序快速创建</el-button> |
|
|
|
<el-button type="primary" :loading="alternativeLoading" @click="deleteRoutingDetail">删除</el-button> |
|
|
|
<el-button type="primary" :loading="alternativeLoading" @click="updateRoutingDetail">编辑</el-button> |
|
|
|
<el-button v-if="modalData.flag === '2'" type="primary" :loading="alternativeLoading" @click="copyRoutingAlternative">Copy</el-button> |
|
|
|
<el-button v-if="detailData.status === 'Tentative' || detailData.status === 'Obsolete'" type="primary" :loading="alternativeLoading" @click="updateStatusToBuildable">Build</el-button> |
|
|
|
<el-button v-if="detailData.status === 'Buildable' && (modalData.effPhaseOutDate == null || modalData.effPhaseOutDate === '')" type="primary" :loading="alternativeLoading" @click="updateStatusToObsolete">Retire</el-button> |
|
|
|
<el-button type="primary" :loading="alternativeLoading" @click="createByStandardOperation">基于标准工序快速创建</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="detailData" :rules="rules" style="margin-left: 7px"> |
|
|
|
@ -212,8 +212,8 @@ |
|
|
|
<el-tab-pane label="Operations" name="routing_sub_detail"> |
|
|
|
<el-form label-position="top" style="margin-top: 5px"> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="primary" @click="saveComponentModal" style="margin-left: 7px">新增</el-button> |
|
|
|
<el-button type="primary" @click="deleteComponentPart">删除</el-button> |
|
|
|
<el-button type="primary" :loading="alternativeLoading" @click="saveComponentModal" style="margin-left: 7px">新增</el-button> |
|
|
|
<el-button type="primary" :loading="alternativeLoading" @click="deleteComponentPart">删除</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
@ -399,10 +399,10 @@ |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> |
|
|
|
<el-form-item :label="'机器单位产出'" prop="machRunFactor"> |
|
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.machRunFactor" @change="changeMachRunFactor" style="width: 221px"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" :precision="4" v-model="componentData.machRunFactor" @change="changeMachRunFactor" style="width: 221px"></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'人工单位产出'" prop="laborRunFactor"> |
|
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.laborRunFactor" style="width: 221px"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" :precision="4" v-model="componentData.laborRunFactor" style="width: 221px"></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> |
|
|
|
@ -797,6 +797,7 @@ export default { |
|
|
|
saveDetailLoading: false, |
|
|
|
saveAllLoading: false, |
|
|
|
copyLoading: false, |
|
|
|
alternativeLoading: false, |
|
|
|
// 初始页签 |
|
|
|
detailTable: 'routing_detail', |
|
|
|
subDetailTable: 'routing_sub_detail', |
|
|
|
@ -3284,7 +3285,6 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
@ -3314,7 +3314,6 @@ export default { |
|
|
|
this.alternativeChange() |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** |
|
|
|
@ -3343,7 +3342,6 @@ export default { |
|
|
|
this.alternativeChange() |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
@ -3351,6 +3349,7 @@ export default { |
|
|
|
* 替代改变事件 |
|
|
|
*/ |
|
|
|
alternativeChange () { |
|
|
|
this.alternativeLoading = true |
|
|
|
queryRoutingComponent(this.detailData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.detailDataList = data.rows.detailDataList |
|
|
|
@ -3361,6 +3360,9 @@ export default { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
this.alternativeLoading = false |
|
|
|
}).catch(()=>{ |
|
|
|
this.alternativeLoading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|