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
64cde454
Commit
64cde454
authored
Sep 08, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6d50f796
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
22 deletions
+21
-22
index.vue
...ews/MLargeScreen/components/startOrderReceiving/index.vue
+21
-22
No files found.
src/views/MLargeScreen/components/startOrderReceiving/index.vue
View file @
64cde454
...
@@ -25,7 +25,6 @@ import {
...
@@ -25,7 +25,6 @@ import {
getXieCheDingDanQuery
,
getXieCheDingDanQuery
,
screenMapSetUpQuery
,
screenMapSetUpQuery
,
carRealTimeLocationQuery2
,
carRealTimeLocationQuery2
,
}
from
"
@/axios/api.js
"
}
from
"
@/axios/api.js
"
import
newOrder
from
'
@/assets/dingdan.mp3
'
import
newOrder
from
'
@/assets/dingdan.mp3
'
...
@@ -70,14 +69,14 @@ export default {
...
@@ -70,14 +69,14 @@ export default {
}
else
{
}
else
{
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
if
(
resSon1
.
code
==
200
){
if
(
resSon1
.
code
==
200
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
){
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
paidanFlag
=
res
_1
.
data
.
content
[
0
].
flag
;
if
(
res
.
data
.
content
[
0
].
orderClass
==
0
){
if
(
res
_1
.
data
.
content
[
0
].
orderClass
==
0
){
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow2
=
false
;
this
.
btnShow2
=
false
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
carDestination
=
res
_1
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
this
.
dingDanId
=
res
_1
.
data
.
content
[
0
].
id
;
//启动语音
//启动语音
this
.
startOrderSrcUrl
=
newOrder
;
this
.
startOrderSrcUrl
=
newOrder
;
let
au
=
document
.
getElementById
(
'
audio1
'
);
let
au
=
document
.
getElementById
(
'
audio1
'
);
...
@@ -87,8 +86,8 @@ export default {
...
@@ -87,8 +86,8 @@ export default {
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
false
;
this
.
btnShow1
=
false
;
this
.
btnShow2
=
true
;
this
.
btnShow2
=
true
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
carDestination
=
res
_1
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
this
.
dingDanId
=
res
_1
.
data
.
content
[
0
].
id
;
//查询指定目的地围栏以及判断该车是否在围栏里
//查询指定目的地围栏以及判断该车是否在围栏里
httpGet
(
screenMapSetUpQuery
,{
size
:
9999
,
name
:
this
.
carDestination
}).
then
((
resSon2
)
=>
{
httpGet
(
screenMapSetUpQuery
,{
size
:
9999
,
name
:
this
.
carDestination
}).
then
((
resSon2
)
=>
{
if
(
resSon2
){
if
(
resSon2
){
...
@@ -119,7 +118,7 @@ export default {
...
@@ -119,7 +118,7 @@ export default {
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
}
else
{
}
else
{
let
distance1
=
this
.
getDistance
(
this
.
oldxy
.
lat
,
this
.
oldxy
.
lng
,
res2
.
data
.
location
.
y
,
res2
.
data
.
location
.
x
)
+
parseFloat
(
res
.
data
.
content
[
0
].
mil
);
let
distance1
=
this
.
getDistance
(
this
.
oldxy
.
lat
,
this
.
oldxy
.
lng
,
res2
.
data
.
location
.
y
,
res2
.
data
.
location
.
x
)
+
parseFloat
(
res
.
data
.
content
[
0
].
mil
);
putForJson
(
dingDanBiaoCaoZuo
,{
id
:
res
.
data
.
content
[
0
].
id
,
mil
:
distance1
}).
then
((
res
)
=>
{});
putForJson
(
dingDanBiaoCaoZuo
,{
id
:
res
_1
.
data
.
content
[
0
].
id
,
mil
:
distance1
}).
then
((
res
)
=>
{});
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
oldxy
.
lat
=
res2
.
data
.
location
.
y
;
this
.
oldxy
.
lat
=
res2
.
data
.
location
.
y
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
...
@@ -136,7 +135,7 @@ export default {
...
@@ -136,7 +135,7 @@ export default {
//有人工调度就删除智能调度单子
//有人工调度就删除智能调度单子
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
carNo
:
this
.
carnumber
,
flag
:
0
}).
then
((
resDel
)
=>
{
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
carNo
:
this
.
carnumber
,
flag
:
0
}).
then
((
resDel
)
=>
{
if
(
resDel
.
code
==
200
){
if
(
resDel
.
code
==
200
){
resDel
.
data
.
conten
.
forEach
((
itemDel
,
indexDel
)
=>
{
resDel
.
data
.
conten
t
.
forEach
((
itemDel
,
indexDel
)
=>
{
httpDelForJson
(
dingDanBiaoCaoZuo
,[
itemDel
.
id
]).
then
((
resDelSon
)
=>
{});
httpDelForJson
(
dingDanBiaoCaoZuo
,[
itemDel
.
id
]).
then
((
resDelSon
)
=>
{});
})
})
}
}
...
@@ -144,7 +143,7 @@ export default {
...
@@ -144,7 +143,7 @@ export default {
//有人工调度下面展示操作
//有人工调度下面展示操作
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
if
(
resSon1
.
code
==
200
){
if
(
resSon1
.
code
==
200
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
){
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow1
=
true
;
...
@@ -208,7 +207,7 @@ export default {
...
@@ -208,7 +207,7 @@ export default {
//有人工调度就删除智能调度单子
//有人工调度就删除智能调度单子
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
carNo
:
this
.
carnumber
,
flag
:
0
}).
then
((
resDel
)
=>
{
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
carNo
:
this
.
carnumber
,
flag
:
0
}).
then
((
resDel
)
=>
{
if
(
resDel
.
code
==
200
){
if
(
resDel
.
code
==
200
){
resDel
.
data
.
conten
.
forEach
((
itemDel
,
indexDel
)
=>
{
resDel
.
data
.
conten
t
.
forEach
((
itemDel
,
indexDel
)
=>
{
httpDelForJson
(
dingDanBiaoCaoZuo
,[
itemDel
.
id
]).
then
((
resDelSon
)
=>
{});
httpDelForJson
(
dingDanBiaoCaoZuo
,[
itemDel
.
id
]).
then
((
resDelSon
)
=>
{});
})
})
}
}
...
@@ -216,7 +215,7 @@ export default {
...
@@ -216,7 +215,7 @@ export default {
//有人工调度下面展示操作
//有人工调度下面展示操作
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
if
(
resSon1
.
code
==
200
){
if
(
resSon1
.
code
==
200
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
){
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow1
=
true
;
...
@@ -292,19 +291,19 @@ export default {
...
@@ -292,19 +291,19 @@ export default {
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
if
(
resSon1
.
code
==
200
){
if
(
resSon1
.
code
==
200
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
){
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
paidanFlag
=
res
_1
.
data
.
content
[
0
].
flag
;
if
(
res
.
data
.
content
[
0
].
orderClass
==
0
){
if
(
res
_1
.
data
.
content
[
0
].
orderClass
==
0
){
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow2
=
false
;
this
.
btnShow2
=
false
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
carDestination
=
res
_1
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
this
.
dingDanId
=
res
_1
.
data
.
content
[
0
].
id
;
}
else
{
}
else
{
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
false
;
this
.
btnShow1
=
false
;
this
.
btnShow2
=
true
;
this
.
btnShow2
=
true
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
carDestination
=
res
_1
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
this
.
dingDanId
=
res
_1
.
data
.
content
[
0
].
id
;
}
}
}
}
//获取车辆坐标计算距离并返回给后台
//获取车辆坐标计算距离并返回给后台
...
@@ -315,7 +314,7 @@ export default {
...
@@ -315,7 +314,7 @@ export default {
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
}
else
{
}
else
{
let
distance1
=
this
.
getDistance
(
this
.
oldxy
.
lat
,
this
.
oldxy
.
lng
,
res2
.
data
.
location
.
y
,
res2
.
data
.
location
.
x
)
+
parseFloat
(
res
.
data
.
content
[
0
].
mil
);
let
distance1
=
this
.
getDistance
(
this
.
oldxy
.
lat
,
this
.
oldxy
.
lng
,
res2
.
data
.
location
.
y
,
res2
.
data
.
location
.
x
)
+
parseFloat
(
res
.
data
.
content
[
0
].
mil
);
putForJson
(
dingDanBiaoCaoZuo
,{
id
:
res
.
data
.
content
[
0
].
id
,
mil
:
distance1
}).
then
((
res
)
=>
{});
putForJson
(
dingDanBiaoCaoZuo
,{
id
:
res
_1
.
data
.
content
[
0
].
id
,
mil
:
distance1
}).
then
((
res
)
=>
{});
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
oldxy
.
lat
=
res2
.
data
.
location
.
y
;
this
.
oldxy
.
lat
=
res2
.
data
.
location
.
y
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
...
@@ -332,7 +331,7 @@ export default {
...
@@ -332,7 +331,7 @@ export default {
//有人工调度就删除智能调度单子
//有人工调度就删除智能调度单子
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
carNo
:
this
.
carnumber
,
flag
:
0
}).
then
((
resDel
)
=>
{
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
carNo
:
this
.
carnumber
,
flag
:
0
}).
then
((
resDel
)
=>
{
if
(
resDel
.
code
==
200
){
if
(
resDel
.
code
==
200
){
resDel
.
data
.
conten
.
forEach
((
itemDel
,
indexDel
)
=>
{
resDel
.
data
.
conten
t
.
forEach
((
itemDel
,
indexDel
)
=>
{
httpDelForJson
(
dingDanBiaoCaoZuo
,[
itemDel
.
id
]).
then
((
resDelSon
)
=>
{});
httpDelForJson
(
dingDanBiaoCaoZuo
,[
itemDel
.
id
]).
then
((
resDelSon
)
=>
{});
})
})
}
}
...
@@ -379,7 +378,7 @@ export default {
...
@@ -379,7 +378,7 @@ export default {
//有人工调度就删除智能调度单子
//有人工调度就删除智能调度单子
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
carNo
:
this
.
carnumber
,
flag
:
0
}).
then
((
resDel
)
=>
{
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
carNo
:
this
.
carnumber
,
flag
:
0
}).
then
((
resDel
)
=>
{
if
(
resDel
.
code
==
200
){
if
(
resDel
.
code
==
200
){
resDel
.
data
.
conten
.
forEach
((
itemDel
,
indexDel
)
=>
{
resDel
.
data
.
conten
t
.
forEach
((
itemDel
,
indexDel
)
=>
{
httpDelForJson
(
dingDanBiaoCaoZuo
,[
itemDel
.
id
]).
then
((
resDelSon
)
=>
{});
httpDelForJson
(
dingDanBiaoCaoZuo
,[
itemDel
.
id
]).
then
((
resDelSon
)
=>
{});
})
})
}
}
...
...
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