yxh
2023-11-24 38b17821f508620d6c8bbf8b1b1fd1a72e2d71f2
src/views/patient/patient/index.vue
@@ -155,6 +155,31 @@
            </template>
          </el-table-column>
          <el-table-column
            label="年龄"
            align="center"
            key="age"
            prop="age"
            width="120"
          />
          <el-table-column
            label="出生年月"
            align="center"
            key="archivetime"
            prop="archivetime"
            width="160"
          >
            <template slot-scope="scope">
              <span>{{ parseTime(scope.row.createTime) }}</span>
            </template>
          </el-table-column>
          <el-table-column
            label="家庭住址"
            align="center"
            key="age"
            prop="age"
            width="120"
          />
          <el-table-column
            label="患者标签"
            align="center"
            key="tagList"
@@ -178,13 +203,6 @@
            key="iccardno"
            prop="iccardno"
            width="190"
          />
          <el-table-column
            label="年龄"
            align="center"
            key="age"
            prop="age"
            width="120"
          />
          <el-table-column
@@ -478,7 +496,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 +660,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 +670,7 @@
    /** 查询标签列表 */
    gettabList() {
      const queryParams = {};
      listbase_tag().then((response) => {
      listtag().then((response) => {
        console.log(response);
        this.optionstag = response.rows;
      });
@@ -718,7 +744,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 +755,7 @@
    //修改/新增患者
    submitForm() {
      if (this.amendtag) {
        updatepat_archive(this.form)
        alterpatient(this.form)
          .then((response) => {
            console.log(response);
          })
@@ -738,7 +764,7 @@
            this.$modal.msgSuccess("修改成功");
          });
      } else {
        addpat_archive(this.form)
        addpatient(this.form)
          .then((response) => {
            console.log(response);
          })
@@ -758,7 +784,7 @@
      this.$modal
        .confirm('是否确认删除用户编号为"' + userIds + '"的数据项?')
        .then(function () {
          return delpat_archive(userIds);
          return deletepatient(userIds);
        })
        .then(() => {
          this.getList();