Pārlūkot izejas kodu

工资卡与社保登记流程页面调整

wangqiang 1 gadu atpakaļ
vecāks
revīzija
91f4a302ae

+ 23 - 8
src/views/human/enrollment/registration/SocialSecurityInfoAddForm.vue

@@ -44,7 +44,6 @@
 											<el-icon><zoom-in /></el-icon>
 										  </span>
 										  <span
-											  v-if="!disabled"
 											  class="el-upload-list__item-delete"
 											  @click="handleDownload(file)"
 										  >
@@ -52,7 +51,6 @@
 										  </span>
 										  <span
 											  v-if="!disabled"
-											  style="display:none;"
 											  class="el-upload-list__item-delete"
 											  @click="handleRemove(file,fileList)"
 										  >
@@ -93,7 +91,6 @@
 											<el-icon><zoom-in /></el-icon>
 										  </span>
 										  <span
-											  v-if="!disabled"
 											  class="el-upload-list__item-delete"
 											  @click="handleDownload2(file)"
 										  >
@@ -101,7 +98,6 @@
 										  </span>
 										  <span
 											  v-if="!disabled"
-											  style="display:none;"
 											  class="el-upload-list__item-delete"
 											  @click="handleRemove2(file,fileList2)"
 										  >
@@ -158,7 +154,6 @@
 											<el-icon><zoom-in /></el-icon>
 										  </span>
 										  <span
-											  v-if="!disabled"
 											  class="el-upload-list__item-delete"
 											  @click="handleDownload(file)"
 										  >
@@ -206,7 +201,6 @@
 											<el-icon><zoom-in /></el-icon>
 										  </span>
 										  <span
-											  v-if="!disabled"
 											  class="el-upload-list__item-delete"
 											  @click="handleDownload2(file)"
 										  >
@@ -341,7 +335,7 @@
 			},
 			handleRemove2(file) {
 				console.log(file);
-				this.hideUploadEdit = false
+				this.hideUploadEdit2 = false
 				// 如果需要删除图片信息,可以根据file或其他标识从相应的数据结构中删除信息
 				const fileIndex = this.fileList2.indexOf(file);
 				if (fileIndex !== -1) {
@@ -392,7 +386,7 @@
 					this.inputForm.socialSecurityPictureOpposite = '/' + res.url
 					this.inputForm.socialSecurityPictureOppositeUrl = res.lsUrl
 				}
-				this.hideUploadEdit = true
+				this.hideUploadEdit2 = true
 				this.$forceUpdate()
 			},
 			checkBankNumber(bankNumber) {
@@ -428,6 +422,12 @@
 				this.inputForm.id = id
 				this.visible = true
 				this.loading = false
+				this.testFlag = false,
+				this.disabled = false,
+				this.hideUploadEdit = false, //隐藏上传按钮
+				this.hideUploadEdit2 = false, //隐藏上传按钮
+				this.dialogVisible = false,
+				this.dialogVisible2 = false,
 				this.$nextTick(() => {
 					this.loading = true
 					enrollmentRegistrationService.findSocialCardById(this.inputForm.id).then( async (data) => {
@@ -443,6 +443,7 @@
 							this.testFlag = true
 						}
 						if (this.commonJS.isNotEmpty(this.inputForm.socialSecurityPictureFront)){
+							this.hideUploadEdit = true,
 							await this.ossService.getTemporaryUrl(this.inputForm.socialSecurityPictureFront).then((data) => {
 								let file = {
 									url: data
@@ -452,6 +453,7 @@
 							})
 						}
 						if (this.commonJS.isNotEmpty(this.inputForm.socialSecurityPictureOpposite)){
+							this.hideUploadEdit2 = true,
 							await this.ossService.getTemporaryUrl(this.inputForm.socialSecurityPictureOpposite).then((data) => {
 								let file = {
 									url: data
@@ -460,6 +462,13 @@
 								// this.inputForm.socialSecurityPictureFrontUrl = data
 							})
 						}
+						await this.commonApi.getTaskNameByProcInsId(this.inputForm.procInsId).then((data) => {
+							if (this.commonJS.isNotEmpty(data)) {
+								if (data === '审核') {
+									this.disabled = true
+								}
+							}
+						})
 
 						this.loading = false
 					})
@@ -489,6 +498,12 @@
 				this.$refs.inputForm.resetFields()
 				this.fileList = []
 				this.fileList2 = []
+				this.testFlag = false,
+				this.disabled = false,
+				this.hideUploadEdit = false, //隐藏上传按钮
+				this.hideUploadEdit2 = false, //隐藏上传按钮
+				this.dialogVisible = false,
+				this.dialogVisible2 = false,
 				this.visible = false
 			},
 			reapplyForm (callback) {

+ 27 - 5
src/views/human/enrollment/registration/WageCardInfoAddForm.vue

@@ -49,7 +49,6 @@
 											<el-icon><zoom-in /></el-icon>
 										  </span>
 										  <span
-											  v-if="!disabled"
 											  class="el-upload-list__item-delete"
 											  @click="handleDownload(file)"
 										  >
@@ -105,7 +104,6 @@
 											<el-icon><zoom-in /></el-icon>
 										  </span>
 										  <span
-											  v-if="!disabled"
 											  class="el-upload-list__item-delete"
 											  @click="handleDownload2(file)"
 										  >
@@ -174,7 +172,6 @@
 											<el-icon><zoom-in /></el-icon>
 										  </span>
 										  <span
-											  v-if="!disabled"
 											  class="el-upload-list__item-delete"
 											  @click="gsHandleDownload(file)"
 										  >
@@ -230,7 +227,6 @@
 											<el-icon><zoom-in /></el-icon>
 										  </span>
 										  <span
-											  v-if="!disabled"
 											  class="el-upload-list__item-delete"
 											  @click="gsHandleDownload2(file)"
 										  >
@@ -515,6 +511,17 @@
 				this.inputForm.id = id
 				this.visible = true
 				this.loading = false
+
+				this.testFlag = false,
+					this.testDisabledFlag = false,
+					this.dialogVisible = false,
+					this.dialogVisible2 = false,
+					this.hideUploadEdit = false, //控制上传点击
+					this.hideUploadEdit2 = false, //控制上传点击
+					this.gsDialogVisible = false,
+					this.gsDialogVisible2 = false,
+					this.gsHideUploadEdit = false, //控制上传点击
+					this.gsHideUploadEdit2 = false, //控制上传点击
 				this.$nextTick(() => {
 					this.loading = true
 					enrollmentWageCardService.findWageCardById(this.inputForm.id).then( async (data) => {
@@ -537,7 +544,8 @@
 								let file = {
 									url: data
 								}
-								this.fileList.push(file)
+								this.hideUploadEdit = true, //控制上传点击
+									this.fileList.push(file)
 								// this.inputForm.socialSecurityPictureFrontUrl = data
 							})
 						}
@@ -547,6 +555,7 @@
 								let file = {
 									url: data
 								}
+								this.hideUploadEdit2 = true, //控制上传点击
 								this.fileList2.push(file)
 								// this.inputForm.socialSecurityPictureFrontUrl = data
 							})
@@ -556,6 +565,7 @@
 								let file = {
 									url: data
 								}
+								this.gsHideUploadEdit = true, //控制上传点击
 								this.gsFileList.push(file)
 								// this.inputForm.socialSecurityPictureFrontUrl = data
 							})
@@ -565,6 +575,7 @@
 								let file = {
 									url: data
 								}
+								this.gsHideUploadEdit2 = true, //控制上传点击
 								this.gsFileList2.push(file)
 								// this.inputForm.socialSecurityPictureFrontUrl = data
 							})
@@ -606,6 +617,17 @@
 				this.fileList2 = []
 				this.gsFileList = []
 				this.gsFileList2 = []
+
+				this.testFlag = false,
+				this.testDisabledFlag = false,
+				this.dialogVisible = false,
+				this.dialogVisible2 = false,
+				this.hideUploadEdit = false, //控制上传点击
+				this.hideUploadEdit2 = false, //控制上传点击
+				this.gsDialogVisible = false,
+				this.gsDialogVisible2 = false,
+				this.gsHideUploadEdit = false, //控制上传点击
+				this.gsHideUploadEdit2 = false, //控制上传点击
 				this.visible = false
 			},
 			reapplyForm (callback) {