Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
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
wuhao
ems3.3
Commits
9e3ebb1d
Commit
9e3ebb1d
authored
Dec 01, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
12012048
parent
673a72b7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
306 additions
and
307 deletions
+306
-307
columns.js
src/pages/repair/failure/columns.js
+147
-148
index.jsx
src/pages/repair/failure/index.jsx
+159
-159
No files found.
src/pages/repair/failure/columns.js
View file @
9e3ebb1d
function
getcolumns
(
setdrawer
)
{
return
[
{
"tab"
:
"已完成"
,
"key"
:
"1"
,
"columns"
:
[
tab
:
'未完成'
,
key
:
'1'
,
columns
:
[
{
"title"
:
"报修单号"
,
"dataIndex"
:
"repairNo"
,
"key"
:
"repairNo"
title
:
'报修单号'
,
dataIndex
:
'repairNo'
,
key
:
'repairNo'
,
},
{
"title"
:
"设备编号"
,
"dataIndex"
:
"equipmentNo"
,
"key"
:
"equipmentNo"
title
:
'设备编号'
,
dataIndex
:
'equipmentNo'
,
key
:
'equipmentNo'
,
},
{
"title"
:
"设备名称"
,
"dataIndex"
:
"equipmentName"
,
"key"
:
"equipmentName"
title
:
'设备名称'
,
dataIndex
:
'equipmentName'
,
key
:
'equipmentName'
,
},
{
"title"
:
"故障描述"
,
"dataIndex"
:
"faultDescription"
,
"key"
:
"faultDescription"
,
"valueType"
:
"textarea"
title
:
'故障描述'
,
dataIndex
:
'faultDescription'
,
key
:
'faultDescription'
,
valueType
:
'textarea'
,
},
{
"title"
:
"报修人员"
,
"dataIndex"
:
"repairUserName"
,
"key"
:
"repairUserName"
title
:
'报修人员'
,
dataIndex
:
'repairUserName'
,
key
:
'repairUserName'
,
},
{
"title"
:
"报修时间"
,
"dataIndex"
:
"repairTimeList"
,
"key"
:
"repairTimeList"
,
"valueType"
:
"dateTimeRange"
title
:
'报修时间'
,
dataIndex
:
'repairTimeList'
,
key
:
'repairTimeList'
,
valueType
:
'dateTimeRange'
,
},
{
"title"
:
"维修单号"
,
"dataIndex"
:
"repairOrderNo"
,
"key"
:
"repairOrderNo"
title
:
'维修单号'
,
dataIndex
:
'repairOrderNo'
,
key
:
'repairOrderNo'
,
},
{
"title"
:
"工单状态"
,
"dataIndex"
:
"statusName"
,
"key"
:
"status"
,
"valueType"
:
"radio"
,
"options"
:
[
title
:
'工单状态'
,
dataIndex
:
'statusName'
,
key
:
'status'
,
valueType
:
'radio'
,
options
:
[
{
"label"
:
"待维修"
,
"value"
:
"1"
label
:
'待维修'
,
value
:
'1'
,
},
{
"label"
:
"维修中"
,
"value"
:
"2"
}
]
}
label
:
'维修中'
,
value
:
'2'
,
},
],
},
],
"pathconfig"
:
{
"enableadd"
:
true
,
"enableedit"
:
false
,
"enabledelete"
:
true
,
"enabledetail"
:
false
,
"add"
:
""
,
"edit"
:
""
,
"list"
:
""
,
"delete"
:
""
,
"detail"
:
""
}
pathconfig
:
{
enableadd
:
true
,
enableedit
:
false
,
enabledelete
:
true
,
enabledetail
:
false
,
add
:
''
,
edit
:
''
,
list
:
'/repair/umFailureRepair/queryNoFinishList'
,
delete
:
''
,
detail
:
''
,
},
},
{
"tab"
:
"已完成"
,
"key"
:
"2"
,
"columns"
:
[
tab
:
'已完成'
,
key
:
'2'
,
columns
:
[
{
"title"
:
"报修单号"
,
"dataIndex"
:
"repairNo"
,
"key"
:
"repairNo"
title
:
'报修单号'
,
dataIndex
:
'repairNo'
,
key
:
'repairNo'
,
},
{
"title"
:
"设备编号"
,
"dataIndex"
:
"equipmentNo"
,
"key"
:
"equipmentNo"
title
:
'设备编号'
,
dataIndex
:
'equipmentNo'
,
key
:
'equipmentNo'
,
},
{
"title"
:
"设备名称"
,
"dataIndex"
:
"equipmentName"
,
"key"
:
"equipmentName"
title
:
'设备名称'
,
dataIndex
:
'equipmentName'
,
key
:
'equipmentName'
,
},
{
"title"
:
"故障描述"
,
"dataIndex"
:
"faultDescription"
,
"key"
:
"faultDescription"
title
:
'故障描述'
,
dataIndex
:
'faultDescription'
,
key
:
'faultDescription'
,
},
{
"title"
:
"报修人员"
,
"dataIndex"
:
"repairUserName"
,
"key"
:
"repairUserName"
title
:
'报修人员'
,
dataIndex
:
'repairUserName'
,
key
:
'repairUserName'
,
},
{
"title"
:
"报修时间"
,
"dataIndex"
:
"repairTime"
,
"key"
:
"repairTime"
title
:
'报修时间'
,
dataIndex
:
'repairTime'
,
key
:
'repairTime'
,
},
{
"title"
:
"关单时间"
,
"dataIndex"
:
"repairCloseTime"
,
"key"
:
"repairCloseTime"
title
:
'关单时间'
,
dataIndex
:
'repairCloseTime'
,
key
:
'repairCloseTime'
,
},
{
"title"
:
"维修单号"
,
"dataIndex"
:
"repairOrderNo"
,
"key"
:
"repairOrderNo"
title
:
'维修单号'
,
dataIndex
:
'repairOrderNo'
,
key
:
'repairOrderNo'
,
},
{
"title"
:
"工单状态"
,
"dataIndex"
:
"statusName"
,
"key"
:
"status"
,
"valueType"
:
"radio"
,
"options"
:
[
title
:
'工单状态'
,
dataIndex
:
'statusName'
,
key
:
'status'
,
valueType
:
'radio'
,
options
:
[
{
"label"
:
"待维修"
,
"value"
:
"1"
label
:
'待维修'
,
value
:
'1'
,
},
{
"label"
:
"维修中"
,
"value"
:
"2"
}
]
}
label
:
'维修中'
,
value
:
'2'
,
},
],
},
],
"pathconfig"
:
{
"enableadd"
:
true
,
"enableedit"
:
true
,
"enabledelete"
:
true
,
"enabledetail"
:
true
,
"add"
:
""
,
"edit"
:
""
,
"list"
:
""
,
"delete"
:
""
,
"detail"
:
""
}
}
];
}
export
default
getcolumns
;
\ No newline at end of file
pathconfig
:
{
enableadd
:
true
,
enableedit
:
true
,
enabledelete
:
true
,
enabledetail
:
true
,
add
:
''
,
edit
:
''
,
list
:
'/repair/umFailureRepair/queryFinishList'
,
delete
:
''
,
detail
:
''
,
},
},
];
}
export
default
getcolumns
;
src/pages/repair/failure/index.jsx
View file @
9e3ebb1d
import
*
as
React
from
'react'
;
import
{
useState
,
useMemo
,
useRef
}
from
'react'
;
import
DrawerPro
from
'@/components/DrawerPro'
;
import
AutoTable
from
'@/components/AutoTable'
;
import
PremButton
from
'@/components/PremButton'
;
import
getcolumns
from
'./columns'
;
import
{
useRequest
}
from
'ahooks'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
useState
,
useMemo
,
useRef
}
from
'react'
;
import
DrawerPro
from
'@/components/DrawerPro'
;
import
AutoTable
from
'@/components/AutoTable'
;
import
PremButton
from
'@/components/PremButton'
;
import
getcolumns
from
'./columns'
;
import
{
useRequest
}
from
'ahooks'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
function
Failure
(
props
)
{
function
Failure
(
props
)
{
const
actionRef
=
useRef
(),
formRef
=
useRef
();
const
[
drawer
,
setdrawer
]
=
useState
({
...
...
@@ -116,7 +116,7 @@ import * as React from 'react';
return
(
<
div
style=
{
{
position
:
'relative'
}
}
>
<
AutoTable
pagetitle=
"故障报修"
pagetitle=
{
<
h3
className=
"page-title"
>
故障报修
</
h3
>
}
columns=
{
columns
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
actionRef=
{
actionRef
}
...
...
@@ -126,6 +126,7 @@ import * as React from 'react';
// access: 'sysDepartment_save',
btn
:
{
disabled
:
false
,
type
:
'primary'
,
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
...
...
@@ -169,7 +170,6 @@ import * as React from 'react';
/>
</
div
>
);
}
export
default
Failure
;
}
export
default
Failure
;
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