Browse Source

耗材供应商管理

liumy 1 year ago
parent
commit
1d82f71d42
1 changed files with 16 additions and 15 deletions
  1. 16 15
      src/views/page/consumCataManage-sup/index.vue

+ 16 - 15
src/views/page/consumCataManage-sup/index.vue

@@ -660,21 +660,22 @@ export default {
       return result;
     },
     // 搜索获取医院药品列表
-    // getHospConsum(type) {
-    //   if (type == "search") {
-    //     this.listQuery.current = 1;
-    //   }
-    //   this.listLoading = true;
-    //   selectSplerMcsList(this.listQuery)
-    //     .then((res) => {
-    //       this.list = res.data.records;
-    //       this.total = res.data.total;
-    //       this.listLoading = false;
-    //     })
-    //     .catch((err) => {
-    //       this.listLoading = false;
-    //     });
-    // },
+    getHospConsum(type) {
+      if (type == "search") {
+        this.listQuery.current = 1;
+      }
+      this.listLoading = true;
+      this.listQuery.spdId = this.spdId;
+      selectSplerMcsList(this.listQuery)
+        .then((res) => {
+          this.list = res.data.records;
+          this.total = res.data.total;
+          this.listLoading = false;
+        })
+        .catch((err) => {
+          this.listLoading = false;
+        });
+    },
     // 获取新增目录弹框数据
     getdialog(type) {
       if (type == "search") {