驳回时增加驳回意见

This commit is contained in:
duxp 2023-10-09 11:07:41 +08:00
parent 81f4313ee2
commit d3bf6e94cd
3 changed files with 43 additions and 4 deletions

View File

@ -14,7 +14,9 @@ Page({
nowScore:'',
remark:''
},
scoreMsg:''
scoreMsg:'',
overruleShow:false,
remark:''
},
/**
@ -121,7 +123,18 @@ Page({
},
//驳回
handleOverrule(){
handleOverruleOpen(){
this.setData({
overruleShow:true
})
},
handleOverruleClose(){
this.setData({
overruleShow:false,
remark:''
})
},
handleOverruleSubmit(){
let _this = this;
wx.showModal({
title: '温馨提示',
@ -129,7 +142,8 @@ Page({
success (res) {
if (res.confirm) {
API.reback({
id:_this.data.fData.id
id:_this.data.fData.id,
remark:_this.data.remark
}).then(res => {
if(res.code === 0){
wx.showToast({

View File

@ -69,7 +69,26 @@
<view class="footer_wrap">审批人:{{fData.reviewer || '暂无'}}</view>
<view class="submit_btn">
<van-button type="info" custom-style="width:40%" bindtap="handleApproval">审批</van-button>
<van-button type="danger" custom-style="width:40%" bindtap="handleOverrule">驳回</van-button>
<van-button type="danger" custom-style="width:40%" bindtap="handleOverruleOpen">驳回</van-button>
</view>
</view>
</view>
<!--驳回意见-->
<van-popup
show="{{ overruleShow }}"
position="bottom"
round
bind:close="handleOverruleClose"
>
<view class="overrule_wrap">
<van-cell-group>
<van-field
model:value="{{ remark }}"
label="驳回意见"
placeholder="请输入驳回意见"
/>
</van-cell-group>
<van-button type="info" custom-style="width:100%;margin-top:2%" bindtap="handleOverruleSubmit">提交</van-button>
</view>
</van-popup>

View File

@ -52,4 +52,10 @@
font-size: 30rpx;
text-align: center;
margin-top: 10px;
}
.overrule_wrap{
width: 96%;
margin: 0 auto;
box-sizing: border-box;
padding: 10px;
}