<template>
    <div class="lj-card-item">
        <mu-row>
            <mu-col span="3" class="lj-card-secondary-title">送检单号：</mu-col>
            <mu-col span="7" class="lj-card-secondary-content">{{item.billcode}}</mu-col>
            <mu-col span="2">
                <lj-status-badge :value="item.flag" :statusDic="statusDic"/>
            </mu-col>
            <mu-col span="3" class="lj-card-secondary-title">车间编号：</mu-col>
            <mu-col span="9" class="lj-card-secondary-content">{{item.sptcode}}</mu-col>
            <mu-col span="3" class="lj-card-secondary-title">车间：</mu-col>
            <mu-col span="9" class="lj-card-secondary-content">{{item.sptname}}</mu-col>
            <mu-col span="3" class="lj-card-secondary-title">来料日期：</mu-col>
            <mu-col span="3" class="lj-card-secondary-content">{{item.indate|dateFilter}}</mu-col>
            <mu-col span="3" class="lj-card-secondary-title">质检日期：</mu-col>
            <mu-col span="3" class="lj-card-secondary-content">{{item.billdate|dateFilter}}</mu-col>
            <mu-col span="3" class="lj-card-secondary-title">质检员：</mu-col>
            <mu-col span="3" class="lj-card-secondary-content">{{item.billemp}}</mu-col>
            <mu-col span="3" class="lj-card-secondary-title">相关号：</mu-col>
            <mu-col span="3" class="lj-card-secondary-content">{{item.relcode}}</mu-col>
            <mu-col span="3" class="lj-card-secondary-title">收货人：</mu-col>
            <mu-col span="3" class="lj-card-secondary-content">{{item.opemp}}</mu-col>
            <mu-col span="3" class="lj-card-secondary-title">打印次数：</mu-col>
            <mu-col span="3" class="lj-card-secondary-content">{{item.printnum}}</mu-col>
            <mu-col span="12">
                <div v-if="item.dscrp" class="lj-card-summary lj-card-summary-light-text">
                    <i class="iconfont icon-edit lj-card-summary-icon"></i>
                    <span class="lj-card-tertiary-content">
                            {{item.dscrp}}
                    </span>
                </div>
            </mu-col>
        </mu-row>
    </div>

</template>

<script>
    import LjStatusBadge from "components/lj-status-badge";

    export default {
        name: "sptcheck-zz-item",
        components: {
            LjStatusBadge
        },
        props: {
            item: {
                // 传入数据
                type: Object
            }
        },
        data() {
            return {
                showCount: 0,
                statusDic:{
                    0: {dscrp: "待审核", color: "Alert"},
                    1: {dscrp: "已审核", color: "Normal"},
                    4: {dscrp: "待终审", color: "Pass"}
                }
            }
        }
    }
</script>