zhengkaixin 4 năm trước cách đây
mục cha
commit
ab0f1d53f3

+ 13 - 10
src/projects/business/views/Master/Attendance/VerifyLeaveInfo.vue

@@ -63,7 +63,7 @@
                     <div class="vongi-slot-img"><img :src="item.faceImageUrl"></div>
                     <div class="vongi-slot-content">
                         <h4>审批人{{index+1}}<span class="mui-pull-right mui-h5 color999" v-text="item.time"></span></h4>
-                        <p>{{item.name}} <span class="color55f868" :style="getColor(item.status)" v-text="item.statusN"></span><span v-if="item.status=='2'" class="color55f868" :style="getColor(item.status)" v-text="'('+detail.approvalExplain+')'"></span></p>
+                        <p>{{item.name}} <span class="color55f868" :style="getColor(item.status)" v-text="item.statusN"></span><span v-if="item.status!=0&&item.approvalContent!='同意'&&item.approvalContent!='拒绝'" class="color55f868" :style="getColor(item.status)" v-text="'('+item.approvalContent+')'"></span></p>
 
 					</div>
                 </div>
@@ -177,12 +177,14 @@
 				} else {
 					this.subForm.status = status;
 					this.subForm.approvalExplain = val;
-					if('2'==status){
-                        this.openFromVisible = true;
-					}
-                    if('1'==status){
-                        this.doAction();
-                    }
+                    this.openFromVisible = true;
+
+                    // if('2'==status){
+                    //     this.openFromVisible = true;
+                    // }
+                    // if('1'==status){
+                    //     this.doAction();
+                    // }
 					//直接点击处理,不需要弹窗理由框
 					//
 				}
@@ -192,11 +194,12 @@
 				console.log(this.selectIndex)
 				if (this.checkForm()) {
 					this.isLoading = true;
-					this.subForm.id = this.selectIndex.toString();
-					API_Leave.approved(this.subForm).then(response => {
+					this.subForm.id = this.selectIndex.toString()
+                    this.openFromVisible = false;
+
+                    API_Leave.approved(this.subForm).then(response => {
 						this.isLoading = false;
 
-						this.openFromVisible = false;
 						this.getDetail();
 					}).catch(error => {
 						this.isLoading = false;

+ 3 - 4
src/projects/business/views/Master/Attendance/VerifyLeaveList.vue

@@ -153,10 +153,9 @@
 				if (this.checkForm()) {
 					this.isLoading = true;
 					this.subForm.id = this.selectIndex.toString();
+                    this.openFromVisible = false;
 					API_Leave.approved(this.subForm).then(response => {
 						this.isLoading = false;
-
-						this.openFromVisible = false;
 						this.listForm.pageIndex = 1;
 						this.getList();
 					}).catch(error => {
@@ -199,9 +198,9 @@
 				} else {
 					this.subForm.status = status;
 					this.subForm.approvalExplain = val;
-					//this.openFromVisible = true;
+					this.openFromVisible = true;
 					//直接点击处理,不需要弹窗理由框
-					this.doAction();
+					//this.doAction();
 				}
 			},
 			//info