From 657df04ce3c430c5c5e29830367140049fdaa89f Mon Sep 17 00:00:00 2001 From: zsqtony <450952271@qq.com> Date: Sat, 11 Oct 2025 09:21:58 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gencode.json | 2 +- src/gen/ApiTypes.d.ts | 43 +++++++++++++++++++++++++++++++++++++++++-- src/gen/Apis.ts | 36 +++++++++++++++++++++++++++++++++++- src/gen/Enums.ts | 12 ++++++++++-- 4 files changed, 87 insertions(+), 6 deletions(-) diff --git a/gencode.json b/gencode.json index cc974bb..38a8029 100644 --- a/gencode.json +++ b/gencode.json @@ -1,4 +1,4 @@ { - "url": "http://c789629c.natappfree.cc/api/docs/openapi", + "url": "http://v79683c9.natappfree.cc/api/docs/openapi", "module": "Admin" } diff --git a/src/gen/ApiTypes.d.ts b/src/gen/ApiTypes.d.ts index 67827a0..38324cf 100644 --- a/src/gen/ApiTypes.d.ts +++ b/src/gen/ApiTypes.d.ts @@ -5,6 +5,7 @@ declare namespace ApiTypes { "title"?: string; // 模糊搜索:名称 "status"?: string; // 状态,[enum:ActivitiesStatusEnum] "publish_status"?: string; // 发布状态,[enum:ActivitiesPublishStatusEnum] + "asset_projects_id"?: number; // 项目ID,[ref:asset_projects] }; type Store = { "title": string; // 活动标题 @@ -863,12 +864,14 @@ declare namespace ApiTypes { "companies_id": number; // 所属机构id,[ref:companies] "projects_id": number; // 所属项目id,[ref:asset_projects] "receipt_accounts_id": number; // 机构收款账号id,[ref:company_receipt_accounts] + "is_default"?: number; // 是否默认收款账号 }; type Update = { "id": number; // id "companies_id": number; // 所属机构id,[ref:companies] "projects_id": number; // 所属项目id,[ref:asset_projects] "receipt_accounts_id": number; // 机构收款账号id,[ref:company_receipt_accounts] + "is_default"?: number; // 是否默认收款账号 }; type Show = { "id": number; // id @@ -1307,7 +1310,7 @@ declare namespace ApiTypes { namespace HouseOrder { namespace HouseOrderPayments { type List = { - "house_orders_id": number; // 订单ID + "house_orders_id"?: number; // 订单ID "payment_no"?: string; // 模糊搜索:支付单号 "transaction_id"?: string; // 模糊搜索:交易号(微信、支付宝的单号 "third_trade_no"?: string; // 第三方交易号(如通联、乐刷) @@ -1340,6 +1343,37 @@ declare namespace ApiTypes { "id": number; // id }; } + namespace HousePrepaymentPayments { + type List = { + "house_prepayments_id"?: number; // 房屋预付id,[ref:house_prepayments] + "asset_houses_id"?: number; // 资产房屋id,[ref:asset_houses] + "full_name"?: string; // 模糊搜索:房屋名称 + }; + type Show = { + "id": number; // id + }; + type Delete = { + "id": number; // id + }; + } + namespace HousePrepayments { + type List = { + "full_name"?: string; // 模糊搜索:房屋名称 + "company_name"?: string; // 模糊搜索:机构名称 + }; + type Show = { + "id": number; // id + }; + type SoftDelete = { + "id": number; // id + }; + type Restore = { + "id": number; // id + }; + type Delete = { + "id": number; // id + }; + } } namespace Meter { namespace HouseMeterHasHouses { @@ -1358,6 +1392,9 @@ declare namespace ApiTypes { type Delete = { "id": number; // id }; + type Import = { + "upload_file"?: mimes:xlsx,xls; // 上传的时候必填文件 + }; } namespace HouseMeterReadings { type List = { @@ -1394,6 +1431,7 @@ declare namespace ApiTypes { namespace HouseMeterTaskDetails { type List = { "house_meter_task_id"?: number; // 仪表任务id,[ref:house_meter_tasks] + "house_meters_id"?: number; // 仪表id,[ref:house_meters] "full_name"?: string; // 房屋全称 "meter_name"?: string; // 仪表名称 }; @@ -1441,6 +1479,7 @@ declare namespace ApiTypes { "asset_projects_id"?: number; // 项目id,[ref:asset_projects] "project_name"?: string; // 模糊搜索:项目名称 "charge_standards_id"?: number; // 房屋收费标准id,[ref:house_charge_standards] + "meter_type"?: string; // 仪表类型,[enum:HouseMetersMeterTypeEnum] }; type Store = { "asset_projects_id": number; // 项目id,[ref:asset_projects] @@ -1621,7 +1660,7 @@ declare namespace ApiTypes { type List = { "title"?: string; // 模糊搜索:名称 "house_name"?: string; // 模糊搜索:房屋名称 - "type"?: string; // 工单类型,[enum:HouseWorkOrdersTypeEnum] + "type"?: string[]; // 工单类型,[enum:HouseWorkOrdersTypeEnum] "level"?: string; // 工单优先级,[enum:HouseWorkOrdersLevelEnum] "status"?: string; // 工单状态,[enum:HouseWorkOrdersStatusEnum] "assign_status"?: string; // 工单分配状态,[enum:HouseWorkOrdersAssignStatusEnum] diff --git a/src/gen/Apis.ts b/src/gen/Apis.ts index 3de29c3..754e829 100644 --- a/src/gen/Apis.ts +++ b/src/gen/Apis.ts @@ -773,7 +773,7 @@ export const Apis = { }, HouseOrder: { HouseOrderPayments: { - List(data: ApiTypes.HouseOrder.HouseOrderPayments.List): Promise { + List(data?: ApiTypes.HouseOrder.HouseOrderPayments.List): Promise { return request('admin/house_order/house_order_payments/list', { data }); }, Show(data: ApiTypes.HouseOrder.HouseOrderPayments.Show): Promise { @@ -800,6 +800,34 @@ export const Apis = { return request('admin/house_order/house_orders/delete', { data }); }, }, + HousePrepaymentPayments: { + List(data?: ApiTypes.HouseOrder.HousePrepaymentPayments.List): Promise { + return request('admin/house_order/house_prepayment_payments/list', { data }); + }, + Show(data: ApiTypes.HouseOrder.HousePrepaymentPayments.Show): Promise { + return request('admin/house_order/house_prepayment_payments/show', { data }); + }, + Delete(data: ApiTypes.HouseOrder.HousePrepaymentPayments.Delete): Promise { + return request('admin/house_order/house_prepayment_payments/delete', { data }); + }, + }, + HousePrepayments: { + List(data?: ApiTypes.HouseOrder.HousePrepayments.List): Promise { + return request('admin/house_order/house_prepayments/list', { data }); + }, + Show(data: ApiTypes.HouseOrder.HousePrepayments.Show): Promise { + return request('admin/house_order/house_prepayments/show', { data }); + }, + SoftDelete(data: ApiTypes.HouseOrder.HousePrepayments.SoftDelete): Promise { + return request('admin/house_order/house_prepayments/soft_delete', { data }); + }, + Restore(data: ApiTypes.HouseOrder.HousePrepayments.Restore): Promise { + return request('admin/house_order/house_prepayments/restore', { data }); + }, + Delete(data: ApiTypes.HouseOrder.HousePrepayments.Delete): Promise { + return request('admin/house_order/house_prepayments/delete', { data }); + }, + }, }, Meter: { HouseMeterHasHouses: { @@ -815,6 +843,12 @@ export const Apis = { Delete(data: ApiTypes.Meter.HouseMeterHasHouses.Delete): Promise { return request('admin/meter/house_meter_has_houses/delete', { data }); }, + Import(data?: ApiTypes.Meter.HouseMeterHasHouses.Import): Promise { + return request('admin/meter/house_meter_has_houses/import', { data }); + }, + DownloadTemplate(): Promise { + return request('admin/meter/house_meter_has_houses/download_template', {responseType: 'blob',}); + }, }, HouseMeterReadings: { List(data: ApiTypes.Meter.HouseMeterReadings.List): Promise { diff --git a/src/gen/Enums.ts b/src/gen/Enums.ts index 4478ebb..9307e20 100644 --- a/src/gen/Enums.ts +++ b/src/gen/Enums.ts @@ -154,7 +154,7 @@ export const BannersTypeEnum= { // 缓存类型 export const CacheTypeEnum= { - 'MobilePhoneVerificationCode': {"text":"手机验证码","color":"#dc15e2","value":"MobilePhoneVerificationCode"}, + 'MobilePhoneVerificationCode': {"text":"手机验证码","color":"#b2685c","value":"MobilePhoneVerificationCode"}, }; // CompaniesMerchantTypeEnum @@ -192,6 +192,7 @@ export const CompanyEmployeeBacklogsStatusEnum= { export const CompanyEmployeeBacklogsTypeEnum= { 'WorkOrder': {"text":"工单","color":"#FF6600","value":"WorkOrder"}, 'Contract': {"text":"合同","color":"#2A82E4","value":"Contract"}, + 'MomentTask': {"text":"朋友圈任务","color":"#FF6600","value":"MomentTask"}, }; // CompanyReceiptAccountsPayChannelEnum @@ -204,10 +205,10 @@ export const CompanyReceiptAccountsPayChannelEnum= { // ConvenienceServicesTypeEnum export const ConvenienceServicesTypeEnum= { + 'PropertyExclusive': {"text":"物业专属","color":"#8b5cf6","value":"PropertyExclusive"}, 'EmergencyRepair': {"text":"紧急抢修","color":"#ef4444","value":"EmergencyRepair"}, 'LifeService': {"text":"生活服务","color":"#3b82f6","value":"LifeService"}, 'GovernmentConsulting': {"text":"政务咨询","color":"#10b981","value":"GovernmentConsulting"}, - 'PropertyExclusive': {"text":"物业专属","color":"#8b5cf6","value":"PropertyExclusive"}, }; // CustomerBacklogsStatusEnum @@ -485,6 +486,13 @@ export const HouseOrdersPaymentMethodEnum= { 'Alipay': {"text":"支付宝","color":"#1677ff","value":"Alipay"}, 'BankTransfer': {"text":"银行转账","color":"#6c757d","value":"BankTransfer"}, 'TongLian': {"text":"通联支付","color":"#ff9f0a","value":"TongLian"}, + 'Prepayment': {"text":"预缴支付","color":"#f59e0b","value":"Prepayment"}, +}; + +// HousePrepaymentLogsTypeEnum +export const HousePrepaymentLogsTypeEnum= { + 'Add': {"text":"加","color":"#52c41a","value":"Add"}, + 'Subtract': {"text":"减","color":"#f5222d","value":"Subtract"}, }; // HouseRegistersCustomerTypeEnum