This commit is contained in:
mashuai 2026-01-15 13:44:07 +08:00
parent 65a85b3d63
commit c06cd6dc0f
1 changed files with 10 additions and 2 deletions

View File

@ -444,11 +444,19 @@ export default {
const seconds = String(date.getSeconds()).padStart(2, '0');
return `${year}${month}${day}_${hours}${minutes}${seconds}`;
};
const params = {
keyWord: this.queryParams.keyWord,
status: this.queryParams.taskStatus,
startTime: this.queryParams.startTime,
endTime: this.queryParams.endTime,
pageSize: this.queryParams.pageSize,
pageNum: this.queryParams.pageNum,
};
const currentTime = formatTime(new Date());
this.download(
"/material/leaseTask/exportPublish",
{ ...this.queryParams },
params,
`领料申请发布_${currentTime}.xlsx`
);
},
@ -557,7 +565,7 @@ export default {
async downloadPDF() {
try {
this.$modal.loading('正在生成PDF请稍候...')
// DOM
const element = document.getElementById('print-content1')
if (!element) {