Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NewTruckTerminalSyetem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
SQL_Mou
NewTruckTerminalSyetem
Commits
c7badfc7
Commit
c7badfc7
authored
Sep 08, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
64cde454
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
90 deletions
+60
-90
index.vue
...ews/MLargeScreen/components/startOrderReceiving/index.vue
+60
-90
No files found.
src/views/MLargeScreen/components/startOrderReceiving/index.vue
View file @
c7badfc7
...
...
@@ -77,6 +77,7 @@ export default {
this
.
btnShow2
=
false
;
this
.
carDestination
=
res_1
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res_1
.
data
.
content
[
0
].
id
;
this
.
equipmentName
=
resSon1
.
data
.
content
[
0
].
equipmentName
;
//启动语音
this
.
startOrderSrcUrl
=
newOrder
;
let
au
=
document
.
getElementById
(
'
audio1
'
);
...
...
@@ -88,26 +89,7 @@ export default {
this
.
btnShow2
=
true
;
this
.
carDestination
=
res_1
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res_1
.
data
.
content
[
0
].
id
;
//查询指定目的地围栏以及判断该车是否在围栏里
httpGet
(
screenMapSetUpQuery
,{
size
:
9999
,
name
:
this
.
carDestination
}).
then
((
resSon2
)
=>
{
if
(
resSon2
){
let
weilanArr1
=
[];
resSon2
[
this
.
carDestination
].
forEach
((
item
,
index
)
=>
{
let
weilanobj1
=
{};
weilanobj1
.
lat
=
item
.
lat
;
weilanobj1
.
lng
=
item
.
lon
;
weilanArr1
.
push
(
weilanobj1
);
})
httpGet
(
carRealTimeLocationQuery2
,{
name
:
resSon1
.
data
.
content
[
0
].
equipmentName
}).
then
((
resSon3
)
=>
{
if
(
resSon3
.
code
==
200
){
let
resSon3Obj1
=
{};
resSon3Obj1
.
lat
=
resSon3
.
data
.
location
.
y
;
resSon3Obj1
.
lng
=
resSon3
.
data
.
location
.
x
;
this
.
xiecheBtnAble
=
this
.
isPointInPolygon
(
resSon3Obj1
,
weilanArr1
);
}
});
}
});
this
.
equipmentName
=
resSon1
.
data
.
content
[
0
].
equipmentName
;
}
}
//获取车辆坐标计算距离并返回给后台
...
...
@@ -150,31 +132,12 @@ export default {
this
.
btnShow2
=
false
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
this
.
equipmentName
=
resSon1
.
data
.
content
[
0
].
equipmentName
;
//启动语音
this
.
startOrderSrcUrl
=
newOrder
;
let
au
=
document
.
getElementById
(
'
audio1
'
);
au
.
currentTime
=
0
;
au
.
play
();
//查询指定目的地围栏以及判断该车是否在围栏里
httpGet
(
screenMapSetUpQuery
,{
size
:
9999
,
name
:
this
.
carDestination
}).
then
((
resSon2
)
=>
{
if
(
resSon2
){
let
weilanArr1
=
[];
resSon2
[
this
.
carDestination
].
forEach
((
item
,
index
)
=>
{
let
weilanobj1
=
{};
weilanobj1
.
lat
=
item
.
lat
;
weilanobj1
.
lng
=
item
.
lon
;
weilanArr1
.
push
(
weilanobj1
);
})
httpGet
(
carRealTimeLocationQuery2
,{
name
:
resSon1
.
data
.
content
[
0
].
equipmentName
}).
then
((
resSon3
)
=>
{
if
(
resSon3
.
code
==
200
){
let
resSon3Obj1
=
{};
resSon3Obj1
.
lat
=
resSon3
.
data
.
location
.
y
;
resSon3Obj1
.
lng
=
resSon3
.
data
.
location
.
x
;
this
.
xiecheBtnAble
=
this
.
isPointInPolygon
(
resSon3Obj1
,
weilanArr1
);
}
});
}
});
}
//获取车辆坐标计算距离并返回给后台
httpGet
(
carRealTimeLocationQuery2
,{
name
:
resSon1
.
data
.
content
[
0
].
equipmentName
}).
then
((
res2
)
=>
{
...
...
@@ -222,31 +185,12 @@ export default {
this
.
btnShow2
=
false
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
this
.
equipmentName
=
resSon1
.
data
.
content
[
0
].
equipmentName
;
//启动语音
this
.
startOrderSrcUrl
=
newOrder
;
let
au
=
document
.
getElementById
(
'
audio1
'
);
au
.
currentTime
=
0
;
au
.
play
();
//查询指定目的地围栏以及判断该车是否在围栏里
httpGet
(
screenMapSetUpQuery
,{
size
:
9999
,
name
:
this
.
carDestination
}).
then
((
resSon2
)
=>
{
if
(
resSon2
){
let
weilanArr1
=
[];
resSon2
[
this
.
carDestination
].
forEach
((
item
,
index
)
=>
{
let
weilanobj1
=
{};
weilanobj1
.
lat
=
item
.
lat
;
weilanobj1
.
lng
=
item
.
lon
;
weilanArr1
.
push
(
weilanobj1
);
})
httpGet
(
carRealTimeLocationQuery2
,{
name
:
resSon1
.
data
.
content
[
0
].
equipmentName
}).
then
((
resSon3
)
=>
{
if
(
resSon3
.
code
==
200
){
let
resSon3Obj1
=
{};
resSon3Obj1
.
lat
=
resSon3
.
data
.
location
.
y
;
resSon3Obj1
.
lng
=
resSon3
.
data
.
location
.
x
;
this
.
xiecheBtnAble
=
this
.
isPointInPolygon
(
resSon3Obj1
,
weilanArr1
);
}
});
}
});
}
//获取车辆坐标计算距离并返回给后台
httpGet
(
carRealTimeLocationQuery2
,{
name
:
resSon1
.
data
.
content
[
0
].
equipmentName
}).
then
((
res2
)
=>
{
...
...
@@ -298,12 +242,14 @@ export default {
this
.
btnShow2
=
false
;
this
.
carDestination
=
res_1
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res_1
.
data
.
content
[
0
].
id
;
this
.
equipmentName
=
resSon1
.
data
.
content
[
0
].
equipmentName
;
}
else
{
this
.
showDe
=
true
;
this
.
btnShow1
=
false
;
this
.
btnShow2
=
true
;
this
.
carDestination
=
res_1
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res_1
.
data
.
content
[
0
].
id
;
this
.
equipmentName
=
resSon1
.
data
.
content
[
0
].
equipmentName
;
}
}
//获取车辆坐标计算距离并返回给后台
...
...
@@ -346,6 +292,7 @@ export default {
this
.
btnShow2
=
false
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
this
.
equipmentName
=
resSon1
.
data
.
content
[
0
].
equipmentName
;
}
//获取车辆坐标计算距离并返回给后台
httpGet
(
carRealTimeLocationQuery2
,{
name
:
resSon1
.
data
.
content
[
0
].
equipmentName
}).
then
((
res2
)
=>
{
...
...
@@ -393,6 +340,7 @@ export default {
this
.
btnShow2
=
false
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
this
.
equipmentName
=
resSon1
.
data
.
content
[
0
].
equipmentName
;
}
//获取车辆坐标计算距离并返回给后台
httpGet
(
carRealTimeLocationQuery2
,{
name
:
resSon1
.
data
.
content
[
0
].
equipmentName
}).
then
((
res2
)
=>
{
...
...
@@ -485,6 +433,23 @@ export default {
},
//卸车
finishPaidanFn
(){
//查询指定目的地围栏以及判断该车是否在围栏里
httpGet
(
screenMapSetUpQuery
,{
size
:
9999
,
name
:
this
.
carDestination
}).
then
((
resSon2
)
=>
{
if
(
resSon2
){
let
weilanArr1
=
[];
resSon2
[
this
.
carDestination
].
forEach
((
item
,
index
)
=>
{
let
weilanobj1
=
{};
weilanobj1
.
lat
=
item
.
lat
;
weilanobj1
.
lng
=
item
.
lon
;
weilanArr1
.
push
(
weilanobj1
);
})
httpGet
(
carRealTimeLocationQuery2
,{
name
:
this
.
equipmentName
}).
then
((
resSon3
)
=>
{
if
(
resSon3
.
code
==
200
){
let
resSon3Obj1
=
{};
resSon3Obj1
.
lat
=
resSon3
.
data
.
location
.
y
;
resSon3Obj1
.
lng
=
resSon3
.
data
.
location
.
x
;
this
.
xiecheBtnAble
=
this
.
isPointInPolygon
(
resSon3Obj1
,
weilanArr1
);
if
(
!
this
.
xiecheBtnAble
){
this
.
$notify
({
title
:
'
未到卸车区域,不可卸车!
'
,
...
...
@@ -517,6 +482,11 @@ export default {
this
.
oldxy
.
lng
=
0
;
})
}
}
});
}
});
},
//获取当前时间
currentTime
(){
...
...
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