feat:增加了当已是关单状态时进行关单则不能关单的提示
This commit is contained in:
@@ -265,32 +265,40 @@ const handleDetail = (row) => {
|
||||
}
|
||||
|
||||
const handleClose = async (row) => {
|
||||
// console.log(row.orderNumber);
|
||||
|
||||
ElMessageBox.confirm(
|
||||
'确定要关单吗?',
|
||||
'温馨提示',
|
||||
{
|
||||
if (row.orderState !== '2') {
|
||||
ElMessageBox.confirm(
|
||||
'确定要关单吗?',
|
||||
'温馨提示',
|
||||
{
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
}
|
||||
)
|
||||
.then(async () => {
|
||||
await orderdClose(row.orderNumber)
|
||||
tableIns.value.refresh()
|
||||
ElMessage({
|
||||
type: 'success',
|
||||
message: '关闭成功',
|
||||
})
|
||||
})
|
||||
.catch(() => {
|
||||
// tableIns.value.refresh()
|
||||
ElMessage({
|
||||
type: 'info',
|
||||
message: '关闭失败',
|
||||
})
|
||||
})
|
||||
} else {
|
||||
ElMessageBox.alert('此工单已被关闭!', '温馨提示', {
|
||||
// if you want to disable its autofocus
|
||||
// autofocus: false,
|
||||
type:'warning',
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
}
|
||||
)
|
||||
.then(async () => {
|
||||
await orderdClose(row.orderNumber)
|
||||
tableIns.value.refresh()
|
||||
ElMessage({
|
||||
type: 'success',
|
||||
message: '关闭成功',
|
||||
})
|
||||
})
|
||||
.catch(() => {
|
||||
// tableIns.value.refresh()
|
||||
ElMessage({
|
||||
type: 'info',
|
||||
message: '关闭失败',
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const handleDelete = async (row) => {
|
||||
|
||||
Reference in New Issue
Block a user