Commit dcce2c44 authored by cellee's avatar cellee

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

parent 5416935f
...@@ -52,6 +52,9 @@ const Bookings = (props: any) => { ...@@ -52,6 +52,9 @@ const Bookings = (props: any) => {
const [bookTime, setBookTime] = useState(1); // 默认延后预订时间 const [bookTime, setBookTime] = useState(1); // 默认延后预订时间
// 表单标识
const [form] = Form.useForm();
useEffect(() => { useEffect(() => {
if (DataSave != null) { if (DataSave != null) {
setComminityValues(DataSave.communityName); setComminityValues(DataSave.communityName);
...@@ -154,12 +157,27 @@ const Bookings = (props: any) => { ...@@ -154,12 +157,27 @@ const Bookings = (props: any) => {
} else { } else {
tmp.reservedTimeList = soltTime; // 预约时间 tmp.reservedTimeList = soltTime; // 预约时间
console.log(tmp);
RA(11, tmp); RA(11, tmp);
} }
}; };
// 选择设施 // 选择设施
const RadioChoose = (e: any) => { const RadioChoose = (e: any) => {
// 先清空表单其他值
// form.resetFields()
form.setFieldsValue({
accountName: '',
accountPhone: '',
buildNumber: '',
floorNumber: '',
roomNumber: '',
subscribeDate: '',
startTime: '',
endTime: '',
});
// 再把提示时间删除
setResultTime(null);
// 然后在做切换
Data3.map((item: any, index: any) => { Data3.map((item: any, index: any) => {
item.categorieList.map((thing: any, i: any) => { item.categorieList.map((thing: any, i: any) => {
if (thing.categoriesId == e.target.value.categoriesId) { if (thing.categoriesId == e.target.value.categoriesId) {
...@@ -250,6 +268,7 @@ const Bookings = (props: any) => { ...@@ -250,6 +268,7 @@ const Bookings = (props: any) => {
<> <>
<Form <Form
ref={formRef} ref={formRef}
form={form}
name="basic" name="basic"
onFinish={onFinish} onFinish={onFinish}
validateMessages={validateMessages} validateMessages={validateMessages}
......
...@@ -87,7 +87,7 @@ const FacilityBookings = (props: any) => { ...@@ -87,7 +87,7 @@ const FacilityBookings = (props: any) => {
const key = [ const key = [
['Service Community', 'communityName'], ['Service Community', 'communityName'],
['User Name', 'accountName'], ['User Name', 'accountName'],
['Facility Bookings', 'facilityTitle'], ['Facility Bookings', 'categoriesName'],
[ [
'Order Time', 'Order Time',
null, null,
......
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