Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Administrator
jd-vx-app
Commits
291791ae
Commit
291791ae
authored
Apr 28, 2022
by
fwz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绑定挪车码选择车辆
parent
87d8363f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
15 deletions
+41
-15
main.vue
pages/main.vue
+1
-0
moveCarDetail.vue
pagesB/pages/move-car/moveCarDetail.vue
+28
-1
scan.vue
pagesB/pages/move-car/scan.vue
+12
-14
No files found.
pages/main.vue
View file @
291791ae
...
@@ -60,6 +60,7 @@ export default {
...
@@ -60,6 +60,7 @@ export default {
uni
.
scanCode
({
uni
.
scanCode
({
success
:
function
(
res
)
{
success
:
function
(
res
)
{
let
path
=
res
.
path
let
path
=
res
.
path
console
.
log
(
path
+
"123"
)
if
(
path
)
{
if
(
path
)
{
let
xcxIndexPath
=
uni
.
getStorageSync
(
'xcxIndexPath'
)
let
xcxIndexPath
=
uni
.
getStorageSync
(
'xcxIndexPath'
)
console
.
info
(
xcxIndexPath
);
console
.
info
(
xcxIndexPath
);
...
...
pagesB/pages/move-car/moveCarDetail.vue
View file @
291791ae
...
@@ -21,6 +21,10 @@
...
@@ -21,6 +21,10 @@
<div
class=
"view__btn view__back"
@
click=
"goBack"
>
<div
class=
"view__btn view__back"
@
click=
"goBack"
>
返回
返回
</div>
</div>
<div>
<u-modal
:show=
"unbindShow"
:title=
"unbindTitle"
:content=
'unbindContent'
@
confirm=
"unbind"
@
cancel=
"cancelModal"
showCancelButton=
"true"
></u-modal>
</div>
</div>
</div>
</view>
</view>
</
template
>
</
template
>
...
@@ -31,6 +35,13 @@ export default {
...
@@ -31,6 +35,13 @@ export default {
return
{
return
{
items
:
[],
items
:
[],
id
:
''
,
id
:
''
,
//解除绑定对话框
unbindShow
:
false
,
//解除绑定对话框标题
unbindTitle
:
'解除绑定'
,
//解除绑定对话框内容
unbindContent
:
'确定解除绑定吗?'
,
//解除绑定的挪车牌
};
};
},
},
methods
:
{
methods
:
{
...
@@ -54,7 +65,23 @@ export default {
...
@@ -54,7 +65,23 @@ export default {
console
.
log
(
this
.
items
)
console
.
log
(
this
.
items
)
}
}
})
})
}
},
openUnbindModal
(){
this
.
unbindShow
=
true
},
unbind
(){
let
opts
=
{
url
:
'/app/moveCode/edit/'
+
this
.
id
,
method
:
'put'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
uni
.
showToast
({
title
:
'解绑成功'
,
icon
:
"success"
,
});
this
.
getMyMoveCodeList
()
}
})
this
.
unbindShow
=
false
},
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
id
=
option
.
id
this
.
id
=
option
.
id
...
...
pagesB/pages/move-car/scan.vue
View file @
291791ae
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div
class=
"contentMoveCar"
>
<div
class=
"contentMoveCar"
>
<div
class=
"car_item__one"
>
<div
class=
"car_item__one"
>
<div
class=
"item__content"
>
<div
class=
"item__content"
>
{{
moveCode
}}
{{
moveCode
}}
</div>
</div>
</div>
</div>
<div
class=
"car_item__three"
>
<div
class=
"car_item__three"
>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</div>
</div>
<div
class=
"car__num__self"
>
<div
class=
"car__num__self"
>
<div
class=
"car__num"
>
车牌号:
</div>
<div
class=
"car__num"
>
车牌号:
</div>
<car-number
class=
"car__input"
v-model=
"mo
veCode
Info.carNo"
></car-number>
<car-number
class=
"car__input"
v-model=
"mo
del1.car
Info.carNo"
></car-number>
</div>
</div>
<active-form
:formDate
.
sync=
"formData"
></active-form>
<active-form
:formDate
.
sync=
"formData"
></active-form>
</div>
</div>
...
@@ -169,25 +169,23 @@ export default {
...
@@ -169,25 +169,23 @@ export default {
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
this
.
model1
.
carInfo
=
res
.
data
.
data
this
.
model1
.
carInfo
=
res
.
data
.
data
this
.
formData
.
forEach
(
e
=>
{
if
(
e
.
label
==
'品牌:'
)
{
e
.
rules
.
value
=
this
.
model1
.
carInfo
.
brand
}
else
if
(
e
.
label
==
'车型:'
)
{
e
.
rules
.
value
=
this
.
model1
.
carInfo
.
carModel
}
})
console
.
log
(
this
.
formData
)
}
}
})
})
this
.
formData
.
forEach
(
e
=>
{
if
(
e
.
label
==
'车牌号'
)
{
e
.
rules
.
value
=
this
.
model1
.
carInfo
.
carNo
}
else
if
(
e
.
label
==
'品牌'
)
{
e
.
rules
.
value
=
this
.
model1
.
carInfo
.
brand
}
else
if
(
e
.
label
==
'车型'
)
{
e
.
rules
.
value
=
this
.
model1
.
carInfo
.
carModel
}
})
console
.
log
(
this
.
formData
)
}
}
},
},
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
moveCode
=
option
.
moveCode
this
.
moveCode
=
option
.
moveCode
},
},
onShow
:
function
()
{
onShow
:
function
()
{
this
.
getCarInfo
()
this
.
getCarInfo
()
//console.log( this.$store.state.selectedCar);
//console.log( this.$store.state.selectedCar);
}
}
...
...
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