<template>
    <div>
        <el-descriptions :column="2" border>
            <el-descriptions-item label="出入库编号" :span="2">{{ form.warehouseAccessId }}</el-descriptions-item>
            <el-descriptions-item label="出入库类型" :span="2">
                <dict-tag :options="com_access_type" :value="form.warehouseAccessType" />
            </el-descriptions-item>
            <el-descriptions-item label="创建者">{{ form.createBy }}</el-descriptions-item>
            <el-descriptions-item label="创建时间">{{ parseTime(form.createTime) }}</el-descriptions-item>
            <el-descriptions-item label="出入库说明" :span="2">{{ form.warehouseAccessExplain }}</el-descriptions-item>
        </el-descriptions>
        <el-divider content-position="center">
            物料清单    
        </el-divider>
        <Index :list="form.warehouseAccessDetailsList" :editable="false" />
    </div>
</template>

<script setup>
import Index from "@/components/WarehouseAccessDetails/index";
const { proxy } = getCurrentInstance();
const { com_access_type } = proxy.useDict('com_access_type');
const props = defineProps({
    form: {
        type: [Object],
        default: null,
    },
});
const { form } = toRefs(props);
</script>