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
09b97e6e
Commit
09b97e6e
authored
Nov 25, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1125
parent
bc536daa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
12 deletions
+36
-12
index.jsx
src/pages/repair/failure/index.jsx
+36
-12
No files found.
src/pages/repair/failure/index.jsx
View file @
09b97e6e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-11-25 09:18:03
* @Date: 2022-11-25 09:18:03
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-11-25 1
4:17:4
8
* @Last Modified time: 2022-11-25 1
7:42:1
8
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -11,6 +11,7 @@ import DrawerPro from '@/components/DrawerPro';
...
@@ -11,6 +11,7 @@ import DrawerPro from '@/components/DrawerPro';
import
AutoTable
from
'@/components/AutoTable'
;
import
AutoTable
from
'@/components/AutoTable'
;
import
PremButton
from
'@/components/PremButton'
;
import
PremButton
from
'@/components/PremButton'
;
import
getcolumns
from
'./columns'
;
import
getcolumns
from
'./columns'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
function
Failure
(
props
)
{
function
Failure
(
props
)
{
const
actionRef
=
useRef
(),
const
actionRef
=
useRef
(),
...
@@ -117,17 +118,20 @@ function Failure(props) {
...
@@ -117,17 +118,20 @@ function Failure(props) {
},
},
},
},
},
},
{
title
:
'故障描述'
,
dataIndex
:
'faultDescription'
,
key
:
'faultDescription'
},
{
title
:
'故障图片'
,
dataIndex
:
'pictureId'
,
key
:
'pictureId'
,
valueType
:
'updateImage'
},
{
{
title
:
'工单状态'
,
title
:
'故障描述'
,
dataIndex
:
'statusName'
,
valueType
:
'textarea'
,
key
:
'status'
,
dataIndex
:
'faultDescription'
,
valueType
:
'radio'
,
key
:
'faultDescription'
,
options
:
[
},
{
label
:
'待维修'
,
value
:
'1'
},
{
{
label
:
'维修中'
,
value
:
'2'
},
title
:
'故障图片'
,
],
dataIndex
:
'pictureId'
,
key
:
'pictureId'
,
valueType
:
'uploadImage'
,
fieldProps
:
{
limit
:
2
,
},
},
},
];
];
const
columns
=
useMemo
(()
=>
{
const
columns
=
useMemo
(()
=>
{
...
@@ -171,9 +175,29 @@ function Failure(props) {
...
@@ -171,9 +175,29 @@ function Failure(props) {
setdrawer
((
s
)
=>
({
setdrawer
((
s
)
=>
({
...
s
,
...
s
,
visible
:
true
,
visible
:
true
,
item
:
null
,
item
:
{
isShutdown
:
1
,
},
title
:
'新增'
,
title
:
'新增'
,
val
:
'add'
,
val
:
'add'
,
onFinish
:
async
(
vals
)
=>
{
console
.
log
(
vals
);
let
params
=
{
...
vals
,
};
let
res
=
await
doFetch
({
url
:
urlParams
.
save
,
params
,
});
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'新增保修单成功!'
);
setdrawer
((
s
)
=>
({
...
s
,
visible
:
false
,
}));
actionRef
.
current
.
reload
();
}
},
}));
}));
},
},
},
},
...
...
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