Commit 8084b019 by zhangxw

bug修复

1 parent 65e1251b
<!--packageWorkspace/pages/orderApprovalManage/components/approvalPopup/approvalPopup.wxml-->
<popup show="{{show}}" title="{{infoData.title}}" height="65%" bind:confirm="onConfirm" bind:cancel="onCancel" customPopupSlotStyle="overflow:auto;">
<view class="container">
<popup show="{{show}}" title="{{infoData.title}}" height="68%" bind:confirm="onConfirm" bind:cancel="onCancel" customPopupSlotStyle="overflow:auto;">
<scroll-view class="container">
<view class="label">{{infoData.label}}<text class="requiredLabel" wx:if="{{infoData.type == 2}}">*</text></view>
<view class="textarea-wrap">
<textarea class="textarea-input" placeholder-style="color:#BEC1C7" placeholder="请输入" maxlength="200" value="{{remark}}" bindinput="textAreaInput" />
<view class="counter">{{contentLength}}/200</view>
</view>
<view wx:if="{{infoData.type == 1}}" class="tips">审核通过后将自动流转至线上运营审核</view>
</view>
</scroll-view>
</popup>
\ No newline at end of file
......@@ -219,7 +219,7 @@ Page({
['info.manualRewardCoefficient']: obj.rewardCoefficient
})
// 未输入手动维护绩效金额 根据评分等级系数计算绩效工资
if (!info.manualFinalPerformanceAmount) {
if (((info.manualFinalPerformanceAmount ?? '') === '')) {
const performanceSalary = NP.round(NP.times(NP.times(info.afterAttendanceTotalBasicSalary, 0.3), obj.rewardCoefficient), 2)
this.setData({
'info.performanceSalary': performanceSalary,
......@@ -286,7 +286,8 @@ Page({
let { isT1DateRange, info } = this.data
if (isT1DateRange || info.submitCount >= 2 || !((info.totalGrossSalary ?? '') === '')) return
this.setData({
'info.adoptType': value
'info.adoptType': value,
'info.manualFinalPerformanceAmount': ''
})
if (value == 1) {
const computedValue = NP.round(NP.times(NP.times(info.afterAttendanceTotalBasicSalary, 0.3), info.autoRewardCoefficient), 2)
......@@ -294,7 +295,15 @@ Page({
'info.performanceSalary': computedValue,
'info.basicSalary': NP.plus(computedValue, info.baseSalary)
})
}
} else {
if (info.manualGradeCode) {
const performanceSalary = NP.round(NP.times(NP.times(info.afterAttendanceTotalBasicSalary, 0.3), info.manualRewardCoefficient), 2)
this.setData({
'info.performanceSalary': performanceSalary,
'info.basicSalary': NP.plus(performanceSalary, info.baseSalary)
})
}
}
},
// 提交
......
......@@ -78,7 +78,7 @@
<view class="input-content flex">
<view>手动维护最终绩效金额</view>
<image src="{{IMG_URL}}caption-icon.png" class="help-icon" bindtap="handleHelpPopup" mode=""/>
<view class="input-box flex {{isT1DateRange || info.submitCount >= 2 ? 'disabled' : ''}}">
<view class="input-box flex {{isT1DateRange || info.submitCount >= 2 || info.totalGrossSalary != null ? 'disabled' : ''}}">
<input class="input" disabled="{{isT1DateRange || info.submitCount >= 2 || info.totalGrossSalary != null}}" placeholder="请输入" value="{{info.manualFinalPerformanceAmount}}" placeholder-style="color: #999EA8;font-weight: 400;" bindinput="priceInput" type="digit"/>
<view>元</view>
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!