<template>
    <div class="record-card">
        <div class="fixture">
            <div class="title">
                <i class="el-icon-c-scale-to-original"></i>
                <span>工装信息</span>
            </div>
            <div class="message">
                <div class="list" v-for="(item,index ) in message" :key="index">
                   <div class="list-card">
                    <p> {{ item.title }}</p>
                    <p class="content"> {{ item.content }} </p>
                   </div>
                </div>
            </div>
        </div>
        <div class="material">
            <div class="title">
                <i class="el-icon-c-scale-to-original"></i>
                <span>物料需求信息</span>
            </div>
            <div class="message">
                <div class="list" v-for="(item,index ) in message" :key="index">
                   <div class="list-card">
                    <p> {{ item.title }}</p>
                    <p class="content"> {{ item.content }} </p>
                   </div>
                </div>
            </div>
        </div>
        <div class="card">
            <div class="title"><span>质控卡号</span></div>
            <el-input v-model="input" placeholder="请输入内容"></el-input>
        </div>
        <div class="submit">
            <el-button type="success" icon="el-icon-success">记录质控卡</el-button>
        </div>
    </div>
</template>

<script>
export default {
    name: 'ZL1',

    data() {
        return {
            message: [
                {title: '任务编号', content: 'task_50'},
                {title: '图号', content: 'drawinng_50'},
                {title: '投产数量', content: '1'},
                {title: '牌号', content: '1'},
                {title: '状态', content: '1'},
                {title: '标准', content: '1'},
                {title: '物资名称', content: '1'},
                {title: '材料/产品', content: '1'},
                {title: '规格', content: '1'},
                {title: '尺寸', content: '1'},
                {title: '备注', content: '1'},
            ],
            input: '',
        };
    },

    mounted() {
        
    },

    methods: {
        recordValue() {
            this.$emit('ZL1', this.message[0].content);
        }
    },
};
</script>

<style lang="scss" scoped>
.fixture {
    border-top: #e2e1e1 solid 1px;
    .title {
        display: flex;
        flex-direction: row;
        padding: 10px 0px; 
    }
    .message {
        display: flex;
        /* height: 120px; */
        width: 700px;
        border: #f1f1f1 solid 3px;
        padding-bottom: 5px;
        flex-wrap: wrap;
        .list {
            height: 70px;
            width: 110px;
            padding: 10px;
            display: flex;
            flex-direction: row;
            /* justify-content: center; */
            flex-wrap: wrap;
            p {
                text-align: center;
            }
            .content {
                font-weight: bold;
            }
        }
    }
}
.material {
    padding-top: 2px;
    .title {
        display: flex;
        flex-direction: row;
        padding: 10px 0px;
    }
    .message {
        display: flex;
        /* height: 120px; */
        width: 700px;
        border: #f1f1f1 solid 3px;
        padding-bottom: 5px;
        flex-wrap: wrap;
        .list {
            height: 70px;
            width: 110px;
            padding: 10px;
            display: flex;
            flex-direction: row;
            /* justify-content: center; */
            flex-wrap: wrap;
            p {
                text-align: center;
            }
            .content {
                font-weight: bold;
            }
        }
    }
}
.card {
    .title {
        padding: 10px 0px;
    }
}
.submit {
    display: flex;
    flex-direction: row-reverse;
    padding: 10px 0px;
    border-bottom: #e2e1e1 solid 1px;

}
</style>