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
56c7a5ee
Commit
56c7a5ee
authored
Apr 02, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
adf72038
2e0c1219
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
38 deletions
+107
-38
sale_pdf.css
src/assets/css/sale_pdf.css
+4
-3
SalesconfirmationOrder.vue
src/components/SalesconfirmationOrder.vue
+28
-12
trifficTrip.vue
...ts/newTravelmanager/oldTravelGroupControl/trifficTrip.vue
+38
-12
trifficTrip.vue
...omponents/newTravelmanager/travelLineTrip/trifficTrip.vue
+37
-11
No files found.
src/assets/css/sale_pdf.css
View file @
56c7a5ee
...
@@ -505,9 +505,10 @@
...
@@ -505,9 +505,10 @@
/*font-family: 'pingfangR'*/
/*font-family: 'pingfangR'*/
}
}
.detail-box
.timeline
.timeline-item
.left
{
.detail-box
.timeline
.timeline-item
.left
{
width
:
40px
;
/*
width: 40px;
margin-right
:
20px
;
margin-right:20px;
*/
text-align
:
center
;
text-align
:
center
;
position
:
absolute
;
}
}
.detail-box
.timeline
.timeline-item
.left
i
{
.detail-box
.timeline
.timeline-item
.left
i
{
font-size
:
20px
;
font-size
:
20px
;
...
@@ -643,7 +644,7 @@
...
@@ -643,7 +644,7 @@
}
}
.detail-box
.timeline
.timeline-item
.new_right
{
.detail-box
.timeline
.timeline-item
.new_right
{
width
:
89%
;
width
:
89%
;
margin-left
:
40
px
;
margin-left
:
65
px
;
}
}
.detail-box
.timeline
.timeline-item
.new_right
.Newimg-list
.item
img
{
.detail-box
.timeline
.timeline-item
.new_right
.Newimg-list
.item
img
{
width
:
100%
;
width
:
100%
;
...
...
src/components/SalesconfirmationOrder.vue
View file @
56c7a5ee
...
@@ -17,17 +17,19 @@
...
@@ -17,17 +17,19 @@
font-size
:
12px
;
font-size
:
12px
;
}
}
.timeline-item
.Arrayleft
{
.timeline-item
.Arrayleft
{
width
:
5
1px
;
width
:
7
1px
;
height
:
25px
;
height
:
25px
;
background-color
:
#fff
;
background-color
:
#fff
;
margin-right
:
20px
;
margin-right
:
20px
;
text-align
:
center
;
text-align
:
center
;
font-size
:
12px
;
font-size
:
12px
;
padding
:
5px
0
;
padding
:
5px
0
;
position
:
absolute
;
left
:
-16px
;
}
}
.timeline-item
.Arrayleft
i
{
.timeline-item
.Arrayleft
i
{
position
:
relative
;
position
:
relative
;
left
:
-4
px
;
left
:
1
px
;
top
:
-4px
;
top
:
-4px
;
}
}
</
style
>
</
style
>
...
@@ -293,12 +295,14 @@
...
@@ -293,12 +295,14 @@
<!-- <traffice :tripItem='son' v-if="son.type==1"></traffice> -->
<!-- <traffice :tripItem='son' v-if="son.type==1"></traffice> -->
<
template
v-if=
"son.type==1"
>
<
template
v-if=
"son.type==1"
>
<div
class=
"timeline-item"
>
<div
class=
"timeline-item"
>
<div
class=
"Arrayleft"
>
<template
v-for=
"(dd,Subindex) in son.childItem.subTraffic"
>
<!--
<i
class=
"iconfont icon-feiji"
></i>
-->
<div
class=
"Arrayleft"
v-if=
"dd.startTime!=''||dd.endTime!=''"
>
<span
v-if=
"son.type==1"
v-for=
"(dns,o) in son.childItem.subTraffic"
:key=
"o"
>
<!--
<i
class=
"iconfont icon-feiji"
></i>
-->
<span
v-if=
"dns.startTime!=''"
style=
"margin-right:20px;"
>
{{
dns
.
startTime
}}
</span><span
v-if=
"dns.endTime!=''"
>
-
{{
dns
.
endTime
}}
</span>
<span
v-if=
"son.type==1"
v-for=
"(dns,o) in son.childItem.subTraffic"
:key=
"o"
>
</span>
<span
v-if=
"dns.startTime!=''"
>
{{
getStartTime
(
dns
.
startTime
)
}}
</span><span
v-if=
"dns.endTime!=''"
>
-
{{
getStartTime
(
dns
.
endTime
)
}}
</span>
</div>
</span>
</div>
</
template
>
<div
class=
"new_right"
>
<div
class=
"new_right"
>
<span
class=
"time"
v-if=
"dataList.trafficList[0].airportPickUp==1"
>
接早
</span>
<span
class=
"time"
v-if=
"dataList.trafficList[0].airportPickUp==1"
>
接早
</span>
<span
class=
"time"
v-if=
"dataList.trafficList[0].airportPickUp==2"
>
送机
</span>
<span
class=
"time"
v-if=
"dataList.trafficList[0].airportPickUp==2"
>
送机
</span>
...
@@ -320,10 +324,10 @@
...
@@ -320,10 +324,10 @@
<
template
v-if=
"son.type==2"
>
<
template
v-if=
"son.type==2"
>
<div
class=
"timeline-item"
>
<div
class=
"timeline-item"
>
<div
class=
"Arrayleft"
>
<div
class=
"Arrayleft"
v-if=
"son.childItem.timeStr!=''"
>
<!--
<i
class=
"iconfont icon-zuji"
></i>
-->
<!--
<i
class=
"iconfont icon-zuji"
></i>
-->
<template
v-if=
"son.childItem.timeStr!=''"
>
<template
v-if=
"son.childItem.timeStr!=''"
>
{{
son
.
childItem
.
timeStr
}}
{{
getStartTime
(
son
.
childItem
.
timeStr
)
}}
</
template
>
</
template
>
</div>
</div>
<div
class=
"new_right"
>
<div
class=
"new_right"
>
...
@@ -366,10 +370,10 @@
...
@@ -366,10 +370,10 @@
</
template
>
</
template
>
<
template
v-if=
"son.type==4"
>
<
template
v-if=
"son.type==4"
>
<div
class=
"timeline-item"
>
<div
class=
"timeline-item"
>
<div
class=
"Arrayleft"
>
<div
class=
"Arrayleft"
v-if=
"son.childItem.timeStr!=''"
>
<!--
<i
class=
"iconfont icon-yongcan"
></i>
-->
<!--
<i
class=
"iconfont icon-yongcan"
></i>
-->
<span
v-if=
"son.childItem.timeStr!=''"
>
<span
v-if=
"son.childItem.timeStr!=''"
>
{{
son
.
childItem
.
timeStr
}}
{{
getStartTime
(
son
.
childItem
.
timeStr
)
}}
</span>
</span>
</div>
</div>
<div
class=
"new_right"
>
<div
class=
"new_right"
>
...
@@ -1399,6 +1403,18 @@
...
@@ -1399,6 +1403,18 @@
}
}
}
}
},
},
getStartTime
(
startTime
){
var
n
=
Number
(
startTime
);
if
(
!
isNaN
(
n
)
&&
startTime
.
indexOf
(
':'
)
==-
1
)
{
var
strSep
=
":"
;
var
str1
=
startTime
.
substring
(
0
,
2
);
var
str0
=
startTime
.
substring
(
2
,
startTime
.
length
);
var
strNew
=
str1
+
strSep
+
str0
;
return
strNew
;
}
else
{
return
startTime
.
replace
(
':'
,
':'
)
}
}
},
},
components
:
{
components
:
{
oneday
,
oneday
,
...
...
src/components/newTravelmanager/oldTravelGroupControl/trifficTrip.vue
View file @
56c7a5ee
...
@@ -27,15 +27,16 @@
...
@@ -27,15 +27,16 @@
<el-form-item
<el-form-item
:prop=
"'DayList.'+index+'.dayArray.'+subIndex+'.childItem.SubTraffic.'+subTrafficIndex+'.StartCityId'"
:prop=
"'DayList.'+index+'.dayArray.'+subIndex+'.childItem.SubTraffic.'+subTrafficIndex+'.StartCityId'"
:rules=
"trifficTripRules.StartCityId"
>
:rules=
"trifficTripRules.StartCityId"
>
<el-select
:disabled=
"isOpenGroup"
class=
'w120'
:placeholder=
"$t('pub.pleaseSel')"
filterable
<el-select
:disabled=
"isOpenGroup"
class=
'w120'
:placeholder=
"$t('pub.pleaseSel')"
filterable
remote
v-model=
"subTraffic.StartCityId"
@
visible-change=
"GetDepartList1($event)
"
v-model=
"subTraffic.StartCityId"
reserve-keyword
:remote-method=
"GetDepartList1
"
@
change=
"changeGetDepartList(subTraffic.StartCityId)"
>
@
change=
"changeGetDepartList(subTraffic.StartCityId)"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'DefaultSelectValue'
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'DefaultSelectValue'
></el-option>
<el-option
v-for=
"item in DepartList1"
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
<el-option
v-for=
"item in DepartList1"
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-input
v-model=
"subTraffic.StartTime"
placeholder=
"出发时间"
style=
"width:80px"
@
keyup
.
native=
"checkTime(subTraffic,'StartTime')"
></el-input>
<el-input
v-model=
"subTraffic.StartTime"
placeholder=
"出发时间"
style=
"width:80px"
@
keyup
.
native=
"checkTime(subTraffic,'StartTime')"
></el-input>
</span>
</span>
<!--显示交通类型-->
<!--显示交通类型-->
<span
class=
"TDArrivalType"
>
<span
class=
"TDArrivalType"
>
...
@@ -55,12 +56,13 @@
...
@@ -55,12 +56,13 @@
<i
v-if=
"subTraffic.ArrivalType==4"
class=
"iconfont icon-huoche huoche"
></i>
<i
v-if=
"subTraffic.ArrivalType==4"
class=
"iconfont icon-huoche huoche"
></i>
</span>
</span>
<span>
<span>
<el-input
v-model=
"subTraffic.EndTime"
placeholder=
"到达时间"
style=
"width:80px"
@
keyup
.
native=
"checkTime(subTraffic,'EndTime')"
></el-input>
<el-input
v-model=
"subTraffic.EndTime"
placeholder=
"到达时间"
style=
"width:80px"
@
keyup
.
native=
"checkTime(subTraffic,'EndTime')"
></el-input>
<el-form-item
<el-form-item
:prop=
"'DayList.'+index+'.dayArray.'+subIndex+'.childItem.SubTraffic.'+subTrafficIndex+'.ArrivalCityId'"
:prop=
"'DayList.'+index+'.dayArray.'+subIndex+'.childItem.SubTraffic.'+subTrafficIndex+'.ArrivalCityId'"
:rules=
"trifficTripRules.ArrivalCityId"
>
:rules=
"trifficTripRules.ArrivalCityId"
>
<el-select
:disabled=
"isOpenGroup"
class=
'w120'
:placeholder=
"$t('pub.pleaseSel')"
filterabl
e
<el-select
:disabled=
"isOpenGroup"
class=
'w120'
:placeholder=
"$t('pub.pleaseSel')"
filterable
remot
e
v-model=
"subTraffic.ArrivalCityId"
@
visible-change=
"GetArrivalList1($event)
"
v-model=
"subTraffic.ArrivalCityId"
reserve-keyword
:remote-method=
"GetArrivalList1
"
@
change=
"changeArrivalCity(subTraffic.ArrivalCityId)"
>
@
change=
"changeArrivalCity(subTraffic.ArrivalCityId)"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'DefaultSelectValue'
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'DefaultSelectValue'
></el-option>
<el-option
v-for=
"item in ArriveList1"
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
<el-option
v-for=
"item in ArriveList1"
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
...
@@ -275,15 +277,39 @@
...
@@ -275,15 +277,39 @@
},
},
methods
:
{
methods
:
{
//出发城市1
//出发城市1
GetDepartList1
(
event
)
{
GetDepartList1
(
query
)
{
if
(
event
)
{
this
.
DepartList1
=
[];
this
.
DepartList1
=
this
.
AllCityList
;
if
(
query
!=
""
)
{
this
.
apipost
(
"dict_get_Destination_GetListService"
,
{
Name
:
query
},
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DepartList1
=
res
.
data
.
data
;
}
},
err
=>
{}
);
}
}
},
},
//到达城市
//到达城市
GetArrivalList1
(
event
)
{
GetArrivalList1
(
query
)
{
if
(
event
)
{
this
.
ArriveList1
=
[];
this
.
ArriveList1
=
this
.
AllCityList
;
if
(
query
!=
""
)
{
this
.
apipost
(
"dict_get_Destination_GetListService"
,
{
Name
:
query
},
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ArriveList1
=
res
.
data
.
data
;
}
},
err
=>
{}
);
}
}
},
},
//到达城市改变
//到达城市改变
...
...
src/components/newTravelmanager/travelLineTrip/trifficTrip.vue
View file @
56c7a5ee
...
@@ -10,8 +10,9 @@
...
@@ -10,8 +10,9 @@
<span
v-for=
"(subTraffic,subTrafficIndex) in trafficObj.SubTraffic"
>
<span
v-for=
"(subTraffic,subTrafficIndex) in trafficObj.SubTraffic"
>
<span
v-if=
"subTrafficIndex==0"
>
<span
v-if=
"subTrafficIndex==0"
>
<el-form-item
:rules=
"trifficTripRules.StartCityId"
>
<el-form-item
:rules=
"trifficTripRules.StartCityId"
>
<el-select
:disabled=
"isOpenGroup"
class=
"w120"
:placeholder=
"$t('pub.pleaseSel')"
filterable
v-model=
"subTraffic.StartCityId"
<el-select
:disabled=
"isOpenGroup"
class=
"w120"
:placeholder=
"$t('pub.pleaseSel')"
filterable
remote
v-model=
"subTraffic.StartCityId"
@
visible-change=
"GetDepartList1($event)"
@
change=
"changeGetDepartList(subTraffic.StartCityId)"
>
reserve-keyword
:remote-method=
"GetDepartList1"
@
change=
"changeGetDepartList(subTraffic.StartCityId)"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"DefaultSelectValue"
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"DefaultSelectValue"
></el-option>
<el-option
v-for=
"item in DepartList1"
:label=
"item.Name"
:value=
"item.ID"
:key=
"item.ID+10000"
></el-option>
<el-option
v-for=
"item in DepartList1"
:label=
"item.Name"
:value=
"item.ID"
:key=
"item.ID+10000"
></el-option>
</el-select>
</el-select>
...
@@ -33,8 +34,9 @@
...
@@ -33,8 +34,9 @@
</span>
</span>
<span>
<span>
<el-form-item
:rules=
"trifficTripRules.ArrivalCityId"
>
<el-form-item
:rules=
"trifficTripRules.ArrivalCityId"
>
<el-select
:disabled=
"isOpenGroup"
class=
"w120"
:placeholder=
"$t('pub.pleaseSel')"
filterable
v-model=
"subTraffic.ArrivalCityId"
<el-select
:disabled=
"isOpenGroup"
class=
"w120"
:placeholder=
"$t('pub.pleaseSel')"
filterable
remote
v-model=
"subTraffic.ArrivalCityId"
@
visible-change=
"GetArrivalList1($event)"
@
change=
"changeArrivalCity(subTraffic.ArrivalCityId)"
>
reserve-keyword
:remote-method=
"GetArrivalList1"
@
change=
"changeArrivalCity(subTraffic.ArrivalCityId)"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"DefaultSelectValue"
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"DefaultSelectValue"
></el-option>
<el-option
v-for=
"item in ArriveList1"
:label=
"item.Name"
:value=
"item.ID"
:key=
"item.ID+1000"
></el-option>
<el-option
v-for=
"item in ArriveList1"
:label=
"item.Name"
:value=
"item.ID"
:key=
"item.ID+1000"
></el-option>
</el-select>
</el-select>
...
@@ -214,15 +216,39 @@
...
@@ -214,15 +216,39 @@
},
},
methods
:
{
methods
:
{
//出发城市1
//出发城市1
GetDepartList1
(
event
)
{
GetDepartList1
(
query
)
{
if
(
event
)
{
this
.
DepartList1
=
[];
this
.
DepartList1
=
this
.
AllCityList
;
if
(
query
!=
""
)
{
this
.
apipost
(
"dict_get_Destination_GetListService"
,
{
Name
:
query
},
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DepartList1
=
res
.
data
.
data
;
}
},
err
=>
{}
);
}
}
},
},
//到达城市
//到达城市
GetArrivalList1
(
event
)
{
GetArrivalList1
(
query
)
{
if
(
event
)
{
this
.
ArriveList1
=
[];
this
.
ArriveList1
=
this
.
AllCityList
;
if
(
query
!=
""
)
{
this
.
apipost
(
"dict_get_Destination_GetListService"
,
{
Name
:
query
},
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ArriveList1
=
res
.
data
.
data
;
}
},
err
=>
{}
);
}
}
},
},
//到达城市改变
//到达城市改变
...
...
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