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
53a951d3
Commit
53a951d3
authored
Jan 31, 2023
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cccc
parent
0125451f
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
67 additions
and
83 deletions
+67
-83
index.jsx
src/components/InitForm/Diyrule/index.jsx
+4
-1
index.jsx
src/pages/maintain/workOrder/index.jsx
+5
-3
columns.js
src/pages/repair/failure/columns.js
+4
-4
index.jsx
src/pages/repair/failure/index.jsx
+14
-10
index.jsx
src/pages/repair/order/index.jsx
+2
-5
RepairOrderHandle.jsx
src/pages/repair/platform/RepairOrderHandle.jsx
+4
-2
columns.js
src/pages/repair/track/columns.js
+2
-45
index.jsx
src/pages/repair/track/index.jsx
+7
-8
index.jsx
src/pages/system/rules/index.jsx
+25
-5
No files found.
src/components/InitForm/Diyrule/index.jsx
View file @
53a951d3
...
@@ -344,14 +344,17 @@ let Diyrule = (props) => {
...
@@ -344,14 +344,17 @@ let Diyrule = (props) => {
{
value
&&
{
value
&&
value
.
length
>
0
&&
value
.
length
>
0
&&
value
.
map
((
it
,
i
)
=>
{
value
.
map
((
it
,
i
)
=>
{
console
.
log
(
it
);
return
(
return
(
<
Row
key=
{
i
}
style=
{
{
padding
:
'6px 0 12px 0'
}
}
gutter=
{
24
}
>
<
Row
key=
{
i
}
style=
{
{
padding
:
'6px 0 12px 0'
}
}
gutter=
{
24
}
>
<
Col
span=
{
2
}
>
<
Col
span=
{
2
}
>
<
p
style=
{
{
color
:
'#999'
,
marginBottom
:
24
}
}
>
关联规则
</
p
>
<
p
style=
{
{
color
:
'#999'
,
marginBottom
:
24
}
}
>
关联规则
</
p
>
<
Checkbox
<
Checkbox
checked=
{
other
.
increaseList
&&
other
.
increaseList
.
indexOf
(
it
?.
id
)
!=
-
1
}
checked=
{
other
.
increaseList
&&
other
.
increaseList
.
indexOf
(
it
?.
id
)
!=
-
1
}
// defaultChecked=
{
// other.increaseList && other.increaseList.indexOf(it?.sort + 1) != -1
//
}
onChange=
{
(
e
)
=>
{
onChange=
{
(
e
)
=>
{
console
.
log
(
e
,
other
,
value
);
let
checked
=
e
.
target
.
checked
;
let
checked
=
e
.
target
.
checked
;
if
(
checked
)
{
if
(
checked
)
{
let
newlist
=
[...
other
?.
increaseList
];
let
newlist
=
[...
other
?.
increaseList
];
...
...
src/pages/maintain/workOrder/index.jsx
View file @
53a951d3
...
@@ -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-01-
19 10:03:55
* @Last Modified time: 2023-01-
30 16:18:16
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -500,7 +500,8 @@ function WorkOrder(props) {
...
@@ -500,7 +500,8 @@ function WorkOrder(props) {
type
:
'primary'
,
type
:
'primary'
,
loading
,
loading
,
onClick
:
()
=>
{
onClick
:
()
=>
{
let
maintainTaskItemList
=
drawer
?.
item
?.
item
?.
map
((
it
)
=>
{
console
.
log
(
drawer
);
let
maintainTaskItemList
=
drawer
?.
item
?.
maintainTaskItemList
?.
map
((
it
)
=>
{
if
(
it
.
judgeType
==
1
)
{
if
(
it
.
judgeType
==
1
)
{
return
{
return
{
id
:
it
.
id
,
id
:
it
.
id
,
...
@@ -515,8 +516,9 @@ function WorkOrder(props) {
...
@@ -515,8 +516,9 @@ function WorkOrder(props) {
};
};
}
}
});
});
console
.
log
(
maintainTaskItemList
);
run
({
run
({
url
:
'/maintain/umMaintainTask/
finishMaintainTask
'
,
url
:
'/maintain/umMaintainTask/
maintainTaskItemList
'
,
params
:
{
id
:
drawer
?.
item
?.
id
,
maintainTaskItemList
},
params
:
{
id
:
drawer
?.
item
?.
id
,
maintainTaskItemList
},
});
});
},
},
...
...
src/pages/repair/failure/columns.js
View file @
53a951d3
...
@@ -193,12 +193,12 @@ function getcolumns(setdrawer) {
...
@@ -193,12 +193,12 @@ function getcolumns(setdrawer) {
valueType
:
'select'
,
valueType
:
'select'
,
options
:
[
options
:
[
{
{
label
:
'
待维修
'
,
label
:
'
已完成
'
,
value
:
'
1
'
,
value
:
'
3
'
,
},
},
{
{
label
:
'
维修中
'
,
label
:
'
已退单
'
,
value
:
'
2
'
,
value
:
'
4
'
,
},
},
],
],
},
},
...
...
src/pages/repair/failure/index.jsx
View file @
53a951d3
...
@@ -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: 2023-01-
04 10:29:44
* @Last Modified time: 2023-01-
30 15:59:06
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -96,15 +96,19 @@ function Failure(props) {
...
@@ -96,15 +96,19 @@ function Failure(props) {
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
??
{};
return
defcolumn
.
concat
({
if
(
activeTabKey
==
1
)
{
title
:
'操作'
,
return
defcolumn
.
concat
({
valueType
:
'option'
,
title
:
'操作'
,
width
:
150
,
valueType
:
'option'
,
render
:
(
text
,
row
,
_
,
action
)
=>
[
width
:
150
,
defpath
?.
enableedit
&&
edit
(
text
,
row
,
_
,
action
),
render
:
(
text
,
row
,
_
,
action
)
=>
[
defpath
?.
enabledelete
&&
remove
(
text
,
row
,
_
,
action
),
defpath
?.
enableedit
&&
edit
(
text
,
row
,
_
,
action
),
],
defpath
?.
enabledelete
&&
remove
(
text
,
row
,
_
,
action
),
});
],
});
}
else
{
return
defcolumn
;
}
},
[
activeTabKey
]);
},
[
activeTabKey
]);
const
basecolumns
=
useMemo
(()
=>
{
const
basecolumns
=
useMemo
(()
=>
{
...
...
src/pages/repair/order/index.jsx
View file @
53a951d3
...
@@ -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-01-3
0 14:34:25
* @Last Modified time: 2023-01-3
1 09:19:09
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -121,11 +121,9 @@ function Failure(props) {
...
@@ -121,11 +121,9 @@ function Failure(props) {
// 更多
// 更多
const
More
=
(
text
,
row
,
_
,
action
)
=>
{
const
More
=
(
text
,
row
,
_
,
action
)
=>
{
console
.
log
(
drawer
);
let
menulist
=
[];
let
menulist
=
[];
if
(
drawer
?.
SpecName
?.
businessData
!==
'2'
)
{
if
(
drawer
?.
SpecName
?.
businessData
!==
'2'
)
{
// 接单模式
// 接单模式
console
.
log
(
1
);
if
(
row
?.
status
==
'2'
)
{
if
(
row
?.
status
==
'2'
)
{
menulist
=
[
menulist
=
[
{
{
...
@@ -366,7 +364,6 @@ function Failure(props) {
...
@@ -366,7 +364,6 @@ function Failure(props) {
];
];
}
}
}
else
{
}
else
{
console
.
log
(
2
);
if
(
row
?.
status
==
'2'
)
{
if
(
row
?.
status
==
'2'
)
{
menulist
=
[
menulist
=
[
{
{
...
@@ -1129,7 +1126,7 @@ function Failure(props) {
...
@@ -1129,7 +1126,7 @@ function Failure(props) {
{
{
title
:
'申请追踪原因'
,
title
:
'申请追踪原因'
,
dataIndex
:
'reason'
,
dataIndex
:
'reason'
,
key
:
'reson'
,
key
:
're
a
son'
,
fieldProps
:
{
fieldProps
:
{
disabled
:
true
,
disabled
:
true
,
},
},
...
...
src/pages/repair/platform/RepairOrderHandle.jsx
View file @
53a951d3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-12-05 11:13:26
* @Date: 2022-12-05 11:13:26
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-30 1
4:38:0
8
* @Last Modified time: 2023-01-30 1
7:00:1
8
*/
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
@@ -100,7 +100,9 @@ const App = ({ type, id, actionRef, url, setdrawer }) => {
...
@@ -100,7 +100,9 @@ const App = ({ type, id, actionRef, url, setdrawer }) => {
}
}
},
},
wxpd
:
async
(
vals
)
=>
{
wxpd
:
async
(
vals
)
=>
{
let
params
=
{};
let
params
=
{
repairId
:
vals
?.
repairId
,
};
if
(
vals
.
repairAssistList
)
{
if
(
vals
.
repairAssistList
)
{
params
.
repairAssistList
=
vals
?.
repairAssistList
.
map
((
it
)
=>
{
params
.
repairAssistList
=
vals
?.
repairAssistList
.
map
((
it
)
=>
{
return
{
return
{
...
...
src/pages/repair/track/columns.js
View file @
53a951d3
import
dayjs
from
'dayjs'
;
import
dayjs
from
'dayjs'
;
console
.
log
(
dayjs
().
format
(
'YYYY-MM-DD'
).
valueOf
());
function
getcolumns
(
setdrawer
,
bus
)
{
function
getcolumns
(
setdrawer
,
bus
)
{
let
listOptions
=
[];
let
listOptions
=
bus
?.
map
((
it
)
=>
({
label
:
it
?.
name
,
value
:
it
?.
code
}));
if
(
bus
!==
'2'
)
{
listOptions
=
[
{
label
:
'待接单'
,
value
:
'1'
,
},
{
label
:
'追踪中'
,
value
:
'3'
,
},
{
label
:
'待验证'
,
value
:
'4'
,
},
{
label
:
'已完成'
,
value
:
'5'
,
},
];
}
else
{
listOptions
=
[
{
label
:
'待派单'
,
value
:
'2'
,
},
{
label
:
'追踪中'
,
value
:
'3'
,
},
{
label
:
'待验证'
,
value
:
'4'
,
},
{
label
:
'已完成'
,
value
:
'5'
,
},
];
}
return
[
return
[
{
{
tab
:
'我的待办'
,
tab
:
'我的待办'
,
...
@@ -376,8 +334,7 @@ function getcolumns(setdrawer, bus) {
...
@@ -376,8 +334,7 @@ function getcolumns(setdrawer, bus) {
title
:
'工单状态'
,
title
:
'工单状态'
,
dataIndex
:
'statusName'
,
dataIndex
:
'statusName'
,
key
:
'status'
,
key
:
'status'
,
valueType
:
'select'
,
search
:
false
,
options
:
listOptions
,
fieldProps
:
{
fieldProps
:
{
dropdownMatchSelectWidth
:
150
,
dropdownMatchSelectWidth
:
150
,
},
},
...
...
src/pages/repair/track/index.jsx
View file @
53a951d3
...
@@ -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-01-3
0 14:33:09
* @Last Modified time: 2023-01-3
1 09:20:37
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -43,14 +43,14 @@ function Failure(props) {
...
@@ -43,14 +43,14 @@ function Failure(props) {
useEffect
(
async
()
=>
{
useEffect
(
async
()
=>
{
let
res
=
await
doFetch
({
let
res
=
await
doFetch
({
url
:
'/base/pmBaseBusinessData/queryBySpe
cName
'
,
url
:
'/base/pmBaseBusinessData/queryBySpe
NameList
'
,
params
:
{
params
:
{
businessSpecName
:
'TRACKING_ORDER_DISTRIBUTE
'
,
modelType
:
'2
'
,
},
},
});
});
setdrawer
((
s
)
=>
({
setdrawer
((
s
)
=>
({
...
s
,
...
s
,
SpecName
:
res
?.
data
?.
data
,
SpecName
:
res
?.
data
?.
data
List
,
}));
}));
},
[]);
},
[]);
...
@@ -514,14 +514,13 @@ function Failure(props) {
...
@@ -514,14 +514,13 @@ function Failure(props) {
};
};
const
columns
=
useMemo
(()
=>
{
const
columns
=
useMemo
(()
=>
{
let
defcolumn
=
getcolumns
(
setdrawer
,
drawer
?.
SpecName
?.
businessData
).
filter
(
let
defcolumn
=
getcolumns
(
setdrawer
,
drawer
?.
SpecName
).
filter
(
(
it
)
=>
it
.
key
==
activeTabKey
,
(
it
)
=>
it
.
key
==
activeTabKey
,
)[
0
]?.
columns
;
)[
0
]?.
columns
;
//console.log(defcolumn);
//console.log(defcolumn);
let
defpath
=
let
defpath
=
getcolumns
(
setdrawer
,
drawer
?.
SpecName
?.
businessData
).
filter
(
getcolumns
(
setdrawer
,
drawer
?.
SpecName
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]
(
it
)
=>
it
.
key
==
activeTabKey
,
?.
pathconfig
??
{};
)[
0
]?.
pathconfig
??
{};
if
(
activeTabKey
==
'1'
)
{
if
(
activeTabKey
==
'1'
)
{
return
defcolumn
.
concat
({
return
defcolumn
.
concat
({
...
...
src/pages/system/rules/index.jsx
View file @
53a951d3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-30 1
3:10:55
* @Last Modified time: 2023-01-30 1
8:43:49
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -190,14 +190,34 @@ function Rules(props) {
...
@@ -190,14 +190,34 @@ function Rules(props) {
params
.
nrList
=
[];
params
.
nrList
=
[];
params
.
nrList
=
params
.
nrList
.
concat
(
vals
?.
nrList
.
value
);
params
.
nrList
=
params
.
nrList
.
concat
(
vals
?.
nrList
.
value
);
if
(
vals
?.
nrList
.
other
.
sort
)
{
if
(
vals
?.
nrList
.
other
.
sort
)
{
vals
.
nrList
.
other
.
increaseList
=
Array
.
from
(
//
vals.nrList.other.increaseList = Array.from(
Array
(
vals
?.
nrList
.
value
.
length
+
1
),
//
Array(vals?.nrList.value.length + 1),
(
_
,
index
)
=>
index
+
1
,
//
(_, index) => index + 1,
).
filter
((
it
)
=>
it
!==
vals
?.
nrList
.
other
.
sort
+
1
);
//
).filter((it) => it !== vals?.nrList.other.sort + 1);
params
.
nrList
.
splice
(
vals
?.
nrList
.
other
.
sort
,
0
,
vals
?.
nrList
.
other
);
params
.
nrList
.
splice
(
vals
?.
nrList
.
other
.
sort
,
0
,
vals
?.
nrList
.
other
);
let
arr
=
[];
params
.
nrList
.
forEach
?.((
it
,
i
)
=>
{
params
.
nrList
.
forEach
?.((
it
,
i
)
=>
{
it
.
sort
=
i
+
1
;
it
.
sort
=
i
+
1
;
});
});
console
.
log
(
arr
);
params
.
nrList
.
forEach
((
it
)
=>
{
if
(
it
.
noRuleCode
==
'increasing_order'
)
{
let
increaseListArr
=
[];
it
.
increaseList
.
forEach
((
id
)
=>
{
increaseListArr
=
params
.
nrList
.
filter
((
item
)
=>
item
?.
id
==
id
)
.
map
((
it
)
=>
{
return
it
?.
sort
;
});
});
arr
=
increaseListArr
;
}
});
params
.
nrList
.
forEach
((
it
)
=>
{
if
(
it
.
noRuleCode
==
'increasing_order'
)
{
it
.
increaseList
=
arr
;
}
});
}
else
{
}
else
{
message
.
warning
(
'请选择顺序递增规则的位置!'
);
message
.
warning
(
'请选择顺序递增规则的位置!'
);
return
;
return
;
...
...
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