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
dc3caee0
Commit
dc3caee0
authored
4 years ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
1183d11e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
582 additions
and
66 deletions
+582
-66
QuotationPrice_SWT.vue
...s/TravelManager/TravelNewQuotation/QuotationPrice_SWT.vue
+309
-64
AreaandType.vue
src/components/busManagement/AreaandType.vue
+2
-2
swtBaoJiaConfig.vue
src/components/dmc/manager/swtBaoJiaConfig.vue
+266
-0
config.js
src/router/config.js
+5
-0
No files found.
src/components/TravelManager/TravelNewQuotation/QuotationPrice_SWT.vue
View file @
dc3caee0
...
...
@@ -31,7 +31,8 @@
<thead>
<tr>
<td
colspan=
"10"
>
保存
<button
class=
"hollowFixedBtn"
@
click=
"SaveData()"
>
保存
</button>
</td>
</tr>
</thead>
...
...
@@ -41,13 +42,22 @@
线路
</td>
<td
colspan=
"3"
>
<el-select
v-model=
"postData.LineId"
></el-select>
<el-select
v-model=
"postData.LineId"
class=
'w200'
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getLineTeamList(true)"
>
<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>
</el-select>
</td>
<td
colspan=
"2"
class=
"ComTitle"
>
系列
</td>
<td
colspan=
"3"
>
<el-select
v-model=
"postData.LineteamId"
></el-select>
<el-select
v-model=
"postData.LineteamId"
class=
'w200'
filterable
:placeholder=
"$t('pub.pleaseSel')"
>
<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>
</el-select>
</td>
</tr>
<tr>
...
...
@@ -77,35 +87,53 @@
航班时间
</td>
<td>
<el-input
v-model=
"postData.DayNum"
></el-input>
<template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=1"
>
<el-date-picker
v-model=
"postData.SWTFlightList[0].flightDate"
type=
"date"
placeholder=
"航班日期"
>
</el-date-picker>
</
template
>
</td>
<td>
QH537
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=1"
>
<el-input
v-model=
"postData.SWTFlightList[0].flightNum"
placeholder=
"航班号"
></el-input>
</
template
>
</td>
<td
colspan=
"2"
>
QH537 1410
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=1"
>
<el-input
v-model=
"postData.SWTFlightList[0].flightContent"
placeholder=
"航班信息"
></el-input>
</
template
>
<a
@
click=
"AddFlight()"
>
添加航班
</a>
</td>
</tr>
<tr>
<td>
<el-input
v-model=
"postData.DayNum"
></el-input>
<el-input
v-model=
"postData.DayNum"
@
keyup
.
native=
"checkInteger(postData,'DayNum')"
placeholder=
"行程天数"
maxlength=
"2"
></el-input>
</td>
<td>
<el-input
v-model=
"postData.StartDate"
placeholder=
"2020/09/30前走完行程"
></el-input>
<el-date-picker
v-model=
"postData.StartDate"
type=
"date"
clearable
placeholder=
"2020/09/30前走完行程"
>
</el-date-picker>
</td>
<td
class=
"ComTitle"
>
FOC
</td>
<td>
<el-input
v-model=
"postData.DayNum"
></el-input>
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=2"
>
<el-date-picker
v-model=
"postData.SWTFlightList[1].flightDate"
type=
"date"
placeholder=
"航班日期"
>
</el-date-picker>
</
template
>
</td>
<td>
QH536
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=2"
>
<el-input
v-model=
"postData.SWTFlightList[1].flightNum"
placeholder=
"航班号"
></el-input>
</
template
>
</td>
<td
colspan=
"2"
>
QH536 0940
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=2"
>
<el-input
v-model=
"postData.SWTFlightList[1].flightContent"
placeholder=
"航班信息"
></el-input>
</
template
>
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=2"
>
<a
@
click=
"DeleteFlight(1)"
>
删除
</a>
</
template
>
</td>
</tr>
<tr>
...
...
@@ -113,19 +141,31 @@
适用人数
</td>
<td>
<el-input
v-model=
"postData.GuestNum"
></el-input>
<el-input
v-model=
"postData.GuestNum"
@
keyup
.
native=
"checkInteger(postData,'GuestNum')"
placeholder=
"旅客人数"
maxlength=
"2"
></el-input>
</td>
<td>
<el-input
v-model=
"postData.FocNum"
></el-input>
<el-input
v-model=
"postData.FocNum"
@
keyup
.
native=
"checkInteger(postData,'FocNum')"
placeholder=
"FOC"
maxlength=
"2"
></el-input>
</td>
<td>
<el-input
v-model=
"postData.DayNum"
></el-input>
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=3"
>
<el-date-picker
v-model=
"postData.SWTFlightList[2].flightDate"
type=
"date"
placeholder=
"航班日期"
>
</el-date-picker>
</
template
>
</td>
<td>
QH536
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=3"
>
<el-input
v-model=
"postData.SWTFlightList[2].flightNum"
placeholder=
"航班号"
></el-input>
</
template
>
</td>
<td
colspan=
"2"
>
QH536 0940
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=3"
>
<el-input
v-model=
"postData.SWTFlightList[2].flightContent"
placeholder=
"航班信息"
></el-input>
</
template
>
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=3"
>
<a
@
click=
"DeleteFlight(2)"
>
删除
</a>
</
template
>
</td>
</tr>
</tbody>
...
...
@@ -136,42 +176,78 @@
導遊
</td>
<td
rowspan=
"3"
>
<el-input
v-model=
"postData.DayNum"
></el-input>
<
template
v-if=
"postData.SWTGuideList&&postData.SWTGuideList.length>=1"
>
<el-input
v-model=
"postData.SWTGuideList[0].LeaderGuideInfo"
placeholder=
"導遊"
></el-input>
</
template
>
</td>
<td
rowspan=
"3"
class=
"ComTitle"
>
領隊
</td>
<td
rowspan=
"3"
>
<el-input
v-model=
"postData.DayNum"
></el-input>
<
template
v-if=
"postData.SWTLeaderList&&postData.SWTLeaderList.length>=1"
>
<el-input
v-model=
"postData.SWTLeaderList[0].LeaderGuideInfo"
placeholder=
"領隊"
></el-input>
</
template
>
</td>
<td>
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=4"
>
<el-date-picker
v-model=
"postData.SWTFlightList[3].flightDate"
type=
"date"
placeholder=
"航班日期"
>
</el-date-picker>
</
template
>
</td>
<td>
QH536
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=4"
>
<el-input
v-model=
"postData.SWTFlightList[3].flightNum"
placeholder=
"航班号"
></el-input>
</
template
>
</td>
<td
colspan=
"2"
>
QH536 0940
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=4"
>
<el-input
v-model=
"postData.SWTFlightList[3].flightContent"
placeholder=
"航班信息"
></el-input>
</
template
>
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=4"
>
<a
@
click=
"DeleteFlight(3)"
>
删除
</a>
</
template
>
</td>
</tr>
<tr>
<td>
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=5"
>
<el-date-picker
v-model=
"postData.SWTFlightList[4].flightDate"
type=
"date"
placeholder=
"航班日期"
>
</el-date-picker>
</
template
>
</td>
<td>
QH536
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=5"
>
<el-input
v-model=
"postData.SWTFlightList[4].flightNum"
placeholder=
"航班号"
></el-input>
</
template
>
</td>
<td
colspan=
"2"
>
QH536 0940
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=5"
>
<el-input
v-model=
"postData.SWTFlightList[4].flightContent"
placeholder=
"航班信息"
></el-input>
</
template
>
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=5"
>
<a
@
click=
"DeleteFlight(4)"
>
删除
</a>
</
template
>
</td>
</tr>
<tr>
<td>
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=6"
>
<el-date-picker
v-model=
"postData.SWTFlightList[5].flightDate"
type=
"date"
placeholder=
"航班日期"
>
</el-date-picker>
</
template
>
</td>
<td>
QH536
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=6"
>
<el-input
v-model=
"postData.SWTFlightList[5].flightNum"
placeholder=
"航班号"
></el-input>
</
template
>
</td>
<td
colspan=
"2"
>
QH536 0940
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=6"
>
<el-input
v-model=
"postData.SWTFlightList[5].flightContent"
placeholder=
"航班信息"
></el-input>
</
template
>
<
template
v-if=
"postData.SWTFlightList&&postData.SWTFlightList.length>=6"
>
<a
@
click=
"DeleteFlight(5)"
>
删除
</a>
</
template
>
</td>
</tr>
</tbody>
...
...
@@ -182,19 +258,19 @@
LOCAL團號
</td>
<td>
<el-input
v-model=
"postData.LocalTeamNum"
placeholder=
"LOCAL團號"
></el-input>
<el-input
v-model=
"postData.LocalTeamNum"
placeholder=
"LOCAL團號"
maxlength=
"100"
></el-input>
</td>
<td
class=
"ComTitle"
>
估價代號
</td>
<td
colspan=
"2"
>
<el-input
v-model=
"postData.ValuationCode"
placeholder=
"估價代號"
></el-input>
<el-input
v-model=
"postData.ValuationCode"
placeholder=
"估價代號"
maxlength=
"100"
></el-input>
</td>
<td
class=
"ComTitle"
>
出團名稱
</td>
<td
colspan=
"2"
>
<el-input
v-model=
"postData.OutTeamName"
placeholder=
"出團名稱"
></el-input>
<el-input
v-model=
"postData.OutTeamName"
placeholder=
"出團名稱"
maxlength=
"100"
></el-input>
</td>
</tr>
<tr>
...
...
@@ -202,37 +278,32 @@
AGT團號
</td>
<td>
<el-input
v-model=
"postData.AGTTeamName"
placeholder=
"AGT團號"
></el-input>
<el-input
v-model=
"postData.AGTTeamName"
placeholder=
"AGT團號"
maxlength=
"100"
></el-input>
</td>
<td
class=
"ComTitle"
>
SURCHARGE:
</td>
<td
colspan=
"2"
>
<el-input
v-model=
"postData.SURCHARGE"
placeholder=
" (09/02,12/24.31)公眾假期價格另議"
></el-input>
<el-input
v-model=
"postData.SURCHARGE"
placeholder=
" (09/02,12/24.31)公眾假期價格另議"
maxlength=
"100"
></el-input>
</td>
<td
class=
"ComTitle"
>
沒免
酒店减免:
<el-input
v-model=
"postData.HotelDisNum"
@
keyup
.
native=
"checkInteger(postData,'HotelDisNum')"
placeholder=
"FOC"
maxlength=
"2"
></el-input>
</td>
<td
colspan=
"2"
>
</td>
</tr>
</tbody>
<tbody
title=
"酒店"
>
<tr>
<td
colspan=
"10"
>
</td>
</tr>
<tr>
<td
rowspan=
"2
"
class=
"ComTitle"
>
<td
:rowspan=
"1+postData.SWTHotelList.length
"
class=
"ComTitle"
>
飯店
</td>
<td>
</td>
<td
class=
"ComTitle"
>
地区
</td>
<td
class=
"ComTitle"
>
<td
class=
"ComTitle"
colspan=
"2"
>
酒店名称
</td>
<td
class=
"ComTitle"
>
...
...
@@ -247,38 +318,45 @@
<td
class=
"ComTitle"
>
房/人數
</td>
<td
class=
"ComTitle"
>
减免人數
</td>
<td
class=
"ComTitle"
colspan=
"2"
>
合计
</td>
</tr>
<tr>
<tr
v-for=
"(hItem,hIndex) in postData.SWTHotelList"
:key=
"hIndex"
>
<td
style=
"width:50px;"
>
D{{hItem.DayNum}}
</td>
<td>
1
<el-select
v-model=
"hItem.HotelId"
class=
'w200'
filterable
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'0'
></el-option>
</el-select>
</td>
<td>
<el-select></el-select>
{{hItem.USPrice}}
</td>
<td>
<el-select></el-select>
{{hItem.VNDPrice}}
</td>
<td>
{{hItem.Times}}
</td>
<td>
{{hItem.TotalNum}}
</td>
<td>
1
{{hItem.HotelDisNum}}
</td>
<td>
1
{{hItem.USSubTotal}}
</td>
<td
colspan=
"2"
>
0
<td>
{{hItem.VNDSubTotal}}
</td>
</tr>
</tbody>
<tbody
title=
"餐食"
>
<tr>
<td
colspan=
"10"
>
...
...
@@ -330,10 +408,10 @@
</td>
<td>
<el-select></el-select>
</td>
<td>
<el-select></el-select>
</td>
<td>
...
...
@@ -404,10 +482,10 @@
</td>
<td>
<el-select></el-select>
</td>
<td>
<el-select></el-select>
</td>
<td>
...
...
@@ -478,10 +556,10 @@
</td>
<td>
<el-select></el-select>
</td>
<td>
<el-select></el-select>
</td>
<td>
...
...
@@ -552,10 +630,10 @@
</td>
<td>
<el-select></el-select>
</td>
<td>
<el-select></el-select>
</td>
<td>
...
...
@@ -582,7 +660,10 @@
export
default
{
data
()
{
return
{
ConfigID
:
0
,
LineList
:
[],
//线路列表
LineTeamList
:
[],
//系列列表
HotelList
:
[],
//酒店列表
DInnerList
:
[],
//餐厅列表
//基本配置
postData
:
{
Id
:
0
,
...
...
@@ -593,9 +674,10 @@
TravelState
:
1
,
//团控状态(1-草稿,2-待审核,3-审核通过,4-审核拒绝,5已撤销)
Title
:
""
,
//团队标题
ConfigId
:
0
,
//配置编号
DayNum
:
0
,
//行程天数
StartDate
:
""
,
//出发日期
AirLineName
:
""
,
//航空公司名称
SWTFlight
:
[],
//航班列表
SWTFlight
List
:
[],
//航班列表
GuestNum
:
0
,
//旅客人数
FocNum
:
0
,
//Foc人数
SWTLeaderList
:
[],
//领队信息
...
...
@@ -617,16 +699,72 @@
SWTSelfFeeList
:
[],
//自费明细
SWTTipFeeList
:
[],
//小费明细
},
LineList
:
[],
//线路列表
loading
:
false
};
},
methods
:
{
//添加航班
AddFlight
()
{
if
(
this
.
postData
.
SWTFlightList
.
length
<=
6
)
{
this
.
postData
.
SWTFlightList
.
push
(
this
.
getflightJson
());
}
else
{
this
.
Info
(
"最多只能添加6个航班!"
);
}
},
//删除航班
DeleteFlight
(
index
)
{
this
.
postData
.
SWTFlightList
.
splice
(
index
,
1
);
},
//获取线路列表
getLineList
()
{
this
.
apipost
(
"line_post_GetList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
LineList
=
res
.
data
.
data
;
}
});
},
//获取系列列表
getLineTeamList
(
isClear
)
{
if
(
isClear
)
{
this
.
postData
.
LineteamId
=
0
;
}
let
msg
=
{
lineID
:
this
.
postData
.
LineId
,
isTOOP
:
1
};
this
.
apipost
(
"team_post_GetList"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
LineTeamList
=
res
.
data
.
data
;
}
});
},
//航班Json格式
getflightJson
()
{
var
obj
=
{
flightDate
:
""
,
flightNum
:
""
,
flightContent
:
""
}
return
obj
;
},
//领队导游JSON格式
getLeaderGuideJson
()
{
var
obj
=
{
LeaderGuideInfo
:
""
,
}
return
obj
;
},
//酒店JSON格式
getHotelJson
()
{
var
obj
=
{};
return
obj
;
},
getData
()
{
let
Id
=
0
;
if
(
this
.
$route
.
query
.
Id
)
{
Id
=
this
.
$route
.
query
.
Id
;
}
Id
=
3
;
this
.
apipost
(
"travel_get_GetBaoJiaDanSwtService"
,
{
Id
:
Id
,
},
res
=>
{
...
...
@@ -636,25 +774,132 @@
if
(
jsonData
)
{
this
.
postData
.
Id
=
jsonData
.
Id
;
this
.
postData
.
LineId
=
jsonData
.
LineId
;
if
(
this
.
postData
.
LineId
>
0
)
{
this
.
getLineTeamList
();
}
this
.
postData
.
LineteamId
=
jsonData
.
LineteamId
;
this
.
postData
.
IsDirect
=
jsonData
.
IsDirect
;
this
.
postData
.
TeamType
=
jsonData
.
TeamType
;
this
.
postData
.
TravelState
=
jsonData
.
TravelState
;
this
.
postData
.
Title
=
jsonData
.
Title
;
this
.
postData
.
DayNum
=
jsonData
.
DayNum
;
this
.
postData
.
ConfigId
=
jsonData
.
ConfigId
;
this
.
postData
.
StartDate
=
jsonData
.
StartDate
;
this
.
postData
.
AirLineName
=
jsonData
.
AirLineName
;
this
.
postData
.
GuestNum
=
jsonData
.
GuestNum
;
this
.
postData
.
FocNum
=
jsonData
.
FocNum
;
this
.
postData
.
LocalTeamNum
=
jsonData
.
LocalTeamNum
;
this
.
postData
.
ValuationCode
=
jsonData
.
ValuationCode
;
this
.
postData
.
OutTeamName
=
jsonData
.
OutTeamName
;
this
.
postData
.
AGTTeamName
=
jsonData
.
AGTTeamName
;
this
.
postData
.
SURCHARGE
=
jsonData
.
SURCHARGE
;
//航班信息
if
(
jsonData
.
SWTFlightList
)
{
this
.
postData
.
SWTFlightList
=
jsonData
.
SWTFlightList
;
}
else
{
this
.
postData
.
SWTFlightList
.
push
(
this
.
getflightJson
());
}
//领队信息
if
(
jsonData
.
SWTLeaderList
)
{
this
.
postData
.
SWTLeaderList
=
jsonData
.
SWTLeaderList
;
}
else
{
this
.
postData
.
SWTLeaderList
.
push
(
this
.
getLeaderGuideJson
());
}
//导游信息
if
(
jsonData
.
SWTGuideList
)
{
this
.
postData
.
SWTGuideList
=
jsonData
.
SWTGuideList
;
}
else
{
this
.
postData
.
SWTGuideList
.
push
(
this
.
getLeaderGuideJson
());
}
if
(
jsonData
.
SWTHotelList
)
{
this
.
postData
.
SWTHotelList
=
jsonData
.
SWTHotelList
;
}
}
}
});
},
//保存数据
SaveData
()
{
this
.
apipost
(
"travel_post_SetBaoJiaDanSwtService"
,
this
.
postData
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getData
();
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
});
},
//获取酒店列表
GetHotelList
()
{
this
.
apipost
(
"travel_post_SetBaoJiaDanSwtService"
,
this
.
postData
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
}
});
},
//获取餐厅列表
GetDinnerList
()
{
this
.
apipost
(
"travel_post_SetBaoJiaDanSwtService"
,
this
.
postData
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
}
});
},
//生成酒店数据
createHotel
()
{
if
(
this
.
postData
.
DayNum
>
this
.
postData
.
SWTHotelList
.
length
)
{
console
.
log
(
"111"
)
for
(
var
i
=
this
.
postData
.
SWTHotelList
.
length
;
i
<
this
.
postData
.
DayNum
;
i
++
)
{
//去掉以前默认的交通
var
dayItem
=
{
DayNum
:
i
+
1
,
HotelId
:
0
,
//酒店变化
HotelName
:
""
,
//酒店名称
USPrice
:
0
,
//美元
VNDPrice
:
0
,
//越南盾
TotalNum
:
Number
(
this
.
postData
.
GuestNum
)
+
Number
(
this
.
postData
.
FocNum
),
//总人数
Times
:
1
,
//次数
USSubTotal
:
0
,
//美元小计
VNDSubTotal
:
0
,
//越南盾小计
HotelDisNum
:
this
.
postData
.
HotelDisNum
,
//减免人数
};
this
.
postData
.
SWTHotelList
.
push
(
dayItem
);
}
}
else
{
console
.
log
(
"删除多余的项"
)
//删除多余的项
for
(
var
i
=
this
.
postData
.
DayNum
;
i
<
this
.
postData
.
SWTHotelList
.
length
;
i
++
)
{
var
dayObj
=
this
.
postData
.
SWTHotelList
[
i
];
// dayObj.dayArray.forEach((subItem, subIndex) => {
// this.commonRemove(subItem.childItem.DayNum, subIndex);
// });
}
// this.postData.SWTHotelList.length = this.postData.DayNum;
}
}
},
created
()
{
},
mounted
()
{
this
.
getLineList
();
this
.
getData
();
}
},
computed
:
{
},
watch
:
{
//监听天数变化
'postData.DayNum'
:
{
handler
(
newVal
,
oldVal
)
{
this
.
createHotel
();
},
deep
:
true
}
}
};
</
script
>
This diff is collapsed.
Click to expand it.
src/components/busManagement/AreaandType.vue
View file @
dc3caee0
<
style
>
.BusAddArea
{
.
AreaandType
.
BusAddArea
{
width
:
100%
;
text-align
:
right
;
margin-bottom
:
25px
;
}
.AreaTypeTable
td
,
.AreaTypeTable
th
{
.Area
andType
.Area
TypeTable
td
,
.AreaTypeTable
th
{
text-align
:
center
!important
;
}
</
style
>
...
...
This diff is collapsed.
Click to expand it.
src/components/dmc/manager/swtBaoJiaConfig.vue
0 → 100644
View file @
dc3caee0
<
style
>
.swtBaoJiaConfig
.BusAddArea
{
width
:
100%
;
text-align
:
right
;
margin-bottom
:
25px
;
}
.swtBaoJiaConfig
.AreaTypeTable
td
,
.AreaTypeTable
th
{
text-align
:
center
!important
;
}
</
style
>
<
template
>
<div
class=
"flexOne swtBaoJiaConfig"
>
<div
class=
"query-box"
>
<ul>
<li>
<span>
<em>
类型
</em>
<el-select
v-model=
'qMsg.CType'
class=
"w217"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"0"
></el-option>
<el-option
v-for=
"(item) in TypeList"
:label=
"item.Name"
:key=
"item.Id"
:value=
"item.Id"
></el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>
名称
</em>
<el-input
maxlength=
"50"
v-model=
"qMsg.CName"
class=
"permiss-input w150"
@
keyup
.
native
.
enter=
"getList"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</span>
</li>
<li>
<button
class=
"hollowFixedBtn"
@
click=
"qMsg.pageIndex=1,getList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<input
type=
"button"
class=
"normalBtn"
@
click=
"addAreaData()"
value=
"新增费用"
>
</li>
</ul>
</div>
<table
class=
"singeRowTable AreaTypeTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loadingArea"
>
<tr>
<th
width=
"200"
>
类型
</th>
<th
width=
"200"
>
名称
</th>
<th
width=
"200"
>
美元
</th>
<th
width=
"200"
>
越南盾
</th>
<th
width=
"200"
>
操作人
</th>
<th
width=
"200"
>
操作时间
</th>
<th>
操作
</th>
</tr>
<tr
v-for=
"(item,index) in AreaDataList"
:key=
"index"
>
<td>
{{
item
.
CTypeStr
}}
</td>
<td>
{{
item
.
CName
}}
</td>
<td><span
style=
"color:red;font-weight:bold;"
>
US
{{
item
.
USPrice
}}
</span></td>
<td><span
style=
"color:blue;font-weight:bold;"
>
VND
{{
item
.
VNDPrice
}}
</span></td>
<td>
{{
item
.
UpdateByName
}}
</td>
<td>
{{
item
.
UpdateDateStr
}}
</td>
<td>
<el-button
type=
"primary"
icon=
"el-icon-edit"
@
click=
"getAreaUpdate(item.Id)"
circle
></el-button>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
@
click=
"delArea(item.Id)"
circle
></el-button>
</el-tooltip>
</td>
</tr>
</table>
<el-pagination
background
@
current-change=
"AreaCurrentChange"
:current-page
.
sync=
"qMsg.currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
"qMsg.pageSize"
:total=
"qMsg.total"
></el-pagination>
<el-dialog
custom-class=
"w400"
:title=
"dialogTitle"
:visible
.
sync=
"dialogVisible"
center
:before-close=
"clearAddMsg"
>
<el-form
label-width=
"100px"
>
<table
class=
"layerTable layerNoIcon"
>
<tr>
<td>
<el-form-item
label=
"名称"
>
<el-input
v-model=
"addMsg.CName"
class=
"w217"
/>
</el-form-item>
</td>
</tr>
<tr>
<td>
<el-form-item
label=
"类型"
>
<el-select
v-model=
'addMsg.CType'
class=
"w217"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"0"
></el-option>
<el-option
v-for=
"(item) in TypeList"
:label=
"item.Name"
:key=
"item.Id"
:value=
"item.Id"
></el-option>
</el-select>
</el-form-item>
</td>
</tr>
<tr>
<td>
<el-form-item
label=
"美元"
>
<el-input
v-model=
"addMsg.USPrice"
class=
"w217"
@
keyup
.
native=
"checkPrice(addMsg,'USPrice')"
/>
</el-form-item>
</td>
</tr>
<tr>
<td>
<el-form-item
label=
"越南盾"
>
<el-input
v-model=
"addMsg.VNDPrice"
class=
"w217"
@
keyup
.
native=
"checkPrice(addMsg,'VNDPrice')"
/>
</el-form-item>
</td>
</tr>
</table>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"dialogVisible = false,clearAddMsg()"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"normalBtn"
@
click=
"saveAreaInfo()"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
</div>
</el-dialog>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
dialogVisible
:
false
,
dialogTitle
:
''
,
loadingArea
:
false
,
//地区请求参数
qMsg
:
{
CType
:
0
,
pageIndex
:
1
,
pageSize
:
5
,
total
:
0
,
currentPage
:
1
,
CName
:
''
,
//项目名称
},
AreaDataList
:
[],
//新增费用
addMsg
:
{
Id
:
0
,
CType
:
0
,
//费用类型
CName
:
''
,
//项目名称
USPrice
:
0
,
//美元价
VNDPrice
:
0
,
//越南盾
},
//费用类型字符串
TypeList
:
[{
Id
:
1
,
Name
:
"杂支"
},
{
Id
:
2
,
Name
:
"自费"
},
{
Id
:
3
,
Name
:
"小费"
},
],
//费用类型列表
};
},
mounted
()
{
this
.
getList
();
},
filters
:
{},
methods
:
{
//新增地区
addAreaData
()
{
this
.
dialogVisible
=
true
;
this
.
dialogTitle
=
'新增费用'
;
},
//翻页
AreaCurrentChange
(
val
)
{
this
.
qMsg
.
pageIndex
=
val
;
this
.
getList
();
},
//清空新增信息
clearAddMsg
()
{
this
.
addMsg
.
Id
=
0
;
this
.
addMsg
.
CType
=
0
;
this
.
addMsg
.
CName
=
""
;
this
.
addMsg
.
USPrice
=
0
;
this
.
addMsg
.
VNDPrice
=
0
;
},
//获取报价配置数据
getList
()
{
this
.
loadingArea
=
true
;
this
.
apipost
(
'travel_get_GetBaoJiaDanConfigSwtPageListService'
,
this
.
qMsg
,
res
=>
{
this
.
loadingArea
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
AreaDataList
=
res
.
data
.
data
.
pageData
;
this
.
qMsg
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
)
},
//保存费用配置
saveAreaInfo
()
{
if
(
this
.
addMsg
.
CName
==
''
)
{
this
.
Error
(
'请填写名称'
);
return
;
}
if
(
this
.
addMsg
.
CType
==
0
)
{
this
.
Error
(
'请选择费用类型'
);
return
;
}
this
.
apipost
(
'travel_post_SetBaoJiaDanConfigSWTService'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getList
();
this
.
clearAddMsg
();
this
.
dialogVisible
=
false
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
)
},
//修改费用配置
getAreaUpdate
(
Id
)
{
this
.
dialogTitle
=
"修改费用"
this
.
dialogVisible
=
true
;
let
msg
=
{
Id
:
Id
}
this
.
apipost
(
'travel_get_GetBaoJiaDanConfigSwtService'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
.
Id
=
res
.
data
.
data
.
Id
;
this
.
addMsg
.
CType
=
res
.
data
.
data
.
CType
;
this
.
addMsg
.
CName
=
res
.
data
.
data
.
CName
;
this
.
addMsg
.
USPrice
=
res
.
data
.
data
.
USPrice
;
this
.
addMsg
.
VNDPrice
=
res
.
data
.
data
.
VNDPrice
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
)
},
//删除费用配置
delArea
(
Id
)
{
var
that
=
this
;
this
.
Confirm
(
"是否删除?"
,
function
()
{
var
msg
=
{
Id
:
Id
,
Status
:
1
};
that
.
apipost
(
"travel_post_UpdateBaoJiaDanConfigSwtStatusService"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
'删除成功!'
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
data
);
}
},
null
);
});
},
}
};
</
script
>
This diff is collapsed.
Click to expand it.
src/router/config.js
View file @
dc3caee0
...
...
@@ -3916,6 +3916,11 @@ export default {
name
:
'tripsManager'
,
component
:
resolve
=>
require
([
'@/components/dmc/manager/tripsManager'
],
resolve
),
},
{
path
:
'/swtBaoJiaConfig'
,
//SWT旅行社报价单项目配置
name
:
'swtBaoJiaConfig'
,
component
:
resolve
=>
require
([
'@/components/dmc/manager/swtBaoJiaConfig'
],
resolve
),
},
{
path
:
'/LeaderHander'
,
name
:
'LeaderHander'
,
...
...
This diff is collapsed.
Click to expand it.
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