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
82729c2f
Commit
82729c2f
authored
Mar 25, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
餐厅修改
parent
0bdb2985
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
414 additions
and
363 deletions
+414
-363
bookDinnerStatisticsDetails.vue
src/components/Restaurant/bookDinnerStatisticsDetails.vue
+414
-363
No files found.
src/components/Restaurant/bookDinnerStatisticsDetails.vue
View file @
82729c2f
...
...
@@ -3,8 +3,8 @@
<div
class=
"query-box"
style=
"border-bottom: none;"
>
<ul>
<li>
<input
type=
"button"
class=
"fr normalBtn mb30"
value=
"保存"
@
click=
"saveList(1)"
/>
<input
type=
"button"
class=
"fr normalBtn mb30"
value=
"保存草稿"
@
click=
"saveList(0)"
/>
<input
type=
"button"
class=
"fr normalBtn mb30"
value=
"保存"
@
click=
"saveList(1)"
/>
<input
type=
"button"
class=
"fr normalBtn mb30"
value=
"保存草稿"
@
click=
"saveList(0)"
/>
</li>
</ul>
</div>
...
...
@@ -43,25 +43,25 @@
</td>
<td>
<div
class=
"w200"
>
<p
style=
"height: 84px; padding-left: 10px; display:flex; align-items:center;"
v-for=
"subItem in item.DiningSummaryList"
class=
"link pHouseStyle"
@
click=
"goUrlR('restaurantList',subItem.DiningID,'餐厅列表')"
>
{{
subItem
.
DiningName
}}
</p>
<p
style=
"height: 84px; padding-left: 10px; display:flex; align-items:center;"
v-for=
"subItem in item.DiningSummaryList"
class=
"link pHouseStyle"
@
click=
"goUrlR('restaurantList',subItem.DiningID,'餐厅列表')"
>
{{
subItem
.
DiningName
}}
</p>
</div>
</td>
<td>
<div
class=
"w200"
>
<p
style=
"height: 84px; padding-left: 10px; display:flex; align-items:center;"
class=
"pHouseStyle"
v-for=
"subItem in item.DiningSummaryList"
>
<el-select
class=
'w160 sel'
v-model=
'subItem.NewDiningID'
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
visible-change=
'getDingList(item)'
@
change=
'sendValue(subItem,item)'
>
<el-option
v-for=
'itemHotel in item.DinnerList'
:label=
'itemHotel.Name'
:value=
'itemHotel.ID'
:key=
'itemHotel.ID'
></el-option>
<p
style=
"height: 84px; padding-left: 10px; display:flex; align-items:center;"
class=
"pHouseStyle"
v-for=
"subItem in item.DiningSummaryList"
>
<el-select
class=
'w160 sel'
v-model=
'subItem.NewDiningID'
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
visible-change=
'getDingList(item)'
@
change=
'sendValue(subItem,item)'
>
<el-option
v-for=
'itemHotel in item.DinnerList'
:label=
'itemHotel.Name'
:value=
'itemHotel.ID'
:key=
'itemHotel.ID'
></el-option>
</el-select>
</p>
</div>
</td>
<td>
<div
class=
"w80"
>
<div
class=
"w80"
>
<p
style=
"height: 84px; line-height: 84px;"
v-for=
"subItem in item.DiningSummaryList"
class=
"pHouseStyle"
>
{{
subItem
.
UseDinnerTypeStr
}}
</p>
...
...
@@ -83,7 +83,7 @@
</div>
</td>
<td>
<div
class=
"w180"
>
<div
class=
"w180"
>
<div
class=
"DivStyle"
v-for=
"subItem in item.DiningSummaryList"
>
<p
v-for=
"childItem in subItem.DiningPriceList"
>
{{
personStrToWord
(
childItem
.
PeopleType
)
}}
...
...
@@ -104,7 +104,8 @@
<div
class=
"w80"
>
<div
class=
"DivStyle"
v-for=
"subItem in item.DiningSummaryList"
>
<p
v-for=
"childItem in subItem.DiningPriceList"
>
<span
class=
"spanlink"
v-if=
'childItem.PeoplePrice==0'
@
click=
"goUrl('RestaurantPackage',subItem,'套餐查询')"
>
设置
</span>
<span
class=
"spanlink"
v-if=
'childItem.PeoplePrice==0'
@
click=
"goUrl('RestaurantPackage',subItem,'套餐查询')"
>
设置
</span>
<span
v-if=
'childItem.PeoplePrice!=0'
>
{{
childItem
.
PeoplePrice
}}
</span>
</p>
</div>
...
...
@@ -114,7 +115,8 @@
<div
class=
"w80"
>
<div
class=
"DivStyle"
v-for=
"subItem in item.DiningSummaryList"
>
<p
v-for=
"childItem in subItem.DiningPriceList"
>
<el-input
class=
'w50 tcenter'
@
input=
'calculationPrice(subItem)'
maxlength=
'2'
v-model=
'childItem.Discount'
@
keyup
.
native=
"checkInteger(childItem,'Discount')"
></el-input>
<el-input
class=
'w50 tcenter'
@
input=
'calculationPrice(subItem)'
maxlength=
'2'
v-model=
'childItem.Discount'
@
keyup
.
native=
"checkInteger(childItem,'Discount')"
></el-input>
</p>
</div>
</div>
...
...
@@ -132,9 +134,8 @@
<div
class=
"w80"
>
<div
class=
"DivStyle"
v-for=
"subItem in item.DiningSummaryList"
>
<p
v-for=
"childItem in subItem.DiningPriceList"
>
<!--
<span
class=
"spanlink"
v-if=
'childItem.PeoplePrice==0'
@
click=
"goUrl('restaurantInfoManage',subItem,'餐厅列表')"
>
设置
</span>
<span
v-if=
'childItem.PeoplePrice!=0'
>
{{
o
.
PeoplePrice
}}
%
</span>
-->
<el-input
class=
'w50 tcenter'
@
input=
'calculationPrice(subItem)'
v-model=
'childItem.DiscountPrice'
@
keyup
.
native=
"checkInteger(childItem,'DiscountPrice')"
></el-input>
%
<el-input
class=
'w50 tcenter'
@
input=
'calculationPrice(subItem)'
v-model=
'childItem.DiscountPrice'
@
keyup
.
native=
"checkInteger(childItem,'DiscountPrice')"
></el-input>
%
</p>
</div>
</div>
...
...
@@ -150,11 +151,11 @@
<div
class=
"w150"
>
<p
style=
"height: 84px; line-height: 84px;"
v-for=
"subItem in item.DiningSummaryList"
class=
"pHouseStyle"
>
<el-select
class=
'w100 sel'
v-model=
'subItem.PayStyle'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
label=
'请选择'
value=
'0'
></el-option>
<el-option
label=
'现付'
value=
'1'
></el-option>
<el-option
label=
'签单'
value=
'2'
></el-option>
<el-option
label=
'实物抵扣'
value=
'3'
></el-option>
<el-option
label=
'预付'
value=
'4'
></el-option>
<el-option
label=
'请选择'
value=
'0'
></el-option>
<el-option
label=
'现付'
value=
'1'
></el-option>
<el-option
label=
'签单'
value=
'2'
></el-option>
<el-option
label=
'实物抵扣'
value=
'3'
></el-option>
<el-option
label=
'预付'
value=
'4'
></el-option>
</el-select>
</p>
</div>
...
...
@@ -163,9 +164,9 @@
<div
class=
"w150"
>
<p
style=
"height: 84px; line-height: 84px;"
v-for=
"subItem in item.DiningSummaryList"
class=
"pHouseStyle"
>
<el-select
v-model=
'subItem.DiningReserveType'
class=
'w100 sel'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
label=
'请选择'
value=
'0'
></el-option>
<el-option
label=
'公司预订'
value=
'1'
></el-option>
<el-option
label=
'导游预订'
value=
'2'
></el-option>
<el-option
label=
'请选择'
value=
'0'
></el-option>
<el-option
label=
'公司预订'
value=
'1'
></el-option>
<el-option
label=
'导游预订'
value=
'2'
></el-option>
</el-select>
</p>
</div>
...
...
@@ -179,7 +180,8 @@
</td>
<td>
<div
class=
"w300"
>
<p
style=
"height: 84px; padding-left: 10px; display:flex; align-items:center;"
v-for=
"subItem in item.DiningSummaryList"
class=
"pHouseStyle"
>
<p
style=
"height: 84px; padding-left: 10px; display:flex; align-items:center;"
v-for=
"subItem in item.DiningSummaryList"
class=
"pHouseStyle"
>
{{
subItem
.
Address
}}
</p>
</div>
...
...
@@ -193,7 +195,8 @@
</td>
<td>
<div
class=
"w150"
>
<p
style=
"height: 84px; display:flex; align-items:center; padding-left: 15px;"
v-for=
"subItem in item.DiningSummaryList"
class=
"pHouseStyle"
>
<p
style=
"height: 84px; display:flex; align-items:center; padding-left: 15px;"
v-for=
"subItem in item.DiningSummaryList"
class=
"pHouseStyle"
>
<el-input
type=
'textarea'
class=
'w120'
v-model=
'subItem.Remarks'
></el-input>
</p>
</div>
...
...
@@ -205,10 +208,10 @@
</
template
>
<
script
>
export
default
{
export
default
{
data
()
{
return
{
defaultSelectValue
:
0
,
defaultSelectValue
:
0
,
list
:
[],
roomList
:
[],
TCNUM
:
""
,
...
...
@@ -218,12 +221,26 @@ export default {
},
methods
:
{
//页面跳转[大写]
goUrlR
(
path
,
obj
,
title
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
ID
:
obj
,
blank
:
'y'
,
tab
:
title
}
});
goUrlR
(
path
,
obj
,
title
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
ID
:
obj
,
blank
:
'y'
,
tab
:
title
}
});
},
//页面跳转[小写]
goUrlT
(
path
,
obj
,
title
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
obj
,
blank
:
'y'
,
tab
:
title
}
});
goUrlT
(
path
,
obj
,
title
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
obj
,
blank
:
'y'
,
tab
:
title
}
});
},
goUrl
(
path
,
obj
,
name
)
{
this
.
$router
.
push
({
...
...
@@ -235,33 +252,34 @@ export default {
}
});
},
personStrToWord
(
str
)
{
if
(
str
==
1
)
personStrToWord
(
str
)
{
if
(
str
==
1
)
return
'大人'
if
(
str
==
2
)
if
(
str
==
2
)
return
'儿童'
if
(
str
==
3
)
if
(
str
==
3
)
return
'婴儿'
},
getList
()
{
this
.
apipost
(
"dmcstatistics_get_GetDinnerStaticsDetail"
,
{
TCIDs
:
this
.
$route
.
query
.
id
},
"dmcstatistics_get_GetDinnerStaticsDetail"
,
{
TCIDs
:
this
.
$route
.
query
.
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
list
=
res
.
data
.
data
;
this
.
list
.
forEach
(
item
=>
{
item
.
DinnerList
=
[];
item
.
DiningSummaryList
.
forEach
(
x
=>
{
x
.
PayStyle
=
x
.
PayStyle
.
toString
()
x
.
DiningReserveType
=
x
.
DiningReserveType
.
toString
()
this
.
calculationPrice
(
x
)
this
.
list
.
forEach
(
item
=>
{
item
.
DinnerList
=
[];
item
.
DiningSummaryList
.
forEach
(
x
=>
{
x
.
PayStyle
=
x
.
PayStyle
.
toString
();
x
.
DiningReserveType
=
x
.
DiningReserveType
.
toString
();
this
.
calculationPrice
(
x
);
item
.
DinnerList
.
push
({
Name
:
x
.
NewDiningName
,
ID
:
x
.
NewDiningID
Name
:
x
.
NewDiningName
,
ID
:
x
.
NewDiningID
})
if
(
x
.
ReserveNo
==
''
||
x
.
ReserveNo
==
null
)
{
x
.
ReserveNo
=
this
.
$route
.
query
.
NewCombinationNum
;
if
(
x
.
ReserveNo
==
''
||
x
.
ReserveNo
==
null
)
{
x
.
ReserveNo
=
this
.
$route
.
query
.
NewCombinationNum
;
;
}
})
})
...
...
@@ -272,54 +290,54 @@ export default {
err
=>
{}
);
},
calculationPrice
(
obj
)
{
let
totalPrice
=
0
obj
.
DiningPriceList
.
forEach
(
item
=>
{
totalPrice
+=
item
.
PeoplePrice
*
(
item
.
PeopleNum
-
item
.
Discount
)
*
(
1
-
item
.
DiscountPrice
/
100
)
calculationPrice
(
obj
)
{
let
totalPrice
=
0
;
obj
.
DiningPriceList
.
forEach
(
item
=>
{
totalPrice
+=
item
.
PeoplePrice
*
(
item
.
PeopleNum
-
item
.
Discount
)
*
(
1
-
item
.
DiscountPrice
/
100
);
})
obj
.
TotalPrice
=
totalPrice
.
toFixed
(
2
)
obj
.
TotalPrice
=
totalPrice
.
toFixed
(
2
);
},
saveList
(
type
)
{
if
(
type
==
0
)
{
this
.
list
.
forEach
(
item
=>
{
item
.
DiningSummaryList
.
forEach
(
insideItem
=>
{
insideItem
.
OrderState
=
0
saveList
(
type
)
{
if
(
type
==
0
)
{
this
.
list
.
forEach
(
item
=>
{
item
.
DiningSummaryList
.
forEach
(
insideItem
=>
{
insideItem
.
OrderState
=
0
;
})
})
}
if
(
type
==
1
)
{
this
.
list
.
forEach
(
item
=>
{
item
.
DiningSummaryList
.
forEach
(
insideItem
=>
{
insideItem
.
OrderState
=
1
if
(
type
==
1
)
{
this
.
list
.
forEach
(
item
=>
{
item
.
DiningSummaryList
.
forEach
(
insideItem
=>
{
insideItem
.
OrderState
=
1
;
})
})
}
this
.
apipost
(
'dmcstatistics_get_SetDiningOrder'
,
this
.
list
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
)
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
apipost
(
'dmcstatistics_get_SetDiningOrder'
,
this
.
list
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
err
=>
{})
},
//获取餐厅下拉
getDingList
(
item
)
{
getDingList
(
item
)
{
let
msg
=
{
QCity
:
item
.
DiningSummaryList
[
0
].
QCity
QCity
:
item
.
DiningSummaryList
[
0
].
QCity
}
this
.
apipost
(
'dining_post_GetLineDinnerList'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
apipost
(
'dining_post_GetLineDinnerList'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
item
.
DinnerList
=
res
.
data
.
data
;
this
.
$forceUpdate
();
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
err
=>
{})
},
err
=>
{})
},
//重置电话地址
sendValue
(
subItem
,
item
)
{
item
.
DinnerList
.
forEach
(
x
=>
{
if
(
subItem
.
NewDiningID
==
x
.
ID
)
{
sendValue
(
subItem
,
item
)
{
item
.
DinnerList
.
forEach
(
x
=>
{
if
(
subItem
.
NewDiningID
==
x
.
ID
)
{
subItem
.
Address
=
x
.
Address
;
subItem
.
Tel
=
x
.
Tel
;
}
...
...
@@ -328,60 +346,93 @@ export default {
},
mounted
()
{
this
.
TCNUM
=
this
.
$route
.
query
.
TCNUM
;
this
.
GuestNum
=
this
.
$route
.
query
.
GuestNum
;
this
.
GuestNum
=
this
.
$route
.
query
.
GuestNum
;
this
.
getList
();
}
};
};
</
script
>
<
style
>
.bookDinnerStatisticsTalbe
{
.bookDinnerStatisticsTalbe
{
background
:
#ccc
;
}
.bookDinnerStatisticsTalbe
tr
th
{
}
.bookDinnerStatisticsTalbe
tr
th
{
background
:
#e6e6e6
;
height
:
40px
;
font-size
:
12px
;
color
:
#333
;
}
.bookDinnerStatisticsTalbe
tr
{
}
.bookDinnerStatisticsTalbe
tr
{
background
:
#fff
;
text-align
:
center
;
height
:
40px
;
}
.bookDinnerStatisticsTalbe
tr
td
{
}
.bookDinnerStatisticsTalbe
tr
td
{
font-size
:
12px
;
}
.bookDinnerStatisticsTalbe
tr
td
input
{
height
:
20px
!important
;
}
.bookDinnerStatisticsTalbe
tr
td
input
{
height
:
20px
!important
;
padding
:
0
;
text-align
:
center
;
}
.bookDinnerStatisticsTalbe
tr
td
.sel
input
{
height
:
34px
!important
;
}
.bookDinnerStatisticsTalbe
tr
td
.pHouseStyle
{
}
.bookDinnerStatisticsTalbe
tr
td
.sel
input
{
height
:
34px
!important
;
}
.bookDinnerStatisticsTalbe
tr
td
.pHouseStyle
{
border-bottom
:
1px
solid
#ccc
;
height
:
28px
;
line-height
:
28px
;
}
.bookDinnerStatisticsTalbe
tr
td
.pHouseStyle
:last-child
{
}
.bookDinnerStatisticsTalbe
tr
td
.pHouseStyle
:last-child
{
border-bottom
:
none
;
}
.bookDinnerStatisticsTalbe
tr
td
.DivStyle
{
}
.bookDinnerStatisticsTalbe
tr
td
.DivStyle
{
border-bottom
:
1px
solid
#ccc
;
height
:
84px
;
line-height
:
28px
;
box-sizing
:
border-box
;
}
.bookDinnerStatisticsTalbe
tr
td
.DivStyle
p
{
border-bottom
:
1px
solid
#ccc
;}
.bookDinnerStatisticsTalbe
tr
td
.DivStyle
p
:last-child
{
border-bottom
:
none
;}
.bookDinnerStatisticsTalbe
tr
td
.DivStyle
:last-child
{
}
.bookDinnerStatisticsTalbe
tr
td
.DivStyle
p
{
border-bottom
:
1px
solid
#ccc
;
}
.bookDinnerStatisticsTalbe
tr
td
.DivStyle
p
:last-child
{
border-bottom
:
none
;
}
.bookDinnerStatisticsTalbe
tr
td
.DivStyle
:last-child
{
border-bottom
:
none
;
}
.bookDinnerStatisticsTalbe
tr
td
.tdItemStyle
{
border-bottom
:
1px
solid
#ccc
;
}
.bookDinnerStatisticsTalbe
tr
td
.tdItemStyle
:last-child
{
border-bottom
:
none
;
}
.bookDinnerStatisticsTalbe
tr
td
.tdItemStyle
{
border-bottom
:
1px
solid
#ccc
;}
.bookDinnerStatisticsTalbe
tr
td
.tdItemStyle
:last-child
{
border-bottom
:
none
;}
.bookDinnerStatisticsTalbe
tr
td
.link
:hover
{
text-decoration
:
underline
;
cursor
:
pointer
;}
.bookDinnerStatisticsTalbe
.Book_span
{
margin-right
:
3px
;}
.bookDinnerStatisticsTalbe
tr
td
.spanlink
:hover
{
text-decoration
:
underline
;
cursor
:
pointer
;}
}
.bookDinnerStatisticsTalbe
tr
td
.link
:hover
{
text-decoration
:
underline
;
cursor
:
pointer
;
}
.bookDinnerStatisticsTalbe
.Book_span
{
margin-right
:
3px
;
}
.bookDinnerStatisticsTalbe
tr
td
.spanlink
:hover
{
text-decoration
:
underline
;
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