Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
e41baeca
Commit
e41baeca
authored
Sep 18, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退仓申请,审核中
parent
00aea215
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
4 deletions
+51
-4
batchSingleApplication.js
src/api/ecw/batchSingleApplication.js
+8
-0
withdrawal.vue
src/views/ecw/order/withdrawal.vue
+43
-4
No files found.
src/api/ecw/batchSingleApplication.js
View file @
e41baeca
...
...
@@ -33,6 +33,14 @@ export function orderWarehouseInDelete(data){
data
:
data
,
})
}
//获取退仓审批详情
export
function
getRollbackApprovalInfo
(
params
){
return
request
({
url
:
'
/order/order-warehouse-in/get-rollback-approval-info
'
,
method
:
'
get
'
,
params
})
}
//通过bpmFormId 获得仓库审核单详情
export
function
warehouseApprovalGetByFormId
(
params
){
return
request
({
...
...
src/views/ecw/order/withdrawal.vue
View file @
e41baeca
...
...
@@ -20,7 +20,9 @@
<work-flow
xmlkey=
"retired_warehouse"
v-model=
"params.copyUserId"
/>
</div>
<div>
<el-button
@
click=
"submit"
type=
"primary"
style=
"margin-right: 20px;"
>
确定退仓
</el-button>
<el-button
v-if=
"isExamine"
@
click=
"submit"
type=
"primary"
style=
"margin-right: 20px;"
>
确定退仓
</el-button>
<el-button
v-if=
"!isExamine"
@
click=
"$router.push(
{query:{id:details.formId},path:'/bpm/process-instance/detail'})" type="primary" style="margin-right: 20px;">审核中
</el-button>
<el-button
v-if=
"!isExamine"
type=
"primary"
style=
"margin-right: 20px;"
@
click=
"cancellationOfOrder"
>
取消审核
</el-button>
<el-button
@
click=
"$parent.show = false;"
>
不,再考虑考虑
</el-button>
</div>
</div>
...
...
@@ -28,8 +30,12 @@
</
template
>
<!--退仓-->
<
script
>
import
{
getOrder
}
from
"
@/api/ecw/order
"
;
import
{
orderWarehouseInDelete
}
from
"
@/api/ecw/batchSingleApplication
"
;
import
{
cancelAdjust
,
getOrder
}
from
"
@/api/ecw/order
"
;
import
{
getRollbackApprovalInfo
,
orderWarehouseInDelete
,
warehouseApprovalCancel
}
from
"
@/api/ecw/batchSingleApplication
"
;
import
workFlow
from
"
@/components/WorkFlow
"
;
export
default
{
...
...
@@ -48,12 +54,25 @@ export default {
orderId
:
undefined
,
orderNo
:
undefined
,
reason
:
''
,
copyUserId
:[]
copyUserId
:[]
,
},
isExamine
:
true
,
details
:{},
}
},
created
()
{
getOrder
(
this
.
orderId
).
then
(
r
=>
this
.
orderDetails
=
r
.
data
);
getRollbackApprovalInfo
({
orderId
:
this
.
orderId
}).
then
(
r
=>
{
console
.
log
(
r
)
if
(
r
.
data
.
status
===
1
){
this
.
details
=
r
.
data
;
this
.
isExamine
=
false
;
this
.
params
.
reason
=
JSON
.
parse
(
this
.
details
.
details
).
reason
}
})
},
methods
:{
submit
(){
...
...
@@ -66,6 +85,26 @@ export default {
this
.
$parent
.
show
=
false
}
})
},
cancellationOfOrder
(){
this
.
$prompt
(
'
请输入取消审核原因
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
}).
then
(({
value
})
=>
{
warehouseApprovalCancel
(
this
.
details
.
id
,
value
)
.
then
(
r
=>
{
if
(
r
.
data
){
this
.
$message
.
success
(
'
取消成功
'
)
this
.
params
=
{}
this
.
$parent
.
show
=
false
}
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'
info
'
,
message
:
'
取消成功
'
});
});
}
}
}
...
...
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