瀏覽代碼

SAI开项管理 - “待处理”台账上方添加“各班组当年至今的提交数量”表格
SAI开项管理 - “与我相关”台账上方添加“各班组当年至今的提交数量”表格

wangggziwen 3 月之前
父節點
當前提交
e3861aba09

+ 26 - 27
ui/src/views/production/apply/all/index.vue

@@ -1144,35 +1144,34 @@ export default {
     this.getLoginStaffInfo();
     this.getCategoryList();
     this.getWorkAreaList();
-    getTeamAnalysis().then(response => {
-      let data = response.data;
-      for (let i = 0; i < data.length; i++) {
-        let applicantTeam = data[i].applicantTeam;
-        let teamCount = data[i].teamCount;
-        if (data[i].applicantTeam == 'A') {
-          if (teamCount != '') {
-            this.countA = teamCount;
-          }
-        } else if (data[i].applicantTeam == 'B') {
-          if (teamCount != '') {
-            this.countB = teamCount;
-          }
-        } else if (data[i].applicantTeam == 'C') {
-          if (teamCount != '') {
-            this.countC = teamCount;
-          }
-        } else if (data[i].applicantTeam == 'D') {
-          if (teamCount != '') {
-            this.countD = teamCount;
-          }
-        }
-      }
-    });
+    this.getTeamTable();
   },
   methods: {
-    /** 绘制趋势图 */
-    draw() {
-
+    getTeamTable() {
+      getTeamAnalysis().then(response => {
+        let data = response.data;
+        for (let i = 0; i < data.length; i++) {
+          let applicantTeam = data[i].applicantTeam;
+          let teamCount = data[i].teamCount;
+          if (applicantTeam == 'A') {
+            if (teamCount != '') {
+              this.countA = teamCount;
+            }
+          } else if (applicantTeam == 'B') {
+            if (teamCount != '') {
+              this.countB = teamCount;
+            }
+          } else if (applicantTeam == 'C') {
+            if (teamCount != '') {
+              this.countC = teamCount;
+            }
+          } else if (dapplicantTeam == 'D') {
+            if (teamCount != '') {
+              this.countD = teamCount;
+            }
+          }
+        }
+      });
     },
     /** 销毁趋势图 */
     disposeChart() {

+ 48 - 2
ui/src/views/production/apply/mine/index.vue

@@ -114,7 +114,7 @@
       </el-form-item>
     </el-form>
     <!-- 操作按钮 -->
-    <el-row :gutter="10" class="mb8">
+    <el-row :gutter="10" class="mb8" style="margin-bottom: 0px;">
       <el-col :span="1.5">
         <el-button
           type="primary"
@@ -160,6 +160,21 @@
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
+    <!-- 各班组当年至今的提交数量 -->
+    <el-descriptions title="" direction="vertical" :column="4" border style="margin-bottom: 20px;">
+      <el-descriptions-item label="A班">
+        <el-tag size="small">{{countA}}</el-tag>
+      </el-descriptions-item>
+      <el-descriptions-item label="B班">
+        <el-tag size="small">{{countB}}</el-tag>
+      </el-descriptions-item>
+      <el-descriptions-item label="C班">
+        <el-tag size="small">{{countC}}</el-tag>
+      </el-descriptions-item>
+      <el-descriptions-item label="D班">
+        <el-tag size="small">{{countD}}</el-tag>
+      </el-descriptions-item>
+    </el-descriptions>
     <!-- 总表 -->
     <el-table v-loading="loading" :data="applyList" @selection-change="handleSelectionChange" :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center" />
@@ -688,7 +703,7 @@
 </template>
 
 <script>
-  import { saveAndSubmitApply, submitApply, listApply, getApply, delApply, addApply, updateApply, exportApply, importTemplate} from "@/api/production/apply";
+  import { saveAndSubmitApply, submitApply, listApply, getApply, delApply, addApply, updateApply, exportApply, importTemplate, getTeamAnalysis} from "@/api/production/apply";
   import { addSai } from "@/api/production/sai";
   import { treeselect, listDept } from "@/api/system/dept";
   import { getToken } from "@/utils/auth";
@@ -959,6 +974,10 @@
         // 是否禁用班组下拉框
         applicantTeamDisabled: false,
         workAreaList: [],
+        countA: 0,
+        countB: 0,
+        countC: 0,
+        countD: 0,
       };
     },
     watch: {
@@ -998,8 +1017,35 @@
       this.getLoginStaffInfo();
       this.getCategoryList();
       this.getWorkAreaList();
+      this.getTeamTable();
     },
     methods: {
+      getTeamTable() {
+        getTeamAnalysis().then(response => {
+          let data = response.data;
+          for (let i = 0; i < data.length; i++) {
+            let applicantTeam = data[i].applicantTeam;
+            let teamCount = data[i].teamCount;
+            if (applicantTeam == 'A') {
+              if (teamCount != '') {
+                this.countA = teamCount;
+              }
+            } else if (applicantTeam == 'B') {
+              if (teamCount != '') {
+                this.countB = teamCount;
+              }
+            } else if (applicantTeam == 'C') {
+              if (teamCount != '') {
+                this.countC = teamCount;
+              }
+            } else if (dapplicantTeam == 'D') {
+              if (teamCount != '') {
+                this.countD = teamCount;
+              }
+            }
+          }
+        });
+      },
       getWorkAreaList() {
         selectDevice().then(response => {
           let data = response.data;

+ 48 - 2
ui/src/views/production/apply/pending/index.vue

@@ -114,7 +114,7 @@
       </el-form-item>
     </el-form>
     <!-- 操作按钮 -->
-    <el-row :gutter="10" class="mb8">
+    <el-row :gutter="10" class="mb8" style="margin-bottom: 0px;">
       <el-col :span="1.5">
         <el-button
           type="primary"
@@ -160,6 +160,21 @@
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
+    <!-- 各班组当年至今的提交数量 -->
+    <el-descriptions title="" direction="vertical" :column="4" border style="margin-bottom: 20px;">
+      <el-descriptions-item label="A班">
+        <el-tag size="small">{{countA}}</el-tag>
+      </el-descriptions-item>
+      <el-descriptions-item label="B班">
+        <el-tag size="small">{{countB}}</el-tag>
+      </el-descriptions-item>
+      <el-descriptions-item label="C班">
+        <el-tag size="small">{{countC}}</el-tag>
+      </el-descriptions-item>
+      <el-descriptions-item label="D班">
+        <el-tag size="small">{{countD}}</el-tag>
+      </el-descriptions-item>
+    </el-descriptions>
     <!-- 总表 -->
     <el-table v-loading="loading" :data="applyList" @selection-change="handleSelectionChange" :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center" />
@@ -687,7 +702,7 @@
 </template>
 
 <script>
-  import { saveAndSubmitApply, submitApply, listApply, getApply, delApply, addApply, updateApply, exportApply, importTemplate} from "@/api/production/apply";
+  import { saveAndSubmitApply, submitApply, listApply, getApply, delApply, addApply, updateApply, exportApply, importTemplate, getTeamAnalysis} from "@/api/production/apply";
   import { addSai } from "@/api/production/sai";
   import { treeselect, listDept } from "@/api/system/dept";
   import { getToken } from "@/utils/auth";
@@ -958,6 +973,10 @@
         // 是否禁用班组下拉框
         applicantTeamDisabled: false,
         workAreaList: [],
+        countA: 0,
+        countB: 0,
+        countC: 0,
+        countD: 0,
       };
     },
     watch: {
@@ -997,8 +1016,35 @@
       this.getLoginStaffInfo();
       this.getCategoryList();
       this.getWorkAreaList();
+      this.getTeamTable();
     },
     methods: {
+      getTeamTable() {
+        getTeamAnalysis().then(response => {
+          let data = response.data;
+          for (let i = 0; i < data.length; i++) {
+            let applicantTeam = data[i].applicantTeam;
+            let teamCount = data[i].teamCount;
+            if (applicantTeam == 'A') {
+              if (teamCount != '') {
+                this.countA = teamCount;
+              }
+            } else if (applicantTeam == 'B') {
+              if (teamCount != '') {
+                this.countB = teamCount;
+              }
+            } else if (applicantTeam == 'C') {
+              if (teamCount != '') {
+                this.countC = teamCount;
+              }
+            } else if (dapplicantTeam == 'D') {
+              if (teamCount != '') {
+                this.countD = teamCount;
+              }
+            }
+          }
+        });
+      },
       getWorkAreaList() {
         selectDevice().then(response => {
           let data = response.data;