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
a1f5b176
Commit
a1f5b176
authored
2 years ago
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
3e004033
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
474 additions
and
432 deletions
+474
-432
index.jsx
src/components/InitForm/Diyrule/index.jsx
+1
-1
index.jsx
src/pages/repair/order/index.jsx
+463
-429
index.jsx
src/pages/system/rules/index.jsx
+10
-2
No files found.
src/components/InitForm/Diyrule/index.jsx
View file @
a1f5b176
...
...
@@ -19,6 +19,7 @@ import moment from 'moment';
let
Diyrule
=
(
props
)
=>
{
let
{
onChange
}
=
props
;
let
defval
=
props
?.
value
??
{};
console
.
log
(
defval
);
let
value
=
defval
?.
value
||
[],
other
=
useMemo
(()
=>
{
return
(
...
...
@@ -522,7 +523,6 @@ let Diyrule = (props) => {
value
:
i
+
1
,
}))
}
onChange=
{
(
val
)
=>
{
console
.
log
(
'改变的val'
,
val
);
onChange
({
value
:
value
,
other
:
{
...
...
This diff is collapsed.
Click to expand it.
src/pages/repair/order/index.jsx
View file @
a1f5b176
...
...
@@ -3,7 +3,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-
29 15:38:13
* @Last Modified time: 2023-01-
30 10:13:54
*/
import
*
as
React
from
'react'
;
...
...
@@ -126,29 +126,8 @@ function Failure(props) {
if
(
drawer
?.
SpecName
?.
businessData
!==
'2'
)
{
// 接单模式
console
.
log
(
1
);
if
(
row
?.
status
==
'2'
)
{
menulist
=
[
{
label
:
(
<
PremButton
access=
"umRepairOrder_dispatchById"
btn=
{
{
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'jd'
,
item
:
row
,
val
:
'only'
,
title
:
'接单'
,
}));
},
}
}
>
接单
</
PremButton
>
),
key
:
'0'
,
},
{
label
:
(
<
PremButton
...
...
@@ -257,97 +236,108 @@ function Failure(props) {
),
key
:
'5'
,
},
];
}
else
if
(
row
?.
status
==
'6'
)
{
menulist
=
[
{
label
:
(
<
PremButton
access=
"umRepairOrder_completeRepairValidate
"
access=
"umRepairOrder_transferTrackingAudit
"
btn=
{
{
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'xgyz
'
,
type
:
'zzsh
'
,
item
:
row
,
val
:
'only'
,
title
:
'效果验证
'
,
title
:
'追踪审核
'
,
}));
},
}
}
>
效果验证
追踪审核
</
PremButton
>
),
key
:
'6
'
,
key
:
'7
'
,
},
];
}
else
if
(
row
?.
status
==
'4'
)
{
menulist
=
[
{
label
:
(
<
PremButton
access=
"umRepairOrder_transferTracking
Audit"
access=
"umRepairOrder_transfer
Audit"
btn=
{
{
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'zz
sh'
,
type
:
'wx
sh'
,
item
:
row
,
val
:
'only'
,
title
:
'追踪
审核'
,
title
:
'外协
审核'
,
}));
},
}
}
>
追踪
审核
外协
审核
</
PremButton
>
),
key
:
'7
'
,
key
:
'8
'
,
},
];
}
else
if
(
row
?.
status
==
'7'
)
{
menulist
=
[
{
label
:
(
<
PremButton
access=
"umRepairOrder_transfer
Audit"
access=
"umRepairOrder_chargeback
Audit"
btn=
{
{
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'wx
sh'
,
type
:
'td
sh'
,
item
:
row
,
val
:
'only'
,
title
:
'外协
审核'
,
title
:
'退单
审核'
,
}));
},
}
}
>
外协
审核
退单
审核
</
PremButton
>
),
key
:
'8
'
,
key
:
'9
'
,
},
];
}
else
if
(
row
?.
status
==
'3'
)
{
menulist
=
[
{
label
:
(
<
PremButton
access=
"umRepairOrder_chargebackAudit
"
access=
"umRepairOrder_completeRepairValidate
"
btn=
{
{
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'tdsh
'
,
type
:
'xgyz
'
,
item
:
row
,
val
:
'only'
,
title
:
'退单审核
'
,
title
:
'效果验证
'
,
}));
},
}
}
>
退单审核
效果验证
</
PremButton
>
),
key
:
'9
'
,
key
:
'6
'
,
},
];
}
else
{
console
.
log
(
2
);
menulist
=
[
{
label
:
(
...
...
@@ -358,19 +348,25 @@ function Failure(props) {
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'p
d'
,
type
:
'j
d'
,
item
:
row
,
val
:
'only'
,
title
:
'派
单'
,
title
:
'接
单'
,
}));
},
}
}
>
派
单
接
单
</
PremButton
>
),
key
:
'0'
,
},
];
}
}
else
{
console
.
log
(
2
);
if
(
row
?.
status
==
'2'
)
{
menulist
=
[
{
label
:
(
<
PremButton
...
...
@@ -479,95 +475,133 @@ function Failure(props) {
),
key
:
'5'
,
},
];
}
else
if
(
row
?.
status
==
'6'
)
{
menulist
=
[
{
label
:
(
<
PremButton
access=
"umRepairOrder_completeRepairValidate
"
access=
"umRepairOrder_transferTrackingAudit
"
btn=
{
{
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'xgyz
'
,
type
:
'zzsh
'
,
item
:
row
,
val
:
'only'
,
title
:
'效果验证
'
,
title
:
'追踪审核
'
,
}));
},
}
}
>
效果验证
追踪审核
</
PremButton
>
),
key
:
'6
'
,
key
:
'7
'
,
},
];
}
else
if
(
row
?.
status
==
'4'
)
{
menulist
=
[
{
label
:
(
<
PremButton
access=
"umRepairOrder_transferTracking
Audit"
access=
"umRepairOrder_transfer
Audit"
btn=
{
{
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'zz
sh'
,
type
:
'wx
sh'
,
item
:
row
,
val
:
'only'
,
title
:
'追踪
审核'
,
title
:
'外协
审核'
,
}));
},
}
}
>
追踪
审核
外协
审核
</
PremButton
>
),
key
:
'7
'
,
key
:
'8
'
,
},
];
}
else
if
(
row
?.
status
==
'7'
)
{
menulist
=
[
{
label
:
(
<
PremButton
access=
"umRepairOrder_transfer
Audit"
access=
"umRepairOrder_chargeback
Audit"
btn=
{
{
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'wx
sh'
,
type
:
'td
sh'
,
item
:
row
,
val
:
'only'
,
title
:
'外协
审核'
,
title
:
'退单
审核'
,
}));
},
}
}
>
外协
审核
退单
审核
</
PremButton
>
),
key
:
'8
'
,
key
:
'9
'
,
},
];
}
else
if
(
row
?.
status
==
'3'
)
{
menulist
=
[
{
label
:
(
<
PremButton
access=
"umRepairOrder_chargebackAudit
"
access=
"umRepairOrder_completeRepairValidate
"
btn=
{
{
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'tdsh
'
,
type
:
'xgyz
'
,
item
:
row
,
val
:
'only'
,
title
:
'退单审核
'
,
title
:
'效果验证
'
,
}));
},
}
}
>
退单审核
效果验证
</
PremButton
>
),
key
:
'9
'
,
key
:
'6
'
,
},
];
}
else
{
menulist
=
[
{
label
:
(
<
PremButton
access=
"umRepairOrder_dispatchById"
btn=
{
{
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'pd'
,
item
:
row
,
val
:
'only'
,
title
:
'派单'
,
}));
},
}
}
>
派单
</
PremButton
>
),
key
:
'0'
,
},
];
}
}
const
menu
=
<
Menu
items=
{
menulist
}
/>;
...
...
This diff is collapsed.
Click to expand it.
src/pages/system/rules/index.jsx
View file @
a1f5b176
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-
19 09:43:42
* @Last Modified time: 2023-01-
30 10:30:44
*/
import
*
as
React
from
'react'
;
...
...
@@ -66,6 +66,7 @@ function Rules(props) {
title
:
'编辑'
,
val
:
'edit'
,
onFinish
:
async
(
vals
)
=>
{
console
.
log
(
vals
);
vals
.
nrList
.
other
=
_
.
pick
(
vals
.
nrList
.
other
,
[
'formatType'
,
'increaseList'
,
...
...
@@ -73,7 +74,14 @@ function Rules(props) {
'sort'
,
]);
vals
.
nrList
.
value
=
vals
.
nrList
.
value
.
map
((
it
)
=>
{
return
_
.
pick
(
it
,
[
'id'
,
'noContent'
,
'noRuleCode'
,
'sort'
,
'paramList'
]);
return
_
.
pick
(
it
,
[
'formatType'
,
'id'
,
'noContent'
,
'noRuleCode'
,
'sort'
,
'paramList'
,
]);
});
let
params
=
{
...
vals
};
params
.
nrList
=
[];
...
...
This diff is collapsed.
Click to expand it.
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