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
87025d5f
Commit
87025d5f
authored
Mar 26, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆修改
parent
03c13027
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
30 deletions
+47
-30
BusInfo.vue
src/components/busManagement/BusInfo.vue
+47
-30
No files found.
src/components/busManagement/BusInfo.vue
View file @
87025d5f
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
}
}
.busInfo
.carPlanOne
span
{
.busInfo
.carPlanOne
span
{
display
:
inline-block
;
display
:
inline-block
;
margin-right
:
3px
;
margin-right
:
3px
;
}
}
...
@@ -105,21 +105,24 @@
...
@@ -105,21 +105,24 @@
.BusTyleFirst
.w150
{
.BusTyleFirst
.w150
{
margin-right
:
22px
;
margin-right
:
22px
;
}
}
.busAddbtn
{
display
:
inline-block
;
.busAddbtn
{
width
:
30px
;
display
:
inline-block
;
height
:
30px
;
width
:
30px
;
border
:
1px
solid
#d1d1d1
;
height
:
30px
;
border
:
1px
solid
#d1d1d1
;
text-align
:
center
;
text-align
:
center
;
line-height
:
30px
;
line-height
:
30px
;
border-radius
:
50%
;
border-radius
:
50%
;
cursor
:
pointer
;
cursor
:
pointer
;
position
:
relative
;
position
:
relative
;
top
:
2px
;
top
:
2px
;
}
}
.busAddbtn
:hover
i
{
color
:
#e95252
;
.busAddbtn
:hover
i
{
color
:
#e95252
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"flexOne busInfo"
>
<div
class=
"flexOne busInfo"
>
...
@@ -186,25 +189,27 @@
...
@@ -186,25 +189,27 @@
</div>
</div>
</td>
</td>
<td
class=
"carPlanOne"
:class=
"
{'otherSpan':index!=0
&&
index!=PlanTableData.length-1}">
<td
class=
"carPlanOne"
:class=
"
{'otherSpan':index!=0
&&
index!=PlanTableData.length-1}">
<div
class=
"w320"
>
<div
class=
"w320"
v-for=
"(subItem,subIndex) in item.DetailList"
>
<!--接机送机-->
<em>
<em>
<el-select
class=
"w150"
placeholder=
"请选择"
v-model=
"item.AirportPickUp"
:disabled=
"forbidInput"
>
<!--接机送机-->
<el-select
class=
"w150"
placeholder=
"请选择"
v-model=
"subItem.AirportPickUp"
:disabled=
"forbidInput"
>
<el-option
:key=
"0"
:value=
"0"
label=
"请选择"
></el-option>
<el-option
:key=
"0"
:value=
"0"
label=
"请选择"
></el-option>
<el-option
v-for=
"item in BusAirportPickUpList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
<el-option
v-for=
"childitem in BusAirportPickUpList"
:key=
"childitem.Id"
:label=
"childitem.Name"
:value=
"childitem.Id"
>
</el-option>
</el-option>
</el-select>
</el-select>
</em>
</em>
<!--用车类型-->
<!--用车类型-->
<span
v-for=
"
sub
Item in UseTypeArray"
>
<span
v-for=
"
child
Item in UseTypeArray"
>
<span
v-if=
"
sub
Item.Id==1"
class=
"subName"
<span
v-if=
"
child
Item.Id==1"
class=
"subName"
:class=
"
{'spanCked':
item.UseType==sub
Item.Id,'disSpan':forbidInput==true}"
:class=
"
{'spanCked':
subItem.UseType==child
Item.Id,'disSpan':forbidInput==true}"
@click="UseTypeClick(
subItem.Id,index);getBusPrice(item)">
{{
sub
Item
.
Name
}}
</span>
@click="UseTypeClick(
childItem.Id,index,subIndex);getBusPrice(subItem)">
{{
child
Item
.
Name
}}
</span>
</span>
</span>
<span
class=
"busAddbtn"
@
click=
""
>
<a
v-if=
"subIndex>0"
@
click=
"DeleteSubItem(item,subIndex)"
style=
"color:blue;cursor:pointer"
>
删除
</a>
</div>
<span
class=
"busAddbtn"
@
click=
"AddSubItem(item)"
>
<i
class=
"iconfont icon-img_haha"
></i>
<i
class=
"iconfont icon-img_haha"
></i>
</span>
</span>
</div>
</td>
</td>
<td>
<td>
<el-input
class=
'w170'
type=
"text"
v-model=
"item.BookGroup"
></el-input>
<el-input
class=
'w170'
type=
"text"
v-model=
"item.BookGroup"
></el-input>
...
@@ -501,6 +506,18 @@
...
@@ -501,6 +506,18 @@
obj
.
CostPrice
=
money
obj
.
CostPrice
=
money
}
}
},
},
AddSubItem
(
item
)
{
item
.
DetailList
.
push
({
DetailId
:
0
,
UseType
:
0
,
BusPlanId
:
0
,
AirportPickUp
:
0
});
},
DeleteSubItem
(
item
,
index
)
{
item
.
DetailList
.
splice
(
index
,
1
);
},
/*获取车辆类型列表*/
/*获取车辆类型列表*/
getBusTypeList
()
{
getBusTypeList
()
{
this
.
apipost
(
this
.
apipost
(
...
@@ -545,7 +562,6 @@
...
@@ -545,7 +562,6 @@
x
.
BookGroup
=
this
.
$route
.
query
.
NewCombinationNum
;
x
.
BookGroup
=
this
.
$route
.
query
.
NewCombinationNum
;
}
}
})
})
console
.
log
(
this
.
PlanTableData
,
'datalist'
);
}
}
},
},
null
null
...
@@ -602,17 +618,17 @@
...
@@ -602,17 +618,17 @@
},
err
=>
{})
},
err
=>
{})
},
},
//用车类型点击事件
//用车类型点击事件
UseTypeClick
(
value
,
index
)
{
UseTypeClick
(
value
,
index
,
subIndex
)
{
if
(
this
.
forbidInput
==
true
)
{
if
(
this
.
forbidInput
==
true
)
{
return
;
return
;
}
}
if
(
if
(
this
.
PlanTableData
[
index
].
UseType
==
"0"
||
this
.
PlanTableData
[
index
].
DetailList
[
subIndex
].
UseType
==
"0"
||
this
.
PlanTableData
[
i
ndex
].
UseType
!=
value
this
.
PlanTableData
[
index
].
DetailList
[
subI
ndex
].
UseType
!=
value
)
{
)
{
this
.
PlanTableData
[
index
].
UseType
=
value
;
this
.
PlanTableData
[
index
].
DetailList
[
subIndex
].
UseType
=
value
;
}
else
if
(
this
.
PlanTableData
[
index
].
UseType
==
value
)
{
}
else
if
(
this
.
PlanTableData
[
index
].
DetailList
[
subIndex
].
UseType
==
value
)
{
this
.
PlanTableData
[
index
].
UseType
=
"0"
;
this
.
PlanTableData
[
index
].
DetailList
[
subIndex
].
UseType
=
"0"
;
}
}
},
},
//司机住宿点击事件
//司机住宿点击事件
...
@@ -773,4 +789,5 @@
...
@@ -773,4 +789,5 @@
this
.
getSupplierList
();
this
.
getSupplierList
();
}
}
};
};
</
script
>
</
script
>
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