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
b6ac74cc
Commit
b6ac74cc
authored
May 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改写判断
parent
ae169959
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
8 deletions
+51
-8
lineoffer.vue
src/components/TravelManager/customizedcar/lineoffer.vue
+51
-8
No files found.
src/components/TravelManager/customizedcar/lineoffer.vue
View file @
b6ac74cc
...
...
@@ -35,7 +35,7 @@
<div
:class=
"stockColor(item,subItem)"
:style=
"subItem.month===item.date&&msg2.DateList.indexOf(subItem.day)!==-1?'border-color: green':''"
@
click=
"calendarDayOn(item, subItem)"
>
<el-popover
placement=
"bottom"
:title=
"$t('ground.baojiaxinxi')"
width=
"6
0
0"
trigger=
"hover"
<el-popover
placement=
"bottom"
:title=
"$t('ground.baojiaxinxi')"
width=
"6
5
0"
trigger=
"hover"
v-if=
"subItem.data&&subItem.data.SubList && subItem.data.SubList[0]"
>
<template>
<div
style=
"text-align: right;"
>
...
...
@@ -43,15 +43,16 @@
@
click=
"goEdit('2', subItem.day,subItem.data.SubList)"
>
修改
</a>
</div>
<table
style=
"margin-left:3px;padding-top:2px;width:6
0
0px;"
>
<table
style=
"margin-left:3px;padding-top:2px;width:6
5
0px;"
>
<tr>
<th
width=
"100"
style=
"text-align:center"
>
出发时间
</th>
<th
width=
"100"
style=
"text-align:center"
>
价格
</th>
<th
width=
"50"
style=
"text-align:center"
>
订单数
</th>
<th
width=
"80"
style=
"text-align:center"
>
车名称
</th>
<th
width=
"140"
style=
"text-align:center"
>
车型号
</th>
<th
width=
"60"
style=
"text-align:center"
>
品牌
</th>
<th
width=
"130"
style=
"text-align:center"
>
乘坐人数
</th>
<th
width=
"100"
style=
"text-align:center"
>
乘坐人数
</th>
<th
width=
"100"
style=
"text-align:center"
>
订单数
</th>
</tr>
<tr
v-for=
"(childItem,childIndex) in subItem.data.SubList"
:key=
"childIndex"
>
<td
style=
"text-align:center"
>
...
...
@@ -60,9 +61,7 @@
<td
style=
"text-align:center;white-space:nowrap; "
>
{{
childItem
.
Price
}}
</td>
<td
style=
"text-align:center;white-space:nowrap; "
>
{{
childItem
.
EnrollSeat
}}
</td>
<td
style=
"text-align:center;white-space:nowrap; "
>
{{
childItem
.
CarName
}}
</td>
...
...
@@ -75,6 +74,9 @@
<td
style=
"text-align:center"
>
{{
childItem
.
GuestNum
}}
</td>
<td
style=
"text-align:center;white-space:nowrap; "
>
{{
childItem
.
EnrollSeat
}}
</td>
</tr>
</table>
...
...
@@ -704,7 +706,6 @@
}
}
}
console
.
log
(
this
.
dayList
[
key
])
if
(
key
===
this
.
calendar
.
num
)
{
this
.
$set
(
this
.
calendar
,
'data'
,
this
.
dayList
[
this
.
calendar
.
num
])
}
...
...
@@ -846,6 +847,27 @@
editSave
:
function
()
{
this
.
$refs
[
'hotelProductForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
let
isshow
=
false
this
.
msg
.
PlanList
.
map
(
x
=>
{
if
(
x
.
DepartureTime
==
''
){
this
.
Error
(
'请选择出发时间'
)
isshow
=
true
;
return
}
if
(
x
.
CarId
==
''
){
this
.
Error
(
'请选择使用车辆'
)
isshow
=
true
;
return
}
if
(
x
.
Price
==
''
){
this
.
Error
(
'请输入班次价格'
)
isshow
=
true
;
return
}
})
if
(
isshow
==
true
){
return
}
this
.
apipost
(
'car_post_SetLineProductPrice'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
this
.
$t
(
'ground.bianjichenggong'
))
...
...
@@ -888,6 +910,27 @@
edit2Save
:
function
()
{
this
.
$refs
[
'hotelProductForm2'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
let
isshow
=
false
this
.
msg2
.
PlanList
.
map
(
x
=>
{
if
(
x
.
DepartureTime
==
''
){
this
.
Error
(
'请选择出发时间'
)
isshow
=
true
;
return
}
if
(
x
.
CarId
==
''
){
this
.
Error
(
'请选择使用车辆'
)
isshow
=
true
;
return
}
if
(
x
.
Price
==
''
){
this
.
Error
(
'请输入班次价格'
)
isshow
=
true
;
return
}
})
if
(
isshow
==
true
){
return
}
this
.
apipost
(
'car_post_SetLineProductPrice'
,
this
.
msg2
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
this
.
$t
(
'ground.bianjichenggong'
))
...
...
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