| | |
| | | |
| | | <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> |
| | |
| | | </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' |
| | |
| | | loading: false, |
| | | sourceData: null, |
| | | preprocessData: {} |
| | | }, |
| | | recovery: { |
| | | queryForm: { |
| | | signDate: [] |
| | | }, |
| | | loading: false, |
| | | sourceData: null, |
| | | preprocessData: null |
| | | } |
| | | } |
| | | }, |
| | |
| | | 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) |
| | |
| | | that.queryStatisticsDelay() |
| | | that.queryStatisticsGoal() |
| | | that.queryStatisticsIncomeExpense() |
| | | that.queryStatisticsRecovery() |
| | | }, |
| | | methods: { |
| | | queryStatisticsQuantity() { |
| | |
| | | }).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 |
| | | }) |
| | | } |
| | | } |
| | | } |