update
This commit is contained in:
parent
d83d384ded
commit
51b2e91bfd
@ -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": {
|
||||||
|
|||||||
@ -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 {
|
||||||
|
// 如果该行数据(上面的) 已经包括了下面的数据的时间 那么这段就不出现重新生成
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -201,7 +201,7 @@ const EditContract = ({ contractId: id, actionRef, setShowDetail, showDelete, cu
|
|||||||
}>(); // 当前组件显示的 合同详情 包括主表和子表数据
|
}>(); // 当前组件显示的 合同详情 包括主表和子表数据
|
||||||
const [currenMenu, setCurrenMenu] = useState<any>(); // 当前弹出的左侧菜单选中的详细数据
|
const [currenMenu, setCurrenMenu] = useState<any>(); // 当前弹出的左侧菜单选中的详细数据
|
||||||
const [selectedKeys, setSelectedKeys] = useState<any>(); // 当前弹出的左侧菜单选中的ids值
|
const [selectedKeys, setSelectedKeys] = useState<any>(); // 当前弹出的左侧菜单选中的ids值
|
||||||
const [fileList, setFileList] = useState<UploadFile[]>([]) // 需要上传的附件图片列表
|
const [fileList, setFileList] = useState<UploadFile[]>([]) // 需要上传的附件图片列表
|
||||||
const [priviewImage, setPriviewImage] = useState<string>(); // 预览的文件地址
|
const [priviewImage, setPriviewImage] = useState<string>(); // 预览的文件地址
|
||||||
const [showBtn, setShowBtn] = useState<boolean>(false)
|
const [showBtn, setShowBtn] = useState<boolean>(false)
|
||||||
const [confirmLoading, handleConfirmLoading] = useState<boolean>(false) // 弹出框的内容表单是否在提交
|
const [confirmLoading, handleConfirmLoading] = useState<boolean>(false) // 弹出框的内容表单是否在提交
|
||||||
@ -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>
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user