Merge branch 'develop' of ssh://code.juyouwu.cn:2222/pay/pay-admin into develop
All checks were successful
Build and Push Docker Image / build (push) Successful in 3m30s

* 'develop' of ssh://code.juyouwu.cn:2222/pay/pay-admin:
  fix: 优化页面
This commit is contained in:
zsqtony 2025-09-19 09:40:35 +08:00
commit e736f95419
20 changed files with 71 additions and 71 deletions

View File

@ -15,11 +15,11 @@ export default defineConfig({
proxy: { proxy: {
'/api/': { '/api/': {
// target: 'http://yt:8003', // target: 'http://yt:8003',
// target: 'http://10.39.13.80:8001',
// target: 'http://10.39.13.78:8001/', // target: 'http://10.39.13.78:8001/',
target: 'https://test-admin.linyikj.com.cn/', // target: 'https://test-admin.linyikj.com.cn/',
// target: 'http://we6f9c65.natappfree.cc',
// target: 'https://loanos-test.nchl.net/', target: 'https://admin.linyikj.com.cn/',
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^': '' }, pathRewrite: { '^': '' },
}, },

View File

@ -12,7 +12,7 @@ import {
} from '@/gen/Enums'; } from '@/gen/Enums';
import { ProCard, ProTable } from '@ant-design/pro-components'; import { ProCard, ProTable } from '@ant-design/pro-components';
import { useNavigate } from '@umijs/max'; import { useNavigate } from '@umijs/max';
import { message, Space, Typography } from 'antd'; import { Alert, message, Space, Typography } from 'antd';
import { useCallback, useMemo, useRef, useState } from 'react'; import { useCallback, useMemo, useRef, useState } from 'react';
import BuildingsCreate from './modals/BuildingsCreate'; import BuildingsCreate from './modals/BuildingsCreate';
import AssetBuildingsUpdate from './modals/BuildingsUpdate'; import AssetBuildingsUpdate from './modals/BuildingsUpdate';
@ -165,7 +165,7 @@ export default function Index({ title = '项目列表' }) {
<MyButtons.View <MyButtons.View
title="配置" title="配置"
onClick={() => { onClick={() => {
navigate(`/asset/id/${item.id}`); navigate(`/asset/list/show/${item.id}`);
}} }}
/> />
</Space> </Space>
@ -301,14 +301,14 @@ export default function Index({ title = '项目列表' }) {
return ( return (
<MyPageContainer title={title}> <MyPageContainer title={title}>
<ProCard <ProCard
// title={ title={
// <Alert <Alert
// message="操作提示:在楼栋下添加单元,在单元下添加房屋!" message="操作提示:可在项目中添加楼栋,在楼栋中添加单元,在单元中添加房屋!"
// type="info" type="info"
// showIcon showIcon
// style={{ margin: 0 }} style={{ margin: 0 }}
// /> />
// } }
> >
<Space align="start" size="large" style={{ width: '100%' }}> <Space align="start" size="large" style={{ width: '100%' }}>
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
@ -326,9 +326,9 @@ export default function Index({ title = '项目列表' }) {
// collapsed: false, // collapsed: false,
// collapseRender: false, // collapseRender: false,
// }} // }}
actionRef={actionBuildingsRef} actionRef={actionAssetRef}
rowClassName={(record: any) => { rowClassName={(record: any) => {
return selectedBuilding?.id === record?.id return selectedAsset?.id === record?.id
? 'ant-table-row-selected' ? 'ant-table-row-selected'
: ''; : '';
}} }}

View File

@ -4,8 +4,8 @@ import { ConvenienceServicesTypeEnum } from '@/gen/Enums';
import { ProTable } from '@ant-design/pro-components'; import { ProTable } from '@ant-design/pro-components';
import { Space } from 'antd'; import { Space } from 'antd';
import { useEffect, useRef } from 'react'; import { useEffect, useRef } from 'react';
import ServiceCreate from '../../convenience_services/modals/ServiceCreate'; import ServiceCreate from '../../services/modals/ServiceCreate';
import ServiceUpdate from '../../convenience_services/modals/ServiceUpdate'; import ServiceUpdate from '../../services/modals/ServiceUpdate';
export default function Index({ ...rest }) { export default function Index({ ...rest }) {
const actionLooks = useRef<any>(); const actionLooks = useRef<any>();

View File

@ -52,7 +52,7 @@ export default function Index({ title = '账号管理' }) {
search: false, search: false,
}, },
{ {
title: '收款账号名称', title: '收款户名',
dataIndex: 'company_name', dataIndex: 'company_name',
}, },
{ {

View File

@ -54,7 +54,7 @@ export default function Create(props: MyBetaModalFormProps) {
]), ]),
{ {
key: 'company_name', key: 'company_name',
title: '收款户名', title: '收款户名',
colProps: { span: 24 }, colProps: { span: 24 },
formItemProps: { ...rulesHelper.text }, formItemProps: { ...rulesHelper.text },
}, },

View File

@ -43,7 +43,7 @@ export default function Update(props: MyBetaModalFormProps) {
columns={[ columns={[
{ {
key: 'company_name', key: 'company_name',
title: '收款户名', title: '收款户名',
colProps: { span: 24 }, colProps: { span: 24 },
formItemProps: { ...rulesHelper.text }, formItemProps: { ...rulesHelper.text },
}, },

View File

@ -10,8 +10,8 @@ import { ProTable } from '@ant-design/pro-components';
import { useNavigate } from '@umijs/max'; import { useNavigate } from '@umijs/max';
import { Space } from 'antd'; import { Space } from 'antd';
import CompanyCreate from './modals/CompanyCreate'; import CompanyCreate from './modals/CompanyCreate';
import CompanyShow from './modals/CompanyShow';
import CompanyUpdate from './modals/CompanyUpdate'; import CompanyUpdate from './modals/CompanyUpdate';
import ComponentsInfo from './table/ComponentsInfo';
export default function Index({ title = '机构列表' }) { export default function Index({ title = '机构列表' }) {
const navigate = useNavigate(); const navigate = useNavigate();
@ -39,15 +39,15 @@ export default function Index({ title = '机构列表' }) {
]} ]}
columns={[ columns={[
MyColumns.ID(), MyColumns.ID(),
{
title: '机构名称',
dataIndex: 'name',
},
{ {
title: '机构简称', title: '机构简称',
dataIndex: 'short_name', dataIndex: 'short_name',
search: false, search: false,
}, },
{
title: '企业名称',
dataIndex: 'name',
},
// MyColumns.EnumTag({ // MyColumns.EnumTag({
// title: '类型', // title: '类型',
// dataIndex: 'merchant_type', // dataIndex: 'merchant_type',
@ -63,11 +63,7 @@ export default function Index({ title = '机构列表' }) {
MyColumns.Option({ MyColumns.Option({
render: (_, item: any, index, action) => ( render: (_, item: any, index, action) => (
<Space key={index}> <Space key={index}>
<ComponentsInfo <CompanyShow item={item} title="查看" reload={action?.reload} />
item={item}
title="查看"
reload={action?.reload}
/>
<CompanyUpdate <CompanyUpdate
item={{ ...item, type: 'link' }} item={{ ...item, type: 'link' }}
title="机构" title="机构"

View File

@ -40,15 +40,15 @@ export default function Create(props: MyBetaModalFormProps) {
} }
columns={[ columns={[
{ {
key: 'short_name', key: 'name',
title: '机构称', title: '机构称',
colProps: { span: 6 }, colProps: { span: 14 },
formItemProps: { ...rulesHelper.text }, formItemProps: { ...rulesHelper.text },
}, },
{ {
key: 'name', key: 'short_name',
title: '企业名称', title: '机构简称',
colProps: { span: 18 }, colProps: { span: 10 },
formItemProps: { ...rulesHelper.text }, formItemProps: { ...rulesHelper.text },
}, },
{ {

View File

@ -1,6 +1,5 @@
import { MyBetaModalFormProps, renderTextHelper } from '@/common'; import { MyBetaModalFormProps } from '@/common';
import { MyModal } from '@/components/MyModal'; import { MyModal } from '@/components/MyModal';
import { CompaniesMerchantTypeEnum } from '@/gen/Enums';
import { ProCard, ProDescriptions } from '@ant-design/pro-components'; import { ProCard, ProDescriptions } from '@ant-design/pro-components';
import { Space } from 'antd'; import { Space } from 'antd';
@ -9,14 +8,11 @@ export default function info(props: MyBetaModalFormProps) {
<MyModal <MyModal
title={props.title || '查看'} title={props.title || '查看'}
type={props.item?.type || 'primary'} type={props.item?.type || 'primary'}
width="1000px" width="800px"
node={ node={
<Space direction="vertical" style={{ width: '100%' }}> <Space direction="vertical" style={{ width: '100%' }}>
<ProCard extra={props.extra}> <ProCard extra={props.extra}>
<ProDescriptions bordered> <ProDescriptions bordered column={2}>
<ProDescriptions.Item label="机构简称">
{props?.item?.short_name}
</ProDescriptions.Item>
<ProDescriptions.Item label="机构名称" span={2}> <ProDescriptions.Item label="机构名称" span={2}>
<Space> <Space>
{props?.item?.name} {props?.item?.name}
@ -27,28 +23,28 @@ export default function info(props: MyBetaModalFormProps) {
/> */} /> */}
</Space> </Space>
</ProDescriptions.Item> </ProDescriptions.Item>
<ProDescriptions.Item label="商户类型"> <ProDescriptions.Item label="机构简称">
{props?.item?.short_name}
</ProDescriptions.Item>
{/* <ProDescriptions.Item label="">
<renderTextHelper.Tag <renderTextHelper.Tag
Enums={CompaniesMerchantTypeEnum} Enums={CompaniesMerchantTypeEnum}
value={props?.item?.merchant_type} value={props?.item?.merchant_type}
key="merchant_type" key="merchant_type"
/> />
</ProDescriptions.Item> </ProDescriptions.Item> */}
<ProDescriptions.Item label="营业执照号" span={2}> <ProDescriptions.Item label="营业执照号" span={2}>
{props?.item?.business_license_number} {props?.item?.business_license_number}
</ProDescriptions.Item> </ProDescriptions.Item>
<ProDescriptions.Item label="联系人姓名"> <ProDescriptions.Item label="联系人">
{props?.item?.contact_name} {props?.item?.contact_name}: {props?.item?.contact_phone}
</ProDescriptions.Item> </ProDescriptions.Item>
<ProDescriptions.Item label="联系人手机"> <ProDescriptions.Item label="联系邮箱">
{props?.item?.contact_phone}
</ProDescriptions.Item>
<ProDescriptions.Item label="联系人邮箱">
{props?.item?.contact_email} {props?.item?.contact_email}
</ProDescriptions.Item> </ProDescriptions.Item>
<ProDescriptions.Item label="机构地址"> <ProDescriptions.Item label="机构地址" span={2}>
{props?.item?.province || ''} {props?.item?.province || ''}
{props?.item?.city || ''} {props?.item?.city || ''}
{props?.item?.district || ''} {props?.item?.district || ''}

View File

@ -45,15 +45,15 @@ export default function Update(props: MyBetaModalFormProps) {
} }
columns={[ columns={[
{ {
key: 'short_name', key: 'name',
title: '机构称', title: '机构称',
colProps: { span: 6 }, colProps: { span: 14 },
formItemProps: { ...rulesHelper.text }, formItemProps: { ...rulesHelper.text },
}, },
{ {
key: 'name', key: 'short_name',
title: '企业名称', title: '机构简称',
colProps: { span: 18 }, colProps: { span: 10 },
formItemProps: { ...rulesHelper.text }, formItemProps: { ...rulesHelper.text },
}, },
{ {

View File

@ -5,11 +5,11 @@ import { useParams } from '@umijs/max';
import { Space, Tabs } from 'antd'; import { Space, Tabs } from 'antd';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import ComponentsInfo from '../modals/CompanyShow';
import CompanyUpdate from '../modals/CompanyUpdate'; import CompanyUpdate from '../modals/CompanyUpdate';
import CompanyApps from '../table/Apps'; import CompanyApps from '../table/Apps';
import Assets from '../table/Assets'; import Assets from '../table/Assets';
import Brands from '../table/Brands'; import Brands from '../table/Brands';
import ComponentsInfo from '../table/ComponentsInfo';
import Employees from '../table/Employees'; import Employees from '../table/Employees';
import Organizations from '../table/Organizations'; import Organizations from '../table/Organizations';
import Positions from '../table/Positions'; import Positions from '../table/Positions';

View File

@ -30,11 +30,10 @@ export default function PropertyBrands(props: MyBetaModalFormProps) {
title="品牌" title="品牌"
/>, />,
]} ]}
// search={false} search={false}
// options={false} // options={false}
columns={[ columns={[
MyColumns.ID(), MyColumns.ID(),
{ {
title: '物业名称', title: '物业名称',
dataIndex: 'name', dataIndex: 'name',

View File

@ -7,8 +7,8 @@ import {
import { Apis } from '@/gen/Apis'; import { Apis } from '@/gen/Apis';
import { ProTable } from '@ant-design/pro-components'; import { ProTable } from '@ant-design/pro-components';
import { Space } from 'antd'; import { Space } from 'antd';
import ReceiptAccountCreate from '../../receipt_accounts/modals/ReceiptAccountCreate'; import ReceiptAccountCreate from '../../accounts/modals/ReceiptAccountCreate';
import ReceiptAccountUpdate from '../../receipt_accounts/modals/ReceiptAccountUpdate'; import ReceiptAccountUpdate from '../../accounts/modals/ReceiptAccountUpdate';
export default function ReceiptAccounts(props: MyBetaModalFormProps) { export default function ReceiptAccounts(props: MyBetaModalFormProps) {
return ( return (

View File

@ -43,7 +43,7 @@ export default function Index({ title = '组织列表' }) {
<OrganizationCreate <OrganizationCreate
key="Create" key="Create"
reload={action?.reload} reload={action?.reload}
title={title} title={'组织'}
/>, />,
]} ]}
columns={[ columns={[

View File

@ -46,12 +46,21 @@ export default function Index({ title = '任务结果' }) {
dataIndex: 'house_charge_tasks_id', dataIndex: 'house_charge_tasks_id',
search: false, search: false,
}, },
MyColumns.ID(),
MyColumns.EnumTag({ MyColumns.EnumTag({
title: '任务状态', title: '任务状态',
dataIndex: 'status', dataIndex: 'status',
valueEnum: HouseChargeTaskDetailsStatusEnum, valueEnum: HouseChargeTaskDetailsStatusEnum,
}), }),
{
title: '账单ID',
dataIndex: 'id',
search: false,
},
{
title: '关联对象',
dataIndex: 'full_name',
search: false,
},
{ {
title: '账单月份', title: '账单月份',
render: (_, record) => { render: (_, record) => {
@ -60,15 +69,15 @@ export default function Index({ title = '任务结果' }) {
}, },
{ {
title: '计费开始日期', title: '计费开始日期',
dataIndex: 'start_date', dataIndex: ['house_charge_task', 'start_date'],
search: false, search: false,
}, },
{ {
title: '计费结束日期', title: '计费结束日期',
dataIndex: 'end_date', dataIndex: ['house_charge_task', 'end_date'],
search: false, search: false,
}, },
MyColumns.UpdatedAt(), // MyColumns.UpdatedAt(),
MyColumns.CreatedAt(), MyColumns.CreatedAt(),
MyColumns.Option({ MyColumns.Option({
render: (_, item: any, index, action) => ( render: (_, item: any, index, action) => (

View File

@ -60,7 +60,7 @@ export default function Index({ title = '支付明细' }) {
}), }),
{ {
title: '订单编号', title: '收款单号',
dataIndex: 'order_code', dataIndex: 'order_code',
search: false, search: false,
}, },

View File

@ -37,7 +37,7 @@ export default function Index({ title = '角色' }) {
]} ]}
columns={[ columns={[
MyColumns.ID(), MyColumns.ID(),
{ dataIndex: 'guard_name', title: 'guard_name', search: false }, // { dataIndex: 'guard_name', title: 'guard_name', search: false },
{ dataIndex: 'name', title: '名称' }, { dataIndex: 'name', title: '名称' },
{ {
title: '颜色', title: '颜色',