|
@@ -70,6 +70,11 @@
|
|
|
v-if="record.status===1||record.status===2"
|
|
|
@click="handleAudit(record)"
|
|
|
>审核</operation-button>
|
|
|
+ <operation-button
|
|
|
+ v-if="$auth('sbUnused-unused-del')"
|
|
|
+ :type="2"
|
|
|
+ title="是否要删除该条数据?"
|
|
|
+ @confirm="batchDelete(record.id)">删除</operation-button>
|
|
|
<operation-button
|
|
|
v-if="record.status===3"
|
|
|
@click="handlePrint(record)"
|
|
@@ -94,7 +99,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { STable, Ellipsis } from '@/components'
|
|
|
-import { getSbUnusedPage, getUnusedInfo } from '@/api/idle-assets/idle-assets'
|
|
|
+import { getSbUnusedPage, getUnusedInfo, deleteUnused } from '@/api/idle-assets/idle-assets'
|
|
|
import BaseForm from './modules/BaseForm.vue'
|
|
|
import AuditForm from './modules/AuditForm.vue'
|
|
|
import Detail from './modules/Detail.vue'
|
|
@@ -266,6 +271,12 @@ export default {
|
|
|
this.visible = false
|
|
|
})
|
|
|
},
|
|
|
+ batchDelete (id) {
|
|
|
+ deleteUnused({ id }).then(res => {
|
|
|
+ this.$message.info('删除成功')
|
|
|
+ this.handleOk()
|
|
|
+ })
|
|
|
+ },
|
|
|
handleExport (record) {
|
|
|
getUnusedInfo({ id: record.id }).then(res => {
|
|
|
const parameter = {
|