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
ff079447
Commit
ff079447
authored
Oct 16, 2022
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交工作流审核后,审核中点击跳转到对应的审核详情页 / 入仓修改-审核中跳转审核详情
http://zentao.jdshangmen.com/task-view-1057.html
parent
f2389b65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
6 deletions
+44
-6
order.js
src/api/ecw/order.js
+10
-1
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+34
-5
No files found.
src/api/ecw/order.js
View file @
ff079447
...
@@ -189,6 +189,15 @@ export function getWarehouseUpdateApprovalInfo(id) {
...
@@ -189,6 +189,15 @@ export function getWarehouseUpdateApprovalInfo(id) {
})
})
}
}
// 获取最近的入仓修改审批单详情-修改页面使用
export
function
getWarehouseLastUpdateApprovalInfo
(
params
)
{
return
request
({
url
:
'
/order/order-warehouse-in/get-last-update-approval-info
'
,
method
:
'
get
'
,
params
})
}
// 入仓完成
// 入仓完成
export
function
orderWarehouseInFinish
(
data
){
export
function
orderWarehouseInFinish
(
data
){
return
request
({
return
request
({
...
@@ -457,4 +466,4 @@ export function updateApply(data){
...
@@ -457,4 +466,4 @@ export function updateApply(data){
method
:
'
put
'
,
method
:
'
put
'
,
data
data
})
})
}
}
\ No newline at end of file
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
ff079447
...
@@ -343,13 +343,13 @@
...
@@ -343,13 +343,13 @@
</div>
</div>
<span
slot=
"footer"
>
<span
slot=
"footer"
>
<
template
v-if=
"
true
"
>
<
template
v-if=
"
!isEditing
"
>
<el-button
@
click=
"opened = false"
>
关 闭
</el-button>
<el-button
@
click=
"opened = false"
>
关 闭
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit()"
>
{{
edit
?
'
确认修改
'
:
'
提 交
'
}}
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit()"
>
{{
edit
?
'
确认修改
'
:
'
提 交
'
}}
</el-button>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<el-button
type=
"primary"
>
审核中
</el-button>
<el-button
type=
"primary"
@
click=
"$router.push('/bpm/process-instance/detail?id=' + formId)"
>
审核中
</el-button>
<el-button
type=
"primary"
>
取消审核
</el-button>
<el-button
type=
"primary"
@
click=
"handleCancelProcessInstance"
>
取消审核
</el-button>
<el-button
@
click=
"opened = false"
>
返回
</el-button>
<el-button
@
click=
"opened = false"
>
返回
</el-button>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
@@ -363,10 +363,11 @@
...
@@ -363,10 +363,11 @@
<
script
>
<
script
>
import
dictSelector
from
"
@/components/DictSelector
"
import
dictSelector
from
"
@/components/DictSelector
"
import
{
DICT_TYPE
,
getDictDataLabel
}
from
"
@/utils/dict
"
import
{
DICT_TYPE
,
getDictDataLabel
}
from
"
@/utils/dict
"
import
{
orderWarehouseIn
,
orderWarehouseInUpdateApply
}
from
'
@/api/ecw/order
'
import
{
getWarehouseLastUpdateApprovalInfo
,
orderWarehouseIn
,
orderWarehouseInUpdateApply
}
from
'
@/api/ecw/order
'
import
{
getFeeTypeByOrderProduct
,
getProductBrankPage
}
from
'
@/api/ecw/productBrank
'
import
{
getFeeTypeByOrderProduct
,
getProductBrankPage
}
from
'
@/api/ecw/productBrank
'
import
WorkFlow
from
"
@/components/WorkFlow
"
import
WorkFlow
from
"
@/components/WorkFlow
"
import
ProductSelector
from
"
@/components/ProductSelector
"
import
ProductSelector
from
"
@/components/ProductSelector
"
import
{
cancelProcessInstance
}
from
"
@/api/bpm/processInstance
"
export
default
{
export
default
{
name
:
'
editDialog
'
,
name
:
'
editDialog
'
,
...
@@ -480,7 +481,12 @@ export default {
...
@@ -480,7 +481,12 @@ export default {
selectedUsers
:
undefined
,
selectedUsers
:
undefined
,
activeName
:
'
first
'
activeName
:
'
first
'
,
// 入仓修改正在审核中
isEditing
:
false
,
// 审批业务id
formId
:
''
};
};
},
},
...
@@ -500,6 +506,15 @@ export default {
...
@@ -500,6 +506,15 @@ export default {
this
.
form
.
material
=
this
.
warehousing
.
material
this
.
form
.
material
=
this
.
warehousing
.
material
this
.
form
.
brand
=
this
.
warehousing
.
brand
?.
toString
()
||
''
this
.
form
.
brand
=
this
.
warehousing
.
brand
?.
toString
()
||
''
this
.
handleBrandChange
(
this
.
form
.
brand
)
this
.
handleBrandChange
(
this
.
form
.
brand
)
getWarehouseLastUpdateApprovalInfo
({
orderItemId
:
this
.
warehousing
.
orderItemId
,
orderId
:
this
.
warehousing
.
orderId
}).
then
(
r
=>
{
if
(
r
.
data
&&
r
.
data
.
status
===
1
&&
r
.
data
.
type
===
1
){
this
.
isEditing
=
true
this
.
formId
=
r
.
data
.
formId
}
})
}
else
{
}
else
{
this
.
$emit
(
'
update:visible
'
,
false
)
this
.
$emit
(
'
update:visible
'
,
false
)
}
}
...
@@ -518,6 +533,20 @@ export default {
...
@@ -518,6 +533,20 @@ export default {
},
},
methods
:
{
methods
:
{
handleCancelProcessInstance
(){
this
.
$prompt
(
'
请输入取消原因?
'
,
"
取消流程
"
,
{
type
:
'
warning
'
,
confirmButtonText
:
"
确定
"
,
cancelButtonText
:
"
取消
"
,
inputPattern
:
/^
[\s\S]
*.*
\S[\s\S]
*$/
,
// 判断非空,且非空格
inputErrorMessage
:
"
取消原因不能为空
"
,
}).
then
(({
value
})
=>
{
cancelProcessInstance
(
this
.
formId
,
value
).
then
(()
=>
{
this
.
opened
=
false
this
.
$modal
.
msgSuccess
(
"
取消成功
"
);
})
})
},
onProductChange
(
product
){
onProductChange
(
product
){
this
.
form1
.
prodTitleZh
=
product
.
titleZh
this
.
form1
.
prodTitleZh
=
product
.
titleZh
this
.
form1
.
prodTitleEn
=
product
.
titleEn
this
.
form1
.
prodTitleEn
=
product
.
titleEn
...
...
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