<template>
  <div style="display: flex;height:32px;margin-top: 2px;">
    <div style="display: flex; flex-wrap: wrap;height:32px; width: 100%">      
      <div>
        <span class="query">总检医生</span>
        <el-select
          v-model="sumDoctorCheck.sumPREdit.summaryDoctor"
          filterable clearable :disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' ? true:false"
          placeholder="请选择"
          style="width: 80px" size="small"
        >
          <el-option
            v-for="item in users"
            :key="item.id"
            :label="item.userName"
            :value="item.id"
          />
        </el-select>
      </div>
      <div>
        <span class="query">总检日期</span>
        <el-date-picker v-model="sumDoctorCheck.sumPREdit.summaryDate" value-format="yyyy-MM-dd" 
          :disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' ? true:false"
          type="date" style="width: 90px" size="small" />
      </div>
      <div style="margin-top: 3px;">
        <span class="query">总检</span>
        <el-checkbox :value="sumDoctorCheck.sumPREdit.completeFlag == '3'" disabled></el-checkbox>        
      </div> 
      <div>
        <span class="query">审核医生</span>
        <el-select
          v-model="sumDoctorCheck.sumPREdit.auditDoctor"
          disabled placeholder="请选择"
          style="width: 80px" size="small"
        >
          <el-option
            v-for="item in users"
            :key="item.id"
            :label="item.userName"
            :value="item.id"
          />
        </el-select>
      </div>
      <div>
        <span class="query">审核日期</span>
        <el-date-picker v-model="sumDoctorCheck.sumPREdit.auditDate" value-format="yyyy-MM-dd" 
          disabled type="date" style="width: 90px" size="small" />
      </div>
      <div style="margin-top: 3px;">
        <span class="query">审核</span>
        <el-checkbox :value="sumDoctorCheck.sumPREdit.isAudit == 'Y'" disabled></el-checkbox>        
      </div>      
    </div>
  </div>
</template>
<script>

import { mapState } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";

export default {
  components: {},
  data() {
    return {
      users:[],
      
    };
  },

  created() {},

  //挂载完成
  mounted() {
    this.dictInit()
  },

  computed: {
    ...mapState(["dict", "doctorCheck","sumDoctorCheck"]),    
  },
  methods: {  
    // 初始化字典数据
    dictInit(){
      getapi('/api/identity/users/getlist')
      .then(res =>{
        if(res.code != -1){
          this.users = res.data.items
        }
      })
    },
    
  },
};
</script>
<style scoped>
.query {
  font-size: 14px;
  margin-left: 10px;
  margin-top: 5px;
  padding: 1px 1px;
}
</style>
