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
183e68c3
Commit
183e68c3
authored
Apr 22, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e5a4f52f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
200 additions
and
40 deletions
+200
-40
juxingkaobei6_1.png
src/assets/images/truckTuPian/juxingkaobei6_1.png
+0
-0
api.js
src/axios/api.js
+4
-0
index.vue
src/views/MLargeScreen/components/smallWindow/index.vue
+0
-1
index.vue
...ews/MLargeScreen/components/startOrderReceiving/index.vue
+78
-32
index.vue
src/views/MLargeScreen/components/voiceApplication/index.vue
+1
-1
index.vue
src/views/MLargeScreen/index.vue
+117
-6
No files found.
src/assets/images/truckTuPian/juxingkaobei6_1.png
0 → 100644
View file @
183e68c3
3.28 KB
src/axios/api.js
View file @
183e68c3
...
@@ -28,3 +28,7 @@ export const faultDayAdd = '/api/Fault'; //添加故障日报
...
@@ -28,3 +28,7 @@ export const faultDayAdd = '/api/Fault'; //添加故障日报
export
const
faultMonthAdd
=
'
/api/FaultMonth
'
;
//添加故障月报
export
const
faultMonthAdd
=
'
/api/FaultMonth
'
;
//添加故障月报
export
const
faultYearAdd
=
'
/api/FaultYear
'
;
//添加故障年报
export
const
faultYearAdd
=
'
/api/FaultYear
'
;
//添加故障年报
export
const
waitingtrucksQuery
=
'
/api/Dispatch/waitingtrucks
'
;
//获取待装车卡车列表
export
const
waitingtrucksQuery
=
'
/api/Dispatch/waitingtrucks
'
;
//获取待装车卡车列表
export
const
manmadeStatusQuery
=
'
/api/Manmade/status
'
;
//获取调度车辆次数为一天或者长期的数据
export
const
dingDanBiaoCaoZuo
=
'
/api/Order
'
;
//订单表操作
export
const
getZhuangCheDingDanQuery
=
'
/api/Order/ZC
'
;
//获取装车订单
export
const
getXieCheDingDanQuery
=
'
/api/Order/XC
'
;
//获取卸车订单
src/views/MLargeScreen/components/smallWindow/index.vue
View file @
183e68c3
...
@@ -38,7 +38,6 @@ export default {
...
@@ -38,7 +38,6 @@ export default {
data
()
{
data
()
{
return
{
return
{
showDecide
:
false
,
showDecide
:
false
,
carInformationData1
:{},
carInformationData2
:{},
carInformationData2
:{},
carnumber
:
''
,
carnumber
:
''
,
personalName
:
''
,
personalName
:
''
,
...
...
src/views/MLargeScreen/components/startOrderReceiving/index.vue
View file @
183e68c3
...
@@ -8,13 +8,13 @@
...
@@ -8,13 +8,13 @@
</div>
</div>
<div
class=
"orderText2"
@
click=
"startPaidanFn()"
v-show=
"btnShow1"
>
开始派单
</div>
<div
class=
"orderText2"
@
click=
"startPaidanFn()"
v-show=
"btnShow1"
>
开始派单
</div>
<div
class=
"orderText2"
@
click=
"refusePaidanFn()"
v-show=
"btnShow1"
>
拒绝派单
</div>
<div
class=
"orderText2"
@
click=
"refusePaidanFn()"
v-show=
"btnShow1"
>
拒绝派单
</div>
<div
class=
"orderText2"
@
click=
"finishPaidanFn()"
v-show=
"btnShow2"
>
完成派单
</div>
<div
class=
"orderText2"
@
click=
"finishPaidanFn()"
v-show=
"btnShow2"
>
卸车
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
httpGet
,
httpPostForJson
,
putForJson
,
httpDelForJson
}
from
"
@/common/httpBean.js
"
import
{
httpGet
,
httpPostForJson
,
putForJson
,
httpDelForJson
}
from
"
@/common/httpBean.js
"
import
{
manualSchedulingQuery
,}
from
"
@/axios/api.js
"
import
{
manualSchedulingQuery
,
manmadeStatusQuery
,
vehicleInformationQuery
,
vehicleInformationUpdate
,
dingDanBiaoCaoZuo
,
getZhuangCheDingDanQuery
,
getXieCheDingDanQuery
}
from
"
@/axios/api.js
"
export
default
{
export
default
{
data
(){
data
(){
...
@@ -22,59 +22,105 @@ export default {
...
@@ -22,59 +22,105 @@ export default {
showDe
:
false
,
showDe
:
false
,
carnumber
:
''
,
carnumber
:
''
,
carDestination
:
''
,
carDestination
:
''
,
btnShow1
:
tru
e
,
//开始派单和拒绝派单展示
btnShow1
:
fals
e
,
//开始派单和拒绝派单展示
btnShow2
:
false
,
//完成派单展示
btnShow2
:
false
,
//完成派单展示
t
imer1
:
null
,
sonT
imer1
:
null
,
}
}
},
},
mounted
(){
mounted
(){
this
.
t
imer1
=
setInterval
(()
=>
{
this
.
sonT
imer1
=
setInterval
(()
=>
{
httpGet
(
manualScheduling
Query
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
httpGet
(
getZhuangCheDingDan
Query
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
20
0
){
if
(
res
.
length
==
0
){
if
(
res
.
data
.
totalElements
==
0
){
this
.
loadData2
();
return
}
else
{
}
else
{
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
btnShow2
=
false
;
}
this
.
carDestination
=
res
[
0
].
destination
;
}
}
});
});
},
20000
)
},
20000
)
},
},
methods
:{
methods
:{
loadData
(
carnumber
){
loadData
(
carnumber
){
this
.
carnumber
=
carnumber
;
this
.
carnumber
=
carnumber
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
httpGet
(
manualScheduling
Query
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
httpGet
(
getZhuangCheDingDan
Query
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
20
0
){
if
(
res
.
length
==
0
){
if
(
res
.
data
.
totalElements
==
0
){
this
.
loadData2
();
return
}
else
{
}
else
{
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
btnShow2
=
false
;
}
this
.
carDestination
=
res
[
0
].
destination
;
}
}
});
});
})
})
},
//查询是否有卸车
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
{
this
.
showDe
=
true
;
this
.
btnShow1
=
false
;
this
.
btnShow2
=
true
;
this
.
carDestination
=
res
[
0
].
destination
;
}
});
}
}
});
},
},
//开始派单
//开始派单
startPaidanFn
(){
startPaidanFn
(){
this
.
btnShow1
=
false
;
this
.
btnShow1
=
false
;
this
.
btnShow2
=
true
;
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
putForJson
(
vehicleInformationUpdate
,{
number
:
this
.
carnumber
,
workStatus
:
1
}).
then
((
res
)
=>
{});
if
(
res
.
code
==
200
){
putForJson
(
vehicleInformationUpdate
,{
id
:
res
.
data
.
content
[
0
].
id
,
number
:
this
.
carnumber
,
workStatus
:
1
,
weightStatus
:
2
}).
then
((
res
)
=>
{});
}
});
httpGet
(
manualSchedulingQuery
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
putForJson
(
manualSchedulingQuery
,{
id
:
res
.
data
.
content
[
0
].
id
,
number
:
this
.
carnumber
,
status
:
1
}).
then
((
res
)
=>
{});
}
});
},
},
//拒绝派单
//拒绝派单
refusePaidanFn
(){
refusePaidanFn
(){
putForJson
(
vehicleInformationUpdate
,{
number
:
this
.
carnumber
,
workStatus
:
1
}).
then
((
res
)
=>
{});
this
.
btnShow1
=
false
;
this
.
showDe
=
false
;
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
putForJson
(
vehicleInformationUpdate
,{
id
:
res
.
data
.
content
[
0
].
id
,
number
:
this
.
carnumber
,
oddStatus
:
1
,
workStatus
:
0
}).
then
((
res
)
=>
{});
}
});
httpGet
(
manualSchedulingQuery
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
putForJson
(
manualSchedulingQuery
,{
id
:
res
.
data
.
content
[
0
].
id
,
number
:
this
.
carnumber
,
status
:
0
}).
then
((
res
)
=>
{});
}
});
},
},
//
完成派单
//
卸车
finishPaidanFn
(){
finishPaidanFn
(){
this
.
btnShow1
=
true
;
this
.
btnShow2
=
false
;
this
.
btnShow2
=
false
;
putForJson
(
vehicleInformationUpdate
,{
number
:
this
.
carnumber
,
workStatus
:
1
}).
then
((
res
)
=>
{});
this
.
showDe
=
false
;
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
putForJson
(
vehicleInformationUpdate
,{
id
:
res
.
data
.
content
[
0
].
id
,
number
:
this
.
carnumber
,
workStatus
:
0
,
weightStatus
:
0
}).
then
((
res
)
=>
{});
}
});
httpGet
(
manualSchedulingQuery
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
putForJson
(
manualSchedulingQuery
,{
id
:
res
.
data
.
content
[
0
].
id
,
number
:
this
.
carnumber
,
status
:
0
}).
then
((
res
)
=>
{});
}
});
httpDelForJson
(
dingDanBiaoCaoZuo
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{});
},
},
//获取当前时间
//获取当前时间
currentTime
(){
currentTime
(){
...
@@ -113,8 +159,8 @@ export default {
...
@@ -113,8 +159,8 @@ export default {
},
},
beforeDestroy
()
{
beforeDestroy
()
{
if
(
this
.
t
imer1
)
{
//如果定时器还在运行 或者直接关闭,不用判断
if
(
this
.
sonT
imer1
)
{
//如果定时器还在运行 或者直接关闭,不用判断
clearInterval
(
this
.
t
imer1
);
//关闭
clearInterval
(
this
.
sonT
imer1
);
//关闭
}
}
}
}
}
}
...
...
src/views/MLargeScreen/components/voiceApplication/index.vue
View file @
183e68c3
...
@@ -702,7 +702,7 @@ export default {
...
@@ -702,7 +702,7 @@ export default {
}
}
.voiceAppMainViews
{
.voiceAppMainViews
{
position
:
absolute
;
position
:
absolute
;
z-index
:
1
;
z-index
:
2
;
top
:
50%
;
top
:
50%
;
left
:
50%
;
left
:
50%
;
height
:
80vh
;
height
:
80vh
;
...
...
src/views/MLargeScreen/index.vue
View file @
183e68c3
...
@@ -55,15 +55,27 @@
...
@@ -55,15 +55,27 @@
<carInformation
ref=
"carInformationMethod"
v-show=
"selectFunction == 5"
/>
<carInformation
ref=
"carInformationMethod"
v-show=
"selectFunction == 5"
/>
<personalCenter
ref=
"personalCenterMethod"
v-show=
"selectFunction == 6"
/>
<personalCenter
ref=
"personalCenterMethod"
v-show=
"selectFunction == 6"
/>
<smallWindow
ref=
"smallWindowMethod"
v-show=
"selectFunction == 7"
/>
<smallWindow
ref=
"smallWindowMethod"
v-show=
"selectFunction == 7"
/>
<div
id=
"centerDiv"
class=
"mapcontainer"
>
<!-- 地图区域 -->
<!--
<div
id=
"centerDiv"
class=
"mapcontainer"
>
<mars3dViewerMap
:url=
"configUrl"
@
onload=
"onMapload"
/>
<mars3dViewerMap
:url=
"configUrl"
@
onload=
"onMapload"
/>
</div>
-->
<!-- 电铲待装车辆列表 -->
<div
class=
"waitingtrucksView"
v-if=
"carclass == '电铲'"
>
<div
class=
"waitingtrucksView_title"
>
待装卡车列表
</div>
<div
class=
"waitingtrucksView_content"
>
<div
v-for=
"(item,index) in daizhangCar"
:key=
"index"
>
<div>
车牌号:
{{
item
.
number
}}
</div>
<div>
司机:
{{
item
.
driver
}}
</div>
<el-button
type=
"primary"
style=
"font-size:18px;"
@
click=
"wanchengzhuangcheFn(item.number)"
>
完成装车
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
httpGet
,
httpPostForJson
,
putForJson
,
httpDelForJson
}
from
"
@/common/httpBean.js
"
import
{
httpGet
,
httpPostForJson
,
putForJson
,
httpDelForJson
}
from
"
@/common/httpBean.js
"
import
{
personalCenterInforQuery
}
from
"
@/axios/api.js
"
import
{
personalCenterInforQuery
,
vehicleInformationQuery
,
waitingtrucksQuery
,
vehicleInformationUpdate
}
from
"
@/axios/api.js
"
import
startOrderReceiving
from
'
./components/startOrderReceiving/index.vue
'
//接受派单
import
startOrderReceiving
from
'
./components/startOrderReceiving/index.vue
'
//接受派单
import
voiceApplication
from
'
./components/voiceApplication/index.vue
'
//语音申请
import
voiceApplication
from
'
./components/voiceApplication/index.vue
'
//语音申请
import
failureDeclaration
from
'
./components/failureDeclaration/index.vue
'
//故障申报
import
failureDeclaration
from
'
./components/failureDeclaration/index.vue
'
//故障申报
...
@@ -92,19 +104,27 @@ export default {
...
@@ -92,19 +104,27 @@ export default {
orderReceiving
:
'
开始接单
'
,
orderReceiving
:
'
开始接单
'
,
carName
:
'
4001
'
,
carName
:
'
4001
'
,
personalName
:
'
李三
'
,
personalName
:
'
李三
'
,
timer
:
null
,
zongTimer1
:
null
,
zongTimer2
:
null
,
currentTime
:
''
,
currentTime
:
''
,
selectFunction
:
0
,
selectFunction
:
0
,
carnumber
:
'
鲁k123456
'
,
carnumber
:
'
鲁k123456
'
,
userName1
:
''
,
userName1
:
''
,
carclass
:
''
,
daizhangCar
:[],
}
}
},
},
mounted
(){
mounted
(){
this
.
loadData
();
this
.
loadData
();
this
.
setNowTimes
();
this
.
setNowTimes
();
this
.
timer
=
setInterval
(()
=>
{
this
.
zongTimer1
=
setInterval
(()
=>
{
this
.
setNowTimes
();
this
.
setNowTimes
();
},
1000
)
},
1000
)
this
.
zongTimer2
=
setInterval
(()
=>
{
if
(
this
.
carclass
==
'
电铲
'
){
this
.
loadData1
();
}
},
20000
)
},
},
methods
:{
methods
:{
loadData
(){
loadData
(){
...
@@ -117,9 +137,32 @@ export default {
...
@@ -117,9 +137,32 @@ export default {
this
.
carnumber
=
res
.
data
.
content
[
0
].
car
;
this
.
carnumber
=
res
.
data
.
content
[
0
].
car
;
this
.
personalName
=
res
.
data
.
content
[
0
].
name
;
this
.
personalName
=
res
.
data
.
content
[
0
].
name
;
this
.
$refs
.
startOrderReceivingMethod
.
loadData
(
this
.
carnumber
);
this
.
$refs
.
startOrderReceivingMethod
.
loadData
(
this
.
carnumber
);
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
data
.
totalElements
==
0
){
return
}
else
{
this
.
carclass
=
res
.
data
.
content
[
0
].
carclass
;
if
(
this
.
carclass
==
'
电铲
'
){
this
.
loadData1
();
}
else
{
return
;
}
}
}
});
}
}
});
});
},
},
//获取待装卡车列表
loadData1
(){
httpGet
(
waitingtrucksQuery
,{
carno
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
daizhangCar
=
res
.
data
;
}
});
},
//获取当前时间
//获取当前时间
setNowTimes
()
{
setNowTimes
()
{
let
myDate
=
new
Date
();
let
myDate
=
new
Date
();
...
@@ -280,6 +323,10 @@ export default {
...
@@ -280,6 +323,10 @@ export default {
this
.
$refs
.
smallWindowMethod
.
carInCloseFn
();
this
.
$refs
.
smallWindowMethod
.
carInCloseFn
();
}
}
},
},
//完成装车
wanchengzhuangcheFn
(
number
){
//putForJson(vehicleInformationUpdate,{number:number,workStatus:1}).then((res) => {});
},
//地图构造完成回调
//地图构造完成回调
onMapload
(
map
)
{
onMapload
(
map
)
{
// 以下为演示代码
// 以下为演示代码
...
@@ -318,8 +365,11 @@ export default {
...
@@ -318,8 +365,11 @@ export default {
},
},
},
},
beforeDestroy
(){
beforeDestroy
(){
if
(
this
.
timer
)
{
if
(
this
.
zongTimer1
)
{
clearInterval
(
this
.
timer
);
clearInterval
(
this
.
zongTimer1
);
}
if
(
this
.
zongTimer2
)
{
clearInterval
(
this
.
zongTimer2
);
}
}
}
}
}
}
...
@@ -549,4 +599,65 @@ export default {
...
@@ -549,4 +599,65 @@ export default {
left
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
}
}
.waitingtrucksView
{
position
:
absolute
;
right
:
0px
;
top
:
8vh
;
width
:
25vw
;
height
:
80vh
;
background
:
no-repeat
center
center
url('~@/assets/images/truckTuPian/juxingkaobei6_1.png')
;
background-size
:
100%
100%
;
z-index
:
1
;
padding
:
10px
10px
0px
;
box-sizing
:
border-box
;
}
.waitingtrucksView_title
{
font-size
:
26px
;
font-weight
:
600
;
text-align
:
center
;
width
:
100%
;
background-image
:
-webkit-linear-gradient
(
bottom
,
#59C8FF
,
#FAFEFF
);
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
}
.waitingtrucksView_content
{
margin-top
:
10px
;
height
:
70vh
;
width
:
100%
;
overflow-y
:
auto
;
}
.waitingtrucksView_content
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
8px
;
/*高宽分别对应横竖滚动条的尺寸*/
height
:
1px
;
}
.waitingtrucksView_content
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
10px
;
background-color
:
#274088
;
background-image
:
-webkit-linear-gradient
(
45deg
,
rgba
(
255
,
255
,
255
,
0.2
)
25%
,
transparent
25%
,
transparent
50%
,
rgba
(
255
,
255
,
255
,
0.2
)
50%
,
rgba
(
255
,
255
,
255
,
0.2
)
75%
,
transparent
75%
,
transparent
);
}
.waitingtrucksView_content
::-webkit-scrollbar-track
{
/*滚动条里面轨道*/
box-shadow
:
inset
0
0
5px
rgba
(
0
,
0
,
0
,
0.2
);
background
:
#ededed
;
border-radius
:
10px
;
}
.waitingtrucksView_content
>
div
{
color
:
rgb
(
254
,
210
,
5
);
font-size
:
20px
;
margin-bottom
:
15px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
</
style
>
</
style
>
\ No newline at end of file
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