From 5d36b1bdbedabc2b1406007c290cd525b9546840 Mon Sep 17 00:00:00 2001
From: yaozc2021 <yaozc@yhzhg.cn>
Date: Fri, 24 Jan 2025 09:43:22 +0000
Subject: [PATCH] 121
---
eladmin-web-master/src/views/contract/contractStatistics/index.vue | 50 +++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 49 insertions(+), 1 deletions(-)
diff --git a/eladmin-web-master/src/views/contract/contractStatistics/index.vue b/eladmin-web-master/src/views/contract/contractStatistics/index.vue
index f69eb84..51491ef 100644
--- a/eladmin-web-master/src/views/contract/contractStatistics/index.vue
+++ b/eladmin-web-master/src/views/contract/contractStatistics/index.vue
@@ -26,6 +26,33 @@
<el-col :span="12">
<div class="grid-content">
+ <el-card v-loading="recovery.loading">
+ <div slot="header" class="card-header-box">
+ <span>合同收入损失</span>
+ <div class="form-box">
+ <el-date-picker v-model="recovery.queryForm.signDate" type="daterange" value-format="yyyy-MM-dd 00:00:00" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 360px;" class="filter-item" @keyup.enter.native="queryStatisticsRecovery" />
+ <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="queryStatisticsRecovery">搜索</el-button>
+ </div>
+ </div>
+
+ <div class="card-content-box">
+ <el-table :data="recovery.preprocessData" size="small" style="width: 100%;">
+ <el-table-column :show-overflow-tooltip="true" prop="companyName" label="公司" />
+ <el-table-column :show-overflow-tooltip="true" prop="unRecoveryFund" label="收入损失" width="200">
+ <template slot-scope="scope">
+ <span style="color: red;">{{ scope.row.unRecoveryFund }}</span>
+ </template>
+ </el-table-column>
+ </el-table>
+ </div>
+ </el-card>
+ </div>
+ </el-col>
+ </el-row>
+
+ <el-row :gutter="20" class="module-row data-row">
+ <el-col :span="24">
+ <div class="grid-content">
<el-card v-loading="amount.loading">
<div slot="header" class="card-header-box">
<span>合同金额</span>
@@ -184,7 +211,7 @@
</template>
<script>
-import { statisticsQuantity, statisticsAmount, statisticsDelay, statisticsGoal, statisticsIncomeExpense } from '@/api/contract/contract'
+import { statisticsQuantity, statisticsAmount, statisticsDelay, statisticsGoal, statisticsIncomeExpense, statisticsRecovery } from '@/api/contract/contract'
import { parseTime } from '@/utils/index'
import LineChart from './LineChart'
import BarStack from './BarStack'
@@ -233,6 +260,14 @@
loading: false,
sourceData: null,
preprocessData: {}
+ },
+ recovery: {
+ queryForm: {
+ signDate: []
+ },
+ loading: false,
+ sourceData: null,
+ preprocessData: null
}
}
},
@@ -243,6 +278,7 @@
const firstDayOfYear = new Date(currentYear, 0, 1)
const lastDayOfYear = new Date(currentYear, 11, 31)
that.quantity.queryForm.signDate = [parseTime(firstDayOfYear), parseTime(lastDayOfYear)]
+ that.recovery.queryForm.signDate = [parseTime(firstDayOfYear), parseTime(lastDayOfYear)]
that.amount.queryForm.signDate = [parseTime(firstDayOfYear), parseTime(lastDayOfYear)]
that.delay.queryForm.signDate = [parseTime(firstDayOfYear), parseTime(lastDayOfYear)]
that.goal.queryForm.signDateEqual = parseTime(firstDayOfYear)
@@ -252,6 +288,7 @@
that.queryStatisticsDelay()
that.queryStatisticsGoal()
that.queryStatisticsIncomeExpense()
+ that.queryStatisticsRecovery()
},
methods: {
queryStatisticsQuantity() {
@@ -454,6 +491,17 @@
}).catch(() => {
that.incomeExpense.loading = false
})
+ },
+ queryStatisticsRecovery() {
+ const that = this
+ that.recovery.loading = true
+ statisticsRecovery(that.recovery.queryForm).then(res => {
+ that.recovery.sourceData = res
+ that.recovery.preprocessData = res.income
+ that.recovery.loading = false
+ }).catch(() => {
+ that.recovery.loading = false
+ })
}
}
}
--
Gitblit v1.9.3