This commit is contained in:
ylj20011123 2025-11-21 18:50:17 +08:00
parent d83d384ded
commit 51b2e91bfd
5 changed files with 29 additions and 19 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "ant-design-pro", "name": "ant-design-pro",
"version": "4.5.67", "version": "4.5.68",
"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

@ -304,9 +304,9 @@ const ShareBenefit: React.FC<{ props: BusinessProjectModel, showEdit?: boolean,
if (data.data && data.data.length > 0) { if (data.data && data.data.length > 0) {
data.data.forEach((subItem: any) => { data.data.forEach((subItem: any) => {
if (new Date(item.STARTDATE).getTime() < new Date(subItem.ENDDATE).getTime() && new Date(item.ENDDATE).getTime() >= new Date(subItem.ENDDATE).getTime()) { if (new Date(item.STARTDATE).getTime() < new Date(subItem.ENDDATE).getTime() && new Date(item.ENDDATE).getTime() >= new Date(subItem.ENDDATE).getTime()) {
// 如果该行数据(上面的) 已经包括了下面的数据的时间 那么这段就不出现重新生成
} else {
subItem.showAgainBtn = true subItem.showAgainBtn = true
} else {
// 如果该行数据(上面的) 已经包括了下面的数据的时间 那么这段就不出现重新生成
} }
}) })
} }

View File

@ -517,6 +517,7 @@ const EditContract = ({ contractId: id, actionRef, setShowDetail, showDelete, cu
}} }}
params={{ id }} params={{ id }}
onFinish={async (values) => { onFinish={async (values) => {
let newValue: any = { ...values }; let newValue: any = { ...values };
if (fields && fields.REGISTERCOMPACT_ID) { if (fields && fields.REGISTERCOMPACT_ID) {
// 编辑数据 // 编辑数据
@ -539,6 +540,7 @@ const EditContract = ({ contractId: id, actionRef, setShowDetail, showDelete, cu
newValue.ELECTRICITY_FEES = values.ELECTRICITY_FEES ? values.ELECTRICITY_FEES : null newValue.ELECTRICITY_FEES = values.ELECTRICITY_FEES ? values.ELECTRICITY_FEES : null
newValue.OTHER_SCHARGE = values.OTHER_SCHARGE ? values.OTHER_SCHARGE : null newValue.OTHER_SCHARGE = values.OTHER_SCHARGE ? values.OTHER_SCHARGE : null
newValue.EQUIPMENT_DEPOSIT = values.EQUIPMENT_DEPOSIT ? values.EQUIPMENT_DEPOSIT : null newValue.EQUIPMENT_DEPOSIT = values.EQUIPMENT_DEPOSIT ? values.EQUIPMENT_DEPOSIT : null
newValue.PROPERTY_FEE = values.PROPERTY_FEE ? values.PROPERTY_FEE : null
// newValue.BUSINESS_BRAND = brand?.BRAND_ID || fields?.BUSINESS_BRAND // newValue.BUSINESS_BRAND = brand?.BRAND_ID || fields?.BUSINESS_BRAND
// 装修周期 // 装修周期
if (values.contractDecorateRangeDate) { if (values.contractDecorateRangeDate) {
@ -569,6 +571,8 @@ const EditContract = ({ contractId: id, actionRef, setShowDetail, showDelete, cu
newValue.REGISTERCOMPACT_HOSTID = contractId newValue.REGISTERCOMPACT_HOSTID = contractId
} }
// 提交编辑后的数据 // 提交编辑后的数据
console.log('newValuenewValuenewValue', newValue);
const success = await handleAddUpdate({ ...newValue }); const success = await handleAddUpdate({ ...newValue });
if (success) { if (success) {
const waitUpload = fileList.filter(n => n.status !== 'done') const waitUpload = fileList.filter(n => n.status !== 'done')
@ -1125,14 +1129,14 @@ const EditContract = ({ contractId: id, actionRef, setShowDetail, showDelete, cu
<Col span={6}> <Col span={6}>
<ProFormText <ProFormText
label="首年租金" label="首年租金"
name="" name="FIRSTYEAR_RENT"
extra={<span style={{ color: 'red' }}></span>} extra={<span style={{ color: 'red' }}></span>}
/> />
</Col> </Col>
<Col span={6}> <Col span={6}>
<ProFormText <ProFormText
label="提成比例" label="提成比例"
name="" name="GUARANTEE_RATIO"
extra={<span style={{ color: 'red' }}></span>} extra={<span style={{ color: 'red' }}></span>}
/> />
</Col> </Col>

View File

@ -57,7 +57,7 @@ const customUploadRequest = async (fileList: UploadFile[], tableId: string) => {
return false return false
} }
const formData = new FormData(); const formData = new FormData();
fileList.forEach(file => { fileList.forEach((file: any) => {
formData.append('files[]', file); formData.append('files[]', file);
}); });
formData.append('TableType', '1115'); formData.append('TableType', '1115');
@ -212,7 +212,7 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
{ {
title: '首年租金', title: '首年租金',
dataIndex: '', dataIndex: 'FIRSTYEAR_RENT',
hideInSearch: true, hideInSearch: true,
align: 'right', align: 'right',
width: 130, width: 130,
@ -220,7 +220,7 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
}, },
{ {
title: '提成比例', title: '提成比例',
dataIndex: '', dataIndex: 'GUARANTEE_RATIO',
hideInSearch: true, hideInSearch: true,
align: 'right', align: 'right',
width: 130, width: 130,
@ -231,7 +231,10 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
hideInSearch: true, hideInSearch: true,
align: 'right', align: 'right',
width: 130, width: 130,
valueType: 'digit' valueType: 'digit',
render: (_, record) => {
return record?.PROPERTY_FEE ? numeral(Number((record?.PROPERTY_FEE * 12).toFixed(2))).format('0,0.00') : "-"
}
}, },
@ -370,7 +373,7 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
{ {
title: '合同附属类型', title: '合同附属类型',
dataIndex: '', dataIndex: 'COMPACT_CHILDTYPE',
valueType: 'select', valueType: 'select',
align: 'center', align: 'center',
width: 130, width: 130,
@ -627,7 +630,7 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
}, },
{ {
title: '首年租金', title: '首年租金',
dataIndex: '首年租金', dataIndex: 'FIRSTYEAR_RENT',
hideInSearch: true, hideInSearch: true,
align: 'right', align: 'right',
width: 130, width: 130,
@ -635,18 +638,21 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
}, },
{ {
title: '提成比例', title: '提成比例',
dataIndex: '提成比例', dataIndex: 'GUARANTEE_RATIO',
hideInSearch: true, hideInSearch: true,
align: 'right', align: 'right',
width: 130, width: 130,
}, },
{ {
title: '物业费(年)', title: '物业费(年)',
dataIndex: '物业费', dataIndex: 'PROPERTY_FEE',
hideInSearch: true, hideInSearch: true,
align: 'right', align: 'right',
width: 130, width: 130,
valueType: 'digit' valueType: 'digit',
render: (_, record) => {
return record?.PROPERTY_FEE ? numeral(Number((record?.PROPERTY_FEE * 12).toFixed(2))).format('0,0.00') : ""
}
}, },
{ {
title: '合同金额(万元)', title: '合同金额(万元)',
@ -688,7 +694,7 @@ const contractWarningQuery: React.FC<{ currentUser: CurrentUser }> = (props) =>
}, },
{ {
title: '合同附属类型', title: '合同附属类型',
dataIndex: '合同附属类型', dataIndex: 'COMPACT_CHILDTYPE',
valueType: 'select', valueType: 'select',
align: 'center', align: 'center',
width: 130, width: 130,

View File

@ -1,4 +1,4 @@
// 由 scripts/writeVersion.js 自动生成 // 由 scripts/writeVersion.js 自动生成
export const VERSION = "4.5.67"; export const VERSION = "4.5.68";
export const GIT_HASH = "bd01d65"; export const GIT_HASH = "d83d384";
export const BUILD_TIME = "2025-11-14T08:27:05.179Z"; export const BUILD_TIME = "2025-11-21T09:29:07.216Z";