gjy 2 năm trước cách đây
mục cha
commit
87bf1b9a08
1 tập tin đã thay đổi với 124 bổ sung13 xóa
  1. 124 13
      pages/task/audit/universalityAudit.vue

+ 124 - 13
pages/task/audit/universalityAudit.vue

@@ -1,5 +1,23 @@
 <template>
-	<view style='margin-bottom:180rpx;'>
+	<view :style='{"margin-bottom":dataobj.taskId?"280rpx":"180rpx"}'>
+		<view class="topInfo">
+			<view class="topInfo-item">
+				<view class="flex info">
+					<view class="logo">
+						<image src="../../../static/img/reject.png" mode="" v-if="dataobj.status == '已驳回'"
+							style="height: 40rpx;"></image><!-- 驳回 -->
+						<image src="../../../static/img/tongguo.png" mode="" v-if="dataobj.status == '已通过'"
+							style="height: 40rpx;"></image><!-- 通过 -->
+						<!-- v-if="status == '审核中' || status == '待决策人审核'" -->
+						<image src="../../../static/img/daishenhe.png" mode="" style="height: 40rpx;"></image>
+						<!-- 待审核 -->
+					</view>
+					<!-- {{auditList.length > 0 ?auditList[auditList.length - 1].operatorMajorRoleName:""}} -->
+					<view class="infoText">{{dataobj.approveStatus?dataobj.approveStatus:dataobj.status}}</view>
+				</view>
+				<view class="infoData">{{dataobj.updateDate}}</view>
+			</view>
+		</view>
 		<view>
 			<u-form :model="dataobj" ref="uForm">
 				<u-form-item label="类型"><view style='text-align:right;width:100%;color:#AFB3BF;'>{{dataobj.businessType}}</view></u-form-item>
@@ -185,7 +203,7 @@
 						confirmText: '确定',
 						success: function(res) {
 							if (res.confirm) {
-								that.audit(that.list[0], 0, false, true, that.auditMind)
+								that.audit(that.dataobj, 0, false, true, that.auditMind)
 							}
 						}
 					})
@@ -205,7 +223,7 @@
 						confirmText: '确定',
 						success: function(res) {
 							if (res.confirm) {
-								that.audit(that.list[0], 0, true, 2, that.auditMind)
+								that.audit(that.dataobj, 0, true, 2, that.auditMind)
 							}
 						}
 					})
@@ -217,7 +235,6 @@
 					title: "审核中"
 				})
 				let that = this
-				if (this.list) {
 					this.$api.doRequest('post', '/newWorkflow/api/handle', {
 						taskId: list.taskId,
 						approved: status,
@@ -230,18 +247,17 @@
 							this.$api.msg('驳回成功')
 						}
 						setTimeout(function() {
-							if (that.everyCheck) {
-								helper.setAudit(that.list[0])
-							} else {
-								uni.navigateBack()
-							}
+
+															uni.navigateBack()
 						}, 1000);
 					})
-				}
 			},
 			fanHui() {
 				uni.navigateBack()
 			},
+			close() {
+				this.show = false
+			},
 			getList(){
 				var that =this
 				this.$api.doRequest('get', '/generalAuditInfo/getGeneralAuditInfo', {
@@ -375,11 +391,11 @@
 								}
 							}
 							this.auditList = response.data.data
-							var time2 = new Date(this.list.createDate).getTime()
+							var time2 = new Date(this.dataobj.createDate).getTime()
 							var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
 							this.auditList.unshift({
-								operatorTitle: this.list.creater.substring(0, 2),
-								operatorName: this.list.creater,
+								operatorTitle: this.dataobj.creater.substring(0, 2),
+								operatorName: this.dataobj.creater,
 								updateDate: time3,
 								auditMind: '',
 								desc: '发起申请',
@@ -642,4 +658,99 @@
 			text-align: right;
 		}
 	}
+	.shade {
+		position: fixed;
+		top: 0;
+		left: 0;
+		height: 100%;
+		width: 100%;
+		background: rgba(0, 0, 0, 0.4);
+		z-index: 3;
+	
+		.wrap {
+			position: absolute;
+			left: 0;
+			top: 0;
+			right: 0;
+			bottom: 0;
+			margin: auto;
+			background: #fff;
+			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;
+			}
+		}
+	}
+	
+	.cancel,
+	.confirm {
+		position: absolute;
+		display: inline-block;
+		width: 50%;
+		text-align: center;
+		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;
+		color: #22C572;
+	}
+	.topInfo {
+		height: 210rpx;
+		background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
+		padding: 30rpx;
+	
+		.topInfo-item {
+			height: 150rpx;
+			background-color: #FFFFFF;
+			border-radius: 20rpx;
+			padding: 40rpx;
+	
+			.logo {
+				width: 40rpx;
+				height: 40rpx;
+				margin-top: 8rpx;
+			}
+	
+			.infoText {
+				font-size: 36rpx;
+				font-weight: 600;
+				margin-left: 20rpx;
+			}
+	
+			.infoData {
+				color: #878C9C;
+				font-size: 26rpx;
+				margin-top: 10rpx;
+			}
+		}
+	}
+	
 </style>