|
@@ -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;
|