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
Show 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) => {
{
value
&&
value
.
length
>
0
&&
value
.
map
((
it
,
i
)
=>
{
console
.
log
(
it
);
return
(
<
Row
key=
{
i
}
style=
{
{
padding
:
'6px 0 12px 0'
}
}
gutter=
{
24
}
>
<
Col
span=
{
2
}
>
<
p
style=
{
{
color
:
'#999'
,
marginBottom
:
24
}
}
>
关联规则
</
p
>
<
Checkbox
checked=
{
other
.
increaseList
&&
other
.
increaseList
.
indexOf
(
it
?.
id
)
!=
-
1
}
// defaultChecked=
{
// other.increaseList && other.increaseList.indexOf(it?.sort + 1) != -1
//
}
onChange=
{
(
e
)
=>
{
console
.
log
(
e
,
other
,
value
);
let
checked
=
e
.
target
.
checked
;
if
(
checked
)
{
let
newlist
=
[...
other
?.
increaseList
];
...
...
src/pages/maintain/workOrder/index.jsx
View file @
53a951d3
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2023-01-19 09:53:59
* @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'
;
...
...
@@ -500,7 +500,8 @@ function WorkOrder(props) {
type
:
'primary'
,
loading
,
onClick
:
()
=>
{
let
maintainTaskItemList
=
drawer
?.
item
?.
item
?.
map
((
it
)
=>
{
console
.
log
(
drawer
);
let
maintainTaskItemList
=
drawer
?.
item
?.
maintainTaskItemList
?.
map
((
it
)
=>
{
if
(
it
.
judgeType
==
1
)
{
return
{
id
:
it
.
id
,
...
...
@@ -515,8 +516,9 @@ function WorkOrder(props) {
};
}
});
console
.
log
(
maintainTaskItemList
);
run
({
url
:
'/maintain/umMaintainTask/
finishMaintainTask
'
,
url
:
'/maintain/umMaintainTask/
maintainTaskItemList
'
,
params
:
{
id
:
drawer
?.
item
?.
id
,
maintainTaskItemList
},
});
},
...
...
src/pages/repair/failure/columns.js
View file @
53a951d3
...
...
@@ -193,12 +193,12 @@ function getcolumns(setdrawer) {
valueType
:
'select'
,
options
:
[
{
label
:
'
待维修
'
,
value
:
'
1
'
,
label
:
'
已完成
'
,
value
:
'
3
'
,
},
{
label
:
'
维修中
'
,
value
:
'
2
'
,
label
:
'
已退单
'
,
value
:
'
4
'
,
},
],
},
...
...
src/pages/repair/failure/index.jsx
View file @
53a951d3
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @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'
;
...
...
@@ -96,6 +96,7 @@ 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'
,
...
...
@@ -105,6 +106,9 @@ function Failure(props) {
defpath
?.
enabledelete
&&
remove
(
text
,
row
,
_
,
action
),
],
});
}
else
{
return
defcolumn
;
}
},
[
activeTabKey
]);
const
basecolumns
=
useMemo
(()
=>
{
...
...
src/pages/repair/order/index.jsx
View file @
53a951d3
...
...
@@ -3,7 +3,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @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'
;
...
...
@@ -121,11 +121,9 @@ function Failure(props) {
// 更多
const
More
=
(
text
,
row
,
_
,
action
)
=>
{
console
.
log
(
drawer
);
let
menulist
=
[];
if
(
drawer
?.
SpecName
?.
businessData
!==
'2'
)
{
// 接单模式
console
.
log
(
1
);
if
(
row
?.
status
==
'2'
)
{
menulist
=
[
{
...
...
@@ -366,7 +364,6 @@ function Failure(props) {
];
}
}
else
{
console
.
log
(
2
);
if
(
row
?.
status
==
'2'
)
{
menulist
=
[
{
...
...
@@ -1129,7 +1126,7 @@ function Failure(props) {
{
title
:
'申请追踪原因'
,
dataIndex
:
'reason'
,
key
:
'reson'
,
key
:
're
a
son'
,
fieldProps
:
{
disabled
:
true
,
},
...
...
src/pages/repair/platform/RepairOrderHandle.jsx
View file @
53a951d3
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-05 11:13:26
* @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'
;
...
...
@@ -100,7 +100,9 @@ const App = ({ type, id, actionRef, url, setdrawer }) => {
}
},
wxpd
:
async
(
vals
)
=>
{
let
params
=
{};
let
params
=
{
repairId
:
vals
?.
repairId
,
};
if
(
vals
.
repairAssistList
)
{
params
.
repairAssistList
=
vals
?.
repairAssistList
.
map
((
it
)
=>
{
return
{
...
...
src/pages/repair/track/columns.js
View file @
53a951d3
import
dayjs
from
'dayjs'
;
console
.
log
(
dayjs
().
format
(
'YYYY-MM-DD'
).
valueOf
());
function
getcolumns
(
setdrawer
,
bus
)
{
let
listOptions
=
[];
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'
,
},
];
}
let
listOptions
=
bus
?.
map
((
it
)
=>
({
label
:
it
?.
name
,
value
:
it
?.
code
}));
return
[
{
tab
:
'我的待办'
,
...
...
@@ -376,8 +334,7 @@ function getcolumns(setdrawer, bus) {
title
:
'工单状态'
,
dataIndex
:
'statusName'
,
key
:
'status'
,
valueType
:
'select'
,
options
:
listOptions
,
search
:
false
,
fieldProps
:
{
dropdownMatchSelectWidth
:
150
,
},
...
...
src/pages/repair/track/index.jsx
View file @
53a951d3
...
...
@@ -3,7 +3,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @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'
;
...
...
@@ -43,14 +43,14 @@ function Failure(props) {
useEffect
(
async
()
=>
{
let
res
=
await
doFetch
({
url
:
'/base/pmBaseBusinessData/queryBySpe
cName
'
,
url
:
'/base/pmBaseBusinessData/queryBySpe
NameList
'
,
params
:
{
businessSpecName
:
'TRACKING_ORDER_DISTRIBUTE
'
,
modelType
:
'2
'
,
},
});
setdrawer
((
s
)
=>
({
...
s
,
SpecName
:
res
?.
data
?.
data
,
SpecName
:
res
?.
data
?.
data
List
,
}));
},
[]);
...
...
@@ -514,14 +514,13 @@ function Failure(props) {
};
const
columns
=
useMemo
(()
=>
{
let
defcolumn
=
getcolumns
(
setdrawer
,
drawer
?.
SpecName
?.
businessData
).
filter
(
let
defcolumn
=
getcolumns
(
setdrawer
,
drawer
?.
SpecName
).
filter
(
(
it
)
=>
it
.
key
==
activeTabKey
,
)[
0
]?.
columns
;
//console.log(defcolumn);
let
defpath
=
getcolumns
(
setdrawer
,
drawer
?.
SpecName
?.
businessData
).
filter
(
(
it
)
=>
it
.
key
==
activeTabKey
,
)[
0
]?.
pathconfig
??
{};
getcolumns
(
setdrawer
,
drawer
?.
SpecName
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]
?.
pathconfig
??
{};
if
(
activeTabKey
==
'1'
)
{
return
defcolumn
.
concat
({
...
...
src/pages/system/rules/index.jsx
View file @
53a951d3
...
...
@@ -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
3:10:55
* @Last Modified time: 2023-01-30 1
8:43:49
*/
import
*
as
React
from
'react'
;
...
...
@@ -190,14 +190,34 @@ function Rules(props) {
params
.
nrList
=
[];
params
.
nrList
=
params
.
nrList
.
concat
(
vals
?.
nrList
.
value
);
if
(
vals
?.
nrList
.
other
.
sort
)
{
vals
.
nrList
.
other
.
increaseList
=
Array
.
from
(
Array
(
vals
?.
nrList
.
value
.
length
+
1
),
(
_
,
index
)
=>
index
+
1
,
).
filter
((
it
)
=>
it
!==
vals
?.
nrList
.
other
.
sort
+
1
);
//
vals.nrList.other.increaseList = Array.from(
//
Array(vals?.nrList.value.length + 1),
//
(_, index) => index + 1,
//
).filter((it) => it !== vals?.nrList.other.sort + 1);
params
.
nrList
.
splice
(
vals
?.
nrList
.
other
.
sort
,
0
,
vals
?.
nrList
.
other
);
let
arr
=
[];
params
.
nrList
.
forEach
?.((
it
,
i
)
=>
{
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
{
message
.
warning
(
'请选择顺序递增规则的位置!'
);
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