Commit 5f19522d by 李伟康

fix(common): 更新接待详情页文案及评分显示逻辑

将“未成交”文案修改为“战败”,并优化评分显示逻辑,根据成交状态和分数动态展示等级评分。同时移除调试日志输出。
1 parent 636840c7
...@@ -32,13 +32,13 @@ ...@@ -32,13 +32,13 @@
</view> </view>
<view class="tips flex"> <view class="tips flex">
<view :class="['tips-text',{deal:pageData.orderFinishFlag}]"> <view :class="['tips-text',{deal:pageData.orderFinishFlag}]">
{{pageData.orderFinishFlag? '成交': '未成交'}} {{pageData.orderFinishFlag? '成交': '战败'}}
</view> </view>
<view <view
class="score-box" class="score-box"
v-if="pageData.score != null" v-if="pageData.score != null"
> >
{{pageData.score}}<view class="unit">分</view> {{formatReceptionScore(pageData)}}
</view> </view>
</view> </view>
...@@ -174,7 +174,6 @@ export default { ...@@ -174,7 +174,6 @@ export default {
onLoad () { onLoad () {
let _this = this let _this = this
this.getOpenerEventChannel().on('getData', function (data) { this.getOpenerEventChannel().on('getData', function (data) {
console.log(data)
data.totalDuration = (data.receptionEndTime - data.receptionStartTime) / 1000 data.totalDuration = (data.receptionEndTime - data.receptionStartTime) / 1000
_this.pageData = data || {} _this.pageData = data || {}
if (data.batchId) _this.findCheckResultByBatchId(data.batchId) if (data.batchId) _this.findCheckResultByBatchId(data.batchId)
...@@ -454,6 +453,16 @@ export default { ...@@ -454,6 +453,16 @@ export default {
if (data.isResponding || data.isRecording) { if (data.isResponding || data.isRecording) {
this.disabledText = data.isResponding ? '请等待内容生成后再切换其他质检点' : '请等待录音结束后再切换其他质检点' this.disabledText = data.isResponding ? '请等待内容生成后再切换其他质检点' : '请等待录音结束后再切换其他质检点'
} }
},
formatReceptionScore (pageData) {
const { orderFinishFlag, score } = pageData;
if (score >= 85 && orderFinishFlag) return 'A+';
if (score >= 60 && score < 85 && orderFinishFlag) return 'A';
if (score < 60 && orderFinishFlag) return 'B';
if (score >= 85 && !orderFinishFlag) return 'B+';
if (score >= 60 && score < 85 && !orderFinishFlag) return 'B';
if (score < 60 && !orderFinishFlag) return 'C';
return '-';
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!