<template>
  <div class="business">
    <div class="fileBox">
      <p class="title">建立屈光档案</p>
      <el-button type="primary" size="small">发送</el-button>
    </div>
    <div style="margin: 12px 0">
      状态：<span class="circle">已发送</span>
    </div>
    <div style="margin-bottom: 60px;">
      备注：
      <el-select
        v-model="value10"
        style="width: 360px"
        clearable
        filterable
        allow-create
        placeholder="主诉"
        @blur="selectZs"
      >
        <el-option
          v-for="item in options5"
          :key="item.value"
          :label="item.label"
          :value="item.value"
        />
      </el-select>
    </div>
    <div class="fileBox">
      <p class="title">预约激光治疗</p>
      <el-button type="primary" size="small">发送</el-button>
    </div>
    <div style="margin: 12px 0">
      状态：<span class="circle">已发送</span>
    </div>
    <div>
      备注：
      <el-select
        v-model="value10"
        style="width: 360px"
        clearable
        filterable
        allow-create
        placeholder="主诉"
        @blur="selectZs"
      >
        <el-option
          v-for="item in options5"
          :key="item.value"
          :label="item.label"
          :value="item.value"
        />
      </el-select>
    </div>
  </div>
</template>

<script>
import dialogjs from '@/mixins/dialog'

export default {
  components: {
  },
  mixins: [dialogjs],
  props: {
    patientIdNumber: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      remark: '',
      currentNumber: '',
      options5: [{
        value: 'HTML',
        label: 'HTML'
      }, {
        value: 'CSS',
        label: 'CSS'
      }, {
        value: 'JavaScript',
        label: 'JavaScript'
      }],
      value10: [],
      collectProps: {
        children: 'childs',
        label: 'name'
      },
      collectData: [],
      tableData: [{
        date: '2016-05-02',
        name: '王小虎1',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-04',
        id: 1,
        name: '王小虎2',
        address: '上海市普陀区金沙江路 1517 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎3',
        id: 2,
        address: '上海市普陀区金沙江路 1519 弄'
      }, {
        date: '2016-05-03',
        name: '王小虎4',
        id: 3,
        address: '上海市普陀区金沙江路 1516 弄'
      }],
      setPlanList: [],
      addFollowList: [],
      patientInfoHeadHeight: '',
      crfSelectVisible: false
    }
  },
  watch: {

  },
  created() {

  },
  mounted() {

  },
  methods: {
    searchRemark(data) {
      // this.treeId = data.id
      // this.remark = data.hisManagePatientEntity ? data.hisManagePatientEntity.remark : ''
      // this.remarkId = data.hisManagePatientEntity ? data.hisManagePatientEntity.id : ''
    },
    selectZs(e) {
      console.log(e)
      this.value10 = e.target.value
    },
    async handleAddPatient() {
      const params = {
        remark: this.remark,
        treeId: this.treeId,
        id: this.remarkId,
        patientId: this.patientIdNumber
      }
      const { data: res } = await this.$http.post('/base/patient/tag/addPatientTree', params)
      if (res.code === 0) {
        this.$message.success('保存成功')
        this.searchTree()
      } else {
        this.$message.error(res.msg)
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.business {
  width: 650px;
  padding: 16px;
  box-sizing: border-box;
  box-sizing: border-box;
  .fileBox{
    display: flex;
    justify-content: space-between;

    .title{
      color: rgba(0, 0, 0, 0.88);
      font-weight: 500;
      font-size: 16px;
      margin-top: 6px;
    }
  }
  .circle{
    &::before {
      content: '';
      width: 6px;
      height: 6px;
      margin:0 8px;
      display: inline-block;
      vertical-align: middle;
      background: #52C41A;
      border-radius: 50%;
    }
  }
}
</style>
