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
4b8a3882
Commit
4b8a3882
authored
Apr 25, 2023
by
youjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
f8d2996f
cf28cb25
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
247 additions
and
277 deletions
+247
-277
CostNewPriceCC.vue
...nents/TravelManager/TravelNewQuotation/CostNewPriceCC.vue
+0
-1
CostNewPriceForm.vue
...nts/TravelManager/TravelNewQuotation/CostNewPriceForm.vue
+55
-60
CostNewPriceMun.vue
...ents/TravelManager/TravelNewQuotation/CostNewPriceMun.vue
+123
-112
QuotationAduit.vue
...nents/TravelManager/TravelNewQuotation/QuotationAduit.vue
+5
-0
QuotationNewPrice.vue
...ts/TravelManager/TravelNewQuotation/QuotationNewPrice.vue
+20
-69
priceDialog.vue
...mponents/TravelManager/TravelNewQuotation/priceDialog.vue
+44
-35
No files found.
src/components/TravelManager/TravelNewQuotation/CostNewPriceCC.vue
View file @
4b8a3882
...
...
@@ -347,7 +347,6 @@
<!-- <template v-if="CostNumberList&&CostNumberList.length>0">
{{( (Number(getDayXiaoJi(2,2))+Number(getDayXiaoJi(7,2)))/Number(CostNumberList[0].PeopleNumber)).toFixed(0)}}
</template> -->
<div>
测试
</div>
</td>
<td>
{{getDayXiaoJi(3,2)}}
...
...
src/components/TravelManager/TravelNewQuotation/CostNewPriceForm.vue
View file @
4b8a3882
...
...
@@ -77,7 +77,8 @@
<tr>
<td
class=
"CP_ComTitle2"
>
默认报价单
</td>
<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"
@
change=
"queryMsg.IsDefault = IsDefault"
></el-switch>
</td>
</tr>
<tr>
...
...
@@ -139,7 +140,7 @@
<td
colspan=
"4"
class=
"CP_ComTitle2 CostcomCenter"
>
车
</td>
<td
rowspan=
"2"
width=
'80'
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>
</tr>
<tr>
...
...
@@ -172,8 +173,6 @@
</el-form-item>
</td>
<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=
"含餐类型"
@
change=
"DinnerTypeChange(subItem)"
>
<el-option
label=
"含餐类型"
:value=
'0'
></el-option>
...
...
@@ -234,7 +233,6 @@
</tr>
</
template
>
</template>
<
template
v-for=
"(childItem,childIndex) in CostNumberList"
>
<tr>
<td
colspan=
"3"
class=
"CP_ComTitle2 CostcomCenter"
v-if=
"childIndex==0"
...
...
@@ -251,10 +249,10 @@
{{
getDayXiaoJi
(
7
,
1
)
}}
</td>
<td>
{{
childItem
.
PeopleNumber
}}
{{
childItem
.
PeopleNumber
}}
人
</td>
<td>
{{
((
Number
(
getDayXiaoJi
(
2
,
1
))
+
Number
(
getDayXiaoJi
(
7
,
1
)))
/
Number
(
childItem
.
PeopleNumber
)).
toFixed
(
0
)
}}
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
{{
getDayXiaoJi
(
3
,
1
)
}}
...
...
@@ -292,10 +290,10 @@
{{
getDayXiaoJi
(
7
,
2
)
}}
</td>
<td>
{{
childItem
.
PeopleNumber
}}
{{
childItem
.
PeopleNumber
}}
人
</td>
<td>
{{
((
Number
(
getDayXiaoJi
(
2
,
2
))
+
Number
(
getDayXiaoJi
(
7
,
2
)))
/
Number
(
childItem
.
PeopleNumber
)).
toFixed
(
0
)
}}
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"CostNumberList.length"
>
{{
getDayXiaoJi
(
3
,
2
)
}}
...
...
@@ -337,8 +335,6 @@
</el-form-item>
</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=
"含餐类型"
@
change=
"DinnerTypeChange(subItem)"
>
<el-option
label=
"含餐类型"
:value=
'0'
></el-option>
...
...
@@ -416,13 +412,11 @@
</td>
<td>
<
template
v-if=
"CostNumberList&&CostNumberList.length>0"
>
{{
CostNumberList
[
0
].
PeopleNumber
}}
{{
CostNumberList
[
0
].
PeopleNumber
}}
人
</
template
>
</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>
{{getDayXiaoJi(3,1)}}
...
...
@@ -458,13 +452,11 @@
</td>
<td>
<
template
v-if=
"CostNumberList&&CostNumberList.length>0"
>
{{
CostNumberList
[
0
].
PeopleNumber
}}
{{
CostNumberList
[
0
].
PeopleNumber
}}
人
</
template
>
</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>
{{getDayXiaoJi(3,2)}}
...
...
@@ -589,7 +581,7 @@
</el-form-item>
</td>
<td
class=
"CP_ComTitle2 CostcomCenter"
>
3
</td>
<td
class=
"CP_ComTitle2"
>
领队小费
</td>
<td
class=
"CP_ComTitle2"
>
领队小费
(每人)
</td>
<td
colspan=
"2"
>
<el-form-item>
<el-select
v-model=
'OtherPrice.LeaderTripMoneyCurrencyId'
class=
"w70"
>
...
...
@@ -627,7 +619,7 @@
</el-form-item>
</td>
<td
class=
"CP_ComTitle2 CostcomCenter"
>
4
</td>
<td
class=
"CP_ComTitle2"
>
司机小费
</td>
<td
class=
"CP_ComTitle2"
>
司机小费
(每人)
</td>
<td
colspan=
"2"
>
<el-form-item>
<el-select
v-model=
'OtherPrice.DriverGuideMoneyCurrencyId'
class=
"w70"
>
...
...
@@ -648,7 +640,7 @@
<tr>
<td
colspan=
"7"
></td>
<td
class=
"CP_ComTitle2 CostcomCenter"
>
5
</td>
<td
class=
"CP_ComTitle2"
>
导游小费
</td>
<td
class=
"CP_ComTitle2"
>
导游小费
(每人)
</td>
<td
colspan=
"2"
>
<el-form-item>
<el-select
v-model=
'OtherPrice.GuideMoneyCurrencyId'
class=
"w70"
>
...
...
@@ -775,9 +767,6 @@
</tr>
<tr>
<td
colspan=
"14"
class=
"CP_ComTitle2"
>
领队分摊部分
<span
style=
"color:red;padding-left:5px;"
>
领队导游分摊,请直接输入日元
</span>
</td>
</tr>
<tr>
...
...
@@ -845,9 +834,6 @@
</tr>
<tr>
<td
colspan=
"14"
class=
"CP_ComTitle2"
>
成本回扣
<span
style=
"color:red;padding-left:5px;"
>
成本回扣,请直接输入日元
</span>
</td>
</tr>
<tr>
...
...
@@ -879,10 +865,22 @@
<tr>
<td
class=
"CP_ComTitle2"
>
人数统计
</td>
<td
class=
"CP_ComTitle2"
>
成本价(人民币)
</td>
<td
class=
"CP_ComTitle2"
>
成本价(日元)
</td>
<td
class=
"CP_ComTitle2"
>
成本总价(日元)
</td>
<td
class=
"CP_ComTitle2"
>
<
template
v-if=
"postConfig.LineId==14"
>
成本价(日元)
</
template
>
</td>
<td
class=
"CP_ComTitle2"
>
<
template
v-if=
"postConfig.LineId==14"
>
成本总价(日元)
</
template
>
</td>
<td
class=
"CP_ComTitle2"
>
销售价格(人民币)
</td>
<td
class=
"CP_ComTitle2"
>
销售价格(日元)
</td>
<td
class=
"CP_ComTitle2"
>
<
template
v-if=
"postConfig.LineId==14"
>
销售价格(日元)
</
template
>
</td>
<td
class=
"CP_ComTitle2"
>
销售付款方式
</td>
<td
class=
"CP_ComTitle2"
>
手配费
</td>
<td
class=
"CP_ComTitle2"
>
手配费付款方式
</td>
...
...
@@ -891,14 +889,22 @@
<tr
v-for=
"item in CostNumberList"
:key=
"item.subCode"
>
<td>
{{item.PeopleNumber}}+1
</td>
<td>
{{item.TotalMoney}}
</td>
<td>
{{item.JPYTotalMoney}}
</td>
<td>
{{item.JPYTotalMoney*item.PeopleNumber}}
</td>
<td>
<
template
v-if=
"postConfig.LineId==14"
>
{{
item
.
JPYTotalMoney
}}
</
template
>
</td>
<td>
<
template
v-if=
"postConfig.LineId==14"
>
{{
item
.
JPYTotalMoney
*
item
.
PeopleNumber
}}
</
template
>
</td>
<td>
<el-input
type=
'text'
class=
"w70"
v-model=
"item.SalePrice"
@
keyup
.
native=
"checkPrice(item,'SalePrice',true)"
maxlength=
"8"
></el-input>
</td>
<td>
<el-input
type=
'text'
class=
"w70"
v-model=
"item.JPYSalePrice"
<el-input
v-if=
"postConfig.LineId==14"
type=
'text'
class=
"w70"
v-model=
"item.JPYSalePrice"
@
keyup
.
native=
"checkPrice(item,'JPYSalePrice',true)"
maxlength=
"8"
></el-input>
</td>
<td>
...
...
@@ -996,17 +1002,12 @@
</el-input>
</td>
</tr>
<!-- <tr>
<td class="CP_ComTitle2">备注</td>
<td colspan="13">
<el-input type="textarea" v-model="OtherPrice.OtherRemark"></el-input>
</td>
</tr> -->
<tr>
<td
class=
"CP_ComTitle2"
>
附件
</td>
<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;"
:http-request=
"uploadFileBtn"
:show-file-list=
"false"
action=
""
>
<el-upload
v-if=
"!teamPrice.ContractArray || !teamPrice.ContractArray.length"
class=
"upload-demo"
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-upload>
<
template
v-if=
"teamPrice.ContractArray&& teamPrice.ContractArray.length>0"
>
...
...
@@ -1603,26 +1604,21 @@
var
wuPrice
=
Number
(
this
.
getDayXiaoJi
(
5
,
2
));
//午餐
var
wanPrice
=
Number
(
this
.
getDayXiaoJi
(
6
,
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
;
return
totalMoney
.
toFixed
(
0
);
},
//获取地接项目报价
getLocalJpyTotalMoney
(
PeopleNumber
)
{
let
totalMoney
=
0.0
;
//每人车费
var
perBusFee
=
0
;
if
(
PeopleNumber
>
0
)
{
perBusFee
=
(
Number
(
this
.
getDayXiaoJi
(
2
,
1
))
+
Number
(
this
.
getDayXiaoJi
(
7
,
1
)))
/
Number
(
PeopleNumber
)
.
toFixed
(
0
);
}
var
busFee
=
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
=
perB
usFee
+
hotelPrice
+
sencePrice
+
zaoPrice
+
wuPrice
+
wanPrice
+
otherPrice
;
totalMoney
=
b
usFee
+
hotelPrice
+
sencePrice
+
zaoPrice
+
wuPrice
+
wanPrice
+
otherPrice
;
return
totalMoney
.
toFixed
(
0
);
},
//计算领队分摊
...
...
@@ -1650,7 +1646,6 @@
}
},
mounted
()
{
console
.
log
(
'queryMsg'
,
this
.
queryMsg
)
this
.
IsDefault
=
this
.
queryMsg
.
IsDefault
this
.
canEdit
=
this
.
queryMsg
.
canEdit
this
.
getSubtotalMoney
();
...
...
src/components/TravelManager/TravelNewQuotation/CostNewPriceMun.vue
View file @
4b8a3882
...
...
@@ -61,11 +61,15 @@
.CostNewPrice
.el-form-item
{
margin-bottom
:
0
!important
;
}
;
}
;
.select-tag
{
font-weight
:
bold
;
color
:
#f12a2a
;
}
</
style
>
<
template
>
...
...
@@ -75,12 +79,20 @@
<div
class=
"QuotationFirstDiv1"
>
<table>
<tr>
<td
width=
"80"
class=
"txtRightCost"
>
出团类型
</td>
<td>
<el-select
class=
"multiple_input"
v-model=
"postConfig.TeamType"
@
change=
"postConfig.LineId=0,postConfig.LineteamId=0"
>
<el-option
v-for=
'item in teamList'
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
</td>
<td
width=
"80"
class=
"txtRightCost"
>
线路
</td>
<td>
<el-select
style=
"width:100%"
v-model=
"postConfig.LineId"
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"changeLine()"
filterable
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'0'
></el-option>
<el-option
v-for=
"item in LineList"
:label=
'item.LineName'
:value=
'item.LineID'
:key=
'item.LineID'
>
<el-option
v-for=
"item in
get
LineList"
:label=
'item.LineName'
:value=
'item.LineID'
:key=
'item.LineID'
>
</el-option>
</el-select>
</td>
...
...
@@ -92,11 +104,6 @@
</el-option>
</el-select>
</td>
<td
width=
"80"
class=
"txtRightCost"
>
客户名称
</td>
<td>
<el-input
v-model=
"postConfig.CustomerName"
type=
"text"
placeholder=
"客户名称"
maxlength=
"200"
>
</el-input>
</td>
</tr>
<tr>
<td
colspan=
"6"
style=
"height:20px;"
>
...
...
@@ -137,12 +144,10 @@
<el-date-picker
type=
"date"
v-model=
"postConfig.OutDateTime"
value-format=
"yyyy-MM-dd"
placeholder
>
</el-date-picker>
</td>
<td
width=
"80"
class=
"txtRightCost"
>
出团类型
</td>
<td
width=
"80"
class=
"txtRightCost"
>
客户名称
</td>
<td>
<el-select
class=
"multiple_input"
v-model=
"postConfig.TeamType"
filterable
>
<el-option
v-for=
'item in teamList'
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
<el-input
v-model=
"postConfig.CustomerName"
type=
"text"
placeholder=
"客户名称"
maxlength=
"200"
>
</el-input>
</td>
</tr>
</table>
...
...
@@ -186,43 +191,47 @@
</div>
</div>
<br
/>
<!-- <el-tabs v-model="tabsActive" @tab-click="changeTabs">
<el-tab-pane :label="`报价单${index + 1}${item.queryMsg.IsDefault ? '(默认)' : ''}`" v-for="(item, index) in orderList" :key="index"></el-tab-pane>
</el-tabs> -->
<el-tag
v-for=
"(item, index) in orderList"
:key=
"index"
style=
"margin-right: 10px;margin-bottom: 10px; cursor: pointer;"
:type=
"index ===tabsActive ? '':'info'"
closable
@
click=
"selectTag(index)"
:disable-transitions=
"false"
@
close=
"handleClose(index)"
>
<el-tag
v-for=
"(item, index) in orderList"
:key=
"index"
style=
"margin-right: 10px;margin-bottom: 10px; cursor: pointer;"
:type=
"index ===tabsActive ? '':'info'"
closable
@
click=
"selectTag(index)"
:disable-transitions=
"false"
@
close=
"handleClose(index)"
>
{{`报价单${index + 1}${item.queryMsg.IsDefault ? '(默认)' : ''}`}}
</el-tag>
<el-button
class=
"button-new-tag"
size=
"small"
@
click=
"addOrderTag"
>
新增报价单
</el-button>
</el-tag>
<el-button
class=
"button-new-tag"
size=
"small"
@
click=
"addOrderTag"
>
新增报价单
</el-button>
<CostNewPriceFormVue
ref=
"CostNewPrice"
:postConfig=
"postConfig"
:OtherPrice=
"currentData.OtherPrice"
:dayCostPrice=
"currentData.dayCostPrice"
:LineList=
"LineList"
:CostCurrencyList=
"currentData.CostCurrencyList"
:CostNumberList=
"currentData.CostNumberList"
:CurrencyNumberListExt=
"CurrencyNumberListExt"
:queryMsg=
"currentData.queryMsg"
:teamPrice=
"currentData.teamPrice"
></CostNewPriceFormVue>
:CostNumberList=
"currentData.CostNumberList"
:CurrencyNumberListExt=
"CurrencyNumberListExt"
:queryMsg=
"currentData.queryMsg"
:teamPrice=
"currentData.teamPrice"
></CostNewPriceFormVue>
</el-form>
</div>
</div>
</template>
<
script
>
import
CostNewPriceFormVue
from
'./CostNewPriceForm.vue'
;
import
CostNewPriceFormVue
from
'./CostNewPriceForm.vue'
;
export
default
{
props
:
[
"OfferArray"
,
"postConfig"
,
"OtherPrice"
,
"dayCostPrice"
,
"LineList"
,
"CostNumberList"
,
"CurrencyNumberListExt"
,
props
:
[
"OfferArray"
,
"postConfig"
,
"OtherPrice"
,
"dayCostPrice"
,
"LineList"
,
"CostNumberList"
,
"CurrencyNumberListExt"
,
"CostCurrencyList"
,
"teamPrice"
],
components
:
{
CostNewPriceFormVue
},
components
:
{
CostNewPriceFormVue
},
data
()
{
return
{
tabsActive
:
0
,
currentData
:
{
dayCostPrice
:
[],
CostCurrencyList
:
[],
queryMsg
:
{
currentData
:
{
dayCostPrice
:
[],
CostCurrencyList
:
[],
queryMsg
:
{
IsDefault
:
false
,
//汇率输入
RateInput
:
""
,
//人数
PeopleNumber
:
""
},
OtherPrice
:
{},
teamPrice
:
{},
CostNumberList
:
[]},
},
OtherPrice
:
{},
teamPrice
:
{},
CostNumberList
:
[]
},
orderList
:
[],
//下拉框默认值
defaultSelect
:
0
,
...
...
@@ -251,20 +260,41 @@ import CostNewPriceFormVue from './CostNewPriceForm.vue';
},
]
}
},
computed
:
{
//线路筛选
getLineList
()
{
var
chooseLineList
=
[];
//散拼
if
(
this
.
postConfig
.
TeamType
==
0
)
{
chooseLineList
=
this
.
LineList
.
filter
(
qItem
=>
qItem
.
LineDirection
==
2
);
}
//小包团
else
if
(
this
.
postConfig
.
TeamType
==
1
)
{
chooseLineList
=
this
.
LineList
.
filter
(
qItem
=>
qItem
.
Is_PacketGroup
==
1
);
}
//当地游
else
if
(
this
.
postConfig
.
TeamType
==
2
)
{
chooseLineList
=
this
.
LineList
.
filter
(
qItem
=>
qItem
.
LineDirection
==
3
);
}
return
chooseLineList
;
},
},
methods
:
{
//线路切换
changeLine
()
{
this
.
getLineTeamList
(
this
.
postConfig
.
LineId
,
1
);
},
getData
()
{
return
this
.
orderList
return
this
.
orderList
;
},
addOrderTag
()
{
this
.
createOrderList
()
},
selectTag
(
index
)
{
console
.
log
(
'selectTag'
,
index
)
this
.
tabsActive
=
index
this
.
changeTabs
()
},
handleClose
(
index
)
{
if
(
this
.
tabsActive
===
index
)
{
if
(
this
.
tabsActive
===
index
)
{
this
.
tabsActive
=
0
this
.
orderList
.
splice
(
index
,
1
)
this
.
changeTabs
()
...
...
@@ -274,11 +304,9 @@ import CostNewPriceFormVue from './CostNewPriceForm.vue';
}
},
changeTabs
()
{
// const canEdit = !this.currentData.queryMsg.IsDefault
this
.
currentData
=
this
.
orderList
[
this
.
tabsActive
]
let
index
=
this
.
getDefaultIndex
()
this
.
currentData
.
queryMsg
.
canEdit
=
index
===
-
1
||
index
===
Number
(
this
.
tabsActive
)
console
.
log
(
'changeTabs>>>>'
,
this
.
currentData
,
index
,
this
.
tabsActive
)
this
.
prevKey
=
Number
(
this
.
tabsActive
)
},
getDefaultIndex
()
{
...
...
@@ -317,12 +345,6 @@ import CostNewPriceFormVue from './CostNewPriceForm.vue';
lineID
:
lineId
,
isTOOP
:
1
};
var
that
=
this
;
//获取当前选中的对象
let
obj
=
{};
obj
=
that
.
LineList
.
find
(
item
=>
{
return
item
.
LineID
===
lineId
;
});
this
.
apipost
(
"team_post_GetList"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
LineTeamList
=
res
.
data
.
data
;
...
...
@@ -330,7 +352,7 @@ import CostNewPriceFormVue from './CostNewPriceForm.vue';
});
},
createDayTripPrice
()
{
for
(
let
i
=
0
;
i
<
this
.
orderList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
orderList
.
length
;
i
++
)
{
this
.
orderList
[
i
].
dayCostPrice
=
this
.
createDayTripPriceItem
([...
this
.
orderList
[
i
].
dayCostPrice
])
}
},
...
...
@@ -363,7 +385,6 @@ import CostNewPriceFormVue from './CostNewPriceForm.vue';
}
else
{
dayCostPrice
.
length
=
this
.
postConfig
.
DayNum
;
}
console
.
log
(
'//生成行程报价 createDayTripPrice'
,
this
.
postConfig
.
DayNum
,
dayCostPrice
)
return
dayCostPrice
},
//价格转换器
...
...
@@ -432,17 +453,16 @@ import CostNewPriceFormVue from './CostNewPriceForm.vue';
this
.
getAllCurrency
();
this
.
getCompanyList
();
this
.
getTeamList
();
console
.
log
(
'CostNewPrice'
,
this
.
OfferArray
)
if
(
!
this
.
OfferArray
.
length
)
{
console
.
log
(
'CostNewPrice not OfferArray'
,
this
.
OfferArray
)
this
.
getLineTeamList
();
if
(
!
this
.
OfferArray
.
length
)
{
this
.
createOrderList
();
}
else
{
this
.
OfferArray
.
forEach
(
item
=>
{
item
.
OtherPrice
=
item
.
otherPrice
item
.
dayCostPrice
=
item
.
dayCostPriceList
item
.
CostCurrencyList
=
item
.
CostCurrencyList
||
[]
item
.
CostCurrencyList
=
item
.
CostCurrencyList
||
[]
item
.
CurrencyNumberListExt
=
this
.
buildCostCurrency
(
item
.
CostCurrencyList
,
item
.
CurrencyNumberListExt
)
item
.
queryMsg
=
{
item
.
queryMsg
=
{
IsDefault
:
Boolean
(
item
.
IsDefault
),
//汇率输入
RateInput
:
""
,
...
...
@@ -453,21 +473,12 @@ import CostNewPriceFormVue from './CostNewPriceForm.vue';
this
.
orderList
=
this
.
OfferArray
this
.
changeTabs
()
}
console
.
log
(
'this.orderList'
,
this
.
orderList
,
this
.
OfferArray
)
},
created
()
{},
watch
:
{
postConfig
:
{
handler
:
function
(
val
,
oldVal
)
{
this
.
getLineTeamList
(
this
.
postConfig
.
LineId
);
},
deep
:
true
},
},
OfferArray
:
{
handler
:
function
(
val
,
oldVal
)
{
console
.
log
(
'watch CostNewPrice'
,
this
.
OfferArray
)
if
(
!
this
.
OfferArray
.
length
)
{
if
(
!
this
.
OfferArray
.
length
)
{
this
.
createOrderList
();
}
else
{
this
.
OfferArray
.
forEach
(
item
=>
{
...
...
@@ -477,10 +488,10 @@ import CostNewPriceFormVue from './CostNewPriceForm.vue';
this
.
orderList
=
this
.
OfferArray
this
.
changeTabs
()
}
console
.
log
(
'watch this.orderList'
,
this
.
orderList
,
this
.
OfferArray
)
},
deep
:
true
}
},
};
</
script
>
src/components/TravelManager/TravelNewQuotation/QuotationAduit.vue
View file @
4b8a3882
...
...
@@ -228,6 +228,11 @@
this
.
postData
.
OfferPayType
=
tempData
.
OfferPayType
;
this
.
postData
.
SaleOfferPayType
=
tempData
.
SaleOfferPayType
;
this
.
LineList
=
tempData
.
LineList
;
this
.
postData
.
LineName
=
tempData
.
LineName
this
.
postData
.
LtName
=
tempData
.
LtName
this
.
postData
.
LtName
=
tempData
.
LtName
this
.
postData
.
OutBranchName
=
tempData
.
OutBranchName
this
.
postData
.
TeamTypeName
=
tempData
.
TeamTypeName
if
(
tempData
.
OfferArray
)
{
console
.
log
(
'getData'
,
tempData
.
OfferArray
)
tempData
.
OfferArray
.
forEach
(
item
=>
{
...
...
src/components/TravelManager/TravelNewQuotation/QuotationNewPrice.vue
View file @
4b8a3882
<
template
>
<div
class=
"DirectQuotation clearfix"
v-loading=
"loading"
>
<DirectQuotation
v-if=
"haveData"
ref=
"QuotationPrice"
:OfferArray=
"OfferArray"
:postConfig=
"postData"
:dayCostPrice=
"dayCostPriceList"
:otherPrice=
"otherPrice"
:teamPrice=
"teamPrice"
:LineList=
"LineList"
:CostCurrencyList=
"CostCurrencyList"
:CostNumberList=
"CostNumberList"
:CurrencyNumberListExt=
"CurrencyNumberListExt"
></DirectQuotation>
<DirectQuotation
v-if=
"haveData"
ref=
"QuotationPrice"
:OfferArray=
"OfferArray"
:postConfig=
"postData"
:dayCostPrice=
"dayCostPriceList"
:otherPrice=
"otherPrice"
:teamPrice=
"teamPrice"
:LineList=
"LineList"
:CostCurrencyList=
"CostCurrencyList"
:CostNumberList=
"CostNumberList"
:CurrencyNumberListExt=
"CurrencyNumberListExt"
></DirectQuotation>
<div
class=
"btnFixedDiv"
>
<div
class=
"toTop"
>
<i
class=
"iconfont icon-huidaodingbu"
></i>
...
...
@@ -17,9 +18,7 @@
</div>
</
template
>
<
script
>
import
DirectQuotation
from
"../TravelNewQuotation/DirectNewQuotation"
;
export
default
{
data
()
{
return
{
...
...
@@ -60,7 +59,7 @@
OutBranchId
:
-
1
,
//出团公司
OutDateTime
:
""
,
//出发时间
OfferPayType
:
0
,
//报价单付款方式
SaleOfferPayType
:
0
,
//售价付款方式
SaleOfferPayType
:
0
,
//售价付款方式
},
dayCostPriceList
:
[],
//报价列表
isSubmit
:
true
,
...
...
@@ -149,7 +148,6 @@
SaveData
(
type
)
{
const
data
=
this
.
$refs
[
"QuotationPrice"
].
getData
()
function
getCostCurrency
(
CurrencyNumberListExt
)
{
var
currencyNumList
=
[];
if
(
CurrencyNumberListExt
!=
null
&&
CurrencyNumberListExt
.
length
>
0
)
{
CurrencyNumberListExt
.
forEach
((
item
,
index
)
=>
{
...
...
@@ -160,16 +158,7 @@
}
return
currencyNumList
}
this
.
postData
.
TravelState
=
this
.
postData
.
TravelState
||
type
;
// var nObj = {
// config: this.postData,
// dayCostPriceList: this.dayCostPriceList,
// otherPrice: this.otherPrice,
// teamPrice: this.teamPrice,
// CostCurrencyList: this.CostCurrencyList,
// CostNumberList: this.CostNumberList,
// CurrencyNumberListExt: currencyNumList
// };
this
.
postData
.
TravelState
=
type
;
data
.
forEach
(
item
=>
{
item
.
IsDefault
=
item
.
queryMsg
.
IsDefault
?
1
:
0
item
.
otherPrice
=
item
.
OtherPrice
...
...
@@ -182,8 +171,6 @@
config
:
this
.
postData
,
OfferArray
:
data
}
console
.
log
(
'保存数据'
,
data
)
// return 0;
this
.
loading
=
true
;
this
.
apipost
(
"travel_post_SetConfigOffer_V3"
,
nObj
,
...
...
@@ -224,7 +211,7 @@
IsDefault
:
1
,
};
this
.
apipost
(
"travel_get_GetMyTravelInfo_V3"
,
// travel_get_GetMyTravelInfo_V2
"travel_get_GetMyTravelInfo_V3"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
@@ -263,50 +250,15 @@
this
.
postData
.
OutBranchId
=
tempData
.
OutBranchId
;
this
.
postData
.
OutDateTime
=
tempData
.
OutDateTime
;
this
.
postData
.
OfferPayType
=
tempData
.
OfferPayType
;
this
.
postData
.
SaleOfferPayType
=
tempData
.
SaleOfferPayType
;
this
.
postData
.
SaleOfferPayType
=
tempData
.
SaleOfferPayType
;
this
.
postData
.
TravelState
=
tempData
.
TravelState
;
this
.
LineList
=
tempData
.
LineList
;
if
(
tempData
.
OfferArray
)
{
console
.
log
(
'getData'
,
tempData
.
OfferArray
)
if
(
tempData
.
OfferArray
)
{
tempData
.
OfferArray
.
forEach
(
item
=>
{
this
.
OfferArray
.
push
(
item
)
})
// this.OfferArray = tempData.OfferArray
}
// if (tempData.dayCostPriceList && tempData.dayCostPriceList != null && tempData.dayCostPriceList.length >
// 0) {
// this.dayCostPriceList = tempData.dayCostPriceList;
// }
// if (tempData.otherPrice) {
// this.otherPrice = tempData.otherPrice;
// }
// if (tempData.teamPrice) {
// this.teamPrice = tempData.teamPrice;
// }
// if (tempData.CostNumberList && tempData.CostNumberList != null && tempData.CostNumberList.length > 0) {
// this.CostNumberList = tempData.CostNumberList;
// }
// if (tempData.CostCurrencyList && tempData.CostCurrencyList != null && tempData.CostCurrencyList.length >
// 0) {
// this.CostCurrencyList = tempData.CostCurrencyList;
// }
// if (tempData.CurrencyNumberListExt && tempData.CurrencyNumberListExt != null && tempData
// .CurrencyNumberListExt.length > 0) {
// this.CurrencyNumberListExt = tempData.CurrencyNumberListExt;
// }
// if (this.CostCurrencyList && this.CostCurrencyList.length > 0 &&
// this.CurrencyNumberListExt) {
// this.CostCurrencyList.forEach(item => {
// let currencyNumberItem = {
// Key: item.CurrencyId,
// currencyNumberList: []
// };
// if (this.CurrencyNumberListExt.length == 0) {
// this.CurrencyNumberListExt.push(currencyNumberItem);
// }
// });
// }
this
.
haveData
=
true
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
...
...
@@ -326,5 +278,4 @@
DirectQuotation
:
DirectQuotation
}
};
</
script
>
\ No newline at end of file
src/components/TravelManager/TravelNewQuotation/priceDialog.vue
View file @
4b8a3882
...
...
@@ -114,7 +114,7 @@
<div
class=
"switchDiv clearfix"
style=
"width:98%;"
>
<div
class=
"DirectPriceCenter"
>
<div
class=
"singlePrice clearfix"
>
<CostNewPrice
ref=
"CostNewPrice"
:postConfig=
"postData"
:OtherPrice=
"
o
therPrice"
<CostNewPrice
ref=
"CostNewPrice"
:postConfig=
"postData"
:OtherPrice=
"
O
therPrice"
:dayCostPrice=
"dayCostPriceList"
:LineList=
"LineList"
:CostCurrencyList=
"CostCurrencyList"
:CostNumberList=
"CostNumberList"
:CurrencyNumberListExt=
"CurrencyNumberListExt"
:teamPrice=
"teamPrice"
...
...
@@ -288,7 +288,7 @@
},
dayCostPriceList
:
[],
//报价列表
isSubmit
:
true
,
o
therPrice
:
{
O
therPrice
:
{
CostId
:
0
,
//主键编号
ConfigID
:
0
,
//配置编号
OfferId
:
0
,
//报价单编号
...
...
@@ -376,7 +376,7 @@
offerId
:
offerId
};
this
.
apipost
(
"travel_get_GetMyTravelInfo_V
2
"
,
"travel_get_GetMyTravelInfo_V
3
"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
@@ -417,40 +417,49 @@
this
.
postData
.
OfferPayType
=
tempData
.
OfferPayType
;
this
.
postData
.
SaleOfferPayType
=
tempData
.
SaleOfferPayType
;
this
.
LineList
=
tempData
.
LineList
;
if
(
tempData
.
dayCostPriceList
&&
tempData
.
dayCostPriceList
!=
null
&&
tempData
.
dayCostPriceList
.
length
>
0
)
{
this
.
dayCostPriceList
=
tempData
.
dayCostPriceList
;
}
if
(
tempData
.
OfferArray
)
{
this
.
currentData
=
tempData
.
OfferArray
.
find
(
item
=>
item
.
IsDefault
)
this
.
OtherPrice
=
this
.
currentData
.
otherPrice
this
.
dayCostPriceList
=
this
.
currentData
.
dayCostPriceList
this
.
CostCurrencyList
=
this
.
currentData
.
CostCurrencyList
this
.
CostNumberList
=
this
.
currentData
.
CostNumberList
this
.
queryMsg
=
this
.
currentData
.
queryMsg
this
.
teamPrice
=
this
.
currentData
.
teamPrice
}
// if (tempData.dayCostPriceList && tempData.dayCostPriceList != null && tempData.dayCostPriceList.length >
// 0) {
// this.dayCostPriceList = tempData.dayCostPriceList;
// }
if
(
tempData
.
otherPrice
)
{
this
.
otherPrice
=
tempData
.
otherPrice
;
}
if
(
tempData
.
teamPrice
)
{
this
.
teamPrice
=
tempData
.
teamPrice
;
}
if
(
tempData
.
CostNumberList
&&
tempData
.
CostNumberList
!=
null
&&
tempData
.
CostNumberList
.
length
>
0
)
{
this
.
CostNumberList
=
tempData
.
CostNumberList
;
}
if
(
tempData
.
CostCurrencyList
&&
tempData
.
CostCurrencyList
!=
null
&&
tempData
.
CostCurrencyList
.
length
>
0
)
{
this
.
CostCurrencyList
=
tempData
.
CostCurrencyList
;
}
if
(
tempData
.
CurrencyNumberListExt
&&
tempData
.
CurrencyNumberListExt
!=
null
&&
tempData
.
CurrencyNumberListExt
.
length
>
0
)
{
this
.
CurrencyNumberListExt
=
tempData
.
CurrencyNumberListExt
;
}
if
(
this
.
CostCurrencyList
&&
this
.
CostCurrencyList
.
length
>
0
&&
this
.
CurrencyNumberListExt
)
{
this
.
CostCurrencyList
.
forEach
(
item
=>
{
let
currencyNumberItem
=
{
Key
:
item
.
CurrencyId
,
currencyNumberList
:
[]
};
if
(
this
.
CurrencyNumberListExt
.
length
==
0
)
{
this
.
CurrencyNumberListExt
.
push
(
currencyNumberItem
);
}
});
}
//
if (tempData.otherPrice) {
//
this.otherPrice = tempData.otherPrice;
//
}
//
if (tempData.teamPrice) {
//
this.teamPrice = tempData.teamPrice;
//
}
//
if (tempData.CostNumberList && tempData.CostNumberList != null && tempData.CostNumberList.length > 0) {
//
this.CostNumberList = tempData.CostNumberList;
//
}
//
if (tempData.CostCurrencyList && tempData.CostCurrencyList != null && tempData.CostCurrencyList.length >
//
0) {
//
this.CostCurrencyList = tempData.CostCurrencyList;
//
}
//
if (tempData.CurrencyNumberListExt && tempData.CurrencyNumberListExt != null && tempData
//
.CurrencyNumberListExt.length > 0) {
//
this.CurrencyNumberListExt = tempData.CurrencyNumberListExt;
//
}
//
if (this.CostCurrencyList && this.CostCurrencyList.length > 0 &&
//
this.CurrencyNumberListExt) {
//
this.CostCurrencyList.forEach(item => {
//
let currencyNumberItem = {
//
Key: item.CurrencyId,
//
currencyNumberList: []
//
};
//
if (this.CurrencyNumberListExt.length == 0) {
//
this.CurrencyNumberListExt.push(currencyNumberItem);
//
}
//
});
//
}
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
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