|
@@ -21,7 +21,7 @@
|
|
|
</template>
|
|
|
<template slot-scope="{type,size,row,index}" slot="menu">
|
|
|
<el-button icon="el-icon-view" :size="size" :type="type" @click.stop="rowCell(row,index)">查看</el-button>
|
|
|
- <el-button icon="el-icon-delete" :size="size" :type="type" v-if="row.status === 0" @click.stop="rowDel(row)">删除</el-button>
|
|
|
+ <el-button icon="el-icon-delete" :size="size" :type="type" v-if="row.status === 0 || row.status === 7" @click.stop="rowDel(row)">删除</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
@@ -277,14 +277,14 @@ export default {
|
|
|
}
|
|
|
this.loading = true;
|
|
|
selectInvoiceList(queryParams).then(res=>{
|
|
|
- // this.dataList = res.data.data.records
|
|
|
- // 过滤状态为 7 的数据
|
|
|
- this.dataList = res.data.data.records.filter(item => item.status !== 7);
|
|
|
+ this.dataList = res.data.data.records
|
|
|
+ // // 过滤状态为 7 的数据
|
|
|
+ // this.dataList = res.data.data.records.filter(item => item.status !== 7);
|
|
|
this.page.total = res.data.data.total
|
|
|
- // 自动删除状态为 7 的数据
|
|
|
+ // 状态为 7 或0的时候显示删除的数据
|
|
|
this.dataList.forEach(item => {
|
|
|
- if (item.status === 7) {
|
|
|
- this.deleteItem(item);
|
|
|
+ if (item.status === 7 || item.status === 0) {
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
}).finally(() => {
|