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
6786a15d
Commit
6786a15d
authored
Feb 09, 2023
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
bf190c12
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
49 additions
and
51 deletions
+49
-51
settings.json
.vscode/settings.json
+1
-1
index.jsx
src/components/AutoTable/index.jsx
+18
-19
mtable.jsx
src/components/AutoTable/mtable.jsx
+4
-3
columns.js
src/pages/check/task/columns.js
+1
-1
index.jsx
src/pages/check/task/index.jsx
+1
-0
index.jsx
src/pages/maintain/plan/index.jsx
+8
-1
columns.js
src/pages/maintain/workOrder/columns.js
+4
-18
index.jsx
src/pages/maintain/workOrder/index.jsx
+5
-1
columns.js
src/pages/repair/track/columns.js
+5
-5
index.jsx
src/pages/repair/track/index.jsx
+2
-2
No files found.
.vscode/settings.json
View file @
6786a15d
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
"editor.formatOnSave"
:
true
,
"editor.formatOnSave"
:
true
,
"prettier.requireConfig"
:
true
,
"prettier.requireConfig"
:
true
,
"editor.defaultFormatter"
:
"esbenp.prettier-vscode"
,
"editor.defaultFormatter"
:
"esbenp.prettier-vscode"
,
"cSpell.words"
:
[
"onselecte"
,
"setdrawer"
,
"Sider"
]
"cSpell.words"
:
[
"onselecte"
,
"
pagetitle"
,
"
setdrawer"
,
"Sider"
]
}
}
src/components/AutoTable/index.jsx
View file @
6786a15d
...
@@ -29,7 +29,7 @@ export default (props) => {
...
@@ -29,7 +29,7 @@ export default (props) => {
),
),
};
};
//右上角
extra 类型 1.reactDom 2.string 以逗号隔开 为none时不显示
//右上角
page
extra 类型 1.reactDom 2.string 以逗号隔开 为none时不显示
const
renderextra
=
()
=>
{
const
renderextra
=
()
=>
{
if
(
props
.
pageextra
&&
!
isString
(
props
.
pageextra
))
{
if
(
props
.
pageextra
&&
!
isString
(
props
.
pageextra
))
{
if
(
typeof
props
?.
pageextra
==
'function'
)
{
if
(
typeof
props
?.
pageextra
==
'function'
)
{
...
@@ -50,9 +50,8 @@ export default (props) => {
...
@@ -50,9 +50,8 @@ export default (props) => {
});
});
}
}
};
};
const
match
=
useMatch
({
path
:
'/welcome'
});
const
items
=
useMemo
(()
=>
{
const
items
=
useMemo
(()
=>
{
if
(
props
.
nocardtab
&&
props
.
tabList
)
{
if
(
props
.
tabList
)
{
return
props
.
tabList
.
map
((
it
)
=>
{
return
props
.
tabList
.
map
((
it
)
=>
{
return
{
return
{
label
:
it
.
tab
,
label
:
it
.
tab
,
...
@@ -60,20 +59,20 @@ export default (props) => {
...
@@ -60,20 +59,20 @@ export default (props) => {
children
:
(
children
:
(
<>
<>
<
div
style=
{
{
display
:
'flex'
,
width
:
'100%'
}
}
>
<
div
style=
{
{
display
:
'flex'
,
width
:
'100%'
}
}
>
{
(
childposition
==
'left'
||
!
childposition
)
&&
props
.
children
}
{
(
props
.
childposition
==
'left'
||
!
props
.
childposition
)
&&
props
.
children
}
<
div
<
div
style=
{
{
style=
{
{
flex
:
1
,
flex
:
1
,
overflow
:
'hidden'
,
overflow
:
'hidden'
,
paddingLeft
:
`${
childposition == 'left' && props.children
? '15px' : '0'}`
,
paddingLeft
:
`${
props.childposition == 'left'
? '15px' : '0'}`
,
}
}
}
}
>
>
{
childposition
==
'top'
&&
props
.
children
}
{
props
.
childposition
==
'top'
&&
props
.
children
}
<
Mtable
{
...
props
}
activeTabKey=
{
null
}
/>
<
Mtable
{
...
props
}
iscurrent=
{
props
?.
activeTabKey
==
it
.
key
}
/>
</
div
>
</
div
>
{
(
childposition
==
'right'
||
!
childposition
)
&&
props
.
children
}
{
(
props
.
childposition
==
'right'
||
!
props
.
childposition
)
&&
props
.
children
}
</
div
>
</
div
>
{
childposition
==
'bottom'
&&
props
.
children
}
{
props
.
childposition
==
'bottom'
&&
props
.
children
}
</>
</>
),
),
};
};
...
@@ -85,16 +84,16 @@ export default (props) => {
...
@@ -85,16 +84,16 @@ export default (props) => {
{
props
.
withCard
===
false
?
(
{
props
.
withCard
===
false
?
(
<>
<>
<
div
style=
{
{
display
:
'flex'
,
width
:
'100%'
}
}
>
<
div
style=
{
{
display
:
'flex'
,
width
:
'100%'
}
}
>
{
(
childposition
==
'left'
||
!
childposition
)
&&
props
.
children
}
{
(
props
.
childposition
==
'left'
||
!
props
.
childposition
)
&&
props
.
children
}
<
div
style=
{
{
flex
:
1
,
width
:
'100%'
}
}
>
<
div
style=
{
{
flex
:
1
,
width
:
'100%'
}
}
>
{
childposition
==
'top'
&&
props
.
children
}
{
props
.
childposition
==
'top'
&&
props
.
children
}
<
Mtable
{
...
props
}
/>
<
Mtable
{
...
props
}
/>
</
div
>
</
div
>
{
(
childposition
==
'right'
||
!
childposition
)
&&
props
.
children
}
{
(
props
.
childposition
==
'right'
||
!
props
.
childposition
)
&&
props
.
children
}
</
div
>
</
div
>
{
childposition
==
'bottom'
&&
props
.
children
}
{
props
.
childposition
==
'bottom'
&&
props
.
children
}
</>
</>
)
:
!
props
.
nocardtab
?
(
)
:
!
props
.
tabList
?
(
<
Card
<
Card
bordered=
{
props
.
bordered
===
false
?
false
:
true
}
bordered=
{
props
.
bordered
===
false
?
false
:
true
}
style=
{
{
height
:
'100%'
}
}
style=
{
{
height
:
'100%'
}
}
...
@@ -105,20 +104,20 @@ export default (props) => {
...
@@ -105,20 +104,20 @@ export default (props) => {
onTabChange=
{
props
.
onTabChange
}
onTabChange=
{
props
.
onTabChange
}
>
>
<
div
style=
{
{
display
:
'flex'
,
width
:
'100%'
}
}
>
<
div
style=
{
{
display
:
'flex'
,
width
:
'100%'
}
}
>
{
(
childposition
==
'left'
||
!
childposition
)
&&
props
.
children
}
{
(
props
.
childposition
==
'left'
||
!
props
.
childposition
)
&&
props
.
children
}
<
div
<
div
style=
{
{
style=
{
{
flex
:
1
,
flex
:
1
,
overflow
:
'hidden'
,
overflow
:
'hidden'
,
paddingLeft
:
`${
childposition == 'left' && props.children
? '15px' : '0'}`
,
paddingLeft
:
`${
props.childposition == 'left'
? '15px' : '0'}`
,
}
}
}
}
>
>
{
childposition
==
'top'
&&
props
.
children
}
{
props
.
childposition
==
'top'
&&
props
.
children
}
<
Mtable
{
...
props
}
/>
<
Mtable
{
...
props
}
/>
</
div
>
</
div
>
{
(
childposition
==
'right'
||
!
childposition
)
&&
props
.
children
}
{
(
props
.
childposition
==
'right'
||
!
props
.
childposition
)
&&
props
.
children
}
</
div
>
</
div
>
{
childposition
==
'bottom'
&&
props
.
children
}
{
props
.
childposition
==
'bottom'
&&
props
.
children
}
</
Card
>
</
Card
>
)
:
(
)
:
(
<
div
className=
"tabsTable"
>
<
div
className=
"tabsTable"
>
...
...
src/components/AutoTable/mtable.jsx
View file @
6786a15d
...
@@ -42,6 +42,7 @@ const Mtable = (props) => {
...
@@ -42,6 +42,7 @@ const Mtable = (props) => {
getDefaultSelected
,
//存在默认选中向上返回选中值
getDefaultSelected
,
//存在默认选中向上返回选中值
resizeable
=
false
,
resizeable
=
false
,
dataSource
,
dataSource
,
iscurrent
=
true
,
}
=
props
;
}
=
props
;
const
actionRefs
=
actionRef
??
useRef
(),
const
actionRefs
=
actionRef
??
useRef
(),
formRefs
=
formRef
??
useRef
(),
formRefs
=
formRef
??
useRef
(),
...
@@ -275,9 +276,9 @@ const Mtable = (props) => {
...
@@ -275,9 +276,9 @@ const Mtable = (props) => {
if
(
resizeable
)
{
if
(
resizeable
)
{
await
initDrage
();
await
initDrage
();
}
}
actionRefs
?.
current
?.
reload
();
iscurrent
&&
actionRefs
?.
current
?.
reload
();
actionRefs
?.
current
?.
reset
();
//
actionRefs?.current?.reset();
},
[
columns
,
extraparams
,
path
,
activeTabKey
,
refreshDep
]);
},
[
columns
,
extraparams
,
path
,
activeTabKey
,
refreshDep
,
iscurrent
]);
//缩放表格
//缩放表格
const
handleResize
=
const
handleResize
=
...
...
src/pages/check/task/columns.js
View file @
6786a15d
...
@@ -400,7 +400,7 @@ function getcolumns(setdrawer) {
...
@@ -400,7 +400,7 @@ function getcolumns(setdrawer) {
hideInForm
:
true
,
hideInForm
:
true
,
valueType
:
'dateRange'
,
valueType
:
'dateRange'
,
render
:
(
text
,
row
,
_
,
action
)
=>
{
render
:
(
text
,
row
,
_
,
action
)
=>
{
return
<
span
>
{
row
.
checkCloseDate
}
<
/span>
;
return
<
span
style
=
{{
color
:
'rgba(0, 0, 0, 0.85)'
}}
>
{
row
.
checkCloseDate
}
<
/span>
;
},
},
},
},
{
{
...
...
src/pages/check/task/index.jsx
View file @
6786a15d
...
@@ -582,6 +582,7 @@ function Task(props) {
...
@@ -582,6 +582,7 @@ function Task(props) {
actionRef=
{
actionRef
}
actionRef=
{
actionRef
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
resizeable=
{
false
}
resizeable=
{
false
}
nocardtab=
{
true
}
addconfig=
{
{
addconfig=
{
{
// access: 'sysDepartment_save',
// access: 'sysDepartment_save',
btn
:
{
btn
:
{
...
...
src/pages/maintain/plan/index.jsx
View file @
6786a15d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2023-01-16 15:35:00
* @Date: 2023-01-16 15:35:00
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-09 1
3:46:49
* @Last Modified time: 2023-02-09 1
7:32:05
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -589,6 +589,13 @@ function Plan(props) {
...
@@ -589,6 +589,13 @@ function Plan(props) {
:
columns
:
columns
}
}
detailpath=
{
pathconfig
?.
detail
||
null
}
detailpath=
{
pathconfig
?.
detail
||
null
}
onValuesChange=
{
(
changedValues
,
allValues
)
=>
{
if
(
Object
.
keys
(
changedValues
)[
0
]
==
'maintainFrequency'
)
{
formRef
?.
current
?.
setFieldsValue
({
paramList
:
[],
});
}
}
}
// detailData={drawer?.item}
// detailData={drawer?.item}
defaultFormValue=
{
drawer
?.
item
}
defaultFormValue=
{
drawer
?.
item
}
params=
{
{
id
:
drawer
?.
item
?.
id
}
}
params=
{
{
id
:
drawer
?.
item
?.
id
}
}
...
...
src/pages/maintain/workOrder/columns.js
View file @
6786a15d
...
@@ -94,7 +94,8 @@ function getcolumns(setdrawer) {
...
@@ -94,7 +94,8 @@ function getcolumns(setdrawer) {
<
span
<
span
style
=
{{
style
=
{{
color
:
`
${
color
:
`
${
dayjs
(
row
.
planMaintainDate
).
valueOf
()
<
dayjs
().
format
(
'YYYY-MM-DD'
).
valueOf
()
dayjs
(
row
.
planMaintainDate
).
valueOf
()
<
dayjs
(
dayjs
().
format
(
'YYYY-MM-DD'
)).
valueOf
()
?
'#f50'
?
'#f50'
:
'rgba(0, 0, 0, 0.85)'
:
'rgba(0, 0, 0, 0.85)'
}
`
,
}
`
,
...
@@ -253,7 +254,8 @@ function getcolumns(setdrawer) {
...
@@ -253,7 +254,8 @@ function getcolumns(setdrawer) {
<
span
<
span
style
=
{{
style
=
{{
color
:
`
${
color
:
`
${
dayjs
(
row
.
planMaintainDate
).
valueOf
()
<
dayjs
().
format
(
'YYYY-MM-DD'
).
valueOf
()
dayjs
(
row
.
planMaintainDate
).
valueOf
()
<
dayjs
(
dayjs
().
format
(
'YYYY-MM-DD'
)).
valueOf
()
?
'#f50'
?
'#f50'
:
'rgba(0, 0, 0, 0.85)'
:
'rgba(0, 0, 0, 0.85)'
}
`
,
}
`
,
...
@@ -407,22 +409,6 @@ function getcolumns(setdrawer) {
...
@@ -407,22 +409,6 @@ function getcolumns(setdrawer) {
dataIndex
:
'planMaintainDate'
,
dataIndex
:
'planMaintainDate'
,
key
:
'planMaintainDateList'
,
key
:
'planMaintainDateList'
,
valueType
:
'dateRange'
,
valueType
:
'dateRange'
,
render
:
(
text
,
row
,
_
,
action
)
=>
{
return
(
<
span
style
=
{{
color
:
`
${
dayjs
(
row
.
planMaintainDate
).
valueOf
()
<
dayjs
(
dayjs
().
format
(
'YYYY-MM-DD'
)).
valueOf
()
?
'#f50'
:
'rgba(0, 0, 0, 0.85)'
}
`
,
}}
>
{
row
.
planMaintainDate
}
<
/span
>
);
},
},
},
{
{
title
:
'接单时间'
,
title
:
'接单时间'
,
...
...
src/pages/maintain/workOrder/index.jsx
View file @
6786a15d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2023-01-19 09:53:59
* @Date: 2023-01-19 09:53:59
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-0
8 13:22:27
* @Last Modified time: 2023-02-0
9 16:14:02
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -17,9 +17,12 @@ import AutoTables from '@/components/AutoTable/mtable';
...
@@ -17,9 +17,12 @@ import AutoTables from '@/components/AutoTable/mtable';
import
{
Radio
,
InputNumber
,
Input
,
Divider
}
from
'antd'
;
import
{
Radio
,
InputNumber
,
Input
,
Divider
}
from
'antd'
;
import
InitForm
from
'@/components/InitForm'
;
import
InitForm
from
'@/components/InitForm'
;
import
getDetailColumns
from
'./detailColumns'
;
import
getDetailColumns
from
'./detailColumns'
;
import
{
useModel
}
from
'@umijs/max'
;
import
DetailNode
from
'@/components/DetailNode'
;
import
DetailNode
from
'@/components/DetailNode'
;
function
WorkOrder
(
props
)
{
function
WorkOrder
(
props
)
{
const
{
initialState
,
setInitialState
}
=
useModel
(
'@@initialState'
);
const
actionRef
=
useRef
(),
const
actionRef
=
useRef
(),
formRef
=
useRef
();
formRef
=
useRef
();
const
[
drawer
,
setdrawer
]
=
useState
({
const
[
drawer
,
setdrawer
]
=
useState
({
...
@@ -667,6 +670,7 @@ function WorkOrder(props) {
...
@@ -667,6 +670,7 @@ function WorkOrder(props) {
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'
}
extraparams=
{
activeTabKey
==
1
?
{
maintainUserId
:
initialState
?.
currentUser
?.
id
}
:
null
}
actionRef=
{
actionRef
}
actionRef=
{
actionRef
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
resizeable=
{
false
}
resizeable=
{
false
}
...
...
src/pages/repair/track/columns.js
View file @
6786a15d
...
@@ -101,7 +101,7 @@ function getcolumns(setdrawer, bus) {
...
@@ -101,7 +101,7 @@ function getcolumns(setdrawer, bus) {
{
{
title: '最新追踪人员',
title: '最新追踪人员',
dataIndex: 'newRepairUserName',
dataIndex: 'newRepairUserName',
key: 'newRepairUser
Name
',
key: 'newRepairUser
Id
',
valueType: 'select',
valueType: 'select',
fieldProps: {
fieldProps: {
showSearch: true,
showSearch: true,
...
@@ -220,8 +220,8 @@ function getcolumns(setdrawer, bus) {
...
@@ -220,8 +220,8 @@ function getcolumns(setdrawer, bus) {
},
},
{
{
title: '来源单号',
title: '来源单号',
dataIndex: '
repair
No',
dataIndex: '
dataSources
No',
key: '
repair
No',
key: '
dataSources
No',
},
},
{
{
title: '工单状态',
title: '工单状态',
...
@@ -340,8 +340,8 @@ function getcolumns(setdrawer, bus) {
...
@@ -340,8 +340,8 @@ function getcolumns(setdrawer, bus) {
},
},
{
{
title: '来源单号',
title: '来源单号',
dataIndex: '
repair
No',
dataIndex: '
dataSources
No',
key: '
repair
No',
key: '
dataSources
No',
},
},
{
{
title: '工单状态',
title: '工单状态',
...
...
src/pages/repair/track/index.jsx
View file @
6786a15d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,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: 2023-02-09 1
0:41:27
* @Last Modified time: 2023-02-09 1
5:41:35
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -426,7 +426,7 @@ function Failure(props) {
...
@@ -426,7 +426,7 @@ function Failure(props) {
trackResult
:
1
,
trackResult
:
1
,
isFinishTrack
:
2
,
isFinishTrack
:
2
,
},
},
// detailpath: '/repair/umTrackTraceinfo/queryByTrackOrderId
',
detailpath
:
'
'
,
// params:
{
trackOrderId
:
row
?.
id
},
// params:
{
trackOrderId
:
row
?.
id
},
val
:
'only'
,
val
:
'only'
,
title
:
'追踪信息'
,
title
:
'追踪信息'
,
...
...
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