|
@@ -17,8 +17,8 @@
|
|
|
--text: #222222;
|
|
--text: #222222;
|
|
|
--muted: #8b95a5;
|
|
--muted: #8b95a5;
|
|
|
--soft: #f7f8fa;
|
|
--soft: #f7f8fa;
|
|
|
- --green: #19a463;
|
|
|
|
|
- --green-soft: #eaf8f1;
|
|
|
|
|
|
|
+ --green: #222222;
|
|
|
|
|
+ --green-soft: #f5f6f8;
|
|
|
--danger: #e5484d;
|
|
--danger: #e5484d;
|
|
|
--danger-soft: #fff0f0;
|
|
--danger-soft: #fff0f0;
|
|
|
}
|
|
}
|
|
@@ -88,12 +88,24 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.info-row {
|
|
.info-row {
|
|
|
|
|
+ position: relative;
|
|
|
display: grid;
|
|
display: grid;
|
|
|
grid-template-columns: 92px 1fr;
|
|
grid-template-columns: 92px 1fr;
|
|
|
min-height: 58px;
|
|
min-height: 58px;
|
|
|
border-bottom: 1px solid var(--line);
|
|
border-bottom: 1px solid var(--line);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ .info-row.required::before {
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 92px;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ bottom: 0;
|
|
|
|
|
+ width: 2px;
|
|
|
|
|
+ background: #ff3b30;
|
|
|
|
|
+ z-index: 1;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.info-row:last-child {
|
|
.info-row:last-child {
|
|
|
border-bottom: none;
|
|
border-bottom: none;
|
|
|
}
|
|
}
|
|
@@ -346,17 +358,7 @@
|
|
|
|
|
|
|
|
<div class="page-content">
|
|
<div class="page-content">
|
|
|
<div class="info-table">
|
|
<div class="info-table">
|
|
|
- <div class="info-row">
|
|
|
|
|
- <div class="info-label">检查人</div>
|
|
|
|
|
- <div class="info-value">{{ jcryxm || '—' }}</div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="info-row">
|
|
|
|
|
- <div class="info-label">检查日期</div>
|
|
|
|
|
- <div class="info-value">{{ inspectionDate }}</div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="info-row">
|
|
|
|
|
|
|
+ <div class="info-row required">
|
|
|
<div class="info-label">部门</div>
|
|
<div class="info-label">部门</div>
|
|
|
<div class="info-value">
|
|
<div class="info-value">
|
|
|
<div class="select-cell">
|
|
<div class="select-cell">
|
|
@@ -365,7 +367,6 @@
|
|
|
:options="departmentOptions"
|
|
:options="departmentOptions"
|
|
|
:mapping="{ text: 'n', value: 'v' }"
|
|
:mapping="{ text: 'n', value: 'v' }"
|
|
|
placeholder=""
|
|
placeholder=""
|
|
|
- empty-option
|
|
|
|
|
searchable
|
|
searchable
|
|
|
@change="onDepartmentChange"
|
|
@change="onDepartmentChange"
|
|
|
/>
|
|
/>
|
|
@@ -373,21 +374,44 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div v-if="form.bmid" class="info-row">
|
|
|
|
|
- <div class="info-label">学员总人数</div>
|
|
|
|
|
- <div class="info-value">{{ totalStudents }}</div>
|
|
|
|
|
|
|
+ <div class="info-row">
|
|
|
|
|
+ <div class="info-label">总分数</div>
|
|
|
|
|
+ <div class="info-value">{{ formatScore(totalFs) }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div v-if="form.bmid" class="info-row">
|
|
|
|
|
- <div class="info-label">有效应到人数</div>
|
|
|
|
|
- <div class="info-value">{{ expectedStudents }}</div>
|
|
|
|
|
|
|
+ <div class="info-row">
|
|
|
|
|
+ <div class="info-label">出勤率(%)</div>
|
|
|
|
|
+ <div class="info-value">{{ formatScore(attendanceRate) }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div v-if="form.bmid" class="info-row">
|
|
|
|
|
- <div class="info-label">同步班级</div>
|
|
|
|
|
- <div class="info-value info-text">
|
|
|
|
|
- {{ classNamesText || '当前部门暂无有效班级' }}
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="info-row">
|
|
|
|
|
+ <div class="info-label">考勤分数</div>
|
|
|
|
|
+ <div class="info-value">{{ formatScore(attendanceRate) }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="info-row">
|
|
|
|
|
+ <div class="info-label">队列分数</div>
|
|
|
|
|
+ <div class="info-value">{{ formatScore(queueScore) }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="info-row">
|
|
|
|
|
+ <div class="info-label">风貌分数</div>
|
|
|
|
|
+ <div class="info-value">{{ formatScore(demeanorScore) }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="info-row">
|
|
|
|
|
+ <div class="info-label">纪律分数</div>
|
|
|
|
|
+ <div class="info-value">{{ formatScore(disciplineScore) }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="info-row">
|
|
|
|
|
+ <div class="info-label">检查人</div>
|
|
|
|
|
+ <div class="info-value">{{ jcryxm || '—' }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="info-row">
|
|
|
|
|
+ <div class="info-label">检查日期</div>
|
|
|
|
|
+ <div class="info-value">{{ inspectionDate }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="info-row">
|
|
<div class="info-row">
|
|
@@ -487,10 +511,10 @@
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
departmentOptions() {
|
|
departmentOptions() {
|
|
|
- return [{ n: "", v: "" }].concat(this.departments.map((item) => ({
|
|
|
|
|
|
|
+ return this.departments.map((item) => ({
|
|
|
n: item.bmmc || "",
|
|
n: item.bmmc || "",
|
|
|
v: String(item.bmid == null ? "" : item.bmid)
|
|
v: String(item.bmid == null ? "" : item.bmid)
|
|
|
- })));
|
|
|
|
|
|
|
+ }));
|
|
|
},
|
|
},
|
|
|
expectedStudents() {
|
|
expectedStudents() {
|
|
|
const countCodes = [3, 4, 5, 6, 7, 8];
|
|
const countCodes = [3, 4, 5, 6, 7, 8];
|
|
@@ -504,18 +528,22 @@
|
|
|
return Math.min(100, this.round2(
|
|
return Math.min(100, this.round2(
|
|
|
this.valueOfCode(2) * 100 / this.expectedStudents));
|
|
this.valueOfCode(2) * 100 / this.expectedStudents));
|
|
|
},
|
|
},
|
|
|
|
|
+ queueScore() {
|
|
|
|
|
+ return this.round2(this.valueOfCode(11));
|
|
|
|
|
+ },
|
|
|
|
|
+ demeanorScore() {
|
|
|
|
|
+ return this.round2(
|
|
|
|
|
+ this.valueOfCode(21) + this.valueOfCode(22));
|
|
|
|
|
+ },
|
|
|
|
|
+ disciplineScore() {
|
|
|
|
|
+ return this.round2(this.valueOfCode(31));
|
|
|
|
|
+ },
|
|
|
totalFs() {
|
|
totalFs() {
|
|
|
- const queueScore = this.valueOfCode(11);
|
|
|
|
|
- const demeanorScore = this.valueOfCode(21) + this.valueOfCode(22);
|
|
|
|
|
- const disciplineScore = this.valueOfCode(31);
|
|
|
|
|
return this.round2(
|
|
return this.round2(
|
|
|
this.attendanceRate * 0.25
|
|
this.attendanceRate * 0.25
|
|
|
- + queueScore * 0.20
|
|
|
|
|
- + demeanorScore * 0.40
|
|
|
|
|
- + disciplineScore * 0.15);
|
|
|
|
|
- },
|
|
|
|
|
- classNamesText() {
|
|
|
|
|
- return this.classes.map((item) => item.bjmc).filter(Boolean).join("、");
|
|
|
|
|
|
|
+ + this.queueScore * 0.20
|
|
|
|
|
+ + this.demeanorScore * 0.40
|
|
|
|
|
+ + this.disciplineScore * 0.15);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
async mounted() {
|
|
async mounted() {
|
|
@@ -615,6 +643,11 @@
|
|
|
return Math.round(number * 100) / 100;
|
|
return Math.round(number * 100) / 100;
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ formatScore(value) {
|
|
|
|
|
+ const number = this.round2(value);
|
|
|
|
|
+ return Number.isInteger(number) ? String(number) : number.toFixed(2);
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
isScoreItem(item) {
|
|
isScoreItem(item) {
|
|
|
return item.mfz !== null && item.mfz !== undefined;
|
|
return item.mfz !== null && item.mfz !== undefined;
|
|
|
},
|
|
},
|