浏览代码

目标管理-所有模块提交收回优化。

DongZ 1 年之前
父节点
当前提交
bffe22827c

+ 2 - 4
src/views/business/spd/target/AnnualSaleGoal.vue

@@ -1314,8 +1314,7 @@
           if (code === 200) {
             this.$modal.notifySuccess("提交成功");
             this.$modal.closeLoading();
-            row.status = '1'
-            // this.getList(this.queryParams)
+            row.status = '1';
           }
         } catch (err) {
           console.error(err);
@@ -1333,8 +1332,6 @@
           if (code === 200) {
             this.$modal.notifySuccess("提交成功");
             this.$modal.closeLoading();
-            row.status = '1'
-            // this.getList(this.queryParams)
           }
         } catch (err) {
           console.error(err);
@@ -1360,6 +1357,7 @@
             this.getList(this.queryParams)
           }
         }).catch(err => {
+          this.$message.error(err);
           this.$modal.closeLoading();
         })
       },

+ 2 - 3
src/views/business/spd/target/AnnualSaleGoalMerge.vue

@@ -1565,8 +1565,7 @@
           if (code === 200) {
             this.$modal.notifySuccess("提交成功");
             this.$modal.closeLoading();
-            row.status = '1'
-            // this.getList(this.queryParams)
+            row.status = '1';
           }
         } catch (err) {
           console.error(err);
@@ -1589,9 +1588,9 @@
           if (res.code === 200) {
             this.$modal.notifySuccess("收回成功");
             this.$modal.closeLoading();
-            this.getList(this.queryParams)
           }
         }).catch(err => {
+          this.$message.error(err);
           this.$modal.closeLoading();
         })
       },

+ 2 - 3
src/views/business/spd/target/MonthGoalMerge.vue

@@ -1383,8 +1383,7 @@
           if (code === 200) {
             this.$modal.notifySuccess("提交成功");
             this.$modal.closeLoading();
-            row.status = '1'
-            // this.getList(this.queryParams)
+            row.status = '1';
           }
         } catch (err) {
           console.error(err);
@@ -1407,9 +1406,9 @@
           if (res.code === 200) {
             this.$modal.notifySuccess("收回成功");
             this.$modal.closeLoading();
-            this.getList(this.queryParams)
           }
         }).catch(err => {
+          this.$message.error(err);
           this.$modal.closeLoading();
         })
       },

+ 2 - 3
src/views/business/spd/target/MonthReturnGoal.vue

@@ -1033,8 +1033,7 @@
           if (code === 200) {
             this.$modal.notifySuccess("提交成功");
             this.$modal.closeLoading();
-            row.status = '1'
-            // this.getList(this.queryParams)
+            row.status = '1';
           }
         } catch (err) {
           console.error(err);
@@ -1057,9 +1056,9 @@
           if (res.code === 200) {
             this.$modal.notifySuccess("收回成功");
             this.$modal.closeLoading();
-            this.getList(this.queryParams)
           }
         }).catch(err => {
+          this.$message.error(err);
           this.$modal.closeLoading();
         })
       },

+ 2 - 3
src/views/business/spd/target/MonthReturnMerge.vue

@@ -996,8 +996,7 @@
           if (code === 200) {
             this.$modal.notifySuccess("提交成功");
             this.$modal.closeLoading();
-            row.status = '1'
-            // this.getList(this.queryParams)
+            row.status = '1';
           }
         } catch (err) {
           console.error(err);
@@ -1020,9 +1019,9 @@
           if (res.code === 200) {
             this.$modal.notifySuccess("收回成功");
             this.$modal.closeLoading();
-            this.getList(this.queryParams)
           }
         }).catch(err => {
+          this.$message.error(err);
           this.$modal.closeLoading();
         })
       },

+ 2 - 3
src/views/business/spd/target/MonthSaleGoal.vue

@@ -1138,8 +1138,7 @@
           if (code === 200) {
             this.$modal.notifySuccess("提交成功");
             this.$modal.closeLoading();
-            row.status = '1'
-            // this.getList(this.queryParams)
+            row.status = '1';
           }
         } catch (err) {
           console.error(err);
@@ -1162,9 +1161,9 @@
           if (res.code === 200) {
             this.$modal.notifySuccess("收回成功");
             this.$modal.closeLoading();
-            this.getList(this.queryParams)
           }
         }).catch(err => {
+          this.$message.error(err);
           this.$modal.closeLoading();
         })
       },

+ 1 - 3
src/views/business/spd/target/targetMk/index.vue

@@ -226,7 +226,6 @@
             this.$modal.notifySuccess("提交成功");
             this.$modal.closeLoading();
             row.status = '1'
-            // this.getList(this.queryParams)
           }
         } catch (err) {
           console.error(err);
@@ -248,10 +247,9 @@
           if (res.code === 200) {
             this.$modal.notifySuccess("收回成功");
             this.$modal.closeLoading();
-            row.status = '0'
-            // this.getList(this.queryParams)
           }
         }).catch(err => {
+          this.$message.error(err);
           this.$modal.closeLoading();
         })
       },