<template>
    <detail
        :use-type="useType"
        :model="model"
        :project-quantity-list="projectQuantityList"
        :fill-info-list="model.fillInfoList" />
</template>

<script>
import Detail from '@/pages/fill/detail'
export default {
    components: {
        Detail
    },
    data() {
        return {
            useType: this.$DictCache.VALUE.FILL_INFO_USE_TYPE.FILL_INFO_USE_TYPE_XUN_JIAN,
            projectQuantityList: [],
            model: {}
        };
    },
    onLoad(options) {
        this.$Http.fetchSbInspectionFill({ id: options.id }).then(res => {
            this.model = res.data
        })
    },
    created () {
        // 下拉框map
        this.$Http.queryFillProjectQuantityDeptProject().then(res => {
            this.projectQuantityList = res.data
        })
    },
    methods: {
    }
};
</script>
