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
2f69d260
Commit
2f69d260
authored
Mar 29, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增其它费用
parent
f2a39184
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
39 deletions
+82
-39
CostNewPrice.vue
...ponents/TravelManager/TravelNewQuotation/CostNewPrice.vue
+60
-23
CostNewPriceAudit.vue
...ts/TravelManager/TravelNewQuotation/CostNewPriceAudit.vue
+22
-16
No files found.
src/components/TravelManager/TravelNewQuotation/CostNewPrice.vue
View file @
2f69d260
...
@@ -234,13 +234,14 @@
...
@@ -234,13 +234,14 @@
</tr>
</tr>
<tr>
<tr>
<td
rowspan=
"2"
style=
"width:100px"
class=
"CP_ComTitle2 CostcomCenter"
>
Day
</td>
<td
rowspan=
"2"
style=
"width:100px"
class=
"CP_ComTitle2 CostcomCenter"
>
Day
</td>
<td
rowspan=
"2"
colspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
行程大点
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
行程大点
</td>
<td
rowspan=
"2"
width=
"80"
class=
"CP_ComTitle2 CostcomCenter"
>
币种
</td>
<td
rowspan=
"2"
width=
"80"
class=
"CP_ComTitle2 CostcomCenter"
>
币种
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
酒店
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
酒店
</td>
<td
colspan=
"4"
class=
"CP_ComTitle2 CostcomCenter"
>
车
</td>
<td
colspan=
"4"
class=
"CP_ComTitle2 CostcomCenter"
>
车
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
门票
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
门票
</td>
<td
colspan=
"3"
class=
"CP_ComTitle2 CostcomCenter"
>
餐
</td>
<td
colspan=
"3"
class=
"CP_ComTitle2 CostcomCenter"
>
餐
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
回佣
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
回佣
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
其它费用
<br/>
(保险、司导杂费等)
</td>
</tr>
</tr>
<tr>
<tr>
<td
width=
"80"
class=
"CP_ComTitle2 CostcomCenter"
>
总车资
</td>
<td
width=
"80"
class=
"CP_ComTitle2 CostcomCenter"
>
总车资
</td>
...
@@ -323,17 +324,21 @@
...
@@ -323,17 +324,21 @@
v-model=
'subItem.DinnerCostPrice'
class=
"w60"
v-model=
'subItem.DinnerCostPrice'
class=
"w60"
@
keyup
.
native=
"checkPrice(subItem,'DinnerCostPrice'),getchange()"
></el-input>
@
keyup
.
native=
"checkPrice(subItem,'DinnerCostPrice'),getchange()"
></el-input>
</td>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
colspan=
"2"
style=
"border:1px solid red"
>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
<el-input
type=
"text"
v-model=
'subItem.RebatePrice'
class=
"w60"
<el-input
type=
"text"
v-model=
'subItem.RebatePrice'
class=
"w60"
@
keyup
.
native=
"checkPrice(subItem,'RebatePrice'),getchange()"
></el-input>
@
keyup
.
native=
"checkPrice(subItem,'RebatePrice'),getchange()"
></el-input>
</td>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
<el-input
type=
"text"
v-model=
'subItem.OtherPrice'
class=
"w60"
@
keyup
.
native=
"checkPrice(subItem,'OtherPrice'),getchange()"
></el-input>
</td>
</tr>
</tr>
</
template
>
</
template
>
</template>
</template>
<
template
v-for=
"(childItem,childIndex) in CostNumberList"
>
<
template
v-for=
"(childItem,childIndex) in CostNumberList"
>
<tr>
<tr>
<td
colspan=
"
4
"
class=
"CP_ComTitle2 CostcomCenter"
v-if=
"childIndex==0"
<td
colspan=
"
3
"
class=
"CP_ComTitle2 CostcomCenter"
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
:rowspan=
"CostNumberList.length"
>
外币小计
外币小计
</td>
</td>
...
@@ -367,11 +372,14 @@
...
@@ -367,11 +372,14 @@
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
{{
getDayXiaoJi
(
8
,
1
)
}}
{{
getDayXiaoJi
(
8
,
1
)
}}
</td>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
{{
getDayXiaoJi
(
9
,
1
)
}}
</td>
</tr>
</tr>
</
template
>
</
template
>
<
template
v-for=
"(childItem,childIndex) in CostNumberList"
>
<
template
v-for=
"(childItem,childIndex) in CostNumberList"
>
<tr>
<tr>
<td
colspan=
"
4
"
class=
"CP_ComTitle2 CostcomCenter"
v-if=
"childIndex==0"
<td
colspan=
"
3
"
class=
"CP_ComTitle2 CostcomCenter"
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
:rowspan=
"CostNumberList.length"
>
人民币小计
人民币小计
</td>
</td>
...
@@ -405,6 +413,9 @@
...
@@ -405,6 +413,9 @@
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
{{
getDayXiaoJi
(
8
,
2
)
}}
{{
getDayXiaoJi
(
8
,
2
)
}}
</td>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
{{
getDayXiaoJi
(
9
,
2
)
}}
</td>
</tr>
</tr>
</
template
>
</
template
>
</template>
</template>
...
@@ -413,7 +424,7 @@
...
@@ -413,7 +424,7 @@
<td
align=
"center"
>
<td
align=
"center"
>
{{
subItem
.
DayNum
}}
{{
subItem
.
DayNum
}}
</td>
</td>
<td
colspan=
"2"
>
<td>
<el-input
type=
"textarea"
resize=
"none"
class=
"w250"
v-model=
"subItem.Title"
></el-input>
<el-input
type=
"textarea"
resize=
"none"
class=
"w250"
v-model=
"subItem.Title"
></el-input>
</td>
</td>
<td>
<td>
...
@@ -482,13 +493,17 @@
...
@@ -482,13 +493,17 @@
v-model=
'subItem.DinnerCostPrice'
class=
"w60"
v-model=
'subItem.DinnerCostPrice'
class=
"w60"
@
keyup
.
native=
"checkPrice(subItem,'DinnerCostPrice'),getchange()"
></el-input>
@
keyup
.
native=
"checkPrice(subItem,'DinnerCostPrice'),getchange()"
></el-input>
</td>
</td>
<td
style=
"border:1px solid red"
>
<td>
<el-input
type=
"text"
v-model=
'subItem.RebatePrice'
class=
"w60"
<el-input
type=
"text"
v-model=
'subItem.RebatePrice'
class=
"w60"
@
keyup
.
native=
"checkPrice(subItem,'RebatePrice'),getchange()"
></el-input>
@
keyup
.
native=
"checkPrice(subItem,'RebatePrice'),getchange()"
></el-input>
</td>
</td>
<td>
<el-input
type=
"text"
v-model=
'subItem.OtherPrice'
class=
"w60"
@
keyup
.
native=
"checkPrice(subItem,'OtherPrice'),getchange()"
></el-input>
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"
4
"
class=
"CP_ComTitle2 CostcomCenter"
>
<td
colspan=
"
3
"
class=
"CP_ComTitle2 CostcomCenter"
>
外币小计
外币小计
</td>
</td>
<td>
<td>
...
@@ -525,9 +540,12 @@
...
@@ -525,9 +540,12 @@
<td>
<td>
{{getDayXiaoJi(8,1)}}
{{getDayXiaoJi(8,1)}}
</td>
</td>
<td>
{{getDayXiaoJi(9,1)}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"
4
"
class=
"CP_ComTitle2 CostcomCenter"
>
<td
colspan=
"
3
"
class=
"CP_ComTitle2 CostcomCenter"
>
人民币小计
人民币小计
</td>
</td>
<td>
<td>
...
@@ -564,6 +582,9 @@
...
@@ -564,6 +582,9 @@
<td>
<td>
{{getDayXiaoJi(8,2)}}
{{getDayXiaoJi(8,2)}}
</td>
</td>
<td>
{{getDayXiaoJi(9,2)}}
</td>
</tr>
</tr>
</template>
</template>
<tr>
<tr>
...
@@ -1337,6 +1358,10 @@
...
@@ -1337,6 +1358,10 @@
if
(
type
==
8
)
{
if
(
type
==
8
)
{
xiaoJi
+=
Number
(
item
.
RebatePrice
)
*
Number
(
currencyRate
);
xiaoJi
+=
Number
(
item
.
RebatePrice
)
*
Number
(
currencyRate
);
}
}
//杂费
if
(
type
==
9
)
{
xiaoJi
+=
Number
(
item
.
OtherPrice
)
*
Number
(
currencyRate
);
}
});
});
return
xiaoJi
.
toFixed
(
0
);
return
xiaoJi
.
toFixed
(
0
);
},
},
...
@@ -1471,6 +1496,7 @@
...
@@ -1471,6 +1496,7 @@
PassFee
:
0
,
//过路费
PassFee
:
0
,
//过路费
HotelName
:
""
,
//酒店名称
HotelName
:
""
,
//酒店名称
RebatePrice
:
0
,
//回佣
RebatePrice
:
0
,
//回佣
OtherPrice
:
0
,
//其它费用(保险、司导杂费等)
};
};
this
.
dayCostPrice
.
push
(
dayItem
);
this
.
dayCostPrice
.
push
(
dayItem
);
}
}
...
@@ -1661,28 +1687,39 @@
...
@@ -1661,28 +1687,39 @@
//获取地接项目报价
//获取地接项目报价
getLocalTotalMoney
(
PeopleNumber
)
{
getLocalTotalMoney
(
PeopleNumber
)
{
let
totalMoney
=
0.0
;
let
totalMoney
=
0.0
;
totalMoney
=
Number
(
this
.
getDayXiaoJi
(
1
,
2
))
+
var
hotelPrice
=
Number
(
this
.
getDayXiaoJi
(
1
,
2
));
//酒店费用
Number
(
this
.
getDayXiaoJi
(
3
,
2
))
+
var
sencePrice
=
Number
(
this
.
getDayXiaoJi
(
3
,
2
));
//景点费用
Number
(
this
.
getDayXiaoJi
(
4
,
2
))
+
var
zaoPrice
=
Number
(
this
.
getDayXiaoJi
(
4
,
2
));
//早餐
Number
(
this
.
getDayXiaoJi
(
5
,
2
))
+
var
wuPrice
=
Number
(
this
.
getDayXiaoJi
(
5
,
2
));
//午餐
Number
(
this
.
getDayXiaoJi
(
6
,
2
))
+
var
wanPrice
=
Number
(
this
.
getDayXiaoJi
(
6
,
2
));
//晚餐
Number
(
this
.
getDayXiaoJi
(
2
,
2
))
+
var
otherPrice
=
Number
(
this
.
getDayXiaoJi
(
9
,
2
));
//其它费用
Number
(
this
.
getDayXiaoJi
(
7
,
2
));
//每人车费
var
perBusFee
=
0
;
if
(
PeopleNumber
>
0
)
{
perBusFee
=
(
Number
(
this
.
getDayXiaoJi
(
2
,
2
))
+
Number
(
this
.
getDayXiaoJi
(
7
,
2
)))
/
Number
(
PeopleNumber
)
.
toFixed
(
0
);
}
totalMoney
=
perBusFee
+
hotelPrice
+
sencePrice
+
zaoPrice
+
wuPrice
+
wanPrice
+
otherPrice
;
return
totalMoney
.
toFixed
(
0
);
return
totalMoney
.
toFixed
(
0
);
},
},
//获取地接项目报价
//获取地接项目报价
getLocalJpyTotalMoney
(
PeopleNumber
)
{
getLocalJpyTotalMoney
(
PeopleNumber
)
{
let
totalMoney
=
0.0
;
let
totalMoney
=
0.0
;
totalMoney
=
Number
(
this
.
getDayXiaoJi
(
1
,
1
))
+
//每人车费
Number
(
this
.
getDayXiaoJi
(
3
,
1
))
+
var
perBusFee
=
0
;
Number
(
this
.
getDayXiaoJi
(
4
,
1
))
+
if
(
PeopleNumber
>
0
)
{
Number
(
this
.
getDayXiaoJi
(
5
,
1
))
+
perBusFee
=
(
Number
(
this
.
getDayXiaoJi
(
2
,
1
))
+
Number
(
this
.
getDayXiaoJi
(
7
,
1
)))
/
Number
(
PeopleNumber
)
Number
(
this
.
getDayXiaoJi
(
6
,
1
))
+
.
toFixed
(
0
);
Number
(
this
.
getDayXiaoJi
(
2
,
1
))
+
}
Number
(
this
.
getDayXiaoJi
(
7
,
1
));
var
hotelPrice
=
Number
(
this
.
getDayXiaoJi
(
1
,
1
));
//酒店费用
var
sencePrice
=
Number
(
this
.
getDayXiaoJi
(
3
,
1
));
//景点费用
var
zaoPrice
=
Number
(
this
.
getDayXiaoJi
(
4
,
1
));
//早餐
var
wuPrice
=
Number
(
this
.
getDayXiaoJi
(
5
,
1
));
//午餐
var
wanPrice
=
Number
(
this
.
getDayXiaoJi
(
6
,
1
));
//晚餐
var
otherPrice
=
Number
(
this
.
getDayXiaoJi
(
9
,
1
));
//其它费用
totalMoney
=
perBusFee
+
hotelPrice
+
sencePrice
+
zaoPrice
+
wuPrice
+
wanPrice
+
otherPrice
;
return
totalMoney
.
toFixed
(
0
);
return
totalMoney
.
toFixed
(
0
);
},
},
//计算领队分摊
//计算领队分摊
getLeaderShare
()
{
getLeaderShare
()
{
let
that
=
this
;
let
that
=
this
;
...
...
src/components/TravelManager/TravelNewQuotation/CostNewPriceAudit.vue
View file @
2f69d260
...
@@ -150,13 +150,14 @@
...
@@ -150,13 +150,14 @@
</tr>
</tr>
<tr>
<tr>
<td
rowspan=
"2"
width=
'180'
class=
"CP_ComTitle2 CostcomCenter"
>
Day
</td>
<td
rowspan=
"2"
width=
'180'
class=
"CP_ComTitle2 CostcomCenter"
>
Day
</td>
<td
rowspan=
"2"
colspan=
"2"
width=
'200'
class=
"CP_ComTitle2 CostcomCenter"
>
行程大点
</td>
<td
rowspan=
"2"
width=
'200'
class=
"CP_ComTitle2 CostcomCenter"
>
行程大点
</td>
<td
rowspan=
"2"
width=
"100"
class=
"CP_ComTitle2 CostcomCenter"
>
币种
</td>
<td
rowspan=
"2"
width=
"100"
class=
"CP_ComTitle2 CostcomCenter"
>
币种
</td>
<td
rowspan=
"2"
width=
'60'
class=
"CP_ComTitle2 CostcomCenter"
>
酒店
</td>
<td
rowspan=
"2"
width=
'60'
class=
"CP_ComTitle2 CostcomCenter"
>
酒店
</td>
<td
colspan=
"4"
width=
'100'
class=
"CP_ComTitle2 CostcomCenter"
>
车
</td>
<td
colspan=
"4"
width=
'100'
class=
"CP_ComTitle2 CostcomCenter"
>
车
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
门票
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
门票
</td>
<td
colspan=
"3"
width=
'100'
class=
"CP_ComTitle2 CostcomCenter"
>
餐
</td>
<td
colspan=
"3"
width=
'100'
class=
"CP_ComTitle2 CostcomCenter"
>
餐
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
回佣
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
回佣
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
其它费用
<br/>
(保险、司导杂费等)
</td>
</tr>
</tr>
<tr>
<tr>
<td
width=
"120"
class=
"CP_ComTitle2 CostcomCenter"
>
总车资
</td>
<td
width=
"120"
class=
"CP_ComTitle2 CostcomCenter"
>
总车资
</td>
...
@@ -216,6 +217,9 @@
...
@@ -216,6 +217,9 @@
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
{{subItem.RebatePrice}}
{{subItem.RebatePrice}}
</td>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
{{subItem.OtherPrice}}
</td>
</tr>
</tr>
</template>
</template>
</template>
</template>
...
@@ -296,7 +300,7 @@
...
@@ -296,7 +300,7 @@
<td
align=
"center"
>
<td
align=
"center"
>
<div
style=
"width:100px;"
>
{{
subItem
.
DayNum
}}
</div>
<div
style=
"width:100px;"
>
{{
subItem
.
DayNum
}}
</div>
</td>
</td>
<td
colspan=
"2"
>
<td>
{{
subItem
.
Title
}}
{{
subItem
.
Title
}}
</td>
</td>
<td>
<td>
...
@@ -342,9 +346,12 @@
...
@@ -342,9 +346,12 @@
<td>
<td>
{{subItem.RebatePrice}}
{{subItem.RebatePrice}}
</td>
</td>
<td>
{{subItem.OtherPrice}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"
4
"
class=
"CP_ComTitle2 CostcomCenter"
>
<td
colspan=
"
3
"
class=
"CP_ComTitle2 CostcomCenter"
>
外币小计
外币小计
</td>
</td>
<td>
<td>
...
@@ -381,9 +388,12 @@
...
@@ -381,9 +388,12 @@
<td>
<td>
{{getDayXiaoJi(8,1)}}
{{getDayXiaoJi(8,1)}}
</td>
</td>
<td>
{{getDayXiaoJi(9,1)}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"
4
"
class=
"CP_ComTitle2 CostcomCenter"
>
<td
colspan=
"
3
"
class=
"CP_ComTitle2 CostcomCenter"
>
人民币小计
人民币小计
</td>
</td>
<td>
<td>
...
@@ -420,6 +430,9 @@
...
@@ -420,6 +430,9 @@
<td>
<td>
{{getDayXiaoJi(8,2)}}
{{getDayXiaoJi(8,2)}}
</td>
</td>
<td>
{{getDayXiaoJi(9,2)}}
</td>
</tr>
</tr>
</template>
</template>
<tr>
<tr>
...
@@ -996,6 +1009,10 @@
...
@@ -996,6 +1009,10 @@
if
(
type
==
8
)
{
if
(
type
==
8
)
{
xiaoJi
+=
Number
(
item
.
RebatePrice
)
*
Number
(
currencyRate
);
xiaoJi
+=
Number
(
item
.
RebatePrice
)
*
Number
(
currencyRate
);
}
}
// 其它费用(保险、司导杂费等)
if
(
type
==
9
)
{
xiaoJi
+=
Number
(
item
.
OtherPrice
)
*
Number
(
currencyRate
);
}
});
});
return
xiaoJi
.
toFixed
(
0
);
return
xiaoJi
.
toFixed
(
0
);
},
},
...
@@ -1061,18 +1078,7 @@
...
@@ -1061,18 +1078,7 @@
}
}
return
parseFloat
(
value
);
return
parseFloat
(
value
);
},
},
//获取地接项目报价
getLocalTotalMoney
(
PeopleNumber
)
{
let
totalMoney
=
0.0
;
totalMoney
=
Number
(
this
.
getDayXiaoJi
(
1
,
2
))
+
Number
(
this
.
getDayXiaoJi
(
3
,
2
))
+
Number
(
this
.
getDayXiaoJi
(
4
,
2
))
+
Number
(
this
.
getDayXiaoJi
(
5
,
2
))
+
Number
(
this
.
getDayXiaoJi
(
6
,
2
))
+
Number
(
this
.
getDayXiaoJi
(
2
,
2
))
/
Number
(
PeopleNumber
)
+
Number
(
this
.
getDayXiaoJi
(
7
,
2
))
/
Number
(
PeopleNumber
);
return
totalMoney
.
toFixed
(
0
);
},
//计算领队分摊
//计算领队分摊
getLeaderShare
()
{
getLeaderShare
()
{
let
that
=
this
;
let
that
=
this
;
...
...
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