WXL
2025-01-16 09a1bd58e04706d7e1d6e1543b990c08a4b8f97c
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"
@@ -318,7 +321,7 @@
        @pagination="getList"
      />
    </el-row>
    <!-- 添加或修改门诊随访对话框 -->
    <!-- 添加或修改影像随访对话框 -->
    <el-dialog
      :title="title"
      :visible.sync="addalteropen"
@@ -361,7 +364,7 @@
        </el-row>
        <el-row :gutter="20">
          <el-col :span="24">
            <el-form-item label="门诊随访要求">
            <el-form-item label="影像随访要求">
              <el-input type="textarea" v-model="form.desc"></el-input>
            </el-form-item>
          </el-col>
@@ -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";
@@ -484,7 +488,7 @@
      // 用户表格数据
      userList: null,
      // 弹出层标题
      title: "新增门诊随访",
      title: "新增影像随访",
      // 是否显示修改、添加弹出层
      addalteropen: false,
      // 修改发送时间对话框
@@ -503,13 +507,13 @@
      dynamicTags: ["选项一", "选项二", "选项三"], //选项
      inputVisible: false,
      inputValue: "",
      previewVisible: false, //门诊随访预览弹框
      previewVisible: false, //影像随访预览弹框
      radio: "",
      radios: [],
      previewtype: 2, //预览门诊随访类型
      previewtype: 2, //预览影像随访类型
      total: 0, // 总条数
      ImportQuantity: 999, //导门诊随访数量
      //预览门诊随访信息
      ImportQuantity: 999, //导影像随访数量
      //预览影像随访信息
      previewvalue: {
        username: "这个医生对你怎么样",
      },
@@ -585,9 +589,8 @@
      topqueryParams: {
        pageNum: 1,
        pageSize: 10,
        userName: undefined,
        tagid: undefined,
        topic: undefined,
        serviceType:7,
      },
      propss: { multiple: true },
      options: [],
@@ -672,18 +675,16 @@
    });
  },
  methods: {
    /** 查询门诊随访列表 */
    /** 查询影像随访列表 */
    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) {
      this.previewVisible = true;
    },
@@ -701,7 +702,7 @@
        this.options = [];
      }
    },
    // 门诊随访状态修改
    // 影像随访状态修改
    handleStatusChange(row) {
      let text = row.status === "0" ? "启用" : "停用";
      this.$modal
@@ -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/record/detailpage/",
        query: { id: "1" },
        path: "/followvisit/QuestionnaireTask",
        query: { taskid: row.taskid, patid: row.patid },
      });
    },
    // 导入按钮