Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
laravelzh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
冯超鹏
laravelzh
Commits
73152ebd
Commit
73152ebd
authored
Dec 20, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into develop
parents
f7b4232c
1c52ab5a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
AlarmOrderController.php
app/Http/Controllers/AlarmOrderController.php
+2
-0
index.vue
resources/js/views/alarm-order/index.vue
+15
-7
No files found.
app/Http/Controllers/AlarmOrderController.php
View file @
73152ebd
...
...
@@ -65,6 +65,7 @@ class AlarmOrderController extends Controller
->
where
(
$where
)
->
whereBetween
(
'alarm_order.created_at'
,
$whereBetween
)
->
limit
(
$limit
)
->
orderByDesc
(
'id'
)
->
get
()
->
toArray
();
$count
=
AlarmOrder
::
leftjoin
(
'reportpolice AS r'
,
'r.id'
,
'='
,
'alarm_order.reportpolice_id'
)
->
leftjoin
(
'users AS u'
,
'alarm_order.user_id'
,
'='
,
'u.id'
)
...
...
@@ -97,6 +98,7 @@ class AlarmOrderController extends Controller
->
leftjoin
(
'device_type AS t'
,
'r.policestatus'
,
'='
,
't.tid'
)
->
whereIn
(
'alarm_order.state'
,
explode
(
','
,
$request
->
input
(
'userstate'
)))
->
where
(
'u.id'
,
'='
,
Auth
::
id
())
->
orderByDesc
(
'id'
)
->
get
()
->
toArray
();
return
$this
->
jsonSuccessData
(
$orders
);
}
...
...
resources/js/views/alarm-order/index.vue
View file @
73152ebd
...
...
@@ -66,17 +66,17 @@
>
</el-pagination>
<el-table
:key=
"tableKey"
:data=
"alarmOrders"
border
fit
highlight-current-rows
>
<el-table-column
label=
"工单号"
width=
"
209
"
>
<el-table-column
label=
"工单号"
width=
"
180
"
>
<template
slot-scope=
"scope"
>
<span
@
click=
"handleCopy(scope.row.order_num,$event)"
>
{{
scope
.
row
.
order_num
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"设备编号"
width=
"
209
"
>
<el-table-column
label=
"设备编号"
width=
"
180
"
>
<
template
slot-scope=
"scope"
>
<span
@
click=
"handleCopy(scope.row.devicenumber,$event)"
>
{{
scope
.
row
.
devicenumber
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"接单人"
width=
"1
4
0"
>
<el-table-column
label=
"接单人"
width=
"1
0
0"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
name
}}
</span>
</
template
>
...
...
@@ -91,7 +91,7 @@
<span>
{{
scope
.
row
.
location
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"报警类型"
width=
"
13
0"
>
<el-table-column
label=
"报警类型"
width=
"
8
0"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
status_name
}}
</span>
</
template
>
...
...
@@ -113,7 +113,7 @@
<span>
{{
scope
.
row
.
updated_at
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"--"
>
<el-table-column
label=
"--"
width=
"140"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click=
"alarmShow(scope.row)"
>
详细信息
</el-button>
</
template
>
...
...
@@ -135,7 +135,7 @@
</el-steps>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<div
class=
"amap-page-container"
style=
"height: 350px;
width: 350px;
"
>
<div
class=
"amap-page-container"
style=
"height: 350px;"
>
<el-amap
ref=
"map"
vid=
"amapDemo"
...
...
@@ -187,7 +187,7 @@
<el-form-item
label=
"进度"
>
{{ isOrderOneFilter(order_content.isorderone) }}
</el-form-item>
<el-form-item
label=
"反馈内容"
>
{{ order_content.content }}
</el-form-item>
<el-form-item
size=
"large"
>
<el-button
type=
"primary"
:disabled=
"
order_content.isorderone < 4 || order_content.state === 2 ? true : false
"
@
click=
"onSubmitDetail(order_content.id)"
>
确认
</el-button>
<el-button
type=
"primary"
:disabled=
"
buttonStatus
"
@
click=
"onSubmitDetail(order_content.id)"
>
确认
</el-button>
</el-form-item>
</el-form>
</el-col>
...
...
@@ -274,6 +274,7 @@ export default {
data
()
{
const
_this
=
this
;
return
{
buttonStatus
:
true
,
order_content
:
{},
order_step
:
[],
marker
:
{
...
...
@@ -384,6 +385,7 @@ export default {
onSubmitDetail
(
id
)
{
const
data
=
{
state
:
2
,
isorderone
:
4
,
schedule
:
JSON
.
stringify
({
'schedule'
:
5
,
'content'
:
'恭喜,你的工单完成啦!'
,
}),
...
...
@@ -422,6 +424,7 @@ export default {
steps
[
2
]
=
'等待'
;
steps
[
3
]
=
'检修'
;
steps
[
4
]
=
'完成'
;
steps
[
5
]
=
'审核通过'
;
return
steps
[
id
];
},
stepFilter
(
step
)
{
...
...
@@ -458,6 +461,7 @@ export default {
},
// 工单详情
orderDetail
(
id
)
{
this
.
buttonStatus
=
true
;
alarmOrderDetail
(
id
).
then
(
response
=>
{
const
all_steps
=
[{
schedule
:
1
,
content
:
''
,
created_at
:
''
,
finish_status
:
'finish'
,
...
...
@@ -485,6 +489,10 @@ export default {
}
}
this
.
order_step
=
all_steps
;
console
.
log
((
this
.
order_content
.
isorderone
===
4
)
&&
(
this
.
order_content
.
state
===
4
));
if
((
this
.
order_content
.
isorderone
===
3
)
&&
(
this
.
order_content
.
state
===
4
))
{
this
.
buttonStatus
=
false
;
}
if
(
response
.
data
.
state
===
2
)
{
this
.
order_content
.
isorderone
=
5
;
}
...
...
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