Ver código fonte

必填与绿码更新

wgl 4 anos atrás
pai
commit
a583e96a4e

+ 6 - 2
src/projects/business/views/Common/Health/Cert.vue

@@ -2,7 +2,7 @@
 	<div>
 		<common @asynCallBack="asynCallBack"></common>
 		<top-header :pageTitle="pageTitle" :rightLink="rightLink" :doRightLink="doRightLink" :headerStyle="'background-color:'+statusTitleColor"></top-header>
-		<green-code ref="greenCode" :personId="subForm.personId"></green-code>
+		<green-code ref="greenCode" :personId="subForm.personId" @updateIdCardAsynCallBack="updateIdCardAsynCallBack"></green-code>
 
 		<div class="mui-content vongi-jkz-content">
 			<div class="vongi-jkz-content mui-content-padded mui-clearfix">
@@ -363,6 +363,10 @@
 					query: {}
 				})
 			},
+			//更新绿码
+			updateIdCardAsynCallBack(idCard, name) {
+				this.getGreenCode();
+			},
 			asynCallBack() {},
 		},
 		mounted() {
@@ -379,7 +383,7 @@
 				openId: 'wx_openid',
 				token: 'token',
 				person_data: 'person_data',
-                person_popedom: 'person_popedom',
+				person_popedom: 'person_popedom',
 			})
 		}
 	}

+ 2 - 0
src/projects/business/views/Master/Attendance/Apply.vue

@@ -211,6 +211,8 @@
 					this.isLoading = true;
 					API_Attendance.postPatchCard(this.tjForm).then(response => {
 						this.isLoading = false;
+						
+						mui.toast('提交成功');
 						this.$router.push({
 							name: 'Master',
 							query: {}

+ 1 - 1
src/projects/business/views/Master/Attendance/LeaveForm.vue

@@ -259,7 +259,7 @@
 					this.isLoading = true;
 					API_Leave.save(this.tjForm).then(response => {
 						this.isLoading = false;
-						mui.toast("提交成功");
+						mui.toast("提交成功");
 						this.$router.push({
 							name: 'MasterAttendanceLeaveList',
 							query: {}

+ 2 - 0
src/projects/business/views/Master/Attendance/Sign.vue

@@ -190,6 +190,8 @@
 					this.isLoading = true;
 					API_Attendance.postPatchCard(this.tjForm).then(response => {
 						this.isLoading = false;
+
+						mui.toast('提交成功');
 						this.$router.push({
 							name: 'Master',
 							query: {}