From 2bf1eadb1bf01d281473deab8664ae527871fa75 Mon Sep 17 00:00:00 2001 From: sonjinyon <2476687577@qq.com> Date: Fri, 23 Aug 2024 09:48:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=BB=91=E5=90=8D=E5=8D=95?= =?UTF-8?q?=EF=BC=8C=E8=BF=9B=E5=87=BA=E5=9C=BA=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/parking/appearancerecord/index.ts | 67 +++ src/api/parking/black/index.ts | 43 ++ src/api/parking/entryrecord/index.ts | 51 ++ src/api/parking/white/index.ts | 2 +- src/utils/dict.ts | 3 + .../appearancerecord/AppearanceRecordForm.vue | 262 ++++++++++ src/views/parking/appearancerecord/index.vue | 472 ++++++++++++++++++ src/views/parking/black/BlackForm.vue | 114 +++++ src/views/parking/black/index.vue | 231 +++++++++ .../parking/entryrecord/EntryRecordForm.vue | 168 +++++++ src/views/parking/entryrecord/index.vue | 303 +++++++++++ src/views/parking/white/index.vue | 16 +- 12 files changed, 1723 insertions(+), 9 deletions(-) create mode 100644 src/api/parking/appearancerecord/index.ts create mode 100644 src/api/parking/black/index.ts create mode 100644 src/api/parking/entryrecord/index.ts create mode 100644 src/views/parking/appearancerecord/AppearanceRecordForm.vue create mode 100644 src/views/parking/appearancerecord/index.vue create mode 100644 src/views/parking/black/BlackForm.vue create mode 100644 src/views/parking/black/index.vue create mode 100644 src/views/parking/entryrecord/EntryRecordForm.vue create mode 100644 src/views/parking/entryrecord/index.vue diff --git a/src/api/parking/appearancerecord/index.ts b/src/api/parking/appearancerecord/index.ts new file mode 100644 index 00000000..b9c0bf67 --- /dev/null +++ b/src/api/parking/appearancerecord/index.ts @@ -0,0 +1,67 @@ +import request from '@/config/axios' + +// 出场记录 VO +export interface AppearanceRecordVO { + id: number // id + orderId: string // 入场记录编号 + parkNumber: string // 停车场编号 + operatorId: string // 操作员 Id + operatorName: string // 操作员姓名 + invoiceNo: string // 发票号码 + plate: string // 车牌 + idCard: string // 证件号码 + inTime: string // 入场时间 + outTime: string // 出场时间 + inImage: string // 入场图片名 + outImage: string // 出场图片名 + inChannel: string // 入口通道名称 + outChannel: string // 出口通道名称 + openGateMode: string // 抬杆模式 + matchMode: string // 匹配模式 + charge: string // 总停车费 + onLineCharge: string // 线上总收费 + offLineCharge: string // 线下总收费 + profitChargeTotal: string // 线上线下金额和时间优惠累计抵扣值 + onLineProfitChargeNum: string // 线上累计优惠金额总面值 + onLineProfitChargeValue: string // 线上累计优惠金额总抵扣值 + offLineProfitChargeNum: string // 线下累计优惠金额总面值 + offLineProfitChargeValue: string // 线下累计优惠金额总抵扣值 + onLineProfitTimeNum: string // 线上累计优惠时间 + onLineProfitTimeValue: string // 线上累计优惠时间总抵扣值 + offLineProfitTimeNum: string // 线下累计优惠时间 + offLineProfitTimeValue: string // 线下累计优惠时间总抵扣值 + costTime: string // 时间 +} + +// 出场记录 API +export const AppearanceRecordApi = { + // 查询出场记录分页 + getAppearanceRecordPage: async (params: any) => { + return await request.get({ url: `/parking/appearance-record/page`, params }) + }, + + // 查询出场记录详情 + getAppearanceRecord: async (id: number) => { + return await request.get({ url: `/parking/appearance-record/get?id=` + id }) + }, + + // 新增出场记录 + createAppearanceRecord: async (data: AppearanceRecordVO) => { + return await request.post({ url: `/parking/appearance-record/create`, data }) + }, + + // 修改出场记录 + updateAppearanceRecord: async (data: AppearanceRecordVO) => { + return await request.put({ url: `/parking/appearance-record/update`, data }) + }, + + // 删除出场记录 + deleteAppearanceRecord: async (id: number) => { + return await request.delete({ url: `/parking/appearance-record/delete?id=` + id }) + }, + + // 导出出场记录 Excel + exportAppearanceRecord: async (params) => { + return await request.download({ url: `/parking/appearance-record/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/api/parking/black/index.ts b/src/api/parking/black/index.ts new file mode 100644 index 00000000..ddd3d645 --- /dev/null +++ b/src/api/parking/black/index.ts @@ -0,0 +1,43 @@ +import request from '@/config/axios' + +// 黑名单 VO +export interface BlackVO { + id: number // id + parkNumber: string // 场库编号 + source: string // 来源 + plate: string // 车牌号 + memo: string // 备注 +} + +// 黑名单 API +export const BlackApi = { + // 查询黑名单分页 + getBlackPage: async (params: any) => { + return await request.get({ url: `/parking/black/page`, params }) + }, + + // 查询黑名单详情 + getBlack: async (id: number) => { + return await request.get({ url: `/parking/black/get?id=` + id }) + }, + + // 新增黑名单 + createBlack: async (data: BlackVO) => { + return await request.post({ url: `/parking/black/create`, data }) + }, + + // 修改黑名单 + updateBlack: async (data: BlackVO) => { + return await request.put({ url: `/parking/black/update`, data }) + }, + + // 删除黑名单 + deleteBlack: async (id: number) => { + return await request.delete({ url: `/parking/black/delete?id=` + id }) + }, + + // 导出黑名单 Excel + exportBlack: async (params) => { + return await request.download({ url: `/parking/black/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/api/parking/entryrecord/index.ts b/src/api/parking/entryrecord/index.ts new file mode 100644 index 00000000..2cffa950 --- /dev/null +++ b/src/api/parking/entryrecord/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +// 入场记录 VO +export interface EntryRecordVO { + id: number // 入场id + orderId: string // 入场记录编号 + parkNumber: string // 场库编号 + plate: string // 车牌 + idCard: string // 证件号码 + inTime: string // 入场时间 + inChannel: string // 入场通道名称 + inImage: string // 入场图片名 + visitReason: string // 访问事由 + openGateMode: string // 放行类型 + matchMode: string // 匹配模式 + barriorOpen: string // 是否开闸 + costTime: string // 开闸耗时 +} + +// 入场记录 API +export const EntryRecordApi = { + // 查询入场记录分页 + getEntryRecordPage: async (params: any) => { + return await request.get({ url: `/parking/entry-record/page`, params }) + }, + + // 查询入场记录详情 + getEntryRecord: async (id: number) => { + return await request.get({ url: `/parking/entry-record/get?id=` + id }) + }, + + // 新增入场记录 + createEntryRecord: async (data: EntryRecordVO) => { + return await request.post({ url: `/parking/entry-record/create`, data }) + }, + + // 修改入场记录 + updateEntryRecord: async (data: EntryRecordVO) => { + return await request.put({ url: `/parking/entry-record/update`, data }) + }, + + // 删除入场记录 + deleteEntryRecord: async (id: number) => { + return await request.delete({ url: `/parking/entry-record/delete?id=` + id }) + }, + + // 导出入场记录 Excel + exportEntryRecord: async (params) => { + return await request.download({ url: `/parking/entry-record/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/api/parking/white/index.ts b/src/api/parking/white/index.ts index b42df881..c213787d 100644 --- a/src/api/parking/white/index.ts +++ b/src/api/parking/white/index.ts @@ -38,7 +38,7 @@ export const WhiteApi = { // 删除白名单管理 deleteWhite: async (id: number) => { - return await request.delete({ url: `/parking/white/delete?id=` + id }) + return await request.delete({ url: `/parking/white/delete?fixedId=` + id }) }, // 导出白名单管理 Excel diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 2c6d35d8..97405c67 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -115,6 +115,9 @@ export enum DICT_TYPE { //告警 OBJECT_TYPE = 'object_type', WARNING_TYPE = 'warning_type', + + //黑名单来源 + BLACK_SOURCE = 'black_source', // ========== SYSTEM 模块 ========== SYSTEM_USER_SEX = 'system_user_sex', diff --git a/src/views/parking/appearancerecord/AppearanceRecordForm.vue b/src/views/parking/appearancerecord/AppearanceRecordForm.vue new file mode 100644 index 00000000..af948154 --- /dev/null +++ b/src/views/parking/appearancerecord/AppearanceRecordForm.vue @@ -0,0 +1,262 @@ + + \ No newline at end of file diff --git a/src/views/parking/appearancerecord/index.vue b/src/views/parking/appearancerecord/index.vue new file mode 100644 index 00000000..a8af4d00 --- /dev/null +++ b/src/views/parking/appearancerecord/index.vue @@ -0,0 +1,472 @@ + + + \ No newline at end of file diff --git a/src/views/parking/black/BlackForm.vue b/src/views/parking/black/BlackForm.vue new file mode 100644 index 00000000..d8f930bd --- /dev/null +++ b/src/views/parking/black/BlackForm.vue @@ -0,0 +1,114 @@ + + \ No newline at end of file diff --git a/src/views/parking/black/index.vue b/src/views/parking/black/index.vue new file mode 100644 index 00000000..45208a61 --- /dev/null +++ b/src/views/parking/black/index.vue @@ -0,0 +1,231 @@ + + + \ No newline at end of file diff --git a/src/views/parking/entryrecord/EntryRecordForm.vue b/src/views/parking/entryrecord/EntryRecordForm.vue new file mode 100644 index 00000000..d77def86 --- /dev/null +++ b/src/views/parking/entryrecord/EntryRecordForm.vue @@ -0,0 +1,168 @@ + + \ No newline at end of file diff --git a/src/views/parking/entryrecord/index.vue b/src/views/parking/entryrecord/index.vue new file mode 100644 index 00000000..6905ecd8 --- /dev/null +++ b/src/views/parking/entryrecord/index.vue @@ -0,0 +1,303 @@ + + + \ No newline at end of file diff --git a/src/views/parking/white/index.vue b/src/views/parking/white/index.vue index d0937272..540ce29f 100644 --- a/src/views/parking/white/index.vue +++ b/src/views/parking/white/index.vue @@ -50,7 +50,7 @@ class="!w-240px" /> - + + + 搜索 重置 @@ -154,7 +154,7 @@ :formatter="dateFormatter" width="180px" /> - +