|
|
@ -28,6 +28,7 @@ function Detail() {
|
|
|
|
// http://localhost:5175/hotel/416980/2024-09-10/2024-09-11
|
|
|
|
// http://localhost:5175/hotel/416980/2024-09-10/2024-09-11
|
|
|
|
if (isEmpty(hotelId) || isEmpty(checkin) || isEmpty(checkout)) {
|
|
|
|
if (isEmpty(hotelId) || isEmpty(checkin) || isEmpty(checkout)) {
|
|
|
|
console.info('criteria is null')
|
|
|
|
console.info('criteria is null')
|
|
|
|
|
|
|
|
setLoading(false)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
searchForm.setFieldsValue({
|
|
|
|
searchForm.setFieldsValue({
|
|
|
|
dataRange: [dayjs(checkin), dayjs(checkout)],
|
|
|
|
dataRange: [dayjs(checkin), dayjs(checkout)],
|
|
|
@ -61,10 +62,7 @@ function Detail() {
|
|
|
|
price: plan.Price
|
|
|
|
price: plan.Price
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setHotelQuotation(forHtJson)
|
|
|
|
setHotelQuotation(forHtJson)
|
|
|
|
|
|
|
|
|
|
|
|
showModal()
|
|
|
|
showModal()
|
|
|
|
|
|
|
|
|
|
|
|
console.info('stringify: ' + JSON.stringify(forHtJson))
|
|
|
|
|
|
|
|
document.getElementById('forHtJson').value = JSON.stringify(forHtJson)
|
|
|
|
document.getElementById('forHtJson').value = JSON.stringify(forHtJson)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -97,7 +95,6 @@ function Detail() {
|
|
|
|
form={searchForm}
|
|
|
|
form={searchForm}
|
|
|
|
layout='inline'
|
|
|
|
layout='inline'
|
|
|
|
onFinish={handelFormFinish}
|
|
|
|
onFinish={handelFormFinish}
|
|
|
|
onFinishFailed={() => console.info('onFinishFailed')}
|
|
|
|
|
|
|
|
autoComplete='off'
|
|
|
|
autoComplete='off'
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Form.Item
|
|
|
|
<Form.Item
|
|
|
|