|
|
@@ -136,6 +136,7 @@
|
|
|
<text class="table-cell score-col" v-if="detailData.orderType == 2 && hasOtherOrQitaInspectionType()">工单得分</text>
|
|
|
<!-- 如果是重启时间不为空且不为undefined,则显示奖励得分列 -->
|
|
|
<text class="table-cell score-col" v-if="detailData.restartTime !== null">奖励得分</text>
|
|
|
+ <text class="table-cell score-col" v-if="hasStopScore()">停运扣分</text>
|
|
|
<!-- <text class="table-cell score-col">确认状态</text> -->
|
|
|
</view>
|
|
|
|
|
|
@@ -154,6 +155,8 @@
|
|
|
<text class="table-cell score-col" v-if="detailData.orderType == 2 && hasOtherOrQitaInspectionType()">{{ person.totalScore !== null ? formatNumber(person.totalScore) : '-' }}</text>
|
|
|
<!-- 显示奖励得分 -->
|
|
|
<text class="table-cell score-col" v-if="detailData.restartTime !== null">{{ person.runScore !== null ? formatNumber(person.runScore) : '-' }}</text>
|
|
|
+ <!-- 显示扣分-->
|
|
|
+ <text class="table-cell score-col" v-if="hasStopScore()">{{ person.stopScore !== null ? formatNumber(person.stopScore) : '-' }}</text>
|
|
|
<!-- <text class="table-cell score-col">{{ person.confirmStatus !== null ? getConfirmStatusText(person.confirmStatus) : '-' }}</text> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -184,6 +187,7 @@
|
|
|
extraScore: number | null
|
|
|
totalScore: number | null
|
|
|
runScore: number | null // 添加奖励得分字段
|
|
|
+ stopScore: number | null
|
|
|
}
|
|
|
|
|
|
// 详情数据
|
|
|
@@ -444,6 +448,16 @@
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ /** 检查是否存在停运扣分 */
|
|
|
+ const hasStopScore = (): boolean => {
|
|
|
+ // 检查当前查看的工单是否存在停运扣分
|
|
|
+ if (detailData.scorePersonList != null) {
|
|
|
+ return detailData.scorePersonList.some(person =>
|
|
|
+ person.stopScore !== null
|
|
|
+ );
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
// 加载详情数据
|
|
|
const loadDetail = async (id: string, orderType: string): Promise<void> => {
|
|
|
try {
|
|
|
@@ -518,6 +532,7 @@
|
|
|
totalScore: (person.get('totalScore') != null ? person.get('totalScore') as number : null),
|
|
|
// 添加奖励得分字段
|
|
|
runScore: (person.get('runScore') != null ? person.get('runScore') as number : null),
|
|
|
+ stopScore: (person.get('stopScore') != null ? person.get('stopScore') as number : null),
|
|
|
confirmStatus: (person.get('confirmStatus') != null ? person.get('confirmStatus') as number : null),
|
|
|
isLeader: (person.get('isLeader') != null ? person.get('isLeader') as number : null)
|
|
|
}
|