2
3
Quellcode durchsuchen

增项: fix添加申请时的增项id;提交之后的状态刷新

baichengfei vor 5 Jahren
Ursprung
Commit
c526712efd

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

@@ -2358,22 +2358,24 @@ import apiCert from '@/api/oilsupplier/suppliercert'
           UnitId: this.UnitOrg,
           AuditRemark: this.auditform.AuditRemark
         }
+        let _this = this
         annualapi.companyAuditEntity(this.formData.Id, params, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
-            this.getEntityById()
-            this.dialogComSubmitToSeparateUnitVisible = false
             this.$message({
               type: 'success',
               message: res.data.message
             })
+            _this.dialogComSubmitToSeparateUnitVisible = false
+            // this.getEntityById()
+            _this.getstatus(this.annualId)
           } else {
             this.$message({
               type: 'warning',
               message: res.data.message
             })
           }
-          this.loading = false
+          _this.loading = false
         }).catch(err => {
           console.error(err)
         })

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

@@ -2990,22 +2990,24 @@
           UnitId: this.UnitOrg,
           AuditRemark: this.auditform.AuditRemark
         }
-        annualapi.companyAuditEntity(this.formData.Id, params, this.$axios).then(res => {
+        let _this = this
+        annualapi.companyAuditEntity(this.annualId, params, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
-            this.getEntityById()
-            this.dialogComSubmitToSeparateUnitVisible = false
             this.$message({
               type: 'success',
               message: res.data.message
             })
+            _this.dialogComSubmitToSeparateUnitVisible = false
+            _this.getstatus(this.annualId)
+            // _this.getEntityById()
           } else {
             this.$message({
               type: 'warning',
               message: res.data.message
             })
           }
-          this.loading = false
+          _this.loading = false
         }).catch(err => {
           console.error(err)
         })

+ 5 - 3
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/operation.vue

@@ -2294,22 +2294,24 @@ import Viewer from 'v-viewer'
           UnitId: this.UnitOrg,
           AuditRemark: this.auditform.AuditRemark
         }
+        let _this = this
         annualapi.companyAuditEntity(this.formData.Id, params, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
-            this.getEntityById()
-            this.dialogComSubmitToSeparateUnitVisible = false
             this.$message({
               type: 'success',
               message: res.data.message
             })
+            _this.dialogComSubmitToSeparateUnitVisible = false
+            _this.getEntityById()
+            _this.getstatus(this.annualId)
           } else {
             this.$message({
               type: 'warning',
               message: res.data.message
             })
           }
-          this.loading = false
+          _this.loading = false
         }).catch(err => {
           console.error(err)
         })