| | |
| | | [key: string]: any; |
| | | } |
| | | |
| | | interface BasicdataBuyerEntity { |
| | | /** |
| | | * ID |
| | | */ |
| | | id?: number; |
| | | |
| | | /** |
| | | * 部门ID |
| | | */ |
| | | departmentId?: BigInt; |
| | | |
| | | /** |
| | | * 代码 |
| | | */ |
| | | code?: string; |
| | | |
| | | /** |
| | | * 名称 |
| | | */ |
| | | name?: string; |
| | | |
| | | /** |
| | | * 地址 |
| | | */ |
| | | address?: string; |
| | | |
| | | /** |
| | | * 联系人 |
| | | */ |
| | | contact?: string; |
| | | |
| | | /** |
| | | * 联系电话 |
| | | */ |
| | | phone?: string; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | remark?: string; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | createTime?: string; |
| | | |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | updateTime?: string; |
| | | |
| | | /** |
| | | * 部门名称 |
| | | */ |
| | | departmentName?: string; |
| | | |
| | | /** |
| | | * 任意键值 |
| | | */ |
| | | [key: string]: any; |
| | | } |
| | | |
| | | interface BasicdataDriverEntity { |
| | | /** |
| | | * ID |
| | |
| | | * 更新时间 |
| | | */ |
| | | updateTime?: string; |
| | | |
| | | /** |
| | | * 任意键值 |
| | | */ |
| | | [key: string]: any; |
| | | } |
| | | |
| | | interface OperationWastesaleEntity { |
| | | /** |
| | | * ID |
| | | */ |
| | | id?: number; |
| | | |
| | | /** |
| | | * 部门ID |
| | | */ |
| | | departmentId?: BigInt; |
| | | |
| | | /** |
| | | * 收集点ID |
| | | */ |
| | | siteId?: string; |
| | | |
| | | /** |
| | | * 垃圾种类 |
| | | */ |
| | | wasteCode?: string; |
| | | |
| | | /** |
| | | * 日期时间 |
| | | */ |
| | | dateTime?: Date; |
| | | |
| | | /** |
| | | * 重量 |
| | | */ |
| | | weight?: number; |
| | | |
| | | /** |
| | | * 单价 |
| | | */ |
| | | unitPrice?: number; |
| | | |
| | | /** |
| | | * 总价 |
| | | */ |
| | | totalPrice?: number; |
| | | |
| | | /** |
| | | * 经手人ID |
| | | */ |
| | | handlerId?: BigInt; |
| | | |
| | | /** |
| | | * 收购方代码 |
| | | */ |
| | | buyerCode?: string; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | createTime?: string; |
| | | |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | updateTime?: string; |
| | | |
| | | /** |
| | | * 部门名称 |
| | | */ |
| | | departmentName?: string; |
| | | |
| | | /** |
| | | * 名称 |
| | | */ |
| | | siteName?: string; |
| | | |
| | | /** |
| | | * 名称 |
| | | */ |
| | | wasteName?: string; |
| | | |
| | | /** |
| | | * 姓名 |
| | | */ |
| | | handlerName?: string; |
| | | |
| | | /** |
| | | * 名称 |
| | | */ |
| | | buyerName?: string; |
| | | |
| | | /** |
| | | * 任意键值 |
| | |
| | | list: BasicdataWastetypeEntity[]; |
| | | } |
| | | |
| | | interface BasicdataBuyerPageResponse { |
| | | pagination: PagePagination; |
| | | list: BasicdataBuyerEntity[]; |
| | | } |
| | | |
| | | interface DemoGoodsPageResponse { |
| | | pagination: PagePagination; |
| | | list: DemoGoodsEntity[]; |
| | |
| | | list: PushCameraGpsEntity[]; |
| | | } |
| | | |
| | | interface PushDeviceonoffPageResponse { |
| | | pagination: PagePagination; |
| | | list: PushDeviceOnoffEntity[]; |
| | | } |
| | | |
| | | interface PushSiteweightPageResponse { |
| | | pagination: PagePagination; |
| | | list: PushSiteweightEntity[]; |
| | |
| | | interface PushWeightPageResponse { |
| | | pagination: PagePagination; |
| | | list: PushWeightEntity[]; |
| | | } |
| | | |
| | | interface PushDeviceonoffPageResponse { |
| | | pagination: PagePagination; |
| | | list: PushDeviceOnoffEntity[]; |
| | | } |
| | | |
| | | interface RecycleDataPageResponse { |
| | |
| | | interface UserInfoPageResponse { |
| | | pagination: PagePagination; |
| | | list: UserInfoEntity[]; |
| | | } |
| | | |
| | | interface OperationWastesalePageResponse { |
| | | pagination: PagePagination; |
| | | list: OperationWastesaleEntity[]; |
| | | } |
| | | |
| | | interface BaseCoding { |
| | |
| | | request: Request; |
| | | } |
| | | |
| | | interface BasicdataBuyer { |
| | | /** |
| | | * 删除 |
| | | */ |
| | | delete(data?: any): Promise<any>; |
| | | |
| | | /** |
| | | * 修改 |
| | | */ |
| | | update(data?: any): Promise<any>; |
| | | |
| | | /** |
| | | * 单个信息 |
| | | */ |
| | | info(data?: any): Promise<BasicdataBuyerEntity>; |
| | | |
| | | /** |
| | | * 列表查询 |
| | | */ |
| | | list(data?: any): Promise<BasicdataBuyerEntity[]>; |
| | | |
| | | /** |
| | | * 分页查询 |
| | | */ |
| | | page(data?: any): Promise<BasicdataBuyerPageResponse>; |
| | | |
| | | /** |
| | | * 新增 |
| | | */ |
| | | add(data?: any): Promise<any>; |
| | | |
| | | /** |
| | | * 权限标识 |
| | | */ |
| | | permission: { |
| | | delete: string; |
| | | update: string; |
| | | info: string; |
| | | list: string; |
| | | page: string; |
| | | add: string; |
| | | }; |
| | | |
| | | /** |
| | | * 权限状态 |
| | | */ |
| | | _permission: { |
| | | delete: boolean; |
| | | update: boolean; |
| | | info: boolean; |
| | | list: boolean; |
| | | page: boolean; |
| | | add: boolean; |
| | | }; |
| | | |
| | | request: Request; |
| | | } |
| | | |
| | | interface DemoGoods { |
| | | /** |
| | | * 删除 |
| | |
| | | request: Request; |
| | | } |
| | | |
| | | interface PushDeviceonoff { |
| | | /** |
| | | * 删除 |
| | | */ |
| | | delete(data?: any): Promise<any>; |
| | | |
| | | /** |
| | | * 修改 |
| | | */ |
| | | update(data?: any): Promise<any>; |
| | | |
| | | /** |
| | | * 单个信息 |
| | | */ |
| | | info(data?: any): Promise<PushDeviceOnoffEntity>; |
| | | |
| | | /** |
| | | * 列表查询 |
| | | */ |
| | | list(data?: any): Promise<PushDeviceOnoffEntity[]>; |
| | | |
| | | /** |
| | | * 分页查询 |
| | | */ |
| | | page(data?: any): Promise<PushDeviceonoffPageResponse>; |
| | | |
| | | /** |
| | | * 新增 |
| | | */ |
| | | add(data?: any): Promise<any>; |
| | | |
| | | /** |
| | | * 权限标识 |
| | | */ |
| | | permission: { |
| | | delete: string; |
| | | update: string; |
| | | info: string; |
| | | list: string; |
| | | page: string; |
| | | add: string; |
| | | }; |
| | | |
| | | /** |
| | | * 权限状态 |
| | | */ |
| | | _permission: { |
| | | delete: boolean; |
| | | update: boolean; |
| | | info: boolean; |
| | | list: boolean; |
| | | page: boolean; |
| | | add: boolean; |
| | | }; |
| | | |
| | | request: Request; |
| | | } |
| | | |
| | | interface PushSiteweight { |
| | | /** |
| | | * 删除 |
| | |
| | | * 分页查询 |
| | | */ |
| | | page(data?: any): Promise<PushWeightPageResponse>; |
| | | |
| | | /** |
| | | * 新增 |
| | | */ |
| | | add(data?: any): Promise<any>; |
| | | |
| | | /** |
| | | * 权限标识 |
| | | */ |
| | | permission: { |
| | | delete: string; |
| | | update: string; |
| | | info: string; |
| | | list: string; |
| | | page: string; |
| | | add: string; |
| | | }; |
| | | |
| | | /** |
| | | * 权限状态 |
| | | */ |
| | | _permission: { |
| | | delete: boolean; |
| | | update: boolean; |
| | | info: boolean; |
| | | list: boolean; |
| | | page: boolean; |
| | | add: boolean; |
| | | }; |
| | | |
| | | request: Request; |
| | | } |
| | | |
| | | interface PushDeviceonoff { |
| | | /** |
| | | * 删除 |
| | | */ |
| | | delete(data?: any): Promise<any>; |
| | | |
| | | /** |
| | | * 修改 |
| | | */ |
| | | update(data?: any): Promise<any>; |
| | | |
| | | /** |
| | | * 单个信息 |
| | | */ |
| | | info(data?: any): Promise<PushDeviceOnoffEntity>; |
| | | |
| | | /** |
| | | * 列表查询 |
| | | */ |
| | | list(data?: any): Promise<PushDeviceOnoffEntity[]>; |
| | | |
| | | /** |
| | | * 分页查询 |
| | | */ |
| | | page(data?: any): Promise<PushDeviceonoffPageResponse>; |
| | | |
| | | /** |
| | | * 新增 |
| | |
| | | request: Request; |
| | | } |
| | | |
| | | interface OperationWastesale { |
| | | /** |
| | | * 删除 |
| | | */ |
| | | delete(data?: any): Promise<any>; |
| | | |
| | | /** |
| | | * 修改 |
| | | */ |
| | | update(data?: any): Promise<any>; |
| | | |
| | | /** |
| | | * 单个信息 |
| | | */ |
| | | info(data?: any): Promise<OperationWastesaleEntity>; |
| | | |
| | | /** |
| | | * 列表查询 |
| | | */ |
| | | list(data?: any): Promise<OperationWastesaleEntity[]>; |
| | | |
| | | /** |
| | | * 分页查询 |
| | | */ |
| | | page(data?: any): Promise<OperationWastesalePageResponse>; |
| | | |
| | | /** |
| | | * 新增 |
| | | */ |
| | | add(data?: any): Promise<any>; |
| | | |
| | | /** |
| | | * 权限标识 |
| | | */ |
| | | permission: { |
| | | delete: string; |
| | | update: string; |
| | | info: string; |
| | | list: string; |
| | | page: string; |
| | | add: string; |
| | | }; |
| | | |
| | | /** |
| | | * 权限状态 |
| | | */ |
| | | _permission: { |
| | | delete: boolean; |
| | | update: boolean; |
| | | info: boolean; |
| | | list: boolean; |
| | | page: boolean; |
| | | add: boolean; |
| | | }; |
| | | |
| | | request: Request; |
| | | } |
| | | |
| | | interface RequestOptions { |
| | | url: string; |
| | | method?: "OPTIONS" | "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "TRACE" | "CONNECT"; |
| | |
| | | sorter: BasicdataSorter; |
| | | vehicle: BasicdataVehicle; |
| | | wastetype: BasicdataWastetype; |
| | | buyer: BasicdataBuyer; |
| | | }; |
| | | demo: { goods: DemoGoods; tenant: DemoTenant }; |
| | | dict: { info: DictInfo; type: DictType }; |
| | |
| | | push: { |
| | | auditlog: PushAuditlog; |
| | | cameragps: PushCameragps; |
| | | deviceonoff: PushDeviceonoff; |
| | | siteweight: PushSiteweight; |
| | | vehiclegps: PushVehiclegps; |
| | | weight: PushWeight; |
| | | deviceonoff: PushDeviceonoff; |
| | | }; |
| | | recycle: { data: RecycleData }; |
| | | space: { info: SpaceInfo; type: SpaceType }; |
| | | task: { info: TaskInfo }; |
| | | user: { address: UserAddress; info: UserInfo }; |
| | | operation: { wastesale: OperationWastesale }; |
| | | }; |
| | | } |
| | |
| | | [{"prefix":"/admin/base/coding","name":"","api":[{"method":"get","path":"/getModuleTree"},{"method":"post","path":"/createCode"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/comm","name":"","api":[{"method":"post","path":"/personUpdate"},{"method":"get","path":"/uploadMode"},{"method":"get","path":"/permmenu"},{"method":"get","path":"/program"},{"method":"get","path":"/person"},{"method":"post","path":"/upload"},{"method":"post","path":"/logout"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/open","name":"","api":[{"method":"get","path":"/refreshToken"},{"method":"get","path":"/captcha"},{"method":"post","path":"/login"},{"method":"get","path":"/html"},{"method":"get","path":"/eps"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/sys/department","name":"BaseSysDepartmentEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/order"},{"method":"post","path":"/list"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/sys/log","name":"BaseSysLogEntity","api":[{"method":"post","path":"/setKeep"},{"method":"get","path":"/getKeep"},{"method":"post","path":"/clear"},{"method":"post","path":"/page"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"姓名","nullable":true,"source":"b.name"},{"propertyName":"action","type":"string","length":"","comment":"行为","nullable":false,"source":"a.action"},{"propertyName":"ip","type":"string","length":"","comment":"ip","nullable":true,"source":"a.ip"}]}},{"prefix":"/admin/base/sys/menu","name":"BaseSysMenuEntity","api":[{"method":"post","path":"/create"},{"method":"post","path":"/export"},{"method":"post","path":"/import"},{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/parse"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/sys/param","name":"BaseSysParamEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/html"},{"method":"get","path":"/info"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"dataType","type":"number","length":"","comment":"数据类型 0-字符串 1-富文本 2-文件 ","nullable":false,"defaultValue":0,"source":"a.dataType"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"keyName","type":"string","length":"","comment":"键","nullable":false,"source":"a.keyName"}]}},{"prefix":"/admin/base/sys/role","name":"BaseSysRoleEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"label","type":"string","length":"50","comment":"角色标签","nullable":true,"source":"a.label"}]}},{"prefix":"/admin/base/sys/user","name":"BaseSysUserEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/move"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/basicdata/driver","name":"BasicdataDriverEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"departmentId","type":"bigint","length":"","comment":"所属单位","nullable":true,"source":"a.departmentId"},{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":0,"dict":["激活","禁用"],"source":"a.status"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"businessId","type":"string","length":"64","comment":"身份证号","nullable":false,"source":"a.businessId"},{"propertyName":"phone","type":"string","length":"32","comment":"手机号","nullable":true,"source":"a.phone"},{"propertyName":"licenseNo","type":"string","length":"64","comment":"驾驶证号","nullable":true,"source":"a.licenseNo"}]}},{"prefix":"/admin/basicdata/iot","name":"BasicdataIotEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"iotTypeCode","type":"string","length":"","comment":"终端类型","nullable":false,"source":"a.iotTypeCode"},{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":1,"dict":["禁用","启用"],"source":"a.status"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"iotName","type":"string","length":"","comment":"终端名称","nullable":false,"source":"a.iotName"},{"propertyName":"iotCode","type":"string","length":"","comment":"终端编码","nullable":false,"source":"a.iotCode"}]}},{"prefix":"/admin/basicdata/site","name":"BasicdataSiteEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"departmentId","type":"number","length":"","comment":"归属单位","nullable":false,"source":"a.departmentId"},{"propertyName":"siteType","type":"string","length":"","comment":"站点类型","nullable":false,"defaultValue":"收集点","dict":"sitetype","source":"a.siteType"},{"propertyName":"status","type":"number","length":"","comment":"是否启用","nullable":false,"defaultValue":1,"dict":["禁用","启用"],"source":"a.status"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"address","type":"string","length":"","comment":"地址","nullable":false,"source":"a.address"},{"propertyName":"leader","type":"string","length":"","comment":"负责人","nullable":false,"source":"a.leader"}]}},{"prefix":"/admin/basicdata/sorter","name":"BasicdataSorterEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":0,"dict":["在职","离职","禁用"],"source":"a.status"},{"propertyName":"departmentId","type":"bigint","length":"","comment":"所属单位","nullable":true,"source":"a.departmentId"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"businessName","type":"string","length":"64","comment":"姓名","nullable":false,"source":"a.businessName"},{"propertyName":"businessId","type":"string","length":"32","comment":"身份证号","nullable":true,"source":"a.businessId"},{"propertyName":"phone","type":"string","length":"32","comment":"手机号","nullable":true,"source":"a.phone"}]}},{"prefix":"/admin/basicdata/vehicle","name":"BasicdataVehicleEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"vehicleType","type":"string","length":"","comment":"车型","nullable":false,"defaultValue":"厢式货车","dict":"vehicletype","source":"a.vehicleType"},{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":0,"dict":["启用","禁用"],"source":"a.status"},{"propertyName":"departmentId","type":"bigint","length":"","comment":"所属单位","nullable":true,"source":"a.departmentId"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"businessId","type":"string","length":"32","comment":"车牌号","nullable":false,"source":"a.businessId"},{"propertyName":"defaultDriver","type":"bigint","length":"","comment":"默认司机","nullable":true,"source":"a.defaultDriver"}]}},{"prefix":"/admin/basicdata/wastetype","name":"BasicdataWastetypeEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"isRecyclable","type":"number","length":"","comment":"是否可回收","nullable":false,"defaultValue":0,"dict":["否","是"],"source":"a.isRecyclable"},{"propertyName":"status","type":"number","length":"","comment":"是否启用","nullable":false,"defaultValue":1,"dict":["禁用","启用"],"source":"a.status"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"code","type":"string","length":"","comment":"代码","nullable":false,"source":"a.code"}]}},{"prefix":"/admin/demo/goods","name":"DemoGoodsEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":1,"dict":["禁用","启用"],"source":"a.status"}],"fieldLike":[{"propertyName":"title","type":"string","length":"50","comment":"标题","nullable":false,"source":"a.title"}],"keyWordLikeFields":[{"propertyName":"description","type":"string","length":"","comment":"描述","nullable":true,"source":"a.description"}]}},{"prefix":"/admin/demo/tenant","name":"DemoGoodsEntity","api":[{"method":"post","path":"/noTenant"},{"method":"post","path":"/noUse"},{"method":"post","path":"/use"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/dict/info","name":"DictInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/types"},{"method":"post","path":"/data"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/dict/type","name":"DictTypeEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/plugin/info","name":"PluginInfoEntity","api":[{"method":"post","path":"/install"},{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/push/auditlog","name":"PushAuditlogEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"deviceNo","type":"string","length":"","comment":"客户端ID","nullable":false,"source":"a.deviceNo"},{"propertyName":"pushType","type":"string","length":"","comment":"推送类型","nullable":false,"defaultValue":"weight","dict":["weight","health_gps","vehicle_gps","driver_anomaly","others"],"source":"a.pushType"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"errorMessage","type":"text","length":"","comment":"错误返回信息","nullable":true,"source":"a.errorMessage"}]}},{"prefix":"/admin/push/cameragps","name":"PushCameraGpsEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"string","length":"","comment":"定位精度","nullable":false,"source":"a.status"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"sn","type":"string","length":"","comment":"设备序列号","nullable":false,"source":"a.sn"}]}},{"prefix":"/admin/push/deviceonoff","name":"PushDeviceOnoffEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"deviceId","type":"string","length":"","comment":"设备ID","nullable":false,"source":"a.deviceId"},{"propertyName":"subSerial","type":"string","length":"","comment":"子序列号","nullable":true,"source":"a.subSerial"},{"propertyName":"deviceName","type":"string","length":"","comment":"设备名称","nullable":true,"source":"a.deviceName"}]}},{"prefix":"/admin/push/siteweight","name":"PushSiteweightEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"deviceNo","type":"string","length":"","comment":"设备号","nullable":false,"source":"a.deviceNo"},{"propertyName":"siteType","type":"string","length":"","comment":"站点类型","nullable":false,"defaultValue":"收集点","dict":"sitetype","source":"d.siteType"}],"fieldLike":[{"propertyName":"deviceNo","type":"string","length":"","comment":"设备号","nullable":false,"source":"a.deviceNo"}],"keyWordLikeFields":[]}},{"prefix":"/admin/push/vehiclegps","name":"PushVehicleGpsEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"string","length":"","comment":"定位精度","nullable":false,"source":"a.status"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"sn","type":"string","length":"","comment":"设备序列号","nullable":false,"source":"a.sn"},{"propertyName":"vehicleNo","type":"string","length":"","comment":"车牌号","nullable":true,"source":"a.vehicleNo"}]}},{"prefix":"/admin/push/weight","name":"PushWeightEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"deviceNo","type":"string","length":"","comment":"设备号","nullable":false,"source":"a.deviceNo"},{"propertyName":"garbageType","type":"string","length":"","comment":"垃圾类型","nullable":false,"source":"a.garbageType"}],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/recycle/data","name":"RecycleDataEntity","api":[{"method":"post","path":"/restore"},{"method":"get","path":"/info"},{"method":"post","path":"/page"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"userName","type":"string","length":"","comment":"姓名","nullable":true,"source":"b.name"},{"propertyName":"url","type":"string","length":"","comment":"请求的接口","nullable":true,"source":"a.url"}]}},{"prefix":"/admin/space/info","name":"SpaceInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"type","type":"string","length":"","comment":"类型","nullable":false,"source":"a.type"},{"propertyName":"classifyId","type":"number","length":"","comment":"分类ID","nullable":true,"source":"a.classifyId"}],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/space/type","name":"SpaceTypeEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/task/info","name":"TaskInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/start"},{"method":"post","path":"/once"},{"method":"post","path":"/stop"},{"method":"get","path":"/info"},{"method":"post","path":"/page"},{"method":"get","path":"/log"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态 0-停止 1-运行","nullable":false,"defaultValue":1,"source":"a.status"},{"propertyName":"type","type":"number","length":"","comment":"状态 0-系统 1-用户","nullable":false,"defaultValue":0,"source":"a.type"}],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/user/address","name":"UserAddressEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/user/info","name":"UserInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":1,"dict":["禁用","正常","已注销"],"source":"a.status"},{"propertyName":"gender","type":"number","length":"","comment":"性别","nullable":false,"defaultValue":0,"dict":["未知","男","女"],"source":"a.gender"},{"propertyName":"loginType","type":"number","length":"","comment":"登录方式","nullable":false,"defaultValue":0,"dict":["小程序","公众号","H5"],"source":"a.loginType"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"nickName","type":"string","length":"","comment":"昵称","nullable":true,"source":"a.nickName"},{"propertyName":"phone","type":"string","length":"","comment":"手机号","nullable":true,"source":"a.phone"}]}}] |
| | | [{"prefix":"/admin/base/coding","name":"","api":[{"method":"get","path":"/getModuleTree"},{"method":"post","path":"/createCode"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/comm","name":"","api":[{"method":"post","path":"/personUpdate"},{"method":"get","path":"/uploadMode"},{"method":"get","path":"/permmenu"},{"method":"get","path":"/program"},{"method":"get","path":"/person"},{"method":"post","path":"/upload"},{"method":"post","path":"/logout"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/open","name":"","api":[{"method":"get","path":"/refreshToken"},{"method":"get","path":"/captcha"},{"method":"post","path":"/login"},{"method":"get","path":"/html"},{"method":"get","path":"/eps"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/sys/department","name":"BaseSysDepartmentEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/order"},{"method":"post","path":"/list"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/sys/log","name":"BaseSysLogEntity","api":[{"method":"post","path":"/setKeep"},{"method":"get","path":"/getKeep"},{"method":"post","path":"/clear"},{"method":"post","path":"/page"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"姓名","nullable":true,"source":"b.name"},{"propertyName":"action","type":"string","length":"","comment":"行为","nullable":false,"source":"a.action"},{"propertyName":"ip","type":"string","length":"","comment":"ip","nullable":true,"source":"a.ip"}]}},{"prefix":"/admin/base/sys/menu","name":"BaseSysMenuEntity","api":[{"method":"post","path":"/create"},{"method":"post","path":"/export"},{"method":"post","path":"/import"},{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/parse"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/sys/param","name":"BaseSysParamEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/html"},{"method":"get","path":"/info"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"dataType","type":"number","length":"","comment":"数据类型 0-字符串 1-富文本 2-文件 ","nullable":false,"defaultValue":0,"source":"a.dataType"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"keyName","type":"string","length":"","comment":"键","nullable":false,"source":"a.keyName"}]}},{"prefix":"/admin/base/sys/role","name":"BaseSysRoleEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"label","type":"string","length":"50","comment":"角色标签","nullable":true,"source":"a.label"}]}},{"prefix":"/admin/base/sys/user","name":"BaseSysUserEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/move"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/basicdata/buyer","name":"BasicdataBuyerEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"departmentId","type":"bigint","length":"","comment":"部门ID","nullable":true,"source":"a.departmentId"},{"propertyName":"name","type":"string","length":"200","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"contact","type":"string","length":"50","comment":"联系人","nullable":true,"source":"a.contact"}],"fieldLike":[{"propertyName":"name","type":"string","length":"200","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"address","type":"string","length":"255","comment":"地址","nullable":true,"source":"a.address"}],"keyWordLikeFields":[]}},{"prefix":"/admin/basicdata/driver","name":"BasicdataDriverEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"departmentId","type":"bigint","length":"","comment":"所属单位","nullable":true,"source":"a.departmentId"},{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":0,"dict":["激活","禁用"],"source":"a.status"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"businessId","type":"string","length":"64","comment":"身份证号","nullable":false,"source":"a.businessId"},{"propertyName":"phone","type":"string","length":"32","comment":"手机号","nullable":true,"source":"a.phone"},{"propertyName":"licenseNo","type":"string","length":"64","comment":"驾驶证号","nullable":true,"source":"a.licenseNo"}]}},{"prefix":"/admin/basicdata/iot","name":"BasicdataIotEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"iotTypeCode","type":"string","length":"","comment":"终端类型","nullable":false,"source":"a.iotTypeCode"},{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":1,"dict":["禁用","启用"],"source":"a.status"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"iotName","type":"string","length":"","comment":"终端名称","nullable":false,"source":"a.iotName"},{"propertyName":"iotCode","type":"string","length":"","comment":"终端编码","nullable":false,"source":"a.iotCode"}]}},{"prefix":"/admin/basicdata/site","name":"BasicdataSiteEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"departmentId","type":"number","length":"","comment":"归属单位","nullable":false,"source":"a.departmentId"},{"propertyName":"siteType","type":"string","length":"","comment":"站点类型","nullable":false,"defaultValue":"收集点","dict":"sitetype","source":"a.siteType"},{"propertyName":"status","type":"number","length":"","comment":"是否启用","nullable":false,"defaultValue":1,"dict":["禁用","启用"],"source":"a.status"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"address","type":"string","length":"","comment":"地址","nullable":false,"source":"a.address"},{"propertyName":"leader","type":"string","length":"","comment":"负责人","nullable":false,"source":"a.leader"}]}},{"prefix":"/admin/basicdata/sorter","name":"BasicdataSorterEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":0,"dict":["在职","离职","禁用"],"source":"a.status"},{"propertyName":"departmentId","type":"bigint","length":"","comment":"所属单位","nullable":true,"source":"a.departmentId"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"businessName","type":"string","length":"64","comment":"姓名","nullable":false,"source":"a.businessName"},{"propertyName":"businessId","type":"string","length":"32","comment":"身份证号","nullable":true,"source":"a.businessId"},{"propertyName":"phone","type":"string","length":"32","comment":"手机号","nullable":true,"source":"a.phone"}]}},{"prefix":"/admin/basicdata/vehicle","name":"BasicdataVehicleEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"vehicleType","type":"string","length":"","comment":"车型","nullable":false,"defaultValue":"厢式货车","dict":"vehicletype","source":"a.vehicleType"},{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":0,"dict":["启用","禁用"],"source":"a.status"},{"propertyName":"departmentId","type":"bigint","length":"","comment":"所属单位","nullable":true,"source":"a.departmentId"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"businessId","type":"string","length":"32","comment":"车牌号","nullable":false,"source":"a.businessId"},{"propertyName":"defaultDriver","type":"bigint","length":"","comment":"默认司机","nullable":true,"source":"a.defaultDriver"}]}},{"prefix":"/admin/basicdata/wastetype","name":"BasicdataWastetypeEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"isRecyclable","type":"number","length":"","comment":"是否可回收","nullable":false,"defaultValue":0,"dict":["否","是"],"source":"a.isRecyclable"},{"propertyName":"status","type":"number","length":"","comment":"是否启用","nullable":false,"defaultValue":1,"dict":["禁用","启用"],"source":"a.status"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"code","type":"string","length":"","comment":"代码","nullable":false,"source":"a.code"}]}},{"prefix":"/admin/demo/goods","name":"DemoGoodsEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":1,"dict":["禁用","启用"],"source":"a.status"}],"fieldLike":[{"propertyName":"title","type":"string","length":"50","comment":"标题","nullable":false,"source":"a.title"}],"keyWordLikeFields":[{"propertyName":"description","type":"string","length":"","comment":"描述","nullable":true,"source":"a.description"}]}},{"prefix":"/admin/demo/tenant","name":"DemoGoodsEntity","api":[{"method":"post","path":"/noTenant"},{"method":"post","path":"/noUse"},{"method":"post","path":"/use"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/dict/info","name":"DictInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/types"},{"method":"post","path":"/data"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/dict/type","name":"DictTypeEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/operation/wastesale","name":"OperationWastesaleEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"departmentId","type":"bigint","length":"","comment":"部门ID","nullable":false,"source":"a.departmentId"}],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/plugin/info","name":"PluginInfoEntity","api":[{"method":"post","path":"/install"},{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/push/auditlog","name":"PushAuditlogEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"deviceNo","type":"string","length":"","comment":"客户端ID","nullable":false,"source":"a.deviceNo"},{"propertyName":"pushType","type":"string","length":"","comment":"推送类型","nullable":false,"defaultValue":"weight","dict":["weight","health_gps","vehicle_gps","driver_anomaly","others"],"source":"a.pushType"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"errorMessage","type":"text","length":"","comment":"错误返回信息","nullable":true,"source":"a.errorMessage"}]}},{"prefix":"/admin/push/cameragps","name":"PushCameraGpsEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"string","length":"","comment":"定位精度","nullable":false,"source":"a.status"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"sn","type":"string","length":"","comment":"设备序列号","nullable":false,"source":"a.sn"}]}},{"prefix":"/admin/push/deviceonoff","name":"PushDeviceOnoffEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"deviceId","type":"string","length":"","comment":"设备ID","nullable":false,"source":"a.deviceId"},{"propertyName":"subSerial","type":"string","length":"","comment":"子序列号","nullable":true,"source":"a.subSerial"},{"propertyName":"deviceName","type":"string","length":"","comment":"设备名称","nullable":true,"source":"a.deviceName"}]}},{"prefix":"/admin/push/siteweight","name":"PushSiteweightEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"deviceNo","type":"string","length":"","comment":"设备号","nullable":false,"source":"a.deviceNo"},{"propertyName":"siteType","type":"string","length":"","comment":"站点类型","nullable":false,"defaultValue":"收集点","dict":"sitetype","source":"d.siteType"}],"fieldLike":[{"propertyName":"deviceNo","type":"string","length":"","comment":"设备号","nullable":false,"source":"a.deviceNo"}],"keyWordLikeFields":[]}},{"prefix":"/admin/push/vehiclegps","name":"PushVehicleGpsEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"string","length":"","comment":"定位精度","nullable":false,"source":"a.status"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"sn","type":"string","length":"","comment":"设备序列号","nullable":false,"source":"a.sn"},{"propertyName":"vehicleNo","type":"string","length":"","comment":"车牌号","nullable":true,"source":"a.vehicleNo"}]}},{"prefix":"/admin/push/weight","name":"PushWeightEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"deviceNo","type":"string","length":"","comment":"设备号","nullable":false,"source":"a.deviceNo"},{"propertyName":"garbageType","type":"string","length":"","comment":"垃圾类型","nullable":false,"source":"a.garbageType"}],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/recycle/data","name":"RecycleDataEntity","api":[{"method":"post","path":"/restore"},{"method":"get","path":"/info"},{"method":"post","path":"/page"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"userName","type":"string","length":"","comment":"姓名","nullable":true,"source":"b.name"},{"propertyName":"url","type":"string","length":"","comment":"请求的接口","nullable":true,"source":"a.url"}]}},{"prefix":"/admin/space/info","name":"SpaceInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"type","type":"string","length":"","comment":"类型","nullable":false,"source":"a.type"},{"propertyName":"classifyId","type":"number","length":"","comment":"分类ID","nullable":true,"source":"a.classifyId"}],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/space/type","name":"SpaceTypeEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/task/info","name":"TaskInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/start"},{"method":"post","path":"/once"},{"method":"post","path":"/stop"},{"method":"get","path":"/info"},{"method":"post","path":"/page"},{"method":"get","path":"/log"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态 0-停止 1-运行","nullable":false,"defaultValue":1,"source":"a.status"},{"propertyName":"type","type":"number","length":"","comment":"状态 0-系统 1-用户","nullable":false,"defaultValue":0,"source":"a.type"}],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/user/address","name":"UserAddressEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/user/info","name":"UserInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":1,"dict":["禁用","正常","已注销"],"source":"a.status"},{"propertyName":"gender","type":"number","length":"","comment":"性别","nullable":false,"defaultValue":0,"dict":["未知","男","女"],"source":"a.gender"},{"propertyName":"loginType","type":"number","length":"","comment":"登录方式","nullable":false,"defaultValue":0,"dict":["小程序","公众号","H5"],"source":"a.loginType"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"nickName","type":"string","length":"","comment":"昵称","nullable":true,"source":"a.nickName"},{"propertyName":"phone","type":"string","length":"","comment":"手机号","nullable":true,"source":"a.phone"}]}}] |
| | |
| | | "在职":"在职", |
| | | "离职":"离职", |
| | | "业务表":"业务表", |
| | | "业务表ID":"业务表ID" |
| | | "业务表ID":"业务表ID", |
| | | "所属部门":"所属部门", |
| | | "部门ID":"部门ID", |
| | | "单位编码":"单位编码", |
| | | "名称":"名称", |
| | | "联系人":"联系人", |
| | | "联系电话":"联系电话" |
| | | } |
| | |
| | | "在职":"在职", |
| | | "离职":"离职", |
| | | "业务表":"业务表", |
| | | "业务表ID":"业务表ID" |
| | | "业务表ID":"业务表ID", |
| | | "所属部门":"所属部门", |
| | | "部门ID":"部门ID", |
| | | "单位编码":"单位编码", |
| | | "名称":"名称", |
| | | "联系人":"联系人", |
| | | "联系电话":"联系电话" |
| | | } |
| | |
| | | "在职":"在职", |
| | | "离职":"离职", |
| | | "业务表":"业务表", |
| | | "业务表ID":"业务表ID" |
| | | "业务表ID":"业务表ID", |
| | | "所属部门":"所属部门", |
| | | "部门ID":"部门ID", |
| | | "单位编码":"单位编码", |
| | | "名称":"名称", |
| | | "联系人":"联系人", |
| | | "联系电话":"联系电话" |
| | | } |
| New file |
| | |
| | | <template> |
| | | <cl-crud ref="Crud"> |
| | | <cl-row> |
| | | <!-- 刷新按钮 --> |
| | | <cl-refresh-btn /> |
| | | <!-- 新增按钮 --> |
| | | <cl-add-btn /> |
| | | <!-- 删除按钮 --> |
| | | <cl-multi-delete-btn /> |
| | | <cl-flex1 /> |
| | | <!-- 条件搜索 --> |
| | | <cl-search ref="Search" /> |
| | | </cl-row> |
| | | |
| | | <cl-row> |
| | | <!-- 数据表格 --> |
| | | <cl-table ref="Table" /> |
| | | </cl-row> |
| | | |
| | | <cl-row> |
| | | <cl-flex1 /> |
| | | <!-- 分页控件 --> |
| | | <cl-pagination /> |
| | | </cl-row> |
| | | |
| | | <!-- 新增、编辑 --> |
| | | <cl-upsert ref="Upsert" /> |
| | | </cl-crud> |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | | defineOptions({ |
| | | name: "basicdata-buyer" |
| | | }); |
| | | |
| | | import { useCrud, useTable, useUpsert, useSearch } from "@cool-vue/crud"; |
| | | import { useCool } from "/@/cool"; |
| | | import { useI18n } from "vue-i18n"; |
| | | |
| | | const { service } = useCool(); |
| | | const { t } = useI18n(); |
| | | |
| | | // cl-upsert |
| | | const Upsert = useUpsert({ |
| | | items: [ |
| | | { |
| | | label: t("选择部门"), |
| | | prop: "departmentId", |
| | | component: { |
| | | name: 'cl-dept-select', |
| | | props: { |
| | | multiple: false, // 单选 / true 多选 |
| | | placeholder: "请选择部门", |
| | | checkStrictly: true, // 父子节点不联动 |
| | | immediate: true // 立即加载部门树 |
| | | } |
| | | }, |
| | | required: true, |
| | | }, |
| | | { |
| | | label: t('代码'), |
| | | prop: "code", |
| | | component: { name: "el-input", props: { clearable: true } }, |
| | | span: 12, |
| | | required: true |
| | | }, |
| | | { |
| | | label: t('名称'), |
| | | prop: "name", |
| | | component: { name: "el-input", props: { clearable: true } }, |
| | | span: 12, |
| | | required: true |
| | | }, |
| | | { |
| | | label: t('地址'), |
| | | prop: "address", |
| | | component: { name: "el-input", props: { clearable: true } }, |
| | | span: 12 |
| | | }, |
| | | { |
| | | label: t('联系人'), |
| | | prop: "contact", |
| | | component: { name: "el-input", props: { clearable: true } }, |
| | | span: 12 |
| | | }, |
| | | { |
| | | label: t('联系电话'), |
| | | prop: "phone", |
| | | component: { name: "el-input", props: { clearable: true } }, |
| | | span: 12 |
| | | }, |
| | | { |
| | | label: t('备注'), |
| | | prop: "remark", |
| | | component: { name: "el-input", props: { type: "textarea", rows: 4 } } |
| | | } |
| | | ] |
| | | }); |
| | | |
| | | // cl-table |
| | | const Table = useTable({ |
| | | columns: [ |
| | | { type: "selection" }, |
| | | { label: t('所属部门'), prop: "departmentName", minWidth: 120 }, |
| | | { label: t('单位编码'), prop: "code", minWidth: 140 }, |
| | | { label: t('名称'), prop: "name", minWidth: 140 }, |
| | | { label: t('地址'), prop: "address", minWidth: 120 }, |
| | | { label: t('联系人'), prop: "contact", minWidth: 140 }, |
| | | { label: t('联系电话'), prop: "phone", minWidth: 140 }, |
| | | { label: t('备注'), prop: "remark", showOverflowTooltip: true, minWidth: 200 }, |
| | | { |
| | | label: t('创建时间'), |
| | | prop: "createTime", |
| | | minWidth: 170, |
| | | sortable: "desc", |
| | | component: { name: "cl-date-text" } |
| | | }, |
| | | { |
| | | label: t('更新时间'), |
| | | prop: "updateTime", |
| | | minWidth: 170, |
| | | sortable: "custom", |
| | | component: { name: "cl-date-text" } |
| | | }, |
| | | { type: "op", buttons: ["edit", "delete"] } |
| | | ] |
| | | }); |
| | | |
| | | // cl-search |
| | | const Search = useSearch(); |
| | | |
| | | // cl-crud |
| | | const Crud = useCrud( |
| | | { |
| | | service: service.basicdata.buyer |
| | | }, |
| | | (app) => { |
| | | app.refresh(); |
| | | } |
| | | ); |
| | | |
| | | // 刷新 |
| | | function refresh(params?: any) { |
| | | Crud.value?.refresh(params); |
| | | } |
| | | </script> |
| New file |
| | |
| | | { |
| | | "设备号":"设备号", |
| | | "设备名称":"设备名称", |
| | | "上传时间":"上传时间", |
| | | "垃圾类型":"垃圾类型", |
| | | "垃圾名称":"垃圾名称", |
| | | "垃圾重量":"垃圾重量KG", |
| | | "其他数据":"其他数据", |
| | | "站点编号":"站点编号", |
| | | "站点名称":"站点名称", |
| | | "站点类型":"站点类型", |
| | | "称重设备":"称重设备", |
| | | "weight":"weight", |
| | | "health_gps":"health_gps", |
| | | "vehicle_gps":"vehicle_gps", |
| | | "driver_anomaly":"driver_anomaly", |
| | | "others":"others", |
| | | "日志时间":"日志时间", |
| | | "推送类型":"推送类型", |
| | | "客户端ID":"客户端ID", |
| | | "原始请求内容":"原始请求内容", |
| | | "错误返回信息":"错误返回信息", |
| | | "创建时间":"创建时间", |
| | | "更新时间":"更新时间", |
| | | "设备序列号":"设备序列号", |
| | | "消息序列号":"消息序列号", |
| | | "消息创建时间":"消息创建时间", |
| | | "GPS定位时间":"GPS定位时间", |
| | | "速度":"速度", |
| | | "方向角":"方向角", |
| | | "海拔高度":"海拔高度", |
| | | "定位精度":"定位精度", |
| | | "有效定位":"有效定位", |
| | | "无效定位":"无效定位", |
| | | "设备ID":"设备ID", |
| | | "通道号":"通道号", |
| | | "消息唯一ID":"消息唯一ID", |
| | | "消息时间":"消息时间", |
| | | "消息类型":"消息类型", |
| | | "设备类型":"设备类型", |
| | | "子序列号":"子序列号", |
| | | "源端ID":"源端ID", |
| | | "NAT的IP":"NAT的IP", |
| | | "事件发生时间":"事件发生时间", |
| | | "注册时间":"注册时间", |
| | | "重量":"重量", |
| | | "单价(元/Kg)":"单价(元/Kg)", |
| | | "总价(元)":"总价(元)", |
| | | "经手人ID":"经手人ID", |
| | | "经手人":"经手人", |
| | | "收购方":"收购方", |
| | | "收集点":"收集点", |
| | | "日期时间":"日期时间", |
| | | "总价":"总价" |
| | | } |
| New file |
| | |
| | | { |
| | | "设备号":"设备号", |
| | | "设备名称":"设备名称", |
| | | "上传时间":"上传时间", |
| | | "垃圾类型":"垃圾类型", |
| | | "垃圾名称":"垃圾名称", |
| | | "垃圾重量":"垃圾重量KG", |
| | | "其他数据":"其他数据", |
| | | "站点编号":"站点编号", |
| | | "站点名称":"站点名称", |
| | | "站点类型":"站点类型", |
| | | "称重设备":"称重设备", |
| | | "weight":"weight", |
| | | "health_gps":"health_gps", |
| | | "vehicle_gps":"vehicle_gps", |
| | | "driver_anomaly":"driver_anomaly", |
| | | "others":"others", |
| | | "日志时间":"日志时间", |
| | | "推送类型":"推送类型", |
| | | "客户端ID":"客户端ID", |
| | | "原始请求内容":"原始请求内容", |
| | | "错误返回信息":"错误返回信息", |
| | | "创建时间":"创建时间", |
| | | "更新时间":"更新时间", |
| | | "设备序列号":"设备序列号", |
| | | "消息序列号":"消息序列号", |
| | | "消息创建时间":"消息创建时间", |
| | | "GPS定位时间":"GPS定位时间", |
| | | "速度":"速度", |
| | | "方向角":"方向角", |
| | | "海拔高度":"海拔高度", |
| | | "定位精度":"定位精度", |
| | | "有效定位":"有效定位", |
| | | "无效定位":"无效定位", |
| | | "设备ID":"设备ID", |
| | | "通道号":"通道号", |
| | | "消息唯一ID":"消息唯一ID", |
| | | "消息时间":"消息时间", |
| | | "消息类型":"消息类型", |
| | | "设备类型":"设备类型", |
| | | "子序列号":"子序列号", |
| | | "源端ID":"源端ID", |
| | | "NAT的IP":"NAT的IP", |
| | | "事件发生时间":"事件发生时间", |
| | | "注册时间":"注册时间", |
| | | "重量":"重量", |
| | | "单价(元/Kg)":"单价(元/Kg)", |
| | | "总价(元)":"总价(元)", |
| | | "经手人ID":"经手人ID", |
| | | "经手人":"经手人", |
| | | "收购方":"收购方", |
| | | "收集点":"收集点", |
| | | "日期时间":"日期时间", |
| | | "总价":"总价" |
| | | } |
| New file |
| | |
| | | { |
| | | "设备号":"设备号", |
| | | "设备名称":"设备名称", |
| | | "上传时间":"上传时间", |
| | | "垃圾类型":"垃圾类型", |
| | | "垃圾名称":"垃圾名称", |
| | | "垃圾重量":"垃圾重量KG", |
| | | "其他数据":"其他数据", |
| | | "站点编号":"站点编号", |
| | | "站点名称":"站点名称", |
| | | "站点类型":"站点类型", |
| | | "称重设备":"称重设备", |
| | | "weight":"weight", |
| | | "health_gps":"health_gps", |
| | | "vehicle_gps":"vehicle_gps", |
| | | "driver_anomaly":"driver_anomaly", |
| | | "others":"others", |
| | | "日志时间":"日志时间", |
| | | "推送类型":"推送类型", |
| | | "客户端ID":"客户端ID", |
| | | "原始请求内容":"原始请求内容", |
| | | "错误返回信息":"错误返回信息", |
| | | "创建时间":"创建时间", |
| | | "更新时间":"更新时间", |
| | | "设备序列号":"设备序列号", |
| | | "消息序列号":"消息序列号", |
| | | "消息创建时间":"消息创建时间", |
| | | "GPS定位时间":"GPS定位时间", |
| | | "速度":"速度", |
| | | "方向角":"方向角", |
| | | "海拔高度":"海拔高度", |
| | | "定位精度":"定位精度", |
| | | "有效定位":"有效定位", |
| | | "无效定位":"无效定位", |
| | | "设备ID":"设备ID", |
| | | "通道号":"通道号", |
| | | "消息唯一ID":"消息唯一ID", |
| | | "消息时间":"消息时间", |
| | | "消息类型":"消息类型", |
| | | "设备类型":"设备类型", |
| | | "子序列号":"子序列号", |
| | | "源端ID":"源端ID", |
| | | "NAT的IP":"NAT的IP", |
| | | "事件发生时间":"事件发生时间", |
| | | "注册时间":"注册时间", |
| | | "重量":"重量", |
| | | "单价(元/Kg)":"单价(元/Kg)", |
| | | "总价(元)":"总价(元)", |
| | | "经手人ID":"经手人ID", |
| | | "经手人":"经手人", |
| | | "收购方":"收购方", |
| | | "收集点":"收集点", |
| | | "日期时间":"日期时间", |
| | | "总价":"总价" |
| | | } |
| New file |
| | |
| | | <template> |
| | | <cl-crud ref="Crud"> |
| | | <cl-row> |
| | | <!-- 刷新按钮 --> |
| | | <cl-refresh-btn /> |
| | | <!-- 新增按钮 --> |
| | | <cl-add-btn /> |
| | | <!-- 删除按钮 --> |
| | | <cl-multi-delete-btn /> |
| | | <cl-flex1 /> |
| | | <!-- 条件搜索 --> |
| | | <cl-search ref="Search" /> |
| | | </cl-row> |
| | | |
| | | <cl-row> |
| | | <!-- 数据表格 --> |
| | | <cl-table ref="Table" /> |
| | | </cl-row> |
| | | |
| | | <cl-row> |
| | | <cl-flex1 /> |
| | | <!-- 分页控件 --> |
| | | <cl-pagination /> |
| | | </cl-row> |
| | | |
| | | <!-- 新增、编辑 --> |
| | | <cl-upsert ref="Upsert" /> |
| | | </cl-crud> |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | | defineOptions({ |
| | | name: "operation-wastesale" |
| | | }); |
| | | import { ref, watch } from 'vue'; |
| | | import { useCrud, useTable, useUpsert, useSearch } from "@cool-vue/crud"; |
| | | import { useCool } from "/@/cool"; |
| | | import { useI18n } from "vue-i18n"; |
| | | import { useUserStore } from "/@/modules/base/store/user"; // 路径以你项目为准 |
| | | import dayjs from "dayjs"; |
| | | import { size } from 'lodash-es'; |
| | | |
| | | const { service } = useCool(); |
| | | const { t } = useI18n(); |
| | | |
| | | |
| | | const userStore = useUserStore(); |
| | | console.log(userStore.info?.id, userStore.info?.name); |
| | | const loginedUserId = userStore.info?.id ?? 1; |
| | | const loginedUserName = userStore.info?.name ?? 'admin'; |
| | | |
| | | |
| | | |
| | | |
| | | // 存储站点下拉框的动态数据源 |
| | | const siteOptions = ref<{ label: string; value: any }[]>([]); |
| | | const buyerOptions = ref<{ label: string; value: any }[]>([]); |
| | | |
| | | const garbageTypeOptions = ref<{ label: string; value: any; price: any }[]>([]); |
| | | |
| | | |
| | | |
| | | // cl-upsert |
| | | const Upsert = useUpsert({ |
| | | items: [ |
| | | { |
| | | label: t("选择部门"), |
| | | prop: "departmentId", |
| | | component: { |
| | | name: 'cl-dept-select', |
| | | props: { |
| | | multiple: false, // 单选 / true 多选 |
| | | placeholder: "请选择部门", |
| | | checkStrictly: true, // 父子节点不联动 |
| | | immediate: true // 立即加载部门树 |
| | | } |
| | | }, |
| | | required: true, |
| | | }, |
| | | { |
| | | label: t("收集点编号"), |
| | | prop: "siteId", |
| | | component: { |
| | | name: 'el-select', |
| | | props: { |
| | | placeholder: "请选择", |
| | | filterable: true, |
| | | clearable: true |
| | | }, |
| | | options: siteOptions |
| | | }, |
| | | span: 12, |
| | | }, |
| | | { |
| | | label: t("垃圾类型"), |
| | | prop: "wasteCode", |
| | | component: { |
| | | name: 'el-select', |
| | | props: { |
| | | placeholder: "请选择", |
| | | filterable: true, |
| | | clearable: true, |
| | | onChange: (val: string) => { |
| | | const item = garbageTypeOptions.value.find(opt => opt.value === val); |
| | | // 编辑模式:只有新增或用户主动切换才回填 |
| | | console.log(item); |
| | | console.log(Upsert.value.mode) |
| | | if (!Upsert.value.mode || Upsert.value.mode === "add") { |
| | | |
| | | const price = item?.price != null |
| | | ? Number(item.price) |
| | | : 0; |
| | | console.log(price) |
| | | Upsert.value.form.unitPrice = isNaN(price) ? undefined : price; |
| | | Upsert.value.form.totalPrice = Number( |
| | | (Upsert.value.form.unitPrice * Upsert.value.form.weight).toFixed(2) |
| | | ); |
| | | |
| | | } |
| | | } |
| | | }, |
| | | options: garbageTypeOptions |
| | | }, |
| | | span: 12, |
| | | required: true, |
| | | }, |
| | | { |
| | | label: t('日期时间'), |
| | | prop: "dateTime", |
| | | component: { |
| | | name: "el-date-picker", |
| | | props: { type: "datetime", valueFormat: "YYYY-MM-DD HH:mm:ss" } |
| | | }, |
| | | span: 12, |
| | | value: dayjs().format("YYYY-MM-DD HH:mm:ss"), // ✅ 当前时间 |
| | | required: true |
| | | }, |
| | | { |
| | | label: t('重量'), |
| | | prop: "weight", |
| | | hook: "number", |
| | | component: { |
| | | name: "el-input-number", props: { |
| | | min: 0, |
| | | onChange: (val: string) => { |
| | | Upsert.value.form.totalPrice = Number( |
| | | (Upsert.value.form.unitPrice * Upsert.value.form.weight).toFixed(2) |
| | | ); |
| | | } |
| | | } |
| | | }, |
| | | span: 12, |
| | | required: true |
| | | }, |
| | | { |
| | | label: t('单价(元/Kg)'), |
| | | prop: "unitPrice", |
| | | hook: "number", |
| | | component: { |
| | | name: "el-input-number", |
| | | props: { |
| | | min: 0, |
| | | onChange: (val: string) => { |
| | | Upsert.value.form.totalPrice = Number( |
| | | (Upsert.value.form.unitPrice * Upsert.value.form.weight).toFixed(2) |
| | | ); |
| | | } |
| | | } |
| | | |
| | | }, |
| | | span: 12, |
| | | required: true |
| | | }, |
| | | { |
| | | label: t('总价(元)'), |
| | | prop: "totalPrice", |
| | | hook: "number", |
| | | component: { name: "el-input-number", props: { min: 0, disabled: true } }, |
| | | span: 12, |
| | | required: true |
| | | }, |
| | | { |
| | | label: t('经手人ID'), |
| | | prop: "handlerId", |
| | | hidden: true, // 隐藏 |
| | | component: { name: "el-input", props: { clearable: true } }, |
| | | span: 12, |
| | | value: loginedUserId, |
| | | required: true |
| | | }, |
| | | { |
| | | label: t('经手人'), |
| | | prop: "handlerName", |
| | | component: { name: "el-input", props: { clearable: true, disabled: true } }, |
| | | span: 12, |
| | | value: loginedUserName, |
| | | }, |
| | | { |
| | | label: t("收购方"), |
| | | prop: "buyerCode", |
| | | component: { |
| | | name: 'el-select', |
| | | props: { |
| | | placeholder: "请选择", |
| | | filterable: true, |
| | | clearable: true |
| | | }, |
| | | options: buyerOptions |
| | | }, |
| | | span: 12, |
| | | required: true, |
| | | }, |
| | | ] |
| | | }); |
| | | |
| | | // cl-table |
| | | const Table = useTable({ |
| | | columns: [ |
| | | { type: "selection" }, |
| | | { label: t('所属部门'), prop: "departmentName", minWidth: 120 }, |
| | | { label: t('收集点'), prop: "siteName", minWidth: 120 }, |
| | | { label: t('垃圾类型'), prop: "wasteCode", minWidth: 120 }, |
| | | { label: t('垃圾名称'), prop: "wasteName", minWidth: 120 }, |
| | | { label: t('收购方'), prop: "buyerName", minWidth: 140 }, |
| | | { label: t('经手人'), prop: "handlerName", minWidth: 140 }, |
| | | { |
| | | label: t('日期时间'), |
| | | prop: "dateTime", |
| | | minWidth: 170, |
| | | sortable: "custom", |
| | | component: { name: "cl-date-text" } |
| | | }, |
| | | { label: t('重量'), prop: "weight", minWidth: 140, sortable: "custom" }, |
| | | { label: t('单价'), prop: "unitPrice", minWidth: 140, sortable: "custom" }, |
| | | { label: t('总价'), prop: "totalPrice", minWidth: 140, sortable: "custom" }, |
| | | { |
| | | label: t('创建时间'), |
| | | prop: "createTime", |
| | | minWidth: 170, |
| | | sortable: "desc", |
| | | component: { name: "cl-date-text" } |
| | | }, |
| | | { |
| | | label: t('更新时间'), |
| | | prop: "updateTime", |
| | | minWidth: 170, |
| | | sortable: "custom", |
| | | component: { name: "cl-date-text" } |
| | | }, |
| | | { type: "op", buttons: ["edit", "delete"] } |
| | | ] |
| | | }); |
| | | |
| | | // cl-search |
| | | const Search = useSearch(); |
| | | |
| | | // cl-crud |
| | | const Crud = useCrud( |
| | | { |
| | | service: service.operation.wastesale |
| | | }, |
| | | (app) => { |
| | | service.basicdata.wastetype.page({ isRecyclable: 1, size: 1000 }).then((res) => { |
| | | garbageTypeOptions.value = (res.list || []).map((item: any) => ({ |
| | | label: item.name, |
| | | value: item.code, |
| | | price: item.price, |
| | | })); |
| | | }); |
| | | app.refresh(); |
| | | } |
| | | ); |
| | | |
| | | // 刷新 |
| | | function refresh(params?: any) { |
| | | Crud.value?.refresh(params); |
| | | } |
| | | |
| | | /** |
| | | * 核心逻辑:监听部门 ID 的变化 |
| | | */ |
| | | watch( |
| | | () => Upsert.value?.form.departmentId, |
| | | async (newDeptId, oldDeptId) => { |
| | | if (!Upsert.value?.form) return; |
| | | |
| | | siteOptions.value = []; |
| | | buyerOptions.value = []; |
| | | |
| | | if (oldDeptId !== undefined) { |
| | | Upsert.value.form.siteId = undefined; |
| | | Upsert.value.form.buyerCode = undefined; |
| | | } |
| | | |
| | | // 如果没有选择任何部门,则中止请求 |
| | | if (!newDeptId) return; |
| | | |
| | | try { |
| | | const res1 = await service.basicdata.site.page({ departmentId: newDeptId, siteType: "收集点", size: 1000 }); |
| | | // 转换为 el-select 需要的 { label, value } 格式 |
| | | siteOptions.value = res1.list.map((item: any) => ({ |
| | | label: item.businessName, // 站点的名称 |
| | | value: item.businessId // 站点的ID |
| | | })); |
| | | const res2 = await service.basicdata.buyer.page({ departmentId: newDeptId, size: 1000 }); |
| | | // 转换为 el-select 需要的 { label, value } 格式 |
| | | buyerOptions.value = res2.list.map((item: any) => ({ |
| | | label: item.name, // 站点的名称 |
| | | value: item.code // 站点的ID |
| | | })); |
| | | |
| | | |
| | | } catch (err) { |
| | | console.error("加载站点列表失败", err); |
| | | } |
| | | } |
| | | ); |
| | | |
| | | </script> |