Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigwood
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
罗超
bigwood
Commits
ae0fdd1e
Commit
ae0fdd1e
authored
Jan 18, 2023
by
youjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/bigwood
parents
1b3ee1ab
d057850d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
67 deletions
+73
-67
addEditVehicle.vue
src/pages/vehicle/addEditVehicle.vue
+69
-64
teamOrder.vue
src/pages/vehicle/teamOrder.vue
+4
-3
No files found.
src/pages/vehicle/addEditVehicle.vue
View file @
ae0fdd1e
...
...
@@ -42,67 +42,71 @@
:label=
"$t('v102.vehicle.title10')"
/>
<q-input
class=
"q-mr-md"
style=
''
v-model=
"search.TeamName"
dense
standout
:label=
"$t('v102.vehicle.title11')"
/>
<div
class=
"q-my-md"
>
<div
class=
"q-my-md"
style=
"margin-top: 0px;"
>
<q-select
style=
"width: 170px;"
v-model=
"search.BusType"
dense
:options=
"vehicletop"
emit-value
option-label=
"Name"
option-value=
"Id"
map-options
clearable
:label=
"$t('v102.vehicle.title13')"
standout
/>
option-label=
"Name"
option-value=
"Id"
map-options
clearable
:label=
"$t('v102.vehicle.title13')"
standout
/>
</div>
</div>
<!-- 表格 -->
<table
width=
"100%"
border=
"1"
style=
"text-align:left;border-collapse:collapse;table-layout:fixed;word-break:break-all;border: 1px solid rgba(0, 0, 0, 0.12);
margin: auto;"
>
<tr>
<th
width=
"15%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th1'
)
}}
</th>
<th
width=
"10%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th2'
)
}}
</th>
<th
width=
"30%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th3'
)
}}
</th>
<th
width=
"45%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th4'
)
}}
</th>
</tr>
<template
v-for=
"(item, i) in search.details"
:key=
"i"
>
<div
style=
"max-height:600px;overflow: auto;"
v-if=
"search.details && search.details.length > 0"
>
<table
width=
"100%"
height=
'100%'
border=
"1"
style=
"text-align:left;border-collapse:collapse;table-layout:fixed;word-break:break-all;border: 1px solid rgba(0, 0, 0, 0.12);
margin: auto;"
>
<tr>
<td>
{{
item
.
UseDate
}}
</td>
<td>
DAY
{{
item
.
DayNum
}}
</td>
<td>
<div
class=
"q-my-md"
>
<q-select
style=
"width: 180px;"
v-model=
"item.UseType"
dense
:options=
"listvehicle"
emit-value
option-label=
"Name"
option-value=
"Id"
map-options
clearable
:label=
"$t('v102.vehicle.tatle.th3')"
standout
/>
</div>
<!-- 用车时间 -->
<div
v-if=
"item.UseType == 3 || item.UseType == 4"
>
<q-input
dense
standout
v-model=
"item.UseTime"
mask=
"time"
:label=
"$t('v102.vehicle.title14')"
style=
"width:180px;"
>
<template
v-slot:append
>
<q-icon
name=
"access_time"
class=
"cursor-pointer"
>
<q-popup-proxy
transition-show=
"scale"
transition-hide=
"scale"
>
<q-time
v-model=
"item.UseTime"
>
<div
class=
"row items-center justify-end"
>
<q-btn
v-close-popup
:label=
"$t('v102.vehicle.add5')"
color=
"primary"
flat
/>
</div>
</q-time>
</q-popup-proxy>
</q-icon>
</
template
>
</q-input>
</div>
</td>
<td>
<div>
<q-input
class=
"q-mr-md"
style=
''
v-model=
"item.TripInfo"
dense
standout
:label=
"$t('v102.vehicle.tatle.th4')"
/>
</div>
</td>
<th
width=
"15%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th1'
)
}}
</th>
<th
width=
"10%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th2'
)
}}
</th>
<th
width=
"30%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th3'
)
}}
</th>
<th
width=
"45%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th4'
)
}}
</th>
</tr>
</template>
</table>
<template
v-for=
"(item, i) in search.details"
:key=
"i"
>
<tr>
<td>
{{
item
.
UseDate
}}
</td>
<td>
DAY
{{
item
.
DayNum
}}
</td>
<td>
<div
class=
"q-my-md"
>
<q-select
style=
"width: 180px;"
v-model=
"item.UseType"
dense
:options=
"listvehicle"
emit-value
option-label=
"Name"
option-value=
"Id"
map-options
clearable
:label=
"$t('v102.vehicle.tatle.th3')"
standout
/>
</div>
<!-- 用车时间 -->
<div
v-if=
"item.UseType == 3 || item.UseType == 4"
>
<q-input
dense
standout
v-model=
"item.UseTime"
mask=
"time"
:label=
"$t('v102.vehicle.title14')"
style=
"width:180px;"
>
<template
v-slot:append
>
<q-icon
name=
"access_time"
class=
"cursor-pointer"
>
<q-popup-proxy
transition-show=
"scale"
transition-hide=
"scale"
>
<q-time
v-model=
"item.UseTime"
>
<div
class=
"row items-center justify-end"
>
<q-btn
v-close-popup
:label=
"$t('v102.vehicle.add5')"
color=
"primary"
flat
/>
</div>
</q-time>
</q-popup-proxy>
</q-icon>
</
template
>
</q-input>
</div>
</td>
<td>
<div>
<q-input
class=
"q-mr-md"
style=
''
v-model=
"item.TripInfo"
dense
standout
:label=
"$t('v102.vehicle.tatle.th4')"
/>
</div>
</td>
</tr>
</template>
</table>
</div>
<!-- 表格 -->
</q-card-section>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
flat
dense
color=
"dark"
:label=
"$t('v102.vehicle.close')"
class=
"q-mr-sm"
@
click=
"down"
v-close-popup
/>
<q-btn
flat
dense
color=
"dark"
:label=
"$t('v102.vehicle.close')"
class=
"q-mr-sm"
@
click=
"down"
v-close-popup
/>
<q-btn
unelevated
dense
color=
"accent q-pa-lg"
:label=
"$t('v102.to.m.s')"
@
click=
"join"
/>
</q-card-actions>
</q-card>
...
...
@@ -121,13 +125,13 @@ import message from '../../utils/message'
import
{
currentRouter
}
from
'src/router'
import
{
useRouter
}
from
'vue-router'
export
default
defineComponent
({
props
:
{
Id
:
{
type
:
Number
,
default
:
0
,
require
:
true
}
},
//
props: {
//
Id: {
//
type: Number,
//
default: 0,
//
require: true
//
}
//
},
setup
(
props
,
context
)
{
const
$router
=
useRouter
()
const
qDateProxy
=
ref
(
null
)
as
any
...
...
@@ -168,23 +172,23 @@ export default defineComponent({
scrollStyle
:
{}
as
any
,
pages
:
''
})
if
(
currentRouter
.
currentRoute
&&
currentRouter
.
currentRoute
.
value
.
params
.
Id
)
{
if
(
currentRouter
.
currentRoute
&&
currentRouter
.
currentRoute
.
value
.
params
.
Id
)
{
data
.
search
.
Id
=
currentRouter
.
currentRoute
.
value
.
params
.
Id
}
data
.
pages
=
currentRouter
.
currentRoute
.
value
.
params
.
pages
// 获取车型下拉
onMounted
(()
=>
{
methods
.
vehicleinit
()
methods
.
vehicleList
()
if
(
props
.
Id
&&
props
.
Id
>
0
)
{
if
(
data
.
search
.
Id
&&
data
.
search
.
Id
>
0
)
{
methods
.
details
()
}
})
const
methods
=
{
// 获取修改详情
details
()
{
HotelService
.
VehicleDetails
(
props
.
Id
)
HotelService
.
VehicleDetails
(
data
.
search
.
Id
)
.
then
(
r
=>
{
if
(
r
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
data
.
search
.
UseCompName
=
r
.
data
.
data
.
UseCompName
...
...
@@ -314,7 +318,7 @@ export default defineComponent({
},
// 关闭
down
()
{
$router
.
push
({
path
:
`/vehicle/order/0`
})
$router
.
push
({
path
:
`/vehicle/order/0`
})
},
// 确定
join
()
{
...
...
@@ -322,6 +326,7 @@ export default defineComponent({
.
then
(
r
=>
{
if
(
r
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
context
.
emit
(
'refresh'
)
$router
.
push
({
path
:
'/vehicle/order'
})
}
else
{
message
.
errorMsg
(
r
.
data
.
message
)
}
...
...
src/pages/vehicle/teamOrder.vue
View file @
ae0fdd1e
...
...
@@ -37,7 +37,8 @@
:label=
"$t('v102.vehicle.list.s5')"
/>
</span>
<span
@
click=
"cancel(props.row.Id)"
>
<q-btn
class=
"col q-mr-md fz12"
color=
"grey-6"
unelevated
:label=
"$t('v102.vehicle.add3')"
/>
<q-btn
class=
"col q-mr-md fz12"
color=
"grey-6"
unelevated
:label=
"$t('v102.vehicle.add3')"
/>
</span>
<!--申请报价-->
<span
v-if=
"props.row.OfferState == 1 && props.row.Status == 0"
...
...
@@ -140,7 +141,7 @@ export default defineComponent({
const
{
t
}
=
useI18n
()
const
$q
=
useQuasar
()
const
$router
=
useRouter
()
const
data
=
reactive
({
showdetails
:
false
,
cancelshow
:
false
,
...
...
@@ -286,7 +287,7 @@ export default defineComponent({
},
mask
(
val
:
any
)
{
data
.
Id
=
val
$router
.
push
({
path
:
`/vehicle/addEditVehicle/0
${
data
.
Id
?
'/'
+
data
.
Id
:
''
}
`
})
$router
.
push
({
path
:
`/vehicle/addEditVehicle/0
${
data
.
Id
?
'/'
+
data
.
Id
:
''
}
`
})
// data.showPriceList = true
}
}
...
...
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