<!--
  @description: 抽取申请-抽取申請-添加
  @author: qrf
  @routerPath:/expert/extractApplyDetail
  @date: 2020-10-30 17:35:58
-->
<template>
  <div class="projectInfoDetail">
    <el-form ref="form" label-width="160px" :rules="rulesExtract">
      <div class="page-title">
        <span class="be-required">2 抽取申请</span>
      </div>
      <div>
        <section>
          <table class="from_table">
            <!--抽取申请编号--->
            <tr>
              <td>
                <el-form-item label="抽取申请编号" prop="applyCode" />
              </td>
              <td colspan="3">
                <el-input v-model="allData.applyCode" style="width:90%" disabled />
              </td>
            </tr>
            <tr>
              <td>
                <el-form-item label="评标阶段" prop="stageType" />
              </td>
              <td>
                <el-radio-group v-model="allData.stageType">
                  <el-radio label="00">
                    资格预审
                  </el-radio>
                  <el-radio label="01">
                    资格后审
                  </el-radio>
                </el-radio-group>
              </td>
              <td>
                <el-form-item label="专家确定方式" prop="rakeType" />
              </td>
              <td>
                <el-radio-group v-model="allData.rakeType" :disabled="!!typeIs">
                  <el-radio label="00">
                    随机抽取
                  </el-radio>
                  <el-radio label="01">
                    直接指定
                  </el-radio>
                </el-radio-group>
              </td>
            </tr>
            <tr>
              <td>
                <el-form-item label="评标开始时间" prop="startTime" />
              </td>
              <td>
                <el-date-picker
                  v-model="allData.startTime"
                  :format="elValueFormat"
                  :value-format="elValueFormat"
                  type="date"
                  placeholder="选择日期"
                />
              </td>
              <td>
                <el-form-item label="评标结束时间" prop="endTime" />
              </td>
              <td>
                <el-date-picker
                  v-model="allData.endTime"
                  :format="elValueFormat"
                  :value-format="elValueFormat"
                  type="date"
                  placeholder="评标结束时间"
                  style="width: 90%"
                />
              </td>
            </tr>
            <tr>
              <td>
                <el-form-item label="专家人数" prop="expertNum" />
              </td>
              <td>
                <el-input
                  v-model="allData.expertNum"
                  placeholder="请输入专家人数"
                  type="number"
                  min="0"
                />
              </td>
              <td>
                <el-form-item label="业主代表人数" prop="ownerNum" />
              </td>
              <td>
                <el-input
                  v-model="allData.ownerNum"
                  placeholder="请输入业主代表人数"
                  type="number"
                  min="0"
                />
              </td>
            </tr>
            <tr>
              <td>
                <el-form-item ref="area" label="评标地点" prop="area" />
              </td>
              <td colspan="3">
                <el-cascader
                  v-model="allData.area"
                  :options="regionData"
                  style="width:31%"
                  @change="addressChangeF"
                />
                <el-input v-model="allData.adress" style="width:60%" />
              </td>
            </tr>
            <tr>
              <td>
                <el-form-item label="抽取回避" prop="attendDay" />
              </td>
              <td colspan="3">
                <el-input v-model="allData.attendDay" class="only_input" style="width:10%" />天内参加过评标的专家不再抽取 一个月参加过
                <el-input v-model="allData.attendCount" class="only_input" style="width:10%" />次评标的专家不再抽取
              </td>
            </tr>
          </table>
        </section>
      </div>
    </el-form>
  </div>
</template>
<script>
export default {
  name: 'ExtractApplyFormAdd',
  data() {
    return {
      formData: {
        applyCode: '', // 抽取申请编号
        stageType: '01', // 评标阶段 00 资审 01 后审
        rakeType: '00', // 专家确定方式 指定抽取方式 00随机抽取 01直接指定
        startTime: '', // 评标开始时间
        endTime: '', // 评标结束时间
        expertNum: '', // 专家人数
        ownerNum: '', // 业主代表人数
        address: '', // 详细地址
        areaCode: '', // 评标地点（区编号）
        areaName: '', // 评标地点（区名称）
        attendCount: '', // 一个月内参加过几次的专家不再被抽
        attendDay: '', // 多少天内参加过评标的专家不再抽取
        auditStatus: '', // 00审核中，02驳回，01通过
        cityCode: '', // 评标地点（市编号）
        cityName: '' // 评标地点（市名称）
      }
    }
  }
}
</script>
