|
|
|
|
@ -220,7 +220,7 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="proHours" label="定额工时(分钟)"> |
|
|
|
|
<!-- <el-table-column prop="proHours" label="定额工时(分钟)"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="scope.row.proHours" |
|
|
|
|
@ -237,7 +237,7 @@ |
|
|
|
|
style="width: 100%" |
|
|
|
|
></el-input> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table-column> --> |
|
|
|
|
<el-table-column prop="isMain" label="是否主工序"> |
|
|
|
|
<template #header> |
|
|
|
|
<span><i style="color: red">*</i>是否主工序</span> |
|
|
|
|
@ -324,11 +324,6 @@ |
|
|
|
|
:value="item.id" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
<!-- <el-input |
|
|
|
|
v-model="scope.row.projectStandard" |
|
|
|
|
placeholder="请输入" |
|
|
|
|
style="width: 100%" |
|
|
|
|
></el-input> --> |
|
|
|
|
</el-form-item> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
@ -563,6 +558,7 @@ export default { |
|
|
|
|
modelLevelLoading: false, |
|
|
|
|
craftLoading: false, |
|
|
|
|
rank: '2', |
|
|
|
|
lastConfirmedRank: '2', |
|
|
|
|
processLevel: '2', |
|
|
|
|
data: [], |
|
|
|
|
defaultProps: { |
|
|
|
|
@ -835,7 +831,7 @@ export default { |
|
|
|
|
await getProcessAuthorized({ |
|
|
|
|
partId: this.partId, |
|
|
|
|
taskId: this.updateRow.id, |
|
|
|
|
rank: this.rank, |
|
|
|
|
rank: this.lastConfirmedRank, |
|
|
|
|
version: this.updateRow.version, |
|
|
|
|
}).then(res => { |
|
|
|
|
this.data = this.transformCraftTree(res.data.data); |
|
|
|
|
@ -1010,13 +1006,33 @@ export default { |
|
|
|
|
this.form4.deleteIds = []; |
|
|
|
|
}, |
|
|
|
|
// 切换等级 |
|
|
|
|
leavelChange() { |
|
|
|
|
async leavelChange(newVal) { |
|
|
|
|
// this.$message.success('保存成功'); |
|
|
|
|
this.getDetails(); |
|
|
|
|
this.form1.deleteIds = []; |
|
|
|
|
this.form2.deleteIds = []; |
|
|
|
|
this.form3.deleteIds = []; |
|
|
|
|
this.form4.deleteIds = []; |
|
|
|
|
// this.getDetails(); |
|
|
|
|
// this.form1.deleteIds = []; |
|
|
|
|
// this.form2.deleteIds = []; |
|
|
|
|
// this.form3.deleteIds = []; |
|
|
|
|
// this.form4.deleteIds = []; |
|
|
|
|
// 弹出确认框 |
|
|
|
|
try { |
|
|
|
|
await this.$confirm('确定要切换工艺级别吗?切换后当前编辑内容将丢失。', '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning' |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 用户确认:更新已确认的值,并加载数据 |
|
|
|
|
this.lastConfirmedRank = newVal; |
|
|
|
|
this.getDetails(); |
|
|
|
|
// 清空表格选择状态(可选) |
|
|
|
|
this.form1.deleteIds = []; |
|
|
|
|
this.form2.deleteIds = []; |
|
|
|
|
this.form3.deleteIds = []; |
|
|
|
|
this.form4.deleteIds = []; |
|
|
|
|
} catch (error) { |
|
|
|
|
// 用户取消:恢复为上一次确认的值 |
|
|
|
|
this.rank = this.lastConfirmedRank; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 获取工序号 |
|
|
|
|
getProcessNo(table) { |
|
|
|
|
|