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
69a1879f
Commit
69a1879f
authored
1 month ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报价单计算页面修改
parent
7997d729
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
CostNewPriceForm.vue
...nts/TravelManager/TravelNewQuotation/CostNewPriceForm.vue
+24
-24
No files found.
src/components/TravelManager/TravelNewQuotation/CostNewPriceForm.vue
View file @
69a1879f
...
@@ -423,7 +423,7 @@
...
@@ -423,7 +423,7 @@
<td
colspan=
"4"
rowspan=
"2"
>
<td
colspan=
"4"
rowspan=
"2"
>
{{$t('objFill.xiaojijpzdsjly')}}:
{{$t('objFill.xiaojijpzdsjly')}}:
<br
/>
{{get
CostTotal
Money()}}
<br
/>
{{get
OtherCost
Money()}}
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -471,7 +471,7 @@
...
@@ -471,7 +471,7 @@
<td>
<td>
<el-form-item
:label=
"$t('objFill.dandijcb')"
>
<el-form-item
:label=
"$t('objFill.dandijcb')"
>
<el-input
v-model=
"teamPrice.SingleDMCPrice"
@
keyup
.
native=
"checkInteger(teamPrice,'SingleDMCPrice')"
<el-input
v-model=
"teamPrice.SingleDMCPrice"
@
keyup
.
native=
"checkInteger(teamPrice,'SingleDMCPrice')"
@
blur
=
"getchange()"
class=
"w70"
>
@
change
=
"getchange()"
class=
"w70"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</td>
</td>
...
@@ -633,17 +633,17 @@
...
@@ -633,17 +633,17 @@
+
{{
(
getDayXiaoJi
(
9
,
1
)
/
subItem
.
PeopleNumber
).
toFixed
(
2
)
}}
(
{{
$t
(
'objFill.v101.zazhizzzcyrsK'
)
}}
)
+
{{
(
getDayXiaoJi
(
9
,
1
)
/
subItem
.
PeopleNumber
).
toFixed
(
2
)
}}
(
{{
$t
(
'objFill.v101.zazhizzzcyrsK'
)
}}
)
</td>
</td>
<td>
<td>
{{
getLocalJpy
Total
Money
(
subItem
.
PeopleNumber
)
}}
{{
getLocalJpyMoney
(
subItem
.
PeopleNumber
)
}}
</td>
</td>
<td>
<td>
<template
v-if=
"teamPrice&&teamPrice.SingleDMCPrice&&teamPrice.SingleDMCPrice>0"
>
<template
v-if=
"teamPrice&&teamPrice.SingleDMCPrice&&teamPrice.SingleDMCPrice>0"
>
{{
teamPrice
.
SingleDMCPrice
}}
{{
teamPrice
.
SingleDMCPrice
}}
</
template
>
</
template
>
<
template
v-else-if=
"postConfig.LineId==14||postConfig.LineId==118"
>
<
template
v-else-if=
"postConfig.LineId==14||postConfig.LineId==118"
>
{{
getLocal
Total
Money
(
subItem
.
PeopleNumber
)
}}
{{
getLocalMoney
(
subItem
.
PeopleNumber
)
}}
</
template
>
</
template
>
<
template
v-else-if=
"postConfig.LineId==168"
>
<
template
v-else-if=
"postConfig.LineId==168"
>
{{
getLocal
Total
Money
(
subItem
.
PeopleNumber
)
}}
{{
getLocalMoney
(
subItem
.
PeopleNumber
)
}}
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
{{
subItem
.
SubtotalMoney
}}
{{
subItem
.
SubtotalMoney
}}
...
@@ -1046,9 +1046,9 @@
...
@@ -1046,9 +1046,9 @@
return
flag
;
return
flag
;
},
},
//其它成本价格
//其它成本价格
get
CostTotal
Money
()
{
get
OtherCost
Money
()
{
//机票+中段机票+火车票+税金+领队导游分摊+联运+过夜+保险
//机票+中段机票+火车票+税金+领队导游分摊+联运+过夜+保险
let
total
Money
=
this
.
getConvertMoney
(
this
.
otherPrice
.
AirTicketMoeny
)
+
let
other
Money
=
this
.
getConvertMoney
(
this
.
otherPrice
.
AirTicketMoeny
)
+
this
.
getConvertMoney
(
this
.
otherPrice
.
InlandAirTicketMoney
)
+
this
.
getConvertMoney
(
this
.
otherPrice
.
InlandAirTicketMoney
)
+
this
.
getConvertMoney
(
this
.
teamPrice
.
TaxPrice
)
+
this
.
getConvertMoney
(
this
.
teamPrice
.
TaxPrice
)
+
this
.
getConvertMoney
(
this
.
teamPrice
.
UnionPrice
)
+
this
.
getConvertMoney
(
this
.
teamPrice
.
UnionPrice
)
+
...
@@ -1058,7 +1058,7 @@
...
@@ -1058,7 +1058,7 @@
this
.
getConvertMoney
(
this
.
otherPrice
.
InlandTrainTicketMoney
)
+
this
.
getConvertMoney
(
this
.
otherPrice
.
InlandTrainTicketMoney
)
+
this
.
getConvertMoney
(
this
.
otherPrice
.
SafeMoney
)
-
this
.
getConvertMoney
(
this
.
otherPrice
.
SafeMoney
)
-
this
.
getConvertMoney
(
this
.
otherPrice
.
KBMoney
)
this
.
getConvertMoney
(
this
.
otherPrice
.
KBMoney
)
return
total
Money
;
return
other
Money
;
},
},
//获取币种对应 的人数报价
//获取币种对应 的人数报价
getCurrencyNumberList
(
CurrencyId
)
{
getCurrencyNumberList
(
CurrencyId
)
{
...
@@ -1195,15 +1195,15 @@
...
@@ -1195,15 +1195,15 @@
});
});
},
},
//计算总价
//计算总价
getSub
total
Money
()
{
getSubMoney
()
{
let
that
=
this
;
let
that
=
this
;
if
(
this
.
CostNumberList
&&
this
.
CostNumberList
.
length
>
0
)
{
if
(
this
.
CostNumberList
&&
this
.
CostNumberList
.
length
>
0
)
{
this
.
CostNumberList
.
forEach
(
x
=>
{
this
.
CostNumberList
.
forEach
(
x
=>
{
//房餐车景点价格
//房餐车景点价格
var
trip
=
Number
(
that
.
getLocal
Total
Money
(
x
.
PeopleNumber
));
var
trip
=
Number
(
that
.
getLocalMoney
(
x
.
PeopleNumber
));
var
jpyTrip
=
Number
(
that
.
getLocalJpy
Total
Money
(
x
.
PeopleNumber
));
var
jpyTrip
=
Number
(
that
.
getLocalJpyMoney
(
x
.
PeopleNumber
));
//其他价格
//其他价格
var
otherPrice
=
Number
(
that
.
get
CostTotal
Money
());
var
otherPrice
=
Number
(
that
.
get
OtherCost
Money
());
var
jpyotherPrice
=
0
;
var
jpyotherPrice
=
0
;
var
SingleDMCPrice
=
0
;
var
SingleDMCPrice
=
0
;
if
(
that
.
teamPrice
&&
that
.
teamPrice
.
SingleDMCPrice
)
{
if
(
that
.
teamPrice
&&
that
.
teamPrice
.
SingleDMCPrice
)
{
...
@@ -1222,8 +1222,8 @@
...
@@ -1222,8 +1222,8 @@
return
parseFloat
(
value
);
return
parseFloat
(
value
);
},
},
//获取地接项目(人民币)
//获取地接项目(人民币)
getLocal
Total
Money
(
PeopleNumber
)
{
getLocalMoney
(
PeopleNumber
)
{
let
total
Money
=
0.0
;
let
dijie
Money
=
0.0
;
if
(
PeopleNumber
<=
0
)
{
if
(
PeopleNumber
<=
0
)
{
PeopleNumber
=
1
;
PeopleNumber
=
1
;
}
}
...
@@ -1232,37 +1232,37 @@
...
@@ -1232,37 +1232,37 @@
var
canPrice
=
Number
(
this
.
getDayXiaoJi
(
4
,
2
));
//餐
var
canPrice
=
Number
(
this
.
getDayXiaoJi
(
4
,
2
));
//餐
var
otherPrice
=
Number
(
this
.
getDayXiaoJi
(
9
,
2
))
/
PeopleNumber
;
//其它费用
var
otherPrice
=
Number
(
this
.
getDayXiaoJi
(
9
,
2
))
/
PeopleNumber
;
//其它费用
var
busFee
=
Number
(
this
.
getDayXiaoJi
(
2
,
2
))
/
PeopleNumber
;
//车费
var
busFee
=
Number
(
this
.
getDayXiaoJi
(
2
,
2
))
/
PeopleNumber
;
//车费
total
Money
=
busFee
+
hotelPrice
+
sencePrice
+
canPrice
+
otherPrice
;
dijie
Money
=
busFee
+
hotelPrice
+
sencePrice
+
canPrice
+
otherPrice
;
totalMoney
=
total
Money
.
toFixed
(
2
);
dijieMoney
=
dijie
Money
.
toFixed
(
2
);
return
total
Money
;
return
dijie
Money
;
},
},
//获取地接项目报价(日元)
//获取地接项目报价(日元)
getLocalJpy
Total
Money
(
PeopleNumber
)
{
getLocalJpyMoney
(
PeopleNumber
)
{
if
(
PeopleNumber
<=
0
)
{
if
(
PeopleNumber
<=
0
)
{
PeopleNumber
=
1
;
PeopleNumber
=
1
;
}
}
let
total
Money
=
0.0
;
let
jpydijie
Money
=
0.0
;
var
busFee
=
Number
(
this
.
getDayXiaoJi
(
2
,
1
))
/
PeopleNumber
;
var
busFee
=
Number
(
this
.
getDayXiaoJi
(
2
,
1
))
/
PeopleNumber
;
var
hotelPrice
=
Number
(
this
.
getDayXiaoJi
(
1
,
1
));
//酒店费用
var
hotelPrice
=
Number
(
this
.
getDayXiaoJi
(
1
,
1
));
//酒店费用
var
sencePrice
=
Number
(
this
.
getDayXiaoJi
(
3
,
1
));
//景点费用
var
sencePrice
=
Number
(
this
.
getDayXiaoJi
(
3
,
1
));
//景点费用
var
canPrice
=
Number
(
this
.
getDayXiaoJi
(
4
,
1
));
//早餐
var
canPrice
=
Number
(
this
.
getDayXiaoJi
(
4
,
1
));
//早餐
var
otherPrice
=
Number
(
this
.
getDayXiaoJi
(
9
,
1
))
/
PeopleNumber
;
//其它费用
var
otherPrice
=
Number
(
this
.
getDayXiaoJi
(
9
,
1
))
/
PeopleNumber
;
//其它费用
total
Money
=
busFee
+
hotelPrice
+
sencePrice
+
canPrice
+
otherPrice
;
jpydijie
Money
=
busFee
+
hotelPrice
+
sencePrice
+
canPrice
+
otherPrice
;
return
total
Money
.
toFixed
(
2
);
return
jpydijie
Money
.
toFixed
(
2
);
},
},
getchange
(
type
)
{
getchange
(
type
)
{
this
.
getSubtotalMoney
();
var
that
=
this
;
var
that
=
this
;
var
tempPrice
=
0
;
var
tempPrice
=
0
;
if
(
this
.
CostNumberList
&&
this
.
CostNumberList
.
length
>
0
)
{
if
(
this
.
CostNumberList
&&
this
.
CostNumberList
.
length
>
0
)
{
this
.
CostNumberList
.
forEach
(
x
=>
{
this
.
CostNumberList
.
forEach
(
x
=>
{
//房餐车景点价格
//房餐车景点价格
tempPrice
=
Number
(
that
.
getLocal
Total
Money
(
x
.
PeopleNumber
));
tempPrice
=
Number
(
that
.
getLocalMoney
(
x
.
PeopleNumber
));
});
});
}
}
if
(
this
.
teamPrice
.
SingleDMCPrice
<=
0
||
(
type
&&
type
==
1
))
{
if
(
this
.
teamPrice
.
SingleDMCPrice
<=
0
||
(
type
&&
type
==
1
))
{
this
.
teamPrice
.
SingleDMCPrice
=
tempPrice
.
toFixed
(
0
);
this
.
teamPrice
.
SingleDMCPrice
=
tempPrice
.
toFixed
(
0
);
}
}
this
.
getSubMoney
();
},
},
//员工列表
//员工列表
getEmployeeList
()
{
getEmployeeList
()
{
...
@@ -1299,7 +1299,7 @@
...
@@ -1299,7 +1299,7 @@
},
},
mounted
()
{
mounted
()
{
this
.
getHotelInit
();
this
.
getHotelInit
();
this
.
getSub
total
Money
();
this
.
getSubMoney
();
},
},
created
()
{
created
()
{
this
.
getEmployeeList
();
this
.
getEmployeeList
();
...
...
This diff is collapsed.
Click to expand it.
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