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

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() const end = new Date()
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(end), this.format(end)]
// //
this.queryParams.taskStatus = '1' // this.queryParams.taskStatus = '1'
this.getList(); this.getList();
}, },
methods: { methods: {
@ -384,7 +384,7 @@ export default {
const end = new Date() const end = new Date()
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(end), this.format(end)]
this.resetForm("queryForm"); this.resetForm("queryForm");
this.queryParams.keyWord = ""; this.queryParams.keyWord = "";
this.handleQuery(); this.handleQuery();

View File

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

View File

@ -500,7 +500,7 @@ export default {
time: null, // time: null, //
taskStatus: '', taskStatus: '',
keyWord: '', keyWord: '',
isConfirm: 1 isConfirm: ''
}, },
// //
queryOutView: { queryOutView: {
@ -558,7 +558,7 @@ export default {
const end = new Date() const end = new Date()
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(end), this.format(end)]
this.getList() this.getList()
}, },
methods: { methods: {
@ -599,7 +599,7 @@ export default {
const end = new Date() const end = new Date()
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(end), this.format(end)]
this.queryParams.taskStatus = '' this.queryParams.taskStatus = ''
this.queryParams.keyWord = '' this.queryParams.keyWord = ''
this.queryParams.isConfirm = '' this.queryParams.isConfirm = ''

View File

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

View File

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