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
0024992b
Commit
0024992b
authored
May 21, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面查询修改
parent
2d60e3eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
186 additions
and
35 deletions
+186
-35
dmcTotalTable.vue
src/components/dmc/manager/dmcTotalTable.vue
+186
-35
No files found.
src/components/dmc/manager/dmcTotalTable.vue
View file @
0024992b
<
template
>
<
template
>
<div>
<div>
<div
class=
"query-box"
style=
"border-bottom: none;"
>
<div
class=
"query-box
dmcMain
"
style=
"border-bottom: none;"
>
<ul>
<ul>
<li>
<li>
<span>
<span>
<em>
线路
</em>
<em>
线路
</em>
<el-select
v-model=
"msg.LineId"
filterable
:placeholder=
"$t('pub.pleaseSel')"
class=
"w150"
@
change=
"getLineTeam
List()"
>
<el-select
v-model=
"msg.LineId"
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getLinePlace
List()"
>
<el-option
label=
"不限"
:value=
'0'
></el-option>
<el-option
label=
"不限"
: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
queryCommonData.
LineList"
:label=
'item.LineName'
:value=
'item.LineID'
:key=
'item.LineID'
>
</el-option>
</el-option>
</el-select>
</el-select>
</span>
</span>
</li>
</li>
<li>
<span>
<em>
{{
$t
(
'Operation.Op_Country'
)
}}
/
{{
$t
(
'system.query_dest'
)
}}
</em>
<el-select
v-model=
"msg.PlaceID"
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getLineTeamList()"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"0"
></el-option>
<el-option
v-for=
"item in queryCommonData.PlaceList"
:label=
"item.PlaceName"
:value=
"item.PlaceID"
:key=
"item.LtID"
></el-option>
</el-select>
</span>
</li>
<li>
<li>
<span>
<span>
<em>
系列
</em>
<em>
系列
</em>
<el-select
v-model=
"msg.LineteamId"
filterable
:placeholder=
"$t('pub.pleaseSel')"
class=
"w150"
>
<el-select
v-model=
"msg.LineteamId"
filterable
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
label=
"不限"
value=
'-1
'
></el-option>
<el-option
label=
"不限"
: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
queryCommonData.
LineTeamList"
:label=
'item.LtName'
:value=
'item.LtID'
:key=
'item.LtID'
>
</el-option>
</el-option>
</el-select>
</el-select>
</span>
</span>
...
@@ -25,7 +36,7 @@
...
@@ -25,7 +36,7 @@
<li>
<li>
<span>
<span>
<em>
团号
</em>
<em>
团号
</em>
<el-input
v-model=
'msg.TCNUM'
class=
"w150"
></el-input>
<el-input
v-model=
'msg.TCNUM'
></el-input>
</span>
</span>
</li>
</li>
<li><span><em>
日期
</em>
<li><span><em>
日期
</em>
...
@@ -34,11 +45,35 @@
...
@@ -34,11 +45,35 @@
<el-date-picker
v-model=
'msg.EndDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
></el-date-picker>
<el-date-picker
v-model=
'msg.EndDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
></el-date-picker>
</span>
</span>
</li>
</li>
<li><span><em>
状态
</em></span>
<li><span>
<el-select
v-model=
'msg.PriceStatus'
class=
"w150"
>
<em>
状态
</em>
<el-option
label=
'正常'
value=
'0'
key=
'0'
></el-option>
<el-select
v-model=
'msg.PriceStatus'
>
<el-option
label=
'取消'
value=
'1'
key=
'1'
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"0"
></el-option>
<el-option
v-for=
"team in $tripUtils.TeamStatesList.TeamStates"
:label=
"team.Name"
:key=
"team.Id"
:value=
"team.Id"
></el-option>
</el-select>
</el-select>
</span>
</li>
<li>
<span>
<em>
航空公司
</em>
<el-select
v-model=
"msg.AirLineId"
filterable
:placeholder=
"$t('system.ph_buxian')"
>
<el-option
:label=
"$t('system.ph_buxian')"
:value=
"0"
>
</el-option>
<el-option
v-for=
"item in queryCommonData.AirlineList"
:key=
"item.AirLineId"
:label=
"item.AlName"
:value=
"item.AirLineId"
></el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>
OP
</em>
<el-select
v-model=
"msg.CreateBy"
filterable
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"0"
>
</el-option>
<el-option
v-for=
"item in queryCommonData.EmployeeList"
:label=
"item.EmName"
:value=
"item.EmployeeId"
:key=
"item.EmployeeId"
></el-option>
</el-select>
</span>
</li>
</li>
<li>
<li>
<span>
<span>
...
@@ -46,6 +81,16 @@
...
@@ -46,6 +81,16 @@
<el-input
v-model=
'msg.CombinationNum'
></el-input>
<el-input
v-model=
'msg.CombinationNum'
></el-input>
</span>
</span>
</li>
</li>
<li>
<span>
<em>
出团公司
</em>
<el-select
v-model=
"msg.OutBranchIds"
filterable
multiple
class=
"multiple_input"
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
v-for=
"item in queryCommonData.BranchList"
:label=
'item.BName'
:value=
'item.Id'
:key=
'item.Id'
>
</el-option>
</el-select>
</span>
</li>
<li>
<li>
<input
type=
"button"
class=
"normalBtn"
value=
"查询"
@
click=
"getList();resetPageIndex()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"查询"
@
click=
"getList();resetPageIndex()"
/>
</li>
</li>
...
@@ -302,14 +347,18 @@
...
@@ -302,14 +347,18 @@
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
10
,
pageSize
:
10
,
SelectType
:
6
,
SelectType
:
6
,
LineId
:
0
,
PriceStatus
:
0
,
LineteamId
:
"-1"
,
PriceStatus
:
"0"
,
//地接团号
//地接团号
CombinationNum
:
""
CombinationNum
:
""
,
//出团公司
OutBranchIds
:
[],
LineId
:
0
,
PlaceID
:
0
,
LineteamId
:
0
,
//航空公司
AirLineId
:
0
,
CreateBy
:
0
,
},
},
LineList
:
[],
LineTeamList
:
[],
thLengthTitle
:
[],
thLengthTitle
:
[],
list
:
[],
list
:
[],
colspanTotal
:
0
,
colspanTotal
:
0
,
...
@@ -317,6 +366,18 @@
...
@@ -317,6 +366,18 @@
NumObj
:
{
NumObj
:
{
DMCNum
:
""
,
DMCNum
:
""
,
TCIDs
:
""
TCIDs
:
""
},
queryCommonData
:{
//公司数据
BranchList
:
[],
//国家
PlaceList
:
[],
LineList
:
[],
LineTeamList
:
[],
AirlineList
:[],
EmployeeList
:[],
//团队状态全选
checkTCStateAll
:
false
,
}
}
}
}
},
},
...
@@ -348,27 +409,42 @@
...
@@ -348,27 +409,42 @@
getLineList
()
{
getLineList
()
{
this
.
apipost
(
"line_post_GetAllList"
,
{},
res
=>
{
this
.
apipost
(
"line_post_GetAllList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
LineList
=
res
.
data
.
data
;
this
.
queryCommonData
.
LineList
=
res
.
data
.
data
;
this
.
queryCommonData
.
PlaceList
=
[]
this
.
queryCommonData
.
LineTeamList
=
[]
}
else
{
}
else
{
this
.
$message
.
e
rror
(
res
.
data
.
message
);
this
.
E
rror
(
res
.
data
.
message
);
}
}
});
});
},
},
//获取目的地列表
getLinePlaceList
()
{
this
.
msg
.
PlaceID
=
0
;
this
.
msg
.
LineteamId
=
0
;
let
msg
=
{
lineID
:
this
.
msg
.
LineId
,
}
this
.
apipost
(
'team_post_GetLinePlace'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
queryCommonData
.
PlaceList
=
res
.
data
.
data
this
.
queryCommonData
.
LineTeamList
=
[]
}
})
},
//获取系列列表
//获取系列列表
getLineTeamList
(
lineId
)
{
getLineTeamList
()
{
this
.
LineTeamList
=
[];
this
.
msg
.
LineteamId
=
0
this
.
apipost
(
let
msg
=
{
"team_post_GetList"
,
{
lineID
:
this
.
msg
.
LineId
,
lineID
:
this
.
msg
.
LineId
,
placeID
:
this
.
msg
.
PlaceID
,
isTOOP
:
1
isTOOP
:
1
},
}
res
=>
{
this
.
apipost
(
'team_post_GetList'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
msg
.
LineteamId
=
"-1"
;
this
.
queryCommonData
.
LineTeamList
=
res
.
data
.
data
this
.
LineTeamList
=
res
.
data
.
data
;
}
}
}
);
})
},
},
goUrlRR
(
path
,
obj
)
{
goUrlRR
(
path
,
obj
)
{
let
routeData
=
this
.
$router
.
resolve
({
let
routeData
=
this
.
$router
.
resolve
({
...
@@ -513,6 +589,77 @@
...
@@ -513,6 +589,77 @@
}
}
},
err
=>
{})
},
err
=>
{})
},
},
//初始化公司
getCompanyList
()
{
let
userInfo
=
this
.
getLocalStorage
()
var
RB_Group_id
=
userInfo
.
RB_Group_id
let
msg
=
{
Status
:
0
,
is_show
:
0
,
RB_Group_Id
:
RB_Group_id
}
this
.
apipost
(
'admin_get_BranchGetList'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
queryCommonData
.
BranchList
=
res
.
data
.
data
;
}
},
err
=>
{}
)
},
//获取航空公司
getAirlineList
()
{
this
.
apipost
(
'airline_post_GetList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
queryCommonData
.
AirlineList
=
res
.
data
.
data
}
},
err
=>
{}
)
},
//根据当前员工所在部门获取该部门及子部门员工信息
getEmployeeList
()
{
let
userInfo
=
this
.
getLocalStorage
()
let
msg
=
{
GroupId
:
userInfo
.
RB_Group_id
,
BranchId
:
'-1'
,
DepartmentId
:
'-1'
,
PostId
:
'-1'
,
IsLeave
:
'0'
}
this
.
apipost
(
'admin_get_EmployeeGetList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
queryCommonData
.
EmployeeList
=
res
.
data
.
data
}
},
err
=>
{}
)
},
//团队状态全选
checkAllTeam
(
val
)
{
this
.
msg
.
TCState
=
[]
if
(
val
)
{
this
.
$tripUtils
.
TeamStatesList
.
TeamStates
.
forEach
(
x
=>
{
this
.
msg
.
TCState
.
push
(
x
.
Id
)
})
}
},
checkedTeamList
(
value
)
{
if
(
value
.
indexOf
(
this
.
$tripUtils
.
TeamStatesList
.
TeamStates
[
2
].
Id
)
>
-
1
)
{
this
.
queryCommonData
.
showPlatForm
=
true
}
else
{
this
.
queryCommonData
.
showPlatForm
=
false
}
let
checkedCount
=
value
.
length
this
.
queryCommonData
.
checkTCStateAll
=
checkedCount
===
this
.
$tripUtils
.
TeamStatesList
.
TeamStates
.
length
},
},
},
mounted
()
{
mounted
()
{
let
myDate
=
new
Date
();
let
myDate
=
new
Date
();
...
@@ -524,8 +671,10 @@
...
@@ -524,8 +671,10 @@
myDate
.
getDate
();
myDate
.
getDate
();
this
.
msg
.
StartDate
=
nowDate
;
this
.
msg
.
StartDate
=
nowDate
;
this
.
getLineList
();
this
.
getLineList
();
this
.
getList
()
this
.
getList
();
//this.getLineTeamList();
this
.
getCompanyList
();
this
.
getAirlineList
();
this
.
getEmployeeList
();
},
},
}
}
...
@@ -653,5 +802,7 @@
...
@@ -653,5 +802,7 @@
.dmcTotalTable_tripDetails
table
tr
._color_666
th
{
.dmcTotalTable_tripDetails
table
tr
._color_666
th
{
padding
:
9px
15px
;
padding
:
9px
15px
;
}
}
.dmcMain
.el-checkbox
+
.el-checkbox
{
margin-left
:
5px
;
}
</
style
>
</
style
>
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