yxh
2023-11-21 dacf3c6ae5ede1c0a8a8b4afb24e2a3b62f0e368
src/views/patient/patient/index.vue
@@ -478,7 +478,15 @@
  updatepat_archive,
  delpat_archive,
} from "@/api/smartorpor/pat_archive";
import { listbase_tag } from "@/api/smartorpor/base_tag";
import {
  messagelistpatient,
  alterpatient,
  addpatient,
  particularpatient,
  deletepatient,
  Exporterrorpatient,
  toleadpatient,
} from "@/api/patient/homepage";
import { listtag } from "@/api/system/label";
import { getToken } from "@/utils/auth";
import Treeselect from "@riophae/vue-treeselect";
@@ -634,7 +642,7 @@
    /** 查询患者列表 */
    getList() {
      this.loading = true;
      listpat_archive(this.queryParams).then((response) => {
      messagelistpatient(this.queryParams).then((response) => {
        console.log(response);
        this.userList = response.rows;
        this.total = response.total;
@@ -644,7 +652,7 @@
    /** 查询标签列表 */
    gettabList() {
      const queryParams = {};
      listbase_tag().then((response) => {
      listtag().then((response) => {
        console.log(response);
        this.optionstag = response.rows;
      });
@@ -718,7 +726,7 @@
    handleUpdate(row) {
      console.log(row);
      const userIds = row.patid || this.ids;
      getpat_archive(userIds).then((response) => {
      particularpatient(userIds).then((response) => {
        console.log(response);
        this.form = response.data;
      });
@@ -729,7 +737,7 @@
    //修改/新增患者
    submitForm() {
      if (this.amendtag) {
        updatepat_archive(this.form)
        alterpatient(this.form)
          .then((response) => {
            console.log(response);
          })
@@ -738,7 +746,7 @@
            this.$modal.msgSuccess("修改成功");
          });
      } else {
        addpat_archive(this.form)
        addpatient(this.form)
          .then((response) => {
            console.log(response);
          })
@@ -758,7 +766,7 @@
      this.$modal
        .confirm('是否确认删除用户编号为"' + userIds + '"的数据项?')
        .then(function () {
          return delpat_archive(userIds);
          return deletepatient(userIds);
        })
        .then(() => {
          this.getList();