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
d5a1d45f
Commit
d5a1d45f
authored
May 13, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
6235b0b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
index.vue
...ews/MLargeScreen/components/startOrderReceiving/index.vue
+16
-6
No files found.
src/views/MLargeScreen/components/startOrderReceiving/index.vue
View file @
d5a1d45f
...
...
@@ -30,8 +30,8 @@ export default {
mounted
(){
this
.
sonTimer1
=
setInterval
(()
=>
{
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
data
.
length
==
0
){
this
.
loadData2
();
if
(
res
.
data
.
content
.
length
==
0
){
//
this.loadData2();
}
else
{
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
if
(
resSon1
.
code
==
200
){
...
...
@@ -39,7 +39,7 @@ export default {
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow2
=
false
;
this
.
carDestination
=
res
.
data
[
0
].
destination
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
}
}
});
...
...
@@ -52,8 +52,8 @@ export default {
this
.
carnumber
=
carnumber
;
this
.
$nextTick
(()
=>
{
httpGet
(
dingDanBiaoCaoZuo
,{
sort
:
'
createTime,desc
'
,
size
:
1
,
carNo
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
data
.
length
==
0
){
this
.
loadData2
();
if
(
res
.
data
.
content
.
length
==
0
){
//
this.loadData2();
}
else
{
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
,
size
:
1
}).
then
((
resSon1
)
=>
{
if
(
resSon1
.
code
==
200
){
...
...
@@ -61,7 +61,7 @@ export default {
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow2
=
false
;
this
.
carDestination
=
res
.
data
[
0
].
destination
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
}
}
});
...
...
@@ -98,6 +98,11 @@ export default {
//开始派单
startPaidanFn
(){
this
.
btnShow1
=
false
;
this
.
$notify
({
title
:
'
已开始派单!
'
,
type
:
'
success
'
,
duration
:
2500
});
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
putForJson
(
vehicleInformationUpdate
,{
id
:
res
.
data
.
content
[
0
].
id
,
number
:
this
.
carnumber
,
workStatus
:
1
,
weightStatus
:
2
}).
then
((
res
)
=>
{});
...
...
@@ -113,6 +118,11 @@ export default {
refusePaidanFn
(){
this
.
btnShow1
=
false
;
this
.
showDe
=
false
;
this
.
$notify
({
title
:
'
已拒绝派单!
'
,
type
:
'
success
'
,
duration
:
2500
});
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
)
=>
{});
...
...
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