Jelajahi Sumber

前:二级单位增项提交检查资质

dubch 4 tahun lalu
induk
melakukan
fc303d81ea

+ 27 - 21
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/basisdataopera.vue

@@ -1980,30 +1980,36 @@
           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()
-            this.dialogSeparateUnitAuditVisible = false
-            this.$message({
-              type: 'success',
-              message: res.data.message
+        this.checkFile().then(val => {
+          if (val) {
+            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()
+                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)
         })
       },
       // 二级分办单位提交审批参数检查

+ 29 - 23
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/goodsdataopera.vue

@@ -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)
         })
       },
       // 二级分办单位提交审批参数检查

+ 29 - 23
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/techdataopera.vue

@@ -2508,33 +2508,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)
         })
       },
       // 二级分办单位提交审批参数检查