报废审核

This commit is contained in:
hongchao 2026-02-05 13:50:48 +08:00
parent 79d2f54ed6
commit 707fc1ad26
1 changed files with 16 additions and 0 deletions

View File

@ -140,6 +140,11 @@ export default {
};
},
created() {
const end = new Date()
let start = new Date()
start.setMonth(start.getMonth() - 1)
this.queryParams.startTime = this.format(start)
this.queryParams.endTime = this.format(end)
//
if (this.statusList.length > 0) {
this.queryParams.taskStatus = this.statusList[0].value
@ -147,6 +152,12 @@ export default {
this.getList();
},
methods: {
format(date) {
const y = date.getFullYear()
const m = String(date.getMonth() + 1).padStart(2, '0')
const day = String(date.getDate()).padStart(2, '0')
return `${y}-${m}-${day}`
},
//
handleSelectionChange(selection) {
this.passTemp = [];
@ -193,6 +204,11 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.queryParams.time = [];
const end = new Date()
let start = new Date()
start.setMonth(start.getMonth() - 1)
this.queryParams.startTime = this.format(start)
this.queryParams.endTime = this.format(end)
this.resetForm("queryForm");
this.queryParams.keyWord = "";
this.handleQuery();