|
@@ -137,47 +137,31 @@
|
|
|
</u-form-item>
|
|
|
</u-form>
|
|
|
<view style='padding:10px;' class='flex bottom-btn'>
|
|
|
- <u-button v-if='list.approveStatus||isSHowBtn' @click='show1 = true' type="error" class="btn1"
|
|
|
- hover-class='none'>驳回
|
|
|
+ <u-button v-if='list.approveStatus||isSHowBtn' @click='reject' type="error" class="btn1" hover-class='none'>
|
|
|
+ 驳回
|
|
|
</u-button>
|
|
|
- <u-button v-if='list.approveStatus||isSHowBtn' @click='show2 = true' type="success" class="btn2">通过
|
|
|
+ <u-button v-if='list.approveStatus||isSHowBtn' @click='pass' type="success" class="btn2">通过
|
|
|
</u-button>
|
|
|
</view>
|
|
|
- <!-- <view v-if='show' class="shade">
|
|
|
+ <view v-if='show' class="shade">
|
|
|
<view class="wrap">
|
|
|
- <view style='border-bottom:1px solid #eee;padding:10px;display:flex;justify-content:space-between;'>
|
|
|
- {{title}}
|
|
|
- <u-icon name="close"></u-icon>
|
|
|
+ <view class="alert-top">
|
|
|
+ <view class="title">
|
|
|
+ {{title}}
|
|
|
+ </view>
|
|
|
+ <u-icon name="close" class="close" color="#8890B1" @click="close()"></u-icon>
|
|
|
</view>
|
|
|
- <view style='padding:10px;'>
|
|
|
- <input v-model='auditMind' placeholder="请输入审核意见,不超过100字" type="text" value="" />
|
|
|
+ <view class="u-textarea-style">
|
|
|
+ <view class="right-bottom">
|
|
|
+ {{auditMind.length}}/100个字
|
|
|
+ </view>
|
|
|
+ <u-input class="" v-model='auditMind' placeholder="请在此输入审核意见" type="textarea" height="414"
|
|
|
+ maxlength="100" />
|
|
|
</view>
|
|
|
- <view @click='passSubmit()' class="cancel">取消</view>
|
|
|
+ <view @click='close()' class="cancel">取消</view>
|
|
|
<view @click='passSubmit()' class="confirm">确定</view>
|
|
|
</view>
|
|
|
- </view> -->
|
|
|
- <u-popup v-model="show1" mode="center">
|
|
|
- <view style="width: 300px;padding: 30rpx 10rpx;border-radius: 20rpx;">
|
|
|
- <view class="rejectText">审核意见(驳回)</view>
|
|
|
- <u-input v-model="rejectInfo" type="textarea" :border="border" :height="height"
|
|
|
- :auto-height="autoHeight" class="rejectInfoCss" placeholder="请输入审核意见" />
|
|
|
- <view class="flex">
|
|
|
- <u-button @click="show1 = false" type="error" hover-class='none'>取消</u-button>
|
|
|
- <u-button @click="rejectSubmit()" type="success">确定</u-button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </u-popup>
|
|
|
- <u-popup v-model="show2" mode="center">
|
|
|
- <view style="width: 300px;padding: 30rpx 10rpx;border-radius: 20rpx;">
|
|
|
- <view class="rejectText">审核意见(通过)</view>
|
|
|
- <u-input v-model="rejectInfo1" type="textarea" :border="border" :height="height"
|
|
|
- :auto-height="autoHeight" class="rejectInfoCss" placeholder="请输入审核意见" />
|
|
|
- <view class="flex">
|
|
|
- <u-button @click="show2 = false" type="error" hover-class='none'>取消</u-button>
|
|
|
- <u-button @click="passSubmit()" type="success">确定</u-button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </u-popup>
|
|
|
+ </view>
|
|
|
|
|
|
<view @click='imgShow=false' v-if="imgShow" class="shade">
|
|
|
<image style='position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;' :src="url" mode=""></image>
|
|
@@ -204,11 +188,9 @@
|
|
|
contractProcessInfo: {}
|
|
|
},
|
|
|
imglist: [],
|
|
|
+ title: '',
|
|
|
auditMind: '',
|
|
|
show: false,
|
|
|
- show1: false,
|
|
|
- show2: false,
|
|
|
- title: '',
|
|
|
contractNo: "",
|
|
|
action: this.$uploadUrl,
|
|
|
maxSize: 50 * 1024 * 1024, //限制文件大小 50M
|
|
@@ -280,6 +262,17 @@
|
|
|
this.isAdd = false;
|
|
|
}
|
|
|
},
|
|
|
+ close() {
|
|
|
+ this.show = false
|
|
|
+ },
|
|
|
+ pass() {
|
|
|
+ this.show = true
|
|
|
+ this.title = '审核意见(通过)'
|
|
|
+ },
|
|
|
+ reject() {
|
|
|
+ this.show = true
|
|
|
+ this.title = '驳回原因(驳回)'
|
|
|
+ },
|
|
|
//驳回
|
|
|
rejectSubmit() {
|
|
|
var that = this
|
|
@@ -317,27 +310,34 @@
|
|
|
//通过
|
|
|
passSubmit() {
|
|
|
var that = this
|
|
|
- uni.showLoading({
|
|
|
- title: '加载中',
|
|
|
- mask: true
|
|
|
- });
|
|
|
- that.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
- taskId: that.list.taskId,
|
|
|
- approved: true,
|
|
|
- auditMind: this.rejectInfo1,
|
|
|
- needReapply: true,
|
|
|
- }).then(res => {
|
|
|
- that.$api.msg('通过成功')
|
|
|
- that.show = false
|
|
|
- setTimeout(function() {
|
|
|
- if (that.everyCheck) {
|
|
|
- helper.setAudit(that.list)
|
|
|
- } else {
|
|
|
- uni.navigateBack()
|
|
|
- }
|
|
|
- uni.hideLoading()
|
|
|
- }, 1000);
|
|
|
- })
|
|
|
+ if (this.title == '驳回原因(驳回)') {
|
|
|
+ this.rejectSubmit()
|
|
|
+ } else {
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中',
|
|
|
+ mask: true
|
|
|
+ });
|
|
|
+ that.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
+ taskId: that.list.taskId,
|
|
|
+ approved: true,
|
|
|
+ auditMind: this.rejectInfo1,
|
|
|
+ needReapply: true,
|
|
|
+ }).then(res => {
|
|
|
+ that.$api.msg('通过成功')
|
|
|
+ that.show = false
|
|
|
+ setTimeout(function() {
|
|
|
+ if (that.everyCheck) {
|
|
|
+ helper.setAudit(that.list)
|
|
|
+ } else {
|
|
|
+ uni.navigateBack()
|
|
|
+ }
|
|
|
+ uni.hideLoading()
|
|
|
+ }, 1000);
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
//审核方法
|
|
|
audit(item, index, status, status2, reason) {
|
|
@@ -501,7 +501,7 @@
|
|
|
left: 0;
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
- background: rgba(0, 0, 0, 0.1);
|
|
|
+ background: rgba(0, 0, 0, 0.4);
|
|
|
z-index: 3;
|
|
|
|
|
|
.wrap {
|
|
@@ -512,8 +512,28 @@
|
|
|
bottom: 0;
|
|
|
margin: auto;
|
|
|
background: #fff;
|
|
|
- width: 80%;
|
|
|
- height: 30%;
|
|
|
+ width: calc(100% - 198rpx);
|
|
|
+ height: 700rpx;
|
|
|
+ border-radius: 20rpx;
|
|
|
+
|
|
|
+ .alert-top {
|
|
|
+ padding: 33rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+
|
|
|
+ .title {
|
|
|
+ font-size: 32rpx;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+
|
|
|
+ .close {
|
|
|
+ position: absolute;
|
|
|
+ right: 33rpx;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -526,31 +546,18 @@
|
|
|
bottom: 0;
|
|
|
padding: 10px;
|
|
|
border-top: 1px solid #eee;
|
|
|
+ font-size: 34rpx;
|
|
|
}
|
|
|
|
|
|
.cancel {
|
|
|
left: 0;
|
|
|
border-right: 1px solid #eee;
|
|
|
+ color: #AFB3BF;
|
|
|
}
|
|
|
|
|
|
.confirm {
|
|
|
right: 0;
|
|
|
- }
|
|
|
-
|
|
|
- .textCss {
|
|
|
- display: flex;
|
|
|
- justify-content: flex-end;
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
-
|
|
|
- .shade {
|
|
|
- background: #000;
|
|
|
- position: fixed;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- z-index: 10000;
|
|
|
+ color: #22C572;
|
|
|
}
|
|
|
|
|
|
.textarea {
|