|
@@ -45,6 +45,11 @@
|
|
|
:disabled="$refs.reimbursementUserTable && $refs.reimbursementUserTable.getCheckboxRecords().length === 0"
|
|
|
plain>批量绑定
|
|
|
</el-button>
|
|
|
+ <el-button v-if="hasPermission('accountant:reimbursementBusinessTwo:del')" type="danger" size="small" icon="el-icon-delete"
|
|
|
+ @click="delInvoice()"
|
|
|
+ :disabled="$refs.reimbursementUserTable && $refs.reimbursementUserTable.getCheckboxRecords().length === 0"
|
|
|
+ plain>删除
|
|
|
+ </el-button>
|
|
|
</el-row>
|
|
|
</template>
|
|
|
</vxe-toolbar>
|
|
@@ -233,7 +238,7 @@
|
|
|
},
|
|
|
// 删除
|
|
|
delInvoice (id) {
|
|
|
- let ids = id || this.$refs.xTree.getCheckboxRecords().map(item => {
|
|
|
+ let ids = id || this.$refs.reimbursementUserTable.getCheckboxRecords().map(item => {
|
|
|
return item.id
|
|
|
}).join(',')
|
|
|
this.$confirm(`确定删除该记录吗?`, '提示', {
|
|
@@ -241,6 +246,7 @@
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
+ console.log(ids)
|
|
|
this.loading = true
|
|
|
this.reimbursementSys.deleteInvoice(ids).then(({data}) => {
|
|
|
this.loading = false
|