<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="是否齐套件">
                <el-radio v-model="form.isCompleteSet" :label="1">是</el-radio>
                <el-radio v-model="form.isCompleteSet" :label="0">否</el-radio>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="消耗波动" prop="consumWave">
                <el-input v-model="form.consumWave">
                    <template slot="append">%</template>
                </el-input>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="变动损耗率" prop="changeLossRate">
                <el-input v-model="form.changeLossRate">
                    <template slot="append">%</template>
                </el-input>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="固定损耗数" prop="fixLossNum">
                <el-input  v-model="form.fixLossNum"/>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="排程类型" prop="apsType">
                <DictSelection dictName="排程类型" clearable v-model="form.apsType">
                </DictSelection>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="允许改型" prop="isModify">
               <el-radio v-model="form.isModify" :label="1">是</el-radio>
               <el-radio v-model="form.isModify" :label="0">否</el-radio>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="允许返工返修" prop="isRework">
               <el-radio v-model="form.isRework" :label="1">是</el-radio>
               <el-radio v-model="form.isRework" :label="0">否</el-radio>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="是否返回料" prop="isRematerial">
               <el-radio v-model="form.isRematerial" :label="1">是</el-radio>
               <el-radio v-model="form.isRematerial" :label="0">否</el-radio>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="是否副产品" prop="isByProduct">
               <el-radio v-model="form.isByProduct" :label="1">是</el-radio>
               <el-radio v-model="form.isByProduct" :label="0">否</el-radio>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="是否废品" prop="isWaste">
               <el-radio v-model="form.isWaste" :label="1">是</el-radio>
               <el-radio v-model="form.isWaste" :label="0">否</el-radio>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="是否不良品" prop="isDefective">
               <el-radio v-model="form.isDefective" :label="1">是</el-radio>
               <el-radio v-model="form.isDefective" :label="0">否</el-radio>
             </el-form-item>
           </el-col>
         </el-row>
      </el-form>
  </div>
</template>

<script>
  import deptSelect from '@/components/CommomSelect/dept-select.vue'
  import personSelect from '@/components/CommomSelect/person-select.vue';
  export default {
    props: {
      form: {
        type: Object,
        default: {}
      }
    },
    components: { deptSelect , personSelect },
    data() {
      return {


      };
    },

    methods: {
      // 选择所属部门
      searchDeptNodeClick (id, info) {
        // 根据部门获取人员
        const params = { executeGroupId: id };
        this.$nextTick(() => {
          this.$refs.directorRef.getList(params);
        });
      },
      //选择负责人
      handleDirectorChange (id, info) {
      },


    }
  };
</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>
