领料管理默认时间只查当天-全部状态

This commit is contained in:
bb_pan 2025-08-22 16:59:26 +08:00
parent 10fcfcb1d4
commit 4e6ff3400c
5 changed files with 25 additions and 16 deletions

View File

@ -327,9 +327,9 @@ export default {
const end = new Date()
let start = new Date()
start.setMonth(start.getMonth() - 1)
this.queryParams.time = [this.format(start), this.format(end)]
this.queryParams.time = [this.format(end), this.format(end)]
//
this.queryParams.taskStatus = '1'
// this.queryParams.taskStatus = '1'
this.getList();
},
methods: {
@ -384,7 +384,7 @@ export default {
const end = new Date()
let start = new Date()
start.setMonth(start.getMonth() - 1)
this.queryParams.time = [this.format(start), this.format(end)]
this.queryParams.time = [this.format(end), this.format(end)]
this.resetForm("queryForm");
this.queryParams.keyWord = "";
this.handleQuery();

View File

@ -526,7 +526,7 @@ export default {
const end = new Date()
let start = new Date()
start.setMonth(start.getMonth() - 1)
this.queryParams.time = [this.format(start), this.format(end)]
this.queryParams.time = [this.format(end), this.format(end)]
// this.getStatusList();
// getList
// this.getTypeList()
@ -538,9 +538,9 @@ export default {
const validOptions = dict.type.lease_task_status || []
//
if (validOptions.length > 0) {
this.queryParams.taskStatus = validOptions[0].value
}
// if (validOptions.length > 0) {
// this.queryParams.taskStatus = validOptions[0].value
// }
//
this.getList()
@ -608,7 +608,7 @@ export default {
const end = new Date()
let start = new Date()
start.setMonth(start.getMonth() - 1)
this.queryParams.time = [this.format(start), this.format(end)]
this.queryParams.time = [this.format(end), this.format(end)]
this.handleQuery()
},
/** 新增按钮操作 */

View File

@ -500,7 +500,7 @@ export default {
time: null, //
taskStatus: '',
keyWord: '',
isConfirm: 1
isConfirm: ''
},
//
queryOutView: {
@ -558,7 +558,7 @@ export default {
const end = new Date()
let start = new Date()
start.setMonth(start.getMonth() - 1)
this.queryParams.time = [this.format(start), this.format(end)]
this.queryParams.time = [this.format(end), this.format(end)]
this.getList()
},
methods: {
@ -599,7 +599,7 @@ export default {
const end = new Date()
let start = new Date()
start.setMonth(start.getMonth() - 1)
this.queryParams.time = [this.format(start), this.format(end)]
this.queryParams.time = [this.format(end), this.format(end)]
this.queryParams.taskStatus = ''
this.queryParams.keyWord = ''
this.queryParams.isConfirm = ''

View File

@ -800,7 +800,7 @@ export default {
const end = new Date()
let start = new Date()
start.setMonth(start.getMonth() - 1)
this.queryParams.time = [this.format(start), this.format(end)]
this.queryParams.time = [this.format(end), this.format(end)]
this.getOutNum()
},
methods: {
@ -841,9 +841,9 @@ export default {
const validOptions = dict.type.lease_task_status.filter(item => item.value != 1 && item.value != 2)
//
if (validOptions.length > 0) {
this.queryParams.taskStatus = validOptions[0].value
}
// if (validOptions.length > 0) {
// this.queryParams.taskStatus = validOptions[0].value
// }
//
this.getList()

View File

@ -646,11 +646,19 @@ export default {
}
},
created() {
const date = new Date()
this.queryParams.time = [this.format(date), this.format(date)]
this.getList()
this.getUnitList()
this.getProjectList()
},
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}`
},
//fileList raw
async getFileData() {
const fileTwo = []
@ -1016,7 +1024,8 @@ export default {
resetQuery() {
this.queryParams.keyWord = null
this.queryParams.status = null
this.queryParams.time = []
const date = new Date()
this.queryParams.time = [this.format(date), this.format(date)]
this.resetForm('queryForm')
this.handleQuery()
},