<template>
  <div class="page2">
    <el-form ref="ruleForm" label-width="100px" class="demo-ruleForm">
      <div>
        <div class="tit">{{ '提货配置' }}</div>
        <div class="xian"></div>
      </div>
      <el-row>
        <el-col :span="4">
          <el-form-item :label="'包邮类型'">
            <el-radio-group v-model="acPickUpConfig.isFreeMail">
              <el-radio
                :disabled="lookOver"
                :label="aitem.value"
                v-for="(aitem, aindex) in isFreeMailListy"
                :key="aindex"
                >{{ aitem.label }}</el-radio
              >
            </el-radio-group>
          </el-form-item>
        </el-col>
      </el-row>
      <div>
        <div class="tit">{{ '提货天数' }}</div>
        <div class="xian"></div>
      </div>
      <el-row>
        <el-col :span="4">
          <el-form-item :label="'提货天数'">
            <el-input clearable v-model="acPickUpConfig.deliveryDays" :placeholder="'请输入'">
              <i slot="suffix" class="neibu">{{'天'}} </i>
            </el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  props: {
    lookOver: {
      type: Boolean,
      default: false,
    },
  },
  data() {
    return {
      acPickUpConfig: {
        isFreeMail: "",
        deliveryDays:""
      },
      isFreeMailListy: [
        {
          label: '包邮',
          value: 0,
        },
        {
          label: '不包邮',
          value: 1,
        },
      ],
    };
  },
  methods: {
    getPage(allData) {
      this.acPickUpConfig = allData;
    },
  },
};
</script>

<style lang="scss" scoped>
.page2 {
  padding: 0 20px;
  // background: pink;
  font-size: 14px;
  .tit {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    padding: 0 20px;
    border-left: 5px solid #c8161d;
    margin: 10px 0 10px 0;
  }
  .xian {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
  }
  .demo-ruleForm {
    padding: 20px 0;
  }
}
</style>
