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
91511d1e
Commit
91511d1e
authored
Mar 13, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
酒店新增散客价
parent
65565ff4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1330 additions
and
1105 deletions
+1330
-1105
HotelProductManage2.vue
src/components/Hotel/HotelProductManage2.vue
+1330
-1105
No files found.
src/components/Hotel/HotelProductManage2.vue
View file @
91511d1e
...
@@ -42,7 +42,8 @@
...
@@ -42,7 +42,8 @@
</div>
</div>
<div
class=
"calendarItem_day"
>
<div
class=
"calendarItem_day"
>
<div
v-for=
"(item2, index2) in item.days"
:key=
"index2"
:class=
"item2.month===item.date?'nowMonth':'otherMonth'"
>
<div
v-for=
"(item2, index2) in item.days"
:key=
"index2"
:class=
"item2.month===item.date?'nowMonth':'otherMonth'"
>
<div
:class=
"stockColor(item, item2)"
:style=
"item2.month===item.date&&msg2.DateList.indexOf(item2.day)!==-1?'border-color: green':''"
@
click=
"calendarDayOn(item, item2)"
>
{{
item2
.
date
.
getDate
()
}}
</div>
<div
:class=
"stockColor(item, item2)"
:style=
"item2.month===item.date&&msg2.DateList.indexOf(item2.day)!==-1?'border-color: green':''"
@
click=
"calendarDayOn(item, item2)"
>
{{
item2
.
date
.
getDate
()
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -55,11 +56,9 @@
...
@@ -55,11 +56,9 @@
<div
class=
"hotelProductManage2_edit2_header"
>
<div
class=
"hotelProductManage2_edit2_header"
>
<div>
报价管理
</div>
<div>
报价管理
</div>
<div>
<div>
<input
type=
"button"
value=
"批量删除"
@
click=
"delete2Reset()"
class=
"hollowbtn"
/>
<input
type=
"button"
value=
"批量删除"
@
click=
"delete2Reset()"
class=
"hollowbtn"
/>
<input
type=
"button"
value=
"重置"
@
click=
"edit2Reset()"
class=
"hollowFixedBtn"
/>
<input
type=
"button"
value=
"重置"
@
click=
"edit2Reset()"
class=
"hollowFixedBtn"
/>
<input
type=
"button"
value=
"保存"
@
click=
"edit2Save()"
class=
"normalBtn"
/>
<input
type=
"button"
value=
"保存"
@
click=
"edit2Save()"
class=
"normalBtn"
/>
<!--
<div
@
click=
"edit2Reset()"
>
重置
</div>
<div
@
click=
"edit2Save()"
>
保存
</div>
-->
</div>
</div>
</div>
</div>
<el-form
:model=
"msg2"
:rules=
"rules2"
:inline=
"true"
label-width=
"130px"
ref=
"hotelProductForm2"
class=
"hotelProductManage2_edit2_form"
>
<el-form
:model=
"msg2"
:rules=
"rules2"
:inline=
"true"
label-width=
"130px"
ref=
"hotelProductForm2"
class=
"hotelProductManage2_edit2_form"
>
...
@@ -81,7 +80,8 @@
...
@@ -81,7 +80,8 @@
</el-col>
</el-col>
<el-col
:span=
"24"
class=
"HotelProductEdit_date"
>
<el-col
:span=
"24"
class=
"HotelProductEdit_date"
>
<el-form-item
label=
"已选日期"
prop=
"DateList"
>
<el-form-item
label=
"已选日期"
prop=
"DateList"
>
<el-tag
v-for=
"(item, key) in msg2.DateList"
:key=
"key"
type=
"info"
style=
"margin: 0 5px 0 0;"
closable
@
close=
"calendarDayOff(item)"
>
{{
item
}}
</el-tag>
<el-tag
v-for=
"(item, key) in msg2.DateList"
:key=
"key"
type=
"info"
style=
"margin: 0 5px 0 0;"
closable
@
close=
"calendarDayOff(item)"
>
{{
item
}}
</el-tag>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -91,6 +91,11 @@
...
@@ -91,6 +91,11 @@
<el-input-number
v-model=
"msg2.CostPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
<el-input-number
v-model=
"msg2.CostPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"散客价"
>
<el-input-number
v-model=
"msg2.SanKePrice"
:precision=
"2"
:min=
"0"
></el-input-number>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"大床间成本价"
prop=
"BidroomPrice"
>
<el-form-item
label=
"大床间成本价"
prop=
"BidroomPrice"
>
<el-input-number
v-model=
"msg2.BidroomPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
<el-input-number
v-model=
"msg2.BidroomPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
...
@@ -256,7 +261,8 @@
...
@@ -256,7 +261,8 @@
</div>
</div>
<div
v-show=
"msg.DayType==='4'"
>
<div
v-show=
"msg.DayType==='4'"
>
<el-form-item
label=
"自定义"
prop=
"StartDate"
>
<el-form-item
label=
"自定义"
prop=
"StartDate"
>
<el-date-picker
v-model=
"msg.StartDate"
type=
"date"
placeholder=
"选择开始时间"
format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
></el-date-picker>
<el-date-picker
v-model=
"msg.StartDate"
type=
"date"
placeholder=
"选择开始时间"
format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
</el-form-item>
<em>
-
</em>
<em>
-
</em>
<el-form-item
label=
""
prop=
"EndDate"
>
<el-form-item
label=
""
prop=
"EndDate"
>
...
@@ -271,6 +277,11 @@
...
@@ -271,6 +277,11 @@
<el-input-number
v-model=
"msg.CostPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
<el-input-number
v-model=
"msg.CostPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"散客价"
>
<el-input-number
v-model=
"msg.SanKePrice"
:precision=
"2"
:min=
"0"
></el-input-number>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"大床间成本价"
prop=
"BidroomPrice"
>
<el-form-item
label=
"大床间成本价"
prop=
"BidroomPrice"
>
<el-input-number
v-model=
"msg.BidroomPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
<el-input-number
v-model=
"msg.BidroomPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
...
@@ -365,7 +376,7 @@
...
@@ -365,7 +376,7 @@
components
:
{
components
:
{
HotelProductCalendar
HotelProductCalendar
},
},
data
()
{
data
()
{
var
emptyJudge
=
(
rule
,
value
,
callback
)
=>
{
var
emptyJudge
=
(
rule
,
value
,
callback
)
=>
{
let
regPos
=
/^
\d
+
(\.\d
+
)?
$/
;
let
regPos
=
/^
\d
+
(\.\d
+
)?
$/
;
if
(
!
regPos
.
test
(
value
))
{
if
(
!
regPos
.
test
(
value
))
{
...
@@ -468,7 +479,8 @@
...
@@ -468,7 +479,8 @@
Year
:
''
,
Year
:
''
,
Month
:
''
,
Month
:
''
,
Week
:
''
,
Week
:
''
,
DateList
:
[]
DateList
:
[],
SanKePrice
:
0
,
//散客价
},
},
msg2
:
{
msg2
:
{
Hotel
:
'0'
,
Hotel
:
'0'
,
...
@@ -495,48 +507,197 @@
...
@@ -495,48 +507,197 @@
Year
:
''
,
Year
:
''
,
Month
:
''
,
Month
:
''
,
Week
:
''
,
Week
:
''
,
DateList
:
[]
DateList
:
[],
SanKePrice
:
0
,
//散客价
},
},
rules
:
{
rules
:
{
InventoryType
:
{
validator
:
emptyJudge
,
message
:
'请选择库存类型'
,
trigger
:
'blur'
},
InventoryType
:
{
DayType
:
{
validator
:
emptyJudge
,
message
:
'请选择日期选择方式'
,
trigger
:
'blur'
},
validator
:
emptyJudge
,
Year
:
{
validator
:
dateJudge
,
message
:
'请选择年'
,
trigger
:
'blur'
},
message
:
'请选择库存类型'
,
Month
:
{
validator
:
dateJudge
,
message
:
'请选择月'
,
trigger
:
'blur'
},
trigger
:
'blur'
Week
:
{
validator
:
dateJudge
,
message
:
'请选择周'
,
trigger
:
'blur'
},
},
StartDate
:
{
validator
:
dateJudge
,
message
:
'请选择开始时间'
,
trigger
:
'blur'
},
DayType
:
{
EndDate
:
{
validator
:
dateJudge
,
message
:
'请选择结束时间'
,
trigger
:
'blur'
},
validator
:
emptyJudge
,
Inventory
:
{
validator
:
emptyJudge
,
message
:
'请输入库存'
,
trigger
:
'blur'
},
message
:
'请选择日期选择方式'
,
CostPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入标准间成本价'
,
trigger
:
'blur'
},
trigger
:
'blur'
BidroomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入大床间成本价:'
,
trigger
:
'blur'
},
},
SingleroomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入单人间成本价'
,
trigger
:
'blur'
},
Year
:
{
ChildNotBedPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入小孩不占床成本价'
,
trigger
:
'blur'
},
validator
:
dateJudge
,
AddBedPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入加床成本价'
,
trigger
:
'blur'
},
message
:
'请选择年'
,
DriverRoomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入司机房成本价'
,
trigger
:
'blur'
},
trigger
:
'blur'
GuideRoomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入导游房成本价'
,
trigger
:
'blur'
},
},
CurrencyId
:
{
validator
:
emptyJudge
,
message
:
'请选择成本币种'
,
trigger
:
'blur'
},
Month
:
{
CurrentRate
:
{
validator
:
emptyJudge
,
message
:
'请输入汇率'
,
trigger
:
'blur'
},
validator
:
dateJudge
,
WeekendAddPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入周末加价'
,
trigger
:
'blur'
},
message
:
'请选择月'
,
InteriorAddPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入内部加价'
,
trigger
:
'blur'
},
trigger
:
'blur'
B2BPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入B2B加价'
,
trigger
:
'blur'
},
},
B2CPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入B2C加价'
,
trigger
:
'blur'
},
Week
:
{
validator
:
dateJudge
,
message
:
'请选择周'
,
trigger
:
'blur'
},
StartDate
:
{
validator
:
dateJudge
,
message
:
'请选择开始时间'
,
trigger
:
'blur'
},
EndDate
:
{
validator
:
dateJudge
,
message
:
'请选择结束时间'
,
trigger
:
'blur'
},
Inventory
:
{
validator
:
emptyJudge
,
message
:
'请输入库存'
,
trigger
:
'blur'
},
CostPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入标准间成本价'
,
trigger
:
'blur'
},
BidroomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入大床间成本价:'
,
trigger
:
'blur'
},
SingleroomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入单人间成本价'
,
trigger
:
'blur'
},
ChildNotBedPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入小孩不占床成本价'
,
trigger
:
'blur'
},
AddBedPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入加床成本价'
,
trigger
:
'blur'
},
DriverRoomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入司机房成本价'
,
trigger
:
'blur'
},
GuideRoomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入导游房成本价'
,
trigger
:
'blur'
},
CurrencyId
:
{
validator
:
emptyJudge
,
message
:
'请选择成本币种'
,
trigger
:
'blur'
},
CurrentRate
:
{
validator
:
emptyJudge
,
message
:
'请输入汇率'
,
trigger
:
'blur'
},
WeekendAddPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入周末加价'
,
trigger
:
'blur'
},
InteriorAddPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入内部加价'
,
trigger
:
'blur'
},
B2BPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入B2B加价'
,
trigger
:
'blur'
},
B2CPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入B2C加价'
,
trigger
:
'blur'
},
},
},
rules2
:
{
rules2
:
{
InventoryType
:
{
validator
:
emptyJudge
,
message
:
'请选择库存类型'
,
trigger
:
'blur'
},
InventoryType
:
{
DateList
:
{
validator
:
arrJudge
,
message
:
'请选择日期'
,
trigger
:
'blur'
},
validator
:
emptyJudge
,
Inventory
:
{
validator
:
emptyJudge
,
message
:
'请输入库存'
,
trigger
:
'blur'
},
message
:
'请选择库存类型'
,
CostPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入标准间成本价'
,
trigger
:
'blur'
},
trigger
:
'blur'
BidroomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入大床间成本价:'
,
trigger
:
'blur'
},
},
SingleroomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入单人间成本价'
,
trigger
:
'blur'
},
DateList
:
{
ChildNotBedPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入小孩不占床成本价'
,
trigger
:
'blur'
},
validator
:
arrJudge
,
AddBedPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入加床成本价'
,
trigger
:
'blur'
},
message
:
'请选择日期'
,
DriverRoomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入司机房成本价'
,
trigger
:
'blur'
},
trigger
:
'blur'
GuideRoomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入导游房成本价'
,
trigger
:
'blur'
},
},
CurrencyId
:
{
validator
:
emptyJudge
,
message
:
'请选择成本币种'
,
trigger
:
'blur'
},
Inventory
:
{
CurrentRate
:
{
validator
:
emptyJudge
,
message
:
'请输入汇率'
,
trigger
:
'blur'
},
validator
:
emptyJudge
,
WeekendAddPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入周末加价'
,
trigger
:
'blur'
},
message
:
'请输入库存'
,
InteriorAddPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入内部加价'
,
trigger
:
'blur'
},
trigger
:
'blur'
B2BPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入B2B加价'
,
trigger
:
'blur'
},
},
B2CPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入B2C加价'
,
trigger
:
'blur'
},
CostPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入标准间成本价'
,
trigger
:
'blur'
},
BidroomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入大床间成本价:'
,
trigger
:
'blur'
},
SingleroomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入单人间成本价'
,
trigger
:
'blur'
},
ChildNotBedPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入小孩不占床成本价'
,
trigger
:
'blur'
},
AddBedPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入加床成本价'
,
trigger
:
'blur'
},
DriverRoomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入司机房成本价'
,
trigger
:
'blur'
},
GuideRoomPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入导游房成本价'
,
trigger
:
'blur'
},
CurrencyId
:
{
validator
:
emptyJudge
,
message
:
'请选择成本币种'
,
trigger
:
'blur'
},
CurrentRate
:
{
validator
:
emptyJudge
,
message
:
'请输入汇率'
,
trigger
:
'blur'
},
WeekendAddPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入周末加价'
,
trigger
:
'blur'
},
InteriorAddPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入内部加价'
,
trigger
:
'blur'
},
B2BPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入B2B加价'
,
trigger
:
'blur'
},
B2CPrice
:
{
validator
:
emptyJudge
,
message
:
'请输入B2C加价'
,
trigger
:
'blur'
},
},
},
allCurrencyList
:
[],
allCurrencyList
:
[],
SupplierList
:
[]
SupplierList
:
[]
...
@@ -575,11 +736,11 @@
...
@@ -575,11 +736,11 @@
this
.
msg2
.
DateList
.
splice
(
dayIndex
,
1
)
this
.
msg2
.
DateList
.
splice
(
dayIndex
,
1
)
},
},
getData
:
function
(
date
,
key
)
{
getData
:
function
(
date
,
key
)
{
this
.
apipost
(
'hotelreport_get_GetHotelPriceMonthStatistics'
,
{
this
.
apipost
(
'hotelreport_get_GetHotelPriceMonthStatistics'
,
{
HotelId
:
this
.
hotelId
,
HotelId
:
this
.
hotelId
,
Year
:
date
.
split
(
'-'
)[
0
],
Year
:
date
.
split
(
'-'
)[
0
],
Month
:
date
.
split
(
'-'
)[
1
]
Month
:
date
.
split
(
'-'
)[
1
]
},
res
=>
{
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
let
json
=
res
.
data
.
data
let
json
=
res
.
data
.
data
this
.
hotelInfo
.
HotelName
=
json
.
HotelName
this
.
hotelInfo
.
HotelName
=
json
.
HotelName
...
@@ -636,7 +797,15 @@
...
@@ -636,7 +797,15 @@
this
.
calendar
.
show
=
true
this
.
calendar
.
show
=
true
},
},
goUrlA
:
function
()
{
goUrlA
:
function
()
{
this
.
$router
.
push
({
name
:
'HotelProductEdit'
,
query
:
{
type
:
'1'
,
HotelId
:
this
.
hotelId
,
blank
:
'y'
,
tab
:
'报价管理'
}
});
this
.
$router
.
push
({
name
:
'HotelProductEdit'
,
query
:
{
type
:
'1'
,
HotelId
:
this
.
hotelId
,
blank
:
'y'
,
tab
:
'报价管理'
}
});
},
},
// 获取详情
// 获取详情
getDetail
:
function
(
date
)
{
getDetail
:
function
(
date
)
{
...
@@ -645,8 +814,9 @@
...
@@ -645,8 +814,9 @@
Time
:
date
Time
:
date
},
res
=>
{
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
let
data
=
res
.
data
.
data
let
data
=
res
.
data
.
data
;
this
.
msg
.
Supplier
=
data
.
Supplier
===
0
?
'0'
:
data
.
Supplier
console
.
log
(
"data"
,
data
)
this
.
msg
.
Supplier
=
data
.
Supplier
===
0
?
'0'
:
data
.
Supplier
this
.
msg
.
Inventory
=
data
.
Inventory
this
.
msg
.
Inventory
=
data
.
Inventory
this
.
msg
.
B2BPrice
=
data
.
B2BPrice
this
.
msg
.
B2BPrice
=
data
.
B2BPrice
this
.
msg
.
B2CPrice
=
data
.
B2CPrice
this
.
msg
.
B2CPrice
=
data
.
B2CPrice
...
@@ -664,7 +834,8 @@
...
@@ -664,7 +834,8 @@
this
.
msg
.
DriverRoomPrice
=
data
.
DriverRoomPrice
this
.
msg
.
DriverRoomPrice
=
data
.
DriverRoomPrice
this
.
msg
.
WeekendAddPrice
=
data
.
WeekendAddPrice
this
.
msg
.
WeekendAddPrice
=
data
.
WeekendAddPrice
this
.
msg
.
InteriorAddPrice
=
data
.
InteriorAddPrice
this
.
msg
.
InteriorAddPrice
=
data
.
InteriorAddPrice
this
.
msg
.
GuideRoomPrice
=
data
.
GuideRoomPrice
this
.
msg
.
GuideRoomPrice
=
data
.
GuideRoomPrice
;
this
.
msg
.
SanKePrice
=
data
.
SanKePrice
;
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
...
@@ -680,13 +851,13 @@
...
@@ -680,13 +851,13 @@
},
},
//获取所有币种
//获取所有币种
getAllCurrency
()
{
getAllCurrency
()
{
this
.
apipost
(
"financeinfo_post_GetList"
,{},
res
=>
{
this
.
apipost
(
"financeinfo_post_GetList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
allCurrencyList
=
res
.
data
.
data
;
this
.
allCurrencyList
=
res
.
data
.
data
;
}
else
{
}
else
{
this
.
$message
.
error
(
'币种获取失败'
)
this
.
$message
.
error
(
'币种获取失败'
)
}
}
},
err
=>
{});
},
err
=>
{});
},
},
// 币种切换
// 币种切换
currencyChange
:
function
(
val
)
{
currencyChange
:
function
(
val
)
{
...
@@ -708,19 +879,21 @@
...
@@ -708,19 +879,21 @@
},
},
// 获取供应商
// 获取供应商
initSupplier
()
{
initSupplier
()
{
this
.
apipost
(
"supplier_post_GetAllList"
,{
Type
:
1
},
res
=>
{
this
.
apipost
(
"supplier_post_GetAllList"
,
{
Type
:
1
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
SupplierList
=
res
.
data
.
data
;
this
.
SupplierList
=
res
.
data
.
data
;
}
else
{
}
else
{
this
.
$message
.
error
(
'供应商获取失败'
)
this
.
$message
.
error
(
'供应商获取失败'
)
}
}
},
err
=>
{});
},
err
=>
{});
},
},
// 打开编辑窗口
// 打开编辑窗口
goEdit
:
function
(
type
,
date
)
{
goEdit
:
function
(
type
,
date
)
{
let
nowDate
=
new
Date
().
Format
(
'yyyy-MM-dd'
)
let
nowDate
=
new
Date
().
Format
(
'yyyy-MM-dd'
)
this
.
msg
.
StartDate
=
date
===
undefined
?
nowDate
:
date
this
.
msg
.
StartDate
=
date
===
undefined
?
nowDate
:
date
this
.
msg
.
EndDate
=
date
===
undefined
?
nowDate
:
date
this
.
msg
.
EndDate
=
date
===
undefined
?
nowDate
:
date
if
(
type
===
'2'
&&
date
)
{
if
(
type
===
'2'
&&
date
)
{
this
.
getDetail
(
date
)
this
.
getDetail
(
date
)
}
}
...
@@ -755,21 +928,21 @@
...
@@ -755,21 +928,21 @@
this
.
$refs
[
'hotelProductForm2'
].
resetFields
()
this
.
$refs
[
'hotelProductForm2'
].
resetFields
()
},
},
//批量删除
//批量删除
delete2Reset
:
function
()
{
delete2Reset
:
function
()
{
this
.
$confirm
(
'是否删除?'
,
'提示'
,
{
this
.
$confirm
(
'是否删除?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
apipost
(
'dict_post_HotelOffer_RemoveNewHotelPrice'
,
this
.
msg2
,
res
=>
{
this
.
apipost
(
'dict_post_HotelOffer_RemoveNewHotelPrice'
,
this
.
msg2
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
)
this
.
$message
.
success
(
res
.
data
.
message
)
this
.
getMonths
()
this
.
getMonths
()
this
.
$refs
[
'hotelProductForm2'
].
resetFields
()
this
.
$refs
[
'hotelProductForm2'
].
resetFields
()
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
},
err
=>
{})
},
err
=>
{})
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
$message
({
this
.
$message
({
type
:
'info'
,
type
:
'info'
,
...
@@ -797,9 +970,9 @@
...
@@ -797,9 +970,9 @@
},
},
},
},
created
:
function
()
{
created
:
function
()
{
this
.
hotelId
=
this
.
$route
.
query
.
id
===
undefined
?
'0'
:
this
.
$route
.
query
.
id
this
.
hotelId
=
this
.
$route
.
query
.
id
===
undefined
?
'0'
:
this
.
$route
.
query
.
id
this
.
msg
.
Hotel
=
this
.
$route
.
query
.
id
===
undefined
?
'0'
:
this
.
$route
.
query
.
id
this
.
msg
.
Hotel
=
this
.
$route
.
query
.
id
===
undefined
?
'0'
:
this
.
$route
.
query
.
id
this
.
msg2
.
Hotel
=
this
.
$route
.
query
.
id
===
undefined
?
'0'
:
this
.
$route
.
query
.
id
this
.
msg2
.
Hotel
=
this
.
$route
.
query
.
id
===
undefined
?
'0'
:
this
.
$route
.
query
.
id
this
.
condition
.
month
=
new
Date
().
Format
(
'yyyy-MM'
)
this
.
condition
.
month
=
new
Date
().
Format
(
'yyyy-MM'
)
let
nowDate
=
new
Date
().
Format
(
'yyyy-MM-dd'
)
let
nowDate
=
new
Date
().
Format
(
'yyyy-MM-dd'
)
this
.
msg
.
DayType
=
'4'
this
.
msg
.
DayType
=
'4'
...
@@ -812,20 +985,23 @@
...
@@ -812,20 +985,23 @@
this
.
initSupplier
()
this
.
initSupplier
()
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
.hotelProductManage2
{
.hotelProductManage2
{
padding
:
20px
0
;
padding
:
20px
0
;
}
}
.hotelProductManage2
>
.hotelProductManage2_btnList
{
.hotelProductManage2
>
.hotelProductManage2_btnList
{
position
:
fixed
;
position
:
fixed
;
top
:
36px
;
top
:
36px
;
right
:
20px
;
right
:
20px
;
text-align
:
right
;
text-align
:
right
;
margin
:
20px
0
0
0
;
margin
:
20px
0
0
0
;
}
}
.hotelProductManage2_btnList
>
.btn_check
{
.hotelProductManage2_btnList
>
.btn_check
{
display
:
inline-block
;
display
:
inline-block
;
margin
:
0
0
0
10px
;
margin
:
0
0
0
10px
;
padding
:
0
15px
;
padding
:
0
15px
;
...
@@ -838,31 +1014,38 @@
...
@@ -838,31 +1014,38 @@
border-radius
:
15px
;
border-radius
:
15px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.hotelProductManage2_condition
{
.hotelProductManage2_condition
{
padding
:
0
0
0
0
;
padding
:
0
0
0
0
;
text-align
:
right
;
text-align
:
right
;
}
}
.hotelProductManage2_condition
>
div
{
.hotelProductManage2_condition
>
div
{
display
:
inline-block
;
display
:
inline-block
;
text-align
:
left
;
text-align
:
left
;
}
}
.hotelProductManage2_condition
>
div
>
em
{
.hotelProductManage2_condition
>
div
>
em
{
margin
:
0
5px
0
0
;
margin
:
0
5px
0
0
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#666666
;
color
:
#666666
;
}
}
.hotelProductManage2_tableBox
{
.hotelProductManage2_tableBox
{
padding
:
20px
0
;
padding
:
20px
0
;
}
}
.hotelProductManage2_table
{
.hotelProductManage2_table
{
width
:
100%
;
width
:
100%
;
color
:
#333
;
color
:
#333
;
border-bottom
:
1px
solid
#cccccc
;
border-bottom
:
1px
solid
#cccccc
;
border-right
:
1px
solid
#cccccc
;
border-right
:
1px
solid
#cccccc
;
}
}
.hotelProductManage2_table
tr
{
.hotelProductManage2_table
tr
{
background
:
#fff
;
background
:
#fff
;
}
}
.hotelProductManage2_table
tr
th
{
.hotelProductManage2_table
tr
th
{
background
:
#e6e6e6
;
background
:
#e6e6e6
;
height
:
40px
;
height
:
40px
;
...
@@ -871,6 +1054,7 @@
...
@@ -871,6 +1054,7 @@
border-top
:
1px
solid
#cccccc
;
border-top
:
1px
solid
#cccccc
;
border-left
:
1px
solid
#cccccc
;
border-left
:
1px
solid
#cccccc
;
}
}
.hotelProductManage2_table
tr
td
{
.hotelProductManage2_table
tr
td
{
height
:
40px
;
height
:
40px
;
font-size
:
12px
;
font-size
:
12px
;
...
@@ -878,14 +1062,16 @@
...
@@ -878,14 +1062,16 @@
border-top
:
1px
solid
#cccccc
;
border-top
:
1px
solid
#cccccc
;
border-left
:
1px
solid
#cccccc
;
border-left
:
1px
solid
#cccccc
;
}
}
.hotelProductManage2_calendar
{
.hotelProductManage2_calendar
{
position
:
relative
;
position
:
relative
;
padding
:
20px
0
;
padding
:
20px
0
;
width
:
100%
;
width
:
100%
;
border-top
:
1px
solid
#E5E5E5
;
border-top
:
1px
solid
#E5E5E5
;
border-bottom
:
1px
solid
#E5E5E5
;
border-bottom
:
1px
solid
#E5E5E5
;
}
}
.hotelProductManage2_calendarBox
{
.hotelProductManage2_calendarBox
{
position
:
absolute
;
position
:
absolute
;
z-index
:
2
;
z-index
:
2
;
left
:
0px
;
left
:
0px
;
...
@@ -893,7 +1079,8 @@
...
@@ -893,7 +1079,8 @@
padding
:
20px
0
;
padding
:
20px
0
;
width
:
100%
;
width
:
100%
;
}
}
.hotelProductManage2_calendarItem
{
.hotelProductManage2_calendarItem
{
display
:
inline-block
;
display
:
inline-block
;
margin
:
0
5px
;
margin
:
0
5px
;
width
:
24%
;
width
:
24%
;
...
@@ -902,10 +1089,12 @@
...
@@ -902,10 +1089,12 @@
border-radius
:
4px
;
border-radius
:
4px
;
font-size
:
0px
;
font-size
:
0px
;
}
}
.hotelProductManage2_calendarItem
:hover
{
.hotelProductManage2_calendarItem
:hover
{
box-shadow
:
0px
0px
5px
5px
#E5E5E5
;
box-shadow
:
0px
0px
5px
5px
#E5E5E5
;
}
}
.hotelProductManage2_calendarItem
>
.calendarItem_month
{
.hotelProductManage2_calendarItem
>
.calendarItem_month
{
width
:
100%
;
width
:
100%
;
height
:
30px
;
height
:
30px
;
line-height
:
30px
;
line-height
:
30px
;
...
@@ -913,14 +1102,16 @@
...
@@ -913,14 +1102,16 @@
font-size
:
14px
;
font-size
:
14px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.hotelProductManage2_calendarItem
>
.calendarItem_week
{
.hotelProductManage2_calendarItem
>
.calendarItem_week
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
justify-content
:
space-around
;
padding
:
10px
0
;
padding
:
10px
0
;
width
:
100%
;
width
:
100%
;
height
:
36px
;
height
:
36px
;
}
}
.hotelProductManage2_calendarItem
>
.calendarItem_week
>
div
{
.hotelProductManage2_calendarItem
>
.calendarItem_week
>
div
{
display
:
inline-block
;
display
:
inline-block
;
width
:
14.2%
;
width
:
14.2%
;
height
:
16px
;
height
:
16px
;
...
@@ -929,17 +1120,20 @@
...
@@ -929,17 +1120,20 @@
font-size
:
14px
;
font-size
:
14px
;
color
:
#999999
;
color
:
#999999
;
}
}
.hotelProductManage2_calendarItem
>
.calendarItem_day
{
.hotelProductManage2_calendarItem
>
.calendarItem_day
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
justify-content
:
space-around
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
}
}
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
div
{
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
div
{
display
:
inline-block
;
display
:
inline-block
;
padding
:
5px
0
;
padding
:
5px
0
;
width
:
14.2%
;
width
:
14.2%
;
}
}
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
div
>
div
{
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
div
>
div
{
margin
:
auto
;
margin
:
auto
;
width
:
30px
;
width
:
30px
;
height
:
30px
;
height
:
30px
;
...
@@ -949,27 +1143,34 @@
...
@@ -949,27 +1143,34 @@
border
:
2px
solid
transparent
;
border
:
2px
solid
transparent
;
border-radius
:
50%
;
border-radius
:
50%
;
}
}
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
.nowMonth
>
div
{
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
.nowMonth
>
div
{
color
:
#000000
;
color
:
#000000
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
.otherMonth
>
div
{
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
.otherMonth
>
div
{
color
:
gainsboro
;
color
:
gainsboro
;
}
}
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
div
>
.hasStock_1
{
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
div
>
.hasStock_1
{
background-color
:
#ff6363
;
background-color
:
#ff6363
;
}
}
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
div
>
.hasStock_2
{
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
div
>
.hasStock_2
{
background-color
:
#ff99cc
;
background-color
:
#ff99cc
;
}
}
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
div
>
.hasStock_3
{
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
div
>
.hasStock_3
{
background-color
:
#bcd6ee
;
background-color
:
#bcd6ee
;
}
}
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
div
>
.hasStock_4
{
.hotelProductManage2_calendarItem
>
.calendarItem_day
>
div
>
.hasStock_4
{
background-color
:
#DDDDDD
;
background-color
:
#DDDDDD
;
}
}
/* 页面编辑 */
/* 页面编辑 */
.hotelProductManage2_edit2
{
.hotelProductManage2_edit2
{
margin
:
20px
0
0
0
;
margin
:
20px
0
0
0
;
padding
:
10px
10px
0
;
padding
:
10px
10px
0
;
width
:
100%
;
width
:
100%
;
...
@@ -978,12 +1179,14 @@
...
@@ -978,12 +1179,14 @@
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
overflow
:
auto
;
overflow
:
auto
;
}
}
.hotelProductManage2_edit2
>
.hotelProductManage2_edit2_header
{
.hotelProductManage2_edit2
>
.hotelProductManage2_edit2_header
{
position
:
relative
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
height
:
30px
;
height
:
30px
;
}
}
.hotelProductManage2_edit2_header
>
div
:nth-child
(
1
)
{
.hotelProductManage2_edit2_header
>
div
:nth-child
(
1
)
{
display
:
inline-block
;
display
:
inline-block
;
padding
:
0
20px
;
padding
:
0
20px
;
width
:
200px
;
width
:
200px
;
...
@@ -992,13 +1195,15 @@
...
@@ -992,13 +1195,15 @@
font-size
:
16px
;
font-size
:
16px
;
border-left
:
3px
solid
#E95252
;
border-left
:
3px
solid
#E95252
;
}
}
.hotelProductManage2_edit2_header
>
div
:nth-child
(
2
)
{
.hotelProductManage2_edit2_header
>
div
:nth-child
(
2
)
{
position
:
absolute
;
position
:
absolute
;
top
:
0px
;
top
:
0px
;
right
:
0px
;
right
:
0px
;
height
:
30px
;
height
:
30px
;
}
}
.hotelProductManage2_edit2_header
>
div
:nth-child
(
2
)>
div
:nth-child
(
1
)
{
.hotelProductManage2_edit2_header
>
div
:nth-child
(
2
)>
div
:nth-child
(
1
)
{
display
:
inline-block
;
display
:
inline-block
;
margin
:
0
5px
;
margin
:
0
5px
;
padding
:
0
15px
;
padding
:
0
15px
;
...
@@ -1012,7 +1217,8 @@
...
@@ -1012,7 +1217,8 @@
vertical-align
:
top
;
vertical-align
:
top
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.hotelProductManage2_edit2_header
>
div
:nth-child
(
2
)>
div
:nth-child
(
2
)
{
.hotelProductManage2_edit2_header
>
div
:nth-child
(
2
)>
div
:nth-child
(
2
)
{
display
:
inline-block
;
display
:
inline-block
;
padding
:
0
15px
;
padding
:
0
15px
;
height
:
30px
;
height
:
30px
;
...
@@ -1025,27 +1231,34 @@
...
@@ -1025,27 +1231,34 @@
vertical-align
:
top
;
vertical-align
:
top
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.hotelProductManage2_edit2
>
.hotelProductManage2_edit2_form
{
.hotelProductManage2_edit2
>
.hotelProductManage2_edit2_form
{
padding
:
10px
0
;
padding
:
10px
0
;
}
}
.hotelProductManage2_edit2_form
.el-input
{
.hotelProductManage2_edit2_form
.el-input
{
width
:
160px
;
width
:
160px
;
}
}
.hotelProductManage2_edit2_form
.el-input-number
{
.hotelProductManage2_edit2_form
.el-input-number
{
width
:
160px
;
width
:
160px
;
}
}
.hotelProductManage2_edit2_form
.el-input__inner
{
.hotelProductManage2_edit2_form
.el-input__inner
{
width
:
160px
;
width
:
160px
;
}
}
.hotelProductManage2_edit2_form
.el-textarea__inner
{
.hotelProductManage2_edit2_form
.el-textarea__inner
{
resize
:
none
;
resize
:
none
;
}
}
.hotelProductManage2_edit2_form
.HotelProductEdit_date
.el-form-item__content
{
.hotelProductManage2_edit2_form
.HotelProductEdit_date
.el-form-item__content
{
width
:
1000px
;
width
:
1000px
;
min-height
:
9px
;
min-height
:
9px
;
}
}
/* 弹出编辑 */
/* 弹出编辑 */
.hotelProductManage2_edit
{
.hotelProductManage2_edit
{
position
:
fixed
;
position
:
fixed
;
z-index
:
50
;
z-index
:
50
;
bottom
:
0
;
bottom
:
0
;
...
@@ -1057,12 +1270,14 @@
...
@@ -1057,12 +1270,14 @@
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
overflow
:
auto
;
overflow
:
auto
;
}
}
.hotelProductManage2_edit
>
.hotelProductManage2_edit_header
{
.hotelProductManage2_edit
>
.hotelProductManage2_edit_header
{
position
:
relative
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
height
:
30px
;
height
:
30px
;
}
}
.hotelProductManage2_edit_header
>
div
:nth-child
(
1
)
{
.hotelProductManage2_edit_header
>
div
:nth-child
(
1
)
{
display
:
inline-block
;
display
:
inline-block
;
padding
:
0
20px
;
padding
:
0
20px
;
width
:
200px
;
width
:
200px
;
...
@@ -1071,13 +1286,15 @@
...
@@ -1071,13 +1286,15 @@
font-size
:
16px
;
font-size
:
16px
;
border-left
:
3px
solid
#E95252
;
border-left
:
3px
solid
#E95252
;
}
}
.hotelProductManage2_edit_header
>
div
:nth-child
(
2
)
{
.hotelProductManage2_edit_header
>
div
:nth-child
(
2
)
{
position
:
absolute
;
position
:
absolute
;
top
:
0px
;
top
:
0px
;
right
:
0px
;
right
:
0px
;
height
:
30px
;
height
:
30px
;
}
}
.hotelProductManage2_edit_header
>
div
:nth-child
(
2
)>
div
:nth-child
(
1
)
{
.hotelProductManage2_edit_header
>
div
:nth-child
(
2
)>
div
:nth-child
(
1
)
{
display
:
inline-block
;
display
:
inline-block
;
margin
:
0
5px
;
margin
:
0
5px
;
padding
:
0
15px
;
padding
:
0
15px
;
...
@@ -1091,7 +1308,8 @@
...
@@ -1091,7 +1308,8 @@
vertical-align
:
top
;
vertical-align
:
top
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.hotelProductManage2_edit_header
>
div
:nth-child
(
2
)>
div
:nth-child
(
2
)
{
.hotelProductManage2_edit_header
>
div
:nth-child
(
2
)>
div
:nth-child
(
2
)
{
display
:
inline-block
;
display
:
inline-block
;
padding
:
0
15px
;
padding
:
0
15px
;
height
:
30px
;
height
:
30px
;
...
@@ -1104,25 +1322,32 @@
...
@@ -1104,25 +1322,32 @@
vertical-align
:
top
;
vertical-align
:
top
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.hotelProductManage2_edit
>
.hotelProductManage2_edit_form
{
.hotelProductManage2_edit
>
.hotelProductManage2_edit_form
{
padding
:
10px
0
;
padding
:
10px
0
;
}
}
.hotelProductManage2_edit_form
.el-input
{
.hotelProductManage2_edit_form
.el-input
{
width
:
180px
;
width
:
180px
;
}
}
.hotelProductManage2_edit_form
.el-input__inner
{
.hotelProductManage2_edit_form
.el-input__inner
{
width
:
180px
;
width
:
180px
;
}
}
.hotelProductManage2_edit_form
.el-textarea__inner
{
.hotelProductManage2_edit_form
.el-textarea__inner
{
resize
:
none
;
resize
:
none
;
}
}
.hotelProductManage2_edit_form
.HotelProductEdit_date
>
div
{
.hotelProductManage2_edit_form
.HotelProductEdit_date
>
div
{
display
:
inline-block
;
display
:
inline-block
;
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
.hotelProductManage2_edit_form
.HotelProductEdit_date
>
div
>
em
{
.hotelProductManage2_edit_form
.HotelProductEdit_date
>
div
>
em
{
display
:
inline-block
;
display
:
inline-block
;
margin
:
7px
10px
0
0
;
margin
:
7px
10px
0
0
;
padding
:
0
0
0
0
;
padding
:
0
0
0
0
;
}
}
</
style
>
</
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