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
6c4a2b17
Commit
6c4a2b17
authored
Oct 12, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8413b7c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
40 deletions
+49
-40
index.vue
...iews/MLargeScreen/components/failureDeclaration/index.vue
+49
-40
No files found.
src/views/MLargeScreen/components/failureDeclaration/index.vue
View file @
6c4a2b17
...
...
@@ -160,47 +160,56 @@ export default {
},
//提交申报
submitDeFn
(){
httpPostForJson
(
faultDayAdd
,
this
.
from
).
then
((
res
)
=>
{});
httpPostForJson
(
faultMonthAdd
,
this
.
from
).
then
((
res
)
=>
{});
httpPostForJson
(
faultYearAdd
,
this
.
from
).
then
((
res
)
=>
{});
let
breakData1
=
{};
breakData1
.
number
=
this
.
from
.
carcode
;
breakData1
.
driver
=
this
.
from
.
name
;
breakData1
.
carbreak
=
this
.
from
.
fault
;
breakData1
.
status
=
1
;
breakData1
.
breakRemarks
=
this
.
from
.
problem
;
httpPostForJson
(
carsInforQuery
,
breakData1
).
then
((
res
)
=>
{});
httpPostForJson
(
failureDeclarationAdd
,
this
.
from
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
$notify
({
title
:
'
故障申报成功!
'
,
type
:
'
success
'
,
duration
:
2500
});
this
.
from
=
{
car
:
''
,
carcode
:
''
,
name
:
''
,
fault
:
''
,
problem
:
''
,
lat
:
''
,
lon
:
''
};
this
.
getLocationText
=
'
点击获取车辆位置
'
;
this
.
zuobiaoShow
=
false
;
}
else
{
this
.
$notify
({
title
:
res
.
head
.
message
,
type
:
'
error
'
,
duration
:
2500
})
this
.
from
=
{
car
:
''
,
carcode
:
''
,
name
:
''
,
fault
:
''
,
problem
:
''
,
lat
:
''
,
lon
:
''
};
this
.
getLocationText
=
'
点击获取车辆位置
'
;
this
.
zuobiaoShow
=
false
;
}
});
//修改车辆状态
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
from
.
carcode
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
putForJson
(
vehicleInformationUpdate
,{
id
:
res
.
data
.
content
[
0
].
id
,
status
:
1
}).
then
((
res
)
=>
{
this
.
$nextTick
(()
=>
{
window
.
location
.
reload
();
if
(
this
.
from
.
carcode
==
''
){
this
.
$notify
({
title
:
'
请输入车辆号码!
'
,
type
:
'
error
'
,
duration
:
2500
})
}
else
{
httpPostForJson
(
faultDayAdd
,
this
.
from
).
then
((
res
)
=>
{});
httpPostForJson
(
faultMonthAdd
,
this
.
from
).
then
((
res
)
=>
{});
httpPostForJson
(
faultYearAdd
,
this
.
from
).
then
((
res
)
=>
{});
let
breakData1
=
{};
breakData1
.
number
=
this
.
from
.
carcode
;
breakData1
.
driver
=
this
.
from
.
name
;
breakData1
.
carbreak
=
this
.
from
.
fault
;
breakData1
.
status
=
1
;
breakData1
.
breakRemarks
=
this
.
from
.
problem
;
httpPostForJson
(
carsInforQuery
,
breakData1
).
then
((
res
)
=>
{});
httpPostForJson
(
failureDeclarationAdd
,
this
.
from
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
$notify
({
title
:
'
故障申报成功!
'
,
type
:
'
success
'
,
duration
:
2500
});
this
.
from
=
{
car
:
''
,
carcode
:
''
,
name
:
''
,
fault
:
''
,
problem
:
''
,
lat
:
''
,
lon
:
''
};
this
.
getLocationText
=
'
点击获取车辆位置
'
;
this
.
zuobiaoShow
=
false
;
}
else
{
this
.
$notify
({
title
:
res
.
head
.
message
,
type
:
'
error
'
,
duration
:
2500
})
});
}
});
this
.
from
=
{
car
:
''
,
carcode
:
''
,
name
:
''
,
fault
:
''
,
problem
:
''
,
lat
:
''
,
lon
:
''
};
this
.
getLocationText
=
'
点击获取车辆位置
'
;
this
.
zuobiaoShow
=
false
;
}
});
//修改车辆状态
httpGet
(
vehicleInformationQuery
,{
number
:
this
.
from
.
carcode
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
putForJson
(
vehicleInformationUpdate
,{
id
:
res
.
data
.
content
[
0
].
id
,
status
:
1
}).
then
((
res
)
=>
{
this
.
$nextTick
(()
=>
{
window
.
location
.
reload
();
})
});
}
});
}
},
},
watch
:{
...
...
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