|
|
|
|
@ -558,7 +558,7 @@ export default { |
|
|
|
|
modelLevelLoading: false, |
|
|
|
|
craftLoading: false, |
|
|
|
|
rank: '2', |
|
|
|
|
lastConfirmedRank: '2', |
|
|
|
|
lastConfirmedRank: '2', |
|
|
|
|
processLevel: '2', |
|
|
|
|
data: [], |
|
|
|
|
defaultProps: { |
|
|
|
|
@ -1007,38 +1007,31 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 切换等级 |
|
|
|
|
async leavelChange(newVal) { |
|
|
|
|
// this.$message.success('保存成功'); |
|
|
|
|
// this.getDetails(); |
|
|
|
|
// this.form1.deleteIds = []; |
|
|
|
|
// this.form2.deleteIds = []; |
|
|
|
|
// this.form3.deleteIds = []; |
|
|
|
|
// this.form4.deleteIds = []; |
|
|
|
|
// 弹出确认框 |
|
|
|
|
try { |
|
|
|
|
await this.$confirm('确定要切换工艺级别吗?切换后当前编辑内容将丢失。', '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning' |
|
|
|
|
}); |
|
|
|
|
try { |
|
|
|
|
await this.$confirm('确定要切换工艺级别吗?切换后当前编辑内容将丢失。', '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 用户确认:更新已确认的值,并加载数据 |
|
|
|
|
this.lastConfirmedRank = newVal; |
|
|
|
|
// 清空表格选择状态(可选) |
|
|
|
|
this.form1.deleteIds = []; |
|
|
|
|
this.form2.deleteIds = []; |
|
|
|
|
this.form3.deleteIds = []; |
|
|
|
|
this.form4.deleteIds = []; |
|
|
|
|
// 清空表格选择状态(可选) |
|
|
|
|
this.form1.tableData1 = []; |
|
|
|
|
this.form2.tableData2 = []; |
|
|
|
|
this.form3.tableData3 = []; |
|
|
|
|
this.form4.tableData4 = []; |
|
|
|
|
this.getDetails(); |
|
|
|
|
|
|
|
|
|
} catch (error) { |
|
|
|
|
// 用户取消:恢复为上一次确认的值 |
|
|
|
|
this.rank = this.lastConfirmedRank; |
|
|
|
|
} |
|
|
|
|
// 用户确认:更新已确认的值,并加载数据 |
|
|
|
|
this.lastConfirmedRank = newVal; |
|
|
|
|
// 清空表格选择状态(可选) |
|
|
|
|
this.form1.deleteIds = []; |
|
|
|
|
this.form2.deleteIds = []; |
|
|
|
|
this.form3.deleteIds = []; |
|
|
|
|
this.form4.deleteIds = []; |
|
|
|
|
// 清空表格选择状态(可选) |
|
|
|
|
this.form1.tableData1 = []; |
|
|
|
|
this.form2.tableData2 = []; |
|
|
|
|
this.form3.tableData3 = []; |
|
|
|
|
this.form4.tableData4 = []; |
|
|
|
|
this.getDetails(); |
|
|
|
|
} catch (error) { |
|
|
|
|
// 用户取消:恢复为上一次确认的值 |
|
|
|
|
this.rank = this.lastConfirmedRank; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 获取工序号 |
|
|
|
|
getProcessNo(table) { |
|
|
|
|
|