WXL
3 天以前 30e7ca11b36177cdaea2839aa5146c180ce53197
src/views/followvisit/tasklist/index.vue
@@ -23,7 +23,7 @@
            @keyup.enter.native="handleQuery"
          ></el-input>
        </el-form-item>
        <el-form-item label="创发送时间">
        <el-form-item label="发送时间">
          <el-date-picker
            v-model="dateRange"
            style="width: 240px"
@@ -214,10 +214,10 @@
          sortable
          align="center"
          prop="createTime"
          width="160"
          width="180"
        >
          <template slot-scope="scope">
            <span>{{ formatTime(scope.row.createTime) }}</span>
            <span>{{ parseTime(scope.row.createTime) }}</span>
          </template>
        </el-table-column>
@@ -471,10 +471,10 @@
        },
      ],
      taskoptions: [
        {
          value: "1",
          label: "监测评估",
        },
        // {
        //   value: "1",
        //   label: "监测评估",
        // },
        {
          value: "2",
          label: "出院随访",
@@ -491,15 +491,14 @@
          value: "5",
          label: "复诊管理",
        },
        {
          value: "6",
          label: "满意度调查",
        },
        // {
        //   value: "6",
        //   label: "满意度调查",
        // },
        {
          value: "7",
          label: "患者报告",
        },
        {
          value: "8",
          label: "其他通知",
@@ -604,7 +603,7 @@
      topqueryParams: {
        pageNum: 1,
        pageSize: 10,
        type: 1,
        type: 2,
        userName: undefined,
        tagid: undefined,
        topic: undefined,
@@ -689,8 +688,6 @@
    /** 查询任务列表 */
    getList() {
      this.loading = true;
      console.log(this.topqueryParams.type);
      this.topqueryParams.serviceType = Number(this.tasktopic);
      if (
        this.tasktopic == 2 ||
@@ -699,7 +696,7 @@
        this.tasktopic == 7 ||
        this.tasktopic == 6
      ) {
        if (!this.topqueryParams.type) this.topqueryParams.type = '2';
        if (!this.topqueryParams.type) this.topqueryParams.type = "2";
        this.longtermlist = [
          {
            value: 1,
@@ -711,7 +708,7 @@
          },
        ];
      } else if (this.tasktopic == 4 || this.tasktopic == 8) {
        if (!this.topqueryParams.type) this.topqueryParams.type = '3';
        if (!this.topqueryParams.type) this.topqueryParams.type = "3";
        this.longtermlist = [
          {
            value: 3,
@@ -719,7 +716,7 @@
          },
        ];
      } else if (this.tasktopic == 5) {
        if (!this.topqueryParams.type) this.topqueryParams.type = '1';
        if (!this.topqueryParams.type) this.topqueryParams.type = "1";
        this.longtermlist = [
          {
            value: 1,
@@ -784,6 +781,11 @@
    /** 搜索按钮操作 */
    handleQuerytask() {
      this.topqueryParams.pageNum = 1;
      if (this.tasktopic == 4) {
        this.topqueryParams.type = 3;
      }else{
        this.topqueryParams.type = 2;
      }
      // this.topqueryParams.type = '';
      this.getList();
    },
@@ -794,9 +796,16 @@
    /** 重置按钮操作 */
    resetQuery() {
      this.dateRange = [];
      this.resetForm("queryForm");
      this.topqueryParams.deptId = undefined;
      this.$refs.tree.setCurrentKey(null);
      this.topqueryParams = {
        pageNum: 1,
        pageSize: 10,
        type: 2,
      };
      this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
        (obj) => obj.deptCode
      );
      this.topqueryParams.leavehospitaldistrictcodes =
        store.getters.belongWards.map((obj) => obj.districtCode);
      this.handleQuery();
    },
    // 多选框选中数据
@@ -935,6 +944,19 @@
        this.TaskOperation.sendState = 2;
        this.TaskOperation.sendType = 2;
        this.$modal
          .confirm({
            title: "确认操作",
            text: "你确定要执行这个操作吗?",
            showCancelButton: true,
            confirmButtonText: "确定",
            cancelButtonText: "取消",
          })
          .then((result) => {
            if (result.value) {
              console.log("用户点击了确定按钮");
            }
          });
        this.$modal
          .confirm(
            '当前选中任务名称为"' +
              row.taskName +