Browse Source

序号修改。

tomatozq 4 năm trước cách đây
mục cha
commit
328682447f
1 tập tin đã thay đổi với 16 bổ sung3 xóa
  1. 16 3
      src/views/business/workScheduleAttendance-list.vue

+ 16 - 3
src/views/business/workScheduleAttendance-list.vue

@@ -497,11 +497,24 @@ export default {
     },
     printReport() {
       var title = "考勤统计表";
-      pageUtil.printTable(this.tableData,
+
+      var rows = JSON.parse(JSON.stringify(this.tableData));
+
+      var index = 0;
+
+      rows.forEach(row=>{
+        row.index = ++index;
+
+        if(row.personInfo.jobNumber==null){
+          row.personInfo.jobNumber = "";
+        }
+      });
+
+      pageUtil.printTable(rows,
       [
-        { field: 'personInfo.id', displayName: '编号'},
+        { field: 'index', displayName: '序号'},
         { field: 'personInfo.jobNumber', displayName: '工号'},
-        { field: 'personInfo.name', displayName: '姓名', columnSize: '10%'},
+        { field: 'personInfo.name', displayName: '姓名', columnSize: '8%'},
         { field: 'attendanceDays', displayName: '应出勤天数'},
         { field: 'totalAttendanceDays', displayName: '全勤天数'},
         { field: 'lateMinutes', displayName: '迟到分钟'},