|
@@ -1113,27 +1113,42 @@
|
|
|
this.inputForm.detailFor1010.forEach(item => { this.inputForm.details.push(item) })
|
|
|
this.inputForm.detailFor1020.forEach(item => { this.inputForm.details.push(item) })
|
|
|
this.inputForm.detailFor1030.forEach(item => { this.inputForm.details.push(item) })
|
|
|
- //根据签字注师1的人员id去查是否超过了100次
|
|
|
- userService.getCount(this.inputForm.signatureAnnotator1).then((data) => {
|
|
|
- if (data.accountantUserCount >= 100 && data.accountantUserFlag === 1) {
|
|
|
- this.$message.error(`请选择被选次数小于100次的签字注师人员`)
|
|
|
+ if (status === 'agree') {
|
|
|
+ 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
|
|
|
- throw new Error()
|
|
|
- } else {
|
|
|
- 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
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ //根据签字注师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()
|
|
|
+ } else {
|
|
|
+ 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
|
|
|
})
|
|
|
- }).catch(() => {
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
- }
|
|
|
- });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
} else {
|
|
|
this.loading = false
|
|
|
}
|