<template>
  <div class="dialog" v-if="dialogForm">
    <div class="head_box">
      <span class="title">公安机关日常检查信息详情</span>
      <div>
        <el-button size="small" @click="close">关闭</el-button>
      </div>
    </div>
    <div class="cntinfo">
      <el-form :model="listQuery" :label-width="230" label-position="left">
        <div class="form-row">
          <el-form-item label="场所代码">
            <el-input v-model="listQuery.csdm" placeholder="01"/>
          </el-form-item>
          <el-form-item label="场所名称">
            <el-input v-model="listQuery.csmc" placeholder="天上人间ktv"/>
          </el-form-item>
        </div>

        <div class="form-row">
          <el-form-item label="日常检查登记号">
            <el-input v-model="listQuery.rcjcdjh" placeholder="1"/>
          </el-form-item>
          <el-form-item label="场所负责人">
            <el-input v-model="listQuery.csfzr" placeholder="李四"/>
          </el-form-item>
        </div>

        <div class="form-row">
          <el-form-item label="检查人姓名">
            <el-input v-model="listQuery.jcrxm" placeholder="张三"/>
          </el-form-item>
          <el-form-item label="检查人警号">
            <el-input v-model="listQuery.jcrjh" placeholder="123456"/>
          </el-form-item>
        </div>    

        <div class="form-row">
          <el-form-item label="公安机关机构代码">
            <el-input v-model="listQuery.gajgjgdm" placeholder="1234566"/>
          </el-form-item>
          <el-form-item label="检查部门">
            <el-input v-model="listQuery.jcbm" placeholder="巴宜区防范路演出所"/>
          </el-form-item>
        </div>    
        
        <el-form-item label="场所检查简要情况">
          <el-input type="textarea" v-model="listQuery.csjcjyqk" :rows="4" placeholder="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"/>
        </el-form-item>

        <el-form-item label="检查结果简要情况">
          <el-input type="textarea" v-model="listQuery.jcjgjyqk" :rows="4" placeholder="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"/>
        </el-form-item>
      </el-form>
    </div>
    
  </div>
</template>

<script setup>
import { ref, reactive } from 'vue';
import { Plus } from '@element-plus/icons-vue';

const dialogForm = ref(false);
const activeName = ref('basic');
const title = ref('详情');
const listQuery = ref({
});

const areaOptions = ref([]); // 区域选项数据

// 初始化数据
const init = (type, row,) => {
  dialogForm.value = true;
  // 根据type和row初始化表单数据
};

const close = () => {
  dialogForm.value = false;
};

defineExpose({init})
</script>

<style lang="scss" scoped>
.dialog {
  padding: 20px;

  :deep(.el-form-item__label) {
    background-color: #F7FAFB;
    padding: 0px 8px;
    color: #000;
    font-weight: 500;
    border: 1px solid #E3E7ED;
  }

  .head_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  .cntinfo{
    height: calc(100% - 70px);
    overflow: hidden;
    overflow-y: auto;
  }

  .form-row {
    display: flex;
    
    .el-form-item {
      flex: 1;
    }
  }

  .upload-group {
    display: flex;
    // gap: 20px;
    
    .el-form-item {
      flex: 1;
    }
  }

  .unit {
    margin-left: 5px;
  }
   ::v-deep .el-input__inner{
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 0;
    color: #777575;
  }
}
.el-form-item--default{
  margin-bottom: 0px;
}
</style>