|
@ -153,7 +153,7 @@ const butttondata = (row) => { |
|
|
// defaultButtons.mainListEditBtn({hasPermi:'eam:deviceRepair:update'}), // 编辑 |
|
|
// defaultButtons.mainListEditBtn({hasPermi:'eam:deviceRepair:update'}), // 编辑 |
|
|
// defaultButtons.mainListDeleteBtn({ hasPermi: 'eam:deviceRepair:delete' }), // 删除 |
|
|
// defaultButtons.mainListDeleteBtn({ hasPermi: 'eam:deviceRepair:delete' }), // 删除 |
|
|
|
|
|
|
|
|
defaultButtons.backoutBtn({hasPermi:'eam:device-repair-request:rejected', hide: !(row.result == 'PENDING' && row.declarer == userStore.getUser.id )}), // 撤销 |
|
|
defaultButtons.backoutBtn({hasPermi:'eam:device-repair-request:cancel', hide: !(row.result == 'PENDING' && row.declarer == userStore.getUser.id )}), // 撤销 |
|
|
|
|
|
|
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
@ -292,7 +292,7 @@ function handleBackout(row) { |
|
|
if (row.result != 'PENDING') { |
|
|
if (row.result != 'PENDING') { |
|
|
message.error('该报修单正在处理中,不能撤销!') |
|
|
message.error('该报修单正在处理中,不能撤销!') |
|
|
} |
|
|
} |
|
|
DeviceRepairApi.rejected(row.id).then(res => { |
|
|
DeviceRepairApi.cancel(row.id).then(res => { |
|
|
console.log("撤销成功!") |
|
|
console.log("撤销成功!") |
|
|
getList() // 刷新当前列表 |
|
|
getList() // 刷新当前列表 |
|
|
}) |
|
|
}) |
|
|