WXL
2025-03-04 83d83221778cf0213a979ebfcb4d75884038d9c1
src/views/followvisit/satisfaction/index.vue
@@ -66,13 +66,23 @@
      <el-divider></el-divider>
      <el-row :gutter="10" class="mb8">
        <el-col :span="1.5">
          <el-select v-model="tasktopic" placeholder="请选择新增类型">
            <el-option
              v-for="item in taskoptions"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </el-col>
        <el-col :span="1.5">
          <el-button
            type="primary"
            plain
            icon="el-icon-plus"
            size="medium"
            :disabled="!tasktopic"
            @click="handleAdd"
            v-hasPermi="['system:user:add']"
            >新增</el-button
          >
        </el-col>
@@ -100,7 +110,7 @@
            >删除</el-button
          >
        </el-col>
        <el-col :span="19">
        <el-col :span="1.5">
          <div class="documentf">
            <div class="document">
              <el-button
@@ -145,6 +155,7 @@
        />
        <el-table-column
          label="姓名"
          width="100"
          align="center"
          sortable
          key="userName"
@@ -152,14 +163,20 @@
          :show-overflow-tooltip="true"
        />
        <el-table-column
                label="年龄"
                align="center"
                key="age"
                prop="age"
                width="120"
              />
          label="年龄"
          align="center"
          key="age"
          prop="age"
          width="120"
        />
        <el-table-column
          label="调查模板"
          align="center"
          key="types"
          prop="types"
        />
        <el-table-column
          label="调查类型"
          align="center"
          key="types"
          prop="types"
@@ -195,7 +212,6 @@
          prop="nickName"
        />
        <el-table-column
          label="执行状态"
          align="center"
@@ -226,7 +242,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
@@ -275,7 +291,7 @@
        @pagination="getList"
      />
    </el-row>
    <!-- 添加或修改门诊随访对话框 -->
    <!-- 添加或修改影像随访对话框 -->
    <el-dialog
      :title="title"
      :visible.sync="addalteropen"
@@ -318,7 +334,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>
@@ -366,7 +382,7 @@
      // 用户表格数据
      userList: null,
      // 弹出层标题
      title: "新增门诊随访",
      title: "新增影像随访",
      // 是否显示修改、添加弹出层
      addalteropen: false,
      // 部门名称
@@ -377,18 +393,33 @@
      dateRange: [],
      // 岗位选项
      postOptions: [],
      taskoptions: [
        {
          value: "1",
          label: "门诊病人",
        },
        {
          value: "2",
          label: "出院病人",
        },
        {
          value: "3",
          label: "医护人员",
        },
      ],
      tasktopic: null, //新增类型
      // 角色选项
      roleOptions: [],
      dynamicTags: ["选项一", "选项二", "选项三"], //选项
      inputVisible: false,
      inputValue: "",
      previewVisible: false, //门诊随访预览弹框
      previewVisible: false, //影像随访预览弹框
      radio: "",
      radios: [],
      previewtype: 2, //预览门诊随访类型
      previewtype: 2, //预览影像随访类型
      total: 0, // 总条数
      ImportQuantity: 999, //导门诊随访数量
      //预览门诊随访信息
      ImportQuantity: 999, //导影像随访数量
      //预览影像随访信息
      previewvalue: {
        username: "这个医生对你怎么样",
      },
@@ -576,7 +607,7 @@
    });
  },
  methods: {
    /** 查询门诊随访列表 */
    /** 查询影像随访列表 */
    getList() {
      this.loading = true;
      listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then(
@@ -587,7 +618,7 @@
        }
      );
    },
    // 查看门诊随访详情
    // 查看影像随访详情
    Referencequestion(row) {
      this.previewVisible = true;
    },
@@ -605,7 +636,7 @@
        this.options = [];
      }
    },
    // 门诊随访状态修改
    // 影像随访状态修改
    handleStatusChange(row) {
      let text = row.status === "0" ? "启用" : "停用";
      this.$modal
@@ -684,12 +715,16 @@
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.addalteropen = true;
      // this.reset();
      // this.addalteropen = true;
      this.$router.push({
        path: "/Intelligentcenter/satisfaction/particulars",
        query: { type: this.tasktopic },
      });
      // getUser().then((response) => {
      //   this.postOptions = response.posts;
      //   this.roleOptions = response.roles;
      //   this.title = "新增门诊随访";
      //   this.title = "新增影像随访";
      //   this.form.password = this.initPassword;
      // });
    },