sunlupeng 1 gadu atpakaļ
vecāks
revīzija
d1b3c5fcd0

+ 20 - 0
src/api/personnel/attendance/info/index.js

@@ -70,4 +70,24 @@ export function exportInfo(query) {
     params: query,
     responseType: 'blob'
   })
+}
+
+// 导出每日
+export function exportInfoDaily(query) {
+  return request({
+    url: '/personnel/attendance/info/export-daily-excel',
+    method: 'get',
+    params: query,
+    responseType: 'blob'
+  })
+}
+
+// 导出每月
+export function exportInfoMonthly(query) {
+  return request({
+    url: '/personnel/attendance/info/export-monthly-excel',
+    method: 'get',
+    params: query,
+    responseType: 'blob'
+  })
 }

+ 1 - 1
src/views/meeting/reserveList/index.vue

@@ -425,7 +425,7 @@ export default {
         this.exportLoading = true;
         return exportReserveMeeting(queryParams);
       }).then(response => {
-        this.$download.excel(response, '数据.xls');
+        this.$download.excel(response, '预定信息数据.xls');
         this.exportLoading = false;
       }).catch(() => { });
     }

+ 2 - 2
src/views/personnel/attendance/info/daily.vue

@@ -64,7 +64,7 @@
 </template>
 
 <script>
-import { listInfoDaily, exportInfo } from "@/api/personnel/attendance/info/index";
+import { listInfoDaily, exportInfoDaily } from "@/api/personnel/attendance/info/index";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import { listDept } from "@/api/system/dept";
@@ -162,7 +162,7 @@ export default {
       // 执行导出
       this.$modal.confirm('是否确认导出所有数据项?').then(() => {
         this.exportLoading = true;
-        return exportInfo(params);
+        return exportInfoDaily(params);
       }).then(response => {
         this.$download.excel(response, '每日考勤信息.xls');
         this.exportLoading = false;

+ 6 - 6
src/views/personnel/attendance/info/monthly.vue

@@ -9,8 +9,8 @@
         <treeselect style="width: 250px" :default-expand-level="1" v-model="queryParams.deptId" :options="deptOptions"
           :normalizer="normalizer" placeholder="选择部门" />
       </el-form-item>
-      <el-form-item label="手机号" prop="employeePhone">
-        <el-input v-model="queryParams.employeePhone" placeholder="请输入手机号" clearable style="width: 250px"
+      <el-form-item label="手机号" prop="employeeMobile">
+        <el-input v-model="queryParams.employeeMobile" placeholder="请输入手机号" clearable style="width: 250px"
           @keyup.enter.native="handleQuery" />
       </el-form-item>
       <el-form-item label="日期" prop="attendanceMonth">
@@ -38,7 +38,7 @@
     <el-table v-loading="loading" :data="typeList">
       <el-table-column label="员工姓名" align="center" prop="employeeName" min-width="80" />
       <el-table-column label="部门" align="center" prop="deptName" min-width="100" />
-      <el-table-column label="手机号" align="center" prop="employeePhone" min-width="100" />
+      <el-table-column label="手机号" align="center" prop="employeeMobile" min-width="100" />
       <el-table-column label="出勤天数" align="center" prop="attendanceDays" min-width="100" />
       <el-table-column label="正常打卡次数" align="center" prop="normalClockCount" min-width="100" />
       <el-table-column label="迟到次数" align="center" prop="lateCount" min-width="100" />
@@ -53,7 +53,7 @@
 </template>
 
 <script>
-import { listInfoMonthly, exportInfo } from "@/api/personnel/attendance/info/index";
+import { listInfoMonthly, exportInfoMonthly } from "@/api/personnel/attendance/info/index";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import { listDept } from "@/api/system/dept";
@@ -85,7 +85,7 @@ export default {
         pageSize: 10,
         employeeName: undefined,
         deptId: undefined,
-        employeePhone: undefined,
+        employeeMobile: undefined,
         attendanceMonth: this.getNowDate(),
       },
     };
@@ -152,7 +152,7 @@ export default {
       // 执行导出
       this.$modal.confirm('是否确认导出所有数据项?').then(() => {
         this.exportLoading = true;
-        return exportInfo(params);
+        return exportInfoMonthly(params);
       }).then(response => {
         this.$download.excel(response, '月度考勤信息.xls');
         this.exportLoading = false;