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