|
|
@@ -62,6 +62,18 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
+ <!-- 额外工作总结 -->
|
|
|
+ <view class="info-section" v-if="detailData.orderType == 1 && detailData.extraWork != null && detailData.extraWork != ''">
|
|
|
+ <view class="section-title">
|
|
|
+ <text class="section-title-text">额外工作总结</text>
|
|
|
+ </view>
|
|
|
+ <view class="info-card">
|
|
|
+ <view class="summary-content">
|
|
|
+ <text class="summary-text">{{ detailData.extraWork ?? '' }}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
<!-- 得分明细 -->
|
|
|
<view class="info-section">
|
|
|
<view class="section-title">
|
|
|
@@ -74,6 +86,8 @@
|
|
|
<text class="table-cell score-col">自评得分</text>
|
|
|
<text class="table-cell score-col">复评得分</text>
|
|
|
<text class="table-cell score-col">终评得分</text>
|
|
|
+ <text class="table-cell score-col" v-if="detailData.orderType == 1 && detailData.extraWork != null && detailData.extraWork != ''">额外工分</text>
|
|
|
+ <text class="table-cell score-col" v-if="detailData.orderType == 1 && detailData.extraWork != null && detailData.extraWork != ''">总分</text>
|
|
|
<!-- <text class="table-cell score-col">确认状态</text> -->
|
|
|
</view>
|
|
|
|
|
|
@@ -86,6 +100,8 @@
|
|
|
<text class="table-cell score-col">{{ person.selfScore !== null ? formatNumber(person.selfScore) : '-' }}</text>
|
|
|
<text class="table-cell score-col">{{ person.reviewScore !== null ? formatNumber(person.reviewScore) : '-' }}</text>
|
|
|
<text class="table-cell score-col">{{ person.finalScore !== null ? formatNumber(person.finalScore) : '-' }}</text>
|
|
|
+ <text class="table-cell score-col" v-if="detailData.orderType == 1 && detailData.extraWork != null && detailData.extraWork != ''">{{ person.extraScore !== null ? formatNumber(person.extraScore) : '-' }}</text>
|
|
|
+ <text class="table-cell score-col" v-if="detailData.orderType == 1 && detailData.extraWork != null && detailData.extraWork != ''">{{ person.totalScore !== null ? formatNumber(person.totalScore) : '-' }}</text>
|
|
|
<!-- <text class="table-cell score-col">{{ person.confirmStatus !== null ? getConfirmStatusText(person.confirmStatus) : '-' }}</text> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -113,6 +129,8 @@
|
|
|
finalScore: number | null
|
|
|
confirmStatus: number | null
|
|
|
isLeader: number | null
|
|
|
+ extraScore: number | null
|
|
|
+ totalScore: number | null
|
|
|
}
|
|
|
|
|
|
// 详情数据
|
|
|
@@ -130,7 +148,8 @@
|
|
|
inspectionType: string | null
|
|
|
itemCompletionFactor: number | null
|
|
|
itemCompletionFactorSum: number | null
|
|
|
- scorePersonList: ScorePersonItem[]
|
|
|
+ extraWork: string | null
|
|
|
+ scorePersonList: ScorePersonItem[]
|
|
|
}
|
|
|
|
|
|
const detailData = reactive<DetailDataType>({
|
|
|
@@ -147,6 +166,7 @@
|
|
|
inspectionType: null,
|
|
|
itemCompletionFactor: null,
|
|
|
itemCompletionFactorSum: null,
|
|
|
+ extraWork: null,
|
|
|
scorePersonList: []
|
|
|
})
|
|
|
|
|
|
@@ -357,6 +377,10 @@
|
|
|
detailData.itemCompletionFactorSum = itemCompletionFactorSumValue != null ?
|
|
|
(itemCompletionFactorSumValue as number) : null
|
|
|
|
|
|
+ // 根据工单类型设置总结内容
|
|
|
+ detailData.extraWork = (detailData.orderType == 1 ?
|
|
|
+ data.get('extraWork') :
|
|
|
+ null) as string | null
|
|
|
// 人员得分列表
|
|
|
const scorePersonList = (detailData.orderType == 1 ?
|
|
|
data.get('repairOrderPersonList') :
|
|
|
@@ -371,6 +395,8 @@
|
|
|
selfScore: (person.get('selfScore') != null ? person.get('selfScore') as number : null),
|
|
|
reviewScore: (person.get('reviewScore') != null ? person.get('reviewScore') as number : null),
|
|
|
finalScore: (person.get('finalScore') != null ? person.get('finalScore') as number : null),
|
|
|
+ extraScore: (person.get('extraScore') != null ? person.get('extraScore') as number : null),
|
|
|
+ totalScore: (person.get('totalScore') != null ? person.get('totalScore') 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)
|
|
|
}
|