Browse Source

年审 基建类 annualId

baichengfei 5 years ago
parent
commit
451878397a

+ 9 - 7
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/bassicoperation.vue

@@ -2345,7 +2345,7 @@ import apiCert from '@/api/oilsupplier/suppliercert'
       },
       // 企业用户自行提交审批
       companySubmitToSecUnitSeparate () {
-        this.saveinfochange(1)
+        this.saveEntity(1)
         let checkRes = this.companySubmitToSecUnitParamsCheck
         if (!checkRes) {
           return false
@@ -2359,7 +2359,7 @@ import apiCert from '@/api/oilsupplier/suppliercert'
           AuditRemark: this.entityForm.Remark
         }
         let _this = this
-        annualapi.companyAuditEntity(this.formData.Id, params, this.$axios).then(res => {
+        annualapi.companyAuditEntity(this.AnnualId, params, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
             this.$message({
@@ -2856,7 +2856,7 @@ import apiCert from '@/api/oilsupplier/suppliercert'
       // },
 
       // 保存信息
-      saveEntity () {
+      saveEntity (val) {
         let valid1 = false
         let valid2 = false
         this.$refs['EntityForm'].validate((valid) => {
@@ -2876,10 +2876,12 @@ import apiCert from '@/api/oilsupplier/suppliercert'
             if (res.data.code === 0) {
               // 保存成功后,初始化数据,变成修改
               this.initDatas()
-              this.$message({
-                type: 'success',
-                message: res.data.message
-              })
+              if (val !== 1) {
+                this.$message({
+                  type: 'success',
+                  message: res.data.message
+                })
+              }
             } else {
               this.$message({
                 type: 'warning',