2
0

2 Commits 38a866167d ... d44bb8efe2

Autor SHA1 Mensaje Fecha
  xiaoyuhao d44bb8efe2 Merge branch 'master' of http://47.112.200.206:3000/aijia/kmt hace 5 años
  xiaoyuhao a6ca7fbc31 修复薪酬列表bug hace 5 años
Se han modificado 1 ficheros con 33 adiciones y 7 borrados
  1. 33 7
      src/pages/super/CheckTeacherPay.vue

+ 33 - 7
src/pages/super/CheckTeacherPay.vue

@@ -10,6 +10,7 @@
             <div class="main-header-item">
               <div class="block">
                 <el-date-picker
+                  v-if="ActiveIndex != 2"
                   v-model="selMonth"
                   type="month"
                   placeholder="选择月份"
@@ -17,6 +18,15 @@
                   :picker-options="pickerOptions0"
                   @change="GetTeacherSalaryListDatas()"
                 ></el-date-picker>
+                <el-date-picker
+                  v-if="ActiveIndex == 2"
+                  v-model="selMonth1"
+                  type="month"
+                  placeholder="选择月份"
+                  value-format="yyyy-MM"
+                  :picker-options="pickerOptions0"
+                  @change="GetTeacherSalaryListDatas()"
+                ></el-date-picker>
               </div>
             </div>
           </el-col>
@@ -86,7 +96,7 @@
             border
             stripe
           >
-            <el-table-column label="注册老师" header-align="center">
+            <el-table-column label="注册老师" header-align="center" width="150">
               <template slot-scope="scope">
                 <div class="scope-list">
                   <img
@@ -118,7 +128,11 @@
                <el-table-column prop="manualMiddleGradeCount" label="3-4年级手动批改"></el-table-column>
               <el-table-column prop="manualHighGradeCount" label="5-6年级手动批改"></el-table-column>
               </el-table-column>
-              <el-table-column prop="basicSalary" label="底薪金额" header-align="center"></el-table-column>
+              <el-table-column prop label="底薪金额" header-align="center">
+                  <template slot-scope="scope">
+                      <span>{{scope.row.basicSalary?scope.row.basicSalary:'无'}}</span>
+                  </template>
+              </el-table-column>
               <el-table-column prop="correctDecution" label="批改提成" header-align="center"></el-table-column>
             <el-table-column prop="total" label="总计" header-align="center" ></el-table-column>
           </el-table>
@@ -150,7 +164,7 @@
             border
             stripe
           >
-            <el-table-column label="注册老师" header-align="center">
+            <el-table-column label="注册老师" header-align="center" width="150">
               <template slot-scope="scope">
                 <div class="scope-list">
                   <img
@@ -178,7 +192,11 @@
               <el-table-column prop="attendanceRate" label="出勤率" header-align="center"></el-table-column>
               <el-table-column prop="accuracy" label="正确率" header-align="center"></el-table-column>
               <el-table-column prop="correctCount" label="作业批改数量" header-align="center"></el-table-column>
-              <el-table-column prop="basicSalary" label="底薪金额" header-align="center"></el-table-column>
+              <el-table-column prop label="底薪金额" header-align="center">
+                   <template slot-scope="scope">
+                      <span>{{scope.row.basicSalary?scope.row.basicSalary:'无'}}</span>
+                  </template>
+              </el-table-column>
               <el-table-column prop="correctDecution" label="批改提成" header-align="center"></el-table-column>
             <el-table-column prop="total" label="总计" header-align="center"></el-table-column>
           </el-table>
@@ -208,7 +226,7 @@
             border
             stripe
           >
-            <el-table-column label="注册老师" header-align="center">
+            <el-table-column label="注册老师" header-align="center" width="150">
               <template slot-scope="scope">
                 <div class="scope-list">
                   <img
@@ -285,7 +303,7 @@
             border
             stripe
           >
-            <el-table-column label="注册老师" header-align="center">
+            <el-table-column label="注册老师" header-align="center" width="150">
               <template slot-scope="scope">
                 <div class="scope-list">
                   <img
@@ -411,6 +429,7 @@ export default {
       inputValue: "",
       BASE_URL: IMG_BASE_URL,
       selMonth:this.monthFormatDate(),
+      selMonth1:this.nextFormatDate(),
       hiddenModel: false,
       isPigai: false,
       currentPageSize: 10,
@@ -803,7 +822,14 @@ export default {
       });
     },
          //年月时间封装
-    monthFormatDate: function() {
+    monthFormatDate: function(str) {
+      let date = new Date();
+      let y = date.getFullYear();
+      let MM = date.getMonth();
+      MM = MM < 10 ? "0" + MM : MM;
+      return y + "-" + MM;
+    },
+    nextFormatDate: function(str) {
       let date = new Date();
       let y = date.getFullYear();
       let MM = date.getMonth() + 1;