<template>
  <div class="customer-list">
    <div class="title">
      <span>客户信息</span>
    </div>
    <div class="query">
      <div class="name">
        <span>姓名：</span>
        <input type="text" placeholder="请输入姓名">
      </div>
      <div class="identity">
        <span>身份证号：</span>
        <input type="text" placeholder="请输入身份证号">
      </div>
      <div class="telephone">
        <span>电话：</span>
        <input type="text" placeholder="请输入电话号码">
      </div>
      <button style="right: 700px;top: 10px;">查询</button>
      <button style="right: 100px;top: 10px;">新增</button>
    </div>
    <div class="Tables">
      <div class="information-title">姓名</div>
      <div class="information-title">证件号码</div>
      <div class="information-title">电话号码</div>
      <div class="information-title">家庭地址</div>
      <div class="information-title">典当物品</div>
      <div class="information-title">金额</div>
      <div class="information-title">期限</div>
      <div class="information-title">操作</div>
      <div class="information-title">进度</div>
    </div>
    <div class="Tables-item">
      <div class="Information">
        <div class="information-item"></div>
        <div class="information-item"></div>
        <div class="information-item"></div>
        <div class="information-item"></div>
        <div class="information-item"></div>
        <div class="information-item"></div>
        <div class="information-item"></div>
        <div class="information-item">
          <span>修改</span>|<span>删除</span>
        </div>
        <div class="information-item"></div>
      </div>
    </div>
  </div>
  <el-dialog model-value=true title="客户信息" >
    <el-form>
      <el-row :gutter="30">
        <el-col :span="10">
          <el-form-item label="姓名">
            <el-input placeholder="请输入姓名"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="10">
          <el-form-item label="家庭住址">
            <el-input placeholder="请输入家庭住址"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="30">
        <el-col :span="10">
          <el-form-item label="性别">
            <el-input placeholder="请输入性别"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="10">
          <el-form-item label="证件号码">
            <el-input placeholder="请输入证件号码"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="30">
        <el-col :span="10">
          <el-form-item label="电话">
            <el-input placeholder="请输入电话"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="10">
          <el-form-item label="典当物品">
            <el-input placeholder="请输入典当物品"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="30">
        <el-col :span="10">
          <el-form-item label="金额">
            <el-input placeholder="请输入金额"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="10">
          <el-form-item label="期限">
            <el-date-picker
               start-placeholder="起始时间"
               end-placeholder="截至时间"
               range-separator="|"
               type="daterange"
            />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-form-item label="补充说明">
          <el-input :rows="3" type="textarea" style="width: 600px"></el-input>
        </el-form-item>
      </el-row>
      <el-row>
        <el-upload ref="uploadRef" :auto-upload="false">
          <el-button type="primary">上传文件</el-button>
        </el-upload>
      </el-row>
    </el-form>
  </el-dialog>
</template>

<script>
import {ref} from "vue";
export default {
  name: "myPawn",
  setup(){
    const name = ref('')
    return{
      name
    }
  },
}
</script>

<style scoped>
.customer-list{
  width: 100%;
  height: 800px;
}

.title{
  width: 100%;
  height: 30px;
  background-color: #a0cfff;
  font-weight: bold;
  font-size: 20px;
  position: relative;
}

.title span{
  position: absolute;
  left: 60px;
}
/*查询与新增*/
.query{
  width: 100%;
  height: 50px;
  position: relative;
}


.name{
  position: absolute;
  left: 10px;
  top: 10px;
  width: 270px;
  height: 30px;
  color: #46647e;
  font-weight: 900;
}

.name input{
  height: 25px;
  width: 200px;
  border-radius: 5px;
  border: 1px #ccc solid;
  outline: none;
}

.identity{
  position: absolute;
  left: 300px;
  top: 10px;
  width: 300px;
  height: 30px;
  color: #46647e;
  font-weight: 900;
}

.identity input{
  height: 25px;
  width: 200px;
  border-radius: 5px;
  border: 1px #ccc solid;
  outline: none;
}

.telephone{
  position: absolute;
  left: 630px;
  top: 10px;
  width: 270px;
  height: 30px;
  color: #46647e;
  font-weight: 900;
}

.telephone input{
  height: 25px;
  width: 200px;
  border-radius: 5px;
  border: 1px #ccc solid;
  outline: none;
}

.query button{
  color: white;
  background-color: #01b369;
  border: 0;
  position: absolute;
  width: 70px;
  height: 30px;
  border-radius: 10px;
}

/*用户信息表格*/
.Tables{
  width: 100%;
  height: 40px;
  background-color: #e7f0f6;
  display: flex;
}

.information-title{
  width: 205px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-weight: 900;
}

.Tables-item{
  width: 100%;
  height: 680px;
}

.Information{
  width: 100%;
  height: 40px;
  background-color: #b9d5e7;
  display: flex;
  border-bottom: 1px solid #63a1cb;
}

.information-item{
  width: 205px;
  height: 40px;
  line-height: 40px;
  text-align: center;
}
</style>