|
|
@@ -108,18 +108,8 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="工作负责人" align="center" prop="teamLeaderName" />
|
|
|
-<!-- <el-table-column label="评分阶段" align="center" prop="scoreStage" >
|
|
|
- <template #default="scope">
|
|
|
- <dict-tag :options="scoreStageOptions" :value="scope.row.scoreStage" />
|
|
|
- </template>
|
|
|
- </el-table-column>-->
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template #default="scope">
|
|
|
- <el-button
|
|
|
- type="info"
|
|
|
- link
|
|
|
- @click="handleView(scope.row)"
|
|
|
- ><i class="fa fa-eye"></i>查看</el-button>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
link
|
|
|
@@ -148,6 +138,11 @@
|
|
|
@click="handleFinalEvaluation(scope.row)"
|
|
|
v-hasPermi="['gxt:orderScore:finalEvaluation']"
|
|
|
><i class="fa fa-flag-checkered"></i>终评</el-button>
|
|
|
+ <el-button
|
|
|
+ type="info"
|
|
|
+ link
|
|
|
+ @click="handleView(scope.row)"
|
|
|
+ ><i class="fa fa-eye"></i>查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -185,7 +180,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="评分阶段">
|
|
|
+ <el-form-item label="状态">
|
|
|
<dict-tag :options="gxt_scoring_status" :value="viewForm.scoringStatus" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -733,25 +728,6 @@ const { gxt_maintenance_type, gxt_work_order_status, gxt_order_priority_type,gxt
|
|
|
|
|
|
const userStore = useUserStore();
|
|
|
|
|
|
-// 工单类型选项
|
|
|
-const orderTypeOptions = ref([
|
|
|
- { value: "1", label: "维修工单" },
|
|
|
- { value: "2", label: "维保工单" }
|
|
|
-]);
|
|
|
-
|
|
|
-// 评分阶段选项
|
|
|
-const scoreStageOptions = ref([
|
|
|
- { value: 1, label: "自评" },
|
|
|
- { value: 2, label: "复评" },
|
|
|
- { value: 3, label: "终评" }
|
|
|
-]);
|
|
|
-
|
|
|
-// 是否负责人选项
|
|
|
-const isLeaderOptions = ref([
|
|
|
- { value: 0, label: "否" },
|
|
|
- { value: 1, label: "是" }
|
|
|
-]);
|
|
|
-
|
|
|
// 数据列表相关
|
|
|
const orderScoreList = ref([]);
|
|
|
const loading = ref(true);
|
|
|
@@ -1098,10 +1074,6 @@ function calculateRepairScores() {
|
|
|
|
|
|
/** 计算维保工单人员得分 */
|
|
|
function calculateMaintenanceScores() {
|
|
|
- // 这里需要根据维保项目和分项完成系数来计算得分
|
|
|
- // 由于缺少具体的计算逻辑和数据接口,暂时使用模拟数据
|
|
|
- // 实际应该根据机型和维保类型组合查询对应得分
|
|
|
-
|
|
|
const personCount = selfEvaluationForm.value.scorePersonList.length;
|
|
|
if (personCount === 0) return;
|
|
|
|
|
|
@@ -1164,11 +1136,7 @@ function submitSelfEvaluation() {
|
|
|
|
|
|
// 如果得分验证不通过,提示用户
|
|
|
if (!scoreValid) {
|
|
|
- if (emptyScorePerson) {
|
|
|
- proxy.$modal.msgError(`自评分数不能为空`);
|
|
|
- } else {
|
|
|
- proxy.$modal.msgError("自评分数不能为空");
|
|
|
- }
|
|
|
+ proxy.$modal.msgError("自评分数不能为空");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -1643,7 +1611,7 @@ function getMaintenanceTypeList() {
|
|
|
maintenanceTypeOptions.value = response.rows.map(item => {
|
|
|
return {
|
|
|
value: item.maintenanceType,
|
|
|
- label: item.maintenanceType + '类(' + item.scorePerCompletion + '分)'
|
|
|
+ label: item.projectName + '(' + item.scorePerCompletion + '分)'
|
|
|
};
|
|
|
});
|
|
|
});
|