WXL
2023-12-15 4e32f1188e9d0cafd3511994d2d13617ca6e08f9
src/views/patient/patient/profile/index.vue
@@ -95,7 +95,10 @@
    <!-- 健康档案模块 -->
    <div class="information-content" v-if="activeName == 'health'">
      <div class="top-message">
        <div class="headline">基础信息</div>
        <div class="headlines">
          <div>基础信息</div>
          <el-button type="primary" @click="savefile">保存患者档案</el-button>
        </div>
        <div class="detailed">
          <el-row :gutter="20">
            <el-col :span="12"
@@ -145,17 +148,18 @@
                  v-if="inputVisible"
                  @change="handleInputConfirm"
                  filterable
                  allow-create
                  default-first-option
                  placeholder="请选择"
                >
                  <el-option
                    v-for="item in options"
                    :key="item.label"
                    :label="item.label"
                    :value="item.label"
                    :key="item.tagname"
                    :label="item.tagname"
                    :value="item.tagname"
                  >
                  </el-option>
                </el-select>
                <el-button
                  v-else
@@ -232,7 +236,7 @@
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="吸烟情况" prop="iccardtype">
                <el-form-item label="吸烟情况" prop="idcardtype">
                  <el-radio-group v-model="form.radio">
                    <el-radio :label="1">有</el-radio>
                    <el-radio :label="2">无</el-radio>
@@ -240,7 +244,7 @@
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="饮酒情况" prop="iccardno">
                <el-form-item label="饮酒情况" prop="idcardno">
                  <el-radio-group v-model="form.radios">
                    <el-radio :label="1">有</el-radio>
                    <el-radio :label="2">无</el-radio>
@@ -248,7 +252,7 @@
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="运动情况" prop="iccardno">
                <el-form-item label="运动情况" prop="idcardno">
                  <el-radio-group v-model="form.radiosa">
                    <el-radio :label="1">有</el-radio>
                    <el-radio :label="2">无</el-radio>
@@ -258,19 +262,19 @@
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="饮食情况" prop="iccardno">
                <el-form-item label="饮食情况" prop="idcardno">
                  <el-radio-group v-model="form.radiosa">
                    <el-radio :label="1">多度饮食</el-radio>
                    <el-radio :label="1">过度饮食</el-radio>
                    <el-radio :label="2">正常饮食</el-radio>
                    <el-radio :label="2">食欲不振</el-radio>
                    <el-radio :label="3">食欲不振</el-radio>
                  </el-radio-group>
                </el-form-item> </el-col
              ><el-col :span="12">
                <el-form-item label="心理情况" prop="iccardno">
                <el-form-item label="心理情况" prop="idcardno">
                  <el-radio-group v-model="form.radiosa">
                    <el-radio :label="1">心情愉悦</el-radio>
                    <el-radio :label="2">轻微焦虑</el-radio>
                    <el-radio :label="2">抑郁</el-radio>
                    <el-radio :label="3">抑郁</el-radio>
                  </el-radio-group>
                </el-form-item>
              </el-col>
@@ -281,7 +285,7 @@
      <!-- 联系电话 -->
      <div class="bottom-message">
        <div class="headline">
          号码维护
          号码维护<span style="margin-right: 60px">&nbsp;&nbsp;</span>
          <el-button type="primary" @click="AddanumberVisible = true"
            >+新增</el-button
          >
@@ -589,16 +593,23 @@
import resetPwd from "./resetPwd";
import * as echarts from "echarts";
import SFtable from "@/components/SFtable"; //表格组件
import { getUserProfile } from "@/api/system/user";
import { listJob } from "@/api/monitor/job"; //获取列表接口待定
import { listtag } from "@/api/system/label";
import {
  messagelistpatient,
  addmedicalhistory,
  getmedicalhistory,
  editmedicalhistory,
  deletepatient,
  Exporterrorpatient,
  toleadpatient,
} from "@/api/patient/homepage";
export default {
  name: "Profile",
  components: { userAvatar, userInfo, resetPwd, SFtable },
  data() {
    return {
      user: {},
      userform: {},
      roleGroup: {},
      postGroup: {},
      form: {},
@@ -610,6 +621,7 @@
      yynumber: 12,
      total: 0, // 总条数
      activeTab: "userinfo",
      id: "",
      activeName: "health", //一类导航
      sonactiveName: "outpatient", //健康监测导航
      sontwoactiveName: "blood", //医疗档案导航
@@ -755,18 +767,42 @@
      this.xueyangechartsInit();
      this.twechartsInit();
    });
    this.getList();
    this.id = this.$route.query.id;
    this.getuserinfo();
    this.gettabList();
  },
  methods() {},
  methods: {
    // 查询列表
    // 查询档案列表信息
    getList() {
      this.loading = true;
      listJob(this.queryParams).then((response) => {
        this.jobList = 1;
        this.total = 1;
        this.loading = false;
    },
    getuserinfo() {
      console.log(this.id);
      const queryParams = {
        pid: Number(this.id),
        allhosp: "0",
        pageNum: 1,
      };
      messagelistpatient(queryParams).then((response) => {
        console.log(response);
        this.userform = response.rows[0];
        console.log(this.userform);
      });
    },
    // 保存患者档案
    savefile() {},
    /** 查询标签列表 */
    gettabList() {
      const tagqueryParams = {
        pageNum: 1,
        pageSize: 1000,
        tagcategoryid: "0",
      };
      listtag(tagqueryParams).then((response) => {
        console.log(response);
        this.options = response.rows;
      });
    },
    handleClick(tab, event) {
@@ -1176,7 +1212,7 @@
                },
                {
                  offset: 1,
                  color: "#c4d7d6"
                  color: "#c4d7d6",
                },
              ]),
            },
@@ -1195,12 +1231,12 @@
        ["2000-06-05", 36.8],
        ["2000-06-06", 36.2],
        ["2000-06-07", 37.8],
        ["2000-06-08",37.8],
        ["2000-06-09",37.2],
        ["2000-06-10",36.2],
        ["2000-06-11",37.8],
        ["2000-06-12",36.9],
        ["2000-06-13",36.8],
        ["2000-06-08", 37.8],
        ["2000-06-09", 37.2],
        ["2000-06-10", 36.2],
        ["2000-06-11", 37.8],
        ["2000-06-12", 36.9],
        ["2000-06-13", 36.8],
        ["2000-06-14", 36.4],
        ["2000-06-15", 37.1],
        ["2000-06-16", 36.9],
@@ -1210,7 +1246,7 @@
        ["2000-06-20", 36.6],
        ["2000-06-21", 36.8],
        ["2000-06-22", 36.2],
        ["2000-06-23",37.8],
        ["2000-06-23", 37.8],
      ];
      const dateList = data.map(function (item) {
        return item[0];
@@ -1231,7 +1267,7 @@
            max: 400,
          },
        ],
        tooltip: {
          trigger: "axis",
        },
@@ -1261,7 +1297,7 @@
.personages {
  height: 88px;
  width: 100%;
  background-color: #2486b9;
  background-color: #5e86f9;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 10px;
@@ -1351,6 +1387,15 @@
    margin-bottom: 10px;
    border-left: 8px solid rgb(65, 161, 190);
  }
  .headlines {
    font-size: 25px;
    display: flex;
    width: 88%;
    justify-content: space-between;
    padding-left: 5px;
    margin-bottom: 10px;
    border-left: 8px solid rgb(65, 161, 190);
  }
  .bottom-message {
    margin-bottom: 25px;
    margin-left: 100px;