BAOLH
2026-11-10 4d730af0447c686133130d0116a0fa3dd82c2dca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
<template>
  <div class="app-container">
    <!--汇总数据-->
    <el-row :gutter="20" class="module-row data-row">
      <el-col :span="12">
        <div class="grid-content">
          <el-card v-loading="quantity.loading">
            <div slot="header" class="card-header-box">
              <span>合同数</span>
              <div class="form-box">
                <el-date-picker v-model="quantity.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="queryStatisticsQuantity" />
                <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="queryStatisticsQuantity">搜索</el-button>
              </div>
            </div>
 
            <div class="card-content-box">
              <el-table :data="quantity.preprocessData" size="small" style="width: 100%;">
                <el-table-column :show-overflow-tooltip="true" prop="companyName" label="公司" />
                <el-table-column :show-overflow-tooltip="true" prop="signedQuantity" label="已签订合同数" width="200" />
                <el-table-column :show-overflow-tooltip="true" prop="unsignedQuantity" label="未签订合同数" width="200" />
              </el-table>
            </div>
          </el-card>
        </div>
      </el-col>
 
      <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>
              <div class="form-box">
                <el-date-picker v-model="amount.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="queryStatisticsAmount" />
                <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="queryStatisticsAmount">搜索</el-button>
              </div>
            </div>
 
            <div class="card-content-box">
              <el-table :data="amount.preprocessData" size="small" style="width: 100%;">
                <el-table-column prop="companyName" label="公司" min-width="120" />
                <el-table-column :show-overflow-tooltip="true" prop="annualData" label="合同金额" min-width="600">
                  <template slot-scope="scope">
                    <div style="display: flex; flex-direction: column; gap: 10px;">
                      <div v-for="(key, index) in Object.keys(scope.row.annualData)" :key="'annualData' + index">
                        <el-row>
                          <el-col :span="4">{{ key + '年' }}</el-col>
                          <el-col :span="4" :offset="1">一季度</el-col>
                          <el-col :span="4" :offset="1">二季度</el-col>
                          <el-col :span="4" :offset="1">三季度</el-col>
                          <el-col :span="4" :offset="1">四季度</el-col>
                        </el-row>
                        <el-row>
                          <el-col :span="4">未支付:{{ scope.row.annualData[key].full.unpaid }}</el-col>
                          <el-col :span="4" :offset="1">未支付:{{ scope.row.annualData[key].first.unpaid }}</el-col>
                          <el-col :span="4" :offset="1">未支付:{{ scope.row.annualData[key].second.unpaid }}</el-col>
                          <el-col :span="4" :offset="1">未支付:{{ scope.row.annualData[key].third.unpaid }}</el-col>
                          <el-col :span="4" :offset="1">未支付:{{ scope.row.annualData[key].fourth.unpaid }}</el-col>
                        </el-row>
                        <el-row>
                          <el-col :span="4">已支付:{{ scope.row.annualData[key].full.paid }}</el-col>
                          <el-col :span="4" :offset="1">已支付:{{ scope.row.annualData[key].first.paid }}</el-col>
                          <el-col :span="4" :offset="1">已支付:{{ scope.row.annualData[key].second.paid }}</el-col>
                          <el-col :span="4" :offset="1">已支付:{{ scope.row.annualData[key].third.paid }}</el-col>
                          <el-col :span="4" :offset="1">已支付:{{ scope.row.annualData[key].fourth.paid }}</el-col>
                        </el-row>
                        <el-row>
                          <el-col :span="4">未开票:{{ scope.row.annualData[key].full.uninvoice }}</el-col>
                          <el-col :span="4" :offset="1">未开票:{{ scope.row.annualData[key].first.uninvoice }}</el-col>
                          <el-col :span="4" :offset="1">未开票:{{ scope.row.annualData[key].second.uninvoice }}</el-col>
                          <el-col :span="4" :offset="1">未开票:{{ scope.row.annualData[key].third.uninvoice }}</el-col>
                          <el-col :span="4" :offset="1">未开票:{{ scope.row.annualData[key].fourth.uninvoice }}</el-col>
                        </el-row>
                        <el-row>
                          <el-col :span="4">已开票:{{ scope.row.annualData[key].full.invoiced }}</el-col>
                          <el-col :span="4" :offset="1">已开票:{{ scope.row.annualData[key].first.invoiced }}</el-col>
                          <el-col :span="4" :offset="1">已开票:{{ scope.row.annualData[key].second.invoiced }}</el-col>
                          <el-col :span="4" :offset="1">已开票:{{ scope.row.annualData[key].third.invoiced }}</el-col>
                          <el-col :span="4" :offset="1">已开票:{{ scope.row.annualData[key].fourth.invoiced }}</el-col>
                        </el-row>
                      </div>
                    </div>
                  </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="delay.loading">
            <div slot="header" class="card-header-box">
              <span>款项延期</span>
              <div class="form-box">
                <el-date-picker v-model="delay.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="queryStatisticsDelay" />
                <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="queryStatisticsDelay">搜索</el-button>
              </div>
            </div>
 
            <div class="card-content-box">
              <el-table :data="delay.preprocessData" size="small" style="width: 100%;">
                <el-table-column :show-overflow-tooltip="true" prop="contractNumber" label="合同编号" width="160" />
                <el-table-column :show-overflow-tooltip="true" prop="contractName" label="合同名称" />
                <el-table-column :show-overflow-tooltip="true" prop="contractPostponement" label="合同费延期" />
                <el-table-column :show-overflow-tooltip="true" prop="servicePostponement" label="服务费延期" />
                <el-table-column :show-overflow-tooltip="true" prop="secondName" label="所属公司" />
                <el-table-column prop="firstContactInfo" label="联系人" />
              </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="goal.loading">
            <div slot="header" class="card-header-box">
              <span>年度目标</span>
              <div class="form-box">
                <el-date-picker v-model="goal.queryForm.signDateEqual" type="year" value-format="yyyy-MM-dd 00:00:00" clearable placeholder="目标年度" style="width: 185px;" class="filter-item" @keyup.enter.native="queryStatisticsGoal" />
                <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="queryStatisticsGoal">搜索</el-button>
              </div>
            </div>
 
            <div class="card-content-box">
              <div class="margin-bottom-10" style="display: flex; flex-direction: column; gap: 10px; color: #606266;">
                <el-row>
                  <el-col :span="3">科技</el-col>
                  <el-col :span="6">年度目标:{{ goal.preprocessData.goal ? goal.preprocessData.goal.technology : 0 }}</el-col>
                  <el-col :span="6">营业额:{{ goal.preprocessData.goal ? goal.preprocessData.turnover.technology : 0 }}</el-col>
                  <el-col :span="6">差额:{{ goal.preprocessData.goal ? (goal.preprocessData.goal.technology - goal.preprocessData.turnover.technology) : 0 }}</el-col>
                </el-row>
                <el-row>
                  <el-col :span="3">咨询</el-col>
                  <el-col :span="6">年度目标:{{ goal.preprocessData.goal ? goal.preprocessData.goal.consultation : 0 }}</el-col>
                  <el-col :span="6">营业额:{{ goal.preprocessData.goal ? goal.preprocessData.turnover.consultation : 0 }}</el-col>
                  <el-col :span="6">差额:{{ goal.preprocessData.goal ? (goal.preprocessData.goal.consultation - goal.preprocessData.turnover.consultation) : 0 }}</el-col>
                </el-row>
                <el-row>
                  <el-col :span="3">弱电</el-col>
                  <el-col :span="6">年度目标:{{ goal.preprocessData.goal ? goal.preprocessData.goal.weakCurrent : 0 }}</el-col>
                  <el-col :span="6">营业额:{{ goal.preprocessData.goal ? goal.preprocessData.turnover.weakCurrent : 0 }}</el-col>
                  <el-col :span="6">差额:{{ goal.preprocessData.goal ? (goal.preprocessData.goal.weakCurrent - goal.preprocessData.turnover.weakCurrent) : 0 }}</el-col>
                </el-row>
                <el-row>
                  <el-col :span="3">知识产权</el-col>
                  <el-col :span="6">年度目标:{{ goal.preprocessData.goal ? goal.preprocessData.goal.ip : 0 }}</el-col>
                  <el-col :span="6">营业额:{{ goal.preprocessData.goal ? goal.preprocessData.turnover.ip : 0 }}</el-col>
                  <el-col :span="6">差额:{{ goal.preprocessData.goal ? (goal.preprocessData.goal.ip - goal.preprocessData.turnover.ip) : 0 }}</el-col>
                </el-row>
              </div>
              <line-chart :chart-data="goal.preprocessData" />
            </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="incomeExpense.loading">
            <div slot="header" class="card-header-box">
              <span>公司收支</span>
              <div class="form-box">
                <el-date-picker v-model="incomeExpense.queryForm.signDateEqual" type="year" value-format="yyyy-MM-dd 00:00:00" placeholder="目标年度" style="width: 185px;" class="filter-item" @keyup.enter.native="queryStatisticsIncomeExpense" />
                <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="queryStatisticsIncomeExpense">搜索</el-button>
              </div>
            </div>
 
            <div class="card-content-box">
              <bar-stack :chart-data="incomeExpense.preprocessData" height="480px" />
            </div>
          </el-card>
        </div>
      </el-col>
    </el-row>
  </div>
</template>
 
<script>
import { statisticsQuantity, statisticsAmount, statisticsDelay, statisticsGoal, statisticsIncomeExpense, statisticsRecovery } from '@/api/contract/contract'
import { parseTime } from '@/utils/index'
import LineChart from './LineChart'
import BarStack from './BarStack'
 
export default {
  name: 'ContractStatistics',
  components: { LineChart, BarStack },
  data() {
    return {
      quantity: {
        queryForm: {
          signDate: []
        },
        loading: false,
        sourceData: null,
        preprocessData: null
      },
      amount: {
        queryForm: {
          signDate: []
        },
        loading: false,
        sourceData: null,
        preprocessData: null
      },
      delay: {
        queryForm: {
          signDate: []
        },
        loading: false,
        sourceData: null,
        preprocessData: null
      },
      goal: {
        queryForm: {
          signDateEqual: null
        },
        loading: false,
        sourceData: null,
        preprocessData: {}
      },
      incomeExpense: {
        queryForm: {
          signDateEqual: null
        },
        loading: false,
        sourceData: null,
        preprocessData: {}
      },
      recovery: {
        queryForm: {
          signDate: []
        },
        loading: false,
        sourceData: null,
        preprocessData: null
      }
    }
  },
 
  created() {
    const that = this
    const currentYear = new Date().getFullYear()
    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.incomeExpense.queryForm.signDateEqual = parseTime(firstDayOfYear)
    that.queryStatisticsQuantity()
    that.queryStatisticsAmount()
    that.queryStatisticsDelay()
    that.queryStatisticsGoal()
    that.queryStatisticsIncomeExpense()
    that.queryStatisticsRecovery()
  },
  methods: {
    queryStatisticsQuantity() {
      const that = this
      that.quantity.loading = true
      statisticsQuantity(that.quantity.queryForm).then(res => {
        that.quantity.sourceData = res
        that.quantity.preprocessData = res.income
        that.quantity.loading = false
      }).catch(() => {
        that.quantity.loading = false
      })
    },
    queryStatisticsAmount() {
      const that = this
      that.amount.loading = true
      statisticsAmount(that.amount.queryForm).then(res => {
        that.amount.sourceData = res
        that.amount.preprocessData = res.income
        that.amount.loading = false
      }).catch(() => {
        that.amount.loading = false
      })
    },
    queryStatisticsDelay() {
      const that = this
      that.delay.loading = true
      statisticsDelay(that.delay.queryForm).then(res => {
        that.delay.sourceData = res
        that.delay.preprocessData = res.overdueContract
        that.delay.loading = false
      }).catch(() => {
        that.delay.loading = false
      })
    },
    queryStatisticsGoal() {
      const that = this
      that.goal.loading = true
      statisticsGoal(that.goal.queryForm).then(res => {
        that.goal.sourceData = res
        // 处理数据
        const technologyData = []
        const consultationData = []
        const weakCurrentData = []
        const ipData = []
        const turnoverData = {}
        Object.keys(res.income).forEach(key => {
          const monthData = []
          const current = res.income[key]
          for (let i = 1; i <= 12; i++) {
            monthData.push(current[i] || 0)
          }
 
          turnoverData[key] = monthData.reduce((acc, val) => acc + val, 0)
 
          for (let i = 0; i < monthData.length; i++) {
            let sum = 0
            for (let j = 0; j <= i; j++) {
              sum += monthData[j]
            }
            if (key === 'contract_technology') {
              technologyData.push(sum)
            } else if (key === 'contract_consultation') {
              consultationData.push(sum)
            } else if (key === 'contract_weak_current') {
              weakCurrentData.push(sum)
            } else if (key === 'contract_ip') {
              ipData.push(sum)
            }
          }
        })
        that.goal.preprocessData = {
          goal: {
            technology: res.goal.contract_technology || 0,
            consultation: res.goal.contract_consultation || 0,
            weakCurrent: res.goal.contract_weak_current || 0,
            ip: res.goal.contract_ip || 0
          },
          turnover: {
            technology: turnoverData.contract_technology,
            consultation: turnoverData.contract_consultation,
            weakCurrent: turnoverData.contract_weak_current,
            ip: turnoverData.contract_ip
          },
          technology: technologyData,
          consultation: consultationData,
          weakCurrent: weakCurrentData,
          ip: ipData
        }
        that.goal.loading = false
      }).catch(() => {
        that.goal.loading = false
      })
    },
    queryStatisticsIncomeExpense() {
      const that = this
      that.incomeExpense.loading = true
      statisticsIncomeExpense(that.incomeExpense.queryForm).then(res => {
        that.incomeExpense.sourceData = res
        // 处理数据
        const technologyProfit = []
        const technologyIncome = []
        const technologyExpend = []
        const consultationProfit = []
        const consultationIncome = []
        const consultationExpend = []
        const weakCurrentProfit = []
        const weakCurrentIncome = []
        const weakCurrentExpend = []
        const ipProfit = []
        const ipIncome = []
        const ipExpend = []
        Object.keys(res.typeData).forEach(key => {
          const current = res.typeData[key]
          if (key === 'contract_technology') {
            // 一季度
            technologyProfit.push((current.first.income - current.first.expend) >= 0 ? (current.first.income - current.first.expend) : 0)
            technologyIncome.push(current.first.income)
            technologyExpend.push(-(current.first.expend))
            // 二季度
            technologyProfit.push((current.second.income - current.second.expend) >= 0 ? (current.second.income - current.second.expend) : 0)
            technologyIncome.push(current.second.income)
            technologyExpend.push(-(current.second.expend))
            // 三季度
            technologyProfit.push((current.third.income - current.third.expend) >= 0 ? (current.third.income - current.third.expend) : 0)
            technologyIncome.push(current.third.income)
            technologyExpend.push(-(current.third.expend))
            // 四季度
            technologyProfit.push((current.fourth.income - current.fourth.expend) >= 0 ? (current.fourth.income - current.fourth.expend) : 0)
            technologyIncome.push(current.fourth.income)
            technologyExpend.push(-(current.fourth.expend))
          } else if (key === 'contract_consultation') {
            // 一季度
            consultationProfit.push((current.first.income - current.first.expend) >= 0 ? (current.first.income - current.first.expend) : 0)
            consultationIncome.push(current.first.income)
            consultationExpend.push(-(current.first.expend))
            // 二季度
            consultationProfit.push((current.second.income - current.second.expend) >= 0 ? (current.second.income - current.second.expend) : 0)
            consultationIncome.push(current.second.income)
            consultationExpend.push(-(current.second.expend))
            // 三季度
            consultationProfit.push((current.third.income - current.third.expend) >= 0 ? (current.third.income - current.third.expend) : 0)
            consultationIncome.push(current.third.income)
            consultationExpend.push(-(current.third.expend))
            // 四季度
            consultationProfit.push((current.fourth.income - current.fourth.expend) >= 0 ? (current.fourth.income - current.fourth.expend) : 0)
            consultationIncome.push(current.fourth.income)
            consultationExpend.push(-(current.fourth.expend))
          } else if (key === 'contract_weak_current') {
            // 一季度
            weakCurrentProfit.push((current.first.income - current.first.expend) >= 0 ? (current.first.income - current.first.expend) : 0)
            weakCurrentIncome.push(current.first.income)
            weakCurrentExpend.push(-(current.first.expend))
            // 二季度
            weakCurrentProfit.push((current.second.income - current.second.expend) >= 0 ? (current.second.income - current.second.expend) : 0)
            weakCurrentIncome.push(current.second.income)
            weakCurrentExpend.push(-(current.second.expend))
            // 三季度
            weakCurrentProfit.push((current.third.income - current.third.expend) >= 0 ? (current.third.income - current.third.expend) : 0)
            weakCurrentIncome.push(current.third.income)
            weakCurrentExpend.push(-(current.third.expend))
            // 四季度
            weakCurrentProfit.push((current.fourth.income - current.fourth.expend) >= 0 ? (current.fourth.income - current.fourth.expend) : 0)
            weakCurrentIncome.push(current.fourth.income)
            weakCurrentExpend.push(-(current.fourth.expend))
          } else if (key === 'contract_ip') {
            // 一季度
            ipProfit.push((current.first.income - current.first.expend) >= 0 ? (current.first.income - current.first.expend) : 0)
            ipIncome.push(current.first.income)
            ipExpend.push(-(current.first.expend))
            // 二季度
            ipProfit.push((current.second.income - current.second.expend) >= 0 ? (current.second.income - current.second.expend) : 0)
            ipIncome.push(current.second.income)
            ipExpend.push(-(current.second.expend))
            // 三季度
            ipProfit.push((current.third.income - current.third.expend) >= 0 ? (current.third.income - current.third.expend) : 0)
            ipIncome.push(current.third.income)
            ipExpend.push(-(current.third.expend))
            // 四季度
            ipProfit.push((current.fourth.income - current.fourth.expend) >= 0 ? (current.fourth.income - current.fourth.expend) : 0)
            ipIncome.push(current.fourth.income)
            ipExpend.push(-(current.fourth.expend))
          }
        })
        that.incomeExpense.preprocessData = {
          technologyProfit,
          technologyIncome,
          technologyExpend,
          consultationProfit,
          consultationIncome,
          consultationExpend,
          weakCurrentProfit,
          weakCurrentIncome,
          weakCurrentExpend,
          ipProfit,
          ipIncome,
          ipExpend
        }
        that.incomeExpense.loading = false
      }).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
      })
    }
  }
}
</script>
 
<style lang="scss" scoped>
  .module-row {
    margin-bottom: 20px;
 
    &:last-child {
      margin-bottom: 0;
    }
  }
 
  .data-row {
    min-width: 1200px;
  }
 
  .card-header-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
 
  .card-content-box {
    min-height: 200px;
    max-height: 500px;
    overflow: scroll;
  }
 
  .grid-content {
    border-radius: 4px;
  }
 
  .form-box {
    padding: 0px 10px;
  }
 
  .margin-bottom-10 {
    margin-bottom: 10px;
  }
</style>