<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.outwarecode}}</mu-col>
            <mu-col span="2">
                <lj-status-badge :value="item.statusStr" :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.storagename}}</mu-col>
            <mu-col span="3" class="lj-card-secondary-title">工段：</mu-col>
            <mu-col span="3" class="lj-card-secondary-content">{{item.wrkgrpname}}</mu-col>
            <mu-col span="3" class="lj-card-secondary-title">领料组：</mu-col>
            <mu-col span="3" class="lj-card-secondary-content">{{item.workgroupname}}</mu-col>
            <mu-col span="3" class="lj-card-secondary-title">领料人：</mu-col>
            <mu-col span="2" class="lj-card-secondary-content">{{item.outrep}}</mu-col>
            <mu-col span="4" class="lj-card-secondary-title">现场发料人：</mu-col>
            <mu-col span="3" class="lj-card-secondary-content">{{item.relstr_3}}</mu-col>
            <mu-col span="3" class="lj-card-secondary-title">领料日期：</mu-col>
            <mu-col span="9" class="lj-card-secondary-content">{{item.outdate | dateFilter}}</mu-col>
            <mu-col span="5" class="lj-card-secondary-title">指令单开单时间：</mu-col>
            <mu-col span="7" class="lj-card-secondary-content">{{item.order_opdate | timeFilter}}</mu-col>
            <mu-col span="3" class="lj-card-secondary-title">建单人：</mu-col>
            <mu-col span="9" class="lj-card-secondary-content">{{item.opemp}}</mu-col>
            <mu-col span="3" class="lj-card-secondary-title">建单时间：</mu-col>
            <mu-col span="9" class="lj-card-secondary-content">{{item.opdate | timeFilter}}</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: "outware-scllplan-item",
        components: {
            LjStatusBadge
        },
        props: {
            item: {
                // 传入数据
                type: Object
            }
        },
        data() {
            return {
                showCount: 0,
                statusDic: {
                    "待确认": {color: "Alert"},
                    "待仓审": {color: "Warn"},
                    "待二审": {color: "Normal"},
                    "审核完毕": {color: "Pass"},
                }
            }
        }
    }
</script>