From 9c5e342228050c553fd75300b7cb551a05fbf425 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 13 三月 2025 14:29:14 +0800 Subject: [PATCH] 费用统计-添加查看详情弹框 --- src/views/business/costStatistics/index.vue | 31 ++++++++++++++++++++++++++++--- 1 files changed, 28 insertions(+), 3 deletions(-) diff --git a/src/views/business/costStatistics/index.vue b/src/views/business/costStatistics/index.vue index 6243ee8..98cf152 100644 --- a/src/views/business/costStatistics/index.vue +++ b/src/views/business/costStatistics/index.vue @@ -1,4 +1,5 @@ <template> +<!-- 璐圭敤缁熻椤甸潰--> <div class="capacity-scope"> <div class="search"> <div> @@ -27,16 +28,18 @@ :height="'calc(100vh - 250px)'" @pagination="pagination" :page="page" :tableLoading="tableLoading"></lims-table> </div> + <viewInfoDia ref="viewInfoDia" v-if="viewInfoDia"></viewInfoDia> </div> </template> <script> import limsTable from "@/components/Table/lims-table.vue"; +import viewInfoDia from "./components/viewInfoDia.vue"; import {selectRatesPage} from "@/api/business/insOrderRates"; import {selectCustomPageList} from "@/api/system/customer"; export default { - components: {limsTable}, + components: {limsTable,viewInfoDia}, data() { return { entity: { @@ -54,14 +57,29 @@ { label: '濮旀墭浜�', prop: 'prepareUser' }, { label: '鐢熶骇鍗曚綅', prop: 'production' }, { label: '宸ョ▼鍚嶇О', prop: 'engineering' }, - { label: '宸ユ椂', prop: 'cost' } + { label: '宸ユ椂', prop: 'cost' }, + { + dataType: "action", + fixed: "right", + label: "鎿嶄綔", + operation: [ + { + name: "鏌ョ湅璇︽儏", + type: "text", + clickFun: (row) => { + this.openDia(row) + }, + }, + ], + } ], page: { total: 0, size: 10, current: 1 }, - companyOptions: [] + companyOptions: [], + viewInfoDia: false } }, mounted() { @@ -106,6 +124,13 @@ this.page.size = page.limit this.refreshTable() }, + // 鏌ョ湅璇︽儏 + openDia (row) { + this.viewInfoDia = true + this.$nextTick(() => { + this.$refs.viewInfoDia.openDia(row) + }) + }, } } </script> -- Gitblit v1.9.3