Commit eb1dda02 authored by cellee's avatar cellee

Signed-off-by: cellee <893264950@qq.com>

parent 2e1f9cf7
...@@ -110,7 +110,8 @@ export default { ...@@ -110,7 +110,8 @@ export default {
(tmp.floorNumber || tmp.communityFloor) + (tmp.floorNumber || tmp.communityFloor) +
'-' + '-' +
(tmp.roomNumber || tmp.communtiyRoom) (tmp.roomNumber || tmp.communtiyRoom)
: (tmp.floorNumber || tmp.communityFloor) + : ' #' +
(tmp.floorNumber || tmp.communityFloor) +
'-' + '-' +
(tmp.roomNumber || tmp.communtiyRoom), (tmp.roomNumber || tmp.communtiyRoom),
......
...@@ -48,17 +48,17 @@ const Card = (props: any) => { ...@@ -48,17 +48,17 @@ const Card = (props: any) => {
null, null,
(text: any, record: any) => ( (text: any, record: any) => (
<> <>
{record.build_number ? <span>{record.build_number} #</span> : ''} {record.build_number ? <span>{record.build_number}</span> : ''}
<span>{record.floor_number}-</span> <span>#{record.floor_number}-</span>
<span>{record.room_number}</span> <span>{record.room_number}</span>
</> </>
), ),
], ],
[ // [
'Account Type', // 'Account Type',
'apply_relation_owner', // 'apply_relation_owner',
(text: string) => <div>{apply_relation[text][1]}</div>, // (text: string) => <div>{apply_relation[text][1]}</div>,
], // ],
[ [
'Application Time', 'Application Time',
null, null,
......
...@@ -141,7 +141,7 @@ const CardDetail = (props: any) => { ...@@ -141,7 +141,7 @@ const CardDetail = (props: any) => {
<Col span={3}>{listData.community_name}</Col> <Col span={3}>{listData.community_name}</Col>
<Col>Unit:</Col> <Col>Unit:</Col>
<Col> <Col>
{listData.build_number ? listData.build_number + ' #' : ''} {listData.build_number ? listData.build_number : ''}#
{listData.floor_number + '-' + listData.room_number} {listData.floor_number + '-' + listData.room_number}
</Col> </Col>
</Row> </Row>
...@@ -170,10 +170,10 @@ const CardDetail = (props: any) => { ...@@ -170,10 +170,10 @@ const CardDetail = (props: any) => {
<Col span={3}>{listData.apply_name_phone}</Col> <Col span={3}>{listData.apply_name_phone}</Col>
<Col>{listData.apply_name_email}</Col> <Col>{listData.apply_name_email}</Col>
</Row> </Row>
<Row gutter={8} style={{ marginTop: 16 }}> {/* <Row gutter={8} style={{ marginTop: 16 }}>
<Col span={3}>Relationship:</Col> <Col span={3}>Relationship:</Col>
<Col>{apply_relation_owner[parseInt(listData.apply_relation_owner)]}</Col> <Col>{apply_relation_owner[parseInt(listData.apply_relation_owner)]}</Col>
</Row> </Row> */}
<Row gutter={8} style={{ marginTop: 16 }}> <Row gutter={8} style={{ marginTop: 16 }}>
<Col span={4}>Decription of Work:</Col> <Col span={4}>Decription of Work:</Col>
<Col> <Col>
......
...@@ -119,7 +119,7 @@ const RenovationDetail = (props: any) => { ...@@ -119,7 +119,7 @@ const RenovationDetail = (props: any) => {
<Col span={3}>{onwerDetail.communityName}</Col> <Col span={3}>{onwerDetail.communityName}</Col>
<Col>Unit:</Col> <Col>Unit:</Col>
<Col> <Col>
{onwerDetail.buildingNumber ? onwerDetail.buildingNumber + ' #' : ''} {onwerDetail.buildingNumber ? onwerDetail.buildingNumber : ''}#
{onwerDetail.floorNumber}-{onwerDetail.roomNumber} {onwerDetail.floorNumber}-{onwerDetail.roomNumber}
</Col> </Col>
</Row> </Row>
......
...@@ -72,7 +72,9 @@ const PropertyServices = (props: any) => { ...@@ -72,7 +72,9 @@ const PropertyServices = (props: any) => {
{ {
title: 'Submission Time', title: 'Submission Time',
dataIndex: 'create_time', dataIndex: 'create_time',
render: (text: any) => <Space size="middle">{moment(text.time).format('MM.DD HH:mm')}</Space>, render: (text: any) => (
<Space size="middle">{text.time ? moment(text.time).format('MM.DD HH:mm') : ''}</Space>
),
}, },
{ {
title: 'Status', title: 'Status',
......
...@@ -51,14 +51,18 @@ const Renovation = (props: any) => { ...@@ -51,14 +51,18 @@ const Renovation = (props: any) => {
null, null,
(text: any, record: any) => ( (text: any, record: any) => (
<div> <div>
{record.communityBuildDecorate ? <span>{record.communityBuildDecorate} #</span> : ''} {record.communityBuildDecorate ? <span>{record.communityBuildDecorate}</span> : ''}
<span>{record.communityFloorDecorate}-</span> <span>#{record.communityFloorDecorate}-</span>
<span>{record.communityRoomDecoate}</span> <span>{record.communityRoomDecoate}</span>
</div> </div>
), ),
], ],
['Content', 'decorationContent', (text: any) => <div>{stringTab(text)}</div>], ['Content', 'decorationContent', (text: any) => <div>{stringTab(text)}</div>],
['Application Time', 'createTime', (text: any) => moment(text.time).format('MM.DD HH:mm')], [
'Application Time',
'createTime',
(text: any) => (text.time ? moment(text.time).format('MM.DD HH:mm') : ''),
],
['status', 'decorationStatus', (text: any) => <div>{decorationStatus[parseInt(text)][1]}</div>], ['status', 'decorationStatus', (text: any) => <div>{decorationStatus[parseInt(text)][1]}</div>],
[ [
'Actions', 'Actions',
...@@ -85,8 +89,8 @@ const Renovation = (props: any) => { ...@@ -85,8 +89,8 @@ const Renovation = (props: any) => {
key: 'id', key: 'id',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
<> <>
{record.communityBuild ? <span>{record.communityBuild} #</span> : ''} {record.communityBuild ? <span>{record.communityBuild}</span> : ''}
<span>{record.communityFloor}-</span> <span>#{record.communityFloor}-</span>
<span>{record.communityRoom}</span> <span>{record.communityRoom}</span>
</> </>
), ),
...@@ -112,8 +116,7 @@ const Renovation = (props: any) => { ...@@ -112,8 +116,7 @@ const Renovation = (props: any) => {
title: 'Submission Time', title: 'Submission Time',
dataIndex: 'createTime', dataIndex: 'createTime',
key: 'createTime', key: 'createTime',
// render: (text: any) => moment(text.time).format('MMMM Do YYYY, h:mm'), render: (text: any) => (text.time ? moment(text.time).format('MM.DD HH:mm') : ''),
render: (text: any) => moment(text.time).format('MM.DD HH:mm'),
}, },
{ {
title: 'Status', title: 'Status',
......
...@@ -105,7 +105,7 @@ const RenovationDetail = (props: any) => { ...@@ -105,7 +105,7 @@ const RenovationDetail = (props: any) => {
<Col span={3}>{onwerDetail.communityName}</Col> <Col span={3}>{onwerDetail.communityName}</Col>
<Col>Unit:</Col> <Col>Unit:</Col>
<Col> <Col>
{onwerDetail.buildingNumber ? onwerDetail.buildingNumber + ' #' : ''} {onwerDetail.buildingNumber ? onwerDetail.buildingNumber : ''}#
{onwerDetail.floorNumber}-{onwerDetail.roomNumber} {onwerDetail.floorNumber}-{onwerDetail.roomNumber}
</Col> </Col>
</Row> </Row>
......
...@@ -168,8 +168,8 @@ const BookingDetail = (props: any) => { ...@@ -168,8 +168,8 @@ const BookingDetail = (props: any) => {
</Descriptions.Item> </Descriptions.Item>
<Descriptions.Item label="User Name">{DataSave.accountName}</Descriptions.Item> <Descriptions.Item label="User Name">{DataSave.accountName}</Descriptions.Item>
<Descriptions.Item label="Unit No."> <Descriptions.Item label="Unit No.">
{DataSave.buildNumber ? DataSave.buildNumber + ' #' : ''} {DataSave.buildNumber ? DataSave.buildNumber + '' : ''}#{DataSave.floorNumber}-
{DataSave.floorNumber}-{DataSave.roomNumber} {DataSave.roomNumber}
</Descriptions.Item> </Descriptions.Item>
<Descriptions.Item label="Contact Number">{DataSave.accountPhone}</Descriptions.Item> <Descriptions.Item label="Contact Number">{DataSave.accountPhone}</Descriptions.Item>
</Descriptions> </Descriptions>
......
...@@ -62,8 +62,8 @@ const Users = (props: any) => { ...@@ -62,8 +62,8 @@ const Users = (props: any) => {
render: (text: any, record: any) => ( render: (text: any, record: any) => (
// <div>{record.buildingNumber + ' #' + record.floorNumber + '-' + record.roomNumber}</div> // <div>{record.buildingNumber + ' #' + record.floorNumber + '-' + record.roomNumber}</div>
<div> <div>
{record.buildingNumber ? <span>{record.buildingNumber} #</span> : ''} {record.buildingNumber ? <span>{record.buildingNumber}</span> : ''}
<span>{record.floorNumber}-</span> <span> #{record.floorNumber}-</span>
<span>{record.roomNumber}</span> <span>{record.roomNumber}</span>
</div> </div>
), ),
......
...@@ -120,6 +120,7 @@ const UsersDetail = (props: any) => { ...@@ -120,6 +120,7 @@ const UsersDetail = (props: any) => {
// 监听数据返回 // 监听数据返回
useEffect(() => { useEffect(() => {
if (DataSaveDetail !== null) { if (DataSaveDetail !== null) {
// console.log(DataSaveDetail);
setDataSaveLoading(false); setDataSaveLoading(false);
} }
}, [DataSaveDetail]); }, [DataSaveDetail]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment