浏览代码

王真注会数量暂调120代码调整

user5 1 年之前
父节点
当前提交
c6546e640d

+ 16 - 3
src/views/cw/reportManagement/ReportManagementForm.vue

@@ -1314,9 +1314,22 @@
 				  //根据签字注师1的人员id去查是否超过了100次
 				  userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
 					  if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
-						  this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-						  this.loading = false
-						  throw new Error()
+						  if(data.name === '王真' && data.accountantUserCount <= 120){
+
+							  this.reportReviewService.save(this.inputForm).then(() => {
+								  projectReportService.saveForm(this.inputForm).then(() => {
+									  this.$emit('refreshList')
+									  this.close()
+									  this.loading = false
+								  }).catch(() => {
+									  this.loading = false
+								  })
+							  })
+						  }else{
+							  this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+							  this.loading = false
+							  throw new Error()
+						  }
 					  } else {
 						  this.reportReviewService.save(this.inputForm).then(() => {
 							  projectReportService.saveForm(this.inputForm).then(() => {

+ 25 - 3
src/views/cw/reportManagement/ReportManagementSignatureForm.vue

@@ -1011,9 +1011,31 @@
 				  //根据签字注师1的人员id去查是否超过了100次
 				  userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
 					  if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
-						  this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-						  this.loading = false
-						  throw new Error()
+						  if(data.name === '王真' && data.accountantUserCount <= 120){
+							  this.reportReviewService.save(this.inputForm).then(() => {
+								  let da = {cwFileInfoList: this.inputForm.cwFileInfoList, id: this.inputForm.id}
+								  projectReportService.saveSignFiles(da).then(() => {
+									  projectReportService.saveData(this.inputForm).then((data) => {
+										  if (this.inputForm.signatureType === '2') {
+											  this.inputForm.assignee = this.inputForm.signatureAnnotator1
+										  }
+										  callback(data.businessTable, data.businessId, this.inputForm)
+										  this.loading = false
+										  throw new Error()
+									  }).catch(() => {
+										  this.loading = false
+										  throw new Error('流程发起失败')
+									  })
+								  }).catch(() => {
+									  this.loading = false
+									  throw new Error('流程发起失败')
+								  })
+							  })
+						  }else{
+							  this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+							  this.loading = false
+							  throw new Error()
+						  }
 					  } else {
 						  this.reportReviewService.save(this.inputForm).then(() => {
 							  let da = {cwFileInfoList: this.inputForm.cwFileInfoList, id: this.inputForm.id}

+ 37 - 6
src/views/cw/reportManagement/ReportReviewTakeNumberForm.vue

@@ -841,9 +841,24 @@
 					//根据签字注师1的人员id去查是否超过了100次
 					userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
 						if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
-							this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-							this.loading = false
-							throw new Error()
+							if(data.name === '王真' && data.accountantUserCount <= 120){
+
+								this.ReportNumberApplyService.save(this.inputForm).then((data) => {
+									this.inputForm.cwFileInfoList3 = this.$refs.enclosure.getDataList()
+									projectReportService.saveForm2(this.inputForm).then((da) => {
+										callback(data.businessTable, data.businessId, this.inputForm)
+										this.loading = false
+									}).catch(() => {
+										this.loading = false
+									})
+								}).catch(() => {
+									this.loading = false
+								})
+							}else{
+								this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+								this.loading = false
+								throw new Error()
+							}
 						} else {
 							this.ReportNumberApplyService.save(this.inputForm).then((data) => {
 								this.inputForm.cwFileInfoList3 = this.$refs.enclosure.getDataList()
@@ -901,9 +916,25 @@
 							//根据签字注师1的人员id去查是否超过了100次
 							userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
 								if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
-									this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-									this.loading = false
-									throw new Error()
+									if(data.name === '王真' && data.accountantUserCount <= 120){
+
+										this.ReportNumberApplyService.save(this.inputForm).then((data) => {
+											this.inputForm.cwFileInfoList3 = this.$refs.enclosure.getDataList()
+											console.log('this.inputForm', this.inputForm)
+											projectReportService.saveForm2(this.inputForm).then((da) => {
+												callback(data.businessTable, data.businessId, this.inputForm)
+												this.loading = false
+											}).catch(() => {
+												this.loading = false
+											})
+										}).catch(() => {
+											this.loading = false
+										})
+									}else{
+										this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+										this.loading = false
+										throw new Error()
+									}
 								} else {
 									this.ReportNumberApplyService.save(this.inputForm).then((data) => {
 										this.inputForm.cwFileInfoList3 = this.$refs.enclosure.getDataList()

+ 37 - 6
src/views/cw/reportManagement/ReportReviewTakeNumberReviewForm.vue

@@ -842,9 +842,24 @@
 					//根据签字注师1的人员id去查是否超过了100次
 					userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
 						if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
-							this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-							this.loading = false
-							throw new Error()
+							if(data.name === '王真' && data.accountantUserCount <= 120){
+
+								this.ReportNumberApplyService.reviewSave(this.inputForm).then((data) => {
+									this.inputForm.cwFileInfoList3 = this.$refs.enclosure.getDataList()
+									projectReportService.saveForm2(this.inputForm).then((da) => {
+										callback(data.businessTable, data.businessId, this.inputForm)
+										this.loading = false
+									}).catch(() => {
+										this.loading = false
+									})
+								}).catch(() => {
+									this.loading = false
+								})
+							}else{
+								this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+								this.loading = false
+								throw new Error()
+							}
 						} else {
 							this.ReportNumberApplyService.reviewSave(this.inputForm).then((data) => {
 								this.inputForm.cwFileInfoList3 = this.$refs.enclosure.getDataList()
@@ -902,9 +917,25 @@
 							//根据签字注师1的人员id去查是否超过了100次
 							userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
 								if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
-									this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-									this.loading = false
-									throw new Error()
+									if(data.name === '王真' && data.accountantUserCount <= 120){
+
+										this.ReportNumberApplyService.reviewSave(this.inputForm).then((data) => {
+											this.inputForm.cwFileInfoList3 = this.$refs.enclosure.getDataList()
+											console.log('this.inputForm', this.inputForm)
+											projectReportService.saveForm2(this.inputForm).then((da) => {
+												callback(data.businessTable, data.businessId, this.inputForm)
+												this.loading = false
+											}).catch(() => {
+												this.loading = false
+											})
+										}).catch(() => {
+											this.loading = false
+										})
+									}else{
+										this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+										this.loading = false
+										throw new Error()
+									}
 								} else {
 									this.ReportNumberApplyService.reviewSave(this.inputForm).then((data) => {
 										this.inputForm.cwFileInfoList3 = this.$refs.enclosure.getDataList()

+ 32 - 6
src/views/cw/reportManagement/ReportSignatureForm.vue

@@ -1100,9 +1100,24 @@
 					//根据签字注师1的人员id去查是否超过了100次
 					userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
 						if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
-							this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-							this.loading = false
-							throw new Error()
+							if(data.name === '王真' && data.accountantUserCount <= 120){
+
+								this.reportReviewService.save(this.inputForm).then((data) => {
+									this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
+									projectReportService.saveForm(this.inputForm).then((da) => {
+										callback(data.businessTable, data.businessId, this.inputForm)
+										this.loading = false
+									}).catch(() => {
+										this.loading = false
+									})
+								}).catch(() => {
+									this.loading = false
+								})
+							}else{
+								this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+								this.loading = false
+								throw new Error()
+							}
 						} else {
 							this.reportReviewService.save(this.inputForm).then((data) => {
 								this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
@@ -1149,9 +1164,20 @@
 						//根据签字注师1的人员id去查是否超过了100次
 						userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
 							if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
-								this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-								this.loading = false
-								throw new Error()
+								if(data.name === '王真' && data.accountantUserCount <= 120){
+
+									console.log('this.inputForm', this.inputForm)
+									projectReportService.saveSignatureAnnotator(this.inputForm).then((da) => {
+										callback(da.businessTable, da.businessId, this.inputForm)
+										this.loading = false
+									}).catch(() => {
+										this.loading = false
+									})
+								}else{
+									this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+									this.loading = false
+									throw new Error()
+								}
 							} else {
 									console.log('this.inputForm', this.inputForm)
 									projectReportService.saveSignatureAnnotator(this.inputForm).then((da) => {

+ 37 - 6
src/views/cw/reportManagement/reportReview/ReportReviewForm.vue

@@ -1070,9 +1070,24 @@
 			//根据签字注师1的人员id去查是否超过了100次
 			userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
 				if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
-					this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-					this.loading = false
-					throw new Error()
+					if(data.name === '王真' && data.accountantUserCount <= 120){
+
+						this.reportReviewService.save(this.inputForm).then((data) => {
+							this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
+							projectReportService.saveForm(this.inputForm).then((da) => {
+								callback(data.businessTable, data.businessId, this.inputForm)
+								this.loading = false
+							}).catch(() => {
+								this.loading = false
+							})
+						}).catch(() => {
+							this.loading = false
+						})
+					}else{
+						this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+						this.loading = false
+						throw new Error()
+					}
 				} else {
 					this.reportReviewService.save(this.inputForm).then((data) => {
 						this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
@@ -1130,9 +1145,25 @@
 				  //根据签字注师1的人员id去查是否超过了100次
 				  userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
 					  if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
-						  this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-						  this.loading = false
-						  throw new Error()
+						  if(data.name === '王真' && data.accountantUserCount <= 120){
+
+							  this.reportReviewService.save(this.inputForm).then((data) => {
+								  this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
+								  console.log('this.inputForm', this.inputForm)
+								  projectReportService.saveForm(this.inputForm).then((da) => {
+									  callback(data.businessTable, data.businessId, this.inputForm)
+									  this.loading = false
+								  }).catch(() => {
+									  this.loading = false
+								  })
+							  }).catch(() => {
+								  this.loading = false
+							  })
+						  }else{
+							  this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+							  this.loading = false
+							  throw new Error()
+						  }
 					  } else {
 						  this.reportReviewService.save(this.inputForm).then((data) => {
 							  this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()

+ 37 - 6
src/views/cw/reportManagement/reportReviewNew/ReportReviewFormNew.vue

@@ -1195,9 +1195,24 @@
 			//根据签字注师1的人员id去查是否超过了100次
 			userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
 				if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
-					this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-					this.loading = false
-					throw new Error()
+					if(data.name === '王真' && data.accountantUserCount <= 120){
+
+						this.reportReviewService.save(this.inputForm).then((data) => {
+							this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
+							projectReportService.saveForm(this.inputForm).then((da) => {
+								callback(data.businessTable, data.businessId, this.inputForm)
+								this.loading = false
+							}).catch(() => {
+								this.loading = false
+							})
+						}).catch(() => {
+							this.loading = false
+						})
+					}else{
+						this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+						this.loading = false
+						throw new Error()
+					}
 				} else {
 					this.reportReviewService.save(this.inputForm).then((data) => {
 						this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
@@ -1292,9 +1307,25 @@
 					  //根据签字注师1的人员id去查是否超过了100次
 					  userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
 						  if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
-							  this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-							  this.loading = false
-							  throw new Error()
+							  if(data.name === '王真' && data.accountantUserCount <= 120){
+
+								  this.reportReviewService.save(this.inputForm).then((data) => {
+									  this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
+									  console.log('this.inputForm', this.inputForm)
+									  projectReportService.saveForm(this.inputForm).then((da) => {
+										  callback(data.businessTable, data.businessId, this.inputForm)
+										  this.loading = false
+									  }).catch(() => {
+										  this.loading = false
+									  })
+								  }).catch(() => {
+									  this.loading = false
+								  })
+							  }else{
+								  this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+								  this.loading = false
+								  throw new Error()
+							  }
 						  } else {
 							  this.reportReviewService.save(this.inputForm).then((data) => {
 								  this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()

+ 7 - 2
src/views/cw/workClientInfo/clientUserSelect/AccountantUserSelectDialog.vue

@@ -449,9 +449,14 @@
           this.$message.error(`你最多只能选择${this.limit}个用户`)
           return
         }
+        console.log(this.dataListAllSelections[0])
         if (this.dataListAllSelections[0].accountantUserCount >= 100 && this.dataListAllSelections[0].accountantUserFlag === 1) {
-          this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-          return
+        	if(this.dataListAllSelections[0].name === '王真' && this.dataListAllSelections[0].accountantUserCount <= 120){
+
+			}else{
+				this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+				return
+			}
         }
         this.visible = false
         this.$emit('doSubmit', this.dataListAllSelections)

+ 6 - 2
src/views/cw/workClientInfo/clientUserSelect/AccountantUserSelectDialog2.vue

@@ -450,8 +450,12 @@ export default {
         return
       }
       if (this.dataListAllSelections[0].accountantUserCount >= 100 && this.dataListAllSelections[0].accountantUserFlag === 1) {
-        this.$message.error(`请选择被选次数小于100次的签字注师人员`)
-        return
+		  if(this.dataListAllSelections[0].name === '王真' && this.dataListAllSelections[0].accountantUserCount <= 120){
+
+		  }else{
+			  this.$message.error(`请选择被选次数小于100次的签字注师人员`)
+			  return
+		  }
       }
       this.visible = false
       this.$emit('doSubmit', this.dataListAllSelections)

+ 2 - 2
src/views/cw/workContract/ContractRegistration.vue

@@ -188,8 +188,8 @@
           <vxe-column title="操作" min-width="200px" fixed="right" align="center">
             <template  #default="scope">
               <div v-if="isAdmin">
-                <el-button v-if="scope.row.filedPaperType === '5'" text type="primary" size="small" @click="edit(scope.row)">修改</el-button>
-                <el-button v-if="scope.row.filedPaperType === '5'" text type="primary" size="small" @click="del(scope.row.id)">删除</el-button>
+                <el-button v-if="scope.row.status === '5'" text type="primary" size="small" @click="edit(scope.row)">修改</el-button>
+                <el-button v-if="scope.row.status === '5'" text type="primary" size="small" @click="del(scope.row.id)">删除</el-button>
               </div>
               <div v-else>
 <!--              <el-button v-if="hasPermission('cw:workContract:view')" text type="primary" size="small" @click="view(scope.row.id)">查看</el-button>-->