feat:增加了当已是关单状态时进行关单则不能关单的提示

This commit is contained in:
KindSeven
2024-09-16 03:43:51 +08:00
parent b7bec91182
commit 371c332f3c
3 changed files with 99 additions and 75 deletions

View File

@@ -263,8 +263,7 @@ const handleDetail = (row) => {
} }
const handleClose = async (row) => { const handleClose = async (row) => {
console.log(row); if (row.orderState !== '2') {
ElMessageBox.confirm( ElMessageBox.confirm(
'确定要关单吗?', '确定要关单吗?',
'温馨提示', '温馨提示',
@@ -289,6 +288,15 @@ const handleClose = async (row) => {
message: '关闭失败', message: '关闭失败',
}) })
}) })
} else {
ElMessageBox.alert('此工单已被关闭!', '温馨提示', {
// if you want to disable its autofocus
// autofocus: false,
type:'warning',
confirmButtonText: '确定',
})
}
} }
const handleDelete = async (row) => { const handleDelete = async (row) => {

View File

@@ -265,8 +265,7 @@ const handleDetail = (row) => {
} }
const handleClose = async (row) => { const handleClose = async (row) => {
// console.log(row.orderNumber); if (row.orderState !== '2') {
ElMessageBox.confirm( ElMessageBox.confirm(
'确定要关单吗?', '确定要关单吗?',
'温馨提示', '温馨提示',
@@ -291,6 +290,15 @@ const handleClose = async (row) => {
message: '关闭失败', message: '关闭失败',
}) })
}) })
} else {
ElMessageBox.alert('此工单已被关闭!', '温馨提示', {
// if you want to disable its autofocus
// autofocus: false,
type:'warning',
confirmButtonText: '确定',
})
}
} }
const handleDelete = async (row) => { const handleDelete = async (row) => {

View File

@@ -265,8 +265,7 @@ const handleDetail = (row) => {
} }
const handleClose = async (row) => { const handleClose = async (row) => {
// console.log(row.orderNumber); if (row.orderState !== '2') {
ElMessageBox.confirm( ElMessageBox.confirm(
'确定要关单吗?', '确定要关单吗?',
'温馨提示', '温馨提示',
@@ -291,6 +290,15 @@ const handleClose = async (row) => {
message: '关闭失败', message: '关闭失败',
}) })
}) })
} else {
ElMessageBox.alert('此工单已被关闭!', '温馨提示', {
// if you want to disable its autofocus
// autofocus: false,
type:'warning',
confirmButtonText: '确定',
})
}
} }
const handleDelete = async (row) => { const handleDelete = async (row) => {