Commit 8084b019 by zhangxw

bug修复

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