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
06098d35
Commit
06098d35
authored
2 years ago
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
d5684962
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
index.jsx
src/pages/repair/order/index.jsx
+19
-10
RepairOrderHandle.jsx
src/pages/repair/platform/RepairOrderHandle.jsx
+2
-1
No files found.
src/pages/repair/order/index.jsx
View file @
06098d35
...
...
@@ -2,11 +2,11 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-
22 15:54:06
* @Last Modified time: 2022-12-
30 17:32:29
*/
import
*
as
React
from
'react'
;
import
{
useState
,
useMemo
,
useRef
}
from
'react'
;
import
{
useState
,
useMemo
,
useRef
,
useEffect
}
from
'react'
;
import
DrawerPro
from
'@/components/DrawerPro'
;
import
AutoTable
from
'@/components/AutoTable'
;
import
PremButton
from
'@/components/PremButton'
;
...
...
@@ -38,7 +38,14 @@ function Failure(props) {
}
},
});
const
perData
=
useRequest
(
async
()
=>
{
let
res
=
await
doFetch
({
url
:
'/auth/sysPermission/queryButton'
,
params
:
{
parentId
:
'400300'
},
});
return
res
?.
data
?.
dataList
;
});
console
.
log
(
perData
.
data
);
const
detail
=
(
text
,
row
,
_
,
action
)
=>
{
return
(
<
PremButton
...
...
@@ -105,7 +112,9 @@ function Failure(props) {
};
// 更多
const
more
=
(
text
,
row
,
_
,
action
)
=>
{
const
More
=
(
text
,
row
,
_
,
action
)
=>
{
console
.
log
(
perData
.
data
);
const
menu
=
(
<
Menu
items=
{
[
...
...
@@ -116,14 +125,14 @@ function Failure(props) {
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'
j
d'
,
type
:
'
p
d'
,
item
:
row
,
val
:
'only'
,
title
:
'接单'
,
title
:
row
?.
status
==
8
?
'派单'
:
'接单'
,
}));
}
}
>
接单/派单
{
row
?.
status
==
8
?
'派单'
:
'接单'
}
</
a
>
),
key
:
'0'
,
...
...
@@ -328,7 +337,7 @@ function Failure(props) {
);
};
// 派单
const
d
isp
=
()
=>
{
const
D
isp
=
()
=>
{
return
(
<
OrderHandle
type=
"wxpd"
...
...
@@ -1101,7 +1110,7 @@ function Failure(props) {
const
selectType
=
{
jd
:
<
Recevive
/>,
pd
:
<
d
isp
/>,
pd
:
<
D
isp
/>,
wcwx
:
<
Finishrepair
/>,
zzz
:
<
Toracking
/>,
zwx
:
<
Toout
/>,
...
...
@@ -1132,7 +1141,7 @@ function Failure(props) {
title
:
'操作'
,
valueType
:
'option'
,
width
:
150
,
render
:
(
text
,
row
,
_
,
action
)
=>
[
m
ore
(
text
,
row
,
_
,
action
)],
render
:
(
text
,
row
,
_
,
action
)
=>
[
M
ore
(
text
,
row
,
_
,
action
)],
});
}
else
{
return
defcolumn
;
...
...
This diff is collapsed.
Click to expand it.
src/pages/repair/platform/RepairOrderHandle.jsx
View file @
06098d35
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-05 11:13:26
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-30 1
0:16:39
* @Last Modified time: 2022-12-30 1
6:25:12
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
...
@@ -10,6 +10,7 @@ import InitForm from '@/components/InitForm';
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
message
}
from
'antd'
;
const
App
=
({
type
,
id
,
actionRef
,
url
,
setdrawer
})
=>
{
console
.
log
(
type
);
const
columns
=
{
wxjd
:
[
{
...
...
This diff is collapsed.
Click to expand it.
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