Pārlūkot izejas kodu

1.大中型 错误类型报表 补全新的错误类型

GouGengquan 6 mēneši atpakaļ
vecāks
revīzija
d6fbd1e3cd
1 mainītis faili ar 432 papildinājumiem un 251 dzēšanām
  1. 432 251
      src/views/statistical/major/performanceDeductionErrorType.vue

+ 432 - 251
src/views/statistical/major/performanceDeductionErrorType.vue

@@ -1,134 +1,314 @@
 <template>
-    <div class="app-container organization-index">
-        <div class="title-container">
-            <breadcrumb id="breadcrumb-container" class="breadcrumb-container" />
-        </div>
-        <div>
-            <div style="width: 100%; height: 50px;">
-                <el-date-picker style="margin-right: 20px;float: left;" v-model="selectDate" type="daterange"
-                    :picker-options="pickerOptions" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd" range-separator="至"
-                    start-placeholder="开始日期" end-placeholder="结束日期" align="right">
-                </el-date-picker>
-                <el-select v-model="listQuery.checkType" filterable placeholder=""
-                    style=" width: 200px;margin-left: 10px;float: left;">
-                    <el-option label="公司审核错误统计" value="com"></el-option>
-                    <el-option v-if=" $store.getters.userInfo && !$store.getters.userInfo.postList.some(item => item.name === '三审人' || item.name === '复审人')" label="部门内部错误统计" value="dep"></el-option>
-                </el-select>
-                <el-input v-model="listQuery.userName" placeholder="姓名" clearable
-                    style="margin-left: 20px;width: 200px;float: left;">
-                </el-input>
-                <el-button class="filter-item" style="margin-left: 10px;float: left;" type="primary" @click="searchList()"
-                    round>搜索
-                </el-button>
-                <el-button class="filter-item" round type="success" @click="resetParams()">重置
-                </el-button>
-                <el-button class="filter-item" round type="info" @click="exportMajorPerformanceDeductionVO()"
-                    :disabled="exportStatus">导出
-                </el-button>
-            </div>
-            <el-table :data="performanceDeduction" fit stripe highlight-current-row
-                :header-row-style="{ color: '#333333', 'font-size': '14px' }" style=" width: 100%; float: right;
+  <div class="app-container organization-index">
+    <div class="title-container">
+      <breadcrumb id="breadcrumb-container" class="breadcrumb-container" />
+    </div>
+    <div>
+      <div style="width: 100%; height: 50px;">
+        <el-date-picker
+          style="margin-right: 20px;float: left;"
+          v-model="selectDate"
+          type="daterange"
+          :picker-options="pickerOptions"
+          format="yyyy 年 MM 月 dd 日"
+          value-format="yyyy-MM-dd"
+          range-separator="至"
+          start-placeholder="开始日期"
+          end-placeholder="结束日期"
+          align="right"
+        ></el-date-picker>
+        <el-select v-model="listQuery.checkType" filterable placeholder style=" width: 200px;margin-left: 10px;float: left;">
+          <el-option label="公司审核错误统计" value="com"></el-option>
+          <el-option v-if=" $store.getters.userInfo && !$store.getters.userInfo.postList.some(item => item.name === '三审人' || item.name === '复审人')" label="部门内部错误统计" value="dep"></el-option>
+        </el-select>
+        <el-input v-model="listQuery.userName" placeholder="姓名" clearable style="margin-left: 20px;width: 200px;float: left;"></el-input>
+        <el-button class="filter-item" style="margin-left: 10px;float: left;" type="primary" @click="searchList()" round>搜索</el-button>
+        <el-button class="filter-item" round type="success" @click="resetParams()">重置</el-button>
+        <el-button class="filter-item" round type="info" @click="exportMajorPerformanceDeductionVO()" :disabled="exportStatus">导出</el-button>
+      </div>
+      <el-table
+        :data="performanceDeduction"
+        fit
+        stripe
+        highlight-current-row
+        :header-row-style="{ color: '#333333', 'font-size': '14px' }"
+        style=" width: 100%; float: right;
                       border-left: 1px solid #ebeced;
                       border-right: 1px solid #ebeced;
-                      color: #333333; font-size: 14px;">
-                <el-table-column label="评估人员" width="150">
-                    <template slot-scope="{row}">
-                        <span>{{ row.userName }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="委托书界定事项和报告描述不符" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount01 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount01
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="委托方函重要数据出错" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount02 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount02
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="假设限制条件错漏" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount03 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount03
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="地价定义表述有误或不完整" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount04 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount04
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="大小写有误" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount05 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount05
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="面积有误" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount06 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount06
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="报告章节缺漏" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount07 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount07
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="技术路线错误" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount08 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount08
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="测算参数取值错误" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount09 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount09
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="实景图方位图错误" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount10 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount10
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="报告出具日期错误" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount11 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount11
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="报告有效期错误" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount12 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount12
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="估价依据适用不当" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount13 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount13
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="委托人名称出错" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount14 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount14
-                        }}</span>
-                    </template>
-                </el-table-column>
-                <el-table-column label="价值时点出错" width="150">
-                    <template slot-scope="{row}">
-                        <span :style="{ color: row.errorTypeCount15 > 0 ? 'red' : 'black' }">{{ row.errorTypeCount15
-                        }}</span>
-                    </template>
-                </el-table-column>
-            </el-table>
-        </div>
+                      color: #333333; font-size: 14px;"
+      >
+        <el-table-column label="评估人员" width="150">
+          <template slot-scope="{row}">
+            <span>{{ row.userName }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="委托书界定事项和报告描述不符" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount01 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount01
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="方位图有误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount02 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount02
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="实景图有误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount03 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount03
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="测算参数取值不充分" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount04 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount04
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="估价结果确定方式不恰当" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount05 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount05
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="估价方法表述不完整" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount06 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount06
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="实物、权益、区位描述缺项" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount07 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount07
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="价值定义表述不完整" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount08 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount08
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="非重要文字和数据录入错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount09 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount09
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="估价结果价格有误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount10 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount10
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="大小写不一致" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount11 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount11
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="面积错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount12 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount12
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="委托方函重要数据出错" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount13 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount13
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="委托人名称出错" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount14 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount14
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="假设限制条件错漏" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount15 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount15
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="价值定义表述错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount16 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount16
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="报告章节缺漏" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount17 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount17
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="报告出具日期错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount18 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount18
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="报告有效期错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount19 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount19
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="重要文字和数据录入错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount20 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount20
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="估价对象错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount21 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount21
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="估价目的错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount22 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount22
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="价值时点设定出错" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount23 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount23
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="登记状况错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount24 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount24
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="权利状况错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount25 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount25
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="利用状况错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount26 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount26
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="技术路线错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount27 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount27
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="关键参数取值错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount28 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount28
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="编造虚假案例" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount29 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount29
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="编造虚假照片" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount30 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount30
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="估价依据资料严重不全" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount31 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount31
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="评估结果严重失真超30%以上" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount32 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount32
+              }}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column label="关键文字和数据错误" width="150">
+          <template slot-scope="{row}">
+            <span :style="{ color: row.errorTypeCount33 > 0 ? 'red' : 'black' }">
+              {{ row.errorTypeCount33
+              }}
+            </span>
+          </template>
+        </el-table-column>
+      </el-table>
     </div>
+  </div>
 </template>
 
 <script>
@@ -136,135 +316,136 @@ import Breadcrumb from '@/components/Breadcrumb'
 import YPageListLayout from '@/components/YPageListLayout'
 
 export default {
-    name: 'majorPerformanceDeductionErrorType',
-    components: {
-        Breadcrumb,
-        YPageListLayout
-    },
-    data() {
-        return {
-            dialogVisible: false,
-            dialogTitle: null,
-            listLoading: false,
-            // 时间
-            selectDate: [],
-            listQuery: {
-                // 开始时间
-                startTime: null,
-                // 结束时间
-                endTime: null,
-                // 审核类型
-                checkType: 'com'
+  name: 'majorPerformanceDeductionErrorType',
+  components: {
+    Breadcrumb,
+    YPageListLayout,
+  },
+  data() {
+    return {
+      dialogVisible: false,
+      dialogTitle: null,
+      listLoading: false,
+      // 时间
+      selectDate: [],
+      listQuery: {
+        // 开始时间
+        startTime: null,
+        // 结束时间
+        endTime: null,
+        // 审核类型
+        checkType: 'com',
+      },
+      pickerOptions: {
+        shortcuts: [
+          {
+            text: '最近一周',
+            onClick(picker) {
+              const end = new Date()
+              const start = new Date()
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
+              picker.$emit('pick', [start, end])
+            },
+          },
+          {
+            text: '最近一个月',
+            onClick(picker) {
+              const end = new Date()
+              const start = new Date()
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
+              picker.$emit('pick', [start, end])
             },
-            pickerOptions: {
-                shortcuts: [{
-                    text: '最近一周',
-                    onClick(picker) {
-                        const end = new Date();
-                        const start = new Date();
-                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
-                        picker.$emit('pick', [start, end]);
-                    }
-                }, {
-                    text: '最近一个月',
-                    onClick(picker) {
-                        const end = new Date();
-                        const start = new Date();
-                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
-                        picker.$emit('pick', [start, end]);
-                    }
-                }, {
-                    text: '最近三个月',
-                    onClick(picker) {
-                        const end = new Date();
-                        const start = new Date();
-                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
-                        picker.$emit('pick', [start, end]);
-                    }
-                }]
+          },
+          {
+            text: '最近三个月',
+            onClick(picker) {
+              const end = new Date()
+              const start = new Date()
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
+              picker.$emit('pick', [start, end])
             },
-            exportStatus: true,
-            performanceDeduction: [],
-            // 接单部门
-            allotDepartment: []
+          },
+        ],
+      },
+      exportStatus: true,
+      performanceDeduction: [],
+      // 接单部门
+      allotDepartment: [],
+    }
+  },
+  created() {
+    this.selectDate.push(this.getDefaultStartDate())
+    this.selectDate.push(this.getDefaultEndDate())
+    this.getAllotDepartment()
+    this.getMajorErrorTypeCountVO()
+  },
+  methods: {
+    getDefaultStartDate() {
+      let currentDate = new Date()
+      let currentYear = currentDate.getFullYear()
+      var currentMonth = String(currentDate.getMonth()).padStart(2, '0')
+      if (currentMonth == '00') {
+        currentYear = currentYear - 1
+        currentMonth = 12
+      }
+      return currentYear + '-' + currentMonth + '-' + '23'
+    },
+    getDefaultEndDate() {
+      const currentDate = new Date()
+      const currentYear = currentDate.getFullYear()
+      var currentMonth = String(currentDate.getMonth() + 1).padStart(2, '0')
+      return currentYear + '-' + currentMonth + '-' + '22'
+    },
+    // 条件查询
+    searchList() {
+      this.getMajorErrorTypeCountVO()
+    },
+    // 重置搜索条件
+    resetParams() {
+      this.exportStatus = true
+      this.listQuery = {
+        // 重置分页
+        page: 1,
+        size: 10,
+        // 开始时间
+        startTime: null,
+        // 结束时间
+        endTime: null,
+        // 审核类型
+        checkType: 'com',
+      }
+      this.selectDate = []
+      this.selectDate.push(this.getDefaultStartDate())
+      this.selectDate.push(this.getDefaultEndDate())
+      this.getMajorErrorTypeCountVO()
+    },
+    getMajorErrorTypeCountVO() {
+      if (this.selectDate) {
+        this.listQuery.startTime = this.selectDate[0] + ' 00:00:00'
+        this.listQuery.endTime = this.selectDate[1] + ' 23:59:59'
+      }
+      this.$api.statistical.getMajorErrorTypeCountVO(this.listQuery).then((res) => {
+        if (res.code === 200) {
+          this.performanceDeduction = res.data
+          if (this.listQuery.startTime !== null && this.listQuery.endTime !== null && res.data.length > 0) {
+            this.exportStatus = false
+          } else {
+            this.exportStatus = true
+          }
         }
+      })
     },
-    created() {
-        this.selectDate.push(this.getDefaultStartDate());
-        this.selectDate.push(this.getDefaultEndDate());
-        this.getAllotDepartment();
-        this.getMajorErrorTypeCountVO();
+    exportMajorPerformanceDeductionVO() {
+      this.$utils.exportUtil('major/statisticalStatement/errorType/getMajorErrorTypeCountVO/export', this.listQuery, '导出')
     },
-    methods: {
-        getDefaultStartDate() {
-            let currentDate = new Date();
-            let currentYear = currentDate.getFullYear();
-            var currentMonth = String(currentDate.getMonth()).padStart(2, "0");
-            if (currentMonth=='00'){
-                currentYear = currentYear-1;
-                currentMonth = 12
-            }
-            return currentYear + '-' + currentMonth + '-' + '23'
-        },
-        getDefaultEndDate() {
-            const currentDate = new Date();
-            const currentYear = currentDate.getFullYear();
-            var currentMonth = String(currentDate.getMonth() + 1).padStart(2, "0");
-            return currentYear + '-' + currentMonth + '-' + '22'
-        },
-        // 条件查询
-        searchList() {
-            this.getMajorErrorTypeCountVO()
-        },
-        // 重置搜索条件
-        resetParams() {
-            this.exportStatus = true;
-            this.listQuery = {
-                // 重置分页
-                page: 1,
-                size: 10,
-                // 开始时间
-                startTime: null,
-                // 结束时间
-                endTime: null,
-                // 审核类型
-                checkType: 'com'
-            };
-            this.selectDate = [];
-            this.selectDate.push(this.getDefaultStartDate());
-            this.selectDate.push(this.getDefaultEndDate());
-            this.getMajorErrorTypeCountVO();
-        },
-        getMajorErrorTypeCountVO() {
-            if (this.selectDate) {
-                this.listQuery.startTime = this.selectDate[0] + ' 00:00:00';
-                this.listQuery.endTime = this.selectDate[1] + ' 23:59:59';
-            }
-            this.$api.statistical.getMajorErrorTypeCountVO(this.listQuery).then(res => {
-                if (res.code === 200) {
-                    this.performanceDeduction = res.data;
-                    if (this.listQuery.startTime !== null && this.listQuery.endTime !== null && res.data.length > 0) {
-                        this.exportStatus = false;
-                    } else {
-                        this.exportStatus = true;
-                    }
-                }
-            })
-        },
-        exportMajorPerformanceDeductionVO() {
-            this.$utils.exportUtil(
-                "major/statisticalStatement/errorType/getMajorErrorTypeCountVO/export", this.listQuery,
-                "导出"
-            );
-        },
-        // 获取部门下拉列表
-        getAllotDepartment() {
-            this.$api.department.allot('MAJOR_BUSINESS').then(res => {
-                if (res.code === 200) {
-                    this.allotDepartment = res.data;
-                }
-            })
+    // 获取部门下拉列表
+    getAllotDepartment() {
+      this.$api.department.allot('MAJOR_BUSINESS').then((res) => {
+        if (res.code === 200) {
+          this.allotDepartment = res.data
         }
-    }
+      })
+    },
+  },
 }
 </script>