2025-09-01 21:32:29 +08:00
|
|
|
import {
|
|
|
|
|
MyBetaModalFormProps,
|
|
|
|
|
MyButtons,
|
|
|
|
|
MyFormItems,
|
|
|
|
|
MyModalFormProps,
|
|
|
|
|
rulesHelper,
|
|
|
|
|
} from '@/common';
|
|
|
|
|
import { Apis } from '@/gen/Apis';
|
|
|
|
|
import {
|
|
|
|
|
HouseBillsTypeEnum,
|
|
|
|
|
HouseChargeStandardsApportionmentMethodEnum,
|
|
|
|
|
HouseChargeStandardsCalculationMethodEnum,
|
|
|
|
|
HouseChargeStandardsCalculationModeEnum,
|
|
|
|
|
HouseChargeStandardsCalculationPeriodEnum,
|
|
|
|
|
HouseChargeStandardsPriceAlgorithmEnum,
|
|
|
|
|
HouseChargeStandardsTypeEnum,
|
|
|
|
|
} from '@/gen/Enums';
|
|
|
|
|
import { BetaSchemaForm } from '@ant-design/pro-components';
|
|
|
|
|
import { Form, message } from 'antd';
|
|
|
|
|
import { useRef } from 'react';
|
|
|
|
|
|
|
|
|
|
export default function Create(props: MyBetaModalFormProps) {
|
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
|
const actionRef = useRef<any>();
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<BetaSchemaForm<ApiTypes.HouseCharage.HouseChargeStandards.Store>
|
|
|
|
|
{...MyModalFormProps.props}
|
|
|
|
|
title={`创建收费标准`}
|
|
|
|
|
wrapperCol={{ span: 24 }}
|
2025-09-02 16:22:57 +08:00
|
|
|
width="600px"
|
2025-09-01 21:32:29 +08:00
|
|
|
trigger={<MyButtons.Create title={`创建收费标准`} />}
|
|
|
|
|
form={form}
|
|
|
|
|
key={new Date().getTime()}
|
|
|
|
|
onOpenChange={(open: any) => {
|
|
|
|
|
if (open) {
|
|
|
|
|
form.resetFields(); // 清空表单数据
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
onFinish={async (values: any) => {
|
|
|
|
|
values?.grid_ranges?.forEach((res: { asset_projects_id: string }) => {
|
|
|
|
|
res.asset_projects_id = props?.item?.id;
|
|
|
|
|
});
|
|
|
|
|
return Apis.HouseCharage.HouseChargeStandards.Store({
|
|
|
|
|
...values,
|
|
|
|
|
asset_projects_id: props?.item?.id,
|
|
|
|
|
type:
|
2025-09-08 17:22:58 +08:00
|
|
|
values.charge_type === HouseBillsTypeEnum.PropertyFee.value ||
|
|
|
|
|
values.charge_type === HouseBillsTypeEnum.MaintenanceFund.value
|
2025-09-01 21:32:29 +08:00
|
|
|
? HouseChargeStandardsTypeEnum.House.value
|
|
|
|
|
: HouseChargeStandardsTypeEnum.Meter.value,
|
|
|
|
|
is_apportionment:
|
|
|
|
|
values.charge_type === HouseBillsTypeEnum.SharedWaterFee.value ||
|
|
|
|
|
values.charge_type === HouseBillsTypeEnum.SharedElectricityFee.value
|
|
|
|
|
? 1
|
|
|
|
|
: 0,
|
|
|
|
|
// 按套
|
|
|
|
|
calculation_mode:
|
|
|
|
|
values?.calculation_method ===
|
|
|
|
|
HouseChargeStandardsCalculationMethodEnum.PerUnit.value
|
|
|
|
|
? HouseChargeStandardsCalculationModeEnum.FixedAmount.value
|
|
|
|
|
: values?.calculation_mode,
|
|
|
|
|
// 按固定金额
|
|
|
|
|
price_algorithm:
|
|
|
|
|
values?.calculation_mode ===
|
|
|
|
|
HouseChargeStandardsCalculationModeEnum.FixedAmount.value ||
|
|
|
|
|
values?.calculation_method ===
|
|
|
|
|
HouseChargeStandardsCalculationMethodEnum.PerUnit.value
|
|
|
|
|
? HouseChargeStandardsPriceAlgorithmEnum.Fixed.value
|
|
|
|
|
: values?.price_algorithm,
|
2025-09-02 18:42:14 +08:00
|
|
|
tiered_rates: values.tiered_rates?.map((res: any) => {
|
|
|
|
|
return {
|
|
|
|
|
...res,
|
|
|
|
|
};
|
|
|
|
|
}),
|
|
|
|
|
// 避免计费模式切换导致的价格异常
|
|
|
|
|
price:
|
|
|
|
|
values?.price_algorithm ===
|
2025-09-08 18:53:13 +08:00
|
|
|
HouseChargeStandardsPriceAlgorithmEnum.Fixed.value ||
|
|
|
|
|
values?.calculation_mode ===
|
|
|
|
|
HouseChargeStandardsCalculationModeEnum.FixedAmount.value
|
2025-09-02 18:42:14 +08:00
|
|
|
? values.price
|
|
|
|
|
: 0,
|
2025-09-08 18:53:13 +08:00
|
|
|
|
2025-09-09 13:31:13 +08:00
|
|
|
// is_tiered:
|
|
|
|
|
// values?.price_algorithm ===
|
|
|
|
|
// HouseChargeStandardsPriceAlgorithmEnum.Fixed.value
|
|
|
|
|
// ? 0
|
|
|
|
|
// : 1,
|
2025-09-01 21:32:29 +08:00
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
props.reload?.();
|
|
|
|
|
message.success('收费标准创建成功');
|
|
|
|
|
return true;
|
|
|
|
|
})
|
|
|
|
|
.catch(() => false);
|
|
|
|
|
}}
|
|
|
|
|
columns={[
|
|
|
|
|
{
|
|
|
|
|
key: 'name',
|
|
|
|
|
title: '收费标准名称',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
formItemProps: { ...rulesHelper.text },
|
|
|
|
|
},
|
|
|
|
|
MyFormItems.EnumRadio({
|
|
|
|
|
key: 'charge_type',
|
|
|
|
|
title: '收费项目',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
valueEnum: HouseBillsTypeEnum,
|
|
|
|
|
required: true,
|
|
|
|
|
}),
|
2025-09-02 16:22:57 +08:00
|
|
|
{
|
|
|
|
|
name: ['charge_type'],
|
|
|
|
|
valueType: 'dependency',
|
|
|
|
|
columns: ({ charge_type }: any) => {
|
|
|
|
|
return charge_type === HouseBillsTypeEnum.SharedWaterFee.value ||
|
|
|
|
|
charge_type === HouseBillsTypeEnum.SharedElectricityFee.value
|
|
|
|
|
? [
|
|
|
|
|
MyFormItems.EnumRadio({
|
|
|
|
|
key: 'calculation_method',
|
|
|
|
|
title: '分摊方式',
|
|
|
|
|
colProps: { span: 18 },
|
|
|
|
|
valueEnum: HouseChargeStandardsApportionmentMethodEnum,
|
|
|
|
|
required: true,
|
|
|
|
|
}),
|
|
|
|
|
]
|
|
|
|
|
: [];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
2025-09-01 21:32:29 +08:00
|
|
|
// Selects?.AssetProjects({
|
|
|
|
|
// key: 'asset_projects_id',
|
|
|
|
|
// title: '项目',
|
|
|
|
|
// colProps: { span: 12 },
|
|
|
|
|
// formItemProps: { ...rulesHelper.text },
|
|
|
|
|
// }),
|
|
|
|
|
{
|
|
|
|
|
name: ['charge_type'],
|
|
|
|
|
valueType: 'dependency',
|
|
|
|
|
columns: ({ charge_type }: any) => {
|
|
|
|
|
return charge_type === HouseBillsTypeEnum.PropertyFee.value ||
|
|
|
|
|
charge_type === HouseBillsTypeEnum.MaintenanceFund.value
|
|
|
|
|
? [
|
|
|
|
|
MyFormItems.EnumRadio({
|
|
|
|
|
key: 'calculation_method',
|
|
|
|
|
title: '计量单位',
|
2025-09-02 16:22:57 +08:00
|
|
|
colProps: { span: 16 },
|
2025-09-01 21:32:29 +08:00
|
|
|
valueEnum: () => {
|
|
|
|
|
let obj: any = JSON.parse(
|
|
|
|
|
JSON.stringify(
|
|
|
|
|
HouseChargeStandardsCalculationMethodEnum,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
delete obj.ElectricityUsage;
|
|
|
|
|
delete obj.WaterUsage;
|
|
|
|
|
return obj;
|
|
|
|
|
},
|
|
|
|
|
required: true,
|
2025-09-08 18:53:13 +08:00
|
|
|
fieldProps: {
|
|
|
|
|
onChange: () => {
|
|
|
|
|
// 切换计量单位时清空计费模式
|
|
|
|
|
form.setFieldValue('calculation_mode', undefined);
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-09-01 21:32:29 +08:00
|
|
|
}),
|
|
|
|
|
]
|
|
|
|
|
: charge_type === HouseBillsTypeEnum.WaterFee.value ||
|
|
|
|
|
charge_type === HouseBillsTypeEnum.ElectricityFee.value ||
|
|
|
|
|
charge_type === HouseBillsTypeEnum.SharedWaterFee.value ||
|
|
|
|
|
charge_type === HouseBillsTypeEnum.SharedElectricityFee.value
|
|
|
|
|
? [
|
|
|
|
|
MyFormItems.EnumRadio({
|
|
|
|
|
key: 'calculation_method',
|
|
|
|
|
title: '计量单位',
|
2025-09-02 16:22:57 +08:00
|
|
|
colProps: { span: 16 },
|
2025-09-01 21:32:29 +08:00
|
|
|
valueEnum: () => {
|
|
|
|
|
let obj: any = JSON.parse(
|
|
|
|
|
JSON.stringify(
|
|
|
|
|
HouseChargeStandardsCalculationMethodEnum,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
delete obj.ChargeableArea;
|
|
|
|
|
delete obj.BuiltArea;
|
|
|
|
|
delete obj.InsideArea;
|
|
|
|
|
delete obj.PerUnit;
|
|
|
|
|
return obj;
|
|
|
|
|
},
|
|
|
|
|
required: true,
|
2025-09-08 18:53:13 +08:00
|
|
|
fieldProps: {
|
|
|
|
|
onChange: () => {
|
|
|
|
|
// 切换计量单位时清空计费模式
|
|
|
|
|
form.setFieldValue('calculation_mode', undefined);
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-09-01 21:32:29 +08:00
|
|
|
}),
|
|
|
|
|
]
|
|
|
|
|
: [];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: ['calculation_method'],
|
|
|
|
|
valueType: 'dependency',
|
|
|
|
|
columns: ({ calculation_method }: any) => {
|
|
|
|
|
return calculation_method ===
|
|
|
|
|
HouseChargeStandardsCalculationMethodEnum.PerUnit.value
|
|
|
|
|
? [
|
|
|
|
|
{
|
|
|
|
|
key: 'price',
|
|
|
|
|
title: '固定单价',
|
|
|
|
|
colProps: { span: 10 },
|
|
|
|
|
fieldProps: {
|
|
|
|
|
addonAfter: '元',
|
|
|
|
|
},
|
|
|
|
|
formItemProps: { ...rulesHelper.number },
|
|
|
|
|
},
|
|
|
|
|
]
|
2025-09-02 16:22:57 +08:00
|
|
|
: !calculation_method &&
|
|
|
|
|
calculation_method !==
|
|
|
|
|
HouseChargeStandardsCalculationMethodEnum.PerUnit.value
|
2025-09-01 21:32:29 +08:00
|
|
|
? []
|
|
|
|
|
: [
|
|
|
|
|
MyFormItems.EnumRadio({
|
|
|
|
|
key: 'calculation_mode',
|
|
|
|
|
title: '计费模式',
|
|
|
|
|
colProps: { span: 12 },
|
2025-09-08 18:53:13 +08:00
|
|
|
// valueEnum: HouseChargeStandardsCalculationModeEnum,
|
|
|
|
|
valueEnum: () => {
|
|
|
|
|
let obj: any = JSON.parse(
|
|
|
|
|
JSON.stringify(HouseChargeStandardsCalculationModeEnum),
|
|
|
|
|
);
|
|
|
|
|
delete obj.FixedAmount;
|
|
|
|
|
return obj;
|
|
|
|
|
},
|
2025-09-01 21:32:29 +08:00
|
|
|
required: true,
|
|
|
|
|
}),
|
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: ['calculation_mode'],
|
|
|
|
|
valueType: 'dependency',
|
|
|
|
|
columns: ({ calculation_mode }: any) => {
|
|
|
|
|
return calculation_mode ===
|
|
|
|
|
HouseChargeStandardsCalculationModeEnum.FixedAmount.value
|
|
|
|
|
? [
|
|
|
|
|
{
|
|
|
|
|
key: 'price',
|
|
|
|
|
title: '固定单价',
|
|
|
|
|
colProps: { span: 10 },
|
|
|
|
|
fieldProps: {
|
|
|
|
|
addonAfter: '元',
|
|
|
|
|
},
|
|
|
|
|
formItemProps: { ...rulesHelper.number },
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
: calculation_mode ===
|
|
|
|
|
HouseChargeStandardsCalculationModeEnum.QuantityPrice.value
|
|
|
|
|
? [
|
|
|
|
|
MyFormItems.EnumRadio({
|
|
|
|
|
key: 'price_algorithm',
|
|
|
|
|
title: '计费算法',
|
|
|
|
|
colProps: { span: 14 },
|
|
|
|
|
valueEnum: HouseChargeStandardsPriceAlgorithmEnum,
|
|
|
|
|
required: true,
|
|
|
|
|
// fieldProps: {
|
|
|
|
|
// onChange: () => {
|
|
|
|
|
// // 切换计费算法时清空阶梯配置
|
|
|
|
|
// form.setFieldValue('scheme', undefined);
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
}),
|
|
|
|
|
{
|
|
|
|
|
name: ['price_algorithm'],
|
|
|
|
|
valueType: 'dependency',
|
|
|
|
|
columns: ({ price_algorithm }: any) => {
|
|
|
|
|
return price_algorithm ===
|
|
|
|
|
HouseChargeStandardsPriceAlgorithmEnum.Fixed.value
|
|
|
|
|
? [
|
|
|
|
|
{
|
|
|
|
|
key: 'price',
|
|
|
|
|
title: '固定单价',
|
|
|
|
|
colProps: { span: 10 },
|
|
|
|
|
fieldProps: {
|
|
|
|
|
addonAfter: '元',
|
2025-09-08 18:53:13 +08:00
|
|
|
max: 99,
|
2025-09-01 21:32:29 +08:00
|
|
|
},
|
|
|
|
|
formItemProps: { ...rulesHelper.number },
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
: price_algorithm ===
|
|
|
|
|
HouseChargeStandardsPriceAlgorithmEnum.Tiered.value
|
|
|
|
|
? [
|
|
|
|
|
{
|
|
|
|
|
valueType: 'formList',
|
2025-09-02 18:42:14 +08:00
|
|
|
dataIndex: 'tiered_rates',
|
2025-09-01 21:32:29 +08:00
|
|
|
title: '阶梯标准',
|
|
|
|
|
formItemProps: { ...rulesHelper.array },
|
|
|
|
|
initialValue: [
|
|
|
|
|
{
|
2025-09-08 18:53:13 +08:00
|
|
|
min_quantity: 0,
|
|
|
|
|
max_quantity: null,
|
2025-09-01 21:32:29 +08:00
|
|
|
price: null,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
fieldProps: {
|
|
|
|
|
actionRef: actionRef,
|
|
|
|
|
copyIconProps: false,
|
|
|
|
|
// deleteIconProps: false,
|
|
|
|
|
},
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
valueType: 'group',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
2025-09-02 18:42:14 +08:00
|
|
|
key: 'min_quantity',
|
2025-09-08 18:53:13 +08:00
|
|
|
colProps: { span: 9 },
|
|
|
|
|
// title: '起始值',
|
2025-09-01 21:32:29 +08:00
|
|
|
valueType: 'number',
|
|
|
|
|
fieldProps: {
|
|
|
|
|
min: 0,
|
2025-09-08 18:53:13 +08:00
|
|
|
addonBefore: '阶梯范围',
|
|
|
|
|
placeholder: '起始值',
|
2025-09-01 21:32:29 +08:00
|
|
|
},
|
|
|
|
|
width: '100%',
|
|
|
|
|
formItemProps: { ...rulesHelper.number },
|
|
|
|
|
},
|
|
|
|
|
{
|
2025-09-02 18:42:14 +08:00
|
|
|
key: 'max_quantity',
|
2025-09-08 18:53:13 +08:00
|
|
|
colProps: { span: 5 },
|
|
|
|
|
// title: '结束值',
|
2025-09-01 21:32:29 +08:00
|
|
|
valueType: 'number',
|
|
|
|
|
width: '100%',
|
|
|
|
|
formItemProps: { ...rulesHelper.number },
|
2025-09-08 18:53:13 +08:00
|
|
|
fieldProps: {
|
|
|
|
|
min: 0,
|
|
|
|
|
max: 999,
|
|
|
|
|
placeholder: '结束值',
|
|
|
|
|
},
|
2025-09-01 21:32:29 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'price',
|
2025-09-08 18:53:13 +08:00
|
|
|
colProps: { span: 10 },
|
|
|
|
|
// title: '阶梯单价',
|
2025-09-01 21:32:29 +08:00
|
|
|
valueType: 'number',
|
|
|
|
|
fieldProps: {
|
2025-09-08 18:53:13 +08:00
|
|
|
addonBefore: '阶梯单价',
|
2025-09-01 21:32:29 +08:00
|
|
|
addonAfter: '元',
|
|
|
|
|
min: 0,
|
2025-09-08 18:53:13 +08:00
|
|
|
max: 999,
|
2025-09-01 21:32:29 +08:00
|
|
|
},
|
|
|
|
|
formItemProps: { ...rulesHelper.number },
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
: price_algorithm ===
|
|
|
|
|
HouseChargeStandardsPriceAlgorithmEnum.Peak.value
|
|
|
|
|
? [
|
|
|
|
|
{
|
|
|
|
|
valueType: 'formList',
|
2025-09-02 18:42:14 +08:00
|
|
|
dataIndex: 'tiered_rates',
|
2025-09-01 21:32:29 +08:00
|
|
|
title: '阶梯标准',
|
|
|
|
|
formItemProps: { ...rulesHelper.array },
|
|
|
|
|
initialValue: [
|
|
|
|
|
{
|
2025-09-08 18:53:13 +08:00
|
|
|
min_quantity: 0,
|
|
|
|
|
max_quantity: null,
|
2025-09-01 21:32:29 +08:00
|
|
|
price: null,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
fieldProps: {
|
|
|
|
|
actionRef: actionRef,
|
|
|
|
|
copyIconProps: false,
|
|
|
|
|
// deleteIconProps: false,
|
|
|
|
|
},
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
valueType: 'group',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
2025-09-02 18:42:14 +08:00
|
|
|
key: 'min_quantity',
|
2025-09-08 18:53:13 +08:00
|
|
|
colProps: { span: 9 },
|
|
|
|
|
// title: '起始值',
|
2025-09-01 21:32:29 +08:00
|
|
|
valueType: 'number',
|
|
|
|
|
fieldProps: {
|
|
|
|
|
min: 0,
|
2025-09-08 18:53:13 +08:00
|
|
|
addonBefore: '阶梯范围',
|
|
|
|
|
placeholder: '起始值',
|
2025-09-01 21:32:29 +08:00
|
|
|
},
|
|
|
|
|
width: '100%',
|
|
|
|
|
formItemProps: { ...rulesHelper.number },
|
|
|
|
|
},
|
|
|
|
|
{
|
2025-09-02 18:42:14 +08:00
|
|
|
key: 'max_quantity',
|
2025-09-08 18:53:13 +08:00
|
|
|
colProps: { span: 5 },
|
|
|
|
|
// title: '结束值',
|
2025-09-01 21:32:29 +08:00
|
|
|
valueType: 'number',
|
|
|
|
|
width: '100%',
|
|
|
|
|
formItemProps: { ...rulesHelper.number },
|
2025-09-08 18:53:13 +08:00
|
|
|
fieldProps: {
|
|
|
|
|
min: 0,
|
|
|
|
|
max: 999,
|
|
|
|
|
placeholder: '结束值',
|
|
|
|
|
},
|
2025-09-01 21:32:29 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'price',
|
2025-09-08 18:53:13 +08:00
|
|
|
colProps: { span: 10 },
|
|
|
|
|
// title: '阶梯单价',
|
2025-09-01 21:32:29 +08:00
|
|
|
valueType: 'number',
|
|
|
|
|
fieldProps: {
|
2025-09-08 18:53:13 +08:00
|
|
|
addonBefore: '阶梯单价',
|
2025-09-01 21:32:29 +08:00
|
|
|
addonAfter: '元',
|
|
|
|
|
min: 0,
|
2025-09-08 18:53:13 +08:00
|
|
|
max: 999,
|
2025-09-01 21:32:29 +08:00
|
|
|
},
|
|
|
|
|
formItemProps: { ...rulesHelper.number },
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
: [];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
: [];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
2025-09-02 16:22:57 +08:00
|
|
|
name: ['price', 'price_algorithm'],
|
2025-09-01 21:32:29 +08:00
|
|
|
valueType: 'dependency',
|
2025-09-02 16:22:57 +08:00
|
|
|
columns: ({ price, price_algorithm }: any) => {
|
|
|
|
|
return price ||
|
|
|
|
|
price_algorithm ===
|
|
|
|
|
HouseChargeStandardsPriceAlgorithmEnum.Tiered.value ||
|
|
|
|
|
price_algorithm ===
|
|
|
|
|
HouseChargeStandardsPriceAlgorithmEnum.Peak.value
|
2025-09-01 21:32:29 +08:00
|
|
|
? [
|
2025-09-02 16:22:57 +08:00
|
|
|
{
|
|
|
|
|
valueType: 'group',
|
|
|
|
|
columns: [
|
|
|
|
|
MyFormItems.EnumRadio({
|
|
|
|
|
key: 'calculation_period',
|
|
|
|
|
title: '账单计费周期',
|
|
|
|
|
colProps: { span: 14 },
|
|
|
|
|
valueEnum: HouseChargeStandardsCalculationPeriodEnum,
|
|
|
|
|
required: true,
|
|
|
|
|
}),
|
|
|
|
|
{
|
|
|
|
|
key: 'auto_date',
|
|
|
|
|
title: '账单自动生成日期',
|
|
|
|
|
colProps: { span: 10 },
|
|
|
|
|
valueType: 'date',
|
|
|
|
|
width: '100%',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'remark',
|
|
|
|
|
title: '备注',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
valueType: 'textarea',
|
|
|
|
|
fieldProps: {
|
|
|
|
|
rows: 4,
|
|
|
|
|
maxLength: 500,
|
|
|
|
|
showCount: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2025-09-01 21:32:29 +08:00
|
|
|
]
|
|
|
|
|
: [];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
}
|