//作业管理
import fumigationRecord from "@/page/zygl/fumigationRecord.vue";
import recordsDetails from "@/page/zygl/components/recordsDetails";
import ventilationOperation from "@/page/zygl/ventilationOperation.vue";
import ventilationDetail from "@/page/zygl/components/ventilationDetail";
import fumigationScheme from "@/page/zygl/fumigationScheme.vue";
import SchemeDetail from "@/page/zygl/components/schemeDetail";
//熏蒸药剂管理

//药剂信息维护
import infoMaintain from "@/page/xzyjgl/infoMaintain.vue";
import infoMaintainDetail from "@/page/xzyjgl/infoMaintainDetail.vue";
//药剂采购申请
import purchaseRequest from "@/page/xzyjgl/purchaseRequest.vue";
import purchaseRequestDetail from "@/page/xzyjgl/purchaseRequestDetail.vue";
//药剂入库
import inStore from "@/page/xzyjgl/inStore.vue";
import inStoreDetail from "@/page/xzyjgl/inStoreDetail.vue";
//药剂领用申请
import useApply from "@/page/xzyjgl/useApply.vue";
import useApplyDetail from "@/page/xzyjgl/useApplyDetail.vue";
//药剂领用登记
import useRegister from "@/page/xzyjgl/useRegister.vue";
import useRegisterDetail from "@/page/xzyjgl/useRegisterDetail.vue";
//药剂归还
import giveBack from "@/page/xzyjgl/giveBack.vue";
import giveBackDetail from "@/page/xzyjgl/giveBackDetail.vue";
//药剂销毁
import destroy from "@/page/xzyjgl/destroy.vue";
import destroyDetail from "@/page/xzyjgl/destroyDetail.vue";
//药剂台账
import standingBook from "@/page/xzyjgl/standingBook.vue";
import standingBookDetail from "@/page/xzyjgl/standingBookDetail.vue";
// 药剂报表
import statement from "@/page/xzyjgl/statement.vue";
import statementDetail from "@/page/xzyjgl/statementDetail.vue";




export default {
	path: '/grainCoManage/coInfo',
	name: 'coInfo',
	component: {
		render(c) {
			return c('router-view')
		}
	},
	meta: {
		title: '承储企业作业管理'
	},
	children: [
{
    //作业管理
    path: "/grainCoManage/zygl",
    name: "zygl",
    meta: {
        title: "作业管理",
    },
    component: {
        render(c) {
            return c("router-view");
        },
    },
    children: [
        {
            path:
                "/grainCoManage/zygl/fumigationRecord",
            name: "fumigationRecord",
            meta: {
                title: "熏蒸备案审核",
            },
            component: fumigationRecord,
        },
        {
            path: "/grainCoManage/zygl/recordsAudit",
            name: "recordsAudit",
            meta: {
                title: "熏蒸备案审核-审核",
            },
            component: recordsDetails,
        },
        {
            path: "/grainCoManage/zygl/recordsDetails",
            name: "recordsDetails",
            meta: {
                title: "熏蒸备案审核-查看",
            },
            component: recordsDetails,
        },
        {
            path:
                "/grainCoManage/zygl/ventilationOperation",
            name: "ventilationOperation",
            meta: {
                title: "通风作业管理",
            },
            component: ventilationOperation,
        },
        {
            path:
                "/grainCoManage/zygl/ventilationDetail",
            name: "ventilationDetail",
            meta: {
                title: "通风作业管理-查看",
            },
            component: ventilationDetail,
        },

        {
            path:
                "/grainCoManage/zygl/fumigationScheme",
            name: "fumigationScheme",
            meta: {
                title: "熏蒸方案审核",
            },
            component: fumigationScheme,
        },
        {
            path: "/grainCoManage/zygl/SchemeDetail",
            name: "SchemeDetail",
            beforeEnter: (to, from, next) => {
                console.log(to, "fffffffffff");
                if (to.query.type == "look") {
                    to.meta.title = "熏蒸方案审核-查看";
                } else if (to.query.type == "seal") {
                    to.meta.title = "熏蒸方案审核-盖章";
                } else {
                    to.meta.title = "熏蒸方案审核-审核";
                }
                next();
            },
            // meta: {
            //   title: '熏蒸备案审核-查看'
            // },
            component: SchemeDetail,
        },
    ],
},
{
    //熏蒸药剂管理
    path: "/grainCoManage/xzyjgl",
    name: "xzyjgl",
    meta: {
        title: "熏蒸药剂管理",
    },
    component: {
        render(c) {
            return c("router-view");
        },
    },
    children: [
        {
            path: "/grainCoManage/xzyjgl/infoMaintain",
            name: "infoMaintain",
            meta: {
                title: "药剂信息维护",
            },
            component: infoMaintain,
        },
        {
            path:
                "/grainCoManage/xzyjgl/infoMaintainDetail",
            name: "infoMaintainDetail",
            meta: {
                title: "药剂信息维护-详情",
            },
            component: infoMaintainDetail,
        },
        {
            path:
                "/grainCoManage/xzyjgl/purchaseRequest",
            name: "purchaseRequest",
            meta: {
                title: "药剂采购申请",
            },
            component: purchaseRequest,
        },
        {
            path:
                "/grainCoManage/xzyjgl/purchaseRequestDetail",
            name: "purchaseRequestDetail",
            meta: {
                title: "药剂采购申请-详情",
            },
            component: purchaseRequestDetail,
        },
        {
            path: "/grainCoManage/xzyjgl/inStore",
            name: "inStore",
            meta: {
                title: "药剂入库",
            },
            component: inStore,
        },
        {
            path: "/grainCoManage/xzyjgl/inStoreDetail",
            name: "inStoreDetail",
            meta: {
                title: "药剂入库-详情",
            },
            component: inStoreDetail,
        },
        {
            path:
                "/grainCoManage/xzyjgl/useApplyDetail",
            name: "useApplyDetail",
            meta: {
                title: "药剂领用申请-详情",
            },
            component: useApplyDetail,
        },
        {
            path: "/grainCoManage/xzyjgl/useApply",
            name: "useApply",
            meta: {
                title: "药剂领用申请",
            },
            component: useApply,
        },
        {
            path:
                "/grainCoManage/xzyjgl/useRegisterDetail",
            name: "useRegisterDetail",
            meta: {
                title: "药剂领用登记-详情",
            },
            component: useRegisterDetail,
        },
        {
            path: "/grainCoManage/xzyjgl/useRegister",
            name: "useRegister",
            meta: {
                title: "药剂领用登记",
            },
            component: useRegister,
        },
        {
            path:
                "/grainCoManage/xzyjgl/giveBackDetail",
            name: "giveBackDetail",
            meta: {
                title: "药剂归还-详情",
            },
            component: giveBackDetail,
        },
        {
            path: "/grainCoManage/xzyjgl/giveBack",
            name: "giveBack",
            meta: {
                title: "药剂归还",
            },
            component: giveBack,
        },
        {
            path: "/grainCoManage/xzyjgl/destroyDetail",
            name: "destroyDetail",
            meta: {
                title: "药剂销毁-详情",
            },
            component: destroyDetail,
        },
        {
            path: "/grainCoManage/xzyjgl/destroy",
            name: "destroy",
            meta: {
                title: "药剂销毁",
            },
            component: destroy,
        },
        {
            path:
                "/grainCoManage/xzyjgl/standingBookDetail",
            name: "standingBookDetail",
            meta: {
                title: "药剂台账-详情",
            },
            component: standingBookDetail,
        },
        {
            path: "/grainCoManage/xzyjgl/standingBook",
            name: "standingBook",
            meta: {
                title: "药剂台账",
            },
            component: standingBook,
        },
        {
            path: "/grainCoManage/xzyjgl/statement",
            name: "statement",
            meta: {
                title: "药剂报表",
            },
            component: statement,
        },
        {
            path:
                "/grainCoManage/xzyjgl/statementDetail",
            name: "statementDetail",
            meta: {
                title: "药剂报表-详情",
            },
            component: statementDetail,
        },
    ],
},
    ]}

