Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
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
TFMOM
TF-MOM-WEB
Commits
d60a3272
Commit
d60a3272
authored
Apr 18, 2024
by
15008242619
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退库单退库入库优化(暂不部署正式)
parent
1624ad61
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
4 deletions
+62
-4
index.vue
...-mes/src/privateComponents/components/backApply/index.vue
+30
-3
index.vue
...task-center/myPlanTask/inStorageUseOutBackApply/index.vue
+32
-1
No files found.
applications/dee-mes/src/privateComponents/components/backApply/index.vue
View file @
d60a3272
...
...
@@ -149,9 +149,36 @@ export default {
if
(
isTkdBack
===
0
)
{
// 退库单退库选人
this
.
dialogVisible
=
false
let
isMatchBack
=
0
this
.
selectionRows
.
forEach
(
item
=>
{
if
(
item
.
subTypeName
!==
'InStorageUseBack'
)
{
isMatchBack
++
}
if
(
isMatchBack
===
0
)
{
// 全为领用退库
this
.
setPersonVisible
=
true
}
else
if
(
isMatchBack
===
this
.
selectionRows
.
length
)
{
const
ids
=
[]
if
(
this
.
selectionRows
&&
this
.
selectionRows
.
length
)
{
this
.
selectionRows
.
forEach
(
item
=>
item
.
inStorageRequestItems
.
forEach
(
i
=>
ids
.
push
(
i
.
id
)))
}
// 全为配套退库
post
(
'/InStorageRequestItem/creator/autoApply'
,
ids
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
setTimeout
(()
=>
{
this
.
$refs
.
applyTable
.
$refs
.
asCom
.
getData
()
},
1500
)
}).
catch
(()
=>
{
this
.
$utils
.
showMessageWarning
(
'出现异常,提交失败'
)
}).
finally
(()
=>
{
this
.
dialogVisible
=
false
})
}
else
{
this
.
$utils
.
showMessageWarning
(
'退库原因为退库单退库的领用退库和配套退库不能一起提交'
)
}
})
}
else
if
(
isTkdBack
===
this
.
selectionRows
.
length
)
{
post
(
'/In
ventoryRequest
/purchaseApply/submit?applyIds='
+
this
.
selectionRows
.
map
(
item
=>
Number
(
item
.
id
))).
then
(
res
=>
{
post
(
'/In
StorageRequestItem
/purchaseApply/submit?applyIds='
+
this
.
selectionRows
.
map
(
item
=>
Number
(
item
.
id
))).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
this
.
$refs
.
applyTable
.
$refs
.
asCom
.
getData
()
}).
catch
(()
=>
{
...
...
@@ -169,7 +196,7 @@ export default {
setPersonConfirm
()
{
const
ids
=
[]
if
(
this
.
selectionRows
&&
this
.
selectionRows
.
length
)
{
this
.
selectionRows
.
map
(
item
=>
item
.
inStorageRequestItems
.
map
(
i
=>
ids
.
push
(
i
.
id
)))
this
.
selectionRows
.
forEach
(
item
=>
item
.
inStorageRequestItems
.
forEach
(
i
=>
ids
.
push
(
i
.
id
)))
}
post
(
'/InStorageRequestItem/creator/apply?userIds='
+
this
.
form
.
userIds
,
ids
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
...
...
applications/dee-task-center/src/views/workflow/task-center/myPlanTask/inStorageUseOutBackApply/index.vue
View file @
d60a3272
...
...
@@ -157,7 +157,38 @@ export default {
if
(
isTkdBack
===
0
)
{
// 退库单退库选人
this
.
dialogVisible
=
false
let
isMatchBack
=
0
this
.
selectionRows
.
forEach
(
item
=>
{
if
(
item
.
subTypeName
!==
'InStorageUseBackItem'
)
{
isMatchBack
++
}
if
(
isMatchBack
===
0
)
{
// 全为领用退库
this
.
setPersonVisible
=
true
}
else
if
(
isMatchBack
===
this
.
selectionRows
.
length
)
{
if
(
this
.
selectionRows
&&
this
.
selectionRows
.
length
)
{
const
params
=
this
.
selectionRows
.
map
(
item
=>
{
return
{
processTaskId
:
item
.
processTaskId
,
aoName
:
item
.
inventoryReq
.
aoNo
}
})
}
// 全为配套退库
post
(
'/InStorageRequestItem/creator/autoApplyByItems'
,
params
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
setTimeout
(()
=>
{
this
.
$refs
.
applyTable
.
$refs
.
asCom
.
getData
()
},
1500
)
}).
catch
(()
=>
{
this
.
$utils
.
showMessageWarning
(
'出现异常,提交失败'
)
}).
finally
(()
=>
{
this
.
dialogVisible
=
false
})
}
else
{
this
.
$utils
.
showMessageWarning
(
'退库原因为退库单退库的领用退库和配套退库不能一起提交'
)
}
})
}
else
if
(
isTkdBack
===
this
.
selectionRows
.
length
)
{
post
(
'/DxWorkflowTask/apply/pass'
,
this
.
selectionRows
.
map
(
item
=>
item
.
processTaskId
)).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
...
...
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