|
|
@@ -3324,33 +3324,39 @@
|
|
|
return false
|
|
|
}
|
|
|
this.btnloading = true
|
|
|
- let params = {
|
|
|
- firstAudit: this.auditer,
|
|
|
- SecondAudit: this.fushenauditer,
|
|
|
- ThirdAudit: this.selectDept,
|
|
|
- AuditRemark: this.auditform.AuditRemark
|
|
|
- }
|
|
|
- api2.separateUnitAuditEntity(this.formData.Id, params, this.$axios).then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- // 保存成功后,初始化数据,变成修改
|
|
|
- this.getEntityById()
|
|
|
- if (this.$refs['WfHistory']) {
|
|
|
- this.$refs['WfHistory'].getHistoryTask()
|
|
|
+ this.checkFile().then(val => {
|
|
|
+ if (val) {
|
|
|
+ let params = {
|
|
|
+ firstAudit: this.auditer,
|
|
|
+ SecondAudit: this.fushenauditer,
|
|
|
+ ThirdAudit: this.selectDept,
|
|
|
+ AuditRemark: this.auditform.AuditRemark
|
|
|
}
|
|
|
- this.dialogSeparateUnitAuditVisible = false
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
+ api2.separateUnitAuditEntity(this.formData.Id, params, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
+ this.getEntityById()
|
|
|
+ if (this.$refs['WfHistory']) {
|
|
|
+ this.$refs['WfHistory'].getHistoryTask()
|
|
|
+ }
|
|
|
+ this.dialogSeparateUnitAuditVisible = false
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.btnloading = false
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
})
|
|
|
} else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ this.btnloading = false
|
|
|
}
|
|
|
- this.btnloading = false
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
})
|
|
|
},
|
|
|
// 二级分办单位提交审批参数检查
|