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
ee9b719c
Commit
ee9b719c
authored
Apr 25, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
52698445
3962224d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
134 additions
and
143 deletions
+134
-143
CostNewPriceForm.vue
...nts/TravelManager/TravelNewQuotation/CostNewPriceForm.vue
+30
-48
CostNewPriceMun.vue
...ents/TravelManager/TravelNewQuotation/CostNewPriceMun.vue
+102
-93
QuotationNewPrice.vue
...ts/TravelManager/TravelNewQuotation/QuotationNewPrice.vue
+2
-2
No files found.
src/components/TravelManager/TravelNewQuotation/CostNewPriceForm.vue
View file @
ee9b719c
...
@@ -74,12 +74,13 @@
...
@@ -74,12 +74,13 @@
<tr>
<tr>
<td
colspan=
"14"
class=
"CP_ComTitle2 CostcomCenter"
>
报价信息
</td>
<td
colspan=
"14"
class=
"CP_ComTitle2 CostcomCenter"
>
报价信息
</td>
</tr>
</tr>
<tr>
<tr>
<td
class=
"CP_ComTitle2"
>
默认报价单
</td>
<td
class=
"CP_ComTitle2"
>
默认报价单
</td>
<td
colspan=
"13"
>
<td
colspan=
"13"
>
<el-switch
type=
"textarea"
:disabled=
"!canEdit"
v-model=
"IsDefault"
@
change=
"queryMsg.IsDefault = IsDefault"
></el-switch>
<el-switch
type=
"textarea"
:disabled=
"!canEdit"
v-model=
"IsDefault"
</td>
@
change=
"queryMsg.IsDefault = IsDefault"
></el-switch>
</tr>
</td>
</tr>
<tr>
<tr>
<td
class=
"CP_ComTitle2 CostcomCenter"
style=
"width:120px"
>
币种
</td>
<td
class=
"CP_ComTitle2 CostcomCenter"
style=
"width:120px"
>
币种
</td>
<td
v-for=
'(item,index) in CostCurrencyList'
>
<td
v-for=
'(item,index) in CostCurrencyList'
>
...
@@ -139,7 +140,7 @@
...
@@ -139,7 +140,7 @@
<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"
>
回佣
<
br/>
(不计入成本)
<
/td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
其它费用
<br
/>
(保险、司导杂费等)
</td>
<td
rowspan=
"2"
width=
'80'
class=
"CP_ComTitle2 CostcomCenter"
>
其它费用
<br
/>
(保险、司导杂费等)
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -172,8 +173,6 @@
...
@@ -172,8 +173,6 @@
</el-form-item>
</el-form-item>
</td>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
<!--
<el-input
type=
'text'
v-model=
"subItem.HotelName"
class=
"w100"
placeholder=
"酒店备注"
></el-input>
<br
/>
-->
<el-select
style=
"margin:0 5px;"
v-model=
'subItem.ContainDinnerType'
class=
"w100"
placeholder=
"含餐类型"
<el-select
style=
"margin:0 5px;"
v-model=
'subItem.ContainDinnerType'
class=
"w100"
placeholder=
"含餐类型"
@
change=
"DinnerTypeChange(subItem)"
>
@
change=
"DinnerTypeChange(subItem)"
>
<el-option
label=
"含餐类型"
:value=
'0'
></el-option>
<el-option
label=
"含餐类型"
:value=
'0'
></el-option>
...
@@ -234,7 +233,6 @@
...
@@ -234,7 +233,6 @@
</tr>
</tr>
</
template
>
</
template
>
</template>
</template>
<
template
v-for=
"(childItem,childIndex) in CostNumberList"
>
<
template
v-for=
"(childItem,childIndex) in CostNumberList"
>
<tr>
<tr>
<td
colspan=
"3"
class=
"CP_ComTitle2 CostcomCenter"
v-if=
"childIndex==0"
<td
colspan=
"3"
class=
"CP_ComTitle2 CostcomCenter"
v-if=
"childIndex==0"
...
@@ -251,10 +249,10 @@
...
@@ -251,10 +249,10 @@
{{
getDayXiaoJi
(
7
,
1
)
}}
{{
getDayXiaoJi
(
7
,
1
)
}}
</td>
</td>
<td>
<td>
{{
childItem
.
PeopleNumber
}}
{{
childItem
.
PeopleNumber
}}
人
</td>
</td>
<td>
<td>
{{
((
Number
(
getDayXiaoJi
(
2
,
1
))
+
Number
(
getDayXiaoJi
(
7
,
1
)))
/
Number
(
childItem
.
PeopleNumber
)).
toFixed
(
0
)
}}
</td>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
{{
getDayXiaoJi
(
3
,
1
)
}}
{{
getDayXiaoJi
(
3
,
1
)
}}
...
@@ -292,10 +290,10 @@
...
@@ -292,10 +290,10 @@
{{
getDayXiaoJi
(
7
,
2
)
}}
{{
getDayXiaoJi
(
7
,
2
)
}}
</td>
</td>
<td>
<td>
{{
childItem
.
PeopleNumber
}}
{{
childItem
.
PeopleNumber
}}
人
</td>
</td>
<td>
<td>
{{
((
Number
(
getDayXiaoJi
(
2
,
2
))
+
Number
(
getDayXiaoJi
(
7
,
2
)))
/
Number
(
childItem
.
PeopleNumber
)).
toFixed
(
0
)
}}
</td>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
{{
getDayXiaoJi
(
3
,
2
)
}}
{{
getDayXiaoJi
(
3
,
2
)
}}
...
@@ -337,8 +335,6 @@
...
@@ -337,8 +335,6 @@
</el-form-item>
</el-form-item>
</td>
</td>
<td>
<td>
<!--
<el-input
type=
'text'
v-model=
"subItem.HotelName"
class=
"w100"
placeholder=
"酒店备注"
></el-input>
<br
/>
-->
<el-select
v-model=
'subItem.ContainDinnerType'
class=
"w100"
placeholder=
"含餐类型"
<el-select
v-model=
'subItem.ContainDinnerType'
class=
"w100"
placeholder=
"含餐类型"
@
change=
"DinnerTypeChange(subItem)"
>
@
change=
"DinnerTypeChange(subItem)"
>
<el-option
label=
"含餐类型"
:value=
'0'
></el-option>
<el-option
label=
"含餐类型"
:value=
'0'
></el-option>
...
@@ -416,13 +412,11 @@
...
@@ -416,13 +412,11 @@
</td>
</td>
<td>
<td>
<
template
v-if=
"CostNumberList&&CostNumberList.length>0"
>
<
template
v-if=
"CostNumberList&&CostNumberList.length>0"
>
{{
CostNumberList
[
0
].
PeopleNumber
}}
{{
CostNumberList
[
0
].
PeopleNumber
}}
人
</
template
>
</
template
>
</td>
</td>
<td>
<td>
<
template
v-if=
"CostNumberList&&CostNumberList.length>0"
>
{{
((
Number
(
getDayXiaoJi
(
2
,
1
))
+
Number
(
getDayXiaoJi
(
7
,
1
)))
/
Number
(
CostNumberList
[
0
].
PeopleNumber
)).
toFixed
(
0
)
}}
</
template
>
</td>
</td>
<td>
<td>
{{getDayXiaoJi(3,1)}}
{{getDayXiaoJi(3,1)}}
...
@@ -458,13 +452,11 @@
...
@@ -458,13 +452,11 @@
</td>
</td>
<td>
<td>
<
template
v-if=
"CostNumberList&&CostNumberList.length>0"
>
<
template
v-if=
"CostNumberList&&CostNumberList.length>0"
>
{{
CostNumberList
[
0
].
PeopleNumber
}}
{{
CostNumberList
[
0
].
PeopleNumber
}}
人
</
template
>
</
template
>
</td>
</td>
<td>
<td>
<
template
v-if=
"CostNumberList&&CostNumberList.length>0"
>
{{
(
(
Number
(
getDayXiaoJi
(
2
,
2
))
+
Number
(
getDayXiaoJi
(
7
,
2
)))
/
Number
(
CostNumberList
[
0
].
PeopleNumber
)).
toFixed
(
0
)
}}
</
template
>
</td>
</td>
<td>
<td>
{{getDayXiaoJi(3,2)}}
{{getDayXiaoJi(3,2)}}
...
@@ -589,7 +581,7 @@
...
@@ -589,7 +581,7 @@
</el-form-item>
</el-form-item>
</td>
</td>
<td
class=
"CP_ComTitle2 CostcomCenter"
>
3
</td>
<td
class=
"CP_ComTitle2 CostcomCenter"
>
3
</td>
<td
class=
"CP_ComTitle2"
>
领队小费
</td>
<td
class=
"CP_ComTitle2"
>
领队小费
(每人)
</td>
<td
colspan=
"2"
>
<td
colspan=
"2"
>
<el-form-item>
<el-form-item>
<el-select
v-model=
'OtherPrice.LeaderTripMoneyCurrencyId'
class=
"w70"
>
<el-select
v-model=
'OtherPrice.LeaderTripMoneyCurrencyId'
class=
"w70"
>
...
@@ -627,7 +619,7 @@
...
@@ -627,7 +619,7 @@
</el-form-item>
</el-form-item>
</td>
</td>
<td
class=
"CP_ComTitle2 CostcomCenter"
>
4
</td>
<td
class=
"CP_ComTitle2 CostcomCenter"
>
4
</td>
<td
class=
"CP_ComTitle2"
>
司机小费
</td>
<td
class=
"CP_ComTitle2"
>
司机小费
(每人)
</td>
<td
colspan=
"2"
>
<td
colspan=
"2"
>
<el-form-item>
<el-form-item>
<el-select
v-model=
'OtherPrice.DriverGuideMoneyCurrencyId'
class=
"w70"
>
<el-select
v-model=
'OtherPrice.DriverGuideMoneyCurrencyId'
class=
"w70"
>
...
@@ -648,7 +640,7 @@
...
@@ -648,7 +640,7 @@
<tr>
<tr>
<td
colspan=
"7"
></td>
<td
colspan=
"7"
></td>
<td
class=
"CP_ComTitle2 CostcomCenter"
>
5
</td>
<td
class=
"CP_ComTitle2 CostcomCenter"
>
5
</td>
<td
class=
"CP_ComTitle2"
>
导游小费
</td>
<td
class=
"CP_ComTitle2"
>
导游小费
(每人)
</td>
<td
colspan=
"2"
>
<td
colspan=
"2"
>
<el-form-item>
<el-form-item>
<el-select
v-model=
'OtherPrice.GuideMoneyCurrencyId'
class=
"w70"
>
<el-select
v-model=
'OtherPrice.GuideMoneyCurrencyId'
class=
"w70"
>
...
@@ -996,17 +988,13 @@
...
@@ -996,17 +988,13 @@
</el-input>
</el-input>
</td>
</td>
</tr>
</tr>
<!-- <tr>
<td class="CP_ComTitle2">备注</td>
<td colspan="13">
<el-input type="textarea" v-model="OtherPrice.OtherRemark"></el-input>
</td>
</tr> -->
<tr>
<tr>
<td
class=
"CP_ComTitle2"
>
附件
</td>
<td
class=
"CP_ComTitle2"
>
附件
</td>
<td
colspan=
"13"
>
<td
colspan=
"13"
>
<el-upload
v-if=
"!teamPrice.ContractArray || !teamPrice.ContractArray.length"
class=
"upload-demo"
style=
"display:inline-block;position:relative;top:-1px;left:3px;"
<el-upload
v-if=
"!teamPrice.ContractArray || !teamPrice.ContractArray.length"
class=
"upload-demo"
:http-request=
"uploadFileBtn"
:show-file-list=
"false"
action=
""
>
style=
"display:inline-block;position:relative;top:-1px;left:3px;"
:http-request=
"uploadFileBtn"
:show-file-list=
"false"
action=
""
>
<el-button
size=
"small"
type=
"primary"
>
报价单附件
</el-button>
<el-button
size=
"small"
type=
"primary"
>
报价单附件
</el-button>
</el-upload>
</el-upload>
<
template
v-if=
"teamPrice.ContractArray&& teamPrice.ContractArray.length>0"
>
<
template
v-if=
"teamPrice.ContractArray&& teamPrice.ContractArray.length>0"
>
...
@@ -1603,26 +1591,21 @@
...
@@ -1603,26 +1591,21 @@
var
wuPrice
=
Number
(
this
.
getDayXiaoJi
(
5
,
2
));
//午餐
var
wuPrice
=
Number
(
this
.
getDayXiaoJi
(
5
,
2
));
//午餐
var
wanPrice
=
Number
(
this
.
getDayXiaoJi
(
6
,
2
));
//晚餐
var
wanPrice
=
Number
(
this
.
getDayXiaoJi
(
6
,
2
));
//晚餐
var
otherPrice
=
Number
(
this
.
getDayXiaoJi
(
9
,
2
));
//其它费用
var
otherPrice
=
Number
(
this
.
getDayXiaoJi
(
9
,
2
));
//其它费用
var
busFee
=
Number
(
this
.
getDayXiaoJi
(
2
,
2
))
+
Number
(
this
.
getDayXiaoJi
(
7
,
2
));
//车费
var
busFee
=
Number
(
this
.
getDayXiaoJi
(
2
,
2
))
+
Number
(
this
.
getDayXiaoJi
(
7
,
2
));
//车费
totalMoney
=
busFee
+
hotelPrice
+
sencePrice
+
zaoPrice
+
wuPrice
+
wanPrice
+
otherPrice
;
totalMoney
=
busFee
+
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
;
//每人车费
var
busFee
=
Number
(
this
.
getDayXiaoJi
(
2
,
1
))
+
Number
(
this
.
getDayXiaoJi
(
7
,
1
));
var
perBusFee
=
0
;
if
(
PeopleNumber
>
0
)
{
perBusFee
=
(
Number
(
this
.
getDayXiaoJi
(
2
,
1
))
+
Number
(
this
.
getDayXiaoJi
(
7
,
1
)))
/
Number
(
PeopleNumber
)
.
toFixed
(
0
);
}
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
zaoPrice
=
Number
(
this
.
getDayXiaoJi
(
4
,
1
));
//早餐
var
zaoPrice
=
Number
(
this
.
getDayXiaoJi
(
4
,
1
));
//早餐
var
wuPrice
=
Number
(
this
.
getDayXiaoJi
(
5
,
1
));
//午餐
var
wuPrice
=
Number
(
this
.
getDayXiaoJi
(
5
,
1
));
//午餐
var
wanPrice
=
Number
(
this
.
getDayXiaoJi
(
6
,
1
));
//晚餐
var
wanPrice
=
Number
(
this
.
getDayXiaoJi
(
6
,
1
));
//晚餐
var
otherPrice
=
Number
(
this
.
getDayXiaoJi
(
9
,
1
));
//其它费用
var
otherPrice
=
Number
(
this
.
getDayXiaoJi
(
9
,
1
));
//其它费用
totalMoney
=
perB
usFee
+
hotelPrice
+
sencePrice
+
zaoPrice
+
wuPrice
+
wanPrice
+
otherPrice
;
totalMoney
=
b
usFee
+
hotelPrice
+
sencePrice
+
zaoPrice
+
wuPrice
+
wanPrice
+
otherPrice
;
return
totalMoney
.
toFixed
(
0
);
return
totalMoney
.
toFixed
(
0
);
},
},
//计算领队分摊
//计算领队分摊
...
@@ -1650,7 +1633,6 @@
...
@@ -1650,7 +1633,6 @@
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
'queryMsg'
,
this
.
queryMsg
)
this
.
IsDefault
=
this
.
queryMsg
.
IsDefault
this
.
IsDefault
=
this
.
queryMsg
.
IsDefault
this
.
canEdit
=
this
.
queryMsg
.
canEdit
this
.
canEdit
=
this
.
queryMsg
.
canEdit
this
.
getSubtotalMoney
();
this
.
getSubtotalMoney
();
...
@@ -1663,15 +1645,15 @@
...
@@ -1663,15 +1645,15 @@
postConfig
:
{
postConfig
:
{
handler
:
function
(
val
,
oldVal
)
{
handler
:
function
(
val
,
oldVal
)
{
this
.
getLineTeamList
(
this
.
postConfig
.
LineId
);
this
.
getLineTeamList
(
this
.
postConfig
.
LineId
);
this
.
IsDefault
=
this
.
queryMsg
.
IsDefault
this
.
IsDefault
=
this
.
queryMsg
.
IsDefault
this
.
canEdit
=
this
.
queryMsg
.
canEdit
this
.
canEdit
=
this
.
queryMsg
.
canEdit
},
},
deep
:
true
deep
:
true
},
},
CostNumberList
:
{
CostNumberList
:
{
handler
:
function
(
val
,
oldVal
)
{
handler
:
function
(
val
,
oldVal
)
{
this
.
IsDefault
=
this
.
queryMsg
.
IsDefault
this
.
IsDefault
=
this
.
queryMsg
.
IsDefault
this
.
canEdit
=
this
.
queryMsg
.
canEdit
this
.
canEdit
=
this
.
queryMsg
.
canEdit
this
.
getchange
()
this
.
getchange
()
},
},
deep
:
true
deep
:
true
...
...
src/components/TravelManager/TravelNewQuotation/CostNewPriceMun.vue
View file @
ee9b719c
This diff is collapsed.
Click to expand it.
src/components/TravelManager/TravelNewQuotation/QuotationNewPrice.vue
View file @
ee9b719c
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
}
}
return
currencyNumList
return
currencyNumList
}
}
this
.
postData
.
TravelState
=
this
.
postData
.
TravelState
||
type
;
this
.
postData
.
TravelState
=
type
;
// var nObj = {
// var nObj = {
// config: this.postData,
// config: this.postData,
// dayCostPriceList: this.dayCostPriceList,
// dayCostPriceList: this.dayCostPriceList,
...
@@ -182,7 +182,7 @@
...
@@ -182,7 +182,7 @@
config
:
this
.
postData
,
config
:
this
.
postData
,
OfferArray
:
data
OfferArray
:
data
}
}
console
.
log
(
'保存数据'
,
data
)
console
.
log
(
'保存数据'
,
data
,
nObj
)
// return 0;
// return 0;
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
apipost
(
this
.
apipost
(
...
...
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