领用记录导出

This commit is contained in:
mashuai 2025-03-07 15:27:07 +08:00
parent 770297d9e4
commit d7fa9ce7b1
1 changed files with 13 additions and 6 deletions

View File

@ -68,8 +68,8 @@
<el-tag v-if="scope.row.taskStatus == '0'" type="warning" size="mini" style="margin-right: 5px">
待审核
</el-tag>
<el-tag v-else-if="scope.row.taskStatus == '1'" size="mini" style="margin-right: 5px">审核中</el-tag>
<el-tag v-else-if="scope.row.taskStatus == '2'" type="success" size="mini" style="margin-right: 5px">
<el-tag v-else-if="scope.row.taskStatus == '6'" size="mini" style="margin-right: 5px">审核中</el-tag>
<el-tag v-else-if="scope.row.taskStatus == '1' || scope.row.taskStatus == '3' || scope.row.taskStatus == '4'" type="success" size="mini" style="margin-right: 5px">
已完成
</el-tag>
<el-tag v-else-if="scope.row.taskStatus == '5'" size="mini" style="margin-right: 5px">待提交</el-tag>
@ -280,9 +280,9 @@ export default {
},
//
statusOptions: [
{ label: '待审核', value: '1' },
{ label: '审核中', value: '2' },
{ label: '已完成', value: '3' }
{ label: '待审核', value: '0' },
{ label: '审核中', value: '6' },
{ label: '已完成', value: '1' }
],
total: 0, //
//
@ -387,7 +387,7 @@ export default {
})
},
//
handleExport() {
/*handleExport() {
try {
let fileName = `数据_${new Date().getTime()}.xLsx`
let url = ''
@ -397,6 +397,13 @@ export default {
} catch (error) {
console.log('导出数据失败', error)
}
},*/
handleExport() {
this.download(
"/material/leaseTask/exportLeaseRecord",
{ ...this.queryParams },
`领用记录数据_${new Date().getTime()}.xlsx`
);
},
//
print() {