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
bd57fd24
Commit
bd57fd24
authored
Dec 06, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
12061610
parent
52481c49
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
143 additions
and
15 deletions
+143
-15
columns.js
src/pages/repair/order/columns.js
+3
-3
index.jsx
src/pages/repair/order/index.jsx
+135
-7
columns.js
src/pages/repair/outsourcing/columns.js
+3
-3
index.jsx
src/pages/repair/outsourcing/index.jsx
+2
-2
No files found.
src/pages/repair/order/columns.js
View file @
bd57fd24
...
@@ -70,7 +70,7 @@ function getcolumns(setdrawer) {
...
@@ -70,7 +70,7 @@ function getcolumns(setdrawer) {
enabledetail
:
false
,
enabledetail
:
false
,
add
:
''
,
add
:
''
,
edit
:
''
,
edit
:
''
,
list
:
'/repair/um
FailureRepair/queryNoFinis
hList'
,
list
:
'/repair/um
RepairOrder/queryMyDealwit
hList'
,
delete
:
'/repair/umFailureRepair/deleteById'
,
delete
:
'/repair/umFailureRepair/deleteById'
,
detail
:
''
,
detail
:
''
,
},
},
...
@@ -145,7 +145,7 @@ function getcolumns(setdrawer) {
...
@@ -145,7 +145,7 @@ function getcolumns(setdrawer) {
enabledetail
:
true
,
enabledetail
:
true
,
add
:
''
,
add
:
''
,
edit
:
''
,
edit
:
''
,
list
:
'/repair/um
FailureRepair/queryFinish
List'
,
list
:
'/repair/um
RepairOrder/query
List'
,
delete
:
'/repair/umFailureRepair/deleteById'
,
delete
:
'/repair/umFailureRepair/deleteById'
,
detail
:
''
,
detail
:
''
,
},
},
...
@@ -226,7 +226,7 @@ function getcolumns(setdrawer) {
...
@@ -226,7 +226,7 @@ function getcolumns(setdrawer) {
enabledetail
:
true
,
enabledetail
:
true
,
add
:
''
,
add
:
''
,
edit
:
''
,
edit
:
''
,
list
:
'/repair/um
FailureRepair/queryFinish
List'
,
list
:
'/repair/um
RepairOrderHis/query
List'
,
delete
:
'/repair/umFailureRepair/deleteById'
,
delete
:
'/repair/umFailureRepair/deleteById'
,
detail
:
''
,
detail
:
''
,
},
},
...
...
src/pages/repair/order/index.jsx
View file @
bd57fd24
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-06
09:16:46
* @Last Modified time: 2022-12-06
13:28:43
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -13,6 +13,7 @@ import PremButton from '@/components/PremButton';
...
@@ -13,6 +13,7 @@ import PremButton from '@/components/PremButton';
import
getcolumns
from
'./columns'
;
import
getcolumns
from
'./columns'
;
import
{
useRequest
}
from
'ahooks'
;
import
{
useRequest
}
from
'ahooks'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
Dropdown
,
Menu
,
Button
}
from
'antd'
;
function
Failure
(
props
)
{
function
Failure
(
props
)
{
const
actionRef
=
useRef
(),
const
actionRef
=
useRef
(),
...
@@ -100,6 +101,137 @@ function Failure(props) {
...
@@ -100,6 +101,137 @@ function Failure(props) {
);
);
};
};
const
more
=
(
text
,
row
,
_
,
action
)
=>
{
const
menu
=
(
<
Menu
items=
{
[
{
label
:
(
<
a
onClick=
{
()
=>
{
setDrawer
((
s
)
=>
({
...
s
,
visible
:
true
,
type
:
'editChildEquipment'
,
item
:
{
id
:
row
.
id
,
},
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,
// visible: false,
//
}));
// actionRef.current.reload();
//
}
//
},
}));
}
}
>
接单/派单
</
a
>
),
key
:
'0'
,
},
{
label
:
(
<
a
onClick=
{
()
=>
{
setDrawer
((
s
)
=>
({
...
s
,
visible
:
true
,
type
:
'resume'
,
item
:
{
id
:
row
.
id
,
},
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,
// visible: false,
//
}));
// actionRef.current.reload();
//
}
//
},
}));
}
}
>
完成维修
</
a
>
),
key
:
'1'
,
},
{
label
:
<
a
>
转追踪
</
a
>,
key
:
'2'
,
},
{
label
:
<
a
>
转外协
</
a
>,
key
:
'3'
,
},
{
label
:
<
a
>
转单
</
a
>,
key
:
'4'
,
},
{
label
:
<
a
>
退单
</
a
>,
key
:
'5'
,
},
{
label
:
<
a
>
效果验证
</
a
>,
key
:
'6'
,
},
{
label
:
<
a
>
追踪审核
</
a
>,
key
:
'7'
,
},
{
label
:
<
a
>
外协审核
</
a
>,
key
:
'8'
,
},
{
label
:
<
a
>
退单审核
</
a
>,
key
:
'9'
,
},
]
}
/>
);
return
(
<
Dropdown
overlay=
{
menu
}
trigger=
{
[
'click'
]
}
arrow=
{
true
}
getPopupContainer=
{
()
=>
containderef
.
current
}
>
<
Button
size=
"small"
>
更多
</
Button
>
</
Dropdown
>
);
};
const
columns
=
useMemo
(()
=>
{
const
columns
=
useMemo
(()
=>
{
let
defcolumn
=
getcolumns
(
setdrawer
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
columns
;
let
defcolumn
=
getcolumns
(
setdrawer
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
columns
;
let
defpath
=
getcolumns
(
setdrawer
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
pathconfig
??
{};
let
defpath
=
getcolumns
(
setdrawer
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
pathconfig
??
{};
...
@@ -107,11 +239,7 @@ function Failure(props) {
...
@@ -107,11 +239,7 @@ function Failure(props) {
title
:
'操作'
,
title
:
'操作'
,
valueType
:
'option'
,
valueType
:
'option'
,
width
:
150
,
width
:
150
,
render
:
(
text
,
row
,
_
,
action
)
=>
[
render
:
(
text
,
row
,
_
,
action
)
=>
[
more
(
text
,
row
,
_
,
action
)],
defpath
?.
enabledetail
&&
detail
(
text
,
row
,
_
,
action
),
defpath
?.
enableedit
&&
edit
(
text
,
row
,
_
,
action
),
defpath
?.
enabledelete
&&
remove
(
text
,
row
,
_
,
action
),
],
});
});
},
[
activeTabKey
]);
},
[
activeTabKey
]);
...
@@ -136,7 +264,7 @@ function Failure(props) {
...
@@ -136,7 +264,7 @@ function Failure(props) {
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
actionRef=
{
actionRef
}
actionRef=
{
actionRef
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
resizeable=
{
tru
e
}
resizeable=
{
fals
e
}
addconfig=
{
{
addconfig=
{
{
// access: 'sysDepartment_save',
// access: 'sysDepartment_save',
btn
:
{
btn
:
{
...
...
src/pages/repair/outsourcing/columns.js
View file @
bd57fd24
...
@@ -70,7 +70,7 @@ function getcolumns(setdrawer) {
...
@@ -70,7 +70,7 @@ function getcolumns(setdrawer) {
enabledetail
:
false
,
enabledetail
:
false
,
add
:
''
,
add
:
''
,
edit
:
''
,
edit
:
''
,
list
:
'/repair/um
FailureRepair/queryNoFinis
hList'
,
list
:
'/repair/um
OtherUnitsOrder/queryMyDealwit
hList'
,
delete
:
'/repair/umFailureRepair/deleteById'
,
delete
:
'/repair/umFailureRepair/deleteById'
,
detail
:
''
,
detail
:
''
,
},
},
...
@@ -145,7 +145,7 @@ function getcolumns(setdrawer) {
...
@@ -145,7 +145,7 @@ function getcolumns(setdrawer) {
enabledetail
:
false
,
enabledetail
:
false
,
add
:
''
,
add
:
''
,
edit
:
''
,
edit
:
''
,
list
:
'/repair/um
FailureRepair/queryNoFinish
List'
,
list
:
'/repair/um
OtherUnitsOrder/query
List'
,
delete
:
'/repair/umFailureRepair/deleteById'
,
delete
:
'/repair/umFailureRepair/deleteById'
,
detail
:
''
,
detail
:
''
,
},
},
...
@@ -220,7 +220,7 @@ function getcolumns(setdrawer) {
...
@@ -220,7 +220,7 @@ function getcolumns(setdrawer) {
enabledetail
:
false
,
enabledetail
:
false
,
add
:
''
,
add
:
''
,
edit
:
''
,
edit
:
''
,
list
:
'/repair/um
FailureRepair/queryNoFinish
List'
,
list
:
'/repair/um
OtherUnitsOrderHis/query
List'
,
delete
:
'/repair/umFailureRepair/deleteById'
,
delete
:
'/repair/umFailureRepair/deleteById'
,
detail
:
''
,
detail
:
''
,
},
},
...
...
src/pages/repair/outsourcing/index.jsx
View file @
bd57fd24
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-06
09:16:55
* @Last Modified time: 2022-12-06
16:05:58
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -131,7 +131,7 @@ function Failure(props) {
...
@@ -131,7 +131,7 @@ function Failure(props) {
return
(
return
(
<
div
style=
{
{
position
:
'relative'
}
}
>
<
div
style=
{
{
position
:
'relative'
}
}
>
<
AutoTable
<
AutoTable
pagetitle=
{
<
h3
className=
"page-title"
>
维修
工单
</
h3
>
}
pagetitle=
{
<
h3
className=
"page-title"
>
外协
工单
</
h3
>
}
columns=
{
columns
}
columns=
{
columns
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
actionRef=
{
actionRef
}
actionRef=
{
actionRef
}
...
...
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