Compare commits
No commits in common. "4d4d833f74639c78a3d014951ca93770c6bf1b36" and "d06c4dbe26bc07ae3d0d8c51c61757840b7c1f68" have entirely different histories.
4d4d833f74
...
d06c4dbe26
42
src/gen/ApiTypes.d.ts
vendored
42
src/gen/ApiTypes.d.ts
vendored
@ -113,20 +113,17 @@ declare namespace ApiTypes {
|
|||||||
"status"?: string; // 状态,[enum:HouseRegistersStatusEnum]
|
"status"?: string; // 状态,[enum:HouseRegistersStatusEnum]
|
||||||
"customer_info"?: string[]; // 客户信息
|
"customer_info"?: string[]; // 客户信息
|
||||||
"ownership_info"?: string[]; // 产权信息
|
"ownership_info"?: string[]; // 产权信息
|
||||||
"remark"?: string; // 备注
|
|
||||||
};
|
};
|
||||||
type Update = {
|
type Update = {
|
||||||
"id": number; // id
|
"id": number; // id
|
||||||
"type": string; // 类型,[enum:HouseRegistersTypeEnum]
|
"type": string; // 类型,[enum:HouseRegistersTypeEnum]
|
||||||
"customer_info"?: string[]; // 客户信息
|
"customer_info"?: string[]; // 客户信息
|
||||||
"ownership_info"?: string[]; // 产权信息
|
"ownership_info"?: string[]; // 产权信息
|
||||||
"remark"?: string; // 备注
|
|
||||||
};
|
};
|
||||||
type MoveOut = {
|
type MoveOut = {
|
||||||
"house_occupants_id": number; // 房客id
|
"house_occupants_id": number; // 房客id
|
||||||
"move_out_date"?: Date; // 搬离时间
|
"move_out_date"?: Date; // 搬离时间
|
||||||
"apply_reason"?: string; // 搬离原因
|
"apply_reason"?: string; // 搬离原因
|
||||||
"remark"?: string; // 备注
|
|
||||||
};
|
};
|
||||||
type MoveIn = {
|
type MoveIn = {
|
||||||
"house_occupants_id": number; // 房客id
|
"house_occupants_id": number; // 房客id
|
||||||
@ -135,7 +132,6 @@ declare namespace ApiTypes {
|
|||||||
};
|
};
|
||||||
type RemoveOwner = {
|
type RemoveOwner = {
|
||||||
"house_occupants_id": number; // 房客id
|
"house_occupants_id": number; // 房客id
|
||||||
"remark"?: string; // 备注
|
|
||||||
};
|
};
|
||||||
type ChangeOccupant = {
|
type ChangeOccupant = {
|
||||||
"house_occupants_id": number; // 房客id
|
"house_occupants_id": number; // 房客id
|
||||||
@ -155,7 +151,6 @@ declare namespace ApiTypes {
|
|||||||
"owners_id"?: number; // 产权人id,[ref:house_occupants]
|
"owners_id"?: number; // 产权人id,[ref:house_occupants]
|
||||||
"relation_with_owner"?: string; // 与产权人关系,[enum:HouseOccupantsRelationWithOwnerEnum]
|
"relation_with_owner"?: string; // 与产权人关系,[enum:HouseOccupantsRelationWithOwnerEnum]
|
||||||
"status"?: string; // 状态,[enum:HouseOccupantsStatusEnum]
|
"status"?: string; // 状态,[enum:HouseOccupantsStatusEnum]
|
||||||
"remark"?: string; // 备注
|
|
||||||
};
|
};
|
||||||
type Show = {
|
type Show = {
|
||||||
"id": number; // id
|
"id": number; // id
|
||||||
@ -361,9 +356,6 @@ declare namespace ApiTypes {
|
|||||||
"keywords"?: string; // 关键词
|
"keywords"?: string; // 关键词
|
||||||
"companies_id"?: number; // 机构id
|
"companies_id"?: number; // 机构id
|
||||||
};
|
};
|
||||||
type Import = {
|
|
||||||
"upload_file"?: mimes:xlsx,xls; // 上传的时候必填文件
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
namespace AssetUnits {
|
namespace AssetUnits {
|
||||||
type List = {
|
type List = {
|
||||||
@ -483,7 +475,11 @@ declare namespace ApiTypes {
|
|||||||
"asset_houses_id"?: number; // 资产房屋id,[ref:asset_houses]
|
"asset_houses_id"?: number; // 资产房屋id,[ref:asset_houses]
|
||||||
"full_name"?: string; // 模糊搜索:房屋名称
|
"full_name"?: string; // 模糊搜索:房屋名称
|
||||||
"company_name"?: string; // 模糊搜索:公司名称
|
"company_name"?: string; // 模糊搜索:公司名称
|
||||||
|
<<<<<<< HEAD
|
||||||
|
"bill_status"?: string; // 账单状态,[enum:HouseBillsBillStatusEnum]
|
||||||
|
=======
|
||||||
"bill_status"?: string[]; // 账单状态,[enum:HouseBillsBillStatusEnum]
|
"bill_status"?: string[]; // 账单状态,[enum:HouseBillsBillStatusEnum]
|
||||||
|
>>>>>>> 1ee118ed66388333954dd06d50024c67750430d4
|
||||||
};
|
};
|
||||||
type SummaryBillList = {
|
type SummaryBillList = {
|
||||||
"full_name"?: string; // 模糊搜索:房屋名称
|
"full_name"?: string; // 模糊搜索:房屋名称
|
||||||
@ -641,29 +637,6 @@ declare namespace ApiTypes {
|
|||||||
"id": number; // id
|
"id": number; // id
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
namespace Positions {
|
|
||||||
type List = {
|
|
||||||
"name"?: string; // 模糊搜索:名称
|
|
||||||
};
|
|
||||||
type Store = {
|
|
||||||
"name": string; // 岗位名称
|
|
||||||
"is_use"?: number; // 是否启用,1启用,0禁用
|
|
||||||
};
|
|
||||||
type Update = {
|
|
||||||
"id": number; // id
|
|
||||||
"name": string; // 岗位名称
|
|
||||||
"is_use"?: number; // 是否启用,1启用,0禁用
|
|
||||||
};
|
|
||||||
type Show = {
|
|
||||||
"id": number; // id
|
|
||||||
};
|
|
||||||
type Delete = {
|
|
||||||
"id": number; // id
|
|
||||||
};
|
|
||||||
type Select = {
|
|
||||||
"keywords"?: string; // 关键词
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
namespace Company {
|
namespace Company {
|
||||||
namespace Companies {
|
namespace Companies {
|
||||||
@ -828,10 +801,6 @@ declare namespace ApiTypes {
|
|||||||
"status"?: number; // 状态
|
"status"?: number; // 状态
|
||||||
"remark"?: string; // 备注
|
"remark"?: string; // 备注
|
||||||
};
|
};
|
||||||
type BatchStore = {
|
|
||||||
"companies_id": number; // 所属机构id,[ref:companies]
|
|
||||||
"positions_ids": string[]; // 岗位ID
|
|
||||||
};
|
|
||||||
type Show = {
|
type Show = {
|
||||||
"id": number; // id
|
"id": number; // id
|
||||||
};
|
};
|
||||||
@ -1459,9 +1428,6 @@ declare namespace ApiTypes {
|
|||||||
type Delete = {
|
type Delete = {
|
||||||
"id": number; // id
|
"id": number; // id
|
||||||
};
|
};
|
||||||
type Import = {
|
|
||||||
"upload_file"?: mimes:xlsx,xls; // 上传的时候必填文件
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
namespace Msg {
|
namespace Msg {
|
||||||
|
|||||||
@ -185,12 +185,6 @@ export const Apis = {
|
|||||||
Select(data?: ApiTypes.Asset.AssetProjects.Select): Promise<MyResponseType> {
|
Select(data?: ApiTypes.Asset.AssetProjects.Select): Promise<MyResponseType> {
|
||||||
return request('admin/asset/asset_projects/select', { data });
|
return request('admin/asset/asset_projects/select', { data });
|
||||||
},
|
},
|
||||||
Import(data?: ApiTypes.Asset.AssetProjects.Import): Promise<MyResponseType> {
|
|
||||||
return request('admin/asset/asset_projects/import', { data });
|
|
||||||
},
|
|
||||||
DownloadTemplate(): Promise<MyResponseType> {
|
|
||||||
return request('admin/asset/asset_projects/download_template', {responseType: 'blob',});
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
AssetUnits: {
|
AssetUnits: {
|
||||||
List(data?: ApiTypes.Asset.AssetUnits.List): Promise<MyResponseType> {
|
List(data?: ApiTypes.Asset.AssetUnits.List): Promise<MyResponseType> {
|
||||||
@ -380,26 +374,6 @@ export const Apis = {
|
|||||||
return request('admin/common/convenience_services/delete', { data });
|
return request('admin/common/convenience_services/delete', { data });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Positions: {
|
|
||||||
List(data?: ApiTypes.Common.Positions.List): Promise<MyResponseType> {
|
|
||||||
return request('admin/common/positions/list', { data });
|
|
||||||
},
|
|
||||||
Store(data: ApiTypes.Common.Positions.Store): Promise<MyResponseType> {
|
|
||||||
return request('admin/common/positions/store', { data });
|
|
||||||
},
|
|
||||||
Update(data: ApiTypes.Common.Positions.Update): Promise<MyResponseType> {
|
|
||||||
return request('admin/common/positions/update', { data });
|
|
||||||
},
|
|
||||||
Show(data: ApiTypes.Common.Positions.Show): Promise<MyResponseType> {
|
|
||||||
return request('admin/common/positions/show', { data });
|
|
||||||
},
|
|
||||||
Delete(data: ApiTypes.Common.Positions.Delete): Promise<MyResponseType> {
|
|
||||||
return request('admin/common/positions/delete', { data });
|
|
||||||
},
|
|
||||||
Select(data?: ApiTypes.Common.Positions.Select): Promise<MyResponseType> {
|
|
||||||
return request('admin/common/positions/select', { data });
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
Company: {
|
Company: {
|
||||||
Companies: {
|
Companies: {
|
||||||
@ -487,9 +461,6 @@ export const Apis = {
|
|||||||
Update(data: ApiTypes.Company.CompanyPositions.Update): Promise<MyResponseType> {
|
Update(data: ApiTypes.Company.CompanyPositions.Update): Promise<MyResponseType> {
|
||||||
return request('admin/company/company_positions/update', { data });
|
return request('admin/company/company_positions/update', { data });
|
||||||
},
|
},
|
||||||
BatchStore(data: ApiTypes.Company.CompanyPositions.BatchStore): Promise<MyResponseType> {
|
|
||||||
return request('admin/company/company_positions/batch_store', { data });
|
|
||||||
},
|
|
||||||
Show(data: ApiTypes.Company.CompanyPositions.Show): Promise<MyResponseType> {
|
Show(data: ApiTypes.Company.CompanyPositions.Show): Promise<MyResponseType> {
|
||||||
return request('admin/company/company_positions/show', { data });
|
return request('admin/company/company_positions/show', { data });
|
||||||
},
|
},
|
||||||
@ -874,12 +845,6 @@ export const Apis = {
|
|||||||
Delete(data: ApiTypes.Meter.HouseMeters.Delete): Promise<MyResponseType> {
|
Delete(data: ApiTypes.Meter.HouseMeters.Delete): Promise<MyResponseType> {
|
||||||
return request('admin/meter/house_meters/delete', { data });
|
return request('admin/meter/house_meters/delete', { data });
|
||||||
},
|
},
|
||||||
Import(data?: ApiTypes.Meter.HouseMeters.Import): Promise<MyResponseType> {
|
|
||||||
return request('admin/meter/house_meters/import', { data });
|
|
||||||
},
|
|
||||||
DownloadTemplate(): Promise<MyResponseType> {
|
|
||||||
return request('admin/meter/house_meters/download_template', {responseType: 'blob',});
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Msg: {
|
Msg: {
|
||||||
|
|||||||
@ -154,7 +154,11 @@ export const BannersTypeEnum= {
|
|||||||
|
|
||||||
// 缓存类型
|
// 缓存类型
|
||||||
export const CacheTypeEnum= {
|
export const CacheTypeEnum= {
|
||||||
'MobilePhoneVerificationCode': {"text":"手机验证码","color":"#e3da02","value":"MobilePhoneVerificationCode"},
|
<<<<<<< HEAD
|
||||||
|
'MobilePhoneVerificationCode': {"text":"手机验证码","color":"#262025","value":"MobilePhoneVerificationCode"},
|
||||||
|
=======
|
||||||
|
'MobilePhoneVerificationCode': {"text":"手机验证码","color":"#b123bc","value":"MobilePhoneVerificationCode"},
|
||||||
|
>>>>>>> 1ee118ed66388333954dd06d50024c67750430d4
|
||||||
};
|
};
|
||||||
|
|
||||||
// CompaniesMerchantTypeEnum
|
// CompaniesMerchantTypeEnum
|
||||||
@ -447,14 +451,11 @@ export const HouseOccupantsHouseRelationEnum= {
|
|||||||
|
|
||||||
// HouseOccupantsRelationWithOwnerEnum
|
// HouseOccupantsRelationWithOwnerEnum
|
||||||
export const HouseOccupantsRelationWithOwnerEnum= {
|
export const HouseOccupantsRelationWithOwnerEnum= {
|
||||||
'Self': {"text":"本人","color":"#52c41a","value":"Self"},
|
|
||||||
'Spouse': {"text":"配偶","color":"#2db7f5","value":"Spouse"},
|
'Spouse': {"text":"配偶","color":"#2db7f5","value":"Spouse"},
|
||||||
'Children': {"text":"子女","color":"#87d068","value":"Children"},
|
'Children': {"text":"子女","color":"#87d068","value":"Children"},
|
||||||
'Parents': {"text":"父母","color":"#faad14","value":"Parents"},
|
'Parents': {"text":"父母","color":"#faad14","value":"Parents"},
|
||||||
'Siblings': {"text":"兄弟姐妹","color":"#fa8c16","value":"Siblings"},
|
'Siblings': {"text":"兄弟姐妹","color":"#fa8c16","value":"Siblings"},
|
||||||
'OtherRelatives': {"text":"其他亲属","color":"#f5222d","value":"OtherRelatives"},
|
'OtherRelatives': {"text":"其他亲属","color":"#f5222d","value":"OtherRelatives"},
|
||||||
'PrimaryTenant': {"text":"主租客","color":"#722ed1","value":"PrimaryTenant"},
|
|
||||||
'Tenant': {"text":"租客","color":"#1890ff","value":"Tenant"},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// HouseOccupantsResidentialRelationEnum
|
// HouseOccupantsResidentialRelationEnum
|
||||||
@ -466,8 +467,8 @@ export const HouseOccupantsResidentialRelationEnum= {
|
|||||||
|
|
||||||
// HouseOccupantsStatusEnum
|
// HouseOccupantsStatusEnum
|
||||||
export const HouseOccupantsStatusEnum= {
|
export const HouseOccupantsStatusEnum= {
|
||||||
'Normal': {"text":"绑定","color":"#52c41a","value":"Normal"},
|
'Normal': {"text":"正常","color":"#52c41a","value":"Normal"},
|
||||||
'Unbound': {"text":"解绑","color":"#f5222d","value":"Unbound"},
|
'Unbound': {"text":"已解除","color":"#f5222d","value":"Unbound"},
|
||||||
};
|
};
|
||||||
|
|
||||||
// 订单状态枚举
|
// 订单状态枚举
|
||||||
|
|||||||
@ -1,115 +0,0 @@
|
|||||||
import {
|
|
||||||
MyButtons,
|
|
||||||
MyColumns,
|
|
||||||
MyPageContainer,
|
|
||||||
MyProTableProps,
|
|
||||||
usePageTabs,
|
|
||||||
} from '@/common';
|
|
||||||
import { Apis } from '@/gen/Apis';
|
|
||||||
import {
|
|
||||||
HouseChargeTasksStatusEnum,
|
|
||||||
HouseChargeTasksTypeEnum,
|
|
||||||
} from '@/gen/Enums';
|
|
||||||
import { ProTable } from '@ant-design/pro-components';
|
|
||||||
import { Space } from 'antd';
|
|
||||||
import TaskCreate from './modals/TaskCreate';
|
|
||||||
import TaskShow from './modals/TaskShow';
|
|
||||||
|
|
||||||
export default function Index({ title = '账单任务' }) {
|
|
||||||
// 注册当前页面为标签页
|
|
||||||
usePageTabs({
|
|
||||||
tabKey: 'house_charge_tasks',
|
|
||||||
tabLabel: title,
|
|
||||||
});
|
|
||||||
|
|
||||||
return (
|
|
||||||
<MyPageContainer
|
|
||||||
title={title}
|
|
||||||
enableTabs={true}
|
|
||||||
tabKey="house_charge_tasks"
|
|
||||||
tabLabel={title}
|
|
||||||
>
|
|
||||||
<ProTable
|
|
||||||
{...MyProTableProps.props}
|
|
||||||
request={async (params, sort) =>
|
|
||||||
MyProTableProps.request(
|
|
||||||
params,
|
|
||||||
sort,
|
|
||||||
Apis.HouseCharage.HouseChargeTasks.List,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
toolBarRender={(action) => [
|
|
||||||
<TaskCreate key="Create" reload={action?.reload} title="账单任务" />,
|
|
||||||
]}
|
|
||||||
columns={[
|
|
||||||
{
|
|
||||||
title: '机构',
|
|
||||||
dataIndex: ['company', 'name'],
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '任务ID',
|
|
||||||
dataIndex: 'id',
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
MyColumns.EnumTag({
|
|
||||||
title: '创建类型',
|
|
||||||
dataIndex: 'type',
|
|
||||||
valueEnum: HouseChargeTasksTypeEnum,
|
|
||||||
}),
|
|
||||||
MyColumns.EnumTag({
|
|
||||||
title: '任务状态',
|
|
||||||
dataIndex: 'status',
|
|
||||||
valueEnum: HouseChargeTasksStatusEnum,
|
|
||||||
}),
|
|
||||||
{
|
|
||||||
title: '收费标准',
|
|
||||||
dataIndex: ['house_charge_standard', 'name'],
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '账单月份',
|
|
||||||
render: (_, record) => {
|
|
||||||
return `${record.bill_year}-${String(record.bill_month).padStart(
|
|
||||||
2,
|
|
||||||
'0',
|
|
||||||
)}`;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '计费周期',
|
|
||||||
|
|
||||||
render: (_, record) => {
|
|
||||||
return `${record.start_date}-${String(record.end_date).padStart(
|
|
||||||
2,
|
|
||||||
'0',
|
|
||||||
)}`;
|
|
||||||
},
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '账单数',
|
|
||||||
dataIndex: 'task_count',
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
// MyColumns.UpdatedAt(),
|
|
||||||
MyColumns.CreatedAt(),
|
|
||||||
MyColumns.Option({
|
|
||||||
render: (_, item: any, index, action) => (
|
|
||||||
<Space key={index}>
|
|
||||||
<TaskShow item={item} title="查看" reload={action?.reload} />
|
|
||||||
<MyButtons.Delete
|
|
||||||
onConfirm={() =>
|
|
||||||
Apis.HouseCharage.HouseChargeTasks.Delete({
|
|
||||||
id: item.id,
|
|
||||||
}).then(() => action?.reload())
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</Space>
|
|
||||||
),
|
|
||||||
}),
|
|
||||||
]}
|
|
||||||
/>
|
|
||||||
</MyPageContainer>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@ -1,122 +0,0 @@
|
|||||||
import {
|
|
||||||
MyBetaModalFormProps,
|
|
||||||
MyButtons,
|
|
||||||
MyModalFormProps,
|
|
||||||
rulesHelper,
|
|
||||||
} from '@/common';
|
|
||||||
import { Selects } from '@/components/Select';
|
|
||||||
import { Apis } from '@/gen/Apis';
|
|
||||||
import { BetaSchemaForm } from '@ant-design/pro-components';
|
|
||||||
import { Form, message } from 'antd';
|
|
||||||
|
|
||||||
export default function Create(props: MyBetaModalFormProps) {
|
|
||||||
const [form] = Form.useForm();
|
|
||||||
return (
|
|
||||||
<BetaSchemaForm<ApiTypes.HouseCharage.HouseChargeTasks.Store>
|
|
||||||
{...MyModalFormProps.props}
|
|
||||||
title={`创建${props.title}`}
|
|
||||||
width="480px"
|
|
||||||
layout="horizontal"
|
|
||||||
labelCol={{ span: 8 }}
|
|
||||||
wrapperCol={{ span: 16 }}
|
|
||||||
labelAlign="left"
|
|
||||||
trigger={<MyButtons.Create title={`创建${props.title}`} />}
|
|
||||||
key={new Date().getTime()}
|
|
||||||
form={form}
|
|
||||||
onOpenChange={(open: any) => {
|
|
||||||
if (open) {
|
|
||||||
form.resetFields(); // 清空表单数据
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
onFinish={async (values) =>
|
|
||||||
Apis.HouseCharage.HouseChargeTasks.Store(values)
|
|
||||||
.then(() => {
|
|
||||||
props.reload?.();
|
|
||||||
message.success(props.title + '账单任务创建成功');
|
|
||||||
return true;
|
|
||||||
})
|
|
||||||
.catch(() => false)
|
|
||||||
}
|
|
||||||
columns={[
|
|
||||||
Selects?.AssetProjects({
|
|
||||||
title: '选择项目',
|
|
||||||
key: 'asset_projects_id',
|
|
||||||
colProps: { span: 24 },
|
|
||||||
formItemProps: { ...rulesHelper.text },
|
|
||||||
fieldProps: {
|
|
||||||
onChange: (val: any) => {
|
|
||||||
form.setFieldsValue({
|
|
||||||
house_charge_standards_id: undefined,
|
|
||||||
});
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
{
|
|
||||||
valueType: 'dependency',
|
|
||||||
name: ['asset_projects_id'],
|
|
||||||
columns: ({ asset_projects_id }) => {
|
|
||||||
return [
|
|
||||||
Selects?.ChargeStandard({
|
|
||||||
title: '选择收费标准',
|
|
||||||
key: 'house_charge_standards_id',
|
|
||||||
params: {
|
|
||||||
asset_projects_id: asset_projects_id,
|
|
||||||
},
|
|
||||||
colProps: { span: 24 },
|
|
||||||
formItemProps: { ...rulesHelper.text },
|
|
||||||
fieldProps: {
|
|
||||||
showSearch: true,
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
];
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'month',
|
|
||||||
title: '选择生成月份',
|
|
||||||
valueType: 'date',
|
|
||||||
colProps: { span: 24 },
|
|
||||||
fieldProps: {
|
|
||||||
picker: 'month',
|
|
||||||
format: 'YYYY-MM',
|
|
||||||
valueFormat: 'YYYY-MM',
|
|
||||||
style: {
|
|
||||||
width: '100%',
|
|
||||||
},
|
|
||||||
onChange: (e: any, dateString: string) => {
|
|
||||||
form.setFieldsValue({
|
|
||||||
start_date: rulesHelper.getMonthStartDate(dateString),
|
|
||||||
end_date: rulesHelper.getMonthEndDate(dateString),
|
|
||||||
});
|
|
||||||
},
|
|
||||||
},
|
|
||||||
formItemProps: { ...rulesHelper.text },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'start_date',
|
|
||||||
title: '计费开始日期',
|
|
||||||
valueType: 'date',
|
|
||||||
colProps: { span: 24 },
|
|
||||||
fieldProps: {
|
|
||||||
style: {
|
|
||||||
width: '100%',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
formItemProps: { ...rulesHelper.text },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'end_date',
|
|
||||||
title: '计费结束日期',
|
|
||||||
valueType: 'date',
|
|
||||||
colProps: { span: 24 },
|
|
||||||
fieldProps: {
|
|
||||||
style: {
|
|
||||||
width: '100%',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
formItemProps: { ...rulesHelper.text },
|
|
||||||
},
|
|
||||||
]}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@ -1,69 +0,0 @@
|
|||||||
import { MyBetaModalFormProps, MyColumns, MyProTableProps } from '@/common';
|
|
||||||
import { MyModal } from '@/components/MyModal';
|
|
||||||
import { Apis } from '@/gen/Apis';
|
|
||||||
import { HouseChargeTaskDetailsStatusEnum } from '@/gen/Enums';
|
|
||||||
import { ProTable } from '@ant-design/pro-components';
|
|
||||||
|
|
||||||
export default function AssetInfo(props: MyBetaModalFormProps) {
|
|
||||||
return (
|
|
||||||
<MyModal
|
|
||||||
title={props.title || '查看'}
|
|
||||||
type={props.item?.type || 'primary'}
|
|
||||||
width="1000px"
|
|
||||||
node={
|
|
||||||
<ProTable
|
|
||||||
{...MyProTableProps.props}
|
|
||||||
request={async (params, sort) =>
|
|
||||||
MyProTableProps.request(
|
|
||||||
{ ...params, house_charge_tasks_id: props?.item?.id },
|
|
||||||
sort,
|
|
||||||
Apis.HouseCharage.HouseChargeTaskDetails.List,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
columns={[
|
|
||||||
MyColumns.ID(),
|
|
||||||
{
|
|
||||||
title: '对象',
|
|
||||||
dataIndex: 'full_name',
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
MyColumns.EnumTag({
|
|
||||||
title: '状态',
|
|
||||||
dataIndex: 'status',
|
|
||||||
valueEnum: HouseChargeTaskDetailsStatusEnum,
|
|
||||||
}),
|
|
||||||
|
|
||||||
{
|
|
||||||
title: '收费标准',
|
|
||||||
dataIndex: ['house_charge_task', 'house_charge_standard', 'name'],
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '账单月份',
|
|
||||||
render: (_, record) => {
|
|
||||||
return `${record.year}-${String(record.month).padStart(
|
|
||||||
2,
|
|
||||||
'0',
|
|
||||||
)}`;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '计费周期',
|
|
||||||
render: (_, record) => {
|
|
||||||
return `${record.house_charge_task.start_date} 至 ${String(
|
|
||||||
record.house_charge_task.end_date,
|
|
||||||
).padStart(2, '0')}`;
|
|
||||||
},
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '完成时间',
|
|
||||||
dataIndex: 'processed_time',
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
]}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user