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
e3cd3bd2
Commit
e3cd3bd2
authored
Dec 12, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
4bca83d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
26 deletions
+37
-26
commonTripList.vue
src/components/commonPage/commonTripList.vue
+17
-12
onedayTripContract.vue
src/components/onedayTripContract.vue
+20
-14
No files found.
src/components/commonPage/commonTripList.vue
View file @
e3cd3bd2
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
position
:
relative
;
position
:
relative
;
border-left
:
2px
solid
#ebebec
;
border-left
:
2px
solid
#ebebec
;
position
:
relative
;
position
:
relative
;
padding
:
0
0
2
0px
50px
;
padding
:
0
0
5
0px
50px
;
margin-left
:
10px
;
margin-left
:
10px
;
}
}
.Trip_Content
{
.Trip_Content
{
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
background-color
:
#f60
;
background-color
:
#f60
;
border-radius
:
100%
;
border-radius
:
100%
;
cursor
:
pointer
;
cursor
:
pointer
;
margin
:
4px
0
20px
128
px
;
margin
:
-2px
0
20px
130
px
;
}
}
</
style
>
</
style
>
...
@@ -91,11 +91,12 @@
...
@@ -91,11 +91,12 @@
<el-form-item
label=
"是否过境"
label-width=
'100px'
style=
"display:inline-block;"
>
<el-form-item
label=
"是否过境"
label-width=
'100px'
style=
"display:inline-block;"
>
<el-checkbox
v-model=
"item.IsOut"
:true-label=
"CheckedVaule"
:false-label=
"UnCheckedVaule"
></el-checkbox>
<el-checkbox
v-model=
"item.IsOut"
:true-label=
"CheckedVaule"
:false-label=
"UnCheckedVaule"
></el-checkbox>
</el-form-item>
</el-form-item>
<el-input
type=
"textarea"
resize=
"none"
rows=
"16"
cols=
"40"
v-model=
"item.TravelContent"
></el-input>
<quill-editor
v-model=
"item.TravelContent"
style=
"height:300px;"
></quill-editor>
<!--
<el-input
type=
"textarea"
resize=
"none"
rows=
"16"
cols=
"40"
v-model=
"item.TravelContent"
></el-input>
-->
<div
class=
"TC_circles"
></div>
<div
class=
"TC_circles"
></div>
</div>
</div>
<div
class=
"TripControl"
>
<div
class=
"TripControl"
>
<
i
class=
"iconfont icon-baocun1"
@
click=
"saveTripList(item,index)"
></i
>
<
!--
<i
class=
"iconfont icon-baocun1"
@
click=
"saveTripList(item,index)"
></i>
--
>
<i
class=
"iconfont icon-img_delete_small"
style=
"margin-left:10px;"
@
click=
"delTrip(index)"
></i>
<i
class=
"iconfont icon-img_delete_small"
style=
"margin-left:10px;"
@
click=
"delTrip(index)"
></i>
</div>
</div>
</div>
</div>
...
@@ -105,6 +106,7 @@
...
@@ -105,6 +106,7 @@
<
script
>
<
script
>
export
default
{
export
default
{
props
:[
"ContractTripList"
],
data
()
{
data
()
{
return
{
return
{
checked
:
false
,
checked
:
false
,
...
@@ -117,7 +119,9 @@ export default {
...
@@ -117,7 +119,9 @@ export default {
};
};
},
},
mounted
()
{
mounted
()
{
if
(
this
.
ContractTripList
&&
this
.
ContractTripList
.
length
>
0
){
this
.
TripListArr
=
this
.
ContractTripList
;
}
},
},
methods
:
{
methods
:
{
//添加行程
//添加行程
...
@@ -128,9 +132,9 @@ export default {
...
@@ -128,9 +132,9 @@ export default {
GoProvice
:
''
,
//前往国家地区
GoProvice
:
''
,
//前往国家地区
IsOut
:
0
,
// 是否过境(0-不过,1-过)
IsOut
:
0
,
// 是否过境(0-不过,1-过)
TravelContent
:
''
,
//行程内容
TravelContent
:
''
,
//行程内容
IsShow
:
0
,
}
}
this
.
TripListArr
.
push
(
obj
);
this
.
TripListArr
.
push
(
obj
);
this
.
getSavedData
();
},
},
//删除行程
//删除行程
delTrip
(
index
){
delTrip
(
index
){
...
@@ -138,15 +142,16 @@ export default {
...
@@ -138,15 +142,16 @@ export default {
this
.
getSavedData
();
this
.
getSavedData
();
},
},
//保存行程
//保存行程
saveTripList
(
item
,
index
){
//
saveTripList(item,index){
item
.
DayNum
=
index
+
1
;
//
item.DayNum=index+1;
item
.
IsShow
=
1
;
//
item.IsShow=1;
this
.
getSavedData
();
//
this.getSavedData();
},
//
},
//遍历已经保存数据
//遍历已经保存数据
getSavedData
(){
getSavedData
(){
let
sendArr
=
[];
let
sendArr
=
[];
this
.
TripListArr
.
forEach
(
x
=>
{
this
.
TripListArr
.
forEach
((
x
,
index
)
=>
{
x
.
DayNum
=
index
+
1
;
sendArr
.
push
(
x
);
sendArr
.
push
(
x
);
})
})
this
.
$emit
(
'tripData'
,
sendArr
);
this
.
$emit
(
'tripData'
,
sendArr
);
...
...
src/components/onedayTripContract.vue
View file @
e3cd3bd2
...
@@ -1040,10 +1040,10 @@
...
@@ -1040,10 +1040,10 @@
《行程单》用语须准确清晰,在表明服务标准用语中不应当出现“准×星级”、“豪华”、“仅供参考”、“以××为准”、“与××同级”等不确定用语。
《行程单》用语须准确清晰,在表明服务标准用语中不应当出现“准×星级”、“豪华”、“仅供参考”、“以××为准”、“与××同级”等不确定用语。
</div>
</div>
<div
v-if=
"CtObj.TripType==0"
>
<div
v-if=
"CtObj.TripType==0"
>
<quill-editor
v-model=
"
CtObj.travelContent
"
style=
"height:400px;"
></quill-editor>
<quill-editor
v-model=
"
TripInfo
"
style=
"height:400px;"
></quill-editor>
</div>
</div>
<div
v-if=
"CtObj.TripType==1"
>
<div
v-if=
"CtObj.TripType==1"
>
<commonTripList
@
tripData=
"tripData"
>
</commonTripList>
<commonTripList
@
tripData=
"tripData"
:ContractTripList=
"CtObj.ContractTripList"
>
</commonTripList>
</div>
</div>
</div>
</div>
<div
class=
"block mtop15"
id=
"anchor-4"
ref=
"anchor4"
>
<div
class=
"block mtop15"
id=
"anchor-4"
ref=
"anchor4"
>
...
@@ -1493,18 +1493,7 @@ export default {
...
@@ -1493,18 +1493,7 @@ export default {
"自愿购物活动补充协议"
"自愿购物活动补充协议"
],
],
ckedIndex
:
0
,
ckedIndex
:
0
,
//旅客信息Arr
TripInfo
:
''
,
touristList
:
[
{
CGuestName
:
""
,
CGuestSex
:
"男"
,
CGuestCertificateType
:
"身份证"
,
CGuestCertificateNum
:
""
,
CGuestTel
:
""
,
CGuestHealth
:
"健康"
,
IsShow
:
1
}
],
};
};
},
},
components
:
{
components
:
{
...
@@ -1518,6 +1507,19 @@ export default {
...
@@ -1518,6 +1507,19 @@ export default {
},
},
//提交数据
//提交数据
SaveMsg
()
{
SaveMsg
()
{
if
(
this
.
CtObj
.
TripType
==
0
){
this
.
CtObj
.
ContractTripList
=
[];
let
obj
=
{
DayNum
:
1
,
Go
:
''
,
GoProvice
:
''
,
IsOut
:
1
,
TravelContent
:
''
,
TripType
:
0
}
obj
.
TravelContent
=
this
.
TripInfo
;
this
.
CtObj
.
ContractTripList
.
push
(
obj
);
}
this
.
apipost
(
this
.
apipost
(
"travelcontract_post_SetTravelContractService"
,
"travelcontract_post_SetTravelContractService"
,
this
.
CtObj
,
this
.
CtObj
,
...
@@ -1623,6 +1625,7 @@ export default {
...
@@ -1623,6 +1625,7 @@ export default {
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
tempObj
=
res
.
data
.
data
;
var
tempObj
=
res
.
data
.
data
;
console
.
log
(
tempObj
,
'tempObj'
);
this
.
CtObj
.
ID
=
tempObj
.
ID
;
this
.
CtObj
.
ID
=
tempObj
.
ID
;
this
.
CtObj
.
CType
=
tempObj
.
CType
;
this
.
CtObj
.
CType
=
tempObj
.
CType
;
this
.
CtObj
.
T_ContractNum
=
tempObj
.
T_ContractNum
;
this
.
CtObj
.
T_ContractNum
=
tempObj
.
T_ContractNum
;
...
@@ -1770,6 +1773,9 @@ export default {
...
@@ -1770,6 +1773,9 @@ export default {
}
else
{
}
else
{
this
.
CtObj
.
ContractTripList
=
[];
this
.
CtObj
.
ContractTripList
=
[];
}
}
if
(
this
.
CtObj
.
TripType
==
0
){
this
.
TripInfo
=
this
.
CtObj
.
ContractTripList
[
0
].
TravelContent
;
}
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
...
...
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