From 626155d51940644ccbeea71086e20d25280f4c44 Mon Sep 17 00:00:00 2001 From: itcast Date: Wed, 17 Dec 2025 10:41:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../equipmentInput/index.vue | 20 ------------------- .../maintenanceRecord/index.vue | 5 ++++- .../outboundRecord/index.vue | 7 +++++-- .../retirementRecord/index.vue | 5 ++++- .../returnRecord/index.vue | 5 ++++- src/views/EquipmentServicing/index.vue | 20 +++++++++++++++---- 6 files changed, 33 insertions(+), 29 deletions(-) diff --git a/src/views/EquipmentEntryApply/equipmentInput/index.vue b/src/views/EquipmentEntryApply/equipmentInput/index.vue index ed6e120a..f5348bc4 100644 --- a/src/views/EquipmentEntryApply/equipmentInput/index.vue +++ b/src/views/EquipmentEntryApply/equipmentInput/index.vue @@ -27,26 +27,6 @@ - - - - - - diff --git a/src/views/EquipmentRoamRecord/maintenanceRecord/index.vue b/src/views/EquipmentRoamRecord/maintenanceRecord/index.vue index 51e1c623..d9945275 100644 --- a/src/views/EquipmentRoamRecord/maintenanceRecord/index.vue +++ b/src/views/EquipmentRoamRecord/maintenanceRecord/index.vue @@ -212,9 +212,12 @@ export default { methods: { // 获取流转记录列表 async getRoamRecordList() { - if (this.dateRange.length > 0) { + if (this.dateRange&&this.dateRange.length > 0) { this.queryParams.startTime = this.dateRange[0] this.queryParams.endTime = this.dateRange[1] + }else{ + this.queryParams.startTime = '' + this.queryParams.endTime = '' } const res = await getRoamRecordListAPI(this.queryParams) this.tableData = res.rows diff --git a/src/views/EquipmentRoamRecord/outboundRecord/index.vue b/src/views/EquipmentRoamRecord/outboundRecord/index.vue index 74b683ec..93c77fc5 100644 --- a/src/views/EquipmentRoamRecord/outboundRecord/index.vue +++ b/src/views/EquipmentRoamRecord/outboundRecord/index.vue @@ -221,9 +221,12 @@ export default { methods: { // 获取流转记录列表 async getRoamRecordList() { - if (this.dateRange.length > 0) { + if (this.dateRange && this.dateRange.length > 0) { this.queryParams.startTime = this.dateRange[0] this.queryParams.endTime = this.dateRange[1] + }else{ + this.queryParams.startTime = '' + this.queryParams.endTime = '' } const res = await getRoamRecordListAPI(this.queryParams) this.tableData = res.rows @@ -247,7 +250,7 @@ export default { // 重置 onHandleReset() { - this.queryParams = { keyWord: '', type: '', startTime: '', endTime: '', pageNum: 1, pageSize: 10 } + this.queryParams = { keyWord: '', type: '2', startTime: '', endTime: '', pageNum: 1, pageSize: 10 } this.dateRange = [] this.getRoamRecordList() }, diff --git a/src/views/EquipmentRoamRecord/retirementRecord/index.vue b/src/views/EquipmentRoamRecord/retirementRecord/index.vue index 9efbf3e2..cd739c87 100644 --- a/src/views/EquipmentRoamRecord/retirementRecord/index.vue +++ b/src/views/EquipmentRoamRecord/retirementRecord/index.vue @@ -222,9 +222,12 @@ export default { methods: { // 获取流转记录列表 async getRoamRecordList() { - if (this.dateRange.length > 0) { + if (this.dateRange&&this.dateRange.length > 0) { this.queryParams.startTime = this.dateRange[0] this.queryParams.endTime = this.dateRange[1] + }else{ + this.queryParams.startTime = '' + this.queryParams.endTime = '' } const res = await getRoamRecordListAPI(this.queryParams) this.tableData = res.rows diff --git a/src/views/EquipmentRoamRecord/returnRecord/index.vue b/src/views/EquipmentRoamRecord/returnRecord/index.vue index ee6732a3..4d6399ab 100644 --- a/src/views/EquipmentRoamRecord/returnRecord/index.vue +++ b/src/views/EquipmentRoamRecord/returnRecord/index.vue @@ -212,9 +212,12 @@ export default { methods: { // 获取流转记录列表 async getRoamRecordList() { - if (this.dateRange.length > 0) { + if (this.dateRange &&this.dateRange.length > 0) { this.queryParams.startTime = this.dateRange[0] this.queryParams.endTime = this.dateRange[1] + }else{ + this.queryParams.startTime = '' + this.queryParams.endTime = '' } const res = await getRoamRecordListAPI(this.queryParams) this.tableData = res.rows diff --git a/src/views/EquipmentServicing/index.vue b/src/views/EquipmentServicing/index.vue index 63c5fa35..fb758019 100644 --- a/src/views/EquipmentServicing/index.vue +++ b/src/views/EquipmentServicing/index.vue @@ -512,14 +512,20 @@ export default { // 获取列表数据 async getLeaseListData() { // 处理日期范围 - if (this.qcTime.length > 0) { + if (this.qcTime &&this.qcTime.length > 0) { console.log(this.qcTime) this.searchParams.qcStartTime = this.qcTime[0] this.searchParams.qcEndTime = this.qcTime[1] + }else{ + this.searchParams.qcStartTime = '' + this.searchParams.qcEndTime = '' } - if (this.createTime.length > 0) { + if (this.createTime && this.createTime.length > 0) { this.searchParams.createStartTime = this.createTime[0] this.searchParams.createEndTime = this.createTime[1] + }else{ + this.searchParams.createStartTime = '' + this.searchParams.createEndTime = '' } try { @@ -610,13 +616,19 @@ export default { // 获取详情列表数据 async getLeaseListDataInDialog() { // 处理日期范围 - if (this.qcTime_1.length > 0) { + if (this.qcTime_1 && this.qcTime_1.length > 0) { this.searchParamsInDialog.qcStartTime = this.qcTime_1[0] this.searchParamsInDialog.qcEndTime = this.qcTime_1[1] + }else{ + this.searchParamsInDialog.qcStartTime = '' + this.searchParamsInDialog.qcEndTime = '' } - if (this.createTime_1.length > 0) { + if (this.createTime_1 &&this.createTime_1.length > 0) { this.searchParamsInDialog.createStartTime = this.createTime_1[0] this.searchParamsInDialog.createEndTime = this.createTime_1[1] + }else{ + this.searchParamsInDialog.createStartTime = '' + this.searchParamsInDialog.createEndTime = '' } try {