
<template>
  <el-card style="margin-top: 16px">
    <el-form
      ref="elForm"
      :disabled="true"
      :model="formData"
      size="mini"
      label-width="180px"
    >
      <div class="tit">
        养殖信息
        <span class="time">更新于:{{ update_time }}</span>
      </div>

      <el-row>
        <el-col :span="8">
          <el-form-item label="有无养殖培训" prop="breeding_training">
            <el-radio-group v-model="datas.breeding_training" size="medium">
              <el-radio label="1">有</el-radio>
              <el-radio label="0">无</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="有无注册成立养殖公司" prop="breeding_company">
            <el-radio-group v-model="datas.breeding_company" size="medium">
              <el-radio label="1">有</el-radio>
              <el-radio label="0">无</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="备注" prop="notes">
            <el-input
              v-model="datas.notes"
              clearable
              autosize
              type="textarea"
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="养殖类型" prop="breeding_type">
            <el-input
              v-model="datas.breeding_type"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="开始时间" prop="breeding_time">
            <el-input
              v-model="datas.breeding_time"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="上市时间" prop="mature_time">
            <el-input
              v-model="datas.mature_time"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="产量(斤)" prop="yield">
            <el-input
              v-model="datas.yield"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="预计收益(元)" prop="estimated_income">
            <el-input
              v-model="datas.estimated_income"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item
            label="农资农具使用情况"
            label-width="180px"
            prop="farm_tools"
          >
            <el-input
              v-model="datas.farm_tools"
              clearable
              autosize
              type="textarea"
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="是否生态养殖" prop="ecological_farming">
            <el-radio-group v-model="datas.ecological_farming" size="medium">
              <el-radio label="1">有</el-radio>
              <el-radio label="0">无</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="现代化程度(%)" prop="modernization">
            <el-input
              v-model="datas.modernization"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="预售卖价格(元/500g)" prop="pre_price">
            <el-input
              v-model="datas.pre_price"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="销售方式" prop="method_sales">
            <el-radio-group v-model="datas.method_sales" size="medium">
              <el-radio label="1">有</el-radio>
              <el-radio label="0">无</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="有无加工仓储" prop="processing_storage">
            <el-radio-group v-model="datas.processing_storage" size="medium">
              <el-radio label="1">有</el-radio>
              <el-radio label="0">无</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="有无宣传推广" prop="promote">
            <el-radio-group v-model="datas.promote" size="medium">
              <el-radio label="1">有</el-radio>
              <el-radio label="0">无</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="有无运输" prop="transportation">
            <el-radio-group v-model="datas.transportation" size="medium">
              <el-radio label="1">有</el-radio>
              <el-radio label="0">无</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="是否有扩大经营需求" prop="expand_business_needs">
            <el-radio-group v-model="datas.expand_business_needs" size="medium">
              <el-radio label="1">有</el-radio>
              <el-radio label="0">无</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="需求描述" prop="demand">
            <el-input
              v-model="datas.demand"
              clearable
              autosize
              type="textarea"
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="政策补助" prop="policy_subsidies">
            <el-input
              v-model="datas.policy_subsidies"
              clearable
              autosize
              type="textarea"
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </el-card>
</template>
  
  <script setup lang='ts'>
const props = defineProps({
  datas: {
    type: Object,
    defualt: function () {
      return {
        breeding_training: "", //有无养殖培训
        breeding_company: "", //有无注册成立种殖公司
        notes: "", //备注
        breeding_type: "", //养殖类型
        breeding_time: "", //养殖开始时间
        mature_time: "", //上市时间
        yield: "", //产量
        estimated_income: "", //预计收益
        farm_tools: "", //农资农具使用情况
        ecological_farming: "", //是否生态养殖
        modernization: "", //现代化程度
        pre_price: "", //预售卖价格
        method_sales: "", //销售方式
        processing_storage: "", //有无加工仓储
        promote: "", //有无宣传推广
        transportation: "", //有无运输
        expand_business_needs: "", //是否有扩大经营需求
        demand: "", //养殖述求
        policy_subsidies: "", //政策补助
      };
    },
  },
  update_time: {
    type: String,
    defualt: "",
  },
});
</script>
  
  <style scoped lang='scss'>
.tit {
  font-size: 1.2rem;
  translate: 1vw -1vw;
  background-color: white;
  margin: 2vh 0 0 0;
  .time {
    display: inline-block;
    font-size: 0.8rem;
    margin-left: 1vw;
    color: #999;
  }
}
</style>
  