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
1f03b585
Commit
1f03b585
authored
Dec 09, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
000
parent
b077a8ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
269 additions
and
11 deletions
+269
-11
index.jsx
src/pages/repair/order/index.jsx
+268
-10
columns.js
src/pages/setting/users/columns.js
+1
-1
No files found.
src/pages/repair/order/index.jsx
View file @
1f03b585
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-0
8 19:39:12
* @Last Modified time: 2022-12-0
9 09:48:49
*/
import
*
as
React
from
'react'
;
...
...
@@ -13,7 +13,7 @@ import PremButton from '@/components/PremButton';
import
getcolumns
from
'./columns'
;
import
{
useRequest
}
from
'ahooks'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
Dropdown
,
Menu
,
Button
}
from
'antd'
;
import
{
Dropdown
,
Menu
,
Button
,
message
}
from
'antd'
;
import
InitForm
from
'@/components/InitForm'
;
function
Failure
(
props
)
{
...
...
@@ -190,19 +190,87 @@ function Failure(props) {
key
:
'2'
,
},
{
label
:
<
a
>
转外协
</
a
>,
label
:
(
<
a
onClick=
{
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'zwx'
,
item
:
{
id
:
row
.
id
,
},
val
:
'only'
,
title
:
'转外协'
,
}));
}
}
>
转外协
</
a
>
),
key
:
'3'
,
},
{
label
:
<
a
>
转单
</
a
>,
label
:
(
<
a
onClick=
{
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'zd'
,
item
:
{
id
:
row
.
id
,
},
val
:
'only'
,
title
:
'转单'
,
}));
}
}
>
转单
</
a
>
),
key
:
'4'
,
},
{
label
:
<
a
>
退单
</
a
>,
label
:
(
<
a
onClick=
{
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'td'
,
item
:
{
id
:
row
.
id
,
},
val
:
'only'
,
title
:
'退单'
,
}));
}
}
>
退单
</
a
>
),
key
:
'5'
,
},
{
label
:
<
a
>
效果验证
</
a
>,
label
:
(
<
a
onClick=
{
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
type
:
'xgyz'
,
item
:
{
id
:
row
.
id
,
},
val
:
'only'
,
title
:
'效果验证'
,
}));
}
}
>
效果验证
</
a
>
),
key
:
'6'
,
},
{
...
...
@@ -365,14 +433,14 @@ function Failure(props) {
repairContent
:
vals
.
repairContent
,
},
id
:
row
.
id
,
id
:
drawer
?.
item
.
id
,
};
let
res
=
await
doFetch
({
url
:
'/repair/umRepairOrder/completeRepair'
,
params
,
});
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'
新增
成功!'
);
message
.
success
(
'
操作
成功!'
);
setdrawer
((
s
)
=>
({
...
s
,
open
:
false
,
...
...
@@ -395,6 +463,7 @@ function Failure(props) {
title
:
'申请追踪原因'
,
dataIndex
:
'reason'
,
key
:
'reason'
,
valueType
:
'textarea'
,
formItemProps
:
{
rules
:
[
{
...
...
@@ -405,10 +474,31 @@ function Failure(props) {
},
},
]
}
onFinish=
{
async
(
vals
)
=>
{
console
.
log
(
vals
);
let
params
=
{
repairInfo
:
{
...
vals
},
id
:
drawer
?.
item
.
id
,
};
let
res
=
await
doFetch
({
url
:
'/repair/umRepairOrder/transferTracking'
,
params
,
});
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'操作成功!'
);
setdrawer
((
s
)
=>
({
...
s
,
open
:
false
,
}));
actionRef
.
current
.
reload
();
}
}
}
{
...
drawer
}
/>
</>
);
};
// 转外协
const
Toout
=
()
=>
{
return
(
<>
...
...
@@ -418,6 +508,7 @@ function Failure(props) {
title
:
'申请外协原因'
,
dataIndex
:
'reason'
,
key
:
'reason'
,
valueType
:
'textarea'
,
formItemProps
:
{
rules
:
[
{
...
...
@@ -428,16 +519,183 @@ function Failure(props) {
},
},
]
}
onFinish=
{
async
(
vals
)
=>
{
let
params
=
{
repairInfo
:
{
...
vals
},
id
:
drawer
?.
item
.
id
,
};
let
res
=
await
doFetch
({
url
:
'/repair/umRepairOrder/transferOutsourcing'
,
params
,
});
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'操作成功!'
);
setdrawer
((
s
)
=>
({
...
s
,
open
:
false
,
}));
actionRef
.
current
.
reload
();
}
}
}
{
...
drawer
}
/>
</>
);
};
// 转单
const
Transfer
=
()
=>
{
return
(
<>
<
InitForm
fields=
{
[
{
title
:
'转单类型'
,
dataIndex
:
'reviewerType'
,
key
:
'reviewerType'
,
valueType
:
'select'
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
},
{
title
:
'转单原因'
,
dataIndex
:
'reason'
,
key
:
'reason'
,
valueType
:
'textarea'
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
},
]
}
onFinish=
{
async
(
vals
)
=>
{
let
params
=
{
repairInfo
:
{
...
vals
},
id
:
drawer
?.
item
.
id
,
};
let
res
=
await
doFetch
({
url
:
'/repair/umRepairOrder/documentTransfer'
,
params
,
});
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'操作成功!'
);
setdrawer
((
s
)
=>
({
...
s
,
open
:
false
,
}));
actionRef
.
current
.
reload
();
}
}
}
{
...
drawer
}
/>
</>
);
};
// 退单
const
Singelback
=
()
=>
{
return
(
<>
<
InitForm
fields=
{
[
{
title
:
'退单原因'
,
dataIndex
:
'reason'
,
key
:
'reason'
,
valueType
:
'textarea'
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
},
]
}
onFinish=
{
async
(
vals
)
=>
{
let
params
=
{
repairInfo
:
{
...
vals
},
id
:
drawer
?.
item
.
id
,
};
let
res
=
await
doFetch
({
url
:
'/repair/umRepairOrder/chargeback'
,
params
,
});
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'操作成功!'
);
setdrawer
((
s
)
=>
({
...
s
,
open
:
false
,
}));
actionRef
.
current
.
reload
();
}
}
}
{
...
drawer
}
/>
</>
);
};
// 效果验证
const
EffectCheck
=
()
=>
{
return
(
<>
<
InitForm
fields=
{
[
{
title
:
'退单原因'
,
dataIndex
:
'reason'
,
key
:
'reason'
,
valueType
:
'textarea'
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
},
]
}
onFinish=
{
async
(
vals
)
=>
{
let
params
=
{
repairInfo
:
{
...
vals
},
id
:
drawer
?.
item
.
id
,
};
let
res
=
await
doFetch
({
url
:
'/repair/umRepairOrder/chargeback'
,
params
,
});
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'操作成功!'
);
setdrawer
((
s
)
=>
({
...
s
,
open
:
false
,
}));
actionRef
.
current
.
reload
();
}
}
}
{
...
drawer
}
/>
</>
);
};
const
selectType
=
{
jd
:
<
Recevive
/>,
wcwx
:
<
Finishrepair
/>,
zzz
:
<
Toracking
/>,
zzzong
:
<
Toout
/>,
zwx
:
<
Toout
/>,
zd
:
<
Transfer
/>,
td
:
<
Singelback
/>,
xgyz
:
<
EffectCheck
/>,
};
const
columns
=
useMemo
(()
=>
{
...
...
src/pages/setting/users/columns.js
View file @
1f03b585
...
...
@@ -316,7 +316,7 @@ function getcolumns(setdrawer) {
},
},
key
:
'shopIdList'
,
formItemProps
:
{
rules
:
[{
required
:
tru
e
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
fals
e
,
message
:
'此项为必填项'
}]
},
},
{
title
:
'负责工段'
,
...
...
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