mqd 3 years ago
parent
commit
a551a4b659
2 changed files with 37 additions and 34 deletions
  1. 31 29
      src/pages/main/achievements/recall.vue
  2. 6 5
      src/pages/main/budget/recall.vue

+ 31 - 29
src/pages/main/achievements/recall.vue

@@ -142,13 +142,13 @@ export default {
       pageSize: 1,
       tableData: [],
       searchList: [
-        {
-          type: "input",
-          tit: "预算名称",
-          value: "",
-          width: "100%",
-          options: [],
-        },
+        // {
+        //   type: "input",
+        //   tit: "预算名称",
+        //   value: "",
+        //   width: "100%",
+        //   options: [],
+        // },
         {
           type: "sel",
           tit: "回复状态",
@@ -161,7 +161,7 @@ export default {
         },
       ],
       params: {
-        tabName: "",
+        woNo: "",
         sts: "",
       },
       loading: false,
@@ -170,33 +170,35 @@ export default {
     };
   },
   methods: {
-    // chenck(id, sts, stsDesc) {
-    //   this.$http({
-    //     url: "/market/kpidept/update",
-    //     method: "post",
-    //     headers: {
-    //       "Content-Type": "application/json",
-    //     },
-    //     data: { id: id, sts: sts, stsDesc: sts == 0 ? "未回复" : "已回复" },
-    //   }).then((res) => {
-    //     if (res.data.result == 0) {
-    //       this.$message({
-    //         message: "操作成功",
-    //         type: "success",
-    //       });
-    //       this.getList(this.params, this.pageSize);
-    //     }
-    //   });
-    // },
+    chenck(id, sts, stsDesc) {
+      this.$http({
+        url: "/market/kpidept/update",
+        method: "post",
+        headers: {
+          "Content-Type": "application/json",
+        },
+        data: { id: id, sts: sts, stsDesc: sts == 0 ? "未回复" : "已回复" },
+      }).then((res) => {
+        if (res.data.result == 0) {
+          this.$message({
+            message: "操作成功",
+            type: "success",
+          });
+          this.getList(this.params, this.pageSize);
+        }
+      });
+    },
     //搜索数据
     searchInfo(v) {
-      this.params = {};
-      v[0] ? (this.params.tabName = v[0]) : "";
-      v[1] ? (this.params.sts = v[1]) : "";
+      // this.params = {};
+      // v[0] ? (this.params.tabName = v[0]) : "";
+      // v[1] ? (this.params.sts = v[1]) : "";
+        v[0] ? (this.params.sts = v[0]) : "";
       this.getList(this.params, this.pageSize);
     },
     //获取列表
     getList(v, n) {
+
       this.loading = true;
       this.pageSize = n;
       this.$http({

+ 6 - 5
src/pages/main/budget/recall.vue

@@ -155,7 +155,8 @@ export default {
         },
       ],
       params: {
-        taskName: "",
+        // taskName: "",
+        woNo:"",
         sts: "",
       },
       loading: false,
@@ -184,10 +185,10 @@ export default {
     },
     //搜索数据
     searchInfo(v) {
-      this.params = {};
-      v[0] ? (this.params.taskName = v[0]) : "";
-      v[1] ? (this.params.sts = v[1]) : "";
-        console.log(this.params)
+      // this.params = {};
+      // v[0] ? (this.params.woNo = v[0]) : "";
+      // v[1] ? (this.params.sts = v[1]) : "";
+        v[0] ? (this.params.sts = v[0]) : "";
       this.getList(this.params, this.pageSize);
     },
     //获取列表