<template>
    <view class="card">
        <view class="flex w100">
            <view class="flex-d">
                <image style="width: 80px;height: 100px;" :src="item.cover" mode="aspectFill"></image>
                <view class="quantity mt-20">数量: {{ item.num }}</view>
            </view>
            <view class="book-info ml-20 flex-1">
                <view class="common-title mb-20">{{ item.bookName }}</view>
                <view class="flex flex-j-b mb-10">
                    <view class="isbn">ISBN: {{ item.isbn }}</view>
                    <view class="set">套装: {{ item.suit == 1 ? '是' : '否' }}</view>

                </view>
                <view class="flex flex-j-b mb-10">
                    <view class="discount">回收折扣: {{ item.recycleDiscount }}</view>
                    <view class="review">审核金额: {{ item.finalMoney }}</view>
                </view>
                <view class="flex flex-j-b mb-10">
                    <view class="price">定价: {{ item.bookPrice }}</view>
                    <view class="estimate">预估单价: {{ item.expectMoney }}</view>
                </view>

                <view class="quality mb-10">
                    品相: 良好({{ item.goodNum }}) 、 一般({{ item.generalNum }}) 、 极差({{ item.badNum }})
                </view>
                <view class="reason color-red">原因: {{
                    item.auditCommentList?.filter(item => item.sts == 3).map(item => item.com).join(';') }}</view>
            </view>
        </view>
    </view>
</template>

<script setup>
import { defineProps } from 'vue'

const props = defineProps({
    item: Object,
})
</script>

<style scoped>
.card {
    background-color: rgb(222, 134, 143, 0.5);
    padding: 12px;
    display: flex;
    align-items: center;
    margin-bottom: 6rpx;

    .card-content {
        display: flex;
        width: 100%;
    }

    .book-info {
        font-size: 26rpx;
    }

    .color-red {
        color: #bd3124;
    }
}
</style>