退料查询优化

This commit is contained in:
syruan 2025-07-28 11:14:30 +08:00
parent 02771f4edb
commit 0b1ce97392
1 changed files with 14 additions and 1 deletions

View File

@ -315,10 +315,23 @@ export default {
let start = new Date() let start = new Date()
start.setMonth(start.getMonth() - 1) start.setMonth(start.getMonth() - 1)
this.queryParams.time = [this.format(start), this.format(end)] this.queryParams.time = [this.format(start), this.format(end)]
this.getList(); // getList
this.initSelectData() this.initSelectData()
}, },
methods: { methods: {
//
onDictReady(dict) {
// back_task_status
const validOptions = dict.type.back_task_status || []
//
if (validOptions.length > 0) {
this.queryParams.status = validOptions[0].value
}
//
this.getList()
},
format(date) { format(date) {
const y = date.getFullYear() const y = date.getFullYear()
const m = String(date.getMonth() + 1).padStart(2, '0') const m = String(date.getMonth() + 1).padStart(2, '0')