Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
b7113c5f
Commit
b7113c5f
authored
Mar 07, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
f0fe5de3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
121 additions
and
114 deletions
+121
-114
OrderList.vue
src/components/Hotel/reservation/OrderList.vue
+4
-21
HotelQueryList.vue
src/components/Hotel/singleProduct/HotelQueryList.vue
+48
-29
hotelTableList.vue
...ponents/Hotel/singleProduct/components/hotelTableList.vue
+69
-64
No files found.
src/components/Hotel/reservation/OrderList.vue
View file @
b7113c5f
...
...
@@ -373,12 +373,10 @@
<span
class=
"mr"
v-if=
"scope.row.OpName&&pagesTitle=='OP'"
>
{{$t('objFill.guanlian')}}OP:{{ scope.row.OpName }}
</span>
<span
class=
"mr"
v-if=
"scope.row.CustomerName"
>
{{$t('active.cl_addPp')}}:{{ scope.row.CustomerName }} ({{ scope.row.CustomerContact }}/{{
scope.row.CustomerTel
}}
</span>
<span
class=
"mr"
>
{{$t('restaurant.res_oderTime')}}:{{ scope.row.CreateTime }}
</span>
<div
class=
""
>
<i
class=
"mx5"
:class=
"{
}})
</span>
<span
class=
"mr"
>
{{$t('restaurant.res_oderTime')}}:{{ scope.row.CreateTime }}
</span>
<div
class=
""
>
<i
class=
"mx5"
:class=
"{
'el-icon-alarm-clock c20C997': scope.row.OrderStatus == 1,
'el-icon-check cblack': scope.row.OrderStatus == 2,
'el-icon-warning cff9800': scope.row.OrderStatus == 3,
...
...
@@ -537,21 +535,6 @@
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
Refund
?
scope
.
row
.
Refund
:
"-"
}}
</span>
</
template
>
</el-table-column>
<!-- <el-table-column :label="$t('objFill.shoupeifeiyinshou')" min-width="100">
<template slot-scope="scope">
<span class="fz15 fbold">{{
scope.row.HandFittingIncome ? scope.row.HandFittingIncome : "-"
}}</span>
</template>
</el-table-column> -->
<!-- <el-table-column :label="$t('objFill.shoupeifeipintaisj')" min-width="100">
<template slot-scope="scope">
<span class="fz15 fbold">{{
scope.row.HandFittingTax ? scope.row.HandFittingTax : "-"
}}</span>
</template>
</el-table-column> -->
<el-table-column
:label=
"$t('Operation.Op_daishou')"
min-width=
"100"
>
<
template
slot-scope=
"scope"
>
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
DueInMoney
||
'-'
}}
</span>
...
...
src/components/Hotel/singleProduct/HotelQueryList.vue
View file @
b7113c5f
...
...
@@ -6,11 +6,11 @@
<span>
<em>
{{
$t
(
'system.quety_area'
)
}}
</em>
<el-select
v-model=
"msg.Province"
filterable
@
change=
"getProvinceList(msg.Province,2)"
:placeholder=
"$t('hotel.hotel_province')"
>
:placeholder=
"$t('hotel.hotel_province')"
clearable
@
clear=
"msg.Province=0,msg.City=0"
>
<el-option
:key=
"0"
:value=
"0"
:label=
"$t('pub.pleaseSel')"
></el-option>
<el-option
v-for=
"item in provinceList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
</el-select>
<el-select
v-model=
"msg.City"
filterable
:placeholder=
"$t('hotel.hotel_city')"
>
<el-select
v-model=
"msg.City"
filterable
:placeholder=
"$t('hotel.hotel_city')"
clearable
@
clear=
"msg.City=0"
>
<el-option
:key=
"0"
:value=
"0"
:label=
"$t('pub.pleaseSel')"
></el-option>
<el-option
v-for=
"item in cityList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
</el-select>
...
...
@@ -46,10 +46,8 @@
<span>
<em>
{{
$t
(
'hotel.hotel'
)
}}
</em>
<el-input
type=
""
v-model=
"msg.HotelName"
:placeholder=
"$t('hotel.table_hotelname')"
></el-input>
</span>
</li>
<li>
<input
v-if=
"HOTEL_memorandum&&!pagesTitle"
type=
"button"
class=
"normalBtn"
:value=
"$t('objFill.beiwanglv')"
@
click=
"goUrl('memorandumList')"
/>
...
...
@@ -159,7 +157,7 @@
StartDate
:
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
)),
EndDate
:
this
.
getBeforeDate
(
-
30
,
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
))),
//只查询日本
Country
:
"
651
"
,
Country
:
"
0
"
,
Province
:
0
,
City
:
0
,
OutBranchId
:
-
1
,
...
...
@@ -249,7 +247,8 @@
}
},
HOTEL_memorandum
:
false
,
crmOrderObj
:
null
crmOrderObj
:
null
,
userinfo
:
{}
};
},
watch
:
{
...
...
@@ -318,6 +317,7 @@
},
getList
()
{
this
.
loading
=
true
;
this
.
dataList
=
[];
if
(
this
.
msg
.
StartDate
==
null
)
{
this
.
msg
.
StartDate
=
this
.
getBeforeDate
(
-
20
,
new
Date
().
Format
(
"yyyy-MM-dd"
));
}
...
...
@@ -340,11 +340,15 @@
},
//获取酒店列表
GetHotelList
()
{
var
postMsg
=
{
QCountry
:
"0"
,
IsMoreThanZero
:
1
}
if
(
this
.
userinfo
&&
this
.
userinfo
.
RB_Group_id
==
2
)
{
postMsg
.
QCountry
=
"651"
;
}
this
.
apipost
(
"hotel_post_GetHasStockHotelList"
,
{
QCountry
:
"651"
,
IsMoreThanZero
:
1
},
"hotel_post_GetHasStockHotelList"
,
postMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
HotelList
=
res
.
data
.
data
;
...
...
@@ -357,31 +361,36 @@
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
get
ProvinceList
(
ID
,
type
)
{
get
CityList
(
ID
)
{
//根据省份获取城市
let
msg
=
{
Id
:
ID
};
if
(
type
==
1
)
{
this
.
msg
.
Province
=
0
;
this
.
msg
.
City
=
0
;
this
.
provinceList
=
[];
this
.
cityList
=
[];
}
else
if
(
type
==
2
)
{
this
.
msg
.
City
=
0
;
this
.
cityList
=
[];
}
this
.
cityList
=
[];
this
.
apipost
(
"dict_post_Destination_GetChildList"
,
msg
,
res
=>
{
if
(
type
==
1
)
{
this
.
provinceList
=
res
.
data
.
data
;
}
else
if
(
type
==
2
)
{
this
.
cityList
=
res
.
data
.
data
;
}
this
.
cityList
=
res
.
data
.
data
;
},
);
},
getProvinceList
(
countryId
)
{
//根据省份获取城市
this
.
provinceList
=
[];
let
msg
=
{
CodeLevel
:
2
,
ParentID
:
0
};
if
(
countryId
&&
countryId
>
0
)
{
msg
.
ParentID
=
countryId
;
}
this
.
apipost
(
"dict_get_Destination_GetCityExtList"
,
msg
,
res
=>
{
this
.
provinceList
=
res
.
data
.
data
;
},
err
=>
{}
);
},
//Excel下载
...
...
@@ -398,6 +407,9 @@
});
},
},
created
()
{
this
.
userinfo
=
this
.
getLocalStorage
();
},
mounted
()
{
// crm自动登陆传过来的参数
if
(
this
.
$route
.
query
.
crmOrderObj
)
{
...
...
@@ -405,12 +417,19 @@
}
this
.
HotelLength
=
localStorage
.
getItem
(
"HotelLength"
)
?
localStorage
.
getItem
(
"HotelLength"
)
:
0
let
userinfo
=
this
.
getLocalStorage
();
let
ActionMenuCode
=
userinfo
.
ActionMenuCode
;
let
ActionMenuCode
=
this
.
userinfo
.
ActionMenuCode
;
if
(
ActionMenuCode
.
indexOf
(
"HOTEL_memorandum"
)
!=
-
1
)
{
this
.
HOTEL_memorandum
=
true
;
}
this
.
getProvinceList
(
"651"
,
1
);
if
(
this
.
userinfo
&&
this
.
userinfo
.
RB_Group_id
==
2
)
{
this
.
getProvinceList
(
651
,
1
);
this
.
msg
.
Country
=
"651"
;
}
else
{
this
.
getProvinceList
(
0
,
1
);
this
.
msg
.
Country
=
"0"
;
}
this
.
getList
();
this
.
com_onresize
();
window
.
onresize
=
()
=>
{
...
...
src/components/Hotel/singleProduct/components/hotelTableList.vue
View file @
b7113c5f
<
template
>
<div>
<el-table
:data=
"dataList"
style=
"width:100%"
border
ref=
"mytable"
key=
"HotelId"
:height=
"tableHeight"
>
<el-table
:data=
"dataList"
style=
"width:100%"
border
ref=
"mytable"
key=
"HotelId"
:height=
"tableHeight"
>
<el-table-column
fixed
:label=
"$t('hotel.hotel_name')"
min-width=
"180"
>
<template
slot-scope=
"scope"
>
<div
style=
"text-decoration: underline;cursor:pointer"
@
click=
"showHotelDetailHandler(scope.row.HotelId)"
>
...
...
@@ -18,54 +16,54 @@
<div
class=
"Hotel_kong"
>
{{
$t
(
'objFill.chaodin'
)
}}
</div>
</
template
>
</el-table-column>
<el-table-column
v-for=
'(item,index) in dataList[0].subList'
:label=
"getDateList(item.DateStr)"
:key=
'index'
min-width=
"120"
>
<
template
slot-scope=
"scope"
>
<div
@
click=
"showOrderSubmitHandler(scope.row,index,0)"
>
<div
class=
"Hotel_kong Com_hoteldiv"
>
<template
v-if=
"scope.row.subList[index].PriceList.length>0"
>
<template
v-for=
"childItem in scope.row.subList[index].PriceList"
>
<div
:class=
"getClass(1,childItem.InventoryType)"
:style=
"
{width:(100/scope.row.subList[index].PriceList.length)+'%'}" class="CostPriceHover">
<el-popover
placement=
"bottom"
width=
"300"
trigger=
"hover"
>
<SamplePriceList
v-if=
"
<
template
v-if=
"dataList&&dataList.length>0"
>
<el-table-column
v-for=
'(item,index) in dataList[0].subList'
:label=
"getDateList(item.DateStr)"
:key=
'index'
min-width=
"120"
>
<template
slot-scope=
"scope"
>
<div
@
click=
"showOrderSubmitHandler(scope.row,index,0)"
>
<div
class=
"Hotel_kong Com_hoteldiv"
>
<template
v-if=
"scope.row.subList[index].PriceList.length>0"
>
<template
v-for=
"childItem in scope.row.subList[index].PriceList"
>
<div
:class=
"getClass(1,childItem.InventoryType)"
:style=
"
{width:(100/scope.row.subList[index].PriceList.length)+'%'}" class="CostPriceHover">
<el-popover
placement=
"bottom"
width=
"300"
trigger=
"hover"
>
<SamplePriceList
v-if=
"
scope.row.subList[index].PriceList[0].BidroomPrice>0||
scope.row.subList[index].PriceList[0].SingleroomPrice>0||
scope.row.subList[index].PriceList[0].AddBedPrice>0||
scope.row.subList[index].PriceList[0].GuideRoomPrice>0"
:price=
"scope.row.subList[index]"
></SamplePriceList>
<div
v-else
style=
"text-align: center;width: 100%;"
>
{{
$t
(
'objFill.wuqitafangxingbj'
)
}}
</div>
<span
slot=
"reference"
class=
"CostPriceHover"
>
{{
childItem
.
CostPrice
}}
</span>
</el-popover>
scope.row.subList[index].PriceList[0].GuideRoomPrice>0"
:price=
"scope.row.subList[index]"
>
</SamplePriceList>
<div
v-else
style=
"text-align: center;width: 100%;"
>
{{
$t
(
'objFill.wuqitafangxingbj'
)
}}
</div>
<span
slot=
"reference"
class=
"CostPriceHover"
>
{{
childItem
.
CostPrice
}}
</span>
</el-popover>
</div>
</
template
>
</template>
<
template
v-else
>
<div
:class=
"getClass(0,0)"
style=
"width:100%;height:100%"
>
</div>
</
template
>
</div>
</
template
>
</template>
<
template
v-else
>
<div
:class=
"getClass(0,0)"
style=
"width:100%;height:100%"
>
</div>
</
template
>
</div>
<div
class=
"Hotel_kong Com_hoteldiv Hq_duoge"
>
{{scope.row.subList[index].Inventory}}/{{scope.row.subList[index].UseInventory}}/{{scope.row.subList[index].RemainingInventory}}
</div>
<div
class=
"Hotel_kong Com_hoteldiv"
>
{{scope.row.subList[index].ConfirmNum}}/{{scope.row.subList[index].ReserveNum}}
</div>
<div
class=
"Hotel_kong Com_hoteldiv"
>
<span
v-if=
"scope.row.subList[index].UseInventory-scope.row.subList[index].Inventory>0"
style=
"color:red;"
>
{{scope.row.subList[index].UseInventory-scope.row.subList[index].Inventory}}
</span>
</div>
</div>
</template>
</el-table-column>
<div
class=
"Hotel_kong Com_hoteldiv Hq_duoge"
>
{{scope.row.subList[index].Inventory}}/{{scope.row.subList[index].UseInventory}}/{{scope.row.subList[index].RemainingInventory}}
</div>
<div
class=
"Hotel_kong Com_hoteldiv"
>
{{scope.row.subList[index].ConfirmNum}}/{{scope.row.subList[index].ReserveNum}}
</div>
<div
class=
"Hotel_kong Com_hoteldiv"
>
<span
v-if=
"scope.row.subList[index].UseInventory-scope.row.subList[index].Inventory>0"
style=
"color:red;"
>
{{scope.row.subList[index].UseInventory-scope.row.subList[index].Inventory}}
</span>
</div>
</div>
</template>
</el-table-column>
</template>
</el-table>
<!-- 酒店详情信息 -->
<el-dialog
custom-class=
"w800"
:title=
"$t('objFill.jiudianxiangqing')"
:visible
.
sync=
"showHotelDetails"
center
@
close=
"close"
>
<el-dialog
custom-class=
"w800"
:title=
"$t('objFill.jiudianxiangqing')"
:visible
.
sync=
"showHotelDetails"
center
@
close=
"close"
>
<hotelDetails
:hotelId=
"HotelDetailId"
></hotelDetails>
</el-dialog>
</div>
...
...
@@ -74,8 +72,11 @@
import
SamplePriceList
from
'./SamplePriceList'
import
hotelDetails
from
'./hotelDetails'
export
default
{
components
:
{
SamplePriceList
,
hotelDetails
},
props
:[
'list'
,
'tableHeight'
],
components
:
{
SamplePriceList
,
hotelDetails
},
props
:
[
'list'
,
'tableHeight'
],
data
()
{
return
{
showHotelDetails
:
false
,
...
...
@@ -84,15 +85,15 @@
};
},
watch
:
{
list
:{
handler
(
val
,
oldVal
){
list
:
{
handler
(
val
,
oldVal
)
{
this
.
dataList
=
val
let
_this
=
this
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
_this
.
$refs
.
mytable
.
doLayout
();
})
},
200
)
},
200
)
},
deep
:
true
,
immediate
:
true
,
...
...
@@ -100,29 +101,31 @@
},
methods
:
{
// 酒店信息详情
showHotelDetailHandler
(
hotelId
){
showHotelDetailHandler
(
hotelId
)
{
this
.
HotelDetailId
=
hotelId
this
.
showHotelDetails
=
true
},
// 取消
close
(){
close
()
{
this
.
showHotelDetails
=
false
},
// 加入购物车
showOrderSubmitHandler
(
row
,
index
,
type
)
{
this
.
$emit
(
'showOrderSubmitHandler'
,
row
,
index
,
type
)
showOrderSubmitHandler
(
row
,
index
,
type
)
{
this
.
$emit
(
'showOrderSubmitHandler'
,
row
,
index
,
type
)
},
//格式化返回显示日期
getDateList
(
dateStr
)
{
var
str
=
dateStr
.
split
(
'-'
);
var
weekDay
=
[
this
.
$t
(
'objFill.Sunday'
),
this
.
$t
(
'objFill.Monday'
),
this
.
$t
(
'objFill.Tuesday'
),
this
.
$t
(
'objFill.Wednesday'
),
this
.
$t
(
'objFill.Thursday'
),
this
.
$t
(
'objFill.Friday'
),
this
.
$t
(
'objFill.Saturday'
)];
var
weekDay
=
[
this
.
$t
(
'objFill.Sunday'
),
this
.
$t
(
'objFill.Monday'
),
this
.
$t
(
'objFill.Tuesday'
),
this
.
$t
(
'objFill.Wednesday'
),
this
.
$t
(
'objFill.Thursday'
),
this
.
$t
(
'objFill.Friday'
),
this
.
$t
(
'objFill.Saturday'
)];
var
myDate
=
new
Date
(
Date
.
parse
(
dateStr
));
return
str
[
1
]
+
'/'
+
str
[
2
]
+
"("
+
weekDay
[
myDate
.
getDay
()]
+
")"
;
},
//获取星期几
getWeek
(
dateStr
)
{
var
weekDay
=
[
this
.
$t
(
'objFill.Sunday'
),
this
.
$t
(
'objFill.Monday'
),
this
.
$t
(
'objFill.Tuesday'
),
this
.
$t
(
'objFill.Wednesday'
),
this
.
$t
(
'objFill.Thursday'
),
this
.
$t
(
'objFill.Friday'
),
this
.
$t
(
'objFill.Saturday'
)];
var
weekDay
=
[
this
.
$t
(
'objFill.Sunday'
),
this
.
$t
(
'objFill.Monday'
),
this
.
$t
(
'objFill.Tuesday'
),
this
.
$t
(
'objFill.Wednesday'
),
this
.
$t
(
'objFill.Thursday'
),
this
.
$t
(
'objFill.Friday'
),
this
.
$t
(
'objFill.Saturday'
)];
var
myDate
=
new
Date
(
Date
.
parse
(
dateStr
));
return
weekDay
[
myDate
.
getDay
()]
},
...
...
@@ -156,7 +159,7 @@
},
},
mounted
()
{
}
};
...
...
@@ -192,9 +195,11 @@
.classTe
{
background-color
:
rgb
(
2
,
247
,
142
);
}
.hotelQueryListclass6
{
background-color
:
#808000
;
background-color
:
#808000
;
}
.HouseTypeList
{
background
:
#ccc
;
width
:
100%
;
...
...
@@ -290,12 +295,12 @@
.HotelQueryList
.el-table
td
{
padding
:
0
;
}
.CostPriceHover
{
height
:
100%
;
float
:
left
;
width
:
100%
;
.CostPriceHover
{
height
:
100%
;
float
:
left
;
width
:
100%
;
cursor
:
pointer
;
}
</
style
>
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