diff --git a/src/views/business/leasePublish/component/homeApply.vue b/src/views/business/leasePublish/component/homeApply.vue index 9ada388b..5ff4f219 100644 --- a/src/views/business/leasePublish/component/homeApply.vue +++ b/src/views/business/leasePublish/component/homeApply.vue @@ -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(); diff --git a/src/views/material/lease/apply/component/homeApply.vue b/src/views/material/lease/apply/component/homeApply.vue index 06560a79..685974b7 100644 --- a/src/views/material/lease/apply/component/homeApply.vue +++ b/src/views/material/lease/apply/component/homeApply.vue @@ -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() }, /** 新增按钮操作 */ diff --git a/src/views/material/lease/clerkConfirmation/index.vue b/src/views/material/lease/clerkConfirmation/index.vue index 9d0f3550..568a1f46 100644 --- a/src/views/material/lease/clerkConfirmation/index.vue +++ b/src/views/material/lease/clerkConfirmation/index.vue @@ -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 = '' diff --git a/src/views/material/lease/outBound/index.vue b/src/views/material/lease/outBound/index.vue index 04057ba5..40f6f9f9 100644 --- a/src/views/material/lease/outBound/index.vue +++ b/src/views/material/lease/outBound/index.vue @@ -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() diff --git a/src/views/material/lease/protocol/index.vue b/src/views/material/lease/protocol/index.vue index 9dfd3e80..47820e51 100644 --- a/src/views/material/lease/protocol/index.vue +++ b/src/views/material/lease/protocol/index.vue @@ -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() },