fix
This commit is contained in:
parent
9da9a7e283
commit
e62ab544c7
|
|
@ -42,7 +42,6 @@
|
|||
|
||||
<script>
|
||||
import Doc from './doc.vue'
|
||||
import { isTaskCreater } from '@/api'
|
||||
import ExternalUnitList from '../components/ExternalUnitList.vue'
|
||||
import {
|
||||
eOtIlldisdetailRemoveTaskList,
|
||||
|
|
@ -460,36 +459,27 @@ export default {
|
|||
})
|
||||
},
|
||||
cancel(row) {
|
||||
const bizSeqNo = row.bizseqid || row.outBizseq
|
||||
const tasklistid = row.tasklistid
|
||||
const busname = row.busname || row.entname
|
||||
if (!tasklistid) {
|
||||
this.$message.warning('该记录无法作废')
|
||||
return
|
||||
}
|
||||
isTaskCreater({
|
||||
bizSeqNo: bizSeqNo
|
||||
}).then((data) => {
|
||||
if (data) {
|
||||
this.$confirm('是否确定删除该业务', '提示', {
|
||||
type: 'info',
|
||||
customClass: 'type-1',
|
||||
confirmHandlerPromise: () => {
|
||||
return eOtIlldisdetailNullify({
|
||||
tasklistid: tasklistid,
|
||||
reason: '业务作废'
|
||||
}).then((response) => {
|
||||
if (response.code !== 0) {
|
||||
this.$message.error(response.msg || '业务作废失败')
|
||||
return
|
||||
}
|
||||
this.$message.success(`已完成对"${busname}"的业务作废!`)
|
||||
this.$refs.EditTable.search({ reset: true })
|
||||
})
|
||||
this.$confirm('是否确定删除该业务', '提示', {
|
||||
type: 'info',
|
||||
customClass: 'type-1',
|
||||
confirmHandlerPromise: () => {
|
||||
return eOtIlldisdetailNullify({
|
||||
tasklistid: tasklistid,
|
||||
reason: '业务作废'
|
||||
}).then((response) => {
|
||||
if (response.code !== 0) {
|
||||
this.$message.error(response.msg || '业务作废失败')
|
||||
return
|
||||
}
|
||||
this.$message.success(`已完成对"${busname}"的业务作废!`)
|
||||
this.$refs.EditTable.search({ reset: true })
|
||||
})
|
||||
} else {
|
||||
this.$message.warning(`当前用户不是该业务的发起人,无法删除该业务`)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue