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
4fd54bd1
Commit
4fd54bd1
authored
Sep 23, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
7d3c7788
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
134 additions
and
175 deletions
+134
-175
QuotationNewPrice.vue
...ts/TravelManager/TravelNewQuotation/QuotationNewPrice.vue
+134
-175
No files found.
src/components/TravelManager/TravelNewQuotation/QuotationNewPrice.vue
View file @
4fd54bd1
<
template
>
<
template
>
<div
v-if=
"isShow"
class=
"DirectQuotation clearfix"
>
<div
v-if=
"isShow"
class=
"DirectQuotation clearfix"
>
<DirectQuotation
ref=
"QuotationPrice"
:postConfig=
"postData"
:dayCostPrice=
"dayCostPriceList"
></DirectQuotation>
<DirectQuotation
ref=
"QuotationPrice"
:postConfig=
"postData"
:dayCostPrice=
"dayCostPriceList"
:otherPrice=
"otherPrice"
></DirectQuotation>
<div
class=
"btnFixedDiv"
>
<div
class=
"btnFixedDiv"
>
<div
class=
"toTop"
@
click=
"backTop"
>
<div
class=
"toTop"
@
click=
"backTop"
>
<i
class=
"iconfont icon-huidaodingbu"
></i>
<i
class=
"iconfont icon-huidaodingbu"
></i>
</div>
</div>
<div
class=
"DTSaveBtn"
:class=
"
{'disClick':!isSubmit}" @click="
submitForm
(2)">提交
</div>
<div
class=
"DTSaveBtn"
:class=
"
{'disClick':!isSubmit}" @click="
SaveData
(2)">提交
</div>
<div
class=
"DTSaveBtn"
@
click=
"copyQuotationData"
style=
"display:none;"
>
复制
</div>
<div
class=
"DTSaveBtn"
@
click=
"copyQuotationData"
style=
"display:none;"
>
复制
</div>
<div
class=
"DTSaveBtn caogao"
:class=
"
{'disClick':!isSubmit}" @click="
submitForm
(1)">
<div
class=
"DTSaveBtn caogao"
:class=
"
{'disClick':!isSubmit}" @click="
SaveData
(1)">
<span>
保存
</span>
<span>
保存
</span>
<span>
草稿
</span>
<span>
草稿
</span>
</div>
</div>
...
@@ -15,185 +16,143 @@
...
@@ -15,185 +16,143 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
DirectQuotation
from
"../TravelNewQuotation/DirectNewQuotation"
;
import
DirectQuotation
from
"../TravelNewQuotation/DirectNewQuotation"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
//基本配置
//基本配置
postData
:
{
postData
:
{
ID
:
0
,
ID
:
0
,
StartCityId
:
0
,
StartCityId
:
0
,
LineId
:
0
,
LineId
:
0
,
LineteamId
:
0
,
LineteamId
:
0
,
Title
:
""
,
Title
:
""
,
IsOrder
:
0
,
IsOrder
:
0
,
IsSubstitution
:
0
,
IsSubstitution
:
0
,
IsB2B
:
0
,
IsB2B
:
0
,
IsB2C
:
0
,
IsB2C
:
0
,
FSeat
:
""
,
FSeat
:
""
,
CSeat
:
""
,
CSeat
:
""
,
YSeat
:
""
,
YSeat
:
""
,
//最低成团人数
//最低成团人数
LowNum
:
""
,
LowNum
:
""
,
//OP备注
//OP备注
OpRemark
:
""
,
OpRemark
:
""
,
//产品经理备注
//产品经理备注
ProductRecommend
:
""
,
ProductRecommend
:
""
,
IsDirect
:
0
,
//是否直采(0-否-1-是)【全部默认非直采】
IsDirect
:
0
,
//是否直采(0-否-1-是)【全部默认非直采】
PriceIsDirect
:
1
,
//是否直采报价(1-否-2-是)【全部默认非直采】
PriceIsDirect
:
1
,
//是否直采报价(1-否-2-是)【全部默认非直采】
PDFAlias
:
""
,
//pdf别名
PDFAlias
:
""
,
//pdf别名
ImgCover
:
""
,
//封面图
ImgCover
:
""
,
//封面图
DayNum
:
""
,
//天数
DayNum
:
""
,
//天数
NightNum
:
""
,
//晚数
NightNum
:
""
,
//晚数
StartCityId
:
0
,
StartCityId
:
0
,
ReturnArriveCityId
:
0
,
//返回抵达城市
ReturnArriveCityId
:
0
,
//返回抵达城市
},
},
dayCostPriceList
:[],
//报价列表
dayCostPriceList
:
[],
//报价列表
otherPrice
:
{
};
CostId
:
0
,
//主键编号
},
ConfigID
:
0
,
//配置编号
methods
:
{
OfferId
:
0
,
//报价单编号
//表单提交
InlandAirTicketCurrency
:
0
,
//内陆段机位币种
submitForm
(
type
)
{
InlandAirTicketMoney
:
0
,
//内陆段机位金额(每人)
this
.
$refs
[
"QuotationPrice"
].
submitForm
(
type
);
InlandShipTicketCurrency
:
0
,
//内陆段船票币种
},
InlandShipTicketMoney
:
0
,
//内陆段船票金额(每人)
changeDirect
(
value
)
{
InlandTrainTicketCurrency
:
0
,
//内陆段火车币种
this
.
priceIsDirect
=
value
;
InlandTrainTicketMoney
:
0
,
//内陆段火车金额(每人)
this
.
postData
.
PriceIsDirect
=
value
;
VisaMoney
:
0
,
//签证费用(每人)
this
.
isSubmit
=
true
;
SafeMoney
:
0
,
//保险费用(每人)
if
(
this
.
postData
.
IsDirect
==
1
)
{
LeaderTripMoney
:
0
,
//领队小费
this
.
changeTeamLocalOfferValue
();
DriverGuideMoney
:
0
,
//司机导游小费
}
SalesCommissionMoney
:
0
,
//销售提成
},
OfficeCommissionMoney
:
0
,
//作业处提成
updateSubmitState
(
state
)
{
TripMoney
:
0
,
//小费
this
.
isSubmit
=
state
;
GuidePeopleMoney
:
0
,
//导游人头费
},
AirTicketMoeny
:
0
,
//机票成本费用
changeTeamLocalOfferValue
()
{
KBMoney
:
0
,
//KB人头费
this
.
postData
.
PriceList
.
forEach
(
y
=>
{
AirTicketShareMoney
:
0
,
//机票分摊费用
let
localOfferList
=
JSON
.
parse
(
TicketShareMoney
:
0
,
//门票分摊费用,
JSON
.
stringify
(
y
.
OfferPrice
.
FullLocalOfferList
)
SingleRoomShareMoney
:
0
,
//单房差分摊费用
);
InlandTrafficShareMoney
:
0
,
//内陆段交通分摊费用
y
.
OfferPrice
.
LocalOfferList
=
localOfferList
;
OtherShareMoney
:
0
,
//杂费分摊费用
});
},
},
//回到顶部
backTop
()
{
var
timer
=
setInterval
(
function
()
{
var
scrollTop
=
document
.
getElementsByClassName
(
"flexParent"
)[
0
]
.
scrollTop
;
var
ispeed
=
Math
.
floor
(
-
scrollTop
/
6
);
if
(
scrollTop
==
0
)
{
clearInterval
(
timer
);
}
document
.
getElementsByClassName
(
"flexParent"
)[
0
].
scrollTop
=
scrollTop
+
ispeed
;
},
30
);
},
//获取行程信息
getConfigDayTrip
(
subConfig
)
{
var
TrafficList
=
[];
var
ScenicList
=
[];
var
HotelList
=
[];
var
DinnerList
=
[];
var
FreedomList
=
[];
var
WarmTipList
=
[];
var
TitleList
=
[];
subConfig
.
DayList
.
forEach
((
item
,
dayIndex
)
=>
{
var
rank
=
1
;
if
(
item
.
dayArray
!=
null
&&
item
.
dayArray
.
length
>
0
)
{
item
.
dayArray
.
forEach
(
subItem
=>
{
subItem
.
childItem
.
Rank
=
rank
;
subItem
.
childItem
.
dayNum
=
item
.
dayNum
;
subItem
.
Type
=
subItem
.
Type
.
toString
();
switch
(
subItem
.
Type
)
{
case
this
.
$tripUtils
.
TypeKey
.
traffic
:
TrafficList
.
push
(
subItem
.
childItem
);
break
;
case
this
.
$tripUtils
.
TypeKey
.
scenic
:
ScenicList
.
push
(
subItem
.
childItem
);
break
;
case
this
.
$tripUtils
.
TypeKey
.
hotel
:
HotelList
.
push
(
subItem
.
childItem
);
break
;
case
this
.
$tripUtils
.
TypeKey
.
dinner
:
DinnerList
.
push
(
subItem
.
childItem
);
break
;
case
this
.
$tripUtils
.
TypeKey
.
freedom
:
FreedomList
.
push
(
subItem
.
childItem
);
break
;
case
this
.
$tripUtils
.
TypeKey
.
warmtip
:
WarmTipList
.
push
(
subItem
.
childItem
);
break
;
case
this
.
$tripUtils
.
TypeKey
.
title
:
TitleList
.
push
(
subItem
.
childItem
);
break
;
}
rank
++
;
});
}
});
var
obj
=
{
DinnerList
:
DinnerList
,
FreedomList
:
FreedomList
,
HotelList
:
HotelList
,
ScenicList
:
ScenicList
,
TrafficList
:
TrafficList
,
WarmTipList
:
WarmTipList
,
TitleList
:
TitleList
};
};
return
obj
;
},
//复制信息
copyQuotationData
()
{
this
.
$refs
.
QuotationPrice
.
copyInfo
();
},
},
getPostData
()
{
methods
:
{
let
configId
=
this
.
$route
.
query
.
configId
;
//表单提交
if
(
configId
>
0
)
{
submitForm
(
type
)
{
let
msg
=
{
ID
:
configId
};
this
.
$refs
[
"QuotationPrice"
].
submitForm
(
type
);
},
//保存数据
SaveData
()
{
this
.
apipost
(
this
.
apipost
(
"travel_get_GetMyTravelInfo"
,
"travel_post_SetConfigOffer_V2"
,
{
msg
,
config
:
postData
,
dayCostPriceList
:
dayCostPriceList
,
otherPrice
:
otherPrice
},
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
res
.
data
);
this
.
postData
=
res
.
data
.
data
;
if
(
res
.
data
.
resultCode
==
1
)
{}
let
postDaysTrip
=
this
.
getConfigDayTrip
(
this
.
postData
);
this
.
postData
.
DinnerList
=
postDaysTrip
.
DinnerList
;
this
.
postData
.
FreedomList
=
postDaysTrip
.
FreedomList
;
this
.
postData
.
HotelList
=
postDaysTrip
.
HotelList
;
this
.
postData
.
ScenicList
=
postDaysTrip
.
ScenicList
;
this
.
postData
.
TrafficList
=
postDaysTrip
.
TrafficList
;
this
.
postData
.
WarmTipList
=
postDaysTrip
.
WarmTipList
;
this
.
postData
.
TitleList
=
postDaysTrip
.
TitleList
;
if
(
this
.
postData
.
OfferList
==
null
)
{
this
.
postData
.
OfferList
=
[];
}
if
(
this
.
postData
.
IsDirect
==
1
)
{
this
.
priceIsDirect
=
2
;
this
.
postData
.
PriceIsDirect
=
2
;
}
else
{
this
.
priceIsDirect
=
1
;
this
.
postData
.
PriceIsDirect
=
1
;
}
this
.
isShow
=
true
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
},
err
=>
{}
err
=>
{}
);
);
}
else
{
},
let
params
=
{
isNoOffer
:
false
};
getPostData
()
{
this
.
$router
.
push
({
name
:
"quoTation"
,
params
:
params
});
let
configId
=
this
.
$route
.
query
.
configId
;
if
(
configId
>
0
)
{
let
msg
=
{
ID
:
configId
};
this
.
apipost
(
"travel_get_GetMyTravelInfo"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
postData
=
res
.
data
.
data
;
let
postDaysTrip
=
this
.
getConfigDayTrip
(
this
.
postData
);
this
.
postData
.
DinnerList
=
postDaysTrip
.
DinnerList
;
this
.
postData
.
FreedomList
=
postDaysTrip
.
FreedomList
;
this
.
postData
.
HotelList
=
postDaysTrip
.
HotelList
;
this
.
postData
.
ScenicList
=
postDaysTrip
.
ScenicList
;
this
.
postData
.
TrafficList
=
postDaysTrip
.
TrafficList
;
this
.
postData
.
WarmTipList
=
postDaysTrip
.
WarmTipList
;
this
.
postData
.
TitleList
=
postDaysTrip
.
TitleList
;
if
(
this
.
postData
.
OfferList
==
null
)
{
this
.
postData
.
OfferList
=
[];
}
if
(
this
.
postData
.
IsDirect
==
1
)
{
this
.
priceIsDirect
=
2
;
this
.
postData
.
PriceIsDirect
=
2
;
}
else
{
this
.
priceIsDirect
=
1
;
this
.
postData
.
PriceIsDirect
=
1
;
}
this
.
isShow
=
true
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
}
else
{
let
params
=
{
isNoOffer
:
false
};
this
.
$router
.
push
({
name
:
"quoTation"
,
params
:
params
});
}
}
}
},
created
()
{
this
.
getPostData
();
},
components
:
{
DirectQuotation
:
DirectQuotation
}
}
},
};
created
()
{
this
.
getPostData
();
},
components
:
{
DirectQuotation
:
DirectQuotation
}
};
</
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