|
|
|
@ -175,9 +175,9 @@ |
|
|
|
<el-tab-pane label="Routings" name="routing_detail"> |
|
|
|
<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" :loading="alternativeLoading" @click="deleteRoutingDetail">删除</el-button> |
|
|
|
<el-button type="primary" :loading="alternativeLoading" @click="updateRoutingDetail">编辑</el-button> |
|
|
|
<!-- <el-button type="primary" @click="saveRoutingDetail" style="margin-left: 7px">新增</el-button>--> |
|
|
|
<!-- <el-button type="primary" :loading="alternativeLoading" @click="deleteRoutingDetail">删除</el-button>--> |
|
|
|
<el-button type="primary" :loading="alternativeLoading" @click="updateRoutingDetail" style="margin-left: 7px">编辑</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> |
|
|
|
@ -2961,7 +2961,6 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -3042,6 +3041,21 @@ export default { |
|
|
|
this.$message.warning('请填写生产过程中人数!') |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.componentData.laborCycleTime === '' || this.componentData.laborCycleTime === 0) { |
|
|
|
this.$confirm("人工处理时间为0,是否确认保存?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
}).then(() => { |
|
|
|
this.componentDataSave2(isClose) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.componentDataSave2(isClose) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
componentDataSave2 (isClose) { |
|
|
|
if (this.componentData.flag === '1') { |
|
|
|
saveRoutingComponent(this.componentData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
|