<template>
  <div class="other">
      <el-form label-width="120px"  ref="form" :model="form">
         <div class="divider">
           <div class="title">
             <div class="ele-bg-primary"></div>
             <span>销售信息</span>
           </div>
           <div class="ele-bg-primary ele-width"></div>
         </div>
         <el-row :gutter="24">
           <el-col :span="8">
             <el-form-item label="允许退货" prop="allowReturns">
                 <el-radio v-model="form.allowReturns" label="1">是</el-radio>
                 <el-radio v-model="form.allowReturns" label="0">否</el-radio>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="计价单位" prop="lossRate">
                <DictSelection dictName="重量单位" clearable v-model="form.scheduleType">
                </DictSelection>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="起订量" prop="fixedNum">
                <el-input  v-model="form.fixedNum"/>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="超发上限" prop="fixedNum">
                <el-input v-model="form.lossRate">
                    <template slot="append">%</template>
                </el-input>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="超发下限" prop="consumeWave">
                <el-input v-model="form.lossRate">
                    <template slot="append">%</template>
                </el-input>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="参考单价" prop="scheduleType">
                <div class="form-line">
                  <el-input  v-model="form.date"/>
                  <DictSelection class="line-select" dictName="价格单位" clearable v-model="form.dateUnit">
                  </DictSelection>
                </div>
             </el-form-item>
           </el-col>
         </el-row>
      </el-form>
  </div>
</template>

<script>
  export default {
    props: {
      form: {
        type: Object,
        default: {}
      }
    },
    components: { },
    data() {
      return {


      };
    },

    methods: {


    }
  };
</script>

<style lang="scss" scoped>
  .other{
    background: #fff;
    padding: 1px 17px;
  }
  .divider {
    margin: 0px 0 20px;
    .title {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      div {
        width: 8px;
        height: 20px;
        margin-right: 10px;
      }
      span {
        font-size: 20px;
      }
    }
    .ele-width{
      width: 100%;
      height: 2px;
    }
  }
  .form-line{
    display: flex;
    align-items: center;
    justify-content: space-between;
    .line-select{
      margin-left:15px;
    }
  }
</style>
