
<template>
    <div class="bigBox">
        <div class="hearder">
            <svg-icon style="font-size: 20px;" icon-class="castingDetailsJljl" class="sidebar-logo" />
            <span>加料记录</span>
        </div>
        <div class="content">
            <div class="contentBig">
                <div class="contentTitile">
                    <div class="reddDian"></div>
                    <span class="contentTitileOne">中间包保温剂</span>
                    <span class="contentTitileTwo">累计用量：</span>
                    <span class="contentTitileThree">{{ chargingInListZjbbwjDosage }}</span>
                </div>
                <div class="contentBox">
                    <div class="contentBoxBig" v-for="item in chargingInListZjbbwjData">
                        <div>物料编码：<span>{{ item.materialCode }}</span></div>
                        <div>物料名称：<span>{{ item.materialName }}</span></div>
                        <div>厂家：<span>{{ item.manufacturer }}</span></div>
                        <div>牌号：<span>{{ item.brand }}</span></div>
                        <div>用量：<span style="color:rgba(232, 51, 51, 1)">{{ item.chargingAmount }}g</span></div>
                    </div>
                </div>
            </div>
            <div class="contentBig">
                <div class="contentTitile">
                    <div class="reddDian"></div>
                    <span class="contentTitileOne">中间包覆盖剂</span>
                    <span class="contentTitileTwo">累计用量：</span>
                    <span class="contentTitileThree">{{ chargingInListZjbfgjDosage }}</span>
                </div>
                <div class="contentBox">
                    <div class="contentBoxBig" v-for="item in chargingInListZjbfgjData">
                        <div>物料编码：<span>{{ item.materialCode }}</span></div>
                        <div>物料名称：<span>{{ item.materialName }}</span></div>
                        <div>厂家：<span>{{ item.manufacturer }}</span></div>
                        <div>牌号：<span>{{ item.brand }}</span></div>
                        <div>用量：<span style="color:rgba(232, 51, 51, 1)">{{ item.chargingAmount }}g</span></div>
                    </div>
                </div>
            </div>
            <div class="contentBig">
                <div class="contentTitile">
                    <div class="reddDian"></div>
                    <span class="contentTitileOne">结晶器保护渣</span>
                    <span class="contentTitileTwo">累计用量：</span>
                    <span class="contentTitileThree">{{ chargingInListJjqbwzDosage }}</span>
                </div>
                <div class="contentBox">
                    <div class="contentBoxBig" v-for="item in chargingInListJjqbwzData">
                        <div>物料编码：<span>{{ item.materialCode }}</span></div>
                        <div>物料名称：<span>{{ item.materialName }}</span></div>
                        <div>厂家：<span>{{ item.manufacturer }}</span></div>
                        <div>牌号：<span>{{ item.brand }}</span></div>
                        <div>用量：<span style="color:rgba(232, 51, 51, 1)">{{ item.chargingAmount }}g</span></div>
                    </div>
                </div>
            </div>
            <div class="contentBig">
                <div class="contentTitile">
                    <div class="reddDian"></div>
                    <span class="contentTitileOne">结晶器发热剂</span>
                    <span class="contentTitileTwo">累计用量：</span>
                    <span class="contentTitileThree">{{ chargingInListJjqfrjDosage }}</span>
                </div>
                <div class="contentBox">
                    <div class="contentBoxBig" v-for="item in chargingInListJjqfrjData">
                        <div>物料编码：<span>{{ item.materialCode }}</span></div>
                        <div>物料名称：<span>{{ item.materialName }}</span></div>
                        <div>厂家：<span>{{ item.manufacturer }}</span></div>
                        <div>牌号：<span>{{ item.brand }}</span></div>
                        <div>用量：<span style="color:rgba(232, 51, 51, 1)">{{ item.chargingAmount }}g</span></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
      
<script setup >
const props = defineProps({
    chargingInListZjbbwjData: {
        type: Object,
        default: ''
    },
    chargingInListZjbbwjDosage: {
        type: String,
        default: ''
    },
    chargingInListZjbfgjData: {
        type: Object,
        default: ''
    },
    chargingInListZjbfgjDosage: {
        type: String,
        default: ''
    },
    chargingInListJjqbwzData: {
        type: Object,
        default: ''
    },
    chargingInListJjqbwzDosage: {
        type: String,
        default: ''
    },
    chargingInListJjqfrjData: {
        type: Object,
        default: ''
    },
    chargingInListJjqfrjDosage: {
        type: String,
        default: ''
    },
});
</script>
      
<style lang="scss" scoped>
.bigBox {
    border: 1px solid rgba(235, 237, 238, 1);
    border-radius: 4px;

    .hearder {
        height: 44px;
        line-height: 44px;
        border-top-right-radius: 4px;
        border-top-left-radius: 4px;
        background-color: rgba(250, 251, 252, 1);
        border-bottom: 1px solid rgba(235, 237, 238, 1);
        padding-left: 15px;

        .sidebar-logo {
            vertical-align: middle;
        }

        span {
            vertical-align: middle;
            display: inline-block;
            color: rgba(11, 24, 45, 1);
            font-weight: 600;
            font-size: 14px;
            height: 22px;
            line-height: 22px;
            margin-left: 7px;
        }

    }

    .content {
        padding: 20px;

        .contentBig {
            .contentTitile {
                display: flex;
                align-items: center;
                vertical-align: middle;
                margin-top: 5px;
                margin-bottom: 5px;
                overflow: hidden;

                vertical-align: middle;

                .reddDian {
                    vertical-align: middle;
                    width: 6px;
                    height: 6px;
                    background: red;
                    border-radius: 20px;
                    margin-right: 7px;
                }

                .contentTitileOne {
                    vertical-align: middle;
                    height: 24px;
                    line-height: 24px;
                    font-weight: 500;
                    font-size: 14px;
                    color: rgba(11, 24, 45, 1);
                    margin-right: 7px;
                }

                .contentTitileTwo {
                    vertical-align: middle;
                    height: 22px;
                    line-height: 22px;
                    font-size: 13px;
                    color: rgba(123, 130, 142, 1);
                    font-weight: 400;
                }

                .contentTitileThree {
                    height: 22px;
                    line-height: 22px;
                    font-size: 13px;
                    color: rgb(255, 0, 0);
                    font-weight: 400;
                }
            }

            .contentBox {
                margin-top: 5px;
                margin-bottom: 5px;
                overflow: hidden;

                .contentBoxBig {
                    padding-top: 5px;
                    display: flex;
                    justify-content: space-between;
                    background-color: rgba(245, 247, 249, 1);
                    padding-left: 15px;
                    padding-right: 15px;
                    border-radius: 4px;

                    div {
                        margin-top: 3px;
                        margin-bottom: 3px;
                        width: 200px;
                        font-size: 14px;
                        font-weight: 400;
                        height: 22px;
                        line-height: 22px;
                        color: rgba(123, 130, 142, 1);

                        span {
                            color: rgba(11, 24, 45, 1);
                        }
                    }
                }
            }
        }

    }
}
</style>