From 99a09232f06d3fc3fd8b9a7758055366891e87ac Mon Sep 17 00:00:00 2001 From: sonjinyon <2476687577@qq.com> Date: Tue, 3 Sep 2024 14:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=88=AA=E7=8F=AD=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ludu-admin-vue.iml | 9 + src/api/parking/white/index.ts | 9 + src/api/ticket/flight/index.ts | 47 ++++ src/api/ticket/shiproute/index.ts | 47 ++++ src/api/ticket/todayflight/index.ts | 43 +++ src/views/parking/appearancerecord/index.vue | 52 ++-- src/views/parking/black/BlackForm.vue | 6 +- src/views/parking/entryrecord/index.vue | 128 ++++----- src/views/parking/white/index.vue | 8 + src/views/ticket/flight/FlightForm.vue | 92 +++++++ src/views/ticket/flight/index.vue | 187 +++++++++++++ src/views/ticket/shiproute/ShipRouteForm.vue | 123 +++++++++ src/views/ticket/shiproute/index.vue | 230 ++++++++++++++++ .../ticket/todayflight/TodayFlightForm.vue | 136 ++++++++++ src/views/ticket/todayflight/index.vue | 254 ++++++++++++++++++ 15 files changed, 1280 insertions(+), 91 deletions(-) create mode 100644 ludu-admin-vue.iml create mode 100644 src/api/ticket/flight/index.ts create mode 100644 src/api/ticket/shiproute/index.ts create mode 100644 src/api/ticket/todayflight/index.ts create mode 100644 src/views/ticket/flight/FlightForm.vue create mode 100644 src/views/ticket/flight/index.vue create mode 100644 src/views/ticket/shiproute/ShipRouteForm.vue create mode 100644 src/views/ticket/shiproute/index.vue create mode 100644 src/views/ticket/todayflight/TodayFlightForm.vue create mode 100644 src/views/ticket/todayflight/index.vue diff --git a/ludu-admin-vue.iml b/ludu-admin-vue.iml new file mode 100644 index 00000000..8021953e --- /dev/null +++ b/ludu-admin-vue.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/api/parking/white/index.ts b/src/api/parking/white/index.ts index c213787d..11c8d73d 100644 --- a/src/api/parking/white/index.ts +++ b/src/api/parking/white/index.ts @@ -12,6 +12,15 @@ export interface WhiteVO { dept: string // 部门 memo: string // 备注 source: string // 来源 + name: string // + carType: string + areaId: number + areaStart: string + areaEnd: string + address: string + phone: string + plateColor: string + } // 白名单管理 API diff --git a/src/api/ticket/flight/index.ts b/src/api/ticket/flight/index.ts new file mode 100644 index 00000000..f0e1dc11 --- /dev/null +++ b/src/api/ticket/flight/index.ts @@ -0,0 +1,47 @@ +import request from '@/config/axios' + +// 航班 VO +export interface FlightVO { + id: number // id + flightName: string // 航班名称 +} + + +// 航班 API +export const FlightApi = { + + //查询航班下拉框数据 + getFlightName: async () =>{ + return await request.get({ url : `/ticket/flight/flightNameOption`}) + }, + + // 查询航班分页 + getFlightPage: async (params: any) => { + return await request.get({ url: `/ticket/flight/page`, params }) + }, + + // 查询航班详情 + getFlight: async (id: number) => { + return await request.get({ url: `/ticket/flight/get?id=` + id }) + }, + + // 新增航班 + createFlight: async (data: FlightVO) => { + return await request.post({ url: `/ticket/flight/create`, data }) + }, + + // 修改航班 + updateFlight: async (data: FlightVO) => { + return await request.put({ url: `/ticket/flight/update`, data }) + }, + + // 删除航班 + deleteFlight: async (id: number) => { + return await request.delete({ url: `/ticket/flight/delete?id=` + id }) + }, + + // 导出航班 Excel + exportFlight: async (params) => { + return await request.download({ url: `/ticket/flight/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/api/ticket/shiproute/index.ts b/src/api/ticket/shiproute/index.ts new file mode 100644 index 00000000..58b791e9 --- /dev/null +++ b/src/api/ticket/shiproute/index.ts @@ -0,0 +1,47 @@ +import request from '@/config/axios' + +// 航线 VO +export interface ShipRouteVO { + id: number // id + flightId: number // 航班 + routeName: string // 航线名称 +} + +// 航线 API +export const ShipRouteApi = { + + //查询航班下拉框数据 + getRouteName: async () =>{ + return await request.get({ url : `/ticket/ship-route/routeNameOption`}) + }, + + // 查询航线分页 + getShipRoutePage: async (params: any) => { + return await request.get({ url: `/ticket/ship-route/page`, params }) + }, + + // 查询航线详情 + getShipRoute: async (id: number) => { + return await request.get({ url: `/ticket/ship-route/get?id=` + id }) + }, + + // 新增航线 + createShipRoute: async (data: ShipRouteVO) => { + return await request.post({ url: `/ticket/ship-route/create`, data }) + }, + + // 修改航线 + updateShipRoute: async (data: ShipRouteVO) => { + return await request.put({ url: `/ticket/ship-route/update`, data }) + }, + + // 删除航线 + deleteShipRoute: async (id: number) => { + return await request.delete({ url: `/ticket/ship-route/delete?id=` + id }) + }, + + // 导出航线 Excel + exportShipRoute: async (params) => { + return await request.download({ url: `/ticket/ship-route/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/api/ticket/todayflight/index.ts b/src/api/ticket/todayflight/index.ts new file mode 100644 index 00000000..d3117d9d --- /dev/null +++ b/src/api/ticket/todayflight/index.ts @@ -0,0 +1,43 @@ +import request from '@/config/axios' + +// 今日航班 VO +export interface TodayFlightVO { + id: number // id + shipRouteId: number // 航线 + classes: string // 班次 + flightDate: string // 当日日期 + startTime: string // 开始时间 +} + +// 今日航班 API +export const TodayFlightApi = { + // 查询今日航班分页 + getTodayFlightPage: async (params: any) => { + return await request.get({ url: `/ticket/today-flight/page`, params }) + }, + + // 查询今日航班详情 + getTodayFlight: async (id: number) => { + return await request.get({ url: `/ticket/today-flight/get?id=` + id }) + }, + + // 新增今日航班 + createTodayFlight: async (data: TodayFlightVO) => { + return await request.post({ url: `/ticket/today-flight/create`, data }) + }, + + // 修改今日航班 + updateTodayFlight: async (data: TodayFlightVO) => { + return await request.put({ url: `/ticket/today-flight/update`, data }) + }, + + // 删除今日航班 + deleteTodayFlight: async (id: number) => { + return await request.delete({ url: `/ticket/today-flight/delete?id=` + id }) + }, + + // 导出今日航班 Excel + exportTodayFlight: async (params) => { + return await request.download({ url: `/ticket/today-flight/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/views/parking/appearancerecord/index.vue b/src/views/parking/appearancerecord/index.vue index a8af4d00..5d3a6444 100644 --- a/src/views/parking/appearancerecord/index.vue +++ b/src/views/parking/appearancerecord/index.vue @@ -26,15 +26,15 @@ class="!w-240px" /> - - - + + + + + + + + + 搜索 重置 - - 新增 - + + + + + + + +