
<template>
    <div class="page">
        <LayoutTable :data='tableData' :config='tableConfig' notAdd  />
    </div>
</template>

<script>
import table from "@/assets/mixins/table";

export default {
    mixins: [table],
    data() {
        return {
            config: {
                search: [
                    {
                        name: "name",
                        type: "text",
                        label: "名称",
                    },
                ],
                columns: [
       { type: "selection", width: 60 },
                    {
                        prop: "materiaId",
                        label: "物料名称",
                        formatter: this.formatter,
                    },

                    {
                        prop: "supplierId",
                        label: "供应商名称",
                        formatter: this.formatter,
                    },

                    {
                        prop: "deliveryPeriod",
                        label: "交货期",
                    },

                    {
                        prop: "deliveryPeriodUnit",
                        label: "交货期单位",
                        formatter: this.formatter,
                    },

                    {
                        prop: "supplierMateriaCode",
                        label: "供应商物料代码",
                    },

                    {
                        prop: "unitOfMeasure",
                        label: "计量单位",
                        formatter: this.formatter,
                    },

                    {
                        prop: "costPlan",
                        label: "供货成本",
                        formatter: this.formatterMoney
                    },

                  
                ],
            },
        };
    },
};
</script>
