import Layout from '@/layout/index.vue'

/**
 * carrierComputationalModel                 携行计算模型管理
 * carrierComputationalModelVersion          携行计算模型版本管理
 * carrierSailingMaterialConsumeRecord       航材历年消耗管理
 * carrierSailingMaterialConsumeRegularities 航材消耗规律管理
 * carrierFlightMission                      飞行任务管理
 * carrierListExecutionRegistration          携行清单执行登记
 * carrierListMachineryPreparation           携行清单机务编修
 *
 * 携行清单机务编修 carrierListMachineryPreparation
 * 携行清单航材编修 carrierListShipping
 * 任务执行情况登记 carrierListExecutionRegistration
 * 携行航材使用登记 useRegistration
 * 携行计算模型管理 carrierComputationalModel
 * 航材消耗规律管理 carrierSailingMaterialConsumeRegularities
 * 历年航材消耗数据 carrierSailingMaterialConsumeRecord
 * 社会化保障参考   safeguardCost
 *
 */

//携行清单机务编修
export const carrierListMachineryPreparation = {
  path: '/carrierStandard',
  redirect: '/carrierStandard/carrierComputationalModel',
  component: Layout,
  name: 'CarrierListMachineryPreparation',
  meta: {
    title: '航材管理',
    icon: 'el-icon-s-platform'
  },
  sort: 9,
  children: [
    {
      path: '/carrierStandard/carrierListMachineryPreparation',
      component: () => import('@/views/carrierStandard/carrierListMachineryPreparation/index.vue'),
      meta: {
        title: '携行清单机务编修'
      },
      sort: 1
    },
    {
      path: '/carrierStandard/carrierListMachineryPreparation/compile/:id',
      component: () => import('@/views/carrierStandard/carrierListMachineryPreparation/components/compile/index.vue'),
      meta: {
        title: '携行清单机务编修-编修',
        hide: true
      }
    },
    {
      path: '/carrierStandard/carrierListMachineryPreparation/look/:id',
      component: () => import('@/views/carrierStandard/carrierListMachineryPreparation/components/look/index.vue'),
      meta: {
        title: '携行清单机务编修-查看详情',
        hide: true
      }
    }
  ]
}

//机务清单总体审核
export const carrierAllAudit = {
  path: '/carrierStandard',
  redirect: '/carrierStandard/carrierComputationalModel',
  component: Layout,
  name: 'CarrierAllAudit',
  meta: {
    title: '航材管理',
    icon: 'el-icon-s-platform'
  },
  sort: 9,
  children: [
    {
      path: '/carrierStandard/carrierAllAudit',
      component: () => import('@/views/carrierStandard/carrierAllAudit/index.vue'),
      meta: {
        title: '机务清单总体审核'
      },
      sort: 2
    },
    {
      path: '/carrierStandard/carrierAllAudit/look/:id',
      component: () => import('@/views/carrierStandard/carrierAllAudit/components/carrierAllAuditLook/index.vue'),
      meta: {
        title: '机务清单总体审核-查看详情',
        hide: true
      }
    }
  ]
}

//携行清单航材编修
export const carrierListShipping = {
  path: '/carrierStandard',
  redirect: '/carrierStandard/carrierComputationalModel',
  component: Layout,
  name: 'CarrierListShipping',
  meta: {
    title: '航材管理',
    icon: 'el-icon-s-platform'
  },
  sort: 9,
  children: [
    {
      path: '/carrierStandard/carrierListShipping',
      component: () => import('@/views/carrierStandard/carrierListShipping/index.vue'),
      meta: {
        title: '携行清单航材编修'
      },
      sort: 3
    },
    {
      path: '/carrierStandard/carrierListShipping/compile/:id',
      component: () => import('@/views/carrierStandard/carrierListShipping/components/compile/index.vue'),
      meta: {
        title: '携行清单航材编修-编修',
        hide: true
      }
    },
    {
      path: '/carrierStandard/carrierListShipping/look/:id',
      component: () => import('@/views/carrierStandard/carrierListShipping/components/look/index.vue'),
      meta: {
        title: '携行清单航材编修-详情',
        hide: true
      }
    }
  ]
}

// //机务领用航材申请
// export const maintenanceUseMaterialApply = {
//   path: '/carrierStandard',
//   redirect: '/carrierStandard/carrierComputationalModel',
//   component: Layout,
//   name: 'MaintenanceUseMaterialApply',
//   meta: {
//     title: '航材管理',
//     icon: 'el-icon-s-platform'
//   },
//   sort: 9,
//   children: [
//     {
//       path: '/carrierStandard/carrierListShipping',
//       component: () => import('@/views/carrierStandard/carrierListShipping/index.vue'),
//       meta: {
//         title: '机务领用航材申请'
//       },
//       sort: 4
//     }
//   ]
// }

//任务执行情况登记
export const carrierListExecutionRegistration = {
  path: '/carrierStandard',
  redirect: '/carrierStandard/carrierComputationalModel',
  component: Layout,
  name: 'CarrierListExecutionRegistration',
  meta: {
    title: '航材管理',
    icon: 'el-icon-s-platform'
  },
  sort: 10,
  children: [
    {
      path: '/carrierStandard/carrierListExecutionRegistration',
      component: () => import('@/views/carrierStandard/carrierListExecutionRegistration/index.vue'),
      meta: {
        title: '任务执行情况登记'
      },
      sort: 5
    },
    {
      path: '/carrierStandard/carrierListExecutionRegistration/aerospaceSpareParts',
      component: () => import('@/views/carrierStandard/carrierListExecutionRegistration/components/aerospaceSpareParts/index.vue'),
      meta: {
        title: '携行清单执行登记-航材',
        hide: true
      }
    },
    {
      path: '/carrierStandard/carrierListExecutionRegistration/missionPlane',
      component: () => import('@/views/carrierStandard/carrierListExecutionRegistration/components/missionPlane/index.vue'),
      meta: {
        title: '携行清单执行登记-任务飞机',
        hide: true
      }
    },
    {
      path: '/carrierStandard/carrierListExecutionRegistration/compile',
      component: () => import('@/views/carrierStandard/carrierListExecutionRegistrationCompile/index.vue'),
      meta: {
        title: '携行清单执行登记-编修',
        hide: true
      }
    },
    {
      path: '/carrierStandard/carrierListExecutionRegistration/registering/:taskId',
      component: () => import('@/views/carrierStandard/carrierListExecutionRegistration/components/registering/index.vue'),
      meta: {
        title: '任务执行情况登记-登记',
        hide: true
      }
    },
    {
      path: '/carrierStandard/carrierListExecutionRegistration/look/:taskId',
      component: () => import('@/views/carrierStandard/carrierListExecutionRegistration/components/look/index.vue'),
      meta: {
        title: '任务执行情况登记-查看详情',
        hide: true
      }
    }
    //
  ]
}

//携行航材使用登记
export const useRegistration = {
  path: '/carrierStandard',
  redirect: '/carrierStandard/carrierComputationalModel',
  component: Layout,
  name: 'UseRegistration',
  meta: {
    title: '航材管理',
    icon: 'el-icon-s-platform'
  },
  sort: 9,
  children: [
    {
      path: '/carrierStandard/carrierUseRegistration',
      component: () => import('@/views/carrierStandard/carrierUseRegistration/index.vue'),
      meta: {
        title: '携行航材使用登记'
      },
      sort: 5
    },
    {
      path: '/carrierStandard/carrierSailingMaterial/:id',
      component: () => import('@/views/carrierStandard/carrierUseRegistration/components/sailingMaterial/index.vue'),
      meta: {
        title: '携行航材使用登记-航材',
        hide: true
      }
    },
    {
      path: '/carrierStandard/carrierUseRegistration/look/:id',
      component: () => import('@/views/carrierStandard/carrierUseRegistration/components/look/index.vue'),
      meta: {
        title: '携行航材使用登记-查看详情',
        hide: true
      }
    }
  ]
}

//携行计算模型管理
export const carrierComputationalModel = {
  path: '/carrierStandard',
  redirect: '/carrierStandard/carrierComputationalModel',
  component: Layout,
  name: 'CarrierComputationalModel',
  meta: {
    title: '航材管理',
    icon: 'el-icon-s-platform'
  },
  sort: 9,
  children: [
    {
      path: '/carrierStandard/carrierComputationalModel',
      component: () => import('@/views/carrierStandard/carrierComputationalModel/index.vue'),
      meta: {
        title: '携行计算模型管理'
      },
      sort: 6
    }
  ]
}

//航材消耗规律管理
export const carrierSailingMaterialConsumeRegularities = {
  path: '/carrierStandard',
  redirect: '/carrierStandard/carrierComputationalModel',
  component: Layout,
  name: 'CarrierSailingMaterialConsumeRegularities',
  meta: {
    title: '航材管理',
    icon: 'el-icon-s-platform'
  },
  sort: 9,
  children: [
    {
      path: '/carrierStandard/carrierSailingMaterialConsumeRegularities',
      component: () => import('@/views/carrierStandard/carrierSailingMaterialConsumeRegularities/index.vue'),
      meta: {
        title: '航材消耗规律管理'
      },
      sort: 7
    }
  ]
}

//历年航材消耗数据
export const carrierSailingMaterialConsumeRecord = {
  path: '/carrierStandard',
  redirect: '/carrierStandard/carrierComputationalModel',
  component: Layout,
  name: 'CarrierSailingMaterialConsumeRecord',
  meta: {
    title: '航材管理',
    icon: 'el-icon-s-platform'
  },
  sort: 9,
  children: [
    {
      path: '/carrierStandard/carrierSailingMaterialConsumeRecord',
      component: () => import('@/views/carrierStandard/carrierSailingMaterialConsumeRecord/index.vue'),
      meta: {
        title: '历年航材消耗数据'
      },
      sort: 8
    },
    // {
    //   path: '/carrierStandard/carrierSailingMaterialConsumeRecord',
    //   component: () => import('@/views/carrierStandard/carrierSailingMaterialConsumeRecord/annualManagement.vue'),
    //   meta: {
    //     title: '历年航材消耗数据-年度管理'
    //   }
    // },
    {
      path: '/carrierStandard/carrierSailingMaterialConsumeRecord/outboundRecord/:consumeDataId',
      component: () => import('@/views/carrierStandard/carrierSailingMaterialConsumeRecord/outboundRecord.vue'),
      meta: {
        title: '历年航材消耗数据-出库记录',
        hide: true
      }
    },
    {
      path: '/carrierStandard/carrierSailingMaterialConsumeRecord/warehousingRecord/:consumeDataId',
      component: () => import('@/views/carrierStandard/carrierSailingMaterialConsumeRecord/warehousingRecord.vue'),
      meta: {
        title: '历年航材消耗数据-入库记录',
        hide: true
      }
    },
    {
      path: '/carrierStandard/carrierSailingMaterialConsumeRecord/summarizedCalculation/:consumeDataId',
      component: () => import('@/views/carrierStandard/carrierSailingMaterialConsumeRecord/summarizedCalculation.vue'),
      meta: {
        title: '历年航材消耗数据-汇总计算',
        hide: true
      }
    }
  ]
}

//社会化保障参考
export const safeguardCost = {
  path: '/carrierStandard',
  redirect: '/carrierStandard/carrierComputationalModel',
  component: Layout,
  name: 'SafeguardCost',
  meta: {
    title: '航材管理',
    icon: 'el-icon-s-platform'
  },
  sort: 9,
  children: [
    {
      path: '/carrierStandard/safeguardCost',
      component: () => import('@/views/carrierStandard/safeguardCost/index.vue'),
      meta: {
        title: '社会化保障参考',
        hide: true
      },
      sort: 9
    },
    {
      path: '/carrierStandard/safeguardCost/:id',
      component: () => import('@/views/carrierStandard/safeguardCost/priceList.vue'),
      meta: {
        title: '社会化保障参考-价格清单',
        hide: true
      }
    }
  ]
}
