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
51792c5c
Commit
51792c5c
authored
Sep 26, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
ce94c200
ece9ce08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
252 additions
and
74 deletions
+252
-74
RegistrationList.vue
src/components/TravelManager/TravelList/RegistrationList.vue
+65
-19
CostNewPrice.vue
...ponents/TravelManager/TravelNewQuotation/CostNewPrice.vue
+187
-55
No files found.
src/components/TravelManager/TravelList/RegistrationList.vue
View file @
51792c5c
...
@@ -933,9 +933,9 @@
...
@@ -933,9 +933,9 @@
.GO_Contract
{
.GO_Contract
{
color
:
blue
;
color
:
blue
;
display
:
block
;
display
:
inline-
block
;
cursor
:
pointer
;
cursor
:
pointer
;
ma
x-width
:
20
0px
;
ma
rgin-right
:
2
0px
;
}
}
.RegistrationList
.leftSetInfo
,
.RegistrationList
.GO_TPright
{
.RegistrationList
.leftSetInfo
,
.RegistrationList
.GO_TPright
{
float
:
left
;
float
:
left
;
...
@@ -1880,6 +1880,7 @@
...
@@ -1880,6 +1880,7 @@
@
click=
'EwMsg.OrderId = item.OrderId, EwMsg.ExtraRewardMoney = item.ExtraRewardMoney,EwMsg.ExtraDeductMoney=item.ExtraDeductMoney, OrderMoneyDialog = true'
>
@
click=
'EwMsg.OrderId = item.OrderId, EwMsg.ExtraRewardMoney = item.ExtraRewardMoney,EwMsg.ExtraDeductMoney=item.ExtraDeductMoney, OrderMoneyDialog = true'
>
设置额外金额
</div>
设置额外金额
</div>
<div
@
click=
"SetShouSunClick(item.OrderId,item.GuestNum)"
>
设置收损金额
</div>
<div
@
click=
"SetShouSunClick(item.OrderId,item.GuestNum)"
>
设置收损金额
</div>
<div
@
click=
"ZhuiJiaTuanKuan(item.OrderId)"
v-if=
"RBBranchId == 0"
>
追加团款
</div>
<div
@
click=
"ZhuiJiaTuanKuan(item.OrderId)"
v-if=
"RBBranchId == 0"
>
追加团款
</div>
<div
@
click=
'deleteItem(item)'
>
删除
</div>
<div
@
click=
'deleteItem(item)'
>
删除
</div>
</div>
</div>
...
@@ -1911,8 +1912,16 @@
...
@@ -1911,8 +1912,16 @@
<!-- <span>暂无名单</span>-->
<!-- <span>暂无名单</span>-->
<!-- </p>-->
<!-- </p>-->
<span>
房间信息:{{item.OrderGuestHouseStr}}
</span>
<span>
房间信息:{{item.OrderGuestHouseStr}}
</span>
<span
v-if=
"item.ContractNum==''"
class=
"GO_Contract"
@
click=
"goContract(item)"
>
领取合同
</span>
<div
v-if=
"item.ContractNum.length==0"
>
<span
v-else
class=
"GO_Contract"
@
click=
"goContract(item)"
>
{{item.ContractNum}}
</span>
<span
class=
"GO_Contract"
@
click=
"goContract(item,{})"
>
领取合同
</span>
</div>
<div
v-else
>
<span
v-for=
"sItem in item.ContractNum"
class=
"GO_Contract"
@
click=
"goContract(item,sItem)"
>
{{sItem.Client_Name+''+sItem.ContractNum}}
</span>
</div>
<!-- <span v-if="item.ContractNum==''" class="GO_Contract" @click="goContract(item)">领取合同</span>
<span v-else class="GO_Contract" @click="goContract(item)">{{item.ContractNum}}</span> -->
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -2182,6 +2191,7 @@
...
@@ -2182,6 +2191,7 @@
@
click=
'EwMsg.OrderId = childItem.OrderId, EwMsg.ExtraRewardMoney = childItem.ExtraRewardMoney,EwMsg.ExtraDeductMoney=childItem.ExtraDeductMoney, OrderMoneyDialog = true'
>
@
click=
'EwMsg.OrderId = childItem.OrderId, EwMsg.ExtraRewardMoney = childItem.ExtraRewardMoney,EwMsg.ExtraDeductMoney=childItem.ExtraDeductMoney, OrderMoneyDialog = true'
>
设置额外金额
</div>
设置额外金额
</div>
<div
@
click=
"SetShouSunClick(childItem.OrderId, childItem.GuestNum)"
>
设置收损金额
</div>
<div
@
click=
"SetShouSunClick(childItem.OrderId, childItem.GuestNum)"
>
设置收损金额
</div>
<div
v-if=
"childItem.IsChargeLossOrders==1"
@
click=
"setChargeLoss(childItem)"
>
恢复收损单
</div>
<div
@
click=
"lianyunFY(childItem)"
>
联运返佣
</div>
<div
@
click=
"lianyunFY(childItem)"
>
联运返佣
</div>
<div
@
click=
"ZhuiJiaTuanKuan(childItem.OrderId)"
v-if=
"RBBranchId == 0"
>
追加团款
</div>
<div
@
click=
"ZhuiJiaTuanKuan(childItem.OrderId)"
v-if=
"RBBranchId == 0"
>
追加团款
</div>
<div
@
click=
"importNameOrder(childItem.OrderId)"
v-if=
"OrderDataList.OtherOrderList.length == 1 && subItem.List.length == 1"
>
导入旅客名单
</div>
<div
@
click=
"importNameOrder(childItem.OrderId)"
v-if=
"OrderDataList.OtherOrderList.length == 1 && subItem.List.length == 1"
>
导入旅客名单
</div>
...
@@ -2246,8 +2256,14 @@
...
@@ -2246,8 +2256,14 @@
style=
"text-decoration:underline;color:blue;cursor:pointer"
v-for=
"(id,i) in childItem.TipFrId"
style=
"text-decoration:underline;color:blue;cursor:pointer"
v-for=
"(id,i) in childItem.TipFrId"
:key=
"i"
>
{{
id
}}
</span>
:key=
"i"
>
{{
id
}}
</span>
</span>
</span>
<span
v-if=
"childItem.ContractNum==''"
class=
"GO_Contract"
@
click=
"goContract(childItem)"
>
领取合同
</span>
<div
v-if=
"childItem.ContractNum.length==0"
>
<span
v-else
class=
"GO_Contract"
@
click=
"goContract(childItem)"
>
{{
childItem
.
ContractNum
}}
</span>
<span
class=
"GO_Contract"
@
click=
"goContract(childItem,
{})">领取合同
</span>
</div>
<div
v-else
>
<span
v-for=
"sItem in childItem.ContractNum"
class=
"GO_Contract"
@
click=
"goContract(childItem,sItem)"
>
{{
sItem
.
Client_Name
+
''
+
sItem
.
ContractNum
}}
</span>
</div>
</div>
</div>
</td>
</td>
</tr>
</tr>
...
@@ -2554,6 +2570,8 @@
...
@@ -2554,6 +2570,8 @@
@
click=
'EwMsg.OrderId = item.OrderId, EwMsg.ExtraRewardMoney = item.ExtraRewardMoney,EwMsg.ExtraDeductMoney=item.ExtraDeductMoney, OrderMoneyDialog = true'
>
@
click=
'EwMsg.OrderId = item.OrderId, EwMsg.ExtraRewardMoney = item.ExtraRewardMoney,EwMsg.ExtraDeductMoney=item.ExtraDeductMoney, OrderMoneyDialog = true'
>
设置额外金额
</div>
设置额外金额
</div>
<div
@
click=
"SetShouSunClick(item.OrderId, item.GuestNum)"
>
设置收损金额
</div>
<div
@
click=
"SetShouSunClick(item.OrderId, item.GuestNum)"
>
设置收损金额
</div>
<div
@
click=
"ZhuiJiaTuanKuan(item.OrderId)"
v-if=
"RBBranchId == 0"
>
追加团款
</div>
<div
@
click=
"ZhuiJiaTuanKuan(item.OrderId)"
v-if=
"RBBranchId == 0"
>
追加团款
</div>
<div
@
click=
"importNameOrder(item.OrderId)"
>
导入旅客名单
</div>
<div
@
click=
"importNameOrder(item.OrderId)"
>
导入旅客名单
</div>
<div
v-if=
"item.OrderState=='2'||item.OrderState=='3'"
@
click=
'deleteItem(item)'
>
删除
</div>
<div
v-if=
"item.OrderState=='2'||item.OrderState=='3'"
@
click=
'deleteItem(item)'
>
删除
</div>
...
@@ -3426,6 +3444,33 @@
...
@@ -3426,6 +3444,33 @@
commonShouSun
:
commonShouSun
commonShouSun
:
commonShouSun
},
},
methods
:
{
methods
:
{
setChargeLoss
(
obj
){
console
.
log
(
"obj"
,
obj
)
this
.
$confirm
(
"确定恢复收损单"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
.
then
(()
=>
{
this
.
apipost
(
"sellorder_post_RemoveChargeLossOrders"
,
{
OrderId
:
obj
.
OrderId
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
"操作成功!"
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
})
.
catch
(()
=>
{
this
.
$message
.
info
(
"取消!"
);
});
},
//上传
//上传
handleAvatarSuccess
(
res
,
file
)
{
handleAvatarSuccess
(
res
,
file
)
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
...
@@ -5305,28 +5350,29 @@
...
@@ -5305,28 +5350,29 @@
},
},
//跳转至领取合同
//跳转至领取合同
goContract
(
item
)
{
goContract
(
item
,
sItem
)
{
if
(
item
.
ContractNum
)
{
//
if (item.ContractNum) {
let
routeData
=
this
.
$router
.
resolve
({
//
let routeData = this.$router.resolve({
name
:
'TravelContractDetail'
,
//
name: 'TravelContractDetail',
query
:
{
//
query: {
TCID
:
item
.
TCID
,
//
TCID: item.TCID,
orderID
:
item
.
OrderId
,
//
orderID: item.OrderId,
blank
:
'y'
//
blank: 'y'
}
//
}
})
//
})
window
.
open
(
routeData
.
href
,
'_blank'
)
//
window.open(routeData.href, '_blank')
}
else
{
//
} else {
let
routeData
=
this
.
$router
.
resolve
({
let
routeData
=
this
.
$router
.
resolve
({
name
:
'TravelContractNew'
,
name
:
'TravelContractNew'
,
query
:
{
query
:
{
TCID
:
item
.
TCID
,
TCID
:
item
.
TCID
,
guestId
:
sItem
.
GuestId
,
orderID
:
item
.
OrderId
,
orderID
:
item
.
OrderId
,
blank
:
'y'
blank
:
'y'
}
}
})
})
window
.
open
(
routeData
.
href
,
'_blank'
)
window
.
open
(
routeData
.
href
,
'_blank'
)
}
//
}
},
},
Discount
(
TCID
)
{
Discount
(
TCID
)
{
this
.
SpecialOffer
=
true
this
.
SpecialOffer
=
true
...
...
src/components/TravelManager/TravelNewQuotation/CostNewPrice.vue
View file @
51792c5c
...
@@ -9,17 +9,22 @@
...
@@ -9,17 +9,22 @@
.CostNewPrice
.CP_halfWi
{
.CostNewPrice
.CP_halfWi
{
width
:
45%
;
width
:
45%
;
}
}
.CostNewPrice
.QuotationFirstDiv1
{
padding-top
:
30px
;
}
.CostNewPrice
.QuotationFirstDiv1
.el-form-item__content
.el-select
{
width
:
calc
(
100%
-
100px
);
}
</
style
>
</
style
>
<
template
>
<
template
>
<div>
<div>
<div
class=
"CostNewPrice clearfix CP_Div"
>
<div
class=
"CostNewPrice clearfix CP_Div"
>
<el-form>
<el-form>
<div
class=
"QuotationFirstDiv"
>
<div
class=
"QuotationFirstDiv
1
"
>
<el-row
:gutter=
"40"
>
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"线路"
>
<el-form-item
label=
"线路"
label-width=
"100px"
>
<el-select
v-model=
"postConfig.LineId"
:placeholder=
"$t('pub.pleaseSel')"
<el-select
v-model=
"postConfig.LineId"
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getLineTeamList(postConfig.LineId)"
filterable
>
@
change=
"getLineTeamList(postConfig.LineId)"
filterable
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'0'
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'0'
></el-option>
...
@@ -29,7 +34,7 @@
...
@@ -29,7 +34,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"系列"
>
<el-form-item
label=
"系列"
label-width=
"100px"
>
<el-select
v-model=
"postConfig.LineteamId"
:placeholder=
"$t('pub.pleaseSel')"
filterable
>
<el-select
v-model=
"postConfig.LineteamId"
:placeholder=
"$t('pub.pleaseSel')"
filterable
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'0'
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'0'
></el-option>
<el-option
v-for=
"item in LineTeamList"
:label=
'item.LtName'
:value=
'item.LtID'
:key=
'item.LtID'
>
<el-option
v-for=
"item in LineTeamList"
:label=
'item.LtName'
:value=
'item.LtID'
:key=
'item.LtID'
>
...
@@ -40,14 +45,14 @@
...
@@ -40,14 +45,14 @@
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"团队标题"
>
<el-form-item
label=
"团队标题"
label-width=
"100px"
>
<el-input
v-model=
"postConfig.Title"
type=
"textarea"
:autosize=
"
{minRows: 1, maxRows: 2 }" resize="none"
<el-input
v-model=
"postConfig.Title"
type=
"textarea"
style=
"width:94%"
:autosize=
"
{minRows: 1, maxRows: 2 }" resize="none"
placeholder="请填写团队标题" maxlength="200">
</el-input>
placeholder="请填写团队标题" maxlength="200">
</el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<div
class=
"seat-box"
>
<div
class=
"seat-box"
>
<div
class=
"left"
>
座位
</div>
<div
class=
"left"
style=
"float:left;margin:6px 0 0 64px;"
>
座位
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
...
@@ -58,7 +63,7 @@
...
@@ -58,7 +63,7 @@
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"
6
"
>
<el-col
:span=
"
5
"
>
<el-form-item
prop=
"CSeat"
>
<el-form-item
prop=
"CSeat"
>
<el-input
placeholder=
"人数"
v-model=
"postConfig.CSeat"
maxlength=
"2"
<el-input
placeholder=
"人数"
v-model=
"postConfig.CSeat"
maxlength=
"2"
@
keyup
.
native=
"checkInteger(postConfig,'CSeat')"
>
@
keyup
.
native=
"checkInteger(postConfig,'CSeat')"
>
...
@@ -66,7 +71,7 @@
...
@@ -66,7 +71,7 @@
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"
6
"
>
<el-col
:span=
"
5
"
>
<el-form-item
prop=
"FSeat"
>
<el-form-item
prop=
"FSeat"
>
<el-input
placeholder=
"人数"
v-model=
"postConfig.FSeat"
maxlength=
"2"
<el-input
placeholder=
"人数"
v-model=
"postConfig.FSeat"
maxlength=
"2"
@
keyup
.
native=
"checkInteger(postConfig,'FSeat')"
>
@
keyup
.
native=
"checkInteger(postConfig,'FSeat')"
>
...
@@ -74,7 +79,7 @@
...
@@ -74,7 +79,7 @@
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"
6
"
>
<el-col
:span=
"
5
"
>
<el-form-item>
<el-form-item>
<el-input
placeholder=
"人数"
v-model=
"postConfig.LowNum"
maxlength=
"2"
>
<el-input
placeholder=
"人数"
v-model=
"postConfig.LowNum"
maxlength=
"2"
>
<
template
slot=
"prepend"
>
最低成团人数
</
template
>
<
template
slot=
"prepend"
>
最低成团人数
</
template
>
...
@@ -85,7 +90,7 @@
...
@@ -85,7 +90,7 @@
</div>
</div>
</div>
</div>
<div
class=
"seat-box"
>
<div
class=
"seat-box"
>
<div
class=
"left"
>
行程天数
</div>
<div
class=
"left"
style=
"float:left;margin:6px 0 0 34px;"
>
行程天数
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
...
@@ -94,10 +99,6 @@
...
@@ -94,10 +99,6 @@
@
keyup
.
native=
"checkInteger(postConfig,'DayNum');createDayTripPrice()"
maxlength=
"2"
>
@
keyup
.
native=
"checkInteger(postConfig,'DayNum');createDayTripPrice()"
maxlength=
"2"
>
<
template
slot=
"append"
>
天
</
template
>
<
template
slot=
"append"
>
天
</
template
>
</el-input>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item>
<el-input
class=
"w120 LowNum"
v-model=
"postConfig.NightNum"
<el-input
class=
"w120 LowNum"
v-model=
"postConfig.NightNum"
@
keyup
.
native=
"checkInteger(postConfig,'NightNum')"
maxlength=
"2"
>
@
keyup
.
native=
"checkInteger(postConfig,'NightNum')"
maxlength=
"2"
>
<
template
slot=
"append"
>
晚
</
template
>
<
template
slot=
"append"
>
晚
</
template
>
...
@@ -129,11 +130,11 @@
...
@@ -129,11 +130,11 @@
<tr>
<tr>
<td
class=
"CP_comBack"
>
汇率
</td>
<td
class=
"CP_comBack"
>
汇率
</td>
<td
v-for=
'item in CostCurrencyList'
>
<td
v-for=
'item in CostCurrencyList'
>
<el-input
class=
"w80"
v-model=
'item.ExchangeRate'
@
keyup
.
native=
"checkRate(item,'ExchangeRate')"
>
<el-input
class=
"w80"
v-model=
'item.ExchangeRate'
@
keyup
.
native=
"checkRate(item,'ExchangeRate')
,getchange()
"
>
</el-input>
</el-input>
</td>
</td>
<td>
<td>
<el-input
class=
"w100"
v-model=
'queryMsg.RateInput'
@
keyup
.
native=
"checkRate(queryMsg,'RateInput')"
>
<el-input
class=
"w100"
v-model=
'queryMsg.RateInput'
@
keyup
.
native=
"checkRate(queryMsg,'RateInput')
,getchange()
"
>
</el-input>
</el-input>
</td>
</td>
</tr>
</tr>
...
@@ -145,13 +146,13 @@
...
@@ -145,13 +146,13 @@
<el-input
class=
"w80"
v-model=
'item.PeopleNumber'
@
keyup
.
native=
"checkInteger(item,'PeopleNumber')"
>
<el-input
class=
"w80"
v-model=
'item.PeopleNumber'
@
keyup
.
native=
"checkInteger(item,'PeopleNumber')"
>
</el-input>
</el-input>
<span>
<span>
<i
class=
"iconfont icon-quxiao"
@
click=
"DeletePNumber(index)"
></i>
<i
class=
"iconfont icon-quxiao"
@
click=
"DeletePNumber(index)
,getchange()
"
></i>
</span>
</span>
</td>
</td>
<td
width=
"150"
>
<td
width=
"150"
>
<el-form-item>
<el-form-item>
<el-input
class=
"w80"
v-model=
'queryMsg.PeopleNumber'
<el-input
class=
"w80"
v-model=
'queryMsg.PeopleNumber'
@
keyup
.
native=
"checkInteger(queryMsg,'PeopleNumber')"
></el-input>
@
keyup
.
native=
"checkInteger(queryMsg,'PeopleNumber')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
<div
class=
"AS_addPeoNumer"
>
<div
class=
"AS_addPeoNumer"
>
<i
class=
"iconfont icon-img_haha"
@
click=
"addPeoNunber"
></i>
<i
class=
"iconfont icon-img_haha"
@
click=
"addPeoNunber"
></i>
...
@@ -163,23 +164,22 @@
...
@@ -163,23 +164,22 @@
<td
v-if=
"checkExists(item.CurrencyId)"
v-for=
"childItem in getCurrencyNumberList(item.CurrencyId)"
>
<td
v-if=
"checkExists(item.CurrencyId)"
v-for=
"childItem in getCurrencyNumberList(item.CurrencyId)"
>
<el-form-item>
<el-form-item>
<el-input
class=
"w80"
v-model=
'childItem.Money'
<el-input
class=
"w80"
v-model=
'childItem.Money'
@
keyup
.
native=
"checkPrice(childItem,'Money',true),
ReCalc
()"
></el-input>
@
keyup
.
native=
"checkPrice(childItem,'Money',true),
getchange
()"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
<td>
<td>
</td>
</td>
</tr>
</tr>
</table>
</table>
<table
class=
"CostPriceTable"
>
<table
class=
"CostPriceTable"
>
<tr>
<tr>
<th
rowspan=
"2"
width=
'
10
0'
>
Day
</th>
<th
rowspan=
"2"
width=
'
8
0'
>
Day
</th>
<th
rowspan=
"2"
width=
'
1
00'
>
行程大点
</th>
<th
rowspan=
"2"
width=
'
2
00'
>
行程大点
</th>
<th
rowspan=
"2"
width=
"200"
>
币种
</th>
<th
rowspan=
"2"
width=
"200"
>
币种
</th>
<th
rowspan=
"2"
width=
'2
2
0'
>
酒店
</th>
<th
rowspan=
"2"
width=
'2
0
0'
>
酒店
</th>
<th
rowspan=
"2"
width=
'200'
>
车
</th>
<th
rowspan=
"2"
width=
'200'
>
车
</th>
<th
rowspan=
"2"
width=
'2
2
0'
>
门票
</th>
<th
rowspan=
"2"
width=
'2
0
0'
>
门票
</th>
<th
colspan=
"3"
width=
'200'
>
餐
</th>
<th
colspan=
"3"
width=
'200'
>
餐
</th>
</tr>
</tr>
<tr>
<tr>
...
@@ -207,25 +207,25 @@
...
@@ -207,25 +207,25 @@
@
keyup
.
native=
"checkPrice(subItem,'HotelCostPrice')"
></el-input>
@
keyup
.
native=
"checkPrice(subItem,'HotelCostPrice')"
></el-input>
</td>
</td>
<td>
<td>
<el-input
type=
'text'
v-model=
"subItem.BusCostPrice"
@
keyup
.
native=
"checkPrice(subItem,'BusCostPrice')"
>
<el-input
type=
'text'
v-model=
"subItem.BusCostPrice"
@
keyup
.
native=
"checkPrice(subItem,'BusCostPrice')
,getchange()
"
>
</el-input>
</el-input>
</td>
</td>
<td>
<td>
<el-input
type=
'text'
v-model=
"subItem.ScenicCostPrice"
<el-input
type=
'text'
v-model=
"subItem.ScenicCostPrice"
@
keyup
.
native=
"checkPrice(subItem,'ScenicCostPrice')"
></el-input>
@
keyup
.
native=
"checkPrice(subItem,'ScenicCostPrice')
,getchange()
"
></el-input>
</td>
</td>
<td>
<td>
<el-input
type=
"text"
v-model=
'subItem.BreakfastCostPrice'
<el-input
type=
"text"
v-model=
'subItem.BreakfastCostPrice'
@
keyup
.
native=
"checkPrice(subItem,'BreakfastCostPrice')"
>
@
keyup
.
native=
"checkPrice(subItem,'BreakfastCostPrice')
,getchange()
"
>
</el-input>
</el-input>
</td>
</td>
<td>
<td>
<el-input
type=
"text"
v-model=
'subItem.LunchCostPrice'
<el-input
type=
"text"
v-model=
'subItem.LunchCostPrice'
@
keyup
.
native=
"checkPrice(subItem,'LunchCostPrice')"
></el-input>
@
keyup
.
native=
"checkPrice(subItem,'LunchCostPrice')
,getchange()
"
></el-input>
</td>
</td>
<td>
<td>
<el-input
type=
"text"
v-model=
'subItem.DinnerCostPrice'
<el-input
type=
"text"
v-model=
'subItem.DinnerCostPrice'
@
keyup
.
native=
"checkPrice(subItem,'DinnerCostPrice')"
></el-input>
@
keyup
.
native=
"checkPrice(subItem,'DinnerCostPrice')
,getchange()
"
></el-input>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -247,7 +247,7 @@
...
@@ -247,7 +247,7 @@
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.InlandAirTicketMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.InlandAirTicketMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'InlandAirTicketMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'InlandAirTicketMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
@@ -267,7 +267,7 @@
...
@@ -267,7 +267,7 @@
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.InlandShipTicketMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.InlandShipTicketMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'InlandShipTicketMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'InlandShipTicketMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
@@ -287,7 +287,7 @@
...
@@ -287,7 +287,7 @@
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.InlandTrainTicketMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.InlandTrainTicketMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'InlandTrainTicketMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'InlandTrainTicketMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
@@ -300,7 +300,7 @@
...
@@ -300,7 +300,7 @@
<td
colspan=
'3'
>
<td
colspan=
'3'
>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.VisaMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.VisaMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'VisaMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'VisaMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
@@ -310,7 +310,7 @@
...
@@ -310,7 +310,7 @@
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.SafeMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.SafeMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'SafeMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'SafeMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
@@ -320,7 +320,7 @@
...
@@ -320,7 +320,7 @@
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.LeaderTripMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.LeaderTripMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'LeaderTripMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'LeaderTripMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
@@ -330,7 +330,7 @@
...
@@ -330,7 +330,7 @@
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.DriverGuideMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.DriverGuideMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'DriverGuideMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'DriverGuideMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
@@ -343,7 +343,7 @@
...
@@ -343,7 +343,7 @@
<td
colspan=
'3'
>
<td
colspan=
'3'
>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.SalesCommissionMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.SalesCommissionMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'SalesCommissionMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'SalesCommissionMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
@@ -353,7 +353,7 @@
...
@@ -353,7 +353,7 @@
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.OfficeCommissionMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.OfficeCommissionMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'OfficeCommissionMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'OfficeCommissionMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
@@ -365,7 +365,7 @@
...
@@ -365,7 +365,7 @@
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.AirTicketMoeny"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.AirTicketMoeny"
@
keyup
.
native=
"checkPrice(OtherPrice,'AirTicketMoeny')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'AirTicketMoeny')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
@@ -378,7 +378,7 @@
...
@@ -378,7 +378,7 @@
<td
colspan=
'3'
>
<td
colspan=
'3'
>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.TripMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.TripMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'TripMoney',true)"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'TripMoney',true)
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
@@ -388,7 +388,7 @@
...
@@ -388,7 +388,7 @@
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.GuidePeopleMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.GuidePeopleMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'GuidePeopleMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'GuidePeopleMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
@@ -419,7 +419,7 @@
...
@@ -419,7 +419,7 @@
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.AirTicketShareMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.AirTicketShareMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'AirTicketShareMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'AirTicketShareMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
<td
v-for=
"item in CostNumberList"
:key=
"item.subCode"
>
<td
v-for=
"item in CostNumberList"
:key=
"item.subCode"
>
...
@@ -431,7 +431,7 @@
...
@@ -431,7 +431,7 @@
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.TicketShareMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.TicketShareMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'TicketShareMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'TicketShareMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
<td
v-for=
"item in CostNumberList"
:key=
"item.subCode"
>
<td
v-for=
"item in CostNumberList"
:key=
"item.subCode"
>
...
@@ -443,7 +443,7 @@
...
@@ -443,7 +443,7 @@
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.SingleRoomShareMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.SingleRoomShareMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'SingleRoomShareMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'SingleRoomShareMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
<td
v-for=
"item in CostNumberList"
:key=
"item.subCode"
>
<td
v-for=
"item in CostNumberList"
:key=
"item.subCode"
>
...
@@ -455,25 +455,31 @@
...
@@ -455,25 +455,31 @@
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.InlandTrafficShareMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.InlandTrafficShareMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'InlandTrafficShareMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'InlandTrafficShareMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
<td
v-for=
"item in CostNumberList"
:key=
"item.subCode"
>
{{item.InlandTrafficMoney}}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
杂费
</td>
<td>
杂费
</td>
<td>
<td>
<el-form-item>
<el-form-item>
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.OtherShareMoney"
<el-input
type=
'text'
class=
"w120"
v-model=
"OtherPrice.OtherShareMoney"
@
keyup
.
native=
"checkPrice(OtherPrice,'OtherShareMoney')"
></el-input>
@
keyup
.
native=
"checkPrice(OtherPrice,'OtherShareMoney')
,getchange()
"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
<td
v-for=
"item in CostNumberList"
:key=
"item.subCode"
>
{{item.OtherMoney}}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
小计
</td>
<td>
小计
</td>
<td></td>
<td></td>
<td
v-for=
"item in CostNumberList"
:key=
"item.subCode"
>
{{item.SubtotalMoney}}
</td>
</tr>
</tr>
</table>
</table>
<div
class=
"Cost_Line"
></div>
<div
class=
"Cost_Line"
></div>
...
@@ -483,14 +489,17 @@
...
@@ -483,14 +489,17 @@
<td
width=
'250'
rowspan=
"2"
class=
"CP_comBack"
>
<td
width=
'250'
rowspan=
"2"
class=
"CP_comBack"
>
人数统计
人数统计
</td>
</td>
<td
v-for=
"item in CostNumberList"
:key=
"item.subCode"
class=
"CP_comBack"
>
{{item.PeopleNumber}}+1
</td>
</tr>
</tr>
<tr>
<tr>
<td
v-for=
"item in CostNumberList"
:key=
"item.subCode"
>
{{item.TotalMoney}}
</td>
</tr>
</tr>
</table>
</table>
</el-form>
</el-form>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -524,6 +533,16 @@
...
@@ -524,6 +533,16 @@
// );
// );
// this.$emit("headCallBack", this.OfferCostPriceObj);
// this.$emit("headCallBack", this.OfferCostPriceObj);
},
},
//获取汇率
getCurrencyMoney
(
currencyId
)
{
let
currency
=
0.0
;
this
.
CostCurrencyList
.
forEach
(
x
=>
{
if
(
x
.
CurrencyId
==
currencyId
)
{
currency
=
x
.
ExchangeRate
;
}
});
return
currency
;
},
//判断币种是否相等
//判断币种是否相等
checkExists
(
CurrencyId
)
{
checkExists
(
CurrencyId
)
{
var
flag
=
false
;
var
flag
=
false
;
...
@@ -534,6 +553,47 @@
...
@@ -534,6 +553,47 @@
});
});
return
flag
;
return
flag
;
},
},
//获取不同人数组合价
getCurrencyNumberTotalMoney
(
peopleNumber
)
{
let
totalMoney
=
0.0
;
this
.
CurrencyNumberListExt
.
forEach
(
x
=>
{
x
.
currencyNumberList
.
forEach
(
y
=>
{
if
(
peopleNumber
===
y
.
PeopleNumber
)
{
totalMoney
+=
this
.
getConvertMoney
(
y
.
Money
)
*
this
.
getCurrencyMoney
(
y
.
CurrencyId
);
}
});
});
return
totalMoney
;
},
//获取主成本价
getCostTotalMoney
()
{
let
totalMoney
=
this
.
getConvertMoney
(
this
.
OtherPrice
.
InlandAirTicketMoney
)
*
this
.
getCurrencyMoney
(
this
.
OtherPrice
.
InlandAirTicketCurrency
)
+
this
.
getConvertMoney
(
this
.
OtherPrice
.
InlandShipTicketMoney
)
*
this
.
getCurrencyMoney
(
this
.
OtherPrice
.
InlandShipTicketCurrency
)
+
this
.
getConvertMoney
(
this
.
OtherPrice
.
InlandTrainTicketMoney
)
*
this
.
getCurrencyMoney
(
this
.
OtherPrice
.
InlandTrainTicketCurrency
)
+
this
.
getConvertMoney
(
this
.
OtherPrice
.
DriverGuideMoney
)
+
this
.
getConvertMoney
(
this
.
OtherPrice
.
LeaderTripMoney
)
+
this
.
getConvertMoney
(
this
.
OtherPrice
.
OfficeCommissionMoney
)
+
this
.
getConvertMoney
(
this
.
OtherPrice
.
SafeMoney
)
+
this
.
getConvertMoney
(
this
.
OtherPrice
.
SalesCommissionMoney
)
+
this
.
getConvertMoney
(
this
.
OtherPrice
.
TripMoney
)
+
this
.
getConvertMoney
(
this
.
OtherPrice
.
GuidePeopleMoney
)
+
this
.
getConvertMoney
(
this
.
OtherPrice
.
AirTicketMoeny
)
+
this
.
getConvertMoney
(
this
.
OtherPrice
.
KBMoney
)
+
this
.
getConvertMoney
(
this
.
OtherPrice
.
VisaMoney
);
return
totalMoney
;
},
//获取系列列表
//获取系列列表
getLineTeamList
(
lineId
)
{
getLineTeamList
(
lineId
)
{
this
.
postConfig
.
LineteamId
=
0
;
this
.
postConfig
.
LineteamId
=
0
;
...
@@ -711,13 +771,85 @@
...
@@ -711,13 +771,85 @@
err
=>
{}
err
=>
{}
);
);
},
},
//计算总价
getSubtotalMoney
()
{
let
that
=
this
;
this
.
CostNumberList
.
forEach
(
x
=>
{
x
.
SubtotalMoney
=
(
this
.
getConvertMoney
(
x
.
AirTicketMoney
)
+
this
.
getConvertMoney
(
x
.
TicketMoney
)
+
this
.
getConvertMoney
(
x
.
SingleRoomMoney
)
+
this
.
getConvertMoney
(
x
.
InlandTrafficMoney
)
+
this
.
getConvertMoney
(
x
.
OtherMoney
)
).
toFixed
(
2
);
x
.
TotalMoney
=
(
that
.
getLocalTotalMoney
()
+
that
.
getCostTotalMoney
()
+
this
.
getConvertMoney
(
x
.
SubtotalMoney
)
+
this
.
getCurrencyNumberTotalMoney
(
x
.
PeopleNumber
)
).
toFixed
(
2
);
});
},
//价格转换器
getConvertMoney
(
value
)
{
if
(
value
===
""
||
value
===
undefined
||
value
===
null
)
{
value
=
0.0
;
}
return
parseFloat
(
value
);
},
//获取地接项目报价
getLocalTotalMoney
()
{
let
totalMoney
=
0.0
;
this
.
dayCostPrice
.
forEach
(
x
=>
{
let
subTotalMoney
=
0.0
;
subTotalMoney
=
(
this
.
getConvertMoney
(
x
.
HotelCostPrice
)
+
this
.
getConvertMoney
(
x
.
BusCostPrice
)
+
this
.
getConvertMoney
(
x
.
ScenicCostPrice
)
+
this
.
getConvertMoney
(
x
.
BreakfastCostPrice
)
+
this
.
getConvertMoney
(
x
.
LunchCostPrice
)
+
this
.
getConvertMoney
(
x
.
DinnerCostPrice
))
*
this
.
getCurrencyMoney
(
x
.
CurrencyId
);
totalMoney
+=
subTotalMoney
;
});
return
totalMoney
;
},
//计算领队分摊
getLeaderShare
()
{
let
that
=
this
;
var
AirTicketShareMoney
=
this
.
OtherPrice
.
AirTicketShareMoney
;
var
TicketShareMoney
=
this
.
OtherPrice
.
TicketShareMoney
;
var
SingleRoomShareMoney
=
this
.
OtherPrice
.
SingleRoomShareMoney
;
var
InlandTrafficShareMoney
=
this
.
OtherPrice
.
InlandTrafficShareMoney
;
var
OtherShareMoney
=
this
.
OtherPrice
.
OtherShareMoney
;
this
.
CostNumberList
.
forEach
(
x
=>
{
x
.
AirTicketMoney
=
(
AirTicketShareMoney
/
x
.
PeopleNumber
).
toFixed
(
2
);
x
.
TicketMoney
=
(
TicketShareMoney
/
x
.
PeopleNumber
).
toFixed
(
2
);
x
.
SingleRoomMoney
=
(
SingleRoomShareMoney
/
x
.
PeopleNumber
).
toFixed
(
2
);
x
.
InlandTrafficMoney
=
(
InlandTrafficShareMoney
/
x
.
PeopleNumber
).
toFixed
(
2
);
x
.
OtherMoney
=
(
OtherShareMoney
/
x
.
PeopleNumber
).
toFixed
(
2
);
});
},
getchange
()
{
this
.
getLeaderShare
();
this
.
getSubtotalMoney
();
}
},
},
mounted
()
{
mounted
()
{
this
.
getAllCurrency
();
this
.
getAllCurrency
();
},
},
created
()
{},
created
()
{},
watch
:
{}
watch
:
{
CostNumberList
:
{
handler
:
function
(
val
,
oldVal
)
{
console
.
log
(
"111"
);
this
.
getchange
()
},
deep
:
true
},
},
};
};
</
script
>
</
script
>
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