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
a2efb5a8
Commit
a2efb5a8
authored
Apr 07, 2024
by
15008242619
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退库单退库
parent
33b7656d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
0 deletions
+72
-0
index.vue
...-mes/src/privateComponents/components/backApply/index.vue
+72
-0
No files found.
applications/dee-mes/src/privateComponents/components/backApply/index.vue
0 → 100644
View file @
a2efb5a8
<
template
>
<div>
<dee-as-com
ref=
"applyTable"
class=
"list-table"
:basic-data=
"
{ selectData,selectionRows }"
:lay-config="{ typeName: 'InStorageBack', layKey: 'InStorageBackApplyList' }"
@backApply="backApply"
@selectionChange="selectionChange"
/>
<dee-dialog
title=
"发起退库申请"
:dialog-visible=
"dialogVisible"
>
<div>
确认提交吗?
</div>
<el-button
@
click=
"confirm"
>
确 定
</el-button>
<el-button
@
click=
"cancle"
>
取 消
</el-button>
</dee-dialog>
</div>
</
template
>
<
script
>
import
{
post
}
from
'@/utils/http'
export
default
{
name
:
'backApply'
,
componentName
:
'退库申请'
,
components
:
{
},
props
:
{
selectData
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
return
{
dialogVisible
:
false
,
selectionRows
:
[]
}
},
methods
:
{
backApply
()
{
this
.
dialogVisible
=
true
},
confirm
()
{
let
isTkdBack
=
0
this
.
selectionRows
.
forEach
(
item
=>
{
if
(
item
.
remarks
!==
'退库单退库'
){
isTkdBack
++
}
})
if
(
isTkdBack
===
0
)
{
// post('').then()
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
}
else
if
(
isTkdBack
===
this
.
selectionRows
.
length
)
{
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
}
else
{
this
.
$utils
.
showMessageWarning
(
'退库原因为退库单退库的不能与其他退库类型一起提交'
)
}
console
.
log
(
this
.
selectionRows
)
},
cancle
()
{
this
.
dialogVisible
=
false
},
selectionChange
(
val
)
{
this
.
selectionRows
=
val
}
}
}
</
script
>
<
style
></
style
>
\ No newline at end of file
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