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
0415b362
Commit
0415b362
authored
Dec 09, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
12091607
parent
73e33a92
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
37 deletions
+48
-37
columns.js
src/pages/device/account/columns.js
+1
-1
index.jsx
src/pages/device/account/index.jsx
+2
-2
columns.js
src/pages/device/model/columns.js
+2
-1
index.jsx
src/pages/repair/fault/index.jsx
+1
-1
index.jsx
src/pages/repair/order/index.jsx
+41
-32
columns.js
src/pages/setting/users/columns.js
+1
-0
No files found.
src/pages/device/account/columns.js
View file @
0415b362
...
...
@@ -158,7 +158,7 @@ function getcolumns(setdrawer) {
formItemProps
:
{
rules
:
[
{
required
:
tru
e
,
required
:
fals
e
,
message
:
'此项为必填项'
,
},
],
...
...
src/pages/device/account/index.jsx
View file @
0415b362
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-0
8 15:08:04
* @Last Modified time: 2022-12-0
9 15:56:35
*/
import
*
as
React
from
'react'
;
...
...
@@ -2071,7 +2071,7 @@ function Model(props) {
drawer=
{
drawer
}
actionRef=
{
actionRef
}
columns=
{
columns
}
urlParams=
{
urlParams
}
//
urlParams={urlParams}
formId=
{
'2'
}
onFinish=
{
async
(
vals
)
=>
{
let
equipmentCharReqList
=
[];
...
...
src/pages/device/model/columns.js
View file @
0415b362
...
...
@@ -19,11 +19,12 @@ function getcolumns(setdrawer) {
dataIndex
:
'modelDescription'
,
key
:
'modelDescription'
,
initialValue
:
'默认值'
,
width
:
250
,
hideInForm
:
false
,
search
:
false
,
},
{
title
:
'
设备
图片'
,
title
:
'图片'
,
dataIndex
:
'pictureUrl'
,
key
:
'picList'
,
search
:
false
,
...
...
src/pages/repair/fault/index.jsx
View file @
0415b362
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-07 11:19:30
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-0
8 16:06:42
* @Last Modified time: 2022-12-0
9 16:05:25
*/
import
*
as
React
from
'react'
;
...
...
src/pages/repair/order/index.jsx
View file @
0415b362
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-09 1
3:50:18
* @Last Modified time: 2022-12-09 1
4:23:40
*/
import
*
as
React
from
'react'
;
...
...
@@ -15,6 +15,7 @@ import { useRequest } from 'ahooks';
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
Dropdown
,
Menu
,
Button
,
message
}
from
'antd'
;
import
InitForm
from
'@/components/InitForm'
;
import
OrderHandle
from
'../platform/RepairOrderHandle'
;
function
Failure
(
props
)
{
const
actionRef
=
useRef
(),
...
...
@@ -114,29 +115,10 @@ function Failure(props) {
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'
editChildEquipment
'
,
type
:
'
jd
'
,
item
:
row
,
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();
//
}
//
},
title
:
'接单'
,
}));
}
}
>
...
...
@@ -333,7 +315,29 @@ function Failure(props) {
// ++++++下拉菜单+++++++
// 接单
const
Recevive
=
()
=>
{};
const
Recevive
=
()
=>
{
return
(
<
OrderHandle
type=
"wxjd"
id=
{
drawer
?.
item
.
id
}
actionRef=
{
actionRef
}
url=
"/repair/umRepairOrder/orderReceiving"
setdrawer=
{
setdrawer
}
/>
);
};
// 派单
const
disp
=
()
=>
{
return
(
<
OrderHandle
type=
"wxpd"
id=
{
drawer
?.
item
.
id
}
actionRef=
{
actionRef
}
url=
"/repair/umRepairOrder/dispatchById"
setdrawer=
{
setdrawer
}
/>
);
};
// 完成维修
const
Finishrepair
=
()
=>
{
const
columns
=
[
...
...
@@ -817,7 +821,7 @@ function Failure(props) {
formItemProps
:
{
rules
:
[
{
required
:
tru
e
,
required
:
fals
e
,
message
:
'此项为必填项'
,
},
],
...
...
@@ -896,7 +900,7 @@ function Failure(props) {
formItemProps
:
{
rules
:
[
{
required
:
tru
e
,
required
:
fals
e
,
message
:
'此项为必填项'
,
},
],
...
...
@@ -975,7 +979,7 @@ function Failure(props) {
formItemProps
:
{
rules
:
[
{
required
:
tru
e
,
required
:
fals
e
,
message
:
'此项为必填项'
,
},
],
...
...
@@ -1041,6 +1045,7 @@ function Failure(props) {
const
selectType
=
{
jd
:
<
Recevive
/>,
pd
:
<
disp
/>,
wcwx
:
<
Finishrepair
/>,
zzz
:
<
Toracking
/>,
zwx
:
<
Toout
/>,
...
...
@@ -1055,12 +1060,16 @@ function Failure(props) {
const
columns
=
useMemo
(()
=>
{
let
defcolumn
=
getcolumns
(
setdrawer
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
columns
;
let
defpath
=
getcolumns
(
setdrawer
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
pathconfig
??
{};
if
(
activeTabKey
==
1
)
{
return
defcolumn
.
concat
({
title
:
'操作'
,
valueType
:
'option'
,
width
:
150
,
render
:
(
text
,
row
,
_
,
action
)
=>
[
more
(
text
,
row
,
_
,
action
)],
});
}
else
{
return
defcolumn
;
}
},
[
activeTabKey
]);
const
pathconfig
=
useMemo
(()
=>
{
...
...
src/pages/setting/users/columns.js
View file @
0415b362
...
...
@@ -412,6 +412,7 @@ function getcolumns(setdrawer) {
hideInTable
:
true
,
dataIndex
:
'remarks'
,
valueType
:
'textarea'
,
width
:
120
,
key
:
'remarks'
,
search
:
false
,
},
...
...
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