Browse Source

年审 审批传参id

baichengfei 5 years ago
parent
commit
365645f285

+ 8 - 5
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/basicauditoperation.vue

@@ -1965,7 +1965,7 @@
         }
       },
       // 保存信息
-      saveinfochange () {
+      saveinfochange (val) {
         let AllInfochangeItemList = {
           SupplierId: this.formData.Id + '',
           MInfoId: this.annualId,
@@ -1974,11 +1974,13 @@
         annualapi.addInfoChangeItemCh(AllInfochangeItemList, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
+            if (val !== 1) {
+              this.$message({
+                type: 'success',
+                message: res.data.message
+              })
+            }
             this.initDatas()
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
           } else {
             this.$message({
               type: 'warning',
@@ -2263,6 +2265,7 @@
       secUnitSeparateAuditClick () {
         console.log('二级单位分办审批会话框')
         this.getFirAuditerByDept()
+        this.saveinfochange(1)
         this.shenheForm.AnnualId = parseInt(this.annualId)
         this.dialogSecUnitSeparateVisible = true
       },

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

@@ -2359,7 +2359,7 @@ import apiCert from '@/api/oilsupplier/suppliercert'
           AuditRemark: this.entityForm.Remark
         }
         let _this = this
-        annualapi.companyAuditEntity(this.AnnualId, params, this.$axios).then(res => {
+        annualapi.companyAuditEntity(this.annualId, params, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
             this.$message({
@@ -2958,7 +2958,7 @@ import apiCert from '@/api/oilsupplier/suppliercert'
             })
           } else {
             return false
-        }
+          }
         })
       },
 
@@ -3005,24 +3005,24 @@ import apiCert from '@/api/oilsupplier/suppliercert'
               if (res.data.code === 0) {
                 // 保存成功后,初始化数据,变成修改
                 this.entityForm.Id = res.data.item
-              this.getstatus(this.annualId)
+                this.getstatus(this.annualId)
                 // this.initDatas();
                 this.addshow = false
                 this.$message({
                   type: 'success',
                   message: res.data.message
                 })
-            } else {
+              } else {
                 this.$message({
                   type: 'warning',
                   message: res.data.message
                 })
-            }
+              }
             }).catch(err => {
               this.loading = false
               console.error(err)
             })
-        }
+          }
         })
       },
       GradeChange (val) {

+ 8 - 6
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/operation.vue

@@ -2295,7 +2295,7 @@ import Viewer from 'v-viewer'
           AuditRemark: this.entityForm.Remark
         }
         let _this = this
-        annualapi.companyAuditEntity(this.AnnualId, params, this.$axios).then(res => {
+        annualapi.companyAuditEntity(this.annualId, params, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
             this.$message({
@@ -2813,7 +2813,7 @@ import Viewer from 'v-viewer'
       },
 
       // 保存信息
-      saveinfochange () {
+      saveinfochange (val) {
         let valid1 = false
         let valid2 = false
         this.$refs['EntityForm'].validate((valid) => {
@@ -2833,10 +2833,12 @@ import Viewer from 'v-viewer'
             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',