From 66a8ae776ea7892e7ad1ebc83fea5e36bdf96ba4 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Mon, 1 Dec 2025 11:06:52 +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 --- .../EquipmentEntryApply/EquipmentMainList.vue | 4 +- .../equipmentInput/add.vue | 75 ++++++++++--------- .../equipmentInput/index.vue | 23 +++--- src/views/EquipmentLedger/details.vue | 42 +++++------ 4 files changed, 76 insertions(+), 68 deletions(-) diff --git a/src/views/EquipmentEntryApply/EquipmentMainList.vue b/src/views/EquipmentEntryApply/EquipmentMainList.vue index f9eddc01..de88bf59 100644 --- a/src/views/EquipmentEntryApply/EquipmentMainList.vue +++ b/src/views/EquipmentEntryApply/EquipmentMainList.vue @@ -10,13 +10,13 @@ - - + diff --git a/src/views/EquipmentEntryApply/equipmentInput/add.vue b/src/views/EquipmentEntryApply/equipmentInput/add.vue index ae63151e..5fb63146 100644 --- a/src/views/EquipmentEntryApply/equipmentInput/add.vue +++ b/src/views/EquipmentEntryApply/equipmentInput/add.vue @@ -148,36 +148,6 @@ /> - - - - - - - - - - - - - - - @@ -191,6 +161,36 @@ + + + + { + this.$tab.closePage({ path: '/equipment/equipment-input/add' }) }) } } catch (error) { diff --git a/src/views/EquipmentEntryApply/equipmentInput/index.vue b/src/views/EquipmentEntryApply/equipmentInput/index.vue index 1dc70320..2e9f7dac 100644 --- a/src/views/EquipmentEntryApply/equipmentInput/index.vue +++ b/src/views/EquipmentEntryApply/equipmentInput/index.vue @@ -93,7 +93,7 @@ v-model="queryParams.manufacturerId" placeholder="请选择生产厂家" clearable - style="width: 100%" + style="width: 200px" > @@ -139,7 +139,7 @@ @@ -392,10 +392,11 @@ export default { components: { EquipmentEntryEditDialog }, emits: ['update:isVisible', 'submit'], // 声明事件 created() { - console.log(this.$route) + console.log('🚀 ~ this.$route:', this.$route) this.orderId = this.$route.query && this.$route.query.orderId - this.isAddVisible = this.$route.query && this.$route.query.isAddVisible - this.isApprovalVisible = this.$route.query && this.$route.query.isApprovalVisible + console.log('🚀 ~ this.orderId:', this.orderId) + this.isAddVisible = this.$route.query.isAddVisible && JSON.parse(this.$route.query.isAddVisible) + this.isApprovalVisible = this.$route.query.isApprovalVisible && JSON.parse(this.$route.query.isApprovalVisible) if (!this.orderId) { this.pageTitle = '新增设备录入' this.submitButtonText = '提交申请' @@ -567,8 +568,8 @@ export default { }, equipmentDeployment() { this.$router.push({ - name: 'equipmentInputAdd', // 完整路径 - params: { // 因为使用path,所以用query传递参数 + path: '/equipment/equipment-input/add', + query: { orderId: this.orderId } }) @@ -723,7 +724,11 @@ export default { this.dialogList = row.purchaseInvoices || [] } this.dialogVisible = true - } + }, + importTemplate() { + // this.download('system/user/importTemplate', { + // }, `user_template_${new Date().getTime()}.xlsx`) + }, } } diff --git a/src/views/EquipmentLedger/details.vue b/src/views/EquipmentLedger/details.vue index f642544c..bda077bb 100644 --- a/src/views/EquipmentLedger/details.vue +++ b/src/views/EquipmentLedger/details.vue @@ -84,23 +84,23 @@ - - - - - - - - - - - - + + + + @@ -169,9 +169,9 @@ v-else-if=" item.fileUrl && (item.fileUrl.includes('.doc') || - item.fileUrl.includes('.docx') || - item.fileUrl.includes('.DOC') || - item.fileUrl.includes('.DOCX')) + item.fileUrl.includes('.docx') || + item.fileUrl.includes('.DOC') || + item.fileUrl.includes('.DOCX')) " style="width: 120px; height: 120px; margin-right: 10px; cursor: pointer" src="@/assets/images/word.png" @@ -208,9 +208,9 @@ v-else-if=" item.fileUrl && (item.fileUrl.includes('.doc') || - item.fileUrl.includes('.docx') || - item.fileUrl.includes('.DOC') || - item.fileUrl.includes('.DOCX')) + item.fileUrl.includes('.docx') || + item.fileUrl.includes('.DOC') || + item.fileUrl.includes('.DOCX')) " style="width: 120px; height: 120px; margin-right: 10px; cursor: pointer" src="@/assets/images/word.png" @@ -247,9 +247,9 @@ v-else-if=" item.fileUrl && (item.fileUrl.includes('.doc') || - item.fileUrl.includes('.docx') || - item.fileUrl.includes('.DOC') || - item.fileUrl.includes('.DOCX')) + item.fileUrl.includes('.docx') || + item.fileUrl.includes('.DOC') || + item.fileUrl.includes('.DOCX')) " style="width: 120px; height: 120px; margin-right: 10px; cursor: pointer" src="@/assets/images/word.png"