From 5305aa11696172975e82279e65d2dd7ef0589f22 Mon Sep 17 00:00:00 2001
From: syruan <15555146157@163.com>
Date: Sat, 30 Aug 2025 17:04:19 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E9=97=B4=E8=B4=B9=E7=94=A8=E6=8A=A5?=
=?UTF-8?q?=E8=A1=A8vue=E7=BC=96=E5=86=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/cost/cost.js | 18 +
src/router/index.js | 45 ++
.../component/leaseCostRangeReportHome.vue | 685 ++++++++++++++++++
.../cost/leaseCostRangeReportList.vue | 22 +
4 files changed, 770 insertions(+)
create mode 100644 src/views/material/cost/component/leaseCostRangeReportHome.vue
create mode 100644 src/views/material/cost/leaseCostRangeReportList.vue
diff --git a/src/api/cost/cost.js b/src/api/cost/cost.js
index fc086f70..1bcf1226 100644
--- a/src/api/cost/cost.js
+++ b/src/api/cost/cost.js
@@ -238,6 +238,24 @@ export function getScrapReportList(query) {
})
}
+// 查询租赁费用区间报表列表
+export function getLeaseCostRangeReportList(query) {
+ return request({
+ url: '/material/slt_agreement_info/leasePeriodCostList',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询租赁费用明细详情
+export function getLeaseCostDetails(query) {
+ return request({
+ url: '/material/slt_agreement_info/leasePeriodCostDetails',
+ method: 'get',
+ params: query
+ })
+}
+
diff --git a/src/router/index.js b/src/router/index.js
index e98d3fda..84c2487c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -242,6 +242,51 @@ export const dynamicRoutes = [
component: () => import('@/views/business-examine/reduction-apply/business-details.vue')
}
]
+ },
+ // 丢失费用报表
+ {
+ path: '/material/cost/lost-report',
+ component: Layout,
+ hidden: true,
+ permissions: ['material:cost:lost-report'], // 权限字符
+ children: [
+ {
+ path: 'index',
+ name: 'LostReport',
+ meta: { title: '丢失费用报表', activeMenu: '/material/cost' },
+ component: () => import('@/views/material/cost/lostReportList.vue')
+ }
+ ]
+ },
+ // 维修费用报表
+ {
+ path: '/material/cost/repair-report',
+ component: Layout,
+ hidden: true,
+ permissions: ['material:cost:repair-report'], // 权限字符
+ children: [
+ {
+ path: 'index',
+ name: 'RepairReport',
+ meta: { title: '维修费用报表', activeMenu: '/material/cost' },
+ component: () => import('@/views/material/cost/repairReportList.vue')
+ }
+ ]
+ },
+ // 报废费用报表
+ {
+ path: '/material/cost/scrap-report',
+ component: Layout,
+ hidden: true,
+ permissions: ['material:cost:scrap-report'], // 权限字符
+ children: [
+ {
+ path: 'index',
+ name: 'ScrapReport',
+ meta: { title: '报废费用报表', activeMenu: '/material/cost' },
+ component: () => import('@/views/material/cost/scrapReportList.vue')
+ }
+ ]
}
]
diff --git a/src/views/material/cost/component/leaseCostRangeReportHome.vue b/src/views/material/cost/component/leaseCostRangeReportHome.vue
new file mode 100644
index 00000000..0c44c4c1
--- /dev/null
+++ b/src/views/material/cost/component/leaseCostRangeReportHome.vue
@@ -0,0 +1,685 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+ 导出Excel
+
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+
+
+ {{ scope.row.isSettled === '1' ? '已结算' : '未结算' }}
+
+
+
+
+
+
+ {{ scope.row.totalEquipmentCount ? parseFloat(scope.row.totalEquipmentCount).toFixed(3) : '0.000' }}
+
+
+
+
+
+ {{ scope.row.totalLeaseCost ? parseFloat(scope.row.totalLeaseCost).toFixed(2) : '0.00' }}
+
+
+
+
+ {{ scope.row.avgDailyRent ? parseFloat(scope.row.avgDailyRent).toFixed(2) : '0.00' }}
+
+
+
+
+
+
+ {{ scope.row.earliestLeaseTime || '-' }}
+
+
+
+
+ {{ scope.row.latestReturnTime || '-' }}
+
+
+
+
+ {{ scope.row.settlementTime || '-' }}
+
+
+
+
+ {{ scope.row.remark || '-' }}
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+
+
+
+
+
+ 导出明细Excel
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+ {{ scope.row.modelName || '-' }}
+
+
+
+
+ {{ scope.row.maCode || '-' }}
+
+
+
+
+ {{ scope.row.num ? parseFloat(scope.row.num).toFixed(3) : '0.000' }}
+
+
+
+
+
+ {{ scope.row.leasePrice ? parseFloat(scope.row.leasePrice).toFixed(2) : '0.00' }}
+
+
+
+
+
+
+
+ {{ scope.row.leaseCost ? parseFloat(scope.row.leaseCost).toFixed(2) : '0.00' }}
+
+
+
+
+
+ {{ scope.row.isSettled === '1' ? '已结算' : '未结算' }}
+
+
+
+
+
+ {{ scope.row.settlementTime || '-' }}
+
+
+
+
+ {{ scope.row.startTime || '-' }}
+
+
+
+
+ {{ scope.row.endTime || '-' }}
+
+
+
+
+ {{ scope.row.remark || '-' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/material/cost/leaseCostRangeReportList.vue b/src/views/material/cost/leaseCostRangeReportList.vue
new file mode 100644
index 00000000..671ffd35
--- /dev/null
+++ b/src/views/material/cost/leaseCostRangeReportList.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+