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
2e25aecb
Commit
2e25aecb
authored
Sep 02, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
adef5e25
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
344 additions
and
129 deletions
+344
-129
config.js
src/config.js
+4
-4
index.vue
...ews/MLargeScreen/components/startOrderReceiving/index.vue
+313
-85
index.vue
src/views/MLargeScreen/index.vue
+11
-24
vue.config.js
vue.config.js
+16
-16
No files found.
src/config.js
View file @
2e25aecb
// 项目配置相关
// 项目配置相关
const
config
=
{
const
config
=
{
//
BASE_URL: 'http://8.143.203.103:9090', //线上地址2
BASE_URL
:
'
http://8.143.203.103:9090
'
,
//线上地址2
//
REAL_URL: 'http://8.143.203.103:9090', //线上地址2
REAL_URL
:
'
http://8.143.203.103:9090
'
,
//线上地址2
BASE_URL
:
'
http://192.168.0.108:8001
'
,
//
BASE_URL: 'http://192.168.0.108:8001',
REAL_URL
:
'
http://192.168.0.108:8001
'
,
//
REAL_URL: 'http://192.168.0.108:8001',
TOKEN_KEY
:
'
token
'
,
TOKEN_KEY
:
'
token
'
,
USER_KEY
:
'
userInfo
'
,
USER_KEY
:
'
userInfo
'
,
...
...
src/views/MLargeScreen/components/startOrderReceiving/index.vue
View file @
2e25aecb
...
@@ -42,6 +42,8 @@ export default {
...
@@ -42,6 +42,8 @@ export default {
dingDanId
:
''
,
dingDanId
:
''
,
equipmentName
:
''
,
//车载设备编号
equipmentName
:
''
,
//车载设备编号
xiecheBtnAble
:
false
,
//卸车按钮是否能用
xiecheBtnAble
:
false
,
//卸车按钮是否能用
zhinengpaidanBoolan
:
false
,
//更改该车是否可接受智能派单
paidanFlag
:
0
,
//暂存的派单是否是人工或者智能
//暂存的经纬度
//暂存的经纬度
oldxy
:{
oldxy
:{
lat
:
0
,
//纬度
lat
:
0
,
//纬度
...
@@ -50,18 +52,26 @@ export default {
...
@@ -50,18 +52,26 @@ export default {
}
}
},
},
mounted
(){
mounted
(){
//删除路径
//this.$parent.zhixinglujing(false);
//this.$parent.zhixinglujing2(true);
this
.
sonTimer1
=
setInterval
(()
=>
{
this
.
sonTimer1
=
setInterval
(()
=>
{
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
//如果zhinengpaidanBoolan为true,获取人工和智能一起的调度
if
(
this
.
zhinengpaidanBoolan
){
//先查人工调度
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
,
flag
:
1
}).
then
((
res
)
=>
{
//如果没有就获取智能调度
if
(
res
.
data
.
content
.
length
==
0
){
if
(
res
.
data
.
content
.
length
==
0
){
//this.loadData2();
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res_1
)
=>
{
if
(
res_1
.
data
.
content
.
length
==
0
){
this
.
showDe
=
false
;
this
.
showDe
=
false
;
this
.
btnShow1
=
false
;
this
.
btnShow1
=
false
;
this
.
btnShow2
=
false
;
this
.
btnShow2
=
false
;
}
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
){
this
.
equipmentName
=
resSon1
.
data
.
content
[
0
].
equipmentName
;
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
){
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
if
(
res
.
data
.
content
[
0
].
orderClass
==
0
){
if
(
res
.
data
.
content
[
0
].
orderClass
==
0
){
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow1
=
true
;
...
@@ -79,9 +89,6 @@ export default {
...
@@ -79,9 +89,6 @@ export default {
this
.
btnShow2
=
true
;
this
.
btnShow2
=
true
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
//删除路径
//this.$parent.zhixinglujing(false);
//this.$parent.zhixinglujing2(true);
//查询指定目的地围栏以及判断该车是否在围栏里
//查询指定目的地围栏以及判断该车是否在围栏里
httpGet
(
screenMapSetUpQuery
,{
size
:
9999
,
name
:
this
.
carDestination
}).
then
((
resSon2
)
=>
{
httpGet
(
screenMapSetUpQuery
,{
size
:
9999
,
name
:
this
.
carDestination
}).
then
((
resSon2
)
=>
{
let
weilanArr1
=
[];
let
weilanArr1
=
[];
...
@@ -91,7 +98,7 @@ export default {
...
@@ -91,7 +98,7 @@ export default {
weilanobj1
.
lng
=
item
.
lon
;
weilanobj1
.
lng
=
item
.
lon
;
weilanArr1
.
push
(
weilanobj1
);
weilanArr1
.
push
(
weilanobj1
);
})
})
httpGet
(
carRealTimeLocationQuery2
,{
name
:
this
.
equipmentName
}).
then
((
resSon3
)
=>
{
httpGet
(
carRealTimeLocationQuery2
,{
name
:
resSon1
.
data
.
content
[
0
]
.
equipmentName
}).
then
((
resSon3
)
=>
{
if
(
resSon3
.
code
==
200
){
if
(
resSon3
.
code
==
200
){
let
resSon3Obj1
=
{};
let
resSon3Obj1
=
{};
resSon3Obj1
.
lat
=
resSon3
.
data
.
location
.
y
;
resSon3Obj1
.
lat
=
resSon3
.
data
.
location
.
y
;
...
@@ -121,16 +128,157 @@ export default {
...
@@ -121,16 +128,157 @@ export default {
}
}
});
});
}
}
})
}
else
{
//如果有人工调度
//有人工调度就删除智能调度单子
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
carNo
:
this
.
carnumber
,
flag
:
0
}).
then
((
resDel
)
=>
{
if
(
resDel
.
code
==
200
){
resDel
.
data
.
conten
.
forEach
((
itemDel
,
indexDel
)
=>
{
httpDelForJson
(
dingDanBiaoCaoZuo
,[
itemDel
.
id
]).
then
((
resDelSon
)
=>
{});
})
}
})
//有人工调度下面展示操作
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
if
(
resSon1
.
code
==
200
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow2
=
false
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
//启动语音
this
.
startOrderSrcUrl
=
newOrder
;
let
au
=
document
.
getElementById
(
'
audio1
'
);
au
.
currentTime
=
0
;
au
.
play
();
//查询指定目的地围栏以及判断该车是否在围栏里
httpGet
(
screenMapSetUpQuery
,{
size
:
9999
,
name
:
this
.
carDestination
}).
then
((
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
)
=>
{
if
(
res2
.
data
){
if
(
this
.
oldxy
.
lat
==
0
||
this
.
oldxy
.
lng
==
0
){
this
.
oldxy
.
lat
=
res2
.
data
.
location
.
y
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
}
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
);
putForJson
(
dingDanBiaoCaoZuo
,{
id
:
res
.
data
.
content
[
0
].
id
,
mil
:
distance1
}).
then
((
res
)
=>
{});
this
.
$nextTick
(()
=>
{
this
.
oldxy
.
lat
=
res2
.
data
.
location
.
y
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
})
}
}
});
}
});
}
});
}
else
{
//如果zhinengpaidanBoolan为false,获取人工的调度
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
,
flag
:
1
}).
then
((
res
)
=>
{
if
(
res
.
data
.
content
.
length
==
0
){
this
.
showDe
=
false
;
this
.
btnShow1
=
false
;
this
.
btnShow2
=
false
;
}
else
{
//有人工调度就删除智能调度单子
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
carNo
:
this
.
carnumber
,
flag
:
0
}).
then
((
resDel
)
=>
{
if
(
resDel
.
code
==
200
){
resDel
.
data
.
conten
.
forEach
((
itemDel
,
indexDel
)
=>
{
httpDelForJson
(
dingDanBiaoCaoZuo
,[
itemDel
.
id
]).
then
((
resDelSon
)
=>
{});
})
}
})
//有人工调度下面展示操作
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
if
(
resSon1
.
code
==
200
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow2
=
false
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
//启动语音
this
.
startOrderSrcUrl
=
newOrder
;
let
au
=
document
.
getElementById
(
'
audio1
'
);
au
.
currentTime
=
0
;
au
.
play
();
//查询指定目的地围栏以及判断该车是否在围栏里
httpGet
(
screenMapSetUpQuery
,{
size
:
9999
,
name
:
this
.
carDestination
}).
then
((
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
)
=>
{
if
(
res2
.
data
){
if
(
this
.
oldxy
.
lat
==
0
||
this
.
oldxy
.
lng
==
0
){
this
.
oldxy
.
lat
=
res2
.
data
.
location
.
y
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
}
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
);
putForJson
(
dingDanBiaoCaoZuo
,{
id
:
res
.
data
.
content
[
0
].
id
,
mil
:
distance1
}).
then
((
res
)
=>
{});
this
.
$nextTick
(()
=>
{
this
.
oldxy
.
lat
=
res2
.
data
.
location
.
y
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
})
}
}
});
}
});
}
});
}
},
10000
)
},
10000
)
},
},
methods
:{
methods
:{
loadData
(
carnumber
){
loadData
(
carnumber
){
this
.
carnumber
=
carnumber
;
this
.
carnumber
=
carnumber
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
//如果zhinengpaidanBoolan为true,获取人工和智能一起的调度
if
(
this
.
zhinengpaidanBoolan
){
//先查人工调度
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
,
flag
:
1
}).
then
((
res
)
=>
{
//如果没有就获取智能调度
if
(
res
.
data
.
content
.
length
==
0
){
if
(
res
.
data
.
content
.
length
==
0
){
//this.loadData2();
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res_1
)
=>
{
if
(
res_1
.
data
.
content
.
length
==
0
){
this
.
showDe
=
false
;
this
.
showDe
=
false
;
this
.
btnShow1
=
false
;
this
.
btnShow1
=
false
;
this
.
btnShow2
=
false
;
this
.
btnShow2
=
false
;
...
@@ -138,6 +286,7 @@ export default {
...
@@ -138,6 +286,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
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
){
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
if
(
res
.
data
.
content
[
0
].
orderClass
==
0
){
if
(
res
.
data
.
content
[
0
].
orderClass
==
0
){
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow1
=
true
;
...
@@ -171,34 +320,104 @@ export default {
...
@@ -171,34 +320,104 @@ export default {
}
}
});
});
}
}
});
})
})
},
//关闭清除定时器
dingshiqiCloseFn
(){
if
(
this
.
sonTimer1
)
{
//如果定时器还在运行 或者直接关闭,不用判断
clearInterval
(
this
.
sonTimer1
);
//关闭
}
},
//查询是否有卸车
loadData2
(){
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
data
.
content
[
0
].
weightStatus
==
1
){
httpGet
(
getXieCheDingDanQuery
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
length
==
0
){
return
}
else
{
}
else
{
//如果有人工调度
//有人工调度就删除智能调度单子
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
carNo
:
this
.
carnumber
,
flag
:
0
}).
then
((
resDel
)
=>
{
if
(
resDel
.
code
==
200
){
resDel
.
data
.
conten
.
forEach
((
itemDel
,
indexDel
)
=>
{
httpDelForJson
(
dingDanBiaoCaoZuo
,[
itemDel
.
id
]).
then
((
resDelSon
)
=>
{});
})
}
})
//有人工调度下面展示操作
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
if
(
resSon1
.
code
==
200
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow2
=
false
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
}
//获取车辆坐标计算距离并返回给后台
httpGet
(
carRealTimeLocationQuery2
,{
name
:
resSon1
.
data
.
content
[
0
].
equipmentName
}).
then
((
res2
)
=>
{
if
(
res2
.
data
){
if
(
this
.
oldxy
.
lat
==
0
||
this
.
oldxy
.
lng
==
0
){
this
.
oldxy
.
lat
=
res2
.
data
.
location
.
y
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
}
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
);
putForJson
(
dingDanBiaoCaoZuo
,{
id
:
res
.
data
.
content
[
0
].
id
,
mil
:
distance1
}).
then
((
res
)
=>
{});
this
.
$nextTick
(()
=>
{
this
.
oldxy
.
lat
=
res2
.
data
.
location
.
y
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
})
}
}
});
}
});
}
});
}
else
{
//如果zhinengpaidanBoolan为false,获取人工的调度
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
,
flag
:
1
}).
then
((
res
)
=>
{
if
(
res
.
data
.
content
.
length
==
0
){
this
.
showDe
=
false
;
this
.
btnShow1
=
false
;
this
.
btnShow1
=
false
;
this
.
btnShow2
=
true
;
this
.
btnShow2
=
false
;
this
.
carDestination
=
res
[
0
].
destination
;
}
else
{
//有人工调度就删除智能调度单子
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
carNo
:
this
.
carnumber
,
flag
:
0
}).
then
((
resDel
)
=>
{
if
(
resDel
.
code
==
200
){
resDel
.
data
.
conten
.
forEach
((
itemDel
,
indexDel
)
=>
{
httpDelForJson
(
dingDanBiaoCaoZuo
,[
itemDel
.
id
]).
then
((
resDelSon
)
=>
{});
})
}
})
//有人工调度下面操作
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
if
(
resSon1
.
code
==
200
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow2
=
false
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
}
//获取车辆坐标计算距离并返回给后台
httpGet
(
carRealTimeLocationQuery2
,{
name
:
resSon1
.
data
.
content
[
0
].
equipmentName
}).
then
((
res2
)
=>
{
if
(
res2
.
data
){
if
(
this
.
oldxy
.
lat
==
0
||
this
.
oldxy
.
lng
==
0
){
this
.
oldxy
.
lat
=
res2
.
data
.
location
.
y
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
}
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
);
putForJson
(
dingDanBiaoCaoZuo
,{
id
:
res
.
data
.
content
[
0
].
id
,
mil
:
distance1
}).
then
((
res
)
=>
{});
this
.
$nextTick
(()
=>
{
this
.
oldxy
.
lat
=
res2
.
data
.
location
.
y
;
this
.
oldxy
.
lng
=
res2
.
data
.
location
.
x
;
})
}
}
}
});
});
}
}
});
}
}
});
});
}
})
},
//关闭清除定时器
dingshiqiCloseFn
(){
if
(
this
.
sonTimer1
)
{
//如果定时器还在运行 或者直接关闭,不用判断
clearInterval
(
this
.
sonTimer1
);
//关闭
}
},
},
//开始派单
//开始派单
startPaidanFn
(){
startPaidanFn
(){
...
@@ -210,7 +429,11 @@ export default {
...
@@ -210,7 +429,11 @@ export default {
});
});
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
code
==
200
){
putForJson
(
vehicleInformationUpdate
,{
id
:
res
.
data
.
content
[
0
].
id
,
workStatus
:
1
,
weightStatus
:
2
}).
then
((
res
)
=>
{});
if
(
this
.
paidanFlag
==
0
){
putForJson
(
vehicleInformationUpdate
,{
id
:
res
.
data
.
content
[
0
].
id
,
workStatus
:
1
,
weightStatus
:
2
,
odo
:
1
}).
then
((
res
)
=>
{});
}
else
if
(
this
.
paidanFlag
==
0
){
putForJson
(
vehicleInformationUpdate
,{
id
:
res
.
data
.
content
[
0
].
id
,
workStatus
:
1
,
weightStatus
:
2
,
odo
:
2
}).
then
((
res
)
=>
{});
}
}
}
});
});
httpGet
(
manualSchedulingQuery
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
httpGet
(
manualSchedulingQuery
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
...
@@ -229,7 +452,7 @@ export default {
...
@@ -229,7 +452,7 @@ export default {
refusePaidanFn
(){
refusePaidanFn
(){
this
.
btnShow1
=
false
;
this
.
btnShow1
=
false
;
this
.
showDe
=
false
;
this
.
showDe
=
false
;
this
.
paidanFlag
=
0
;
this
.
$notify
({
this
.
$notify
({
title
:
'
已拒绝派单!
'
,
title
:
'
已拒绝派单!
'
,
type
:
'
success
'
,
type
:
'
success
'
,
...
@@ -237,7 +460,7 @@ export default {
...
@@ -237,7 +460,7 @@ export default {
});
});
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
code
==
200
){
putForJson
(
vehicleInformationUpdate
,{
id
:
res
.
data
.
content
[
0
].
id
,
oddStatus
:
1
,
workStatus
:
0
}).
then
((
res
)
=>
{});
putForJson
(
vehicleInformationUpdate
,{
id
:
res
.
data
.
content
[
0
].
id
,
oddStatus
:
1
,
workStatus
:
0
,
odo
:
3
}).
then
((
res
)
=>
{});
}
}
});
});
httpGet
(
manualSchedulingQuery
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
httpGet
(
manualSchedulingQuery
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
...
@@ -266,9 +489,10 @@ export default {
...
@@ -266,9 +489,10 @@ export default {
}
else
{
}
else
{
this
.
btnShow2
=
false
;
this
.
btnShow2
=
false
;
this
.
showDe
=
false
;
this
.
showDe
=
false
;
this
.
paidanFlag
=
0
;
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
code
==
200
){
putForJson
(
vehicleInformationUpdate
,{
id
:
res
.
data
.
content
[
0
].
id
,
workStatus
:
0
,
weightStatus
:
0
,
oddStatus
:
1
}).
then
((
res
)
=>
{});
putForJson
(
vehicleInformationUpdate
,{
id
:
res
.
data
.
content
[
0
].
id
,
workStatus
:
0
,
weightStatus
:
0
,
oddStatus
:
1
,
odo
:
3
}).
then
((
res
)
=>
{});
}
}
});
});
httpGet
(
manualSchedulingQuery
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
httpGet
(
manualSchedulingQuery
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
...
@@ -392,6 +616,10 @@ export default {
...
@@ -392,6 +616,10 @@ export default {
s
=
Math
.
round
(
s
*
10000
)
/
10000
;
s
=
Math
.
round
(
s
*
10000
)
/
10000
;
return
s
return
s
},
},
//更改该车是否可接受智能派单
zhinengpaidanFn
(
boolan
){
this
.
zhinengpaidanBoolan
=
boolan
;
},
},
},
beforeDestroy
()
{
beforeDestroy
()
{
...
...
src/views/MLargeScreen/index.vue
View file @
2e25aecb
...
@@ -16,11 +16,8 @@
...
@@ -16,11 +16,8 @@
</div>
</div>
</div>
</div>
<div
class=
"centerViews"
>
<div
class=
"centerViews"
>
<!--
<div
:class=
"orderReceiving == '停止接单' ? 'IntelligentDis1' : 'IntelligentDis2'"
@
click=
"IntelligentDisFn()"
>
<div
:class=
"orderReceiving ? 'IntelligentDis1' : 'IntelligentDis2'"
@
click=
"IntelligentDisFn()"
>
<div
:class=
"orderReceiving == '停止接单' ? 'centerViewsTitle1' : 'centerViewsTitle2'"
>
{{
orderReceiving
}}
</div>
<div
:class=
"orderReceiving ? 'centerViewsTitle1' : 'centerViewsTitle2'"
>
智能派单
</div>
</div>
-->
<div
class=
"IntelligentDis1"
>
<div
class=
"centerViewsTitle1"
>
接收派单
</div>
</div>
</div>
<div
:class=
"selectFunction == 2 ? 'voiceAp2' : 'voiceAp1'"
@
click=
"voiceApFn()"
>
<div
:class=
"selectFunction == 2 ? 'voiceAp2' : 'voiceAp1'"
@
click=
"voiceApFn()"
>
<div
:class=
"selectFunction == 2 ? 'centerViewsTitle1' : 'centerViewsTitle2'"
>
语音申请
</div>
<div
:class=
"selectFunction == 2 ? 'centerViewsTitle1' : 'centerViewsTitle2'"
>
语音申请
</div>
...
@@ -118,7 +115,7 @@ export default {
...
@@ -118,7 +115,7 @@ export default {
configUrl
:
basePathUrl
+
'
config/config.json
'
,
configUrl
:
basePathUrl
+
'
config/config.json
'
,
notifyPromise
:
Promise
.
resolve
(),
notifyPromise
:
Promise
.
resolve
(),
systemTitle
:
'
卡车调度系统卡车终端
'
,
systemTitle
:
'
卡车调度系统卡车终端
'
,
orderReceiving
:
'
开始接单
'
,
orderReceiving
:
false
,
personalName
:
''
,
personalName
:
''
,
zongTimer1
:
null
,
zongTimer1
:
null
,
zongTimer2
:
null
,
zongTimer2
:
null
,
...
@@ -224,7 +221,7 @@ export default {
...
@@ -224,7 +221,7 @@ export default {
}
}
});
});
//展示二维地图
//展示二维地图
//
this.$refs.mars3dViewerMapMethod.getCarInforFn();
this
.
$refs
.
mars3dViewerMapMethod
.
getCarInforFn
();
},
},
//获取待装卡车列表
//获取待装卡车列表
...
@@ -257,23 +254,13 @@ export default {
...
@@ -257,23 +254,13 @@ export default {
},
},
//接受派单
//接受派单
IntelligentDisFn
(){
IntelligentDisFn
(){
// if(this.orderReceiving == "停止接单"){
if
(
this
.
orderReceiving
){
// this.orderReceiving = '开始接单';
this
.
orderReceiving
=
false
;
// this.$refs.startOrderReceivingMethod.loadData(this.carnumber,false);
this
.
$refs
.
startOrderReceivingMethod
.
zhinengpaidanFn
(
false
);
// }else{
}
else
{
// this.orderReceiving = '停止接单';
this
.
orderReceiving
=
true
;
// this.$refs.startOrderReceivingMethod.loadData(this.carnumber,true);
this
.
$refs
.
startOrderReceivingMethod
.
zhinengpaidanFn
(
true
);
// }
}
// this.$refs.voiceApplicationMethod.voiceAppCloseFn();
// this.$refs.failureDeclarationMethod.failureDeCloseFn();
// this.$refs.performanceStatisticsMethod.achievementCloseFn();
// this.$refs.carInformationMethod.carInCloseFn();
// this.$refs.personalCenterMethod.personalCenCloseFn();
// this.$refs.smallWindowMethod.carInCloseFn();
},
},
//语音申请
//语音申请
voiceApFn
(
tishi
){
voiceApFn
(
tishi
){
...
...
vue.config.js
View file @
2e25aecb
...
@@ -16,31 +16,31 @@ module.exports = {
...
@@ -16,31 +16,31 @@ module.exports = {
open
:
true
,
// 配置自动启动浏览器
open
:
true
,
// 配置自动启动浏览器
proxy
:
{
proxy
:
{
// '/dianziweilan': {
// target: 'http://8.143.203.103:9090'
// },
// '/auth': {
// target: 'http://8.143.203.103:9090',
// },
// '/pic': {
// target: 'http://8.143.203.103/avatar/',
// pathRewrite: { '^/pic': '' },
// changeOrigin: true,
// },
'
/dianziweilan
'
:
{
'
/dianziweilan
'
:
{
target
:
'
http://
192.168.0.108:8001
'
target
:
'
http://
8.143.203.103:9090
'
},
},
'
/auth
'
:
{
'
/auth
'
:
{
target
:
'
http://
192.168.0.108:8001
'
,
target
:
'
http://
8.143.203.103:9090
'
,
},
},
'
/pic
'
:
{
'
/pic
'
:
{
target
:
'
http://
192.168.0.108
/avatar/
'
,
target
:
'
http://
8.143.203.103
/avatar/
'
,
pathRewrite
:
{
'
^/pic
'
:
''
},
pathRewrite
:
{
'
^/pic
'
:
''
},
changeOrigin
:
true
,
changeOrigin
:
true
,
},
},
// '/dianziweilan': {
// target: 'http://192.168.0.108:8001'
// },
// '/auth': {
// target: 'http://192.168.0.108:8001',
// },
// '/pic': {
// target: 'http://192.168.0.108/avatar/',
// pathRewrite: { '^/pic': '' },
// changeOrigin: true,
// },
},
},
//https: true,
//https: 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