WXL
2024-09-11 b5a56d53e44c426fa188ba3e4e1db3eb779e2fd9
src/views/followvisit/record/detailpage/index.vue
@@ -4,7 +4,22 @@
    <div class="Followuserinfo">
      <div>
        <div class="userinfo-text">
          {{ sendname }}<span>患者服务详情</span>
          <!-- <span>患者服务详情</span> -->
          <div class="headline">
              <div>患者服务详情</div>
              <div style="margin-left: 20px">
                    <el-button
                    v-if="!Whetherall"
                      type="primary"
                      @click="getTaskservelist()"
                    >查看患者全部服务</el-button>
                    <el-button
                    v-else
                      type="success"
                      @click="getTaskservelist(taskid)"
                    >查看患者本次服务信息</el-button>
              </div>
            </div>
          <!-- <el-button type="success">随访后短信</el-button> -->
        </div>
      </div>
@@ -46,7 +61,7 @@
            width="210"
          >
          </el-table-column>
          <el-table-column
          <!-- <el-table-column
            label="操作"
            fixed="right"
            align="center"
@@ -64,7 +79,7 @@
                ></el-button
              >
            </template>
          </el-table-column>
          </el-table-column> -->
        </el-table>
      </div>
    </div>
@@ -203,6 +218,7 @@
      radio: "2",
      taskname: "",
      tableDatatop: [], //题目表
      Whetherall:false, //是否全部记录展示
      logsheetlist: [],
      sendname: null,
      serviceType: null,
@@ -217,7 +233,7 @@
    this.patid = this.$route.query.patid;
    this.serviceType = this.$route.query.serviceType;
    this.getsearchrResults();
    this.getTaskservelist();
    this.getTaskservelist(this.taskid);
  },
  methods: {
@@ -241,16 +257,27 @@
      });
    },
    // 获取患者记录
    getTaskservelist() {
    getTaskservelist(taskid) {
      if (taskid) {
        this.Whetherall=false;
      }else{
        this.Whetherall=true;
      }
      getTaskservelist({
        patid: this.patid,
        taskid: taskid,
      }).then((res) => {
        if (res.code == 200) {
          this.logsheetlist = res.rows;
        }
      });
    },
    Seedetails() {},
    Seedetails(row) {
      this.$modal.confirm('是否查看任务为"' + optionids + '"的服务项?').then(function () {
        }).then(() => {
          this.getList();
        }).catch(() => { });
    },
  },
};
</script>
@@ -331,6 +358,20 @@
    }
  }
}
.headline {
    font-size: 24px;
    height: 40px;
    border-left: 5px solid #41a1be;
    padding-left: 5px;
    margin-bottom: 10px;
    display: flex;
    // justify-content: space-between;
    .Add-details {
      font-size: 18px;
      color: #02a7f0;
      cursor: pointer;
    }
  }
::v-deep.offside-value .el-radio__label {
  color: #fff;
}