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
0125451f
Commit
0125451f
authored
Jan 30, 2023
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
2406b2ec
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
30 deletions
+56
-30
index.jsx
src/components/InitForm/Diyrule/index.jsx
+2
-1
FormItems.jsx
src/components/InitForm/FormItems.jsx
+1
-1
index.jsx
src/pages/repair/order/index.jsx
+35
-22
RepairOrderHandle.jsx
src/pages/repair/platform/RepairOrderHandle.jsx
+9
-3
index.jsx
src/pages/repair/track/index.jsx
+7
-2
index.jsx
src/pages/system/rules/index.jsx
+2
-1
No files found.
src/components/InitForm/Diyrule/index.jsx
View file @
0125451f
...
...
@@ -351,9 +351,10 @@ let Diyrule = (props) => {
<
Checkbox
checked=
{
other
.
increaseList
&&
other
.
increaseList
.
indexOf
(
it
?.
id
)
!=
-
1
}
onChange=
{
(
e
)
=>
{
console
.
log
(
e
,
other
,
value
);
let
checked
=
e
.
target
.
checked
;
if
(
checked
)
{
let
newlist
=
[...
other
.
increaseList
];
let
newlist
=
[...
other
?
.
increaseList
];
newlist
.
push
(
it
?.
id
);
onChange
({
value
:
value
,
...
...
src/components/InitForm/FormItems.jsx
View file @
0125451f
...
...
@@ -1417,7 +1417,7 @@ function Diyrules({ item, colProps, formRef }) {
convertValue={(value) => {
if (value?.other) return value;
let nrList = {
other: {},
other: {
increaseList: []
},
value: [],
};
value?.forEach?.((it) => {
...
...
src/pages/repair/order/index.jsx
View file @
0125451f
...
...
@@ -3,7 +3,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-30 1
0:13:54
* @Last Modified time: 2023-01-30 1
4:34:25
*/
import
*
as
React
from
'react'
;
...
...
@@ -138,7 +138,7 @@ function Failure(props) {
...
s
,
open
:
true
,
type
:
'wcwx'
,
item
:
row
,
item
:
{
...
row
,
isShutdown
:
1
}
,
val
:
'only'
,
title
:
'完成维修'
,
}));
...
...
@@ -154,15 +154,17 @@ function Failure(props) {
label
:
(
<
PremButton
access=
"umRepairOrder_transferTracking"
onClick=
{
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'zzz'
,
item
:
row
,
val
:
'only'
,
title
:
'转追踪'
,
}));
btn=
{
{
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'zzz'
,
item
:
row
,
val
:
'only'
,
title
:
'转追踪'
,
}));
},
}
}
>
转追踪
...
...
@@ -377,7 +379,7 @@ function Failure(props) {
...
s
,
open
:
true
,
type
:
'wcwx'
,
item
:
row
,
item
:
{
...
row
,
isShutdown
:
1
}
,
val
:
'only'
,
title
:
'完成维修'
,
}));
...
...
@@ -393,15 +395,17 @@ function Failure(props) {
label
:
(
<
PremButton
access=
"umRepairOrder_transferTracking"
onClick=
{
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'zzz'
,
item
:
row
,
val
:
'only'
,
title
:
'转追踪'
,
}));
btn=
{
{
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'zzz'
,
item
:
row
,
val
:
'only'
,
title
:
'转追踪'
,
}));
},
}
}
>
转追踪
...
...
@@ -649,6 +653,7 @@ function Failure(props) {
title
:
'故障类型'
,
dataIndex
:
'faultSettingId'
,
key
:
'faultSettingId'
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
options
:
{
path
:
'/repair/umFaultSetting/selected/queryList'
,
...
...
@@ -662,6 +667,7 @@ function Failure(props) {
dataIndex
:
'faultDetailId'
,
key
:
'faultDetailId'
,
valueType
:
'select'
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
options
:
{
path
:
'/repair/umFaultSettingDetail/selected/queryList'
,
linkParams
:
{
...
...
@@ -672,6 +678,7 @@ function Failure(props) {
{
title
:
'故障原因'
,
dataIndex
:
'faultCause'
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
key
:
'faultCause'
,
valueType
:
'textarea'
,
formItemProps
:
{
...
...
@@ -695,6 +702,7 @@ function Failure(props) {
title
:
'维修类型'
,
dataIndex
:
'repairType'
,
key
:
'repairType'
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
options
:
{
path
:
'/base/sysInitData/queryChildrenSelection'
,
...
...
@@ -714,6 +722,7 @@ function Failure(props) {
{
title
:
'是否停机维修'
,
dataIndex
:
'isShutdown'
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
key
:
'isShutdown'
,
valueType
:
'radio'
,
options
:
[
...
...
@@ -739,6 +748,7 @@ function Failure(props) {
title
:
'维修内容'
,
dataIndex
:
'repairContent'
,
key
:
'repairContent'
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'textarea'
,
formItemProps
:
{
rules
:
[
...
...
@@ -754,7 +764,10 @@ function Failure(props) {
dataIndex
:
'repairAssistList'
,
key
:
'repairAssistList'
,
valueType
:
'select'
,
options
:
{
path
:
'/repair/umRepairOrder/selection'
,
params
:
{
id
:
drawer
?.
item
.
id
}
},
options
:
{
path
:
'/repair/umRepairOrder/selection'
,
params
:
{
id
:
drawer
?.
item
.
id
,
permission
:
'umRepairOrder:completeRepair'
},
},
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
...
...
src/pages/repair/platform/RepairOrderHandle.jsx
View file @
0125451f
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-05 11:13:26
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-
19 09:43:15
* @Last Modified time: 2023-01-
30 14:38:08
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
...
@@ -17,7 +17,10 @@ const App = ({ type, id, actionRef, url, setdrawer }) => {
dataIndex
:
'repairAssistList'
,
key
:
'repairAssistList'
,
valueType
:
'select'
,
options
:
{
path
:
'/repair/umRepairOrder/selection'
,
params
:
{
id
}
},
options
:
{
path
:
'/repair/umRepairOrder/selection'
,
params
:
{
id
,
permission
:
'umRepairOrder:orderReceiving'
},
},
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
...
...
@@ -39,7 +42,10 @@ const App = ({ type, id, actionRef, url, setdrawer }) => {
dataIndex
:
'repairAssistList'
,
key
:
'repairAssistList'
,
valueType
:
'select'
,
options
:
{
path
:
'/repair/umRepairOrder/selection'
,
params
:
{
id
}
},
options
:
{
path
:
'/repair/umRepairOrder/selection'
,
params
:
{
id
,
permission
:
'umRepairOrder:dispatchById'
},
},
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
...
...
src/pages/repair/track/index.jsx
View file @
0125451f
...
...
@@ -3,7 +3,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-30 1
1:12:4
9
* @Last Modified time: 2023-01-30 1
4:33:0
9
*/
import
*
as
React
from
'react'
;
...
...
@@ -407,7 +407,12 @@ function Failure(props) {
...
s
,
open
:
true
,
type
:
'track'
,
item
:
{
...
row
,
trackCycle
:
String
(
row
?.
trackCycle
)
},
item
:
{
...
row
,
trackCycle
:
String
(
row
?.
trackCycle
),
trackResult
:
'1'
,
isFinishTrack
:
'1'
,
},
// detailpath: '/repair/umTrackTraceinfo/queryByTrackOrderId',
// params:
{
trackOrderId
:
row
?.
id
},
val
:
'only'
,
...
...
src/pages/system/rules/index.jsx
View file @
0125451f
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-30 1
0:30:44
* @Last Modified time: 2023-01-30 1
3:10:55
*/
import
*
as
React
from
'react'
;
...
...
@@ -185,6 +185,7 @@ function Rules(props) {
title
:
'新增'
,
val
:
'add'
,
onFinish
:
async
(
vals
)
=>
{
console
.
log
(
vals
);
let
params
=
{
...
vals
};
params
.
nrList
=
[];
params
.
nrList
=
params
.
nrList
.
concat
(
vals
?.
nrList
.
value
);
...
...
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