Переглянути джерело

门卡办理展示数据调整

wangqiang 1 рік тому
батько
коміт
2db5b930f2

+ 8 - 0
src/views/human/enrollment/registration/KeyCardForm.vue

@@ -1,5 +1,6 @@
 <template xmlns:v-slot="http://www.w3.org/1999/XSL/Transform">
 	<div>
+		<span style="color: red">{{workInfo}}</span>
 	</div>
 </template>
 
@@ -28,6 +29,7 @@
 		},
 		data () {
 			return {
+				workInfo: '',
 				title: '',
 				method: '',
 				visible: false,
@@ -36,6 +38,8 @@
 					userId: '',
 					name: '',
 					procInsId: '',
+					departmentName: '',
+					userName: '',
 				},
 				keyWatch: '',
 			}
@@ -91,6 +95,8 @@
 					userId: '',
 					name: '',
 					procInsId: '',
+					departmentName: '',
+					userName: '',
 				}
 				if (method === 'add') {
 					this.title = `新建社保登记`
@@ -108,6 +114,7 @@
 						}
 						this.inputForm = this.recover(this.inputForm, data)
 						this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
+						this.workInfo = this.inputForm.departmentName + ' - ' + this.inputForm.userName + ' - 入职门卡办理'
 
 						this.loading = false
 					})
@@ -131,6 +138,7 @@
 				this.fileList = []
 				this.fileList2 = []
 				this.visible = false
+				this.workInfo = ''
 			},
 			reapplyForm (callback) {
 				this.loading = true