Commit 00b9f6eb authored by cellee's avatar cellee

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

parent 1fdc4efe
...@@ -112,7 +112,7 @@ const Detail = (props: any) => { ...@@ -112,7 +112,7 @@ const Detail = (props: any) => {
<EyeOutlined /> <EyeOutlined />
&nbsp;Community Details &nbsp;Community Details
<div className="back"> <div className="back">
{user && user.currentUser.permission.filter((item: any) => (item = 47)) ? ( {user && user.currentUser.permission.includes('47') ? (
<Button <Button
type="primary" type="primary"
danger danger
......
...@@ -81,7 +81,7 @@ const BookingDetail = (props: any) => { ...@@ -81,7 +81,7 @@ const BookingDetail = (props: any) => {
backFeeStatus: curbackFee == DataSaveDetail.marginFee ? '0' : '1', backFeeStatus: curbackFee == DataSaveDetail.marginFee ? '0' : '1',
marginFee: DataSaveDetail.marginFee.toString(), marginFee: DataSaveDetail.marginFee.toString(),
}; };
console.log(RAVAL);
RA(3, RAVAL); RA(3, RAVAL);
} }
}; };
...@@ -166,11 +166,12 @@ const BookingDetail = (props: any) => { ...@@ -166,11 +166,12 @@ const BookingDetail = (props: any) => {
<hr /> <hr />
{/* 已交押金且未产生退费 */} {/* 已交押金且未产生退费且不是免费的 */}
{DataSave && {DataSave &&
DataSaveDetail && DataSaveDetail &&
DataSave.managerFeeStatus == 1 && DataSave.managerFeeStatus == 1 &&
DataSaveDetail.backMarginFee == 0 ? ( DataSaveDetail.backMarginFee == 0 &&
DataSaveDetail.managerFee > 0 ? (
<> <>
<Form <Form
ref={formRef} ref={formRef}
......
...@@ -471,11 +471,11 @@ const Facility = (props: any) => { ...@@ -471,11 +471,11 @@ const Facility = (props: any) => {
<Input.Group> <Input.Group>
<Form.Item label="Appointment Cycle" rules={NewFaci[8]}> <Form.Item label="Appointment Cycle" rules={NewFaci[8]}>
<Select <Select
placeholder="Period" placeholder="Cycle"
allowClear allowClear
style={{ width: 120 }} style={{ width: 120 }}
disabled={facilityDetail} disabled={facilityDetail}
value={Cycle ? Cycle : ''} value={Cycle}
onChange={handleChange} onChange={handleChange}
> >
<Option value="1">Week</Option> <Option value="1">Week</Option>
......
...@@ -26,7 +26,18 @@ import moment from 'moment'; ...@@ -26,7 +26,18 @@ import moment from 'moment';
const FacilityBookings = (props: any) => { const FacilityBookings = (props: any) => {
const { formatMessage } = useIntl(); const { formatMessage } = useIntl();
const { dispatch, location, Data, Data2, token, DataSave, curString, Result, loading } = props; const {
dispatch,
location,
Data,
Data2,
token,
DataSave,
curString,
Result,
loading,
CommunityList,
} = props;
// console.log(Data2); // console.log(Data2);
...@@ -136,7 +147,7 @@ const FacilityBookings = (props: any) => { ...@@ -136,7 +147,7 @@ const FacilityBookings = (props: any) => {
setColumns2(objectColumns(key2) as any); setColumns2(objectColumns(key2) as any);
if (curString.tab == 1) { if (curString.tab == 1) {
RA(9, { RA(9, {
communityNameList: JSON.parse(localStorage.getItem('CommunityList') as any), communityNameList: CommunityList,
userToken: token, userToken: token,
pageNum: curString.curPage, pageNum: curString.curPage,
subscribeDate: curString.subscribeDate, subscribeDate: curString.subscribeDate,
...@@ -147,7 +158,7 @@ const FacilityBookings = (props: any) => { ...@@ -147,7 +158,7 @@ const FacilityBookings = (props: any) => {
RA(8, { RA(8, {
userToken: token, userToken: token,
pageNum: curString.curPage2, pageNum: curString.curPage2,
communityNameList: JSON.parse(localStorage.getItem('CommunityList') as any), communityNameList: CommunityList,
}); });
} }
}, []); }, []);
...@@ -263,7 +274,7 @@ const FacilityBookings = (props: any) => { ...@@ -263,7 +274,7 @@ const FacilityBookings = (props: any) => {
]} ]}
time={['key', 'Booking time ']} time={['key', 'Booking time ']}
community={'communityName'} community={'communityName'}
checklist={curString.communityNameList != null ? curString.communityNameList : null} checklist={CommunityList}
onSubmit={CallBackTitleSearch} onSubmit={CallBackTitleSearch}
/> />
</> </>
...@@ -273,6 +284,7 @@ const FacilityBookings = (props: any) => { ...@@ -273,6 +284,7 @@ const FacilityBookings = (props: any) => {
listkey={['facilityName']} listkey={['facilityName']}
list={['Facility name']} list={['Facility name']}
community={'communityName'} community={'communityName'}
checklist={CommunityList}
onSubmit={CallBackTitleSearch} onSubmit={CallBackTitleSearch}
/> />
</> </>
...@@ -400,6 +412,7 @@ function mapStateToProps(state: any) { ...@@ -400,6 +412,7 @@ function mapStateToProps(state: any) {
? true ? true
: state.loading.models.FacilityBookings; : state.loading.models.FacilityBookings;
const { CommunityList } = state.Init; // 小区列表
return { return {
Data, Data,
Data2, Data2,
...@@ -408,6 +421,7 @@ function mapStateToProps(state: any) { ...@@ -408,6 +421,7 @@ function mapStateToProps(state: any) {
Result, Result,
token, token,
loading, loading,
CommunityList,
}; };
} }
export default connect(mapStateToProps)(FacilityBookings); export default connect(mapStateToProps)(FacilityBookings);
......
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