Commit f0bf8592 by zhangxw

绩效评分系数展示修改

1 parent 124ab056
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<text>评分:</text> <text>评分:</text>
<text>{{batchInfo.manualScoreSymbolValue || 0}}分</text> <text>{{batchInfo.manualScoreSymbolValue || 0}}分</text>
<text class="mar-l32">系数:</text> <text class="mar-l32">系数:</text>
<text>{{batchInfo.manualRewardCoefficient || '0.0'}}</text> <text>{{batchInfo.manualRewardCoefficient || '0'}}</text>
</view> </view>
</view> </view>
<view class="input-content flex"> <view class="input-content flex">
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
<text>评分:</text> <text>评分:</text>
<text>{{item.manualScoreSymbolValue || 0}}分</text> <text>{{item.manualScoreSymbolValue || 0}}分</text>
<text class="mar-l32">系数:</text> <text class="mar-l32">系数:</text>
<text>{{item.manualRewardCoefficient || '0.0'}}</text> <text>{{item.manualRewardCoefficient || '0'}}</text>
</view> </view>
</view> </view>
<view class="input-content flex"> <view class="input-content flex">
......
...@@ -58,7 +58,7 @@ Page({ ...@@ -58,7 +58,7 @@ Page({
}, },
performanceInfo: { performanceInfo: {
levelCode: data?.adoptType == 1 ? data?.autoGradeCode : data?.adoptType == 2 ? data?.manualGradeCode : '', levelCode: data?.adoptType == 1 ? data?.autoGradeCode : data?.adoptType == 2 ? data?.manualGradeCode : '',
rewardCoefficient: data?.adoptType == 1 ? data?.autoRewardCoefficient?.toFixed(1) : data?.adoptType == 2 ? data?.manualRewardCoefficient?.toFixed(1) : '', rewardCoefficient: data?.adoptType == 1 ? `${data?.autoRewardCoefficient}` : data?.adoptType == 2 ? `${data?.manualRewardCoefficient}` : '',
scoreSymbolValue: data?.adoptType == 1 ? data?.autoScoreSymbolValue : data?.adoptType == 2 ? data?.manualScoreSymbolValue : '' scoreSymbolValue: data?.adoptType == 1 ? data?.autoScoreSymbolValue : data?.adoptType == 2 ? data?.manualScoreSymbolValue : ''
} }
}) })
......
...@@ -102,7 +102,7 @@ Page({ ...@@ -102,7 +102,7 @@ Page({
api.autoDetectResult({queryMonth: pageQuery.queryMonth, mobilePhone}).then(res => { api.autoDetectResult({queryMonth: pageQuery.queryMonth, mobilePhone}).then(res => {
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
data.autoRewardCoefficient = !((data.autoRewardCoefficient ?? '') === '') ? data?.autoRewardCoefficient?.toFixed(1) : '' data.autoRewardCoefficient = !((data.autoRewardCoefficient ?? '') === '') ? `${data?.autoRewardCoefficient}` : ''
this.setData({ this.setData({
resultInfo: data || {} resultInfo: data || {}
}) })
...@@ -141,7 +141,7 @@ Page({ ...@@ -141,7 +141,7 @@ Page({
}, },
autoInfo: { autoInfo: {
levelCode: data?.autoGradeCode, levelCode: data?.autoGradeCode,
rewardCoefficient: !((data?.autoRewardCoefficient ?? '') === '') ? data?.autoRewardCoefficient.toFixed(1) : '', rewardCoefficient: !((data?.autoRewardCoefficient ?? '') === '') ? `${data?.autoRewardCoefficient}` : '',
scoreSymbolValue: data?.autoScoreSymbolValue scoreSymbolValue: data?.autoScoreSymbolValue
} }
}) })
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<view class="radio-item flex" bindtap="changeRadio" data-value="2"> <view class="radio-item flex" bindtap="changeRadio" data-value="2">
<image wx:if="{{info.adoptType == 2}}" src="{{IMG_URL}}{{isT1DateRange || info.submitCount >= 2 ? 'radio-disabled' : 'radio-checked'}}.png" mode=""/> <image wx:if="{{info.adoptType == 2}}" src="{{IMG_URL}}{{isT1DateRange || info.submitCount >= 2 ? 'radio-disabled' : 'radio-checked'}}.png" mode=""/>
<view wx:else class="radio {{isT1DateRange || info.submitCount >= 2 || info.totalGrossSalary != null ? 'disabled' : ''}}"></view> <view wx:else class="radio {{isT1DateRange || info.submitCount >= 2 || info.totalGrossSalary != null ? 'disabled' : ''}}"></view>
<view class="label">手动自动设置</view> <view class="label">手动设置评分</view>
</view> </view>
<block wx:if="{{info.adoptType == 2}}"> <block wx:if="{{info.adoptType == 2}}">
<view class="manual-box"> <view class="manual-box">
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<text>评分:</text> <text>评分:</text>
<text>{{info.manualScoreSymbolValue || 0}}分</text> <text>{{info.manualScoreSymbolValue || 0}}分</text>
<text class="mar-l32">系数:</text> <text class="mar-l32">系数:</text>
<text>{{info.manualRewardCoefficient || '0.0'}}</text> <text>{{info.manualRewardCoefficient || '0'}}</text>
</view> </view>
</view> </view>
</block> </block>
......
...@@ -117,7 +117,7 @@ Page({ ...@@ -117,7 +117,7 @@ Page({
if (code == 0) { if (code == 0) {
data?.forEach(val => { data?.forEach(val => {
val.performanceLevel = val.manualGradeCode || val.autoGradeCode || '', val.performanceLevel = val.manualGradeCode || val.autoGradeCode || '',
val.coefficient = val.manualRewardCoefficient?.toFixed(1) || val.autoRewardCoefficient?.toFixed(1) || '', val.coefficient = val.manualRewardCoefficient || `${val.autoRewardCoefficient}` || '',
val.symbolValue = val.manualScoreSymbolValue?.replace('=', '') || val.autoScoreSymbolValue?.replace('=', '') || '' val.symbolValue = val.manualScoreSymbolValue?.replace('=', '') || val.autoScoreSymbolValue?.replace('=', '') || ''
}) })
if (data?.length) { if (data?.length) {
...@@ -197,7 +197,7 @@ Page({ ...@@ -197,7 +197,7 @@ Page({
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
data?.performanceLevelDetailDTOS?.forEach(val => { data?.performanceLevelDetailDTOS?.forEach(val => {
val.rewardCoefficient = !((val.rewardCoefficient ?? '') === '') ? val.rewardCoefficient.toFixed(1) : '' val.rewardCoefficient = !((val.rewardCoefficient ?? '') === '') ? val.rewardCoefficient : ''
}) })
this.setData({ this.setData({
rulesData: data || {} rulesData: data || {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!