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
b077a8ab
Commit
b077a8ab
authored
Dec 08, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c08a9aa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
23 deletions
+93
-23
index.jsx
src/pages/repair/order/index.jsx
+93
-23
No files found.
src/pages/repair/order/index.jsx
View file @
b077a8ab
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-08 1
7:52:09
* @Last Modified time: 2022-12-08 1
9:39:12
*/
import
*
as
React
from
'react'
;
...
...
@@ -160,25 +160,6 @@ function Failure(props) {
},
val
:
'only'
,
title
:
'完成维修'
,
// onFinish: async (vals) =>
{
// //console.log(1);
// let params =
{
// ...vals,
// id: row.id,
//
};
// let res = await doFetch(
{
// url: urlParams.save,
// params,
//
});
// if (res.code === '0000')
{
// message.success('新增成功!');
// setdrawer((s) => (
{
// ...s,
// open: false,
//
}));
// actionRef.current.reload();
//
}
//
},
}));
}
}
>
...
...
@@ -188,7 +169,24 @@ function Failure(props) {
key
:
'1'
,
},
{
label
:
<
a
>
转追踪
</
a
>,
label
:
(
<
a
onClick=
{
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'zzz'
,
item
:
{
id
:
row
.
id
,
},
val
:
'only'
,
title
:
'转追踪'
,
}));
}
}
>
转追踪
</
a
>
),
key
:
'2'
,
},
{
...
...
@@ -356,18 +354,90 @@ function Failure(props) {
<>
<
InitForm
fields=
{
columns
}
onFinish=
{
(
vals
)
=>
{
console
.
log
(
vals
);
onFinish=
{
async
(
vals
)
=>
{
let
params
=
{
repairComplete
:
{
faultType
:
vals
.
faultType
,
faultName
:
vals
.
faultName
,
faultCause
:
vals
.
faultCause
,
repairType
:
vals
.
repairType
,
isShutdown
:
vals
.
isShutdown
,
repairContent
:
vals
.
repairContent
,
},
id
:
row
.
id
,
};
let
res
=
await
doFetch
({
url
:
'/repair/umRepairOrder/completeRepair'
,
params
,
});
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'新增成功!'
);
setdrawer
((
s
)
=>
({
...
s
,
open
:
false
,
}));
actionRef
.
current
.
reload
();
}
}
}
{
...
drawer
}
/>
</>
);
};
// 转追踪
const
Toracking
=
()
=>
{
return
(
<>
<
InitForm
fields=
{
[
{
title
:
'申请追踪原因'
,
dataIndex
:
'reason'
,
key
:
'reason'
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
},
]
}
/>
</>
);
};
const
Toout
=
()
=>
{
return
(
<>
<
InitForm
fields=
{
[
{
title
:
'申请外协原因'
,
dataIndex
:
'reason'
,
key
:
'reason'
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
},
]
}
/>
</>
);
};
const
selectType
=
{
jd
:
<
Recevive
/>,
wcwx
:
<
Finishrepair
/>,
zzz
:
<
Toracking
/>,
zzzong
:
<
Toout
/>,
};
const
columns
=
useMemo
(()
=>
{
...
...
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