<template>
    <div>
      <div class="title_box rx-bc mt6">
        <div class="name">舟皿 </div>
  
        <div class="rx-bc"> </div>
      </div>
  
      <div class="material">
        <div class="content_table" v-for="(item, index) in list" :key="index">
          <div class="item rx-sc">
            <div class="rx ww33">
              <div class="lable rx-cc">编号</div>
              <div class="content">
                {{ item.code }}
              </div>
            </div>
  
            <div class="rx ww33">
              <div class="lable rx-cc">名称</div>
              <div
                class="content"
              >
              {{item.name}}
              </div>
            </div>
  
            <div class="rx ww33">
              <div class="lable rx-cc">型号</div>
              <div class="content">	{{item.modelType}}</div>
            </div>
          </div>
  
          <div class="item rx-sc" >


            <div class="rx ww33">
              <div class="lable rx-cc">数量</div>
              <div class="content content_num rx-sc">
              <el-input size="mini" v-model="item.feedQuantity" type='digit' :disabled="isDetails"/>
            </div>
            </div>

          </div>
  
          <div class="del_box">
            <el-link
              type="danger"
              icon="el-icon-delete"
              @click="getDelete(index)"
            ></el-link>
          </div>
        </div>
      </div>
    </div>
  </template>
  
  <script>
    export default {
      name: 'deviceBom',
      props: {
        list: {
          type: Array,
          default: () => []
        },
		isDetails: {
				type: Boolean,
				default: false
			}
  
  
      },
  
      computed: {},
  
      data() {
        return {};
      },
  
      methods: {
        getDelete(idx) {
          this.list.splice(idx, 1);
        }
      }
    };
  </script>
  
  <style scoped lang="scss"></style>
  