This commit is contained in:
ylj20011123 2025-11-14 18:57:20 +08:00
parent bd01d65207
commit a0088e983b
4 changed files with 250 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "ant-design-pro", "name": "ant-design-pro",
"version": "4.5.65", "version": "4.5.67",
"private": true, "private": true,
"description": "An out-of-box UI solution for enterprise applications", "description": "An out-of-box UI solution for enterprise applications",
"scripts": { "scripts": {

View File

@ -1122,6 +1122,20 @@ const EditContract = ({ contractId: id, actionRef, setShowDetail, showDelete, cu
]} ]}
/> />
</Col> </Col>
<Col span={6}>
<ProFormText
label="首年租金"
name=""
extra={<span style={{ color: 'red' }}></span>}
/>
</Col>
<Col span={6}>
<ProFormText
label="提成比例"
name=""
extra={<span style={{ color: 'red' }}></span>}
/>
</Col>
{/* <Col span={6}> {/* <Col span={6}>
<ProFormDatePicker <ProFormDatePicker
label="到账日期" label="到账日期"
@ -1170,6 +1184,7 @@ const EditContract = ({ contractId: id, actionRef, setShowDetail, showDelete, cu
return options; return options;
}} }}
tooltip={'1111'}
/> />
</Col> </Col>
<Col span={6}> <Col span={6}>

View File

@ -155,6 +155,8 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
show: false, show: false,
} }
}); });
const columns: ProColumns<ContractListModel>[] = [ const columns: ProColumns<ContractListModel>[] = [
// { // {
// title: '所属服务区', // title: '所属服务区',
@ -187,6 +189,7 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
hideInSearch: true, hideInSearch: true,
hideInDescriptions: true, hideInDescriptions: true,
// width:'25%', // width:'25%',
width: 250,
sorter: true, sorter: true,
ellipsis: true, ellipsis: true,
render: (_, record) => { render: (_, record) => {
@ -206,6 +209,31 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
// hideInSearch: true, // hideInSearch: true,
}, },
{
title: '首年租金',
dataIndex: '',
hideInSearch: true,
align: 'right',
width: 130,
valueType: 'digit'
},
{
title: '提成比例',
dataIndex: '',
hideInSearch: true,
align: 'right',
width: 130,
},
{
title: '物业费(年)',
dataIndex: '',
hideInSearch: true,
align: 'right',
width: 130,
valueType: 'digit'
},
{ {
title: '合同金额(万元)', title: '合同金额(万元)',
dataIndex: 'COMPACT_AMOUNT', dataIndex: 'COMPACT_AMOUNT',
@ -338,6 +366,21 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
ellipsis: true, ellipsis: true,
hideInTable: true hideInTable: true
}, },
{
title: '合同附属类型',
dataIndex: '',
valueType: 'select',
align: 'center',
width: 130,
// valueEnum: {},
request: async () => {
const options = session.get("COMPACT_CHILDTYPEList")
return options
},
ellipsis: true,
hideInTable: true
},
{ {
title: '开始日期', title: '开始日期',
hideInSearch: true, hideInSearch: true,
@ -375,6 +418,12 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
hideInTable: true, hideInTable: true,
hideInSearch: true, hideInSearch: true,
}, },
{
dataIndex: '',
width: 200,
title: <div style={{ textAlign: 'center' }}></div>,
hideInSearch: true,
},
{ {
// 如果是商户账号,则只能查看合同信息,不能做编辑、删除操作 // 如果是商户账号,则只能查看合同信息,不能做编辑、删除操作
title: '操作', title: '操作',
@ -548,6 +597,185 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
tempTable.remove() // 防止重复打印一个内容 tempTable.remove() // 防止重复打印一个内容
} }
const exportColumns: any = [
{
title: '合同名称',
dataIndex: 'COMPACT_NAME',
// ellipsis: true,
hideInSearch: true,
hideInDescriptions: true,
// width:'25%',
width: 250,
sorter: true,
ellipsis: true,
render: (_, record) => {
return <a onClick={() => {
setCurrentRow(record)
setShowDetail(1)
}}>{record.COMPACT_NAME}</a>
},
},
{
title: '经营模式',
dataIndex: 'BUSINESS_TYPE',
valueType: 'select',
valueEnum: contractType,
width: 110,
align: "center",
// hideInSearch: true,
},
{
title: '首年租金',
dataIndex: '首年租金',
hideInSearch: true,
align: 'right',
width: 130,
valueType: 'digit'
},
{
title: '提成比例',
dataIndex: '提成比例',
hideInSearch: true,
align: 'right',
width: 130,
},
{
title: '物业费(年)',
dataIndex: '物业费',
hideInSearch: true,
align: 'right',
width: 130,
valueType: 'digit'
},
{
title: '合同金额(万元)',
dataIndex: 'COMPACT_AMOUNT',
hideInSearch: true,
align: 'right',
width: 130,
sorter: true,
render: (_) => {
return <span style={{ paddingRight: 16 }}>{numeral(_).format('0,0.00')}</span>
},
},
{
title: '乙方',
dataIndex: 'SECONDPART_NAME',
hideInDescriptions: true,
hideInSearch: true,
sorter: true,
width: 130,
ellipsis: true,
},
{
title: '丙方联系人',
dataIndex: 'THREEPART_LINKMAN',
hideInDescriptions: true,
hideInSearch: true,
align: 'center',
width: 130,
sorter: true,
},
{
title: '合同主体',
dataIndex: 'SERVERPART_NAME',
ellipsis: true,
hideInDescriptions: true,
hideInSearch: true,
width: 120,
align: 'center',
},
{
title: '合同附属类型',
dataIndex: '合同附属类型',
valueType: 'select',
align: 'center',
width: 130,
// valueEnum: {},
request: async () => {
const options = session.get("COMPACT_CHILDTYPEList")
return options
},
ellipsis: true,
},
{
title: '关联合同',
dataIndex: 'RELATE_COMPACT',
hideInDescriptions: true,
hideInSearch: true,
width: 100,
align: 'center',
render: (_, record) => {
return <span>{record?.RELATE_COMPACT > 0 ? '是' : ''}</span>
}
},
{
title: '附件',
dataIndex: 'ATTACHMENT_STATE',
hideInSearch: true,
align: 'center',
width: 60,
render: (_, record) => {
return <div style={{ width: '100%', display: 'flex', justifyContent: 'center' }}>
{
record?.ATTACHMENT_STATE === 1000 ?
<img style={{ width: '15px', height: '15px' }} src={fileIcon} /> : ''
}
</div>
}
},
{
title: '合同类型',
dataIndex: 'COMPACT_TYPE',
valueType: 'select',
align: 'center',
width: 130,
valueEnum: compactType,
ellipsis: true,
initialValue: "340001"
},
{
title: '类型子项',
dataIndex: 'COMPACT_DETAILS',
valueType: 'select',
align: 'center',
width: 130,
valueEnum: COMPACT_DETAILS,
ellipsis: true,
initialValue: "1000"
},
{
title: '开始日期',
hideInSearch: true,
dataIndex: 'COMPACT_STARTDATE',
valueType: 'date',
sorter: true,
width: 110
},
{
title: '结束日期',
hideInSearch: true,
dataIndex: 'COMPACT_ENDDATE',
valueType: 'date',
sorter: true,
width: 110
},
{
title: '撤场时间',
hideInSearch: true,
dataIndex: 'CLOSED_DATE',
valueType: 'date',
sorter: true,
width: 110
},
{
dataIndex: '合同注意事项',
width: 200,
title: <div style={{ textAlign: 'center' }}></div>,
hideInSearch: true,
},
]
return ( return (
<PageContainer header={{ <PageContainer header={{
@ -587,7 +815,7 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
{ {
showExportTable && reqDetailList && reqDetailList.length > 0 ? showExportTable && reqDetailList && reqDetailList.length > 0 ?
<ProTable <ProTable
columns={columns.slice(0, columns.length - 1)} columns={exportColumns}
dataSource={reqDetailList} dataSource={reqDetailList}
pagination={false} pagination={false}
expandable={{ expandable={{
@ -630,8 +858,9 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
setSearchParams(searchWholeParams); setSearchParams(searchWholeParams);
return list return list
}} }}
scroll={{ x: '100%' }}
actionRef={actionRef} actionRef={actionRef}
search={{ span: 6 }} search={{ span: 6, labelWidth: 120 }}
columns={columns} columns={columns}
toolbar={{ toolbar={{
// 如果是商户账号,则只能查看合同信息,不能做新增操作 // 如果是商户账号,则只能查看合同信息,不能做新增操作

View File

@ -1,4 +1,4 @@
// 由 scripts/writeVersion.js 自动生成 // 由 scripts/writeVersion.js 自动生成
export const VERSION = "4.5.65"; export const VERSION = "4.5.67";
export const GIT_HASH = "e90dabf"; export const GIT_HASH = "bd01d65";
export const BUILD_TIME = "2025-10-21T01:48:13.490Z"; export const BUILD_TIME = "2025-11-14T08:27:05.179Z";