From 29905e454e31b4e1719ed07e25e2279ad6381bd1 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Tue, 6 Jan 2026 20:25:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/apply/addApply.vue | 2 +- src/views/business/warehouse/details.vue | 8 +++++++- src/views/business/warehouse/index.vue | 2 +- src/views/equipmentRepair/repairApply/addRepair.vue | 2 +- src/views/toolsManage/toolsApplication/addTools.vue | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/views/business/apply/addApply.vue b/src/views/business/apply/addApply.vue index 260350c9..3f4226c7 100644 --- a/src/views/business/apply/addApply.vue +++ b/src/views/business/apply/addApply.vue @@ -445,7 +445,7 @@ export default { let title = '新增申请' if (this.routerParams.isView) { title = '查看申请' - } else if (this.routerParams.isEdit) { + } else if (this.routerParams.isEdit == 'true') { title = '编辑申请' } this.queryParams.id = this.routerParams.id || '' diff --git a/src/views/business/warehouse/details.vue b/src/views/business/warehouse/details.vue index aad456e2..e13dbd20 100644 --- a/src/views/business/warehouse/details.vue +++ b/src/views/business/warehouse/details.vue @@ -297,7 +297,7 @@ export default { let title = '新增申请' if (this.routerParams.isView) { title = '查看申请' - } else if (this.routerParams.isEdit) { + } else if (this.routerParams.isEdit == 'true') { title = '编辑申请' } this.queryParams.id = this.routerParams.id || '' @@ -595,6 +595,12 @@ export default { return this.$message.error('请至少选择一项申请设备') } + for (const item of this.ids) { + if (!item.useTime) { + return this.$message.error('请填写所选设备的退库日期') + } + } + this.$confirm('是否确定提交申请?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', diff --git a/src/views/business/warehouse/index.vue b/src/views/business/warehouse/index.vue index 8a7ffcdf..c4b5e0a2 100644 --- a/src/views/business/warehouse/index.vue +++ b/src/views/business/warehouse/index.vue @@ -262,7 +262,7 @@ export default { }, // 新增 handleAdd() { - this.$router.push({ path: '/business/warehouse/details',query: {isEdit: true } }) + this.$router.push({ path: '/business/warehouse/details',query: { isEdit: false } }) }, // 查看 handleView(row) { diff --git a/src/views/equipmentRepair/repairApply/addRepair.vue b/src/views/equipmentRepair/repairApply/addRepair.vue index 31a2355b..0ed0198a 100644 --- a/src/views/equipmentRepair/repairApply/addRepair.vue +++ b/src/views/equipmentRepair/repairApply/addRepair.vue @@ -273,7 +273,7 @@ export default { this.routerParams = this.$route.query let title = '新增维修' if (this.routerParams.isView) title = '维修查看' - else if (this.routerParams.isEdit) title = '维修编辑' + else if (this.routerParams.isEdit == 'true') title = '维修编辑' else if (this.routerParams.isSubmit) title = '维修提交' this.queryParams.id = this.routerParams.applyId || '' diff --git a/src/views/toolsManage/toolsApplication/addTools.vue b/src/views/toolsManage/toolsApplication/addTools.vue index 19342663..03606f49 100644 --- a/src/views/toolsManage/toolsApplication/addTools.vue +++ b/src/views/toolsManage/toolsApplication/addTools.vue @@ -162,7 +162,7 @@ export default { let title = '新增工具' if (this.routerParams.isView) { title = '查看工具' - } else if (this.routerParams.isEdit) { + } else if (this.routerParams.isEdit == 'true') { title = '编辑工具' } this.queryParams.applyId = this.routerParams.applyId || ''