Merge pull request 'master' (#73) from master into test

Reviewed-on: http://git.feashow.cn/feashow/SmartOpsWeb/pulls/73
This commit is contained in:
springlog
2024-09-15 19:45:14 +00:00
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) => {