<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.name 
              }}
            </div>
          </div>

          <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.codeNumber }}</div>
          </div>
        </div>

        <div class="item rx-sc">
          <div class="rx ww33">
            <div class="lable rx-cc">已冲压次数</div>
            <div class="content rx-sc">
              <div>{{ item.startCyTimes}}</div>
            </div>
          </div>



          <div class="rx ww33">
            <div class="lable rx-cc">最大冲压数</div>
            <div class="content rx-sc">
              <div>{{ item.extInfo.maxCyTimes }}</div>
            </div>
          </div>

          <div class="rx ww33">
            <div class="lable rx-cc">本次冲压数</div>
            <div class="content content_num rx-sc">
              <el-input size="mini" v-model="item.extInfo.cyTimes" placeholder="请输入本次冲压数" />
            </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 {
    props: {
      list: {
        type: Array,
        default: () => []
      }
    },
    methods: {
      getDelete(index) {
        this.list.splice(index, 1)
      }
    }
  };
</script>
