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
1745ea32
Commit
1745ea32
authored
Feb 07, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
30f61d6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
21 deletions
+46
-21
CostNewPrice.vue
...ponents/TravelManager/TravelNewQuotation/CostNewPrice.vue
+46
-21
No files found.
src/components/TravelManager/TravelNewQuotation/CostNewPrice.vue
View file @
1745ea32
...
...
@@ -264,6 +264,14 @@
</el-form-item>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
<el-select
v-model=
'subItem.ContainDinnerType'
class=
"w70"
placeholder=
"含餐类型"
@
change=
"DinnerTypeChange(subItem)"
>
<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-select>
<br
/>
<el-input
type=
'text'
v-model=
"subItem.HotelCostPrice"
class=
"w70"
@
keyup
.
native=
"checkPrice(subItem,'HotelCostPrice')"
></el-input>
</td>
...
...
@@ -283,7 +291,9 @@
@
keyup
.
native=
"checkPrice(subItem,'ScenicCostPrice'),getchange()"
></el-input>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
<el-input
type=
"text"
v-model=
'subItem.BreakfastCostPrice'
class=
"w70"
<el-input
type=
"text"
:disabled=
"(subItem.ContainDinnerType==1||subItem.ContainDinnerType==3)?true:false"
v-model=
'subItem.BreakfastCostPrice'
class=
"w70"
@
keyup
.
native=
"checkPrice(subItem,'BreakfastCostPrice'),getchange()"
>
</el-input>
</td>
...
...
@@ -292,7 +302,9 @@
@
keyup
.
native=
"checkPrice(subItem,'LunchCostPrice'),getchange()"
></el-input>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
<el-input
type=
"text"
v-model=
'subItem.DinnerCostPrice'
class=
"w70"
<el-input
type=
"text"
:disabled=
"(subItem.ContainDinnerType==2||subItem.ContainDinnerType==3)?true:false"
v-model=
'subItem.DinnerCostPrice'
class=
"w70"
@
keyup
.
native=
"checkPrice(subItem,'DinnerCostPrice'),getchange()"
></el-input>
</td>
</tr>
...
...
@@ -383,6 +395,14 @@
</el-form-item>
</td>
<td>
<el-select
v-model=
'subItem.ContainDinnerType'
class=
"w70"
placeholder=
"含餐类型"
@
change=
"DinnerTypeChange(subItem)"
>
<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-select>
<br
/>
<el-input
type=
'text'
v-model=
"subItem.HotelCostPrice"
class=
"w70"
@
keyup
.
native=
"checkPrice(subItem,'HotelCostPrice')"
></el-input>
</td>
...
...
@@ -406,7 +426,9 @@
@
keyup
.
native=
"checkPrice(subItem,'ScenicCostPrice'),getchange()"
></el-input>
</td>
<td>
<el-input
type=
"text"
v-model=
'subItem.BreakfastCostPrice'
class=
"w70"
<el-input
type=
"text"
:disabled=
"(subItem.ContainDinnerType==1||subItem.ContainDinnerType==3)?true:false"
v-model=
'subItem.BreakfastCostPrice'
class=
"w70"
@
keyup
.
native=
"checkPrice(subItem,'BreakfastCostPrice'),getchange()"
>
</el-input>
</td>
...
...
@@ -415,7 +437,9 @@
@
keyup
.
native=
"checkPrice(subItem,'LunchCostPrice'),getchange()"
></el-input>
</td>
<td>
<el-input
type=
"text"
v-model=
'subItem.DinnerCostPrice'
class=
"w70"
<el-input
type=
"text"
:disabled=
"(subItem.ContainDinnerType==2||subItem.ContainDinnerType==3)?true:false"
v-model=
'subItem.DinnerCostPrice'
class=
"w70"
@
keyup
.
native=
"checkPrice(subItem,'DinnerCostPrice'),getchange()"
></el-input>
</td>
</tr>
...
...
@@ -942,6 +966,23 @@
}
},
methods
:
{
//含餐类型切换
DinnerTypeChange
(
subItem
)
{
switch
(
subItem
.
ContainDinnerType
)
{
//含早餐
case
1
:
subItem
.
BreakfastCostPrice
=
0
;
break
;
//含晚餐
case
2
:
subItem
.
DinnerCostPrice
=
0
;
break
;
case
3
:
subItem
.
BreakfastCostPrice
=
0
;
subItem
.
DinnerCostPrice
=
0
;
break
;
}
},
//交通部分小计
trafficXiaoJi
(
currencyType
)
{
var
trafficTotal
=
0
;
...
...
@@ -1178,6 +1219,7 @@
BreakfastCostPrice
:
0
,
//早餐报价
LunchCostPrice
:
0
,
//午餐报价
DinnerCostPrice
:
0
,
//晚餐报价
ContainDinnerType
:
0
,
//含餐类型(1-含早餐,2-含晚餐,3-含早晚)
};
this
.
dayCostPrice
.
push
(
dayItem
);
}
...
...
@@ -1193,7 +1235,6 @@
getCurrencyNumberList
(
CurrencyId
)
{
let
currencyNumberList
=
[];
let
flag
=
false
;
this
.
CurrencyNumberListExt
.
forEach
(
item
=>
{
if
(
!
flag
&&
item
.
Key
==
CurrencyId
)
{
flag
=
true
;
...
...
@@ -1297,7 +1338,6 @@
DeletePNumber
(
index
)
{
this
.
CostNumberList
.
splice
(
index
,
1
);
},
//人数排序
shortPeopleNumber
()
{
this
.
CurrencyNumberListExt
.
forEach
(
x
=>
{
...
...
@@ -1369,21 +1409,6 @@
totalMoney
=
Number
(
this
.
getDayXiaoJi
(
1
,
2
))
+
Number
(
this
.
getDayXiaoJi
(
2
,
2
))
/
Number
(
PeopleNumber
)
+
Number
(
this
.
getDayXiaoJi
(
3
,
2
))
+
Number
(
this
.
getDayXiaoJi
(
4
,
2
))
+
Number
(
this
.
getDayXiaoJi
(
5
,
2
))
+
Number
(
this
.
getDayXiaoJi
(
6
,
2
));
// this.dayCostPrice.forEach(x => {
// let subTotalMoney = 0.0;
// subTotalMoney =
// (this.getConvertMoney(x.HotelCostPrice) +
// this.getConvertMoney(x.ScenicCostPrice) +
// this.getConvertMoney(x.BreakfastCostPrice) +
// this.getConvertMoney(x.LunchCostPrice) +
// this.getConvertMoney(x.DinnerCostPrice)) *
// this.getCurrencyMoney(x.CurrencyId)
// +(this.getConvertMoney(x.BusCostPrice)*this.getCurrencyMoney(x.CurrencyId)/PeopleNumber)
// ;
// totalMoney += subTotalMoney;
// });
console
.
log
(
"totalMoney"
,
totalMoney
.
toFixed
(
0
))
return
totalMoney
.
toFixed
(
0
);
},
//计算领队分摊
...
...
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