|
@@ -114,7 +114,7 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="下一节点审核人" prop="reviewBy"
|
|
|
:rules="[
|
|
|
- {required: true, message:'下一节点审核人不能为空', trigger:'blur'}
|
|
|
+ {required: true, message:'下一节点审核人不能为空', trigger:'change'}
|
|
|
]">
|
|
|
<UserSelectSignatory style="width: 100%" ref="userSelect1"
|
|
|
:readonly="true" :limit='1' :modelValue="inputForm.reviewBy"
|
|
@@ -740,6 +740,57 @@
|
|
|
})
|
|
|
|
|
|
}else{
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.reviewBy)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('请选择下一节点审核人')
|
|
|
+ throw new Error()
|
|
|
+ }
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.workStartDate)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('请选择工作开始时间')
|
|
|
+ throw new Error()
|
|
|
+ }
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.workEndDate)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('请选择工作结束时间')
|
|
|
+ throw new Error()
|
|
|
+ }
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.detailInfos)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('至少选择一位项目组成员')
|
|
|
+ throw new Error()
|
|
|
+ }else {
|
|
|
+ let i = this.inputForm.detailInfos.length
|
|
|
+ for (let j = 0; j < i; j++) {
|
|
|
+ let k = j + 1
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.detailInfos[j].memberName)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('项目组成员第'+k+'行成员名称为空')
|
|
|
+ throw new Error('项目组成员第'+k+'行成员名称为空')
|
|
|
+ }
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.detailInfos[j].enrollCertNo)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('项目组成员第'+k+'行注册/资格证号为空')
|
|
|
+ throw new Error('项目组成员第'+k+'行注册/资格证号为空')
|
|
|
+ }
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.detailInfos[j].profession)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('项目组成员第'+k+'行专业为空')
|
|
|
+ throw new Error('项目组成员第'+k+'行专业为空')
|
|
|
+ }
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.detailInfos[j].content)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('项目组成员第'+k+'行本人负责内容为空')
|
|
|
+ throw new Error('项目组成员第'+k+'行本人负责内容为空')
|
|
|
+ }
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.detailInfos[j].opinion)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('项目组成员第'+k+'行审核意见为空')
|
|
|
+ throw new Error('项目组成员第'+k+'行审核意见为空')
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
this.reportReviewService.saveFormReviewNew(this.inputForm).then((data) => {
|
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
this.loading = false
|