Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maple
TOSTUMI
Commits
269f1bbb
Commit
269f1bbb
authored
Jan 06, 2021
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增预约设施分类
Signed-off-by:
cellee
<
893264950@qq.com
>
parent
27c5d6df
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
163 additions
and
138 deletions
+163
-138
config.ts
config/config.ts
+1
-0
Facilitys.tsx
src/components/Facilitys/Facilitys.tsx
+1
-1
index.less
src/components/Facilitys/index.less
+4
-0
SecurityLayout.tsx
src/layouts/SecurityLayout.tsx
+1
-1
CellList.tsx
src/pages/CommunityManagement/CellList/CellList.tsx
+1
-1
Detail.tsx
...ages/CommunityManagement/CommunityAnnouncement/Detail.tsx
+1
-1
BookingDetail.tsx
...es/CommunityManagement/FacilityBookings/BookingDetail.tsx
+8
-19
Bookings.tsx
src/pages/CommunityManagement/FacilityBookings/Bookings.tsx
+58
-29
Facility.tsx
src/pages/CommunityManagement/FacilityBookings/Facility.tsx
+17
-17
FacilityBookings.tsx
...CommunityManagement/FacilityBookings/FacilityBookings.tsx
+67
-68
index.less
...pages/CommunityManagement/FacilityBookings/css/index.less
+4
-1
No files found.
config/config.ts
View file @
269f1bbb
...
@@ -266,6 +266,7 @@ export default defineConfig({
...
@@ -266,6 +266,7 @@ export default defineConfig({
routes
:
[
routes
:
[
{
path
:
'./'
,
component
:
'./CommunityManagement/CellList/CellList'
},
{
path
:
'./'
,
component
:
'./CommunityManagement/CellList/CellList'
},
{
path
:
'./Add'
,
component
:
'./CommunityManagement/CellList/Adds'
},
{
path
:
'./Add'
,
component
:
'./CommunityManagement/CellList/Adds'
},
{
path
:
'./Edit'
,
component
:
'./CommunityManagement/CellList/Adds'
},
{
path
:
'./Detail'
,
component
:
'./CommunityManagement/CellList/Details'
},
{
path
:
'./Detail'
,
component
:
'./CommunityManagement/CellList/Details'
},
{
path
:
'*'
,
component
:
'@/pages/404'
},
{
path
:
'*'
,
component
:
'@/pages/404'
},
],
],
...
...
src/components/Facilitys/Facilitys.tsx
View file @
269f1bbb
...
@@ -174,7 +174,7 @@ const Facilitys = (props: any) => {
...
@@ -174,7 +174,7 @@ const Facilitys = (props: any) => {
<
div
className=
{
'Facility'
}
key=
{
item
.
id
}
>
<
div
className=
{
'Facility'
}
key=
{
item
.
id
}
>
<
Form
.
Item
<
Form
.
Item
label=
{
`Facility
Name
${index + 1}`
}
label=
{
`Facility ${index + 1}`
}
name=
{
'shebei_'
+
item
.
id
}
name=
{
'shebei_'
+
item
.
id
}
rules=
{
[{
required
:
true
,
message
:
'Please input Facility Name!'
}]
}
rules=
{
[{
required
:
true
,
message
:
'Please input Facility Name!'
}]
}
>
>
...
...
src/components/Facilitys/index.less
View file @
269f1bbb
...
@@ -21,3 +21,7 @@
...
@@ -21,3 +21,7 @@
}
}
}
}
}
}
.basediy .ant-form-item-required,
.basediy .ant-form-item-label > label {
min-width: 108px !important;
}
src/layouts/SecurityLayout.tsx
View file @
269f1bbb
...
@@ -50,7 +50,7 @@ class SecurityLayout extends React.Component<SecurityLayoutProps, SecurityLayout
...
@@ -50,7 +50,7 @@ class SecurityLayout extends React.Component<SecurityLayoutProps, SecurityLayout
{
key
:
'42'
,
path
:
'/ContractManagement/Edit'
},
{
key
:
'42'
,
path
:
'/ContractManagement/Edit'
},
// 小区
// 小区
{
path
:
'/CommunityManagement/CellList/Detail'
,
title
:
'查看小区'
,
key
:
'44'
},
{
path
:
'/CommunityManagement/CellList/Detail'
,
title
:
'查看小区'
,
key
:
'44'
},
{
path
:
'/CommunityManagement/CellList/
Add
'
,
title
:
'编辑小区'
,
key
:
'45'
},
{
path
:
'/CommunityManagement/CellList/
Edit
'
,
title
:
'编辑小区'
,
key
:
'45'
},
{
path
:
'/CommunityManagement/CellList/Add'
,
title
:
'添加小区'
,
key
:
'46'
},
{
path
:
'/CommunityManagement/CellList/Add'
,
title
:
'添加小区'
,
key
:
'46'
},
// 小区公告
// 小区公告
{
path
:
'/CommunityManagement/CommunityAnnouncement'
,
title
:
'小区公告'
,
key
:
'48'
},
{
path
:
'/CommunityManagement/CommunityAnnouncement'
,
title
:
'小区公告'
,
key
:
'48'
},
...
...
src/pages/CommunityManagement/CellList/CellList.tsx
View file @
269f1bbb
...
@@ -52,7 +52,7 @@ const CellLists = (props: any) => {
...
@@ -52,7 +52,7 @@ const CellLists = (props: any) => {
<
Space
size=
"middle"
>
<
Space
size=
"middle"
>
<
a
<
a
onClick=
{
()
=>
{
onClick=
{
()
=>
{
emptys
(
record
,
'/CommunityManagement/CellList/
Add
'
);
emptys
(
record
,
'/CommunityManagement/CellList/
Edit
'
);
}
}
}
}
>
>
Edit
Edit
...
...
src/pages/CommunityManagement/CommunityAnnouncement/Detail.tsx
View file @
269f1bbb
...
@@ -111,7 +111,7 @@ const Add = (props: any) => {
...
@@ -111,7 +111,7 @@ const Add = (props: any) => {
}
}
}
}
limitNums=
{
5
}
limitNums=
{
5
}
over=
{
true
}
over=
{
true
}
defaultValue
=
{
ImageSrc
}
imgs
=
{
ImageSrc
}
/>
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
<
Form
.
Item
...
...
src/pages/CommunityManagement/FacilityBookings/BookingDetail.tsx
View file @
269f1bbb
...
@@ -24,9 +24,7 @@ const BookingDetail = (props: any) => {
...
@@ -24,9 +24,7 @@ const BookingDetail = (props: any) => {
let
arr
=
DataSave
.
subscribeTime
.
split
(
','
);
let
arr
=
DataSave
.
subscribeTime
.
split
(
','
);
console
.
log
(
arr
[
0
]);
console
.
log
(
arr
[
0
]);
console
.
log
(
arr
[
arr
.
length
-
1
]);
console
.
log
(
arr
[
arr
.
length
-
1
]);
let
start
=
ampm
(
arr
[
0
]);
setExtractTime
(
`
${
arr
[
0
]}
To
${
arr
[
arr
.
length
-
1
]}
`
);
let
over
=
ampm
(
arr
[
arr
.
length
-
1
]);
setExtractTime
(
`
${
start
}
To
${
over
}
`
);
if
(
DataSave
.
managerFeeStatus
!=
0
)
{
if
(
DataSave
.
managerFeeStatus
!=
0
)
{
RA
(
2
,
{
accountCategoriesId
:
DataSave
.
id
});
RA
(
2
,
{
accountCategoriesId
:
DataSave
.
id
});
}
}
...
@@ -65,15 +63,6 @@ const BookingDetail = (props: any) => {
...
@@ -65,15 +63,6 @@ const BookingDetail = (props: any) => {
}
}
};
};
// 看是AM还是PM
const
ampm
=
(
time
:
any
)
=>
{
if
(
time
.
substring
(
0
,
2
)
<
12
)
{
return
`
${
time
}
AM`
;
}
else
{
return
`
${
time
}
PM`
;
}
};
// 点击退款
// 点击退款
const
onFinish
=
(
values
:
any
)
=>
{
const
onFinish
=
(
values
:
any
)
=>
{
var
val
=
values
;
var
val
=
values
;
...
@@ -157,14 +146,14 @@ const BookingDetail = (props: any) => {
...
@@ -157,14 +146,14 @@ const BookingDetail = (props: any) => {
<
Descriptions
>
<
Descriptions
>
<
Descriptions
.
Item
label=
"Community"
>
{
DataSave
.
communityName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"Community"
>
{
DataSave
.
communityName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"Facility"
>
{
DataSave
.
categoriesName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"Facility"
>
{
DataSave
.
categoriesName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"
Booking Tim
e"
>
<
Descriptions
.
Item
label=
"
Schedul
e"
>
{
DataSave
.
subscribeDate
}
{
ExtractTime
}
{
DataSave
.
subscribeDate
}
{
ExtractTime
}
</
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=
"Contact Number"
>
{
DataSave
.
accountPhone
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"Unit No."
>
<
Descriptions
.
Item
label=
"Unit No."
>
{
DataSave
.
buildNumber
}
#
{
DataSave
.
floorNumber
}
-
{
DataSave
.
roomNumber
}
{
DataSave
.
buildNumber
}
#
{
DataSave
.
floorNumber
}
-
{
DataSave
.
roomNumber
}
</
Descriptions
.
Item
>
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"Contact Number"
>
{
DataSave
.
accountPhone
}
</
Descriptions
.
Item
>
</
Descriptions
>
</
Descriptions
>
<
hr
/>
<
hr
/>
...
@@ -251,7 +240,7 @@ const BookingDetail = (props: any) => {
...
@@ -251,7 +240,7 @@ const BookingDetail = (props: any) => {
</
Descriptions
>
</
Descriptions
>
<
Button
className=
"pay"
loading=
{
load
}
onClick=
{
makeFee
}
>
<
Button
className=
"pay"
loading=
{
load
}
onClick=
{
makeFee
}
>
Go Pay
Make Payment
</
Button
>
</
Button
>
</
div
>
</
div
>
<
hr
/>
<
hr
/>
...
@@ -261,7 +250,7 @@ const BookingDetail = (props: any) => {
...
@@ -261,7 +250,7 @@ const BookingDetail = (props: any) => {
{
/* 取消预订按钮 */
}
{
/* 取消预订按钮 */
}
{
DataSave
.
status
==
1
||
DataSave
.
status
==
2
?
(
{
DataSave
.
status
==
1
||
DataSave
.
status
==
2
?
(
<
Button
onClick=
{
showModal
}
loading=
{
load
}
>
<
Button
onClick=
{
showModal
}
loading=
{
load
}
>
Cancel
Reservation
Cancel
Booking
</
Button
>
</
Button
>
)
:
null
}
)
:
null
}
...
@@ -281,10 +270,10 @@ const BookingDetail = (props: any) => {
...
@@ -281,10 +270,10 @@ const BookingDetail = (props: any) => {
</
p
>
</
p
>
)
:
(
)
:
(
<
p
>
<
p
>
Confirm receipt of all usage amount of the facility ?
Please confirm to receive full payment for this booking!
<
div
>
{
/*
<div>
{DataSave.subscribeDate} {DataSave.subscribeTime} {DataSave.facilityTitle}
{DataSave.subscribeDate} {DataSave.subscribeTime} {DataSave.facilityTitle}
</
div
>
</div>
*/
}
</
p
>
</
p
>
)
}
)
}
</
Modal
>
</
Modal
>
...
...
src/pages/CommunityManagement/FacilityBookings/Bookings.tsx
View file @
269f1bbb
...
@@ -89,6 +89,8 @@ const Bookings = (props: any) => {
...
@@ -89,6 +89,8 @@ const Bookings = (props: any) => {
setResultTime
(
null
);
setResultTime
(
null
);
setSoltTime
([]);
setSoltTime
([]);
}
}
console
.
log
(
Data3
);
},
[
Data3
]);
},
[
Data3
]);
// 监听 已选时间段
// 监听 已选时间段
...
@@ -250,7 +252,7 @@ const Bookings = (props: any) => {
...
@@ -250,7 +252,7 @@ const Bookings = (props: any) => {
<
TitleBack
title=
"Facility Bookings"
/>
<
TitleBack
title=
"Facility Bookings"
/>
<
div
className=
{
styles
.
box1
}
>
<
div
className=
{
styles
.
box1
}
>
<
div
className=
{
styles
.
box1item1
}
>
Projec
t :
</
div
>
<
div
className=
{
styles
.
box1item1
}
>
Communi
t :
</
div
>
<
div
className=
{
styles
.
box1item2
}
>
<
div
className=
{
styles
.
box1item2
}
>
<
Spin
spinning=
{
loading
}
tip=
"Finding..."
>
<
Spin
spinning=
{
loading
}
tip=
"Finding..."
>
<
SearchOptionsCommnity
<
SearchOptionsCommnity
...
@@ -275,10 +277,10 @@ const Bookings = (props: any) => {
...
@@ -275,10 +277,10 @@ const Bookings = (props: any) => {
// autocomplete="off"
// autocomplete="off"
>
>
<
div
className=
"box2 required"
>
<
div
className=
"box2 required"
>
<
div
className=
{
styles
.
box2item1
}
>
Facilit
y Bookings
:
</
div
>
<
div
className=
{
styles
.
box2item1
}
>
Facilit
ies Available
:
</
div
>
<
div
className=
{
styles
.
box2item2
}
>
<
div
className=
{
styles
.
box2item2
}
>
<
Form
.
Item
name=
"categoriesName"
>
<
Form
.
Item
name=
"categoriesName"
>
<
Radio
.
Group
defaultValue=
{
1
}
onChange=
{
RadioChoose
}
>
{
/*
<Radio.Group defaultValue={1} onChange={RadioChoose}>
{Data3.map((item: any, index: any) => {
{Data3.map((item: any, index: any) => {
var tmp = new Array();
var tmp = new Array();
item.categorieList.map((thing: any, i: any) => {
item.categorieList.map((thing: any, i: any) => {
...
@@ -291,38 +293,40 @@ const Bookings = (props: any) => {
...
@@ -291,38 +293,40 @@ const Bookings = (props: any) => {
return tmp;
return tmp;
})}
})}
</Radio.Group> */
}
<
Radio
.
Group
onChange=
{
RadioChoose
}
>
{
Data3
.
map
((
item
:
any
,
index
:
any
)
=>
{
return
(
<
li
>
<
i
style=
{
{
display
:
'inline-block'
,
width
:
'auto'
,
marginRight
:
15
,
fontSize
:
14
,
fontStyle
:
'normal'
,
}
}
>
{
item
.
facilitiesName
}
:
</
i
>
{
item
.
categorieList
.
map
((
thing
:
any
,
i
:
any
)
=>
{
return
(
<
Radio
key=
{
thing
.
categoriesId
}
value=
{
thing
}
>
{
thing
.
categoriesName
}
</
Radio
>
);
})
}
</
li
>
);
})
}
</
Radio
.
Group
>
</
Radio
.
Group
>
</
Form
.
Item
>
</
Form
.
Item
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
{
styles
.
line
}
></
div
>
<
div
className=
{
styles
.
line
}
></
div
>
<
div
className=
"box3 required"
>
<
div
className=
"box4 required"
style=
{
{
marginBottom
:
25
}
}
>
<
div
className=
{
styles
.
box3item1
}
>
User Name :
</
div
>
<
div
className=
{
styles
.
box3item2
}
>
<
Form
.
Item
name=
"accountName"
rules=
{
BookingsTip
[
0
]
}
>
<
Input
style=
{
{
width
:
200
}
}
placeholder=
"Name Of Subscriber"
disabled=
{
prohibit
}
maxLength=
{
30
}
/>
</
Form
.
Item
>
</
div
>
<
div
className=
{
styles
.
box3item3
}
>
Contact Details :
</
div
>
<
div
className=
{
styles
.
box3item4
}
>
<
Form
.
Item
name=
"accountPhone"
rules=
{
BookingsTip
[
1
]
}
>
<
Input
style=
{
{
width
:
200
}
}
placeholder=
"Contact Information"
disabled=
{
prohibit
}
maxLength=
{
11
}
/>
</
Form
.
Item
>
</
div
>
</
div
>
<
div
className=
"box4 required"
>
<
div
className=
{
styles
.
box4item1
}
>
Unit :
</
div
>
<
div
className=
{
styles
.
box4item1
}
>
Unit :
</
div
>
<
div
className=
"divbox4"
>
<
div
className=
"divbox4"
>
<
Form
.
Item
name=
"buildNumber"
rules=
{
BookingsTip
[
2
]
}
>
<
Form
.
Item
name=
"buildNumber"
rules=
{
BookingsTip
[
2
]
}
>
...
@@ -348,6 +352,31 @@ const Bookings = (props: any) => {
...
@@ -348,6 +352,31 @@ const Bookings = (props: any) => {
</
Form
.
Item
>
</
Form
.
Item
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
"box3 "
>
<
div
className=
{
styles
.
box3item1
}
>
User Name :
</
div
>
<
div
className=
{
styles
.
box3item2
}
>
<
Form
.
Item
name=
"accountName"
>
<
Input
style=
{
{
width
:
200
}
}
placeholder=
"Name Of Subscriber"
disabled=
{
prohibit
}
maxLength=
{
30
}
/>
</
Form
.
Item
>
</
div
>
<
div
className=
{
styles
.
box3item3
}
>
Contact Details :
</
div
>
<
div
className=
{
styles
.
box3item4
}
>
<
Form
.
Item
name=
"accountPhone"
rules=
{
BookingsTip
[
1
]
}
>
<
Input
style=
{
{
width
:
200
}
}
placeholder=
"Contact Information"
disabled=
{
prohibit
}
maxLength=
{
11
}
/>
</
Form
.
Item
>
</
div
>
</
div
>
<
div
className=
{
styles
.
line
}
></
div
>
<
div
className=
{
styles
.
line
}
></
div
>
<
div
className=
"box5 required"
>
<
div
className=
"box5 required"
>
...
...
src/pages/CommunityManagement/FacilityBookings/Facility.tsx
View file @
269f1bbb
...
@@ -327,8 +327,12 @@ const Facility = (props: any) => {
...
@@ -327,8 +327,12 @@ const Facility = (props: any) => {
{
/* 设施名称 以及费用 */
}
{
/* 设施名称 以及费用 */
}
<
Input
.
Group
>
<
Input
.
Group
>
<
Form
.
Item
label=
"Facility"
name=
"facilityName"
rules=
{
NewFaci
[
1
]
}
>
<
Form
.
Item
label=
"Facility Classification"
name=
"facilityName"
rules=
{
NewFaci
[
1
]
}
>
<
Input
placeholder=
"Facility Name"
disabled=
{
facilityDetail
}
maxLength=
{
30
}
/>
<
Input
placeholder=
"Facility Classification"
disabled=
{
facilityDetail
}
maxLength=
{
30
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
"Fee($)"
name=
"communityManagerFee"
>
<
Form
.
Item
label=
"Fee($)"
name=
"communityManagerFee"
>
{
/* <span className="divIconMoney">$</span> */
}
{
/* <span className="divIconMoney">$</span> */
}
...
@@ -362,11 +366,7 @@ const Facility = (props: any) => {
...
@@ -362,11 +366,7 @@ const Facility = (props: any) => {
<
hr
></
hr
>
<
hr
></
hr
>
{
/* 设施品类上传 */
}
{
/* 设施品类上传 */
}
<
Form
.
Item
<
Form
.
Item
label=
"Facilities"
className=
"flex required"
style=
{
{
marginBottom
:
0
}
}
>
label=
"Facility Classification"
className=
"flex required"
style=
{
{
marginBottom
:
0
}
}
>
<
Facilitys
<
Facilitys
disabled=
{
imgOpen
}
disabled=
{
imgOpen
}
updata=
{
{
updata=
{
{
...
@@ -381,7 +381,7 @@ const Facility = (props: any) => {
...
@@ -381,7 +381,7 @@ const Facility = (props: any) => {
{
/* 设施详情上传 */
}
{
/* 设施详情上传 */
}
<
Form
.
Item
<
Form
.
Item
name=
"categoriesDetailsImageName"
name=
"categoriesDetailsImageName"
label=
"Facility
Detail
s"
label=
"Facility
Picture
s"
rules=
{
NewFaci
[
4
]
}
rules=
{
NewFaci
[
4
]
}
>
>
<
PictureOptionsRow
<
PictureOptionsRow
...
@@ -422,7 +422,7 @@ const Facility = (props: any) => {
...
@@ -422,7 +422,7 @@ const Facility = (props: any) => {
<
hr
></
hr
>
<
hr
></
hr
>
{
/* ------------- */
}
{
/* ------------- */
}
<
p
className=
"diyp"
>
Appointment Setting
s :
</
p
>
<
p
className=
"diyp"
>
Booking Rule
s :
</
p
>
{
/* 预约设置 */
}
{
/* 预约设置 */
}
<
Input
.
Group
>
<
Input
.
Group
>
...
@@ -430,8 +430,8 @@ const Facility = (props: any) => {
...
@@ -430,8 +430,8 @@ const Facility = (props: any) => {
<
Input
<
Input
onKeyUp=
{
keyup
.
bind
(
this
,
'cancelReservationDay'
)
}
onKeyUp=
{
keyup
.
bind
(
this
,
'cancelReservationDay'
)
}
disabled=
{
facilityDetail
}
disabled=
{
facilityDetail
}
prefix=
"Advance"
//
prefix="Advance"
suffix=
"Day"
suffix=
"Day
(s) In Advance
"
style=
{
{
width
:
160
,
textAlign
:
'center'
}
}
style=
{
{
width
:
160
,
textAlign
:
'center'
}
}
placeholder=
"0"
placeholder=
"0"
maxLength=
{
2
}
maxLength=
{
2
}
...
@@ -445,8 +445,8 @@ const Facility = (props: any) => {
...
@@ -445,8 +445,8 @@ const Facility = (props: any) => {
<
Input
<
Input
onKeyUp=
{
keyup
.
bind
(
this
,
'nomarginCancelReservationDay'
)
}
onKeyUp=
{
keyup
.
bind
(
this
,
'nomarginCancelReservationDay'
)
}
disabled=
{
facilityDetail
}
disabled=
{
facilityDetail
}
prefix=
"Advance"
//
prefix="Advance"
suffix=
"Day"
suffix=
"Day
(s) In Advance
"
style=
{
{
width
:
160
,
textAlign
:
'center'
}
}
style=
{
{
width
:
160
,
textAlign
:
'center'
}
}
placeholder=
"0"
placeholder=
"0"
maxLength=
{
2
}
maxLength=
{
2
}
...
@@ -458,8 +458,8 @@ const Facility = (props: any) => {
...
@@ -458,8 +458,8 @@ const Facility = (props: any) => {
placeholder=
"0"
placeholder=
"0"
style=
{
{
width
:
160
,
textAlign
:
'center'
}
}
style=
{
{
width
:
160
,
textAlign
:
'center'
}
}
disabled=
{
facilityDetail
}
disabled=
{
facilityDetail
}
prefix=
"Advance"
//
prefix="Advance"
suffix=
"Day"
suffix=
"Day
(s) In Advance
"
maxLength=
{
2
}
maxLength=
{
2
}
/>
/>
</
Form
.
Item
>
</
Form
.
Item
>
...
@@ -467,7 +467,7 @@ const Facility = (props: any) => {
...
@@ -467,7 +467,7 @@ const Facility = (props: any) => {
{
/* 设置次数 */
}
{
/* 设置次数 */
}
<
Input
.
Group
>
<
Input
.
Group
>
<
Form
.
Item
label=
"
Appointment Cycle
"
rules=
{
NewFaci
[
8
]
}
>
<
Form
.
Item
label=
"
Booking Quotas
"
rules=
{
NewFaci
[
8
]
}
>
<
Select
<
Select
placeholder=
"Cycle"
placeholder=
"Cycle"
allowClear
allowClear
...
@@ -487,7 +487,7 @@ const Facility = (props: any) => {
...
@@ -487,7 +487,7 @@ const Facility = (props: any) => {
placeholder=
"Second"
placeholder=
"Second"
style=
{
{
width
:
120
}
}
style=
{
{
width
:
120
}
}
disabled=
{
facilityDetail
}
disabled=
{
facilityDetail
}
suffix=
"
Second
"
suffix=
"
Time(s)
"
/>
/>
</
Form
.
Item
>
</
Form
.
Item
>
</
Input
.
Group
>
</
Input
.
Group
>
...
...
src/pages/CommunityManagement/FacilityBookings/FacilityBookings.tsx
View file @
269f1bbb
...
@@ -94,78 +94,77 @@ const FacilityBookings = (props: any) => {
...
@@ -94,78 +94,77 @@ const FacilityBookings = (props: any) => {
history
.
push
(
location
.
pathname
+
path
[
index
]);
history
.
push
(
location
.
pathname
+
path
[
index
]);
};
};
useEffect
(()
=>
{
// 表头
const
key
=
[
const
key
=
[
[
'Community'
,
'communityName'
],
[
'Community'
,
'communityName'
],
[
'User Name'
,
'accountName'
],
[
'User Name'
,
'accountName'
],
[
'Facility'
,
'categoriesName'
],
[
'Facility'
,
'categoriesName'
],
[
[
'Schedule'
,
'Schedule'
,
'subscribeDate'
,
'subscribeDate'
,
(
text
:
any
,
record
:
any
)
=>
(
(
text
:
any
,
record
:
any
)
=>
(
<
div
>
<
div
>
{
moment
(
text
).
format
(
'YYYY-MM-DD'
)
}
{
record
.
subscribeTime
.
substring
(
0
,
5
)
}
{
moment
(
text
).
format
(
'YYYY-MM-DD'
)
}
{
record
.
subscribeTime
.
substring
(
0
,
5
)
}
To
{
' '
}
{
record
.
subscribeTime
.
substring
(
0
,
2
)
<
12
?
'AM'
:
'PM'
}
To
{
' '
}
{
record
.
subscribeTime
.
substring
(
record
.
subscribeTime
.
length
-
5
)
}
{
record
.
subscribeTime
.
substring
(
record
.
subscribeTime
.
length
-
5
)
}
</
div
>
{
record
.
subscribeTime
.
substring
(
),
record
.
subscribeTime
.
length
-
5
,
],
record
.
subscribeTime
.
length
-
3
,
[
'Fee'
,
'managerFeeStatus'
,
(
text
:
any
)
=>
<
div
>
{
managerFeeStatusDes
[
text
]
}
</
div
>],
)
<
12
[
'Deposit'
,
'marginFeeStatus'
,
(
text
:
any
)
=>
<
div
>
{
marginFeeStatusDes
[
text
]
}
</
div
>],
?
'AM'
[
'Status'
,
'status'
,
(
text
:
any
)
=>
<
div
>
{
statusDes
[
text
]
}
</
div
>],
:
'PM'
}
</
div
>
[
),
'Actions'
,
],
null
,
[
'Fee'
,
'managerFeeStatus'
,
(
text
:
any
)
=>
<
div
>
{
managerFeeStatusDes
[
text
]
}
</
div
>],
(
text
:
any
,
record
:
any
)
=>
(
[
'Deposit'
,
'marginFeeStatus'
,
(
text
:
any
)
=>
<
div
>
{
marginFeeStatusDes
[
text
]
}
</
div
>],
<
Space
size=
"middle"
>
[
'Status'
,
'status'
,
(
text
:
any
)
=>
<
div
>
{
statusDes
[
text
]
}
</
div
>],
{
' '
}
<
a
onClick=
{
goToDetail
.
bind
(
this
,
record
)
}
>
Detail
</
a
>
</
Space
>
),
],
];
const
key2
=
[
[
'Community'
,
'communityName'
],
[
'Facilities'
,
'facilityName'
],
[
'Opening Hours'
,
'categoriesOpenTime'
],
[
'Action'
,
null
,
(
text
:
any
,
record
:
any
)
=>
(
<
Space
size=
"middle"
>
<
a
onClick=
{
()
=>
makeOperator
(
record
,
1
)
}
>
Edit
</
a
>
<
a
onClick=
{
()
=>
makeOperator
(
record
,
0
)
}
>
Detail
</
a
>
<
a
onClick=
{
()
=>
makeOperator
(
record
,
2
)
}
>
Booking
</
a
>
</
Space
>
),
],
];
[
useEffect
(()
=>
{
'Actions'
,
//设置表头
null
,
(
text
:
any
,
record
:
any
)
=>
(
<
Space
size=
"middle"
>
{
' '
}
<
a
onClick=
{
goToDetail
.
bind
(
this
,
record
)
}
>
Detail
</
a
>
</
Space
>
),
],
];
const
key2
=
[
[
'Community'
,
'communityName'
],
[
'Facilty'
,
'facilityName'
],
[
'Open Time'
,
'categoriesOpenTime'
],
[
'Action'
,
null
,
(
text
:
any
,
record
:
any
)
=>
(
<
Space
size=
"middle"
>
<
a
onClick=
{
()
=>
makeOperator
(
record
,
1
)
}
>
Edit
</
a
>
<
a
onClick=
{
()
=>
makeOperator
(
record
,
0
)
}
>
Detail
</
a
>
<
a
onClick=
{
()
=>
makeOperator
(
record
,
2
)
}
>
Booking
</
a
>
</
Space
>
),
],
];
setColumns
(
objectColumns
(
key
)
as
any
);
setColumns
(
objectColumns
(
key
)
as
any
);
setColumns2
(
objectColumns
(
key2
)
as
any
);
setColumns2
(
objectColumns
(
key2
)
as
any
);
if
(
curString
.
tab
==
1
)
{
RA
(
9
,
{
//发起请求--有小区再发起,没有就没必要了
communityNameList
:
CommunityList
,
if
(
CommunityList
)
{
userToken
:
token
,
if
(
curString
.
tab
==
1
)
{
pageNum
:
curString
.
curPage
,
RA
(
9
,
{
subscribeDate
:
curString
.
subscribeDate
,
communityNameList
:
CommunityList
,
status
:
curString
.
status
,
userToken
:
token
,
// communityNameList: curString.communityNameList,
pageNum
:
curString
.
curPage
,
});
subscribeDate
:
curString
.
subscribeDate
,
}
else
{
status
:
curString
.
status
,
RA
(
8
,
{
});
userToken
:
token
,
}
else
{
pageNum
:
curString
.
curPage2
,
RA
(
8
,
{
communityNameList
:
CommunityList
,
userToken
:
token
,
});
pageNum
:
curString
.
curPage2
,
communityNameList
:
CommunityList
,
});
}
}
}
},
[]);
},
[
CommunityList
]);
const
CallBackTitleSearch
=
(
comment
:
any
)
=>
{
const
CallBackTitleSearch
=
(
comment
:
any
)
=>
{
if
(
curString
.
tab
==
1
)
{
if
(
curString
.
tab
==
1
)
{
...
...
src/pages/CommunityManagement/FacilityBookings/css/index.less
View file @
269f1bbb
...
@@ -54,9 +54,12 @@
...
@@ -54,9 +54,12 @@
.box2 {
.box2 {
width: 100%;
width: 100%;
height:
34px
;
height:
auto
;
position: relative;
position: relative;
margin-bottom: 28px;
margin-bottom: 28px;
li {
line-height: 32px;
}
}
}
.box2item1 {
.box2item1 {
position: absolute;
position: absolute;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment