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
7b13577b
Commit
7b13577b
authored
Aug 23, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
7a096708
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
26 deletions
+34
-26
bookDinnerStatisticsDetails.vue
src/components/Restaurant/bookDinnerStatisticsDetails.vue
+34
-26
No files found.
src/components/Restaurant/bookDinnerStatisticsDetails.vue
View file @
7b13577b
...
@@ -26,21 +26,21 @@
...
@@ -26,21 +26,21 @@
</th>
</th>
</tr>
</tr>
<tr>
<tr>
<th
width=
"1
5
0"
>
用餐时间
</th>
<th
width=
"1
0
0"
>
用餐时间
</th>
<th
width=
"250"
>
餐厅名称
</th>
<th
width=
"250"
>
餐厅名称
</th>
<th
width=
"160"
>
修改餐厅
</th>
<th
width=
"160"
>
修改餐厅
</th>
<th
width=
"80"
>
类别
</th>
<th
width=
"80"
>
类别
</th>
<th
width=
"200"
style=
"display:none;"
>
餐饮类型
</th>
<th
width=
"200"
style=
"display:none;"
>
餐饮类型
</th>
<th
width=
"
8
0"
>
总人数
</th>
<th
width=
"
7
0"
>
总人数
</th>
<th
width=
"70"
>
用餐人
<br
/>
类型
</th>
<th
width=
"70"
>
用餐人
<br
/>
类型
</th>
<th
width=
"70"
>
用餐
<br
/>
人数
</th>
<th
width=
"70"
>
用餐
<br
/>
人数
</th>
<th
width=
"
10
0"
>
价格
</th>
<th
width=
"
9
0"
>
价格
</th>
<th
width=
"
10
0"
>
免人数
</th>
<th
width=
"
9
0"
>
免人数
</th>
<th
width=
"80"
>
金额小计
</th>
<th
width=
"80"
>
金额小计
</th>
<th
width=
"
10
0"
>
返佣
</th>
<th
width=
"
9
0"
>
返佣
</th>
<th
width=
"1
2
0"
>
总金额
</th>
<th
width=
"1
0
0"
>
总金额
</th>
<th
width=
"210"
>
付款方式/订餐方式/订团号
</th>
<th
width=
"210"
>
付款方式/订餐方式/订团号
</th>
<th
width=
"
8
0"
>
备注
</th>
<th
width=
"
14
0"
>
备注
</th>
</tr>
</tr>
<
template
v-for=
"(item,index) in list"
>
<
template
v-for=
"(item,index) in list"
>
<template
v-for=
"(subItem,subIndex) in item.DiningSummaryList"
>
<template
v-for=
"(subItem,subIndex) in item.DiningSummaryList"
>
...
@@ -81,7 +81,6 @@
...
@@ -81,7 +81,6 @@
<el-option
v-for=
'itemHotel in item.DinnerList'
:label=
'itemHotel.RealName'
:value=
'itemHotel.ID'
<el-option
v-for=
'itemHotel in item.DinnerList'
:label=
'itemHotel.RealName'
:value=
'itemHotel.ID'
:key=
'itemHotel.ID'
></el-option>
:key=
'itemHotel.ID'
></el-option>
</el-select>
</el-select>
</td>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"3"
>
<td
v-if=
"childIndex==0"
:rowspan=
"3"
>
{{
subItem
.
UseDinnerTypeStr
}}
{{
subItem
.
UseDinnerTypeStr
}}
...
@@ -102,8 +101,8 @@
...
@@ -102,8 +101,8 @@
<span
class=
"spanlink"
v-if=
'childItem.PeoplePrice==0'
<span
class=
"spanlink"
v-if=
'childItem.PeoplePrice==0'
@
click=
"goUrl('RestaurantPackage',subItem,'套餐查询')"
>
设置
</span>
@
click=
"goUrl('RestaurantPackage',subItem,'套餐查询')"
>
设置
</span>
<template
v-else
>
<template
v-else
>
<el-input
class=
'w50 tcenter'
@
input=
'calculationPrice(subItem)'
<el-input
class=
'w50 tcenter'
@
input=
'calculationPrice(subItem)'
v-model=
'childItem.PeoplePrice'
v-model=
'childItem.PeoplePrice'
@
keyup
.
native=
"checkInteger(childItem,'PeoplePrice')"
></el-input>
@
keyup
.
native=
"checkInteger(childItem,'PeoplePrice')"
></el-input>
</
template
>
</
template
>
</td>
</td>
<td>
<td>
...
@@ -185,7 +184,22 @@
...
@@ -185,7 +184,22 @@
</table>
</table>
</td>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"3"
>
<td
v-if=
"childIndex==0"
:rowspan=
"3"
>
<el-input
type=
'textarea'
rows=
"4"
class=
'w120'
v-model=
'subItem.Remarks'
></el-input>
<table
class=
"dinnerTable"
>
<tr>
<td
width=
"80"
style=
"text-align:right;"
>
备注:
</td>
<td>
<el-input
type=
'textarea'
rows=
"2"
class=
'w120'
v-model=
'subItem.Remarks'
></el-input>
</td>
</tr>
<tr>
<td
width=
"80"
style=
"text-align:right;"
>
餐配备注:
</td>
<td
style=
"text-align:left;"
>
<el-input
type=
'textarea'
rows=
"2"
class=
'w120'
v-model=
'subItem.DinnerRemark'
></el-input>
</td>
</tr>
</table>
</td>
</td>
</tr>
</tr>
</template>
</template>
...
@@ -194,7 +208,6 @@
...
@@ -194,7 +208,6 @@
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -300,7 +313,7 @@
...
@@ -300,7 +313,7 @@
return
item
.
ID
===
obj
.
CurrencyId
;
//筛选出匹配数据
return
item
.
ID
===
obj
.
CurrencyId
;
//筛选出匹配数据
});
});
}
}
//日元
//日元
let
jpaObj
=
this
.
allCurrencyList
.
find
(
item
=>
{
let
jpaObj
=
this
.
allCurrencyList
.
find
(
item
=>
{
return
item
.
ID
===
3
;
//筛选出匹配数据
return
item
.
ID
===
3
;
//筛选出匹配数据
...
@@ -308,7 +321,8 @@
...
@@ -308,7 +321,8 @@
obj
.
DiningPriceList
.
forEach
((
item
,
index
)
=>
{
obj
.
DiningPriceList
.
forEach
((
item
,
index
)
=>
{
var
tempPrice
=
0
;
var
tempPrice
=
0
;
var
coefficient
=
1
;
var
coefficient
=
1
;
totalPrice
+=
item
.
PeoplePrice
*
(
item
.
PeopleNum
-
item
.
Discount
)
*
(
coefficient
-
item
.
DiscountPrice
/
100
);
totalPrice
+=
item
.
PeoplePrice
*
(
item
.
PeopleNum
-
item
.
Discount
)
*
(
coefficient
-
item
.
DiscountPrice
/
100
);
totalPrice
+=
tempPrice
;
totalPrice
+=
tempPrice
;
})
})
obj
.
TotalPrice
=
totalPrice
.
toFixed
(
2
);
obj
.
TotalPrice
=
totalPrice
.
toFixed
(
2
);
...
@@ -321,24 +335,18 @@
...
@@ -321,24 +335,18 @@
else
if
(
currentObj
.
ID
==
3
)
{
else
if
(
currentObj
.
ID
==
3
)
{
obj
.
NewTotalPrice
=
""
;
obj
.
NewTotalPrice
=
""
;
}
else
{
}
else
{
if
(
currentObj
.
CurrentRate
>
1
)
if
(
currentObj
.
CurrentRate
>
1
)
{
{
obj
.
NewTotalPrice
=
currentObj
.
Name
+
":"
+
((
totalPrice
*
jpaObj
.
PayRate
)
/
currentObj
.
CurrentRate
)
obj
.
NewTotalPrice
=
currentObj
.
Name
+
":"
+
((
totalPrice
*
jpaObj
.
PayRate
)
/
currentObj
.
CurrentRate
).
toFixed
(
2
);
.
toFixed
(
2
);
}
}
else
{
else
obj
.
NewTotalPrice
=
currentObj
.
Name
+
":"
+
((
totalPrice
*
jpaObj
.
PayRate
)
*
currentObj
.
CurrentRate
)
{
.
toFixed
(
2
);
obj
.
NewTotalPrice
=
currentObj
.
Name
+
":"
+
((
totalPrice
*
jpaObj
.
PayRate
)
*
currentObj
.
CurrentRate
).
toFixed
(
2
);
}
}
}
}
}
else
{
}
else
{
obj
.
NewTotalPrice
=
""
;
obj
.
NewTotalPrice
=
""
;
}
}
this
.
$forceUpdate
();
this
.
$forceUpdate
();
// let totalPrice = 0;
// obj.DiningPriceList.forEach(item => {
// totalPrice += item.PeoplePrice * (item.PeopleNum - item.Discount) * (1 - item.DiscountPrice / 100);
// })
// obj.TotalPrice = totalPrice.toFixed(2);
},
},
saveList
(
type
)
{
saveList
(
type
)
{
this
.
IsDisabled
=
true
;
this
.
IsDisabled
=
true
;
...
...
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