领料管理默认时间只查当天-全部状态
This commit is contained in:
parent
10fcfcb1d4
commit
4e6ff3400c
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
|
|
|
|||
|
|
@ -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 = ''
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue