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
684f9202
Commit
684f9202
authored
2 years ago
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
1cdfcce6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
17 deletions
+61
-17
authRoutes.js
config/authRoutes.js
+1
-1
index.jsx
src/components/Addform/index.jsx
+0
-1
DesItem.jsx
src/components/RepaireDetail/DesItem.jsx
+6
-6
global.less
src/global.less
+2
-2
index.jsx
src/pages/repair/order/index.jsx
+52
-7
No files found.
config/authRoutes.js
View file @
684f9202
export
default
[
{
"path"
:
"/welcome"
,
"name"
:
"
欢迎
"
,
"name"
:
"
首页
"
,
"icon"
:
"smile"
,
"component"
:
"./Welcome"
},
...
...
This diff is collapsed.
Click to expand it.
src/components/Addform/index.jsx
View file @
684f9202
...
...
@@ -110,7 +110,6 @@ const App = ({ url, actionRef, setdrawer, drawer }) => {
fields=
{
columns
}
defaultFormValue=
{
drawer
?.
item
}
onValuesChange=
{
(
changedValues
,
allValues
)
=>
{
//console.log(changedValues, allValues);
if
(
Object
.
keys
(
changedValues
)[
0
]
==
'faultDetailId'
)
{
doFetch
({
url
:
'/repair/umFaultSettingDetail/queryById'
,
...
...
This diff is collapsed.
Click to expand it.
src/components/RepaireDetail/DesItem.jsx
View file @
684f9202
...
...
@@ -396,8 +396,8 @@ export default (props) => {
1
:
[
{
title
:
'追踪人员'
,
dataIndex
:
'
tracke
rName'
,
key
:
'
tracke
rName'
,
dataIndex
:
'
repai
rName'
,
key
:
'
repai
rName'
,
},
{
title
:
'接单时间'
,
...
...
@@ -418,8 +418,8 @@ export default (props) => {
},
{
title
:
'追踪人员'
,
dataIndex
:
'
tracke
rName'
,
key
:
'
tracke
rName'
,
dataIndex
:
'
repai
rName'
,
key
:
'
repai
rName'
,
},
],
3
:
[
...
...
@@ -435,8 +435,8 @@ export default (props) => {
},
{
title
:
'追踪人员'
,
dataIndex
:
'
tracke
rName'
,
key
:
'
tracke
rName'
,
dataIndex
:
'
repai
rName'
,
key
:
'
repai
rName'
,
},
],
4
:
[
...
...
This diff is collapsed.
Click to expand it.
src/global.less
View file @
684f9202
...
...
@@ -527,8 +527,8 @@ ol {
main {
>div:first-child {
ul
{
z-index:
99999
!important;
.tags_container
{
z-index:
1001
!important;
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/pages/repair/order/index.jsx
View file @
684f9202
...
...
@@ -3,7 +3,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-0
1 15:23:18
* @Last Modified time: 2023-02-0
2 16:46:59
*/
import
*
as
React
from
'react'
;
...
...
@@ -131,7 +131,29 @@ function Failure(props) {
<
PremButton
access=
"umRepairOrder_completeRepair"
btn=
{
{
onClick
:
()
=>
{
onClick
:
async
()
=>
{
let
repairContent
=
''
;
if
(
row
?.
faultDetailId
)
{
doFetch
({
url
:
'/repair/umFaultSettingDetail/queryById'
,
params
:
{
id
:
row
?.
faultDetailId
,
},
}).
then
((
res
)
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'wcwx'
,
item
:
{
...
row
,
isShutdown
:
1
,
repairContent
:
res
?.
data
?.
data
?.
faultSolution
,
},
val
:
'only'
,
title
:
'完成维修'
,
}));
});
}
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
...
...
@@ -324,7 +346,7 @@ function Failure(props) {
...
s
,
open
:
true
,
type
:
'xgyz'
,
item
:
row
,
item
:
{
...
row
,
resultFlag
:
'1'
}
,
val
:
'only'
,
title
:
'效果验证'
,
}));
...
...
@@ -372,6 +394,28 @@ function Failure(props) {
access=
"umRepairOrder_completeRepair"
btn=
{
{
onClick
:
()
=>
{
let
repairContent
=
''
;
if
(
row
?.
faultDetailId
)
{
doFetch
({
url
:
'/repair/umFaultSettingDetail/queryById'
,
params
:
{
id
:
row
?.
faultDetailId
,
},
}).
then
((
res
)
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'wcwx'
,
item
:
{
...
row
,
isShutdown
:
1
,
repairContent
:
res
?.
data
?.
data
?.
faultSolution
,
},
val
:
'only'
,
title
:
'完成维修'
,
}));
});
}
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
...
...
@@ -489,7 +533,7 @@ function Failure(props) {
...
s
,
open
:
true
,
type
:
'zzsh'
,
item
:
row
,
item
:
{
...
row
,
resultFlag
:
'1'
}
,
val
:
'only'
,
title
:
'追踪审核'
,
}));
...
...
@@ -514,7 +558,7 @@ function Failure(props) {
...
s
,
open
:
true
,
type
:
'wxsh'
,
item
:
row
,
item
:
{
...
row
,
resultFlag
:
'1'
}
,
val
:
'only'
,
title
:
'外协审核'
,
}));
...
...
@@ -564,7 +608,7 @@ function Failure(props) {
...
s
,
open
:
true
,
type
:
'xgyz'
,
item
:
row
,
item
:
{
...
row
,
resultFlag
:
'1'
}
,
val
:
'only'
,
title
:
'效果验证'
,
}));
...
...
@@ -779,10 +823,11 @@ function Failure(props) {
return
(
<>
<
InitForm
formRef=
{
formRef
}
defaultFormValue=
{
drawer
?.
item
}
fields=
{
columns
}
onValuesChange=
{
(
changedValues
,
allValues
)
=>
{
//
console.log(changedValues, allValues);
console
.
log
(
changedValues
,
allValues
);
if
(
Object
.
keys
(
changedValues
)[
0
]
==
'faultDetailId'
)
{
doFetch
({
url
:
'/repair/umFaultSettingDetail/queryById'
,
...
...
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