WXL
2024-08-13 d1367a2eafbc26cadf07abb3caa94a0d64d09cab
src/views/patient/patient/profile/index.vue
@@ -42,7 +42,7 @@
        <span class="mulsz" slot="label"
          ><i class="el-icon-s-management"></i> 医疗档案</span
        >
        <el-tabs v-model="sonactiveName" @tab-click="handleClick">
        <el-tabs v-model="sonactiveName" @tab-click="handleClickson">
          <el-tab-pane name="outpatient"
            ><span class="mulsz" slot="label"
              >门诊({{ mznumber }})</span
@@ -638,6 +638,8 @@
  alterpatient,
  Patientclinic,
} from "@/api/patient/homepage";
import { listPatouthosp } from "@/api/smartor/patouthosp";
import { listpatient } from "@/api/patient/record";
export default {
  name: "Profile",
@@ -789,13 +791,23 @@
  },
  methods: {
    // 查询医疗档案列表信息
    getList() {
    // 查询医疗档案各列表信息
    getList(type) {
      this.loading = true;
      if (type == 1) {
      // 门诊记录
      Patientclinic(this.id).then((response) => {
        listPatouthosp({ patid: this.id }).then((response) => {
        console.log(response);
      });
      } else if (type == 2) {
        listpatient({ patid: this.id }).then((response) => {
          console.log(response);
        });
      } else if (type == 3) {
        listpatient({ patid: this.id }).then((response) => {
          console.log(response);
        });
      }
    },
    getcontactlist() {
      listcontactinformation({ patid: this.id }).then((response) => {
@@ -948,9 +960,12 @@
    },
    // tab切换
    handleClick(tab, event) {
      if (tab.index == 1) {
        this.getList();
      }
      this.getList(tab.index);
    },
    handleClickson(tab, event) {
      console.log(tab.index, "son");
      this.getList(tab.index);
    },
    // 联系方式新增
    Addanumber() {},