WXL
2024-09-11 b5a56d53e44c426fa188ba3e4e1db3eb779e2fd9
src/views/patient/questionnaire/index.vue
@@ -158,26 +158,28 @@
        <el-table-column type="selection" width="50" align="center" />
        <el-table-column
          label="序号"
          fixed
          align="center"
          key="userId"
          prop="userId"
        />
        <el-table-column
          label="姓名"
          fixed
          align="center"
          key="patientname"
          prop="patientname"
        />
        <el-table-column
          label="床号"
          align="center"
          sortable
          key="userName"
          prop="userName"
          key="bedNo"
          prop="bedNo"
          width="120"
        />
        <el-table-column label="姓名" align="center" key="types" prop="types" />
        <el-table-column
          label="年龄"
          align="center"
          key="nickName"
          prop="nickName"
        />
        <el-table-column label="年龄" align="center" key="age" prop="age" />
        <el-table-column
          label="科室/病区"
          align="center"
@@ -202,8 +204,8 @@
        <el-table-column
          label="发送方式"
          align="center"
          key="topicnumber"
          prop="topicnumber"
          key="topicnumberc"
          prop="topicnumberc"
          width="120"
          :show-overflow-tooltip="true"
        >
@@ -214,8 +216,8 @@
        <el-table-column
          label="发送内容"
          align="center"
          key="topicnumberaa"
          prop="topicnumberaa"
          key="topicnumberb"
          prop="topicnumberb"
          width="120"
        />
        <el-table-column
@@ -225,18 +227,6 @@
          prop="topicnumberaa"
          width="120"
        />
        <el-table-column
          label="发送状态"
          align="center"
          key="topicnumber"
          prop="topicnumber"
          width="120"
          :show-overflow-tooltip="true"
        >
          <template slot-scope="scope">
            <div>已发送</div>
          </template>
        </el-table-column>
        <el-table-column
          label="就诊时间"
@@ -246,7 +236,7 @@
          width="160"
        >
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.createTime) }}</span>
            <span>{{ formatTime(scope.row.createTime) }}</span>
          </template>
        </el-table-column>
        <el-table-column
@@ -257,7 +247,7 @@
          width="160"
        >
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.createTime) }}</span>
            <span>{{ formatTime(scope.row.createTime) }}</span>
          </template>
        </el-table-column>
        <el-table-column
@@ -268,18 +258,31 @@
          width="160"
        >
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.createTime) }}</span>
            <span>{{ formatTime(scope.row.createTime) }}</span>
          </template>
        </el-table-column>
        <el-table-column
          label="发送状态"
          align="center"
          key="topicnumbera"
          prop="topicnumbera"
          width="120"
          :show-overflow-tooltip="true"
        >
          <template slot-scope="scope">
            <div>已发送</div>
          </template>
        </el-table-column>
        <el-table-column
          label="操作"
          fixed="right"
          align="center"
          width="200"
          class-name="small-padding fixed-width"
        >
          <template slot-scope="scope">
            <el-button
            <!-- <el-button
              size="medium"
              type="text"
              @click="followupvisit(scope.row)"
@@ -296,7 +299,7 @@
              ><span class="button-sc"
                ><i class="el-icon-delete"></i>停止</span
              ></el-button
            >
            > -->
            <el-button
              size="medium"
              type="text"
@@ -452,7 +455,6 @@
<script>
import {
  listUser,
  getUser,
  delUser,
  addUser,
@@ -460,6 +462,8 @@
  resetUserPwd,
  changeUserStatus,
} from "@/api/system/user";
import { getTaskservelist } from "@/api/AiCentre/index";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@@ -585,9 +589,8 @@
      topqueryParams: {
        pageNum: 1,
        pageSize: 10,
        userName: undefined,
        tagid: undefined,
        topic: undefined,
        serviceType:7,
      },
      propss: { multiple: true },
      options: [],
@@ -675,13 +678,11 @@
    /** 查询门诊随访列表 */
    getList() {
      this.loading = true;
      listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then(
        (response) => {
          this.userList = response.rows;
          this.total = response.total;
          this.loading = false;
        }
      );
      getTaskservelist(this.topqueryParams).then((response) => {
        this.userList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 查看门诊随访详情
    Referencequestion(row) {
@@ -780,30 +781,15 @@
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.addalteropen = true;
      // getUser().then((response) => {
      //   this.postOptions = response.posts;
      //   this.roleOptions = response.roles;
      //   this.title = "新增门诊随访";
      //   this.form.password = this.initPassword;
      // });
      this.$router.push({
        path: "/followvisit/QuestionnaireTask",
        query: {
          type: 2,
          serviceType: 7,
        },
      });
    },
    /** 修改按钮操作 */
    // handleUpdate(row) {
    //   this.reset();
    //   const userId = row.userId || this.ids;
    //   getUser(userId).then((response) => {
    //     this.form = response.data;
    //     this.postOptions = response.posts;
    //     this.roleOptions = response.roles;
    //     this.$set(this.form, "postIds", response.postIds);
    //     this.$set(this.form, "roleIds", response.roleIds);
    //     this.addalteropen = true;
    //     this.title = "修改用户";
    //     this.form.password = "";
    //   });
    // },
    /** 重置密码按钮操作 */
    handleResetPwd(row) {
      this.$prompt('请输入"' + row.userName + '"的新密码', "提示", {
@@ -899,10 +885,10 @@
      this.modificationVisible = true;
    },
    // 跳转详情页
    Seedetails() {
    Seedetails(row) {
      this.$router.push({
        path: "/followvisit/particty",
        query: { type: 6 },
        path: "/followvisit/QuestionnaireTask",
        query: { taskid: row.taskid, patid: row.patid },
      });
    },
    // 导入按钮