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