diff --git a/.env.prod b/.env.prod index 3851d39d..d32a4cdd 100644 --- a/.env.prod +++ b/.env.prod @@ -27,7 +27,7 @@ VITE_SOURCEMAP=false VITE_BASE_PATH=/admin # 输出路径 -VITE_OUT_DIR=dist-prod +VITE_OUT_DIR=pc # 商城H5会员端域名 VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn' diff --git a/src/api/parking/bookcar/index.ts b/src/api/parking/bookcar/index.ts new file mode 100644 index 00000000..ac077046 --- /dev/null +++ b/src/api/parking/bookcar/index.ts @@ -0,0 +1,53 @@ +import request from '@/config/axios' + +// 预约车 VO +export interface BookCarVO { + id: number // id + parkNumber: string // 场库编号 + plate: string // 预约车牌号 + start: string // 预约开始时间 + end: string // 预约结束时间 + areaId: string // 区域号 + flag: string // 操作 + charge: string // 金额 + bookOrderId: string // 预约订单号 + inTime: string // 入场时间 + downTime: string // 下发场库时间 + bookOrderTime: string // 订单下单时间 + letInStartTime: string // 准入开始时间 + letInEndTime: string // 准入结束时间 + memo: string // 备注 +} + +// 预约车 API +export const BookCarApi = { + // 查询预约车分页 + getBookCarPage: async (params: any) => { + return await request.get({ url: `/parking/book-car/page`, params }) + }, + + // 查询预约车详情 + getBookCar: async (id: number) => { + return await request.get({ url: `/parking/book-car/get?id=` + id }) + }, + + // 新增预约车 + createBookCar: async (data: BookCarVO) => { + return await request.post({ url: `/parking/book-car/create`, data }) + }, + + // 修改预约车 + updateBookCar: async (data: BookCarVO) => { + return await request.put({ url: `/parking/book-car/update`, data }) + }, + + // 删除预约车 + deleteBookCar: async (id: number) => { + return await request.delete({ url: `/parking/book-car/delete?id=` + id }) + }, + + // 导出预约车 Excel + exportBookCar: async (params) => { + return await request.download({ url: `/parking/book-car/export-excel`, params }) + } +} \ No newline at end of file diff --git a/src/assets/imgs/ludu_view.png b/src/assets/imgs/ludu_view.png new file mode 100644 index 00000000..a35645ad Binary files /dev/null and b/src/assets/imgs/ludu_view.png differ diff --git a/src/assets/imgs/ludu_view2.jpg b/src/assets/imgs/ludu_view2.jpg new file mode 100644 index 00000000..3c90d390 Binary files /dev/null and b/src/assets/imgs/ludu_view2.jpg differ diff --git a/src/views/parking/bookcar/BookCarForm.vue b/src/views/parking/bookcar/BookCarForm.vue new file mode 100644 index 00000000..04637d5d --- /dev/null +++ b/src/views/parking/bookcar/BookCarForm.vue @@ -0,0 +1,189 @@ + + \ No newline at end of file diff --git a/src/views/parking/bookcar/index.vue b/src/views/parking/bookcar/index.vue new file mode 100644 index 00000000..4fd30065 --- /dev/null +++ b/src/views/parking/bookcar/index.vue @@ -0,0 +1,340 @@ + + + \ No newline at end of file