Compare commits
No commits in common. "43f9ef0bc0c75b7a6d189b755d25bf6c4f64ddfa" and "94ab2f4e539aecd73915c0942bf81ba09e71bb3f" have entirely different histories.
43f9ef0bc0
...
94ab2f4e53
@ -41,10 +41,9 @@ export const LayoutConfig: RuntimeConfig['layout'] = () => {
|
|||||||
avatarProps: {
|
avatarProps: {
|
||||||
render: () => <AvatarProps user={snap.session.user} />,
|
render: () => <AvatarProps user={snap.session.user} />,
|
||||||
},
|
},
|
||||||
//水印设置
|
waterMarkProps: {
|
||||||
// waterMarkProps: {
|
content: snap.session.user?.username,
|
||||||
// content: snap.session.user?.username,
|
},
|
||||||
// },
|
|
||||||
collapsedButtonRender: false,
|
collapsedButtonRender: false,
|
||||||
token: {
|
token: {
|
||||||
bgLayout: '#eef0f3',
|
bgLayout: '#eef0f3',
|
||||||
|
|||||||
@ -585,12 +585,11 @@ export const Selects = {
|
|||||||
formItemProps: { ...(required ? rulesHelper.number : {}) },
|
formItemProps: { ...(required ? rulesHelper.number : {}) },
|
||||||
|
|
||||||
request: async (params) => {
|
request: async (params) => {
|
||||||
console.log(params, '1111');
|
|
||||||
let res = await Apis.Meter.HouseMeters.List({
|
let res = await Apis.Meter.HouseMeters.List({
|
||||||
...params,
|
keywords: params?.KeyWords,
|
||||||
asset_projects_id: params?.asset_projects_id,
|
asset_projects_id: params?.asset_projects_id,
|
||||||
charge_standards_id: params?.house_charge_standards_id,
|
charge_standards_id: params?.house_charge_standards_id,
|
||||||
name: params?.keyWords || undefined,
|
...params,
|
||||||
});
|
});
|
||||||
res?.data?.map((l: any) => {
|
res?.data?.map((l: any) => {
|
||||||
l.label = l.id + ':' + l.name;
|
l.label = l.id + ':' + l.name;
|
||||||
|
|||||||
@ -13,7 +13,6 @@ export default function Show({ title = '账单详情' }) {
|
|||||||
const { id } = useParams<{ id: string }>();
|
const { id } = useParams<{ id: string }>();
|
||||||
const [data, setShow] = useState<any>({});
|
const [data, setShow] = useState<any>({});
|
||||||
|
|
||||||
console.log(data, 'pppp');
|
|
||||||
// 注册标签页
|
// 注册标签页
|
||||||
const { addTab } = usePageTabs({
|
const { addTab } = usePageTabs({
|
||||||
tabKey: `bill-detail-${id}`,
|
tabKey: `bill-detail-${id}`,
|
||||||
@ -44,19 +43,29 @@ export default function Show({ title = '账单详情' }) {
|
|||||||
label: '欠费账单',
|
label: '欠费账单',
|
||||||
key: '1',
|
key: '1',
|
||||||
closable: false,
|
closable: false,
|
||||||
children: <UnpaidBill item={{ ...data, asset_houses_id: id }} />,
|
children: (
|
||||||
|
<UnpaidBill
|
||||||
|
item={{ ...data, asset_houses_id: data?.asset_houses_id }}
|
||||||
|
/>
|
||||||
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '已付账单',
|
label: '已付账单',
|
||||||
key: '2',
|
key: '2',
|
||||||
closable: false,
|
closable: false,
|
||||||
children: <PaidBill item={{ ...data, asset_houses_id: id }} />,
|
children: (
|
||||||
|
<PaidBill item={{ ...data, asset_houses_id: data?.asset_houses_id }} />
|
||||||
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '作废账单',
|
label: '作废账单',
|
||||||
key: '3',
|
key: '3',
|
||||||
closable: false,
|
closable: false,
|
||||||
children: <CancelledBill item={{ ...data, asset_houses_id: id }} />,
|
children: (
|
||||||
|
<CancelledBill
|
||||||
|
item={{ ...data, asset_houses_id: data?.asset_houses_id }}
|
||||||
|
/>
|
||||||
|
),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -96,7 +96,7 @@ export default function Index({ title = '仪表账单' }) {
|
|||||||
isConfirm
|
isConfirm
|
||||||
description="确认执行此任务吗?"
|
description="确认执行此任务吗?"
|
||||||
onConfirm={() =>
|
onConfirm={() =>
|
||||||
Apis.Meter.HouseMeterTaskDetails.CreateMeterBill({
|
Apis.HouseCharage.HouseChargeTaskDetails.CreateHouseBill({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
}).then(() => action?.reload())
|
}).then(() => action?.reload())
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,7 +35,7 @@ export default function Index({ title = '仪表任务' }) {
|
|||||||
MyProTableProps.request(params, sort, Apis.Meter.HouseMeterTasks.List)
|
MyProTableProps.request(params, sort, Apis.Meter.HouseMeterTasks.List)
|
||||||
}
|
}
|
||||||
toolBarRender={(action) => [
|
toolBarRender={(action) => [
|
||||||
<TaskCreate key="Create" reload={action?.reload} title="仪表任务" />,
|
<TaskCreate key="Create" reload={action?.reload} title="账单任务" />,
|
||||||
]}
|
]}
|
||||||
columns={[
|
columns={[
|
||||||
MyColumns.ID(),
|
MyColumns.ID(),
|
||||||
|
|||||||
@ -208,9 +208,6 @@ export default function Create(props: MyBetaModalFormProps) {
|
|||||||
key: 'data_id',
|
key: 'data_id',
|
||||||
colProps: { span: 24 },
|
colProps: { span: 24 },
|
||||||
formItemProps: { ...rulesHelper.text },
|
formItemProps: { ...rulesHelper.text },
|
||||||
fieldProps: {
|
|
||||||
showSearch: true,
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
: [];
|
: [];
|
||||||
|
|||||||
@ -7,9 +7,8 @@ import {
|
|||||||
import { MomentSelect } from '@/components/MomentCategories';
|
import { MomentSelect } from '@/components/MomentCategories';
|
||||||
import { Apis } from '@/gen/Apis';
|
import { Apis } from '@/gen/Apis';
|
||||||
import { BetaSchemaForm } from '@ant-design/pro-components';
|
import { BetaSchemaForm } from '@ant-design/pro-components';
|
||||||
import { Form, message } from 'antd';
|
import { message } from 'antd';
|
||||||
export default function Create(props: MyBetaModalFormProps) {
|
export default function Create(props: MyBetaModalFormProps) {
|
||||||
const [form] = Form.useForm();
|
|
||||||
return (
|
return (
|
||||||
<BetaSchemaForm<ApiTypes.Customer.CustomerMomentCategories.Store>
|
<BetaSchemaForm<ApiTypes.Customer.CustomerMomentCategories.Store>
|
||||||
{...MyModalFormProps.props}
|
{...MyModalFormProps.props}
|
||||||
@ -17,12 +16,6 @@ export default function Create(props: MyBetaModalFormProps) {
|
|||||||
wrapperCol={{ span: 24 }}
|
wrapperCol={{ span: 24 }}
|
||||||
width="500px"
|
width="500px"
|
||||||
trigger={<MyButtons.Create title={`添加${props.title}`} />}
|
trigger={<MyButtons.Create title={`添加${props.title}`} />}
|
||||||
key={new Date().getTime()}
|
|
||||||
onOpenChange={(open: any) => {
|
|
||||||
if (open) {
|
|
||||||
form.resetFields(); // 清空表单数据
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
onFinish={async (values) =>
|
onFinish={async (values) =>
|
||||||
Apis.Customer.CustomerMomentCategories.Store(values)
|
Apis.Customer.CustomerMomentCategories.Store(values)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user