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
1addad72
Commit
1addad72
authored
Oct 08, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同行程调整
parent
d3c8219a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
942 additions
and
195 deletions
+942
-195
DomesticTravelcontract.vue
src/components/DomesticTravelcontract.vue
+456
-14
TravelContractNew.vue
src/components/TravelContractNew.vue
+20
-158
onedayTripContract.vue
src/components/onedayTripContract.vue
+466
-23
No files found.
src/components/DomesticTravelcontract.vue
View file @
1addad72
This diff is collapsed.
Click to expand it.
src/components/TravelContractNew.vue
View file @
1addad72
...
@@ -2211,165 +2211,27 @@
...
@@ -2211,165 +2211,27 @@
tcid
:
nTCID
,
tcid
:
nTCID
,
isClick
:
1
,
//不算统计
isClick
:
1
,
//不算统计
};
};
if
(
id
!==
undefined
)
{
//根据ID 获取行程内容
//根据ID 获取行程内容
this
.
apipost
(
this
.
apipost
(
"b2b_get_GetB2BTravelInfoNoDes"
,
"b2b_get_GetB2BTravelInfoNoDes"
,
msg
,
msg
,
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
if
(
res
.
data
.
data
.
priceList
&&
res
.
data
.
data
.
priceList
&&
res
.
data
.
data
.
priceList
.
length
>
0
res
.
data
.
data
.
priceList
.
length
>
0
)
{
)
{
this
.
startDate
=
res
.
data
.
data
.
priceList
[
0
].
startDate
;
this
.
startDate
=
res
.
data
.
data
.
priceList
[
0
].
startDate
;
}
this
.
tripDays
=
res
.
data
.
data
.
dayList
;
this
.
trifficList
=
res
.
data
.
data
.
trafficList
;
this
.
tripList
=
res
.
data
.
data
.
dayList
;
this
.
LineName
=
res
.
data
.
data
.
lineName
;
this
.
init
();
}
},
(
err
)
=>
{}
);
}
else
{
var
dayList
=
[];
this
.
subConfig
.
DayList
.
forEach
((
objItem
,
objIndex
)
=>
{
var
dayItem
=
this
.
$tripUtils
.
daysArrayObj
();
dayItem
.
dayNum
=
objItem
.
dayNum
;
//每一天的数组
var
dayArray
=
[];
//子项遍历
objItem
.
dayArray
.
forEach
((
subItem
)
=>
{
switch
(
subItem
.
Type
)
{
//交通
case
"1"
:
var
subTraffiArray
=
[];
subItem
.
childItem
.
SubTraffic
.
forEach
((
subTrafficItem
)
=>
{
subTraffiArray
.
push
({
startCityName
:
subTrafficItem
.
StartCityName
,
arrivalType
:
subTrafficItem
.
ArrivalType
,
arrivalCityName
:
subTrafficItem
.
ArrivalCityName
,
});
});
var
trafficObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
description
:
subItem
.
childItem
.
Description
,
subTraffic
:
subTraffiArray
,
},
};
dayArray
.
push
(
trafficObj
);
break
;
//景点
case
"2"
:
var
imgArray
=
[];
subItem
.
childItem
.
ImaArray
.
forEach
((
imgItem
)
=>
{
imgArray
.
push
({
url
:
imgItem
.
Url
,
name
:
imgItem
.
Name
,
});
});
var
scenicObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
couponsName
:
subItem
.
childItem
.
CouponsName
,
couponsTicketName
:
subItem
.
childItem
.
CouponsTicketName
,
playTimeHour
:
subItem
.
childItem
.
PlayTimeHour
,
playTimeMinutes
:
subItem
.
childItem
.
PlayTimeMinutes
,
description
:
subItem
.
childItem
.
Description
,
imaArray
:
imgArray
,
},
};
dayArray
.
push
(
scenicObj
);
break
;
//酒店
case
"3"
:
var
imgArray
=
[];
subItem
.
childItem
.
ImaArray
.
forEach
((
imgItem
)
=>
{
imgArray
.
push
({
url
:
imgItem
.
Url
,
name
:
imgItem
.
Name
,
});
});
var
hotelObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
hotelName
:
subItem
.
childItem
.
HotelName
,
hotelProductName
:
subItem
.
childItem
.
HotelProductName
,
useDinnerType
:
subItem
.
childItem
.
UseDinnerType
,
description
:
subItem
.
childItem
.
Description
,
imaArray
:
imgArray
,
},
};
dayArray
.
push
(
hotelObj
);
break
;
//餐厅
case
"4"
:
var
imgArray
=
[];
subItem
.
childItem
.
ImaArray
.
forEach
((
imgItem
)
=>
{
imgArray
.
push
({
url
:
imgItem
.
Url
,
name
:
imgItem
.
Name
,
});
});
var
dinnerObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
dinnerName
:
subItem
.
childItem
.
DinnerName
,
mealName
:
subItem
.
childItem
.
MinnerName
,
useDinnerType
:
subItem
.
childItem
.
UseDinnerType
,
useTimeHour
:
subItem
.
childItem
.
UseTimeHour
,
useTimeMinutes
:
subItem
.
childItem
.
UseTimeMinutes
,
description
:
subItem
.
childItem
.
Description
,
descriptionText
:
subItem
.
childItem
.
Description
,
imaArray
:
imgArray
,
},
};
dayArray
.
push
(
dinnerObj
);
break
;
//自由活动
case
"5"
:
var
freedomObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
description
:
subItem
.
Description
,
descriptionText
:
subItem
.
Description
,
},
};
dayArray
.
push
(
freedomObj
);
break
;
//温馨提示
case
"6"
:
var
warmObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
description
:
subItem
.
Description
,
descriptionText
:
subItem
.
Description
,
},
};
dayArray
.
push
(
warmObj
);
break
;
//行程大点
case
"7"
:
var
titleObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
title
:
subItem
.
childItem
.
Title
,
description
:
subItem
.
childItem
.
Description
,
},
};
dayArray
.
push
(
titleObj
);
break
;
}
}
});
this
.
tripDays
=
res
.
data
.
data
.
dayList
;
dayItem
.
dayArray
=
dayArray
;
this
.
trifficList
=
res
.
data
.
data
.
trafficList
;
dayList
.
push
(
dayItem
);
this
.
tripList
=
res
.
data
.
data
.
dayList
;
});
this
.
LineName
=
res
.
data
.
data
.
lineName
;
this
.
tripList
=
dayList
;
this
.
init
();
this
.
init
();
}
}
},
(
err
)
=>
{}
);
},
},
init
()
{
init
()
{
this
.
tripList
.
forEach
((
x
,
j
)
=>
{
this
.
tripList
.
forEach
((
x
,
j
)
=>
{
...
...
src/components/onedayTripContract.vue
View file @
1addad72
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