From 4e2c8f99f8e4c928522616956388a1275e90ea0d Mon Sep 17 00:00:00 2001 From: wangjunjie <873143256@qq.com> Date: Sat, 20 Dec 2025 09:55:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=B8=E6=9C=BA=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E3=80=81=E8=BD=A6=E8=BE=86=E5=88=97=E8=A1=A8=E3=80=81?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dts/components.d.ts | 4 + src/pages/cst/driver/Driver.vue | 204 ++++++++++++++++++ src/pages/cst/driver/DriverDetail.vue | 120 +++++++++++ src/pages/cst/driver/DriverForm.vue | 204 ++++++++++++++++++ src/pages/cst/driver/driver-api.ts | 22 ++ src/pages/cst/driver/driver.d.ts | 149 ++++++++++++++ src/pages/cst/driver/page.ts | 3 + src/pages/cst/project/Project.vue | 235 +++++++++++++++++++++ src/pages/cst/project/ProjectDetail.vue | 117 +++++++++++ src/pages/cst/project/ProjectForm.vue | 261 ++++++++++++++++++++++++ src/pages/cst/project/page.ts | 3 + src/pages/cst/project/project-api.ts | 22 ++ src/pages/cst/project/project.d.ts | 217 ++++++++++++++++++++ src/pages/cst/truck/Truck.vue | 209 +++++++++++++++++++ src/pages/cst/truck/TruckDetail.vue | 145 +++++++++++++ src/pages/cst/truck/TruckForm.vue | 239 ++++++++++++++++++++++ src/pages/cst/truck/page.ts | 3 + src/pages/cst/truck/truck-api.ts | 22 ++ src/pages/cst/truck/truck.d.ts | 185 +++++++++++++++++ 19 files changed, 2364 insertions(+) create mode 100644 src/pages/cst/driver/Driver.vue create mode 100644 src/pages/cst/driver/DriverDetail.vue create mode 100644 src/pages/cst/driver/DriverForm.vue create mode 100644 src/pages/cst/driver/driver-api.ts create mode 100644 src/pages/cst/driver/driver.d.ts create mode 100644 src/pages/cst/driver/page.ts create mode 100644 src/pages/cst/project/Project.vue create mode 100644 src/pages/cst/project/ProjectDetail.vue create mode 100644 src/pages/cst/project/ProjectForm.vue create mode 100644 src/pages/cst/project/page.ts create mode 100644 src/pages/cst/project/project-api.ts create mode 100644 src/pages/cst/project/project.d.ts create mode 100644 src/pages/cst/truck/Truck.vue create mode 100644 src/pages/cst/truck/TruckDetail.vue create mode 100644 src/pages/cst/truck/TruckForm.vue create mode 100644 src/pages/cst/truck/page.ts create mode 100644 src/pages/cst/truck/truck-api.ts create mode 100644 src/pages/cst/truck/truck.d.ts diff --git a/src/dts/components.d.ts b/src/dts/components.d.ts index cf7338d..c81eea5 100644 --- a/src/dts/components.d.ts +++ b/src/dts/components.d.ts @@ -23,6 +23,8 @@ declare module 'vue' { ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElContainer: typeof import('element-plus/es')['ElContainer'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] + ElDescriptions: typeof import('element-plus/es')['ElDescriptions'] + ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem'] ElDialog: typeof import('element-plus/es')['ElDialog'] ElDivider: typeof import('element-plus/es')['ElDivider'] ElDropdown: typeof import('element-plus/es')['ElDropdown'] @@ -76,6 +78,8 @@ declare global { const ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] const ElContainer: typeof import('element-plus/es')['ElContainer'] const ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] + const ElDescriptions: typeof import('element-plus/es')['ElDescriptions'] + const ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem'] const ElDialog: typeof import('element-plus/es')['ElDialog'] const ElDivider: typeof import('element-plus/es')['ElDivider'] const ElDropdown: typeof import('element-plus/es')['ElDropdown'] diff --git a/src/pages/cst/driver/Driver.vue b/src/pages/cst/driver/Driver.vue new file mode 100644 index 0000000..92343af --- /dev/null +++ b/src/pages/cst/driver/Driver.vue @@ -0,0 +1,204 @@ + + + + + diff --git a/src/pages/cst/driver/DriverDetail.vue b/src/pages/cst/driver/DriverDetail.vue new file mode 100644 index 0000000..40c15f3 --- /dev/null +++ b/src/pages/cst/driver/DriverDetail.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/src/pages/cst/driver/DriverForm.vue b/src/pages/cst/driver/DriverForm.vue new file mode 100644 index 0000000..f10be19 --- /dev/null +++ b/src/pages/cst/driver/DriverForm.vue @@ -0,0 +1,204 @@ + + + + + diff --git a/src/pages/cst/driver/driver-api.ts b/src/pages/cst/driver/driver-api.ts new file mode 100644 index 0000000..e1bf9bd --- /dev/null +++ b/src/pages/cst/driver/driver-api.ts @@ -0,0 +1,22 @@ +import { + get, + post +} from '@/common/utils/http-util.ts' + +export default { + paging(data: DriverTypes.SearchDriverParam) { + return get>('/driver/paging', data) + }, + detail(id: string) { + return get('/driver/detail', {id}) + }, + add(data: DriverTypes.AddDriverParam) { + return post('/driver/add', data) + }, + modify(data: DriverTypes.ModifyDriverParam) { + return post('/driver/modify', data) + }, + del(ids: string[]) { + return post('/driver/del', ids) + }, +} diff --git a/src/pages/cst/driver/driver.d.ts b/src/pages/cst/driver/driver.d.ts new file mode 100644 index 0000000..3b8b4f2 --- /dev/null +++ b/src/pages/cst/driver/driver.d.ts @@ -0,0 +1,149 @@ +export {} + +declare global { + namespace DriverTypes { + interface SearchDriverParam extends G.PageParam { + // Id + id?: string; + // 归属用户 Id;sys_user.id + userId?: string; + // 归属客户 Id;cst_customer.id + customerId?: string; + // 归属公司 Id;cst_org.id + orgId?: string; + orgName?: string; + // 驾驶证编号 + drivingLicenceNo?: string; + // 司机姓名 + driverName?: string; + // 手机号 + phone?: string; + // 驾驶证图片 + drivingLicence?: string; + // 驾驶证有效期 + licenceStartTime?: string; + // 驾驶证有效期 + licenceEndTime?: string; + // 忙碌中 + busy?: boolean; + // 创建人 Id;sys_user.id + creatorId?: string; + // 修改人 Id; sys_user.id + modifierId?: string; + // 创建时间 + createTime?: string; + // 修改时间 + modifyTime?: string; + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean; + } + + interface SearchDriverResult { + // Id + id?: string; + // 归属用户 Id;sys_user.id + userId?: string; + // 归属客户 Id;cst_customer.id + customerId?: string; + // 归属公司 Id;cst_org.id + orgId?: string; + orgName?: string; + // 驾驶证编号 + drivingLicenceNo?: string; + // 司机姓名 + driverName?: string; + // 手机号 + phone?: string; + // 驾驶证图片 + drivingLicence?: string; + // 驾驶证有效期 + licenceStartTime?: string; + // 驾驶证有效期 + licenceEndTime?: string; + // 忙碌中 + busy?: boolean; + // 创建人 Id;sys_user.id + creatorId?: string; + // 修改人 Id; sys_user.id + modifierId?: string; + // 创建时间 + createTime?: string; + // 修改时间 + modifyTime?: string; + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean; + } + + interface AddDriverParam { + // Id + id?: string; + // 归属用户 Id;sys_user.id + userId?: string; + // 归属客户 Id;cst_customer.id + customerId?: string; + // 归属公司 Id;cst_org.id + orgId?: string; + orgName?: string; + // 驾驶证编号 + drivingLicenceNo?: string; + // 司机姓名 + driverName?: string; + // 手机号 + phone?: string; + // 驾驶证图片 + drivingLicence?: string; + // 驾驶证有效期 + licenceStartTime?: string; + // 驾驶证有效期 + licenceEndTime?: string; + // 忙碌中 + busy?: boolean; + // 创建人 Id;sys_user.id + creatorId?: string; + // 修改人 Id; sys_user.id + modifierId?: string; + // 创建时间 + createTime?: string; + // 修改时间 + modifyTime?: string; + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean; + } + + interface ModifyDriverParam { + // Id + id?: string; + // 归属用户 Id;sys_user.id + userId?: string; + // 归属客户 Id;cst_customer.id + customerId?: string; + // 归属公司 Id;cst_org.id + orgId?: string; + orgName?: string; + // 驾驶证编号 + drivingLicenceNo?: string; + // 司机姓名 + driverName?: string; + // 手机号 + phone?: string; + // 驾驶证图片 + drivingLicence?: string; + // 驾驶证有效期 + licenceStartTime?: string; + // 驾驶证有效期 + licenceEndTime?: string; + // 忙碌中 + busy?: boolean; + // 创建人 Id;sys_user.id + creatorId?: string; + // 修改人 Id; sys_user.id + modifierId?: string; + // 创建时间 + createTime?: string; + // 修改时间 + modifyTime?: string; + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean; + } + } +} diff --git a/src/pages/cst/driver/page.ts b/src/pages/cst/driver/page.ts new file mode 100644 index 0000000..7049629 --- /dev/null +++ b/src/pages/cst/driver/page.ts @@ -0,0 +1,3 @@ +export default { + component: () => import('@/pages/cst/driver/Driver.vue'), +} as RouterTypes.RouteConfig \ No newline at end of file diff --git a/src/pages/cst/project/Project.vue b/src/pages/cst/project/Project.vue new file mode 100644 index 0000000..1ffbd8a --- /dev/null +++ b/src/pages/cst/project/Project.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/src/pages/cst/project/ProjectDetail.vue b/src/pages/cst/project/ProjectDetail.vue new file mode 100644 index 0000000..d911076 --- /dev/null +++ b/src/pages/cst/project/ProjectDetail.vue @@ -0,0 +1,117 @@ + + + + + diff --git a/src/pages/cst/project/ProjectForm.vue b/src/pages/cst/project/ProjectForm.vue new file mode 100644 index 0000000..e3c616e --- /dev/null +++ b/src/pages/cst/project/ProjectForm.vue @@ -0,0 +1,261 @@ + + + + + diff --git a/src/pages/cst/project/page.ts b/src/pages/cst/project/page.ts new file mode 100644 index 0000000..9f75f6d --- /dev/null +++ b/src/pages/cst/project/page.ts @@ -0,0 +1,3 @@ +export default { + component: () => import('@/pages/cst/project/Project.vue'), +} as RouterTypes.RouteConfig \ No newline at end of file diff --git a/src/pages/cst/project/project-api.ts b/src/pages/cst/project/project-api.ts new file mode 100644 index 0000000..480b7e7 --- /dev/null +++ b/src/pages/cst/project/project-api.ts @@ -0,0 +1,22 @@ +import { + get, + post +} from '@/common/utils/http-util.ts' + +export default { + paging(data: ProjectTypes.SearchProjectParam) { + return get>('/project/paging', data) + }, + detail(id: string) { + return get('/project/detail', {id}) + }, + add(data: ProjectTypes.AddProjectParam) { + return post('/project/add', data) + }, + modify(data: ProjectTypes.ModifyProjectParam) { + return post('/project/modify', data) + }, + del(ids: string[]) { + return post('/project/del', ids) + }, +} diff --git a/src/pages/cst/project/project.d.ts b/src/pages/cst/project/project.d.ts new file mode 100644 index 0000000..def709a --- /dev/null +++ b/src/pages/cst/project/project.d.ts @@ -0,0 +1,217 @@ +export {} + +declare global { + namespace ProjectTypes { + interface SearchProjectParam extends G.PageParam { + // Id + id?: string + // 项目名称 + projectName?: string + // 合同图片 + contractPicture?: string + // 运输方客户 Id + transCustomerId?: string + // 运输方组织 Id + transOrgId?: string + // 产废方/购买方客户 Id + fringeCustomerId?: string + // 产废方/购买方组织 Id + fringeOrgId?: string + // 省;代码 + province?: string + // 市;代码 + city?: string + // 区县;代码 + area?: string + // 乡镇街道;代码 + town?: string + // 省;名称 + provinceName?: string + // 市;名称 + cityName?: string + // 区县;名称 + areaName?: string + // 乡镇街道;名称 + townName?: string + // 详细地址 + address?: string + // 经度 + lng?: number + // 纬度 + lat?: number + // 合同有效期 + contractStartDate?: string + // 合同有效期 + contractEndDate?: string + // 创建人 Id; sys_user.id + creatorId?: string + // 修改人 Id; sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface SearchProjectResult { + // Id + id?: string + // 项目名称 + projectName?: string + // 合同图片 + contractPicture?: string + // 运输方客户 Id + transCustomerId?: string + // 运输方组织 Id + transOrgId?: string + // 产废方/购买方客户 Id + fringeCustomerId?: string + // 产废方/购买方组织 Id + fringeOrgId?: string + // 省;代码 + province?: string + // 市;代码 + city?: string + // 区县;代码 + area?: string + // 乡镇街道;代码 + town?: string + // 省;名称 + provinceName?: string + // 市;名称 + cityName?: string + // 区县;名称 + areaName?: string + // 乡镇街道;名称 + townName?: string + // 详细地址 + address?: string + // 经度 + lng?: number + // 纬度 + lat?: number + // 合同有效期 + contractStartDate?: string + // 合同有效期 + contractEndDate?: string + // 创建人 Id; sys_user.id + creatorId?: string + // 修改人 Id; sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface AddProjectParam { + // Id + id?: string + // 项目名称 + projectName?: string + // 合同图片 + contractPicture?: string + // 运输方客户 Id + transCustomerId?: string + // 运输方组织 Id + transOrgId?: string + // 产废方/购买方客户 Id + fringeCustomerId?: string + // 产废方/购买方组织 Id + fringeOrgId?: string + // 省;代码 + province?: string + // 市;代码 + city?: string + // 区县;代码 + area?: string + // 乡镇街道;代码 + town?: string + // 省;名称 + provinceName?: string + // 市;名称 + cityName?: string + // 区县;名称 + areaName?: string + // 乡镇街道;名称 + townName?: string + // 详细地址 + address?: string + // 经度 + lng?: number + // 纬度 + lat?: number + // 合同有效期 + contractStartDate?: string + // 合同有效期 + contractEndDate?: string + // 创建人 Id; sys_user.id + creatorId?: string + // 修改人 Id; sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface ModifyProjectParam { + // Id + id?: string + // 项目名称 + projectName?: string + // 合同图片 + contractPicture?: string + // 运输方客户 Id + transCustomerId?: string + // 运输方组织 Id + transOrgId?: string + // 产废方/购买方客户 Id + fringeCustomerId?: string + // 产废方/购买方组织 Id + fringeOrgId?: string + // 省;代码 + province?: string + // 市;代码 + city?: string + // 区县;代码 + area?: string + // 乡镇街道;代码 + town?: string + // 省;名称 + provinceName?: string + // 市;名称 + cityName?: string + // 区县;名称 + areaName?: string + // 乡镇街道;名称 + townName?: string + // 详细地址 + address?: string + // 经度 + lng?: number + // 纬度 + lat?: number + // 合同有效期 + contractStartDate?: string + // 合同有效期 + contractEndDate?: string + // 创建人 Id; sys_user.id + creatorId?: string + // 修改人 Id; sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + } +} diff --git a/src/pages/cst/truck/Truck.vue b/src/pages/cst/truck/Truck.vue new file mode 100644 index 0000000..12a9681 --- /dev/null +++ b/src/pages/cst/truck/Truck.vue @@ -0,0 +1,209 @@ + + + + + diff --git a/src/pages/cst/truck/TruckDetail.vue b/src/pages/cst/truck/TruckDetail.vue new file mode 100644 index 0000000..71cdece --- /dev/null +++ b/src/pages/cst/truck/TruckDetail.vue @@ -0,0 +1,145 @@ + + + + + diff --git a/src/pages/cst/truck/TruckForm.vue b/src/pages/cst/truck/TruckForm.vue new file mode 100644 index 0000000..d3fca31 --- /dev/null +++ b/src/pages/cst/truck/TruckForm.vue @@ -0,0 +1,239 @@ + + + + + diff --git a/src/pages/cst/truck/page.ts b/src/pages/cst/truck/page.ts new file mode 100644 index 0000000..ccfe4cf --- /dev/null +++ b/src/pages/cst/truck/page.ts @@ -0,0 +1,3 @@ +export default { + component: () => import('@/pages/cst/truck/Truck.vue'), +} as RouterTypes.RouteConfig \ No newline at end of file diff --git a/src/pages/cst/truck/truck-api.ts b/src/pages/cst/truck/truck-api.ts new file mode 100644 index 0000000..4b0b629 --- /dev/null +++ b/src/pages/cst/truck/truck-api.ts @@ -0,0 +1,22 @@ +import { + get, + post +} from '@/common/utils/http-util.ts' + +export default { + paging(data: TruckTypes.SearchTruckParam) { + return get>('/truck/paging', data) + }, + detail(id: string) { + return get('/truck/detail', {id}) + }, + add(data: TruckTypes.AddTruckParam) { + return post('/truck/add', data) + }, + modify(data: TruckTypes.ModifyTruckParam) { + return post('/truck/modify', data) + }, + del(ids: string[]) { + return post('/truck/del', ids) + }, +} diff --git a/src/pages/cst/truck/truck.d.ts b/src/pages/cst/truck/truck.d.ts new file mode 100644 index 0000000..c0a5298 --- /dev/null +++ b/src/pages/cst/truck/truck.d.ts @@ -0,0 +1,185 @@ +export {} + +declare global { + namespace TruckTypes { + interface SearchTruckParam extends G.PageParam { + // Id + id?: string + // 归属客户 Id;cst_customer.id + customerId?: string + // 归属组织 + orgId?: string + // 车牌 + licensePlate?: string + // 行驶证图片 + truckLicense?: string + // 车架号 + vnCode?: string + // 合格证图片 + qualification?: string + // 最大载重;单位:千克 + carryingCapacity?: number + // 皮重;单位:千克 + tareWeight?: number + // 行驶证有效期 + licenseStartDate?: string + // 行驶证有效期 + licenseEndDate?: string + // 合格证有效期 + qualificationStartDate?: string + // 合格证有效期 + qualificationEndDate?: string + // 车辆类型 + truckCategory?: string + // 车辆图片 + picture?: string + // 忙碌中 + busy?: boolean + // 创建人 Id; sys_user.id + creatorId?: string + // 修改人 Id; sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface SearchTruckResult { + // Id + id?: string + // 归属客户 Id;cst_customer.id + customerId?: string + // 归属组织 + orgId?: string + // 车牌 + licensePlate?: string + // 行驶证图片 + truckLicense?: string + // 车架号 + vnCode?: string + // 合格证图片 + qualification?: string + // 最大载重;单位:千克 + carryingCapacity?: number + // 皮重;单位:千克 + tareWeight?: number + // 行驶证有效期 + licenseStartDate?: string + // 行驶证有效期 + licenseEndDate?: string + // 合格证有效期 + qualificationStartDate?: string + // 合格证有效期 + qualificationEndDate?: string + // 车辆类型 + truckCategory?: string + // 车辆图片 + picture?: string + // 忙碌中 + busy?: boolean + // 创建人 Id; sys_user.id + creatorId?: string + // 修改人 Id; sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface AddTruckParam { + // Id + id?: string + // 归属客户 Id;cst_customer.id + customerId?: string + // 归属组织 + orgId?: string + // 车牌 + licensePlate?: string + // 行驶证图片 + truckLicense?: string + // 车架号 + vnCode?: string + // 合格证图片 + qualification?: string + // 最大载重;单位:千克 + carryingCapacity?: number + // 皮重;单位:千克 + tareWeight?: number + // 行驶证有效期 + licenseStartDate?: string + // 行驶证有效期 + licenseEndDate?: string + // 合格证有效期 + qualificationStartDate?: string + // 合格证有效期 + qualificationEndDate?: string + // 车辆类型 + truckCategory?: string + // 车辆图片 + picture?: string + // 忙碌中 + busy?: boolean + // 创建人 Id; sys_user.id + creatorId?: string + // 修改人 Id; sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface ModifyTruckParam { + // Id + id?: string + // 归属客户 Id;cst_customer.id + customerId?: string + // 归属组织 + orgId?: string + // 车牌 + licensePlate?: string + // 行驶证图片 + truckLicense?: string + // 车架号 + vnCode?: string + // 合格证图片 + qualification?: string + // 最大载重;单位:千克 + carryingCapacity?: number + // 皮重;单位:千克 + tareWeight?: number + // 行驶证有效期 + licenseStartDate?: string + // 行驶证有效期 + licenseEndDate?: string + // 合格证有效期 + qualificationStartDate?: string + // 合格证有效期 + qualificationEndDate?: string + // 车辆类型 + truckCategory?: string + // 车辆图片 + picture?: string + // 忙碌中 + busy?: boolean + // 创建人 Id; sys_user.id + creatorId?: string + // 修改人 Id; sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + } +}