Compare commits

...

2 Commits

Author SHA1 Message Date
BianLzhaoMin 2ec0625da2 Merge branch 'main' of http://192.168.0.75:3000/bonus/nw-cqdevicemgt-ui 2025-02-07 09:01:58 +08:00
BianLzhaoMin 715811c3cc 代码优化 2025-02-07 09:01:54 +08:00
1 changed files with 38 additions and 8 deletions

View File

@ -292,10 +292,38 @@ export default {
},
onAuditing(code) {
// this.$confirm('', '', {
// confirmButtonText: '',
// cancelButtonText: '',
// type: 'warning',
// })
// .then(async () => {
// const res = await auditSeconfScrapApi({
// status: 1,
// code,
// })
// if (res.code === 200) {
// this.$modal.msgSuccess('')
// }
// })
// .catch(async () => {
// const res = await auditSeconfScrapApi({
// status: 2,
// code,
// })
// if (res.code === 200) {
// this.$modal.msgSuccess('')
// }
// })
// .finally(() => {
// this.getList()
// })
this.$confirm('请确认审核结果?', '提示', {
distinguishCancelAndClose: true,
confirmButtonText: '通过',
cancelButtonText: '驳回',
type: 'warning',
})
.then(async () => {
const res = await auditSeconfScrapApi({
@ -307,13 +335,15 @@ export default {
this.$modal.msgSuccess('已通过')
}
})
.catch(async () => {
const res = await auditSeconfScrapApi({
status: 2,
code,
})
if (res.code === 200) {
this.$modal.msgSuccess('已驳回')
.catch(async (action) => {
if (action === 'cancel') {
const res = await auditSeconfScrapApi({
status: 2,
code,
})
if (res.code === 200) {
this.$modal.msgSuccess('已驳回')
}
}
})
.finally(() => {