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
5c94a8ef
Commit
5c94a8ef
authored
Nov 08, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移库入库批量移库
parent
96934f31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
2 deletions
+100
-2
index.vue
...ponents/components/InStorageMoveWarehouseSelect/index.vue
+11
-2
index.vue
...rc/privateComponents/components/MoveLibraryList/index.vue
+89
-0
No files found.
applications/dee-mes/src/privateComponents/components/InStorageMoveWarehouseSelect/index.vue
View file @
5c94a8ef
...
@@ -88,7 +88,6 @@ export default {
...
@@ -88,7 +88,6 @@ export default {
}
}
},
},
computed
:
{},
watch
:
{
watch
:
{
form
:
{
form
:
{
immediate
:
true
,
immediate
:
true
,
...
@@ -111,13 +110,17 @@ export default {
...
@@ -111,13 +110,17 @@ export default {
immediate
:
true
,
immediate
:
true
,
deep
:
true
,
deep
:
true
,
handler
(
v
)
{
handler
(
v
)
{
if
(
v
)
{
if
(
v
!==
this
.
selVal
)
{
this
.
selVal
=
this
.
value
this
.
selVal
=
this
.
value
}
}
}
}
}
}
},
},
created
()
{
created
()
{
this
.
$bus
.
$on
(
'InStorageMoveform-InStorageMoveTable'
,
(
data
)
=>
{
this
.
selVal
=
null
this
.
options
=
[]
})
},
},
methods
:
{
methods
:
{
changeVal
()
{
changeVal
()
{
...
@@ -142,6 +145,12 @@ export default {
...
@@ -142,6 +145,12 @@ export default {
},
},
// 远程搜索物料类别
// 远程搜索物料类别
remoteMethod
(
query
)
{
remoteMethod
(
query
)
{
if
(
sessionStorage
.
getItem
(
'InStorageMoveform-InStorageMoveTable'
))
{
this
.
linkageValue
=
sessionStorage
.
getItem
(
'InStorageMoveform-InStorageMoveTable'
)
}
if
(
!
this
.
linkageValue
)
{
this
.
$utils
.
showMessageWarning
(
`请先选择库房!`
)
}
this
.
querys
=
query
// 保存搜索内容
this
.
querys
=
query
// 保存搜索内容
const
querys
=
{
const
querys
=
{
pageFrom
:
1
,
pageFrom
:
1
,
...
...
applications/dee-mes/src/privateComponents/components/MoveLibraryList/index.vue
0 → 100644
View file @
5c94a8ef
/**
* @Description: 批量移库表
* @author xioln
* @date 2023-11-07
* @FilePath: applications/dee-mes/src/privateComponents/components/MoveLibraryList/index.vue
*/
<
template
>
<div
class=
"moveLibrary-list"
>
<dee-as-com
ref=
"inStorageMoveform"
style=
"height: 10vh !important;"
:basic-data=
"basicData"
:lay-config=
"
{ typeName: 'InStorageMove', layKey: 'moveLibraryForm' }"
/>
<dee-as-com
ref=
"inStorageMoveTable"
style=
"height: 70vh !important;"
:dis-business=
"true"
:result-data=
"basicData.inventory"
:lay-config=
"
{ typeName: 'InStorageMove', layKey: 'moveLibrary' }"
/>
<div
slot=
"footer"
class=
"foot-btn-box"
>
<el-button
type=
"primary"
@
click=
"submitEvent"
>
确认
</el-button>
<el-button
@
click=
"cancelEvent"
>
取消
</el-button>
</div>
</div>
</
template
>
<
script
>
import
{
post
}
from
'@/utils/http'
export
default
{
name
:
'MoveLibraryList'
,
// name写在组件的最前方,自定义组件为必填
componentName
:
'批量移库表'
,
components
:
{},
props
:
{
basicData
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
return
{
currForm
:
{}
}
},
computed
:
{},
watch
:
{
},
mounted
()
{
},
methods
:
{
async
submitEvent
()
{
if
(
!
this
.
$refs
.
inStorageMoveform
.
$refs
.
asCom
.
form
.
extWorkCenterId
)
{
return
this
.
$utils
.
showMessageWarning
(
`请输入必填项!`
)
}
const
extWorkCenterId
=
this
.
$refs
.
inStorageMoveform
.
$refs
.
asCom
.
form
.
extWorkCenterId
const
params
=
this
.
basicData
.
inventory
.
map
(
item
=>
{
return
{
inventoryId
:
item
.
id
,
extWorkCenterId
:
extWorkCenterId
,
extWorkUnitId
:
item
.
currExtWorkUnitId
,
outsideAmount
:
item
.
currOutsideAmount
,
disposeDes
:
item
.
currDisposeDes
||
''
}
})
if
(
params
.
find
(
item
=>
!
item
.
extWorkCenterId
||
!
item
.
outsideAmount
))
{
return
this
.
$utils
.
showMessageWarning
(
`请输入必填项!`
)
}
const
reponse
=
await
post
(
'InventoryRequest/moveApplication/createMoveStorage'
,
params
)
this
.
$utils
.
showMessageSuccess
(
reponse
.
items
)
this
.
$emit
(
'cancel'
)
},
cancelEvent
()
{
this
.
$emit
(
'cancel'
)
}
}
}
</
script
>
<
style
lang=
'scss'
>
.moveLibrary-list
{
.foot-btn-box
{
display
:
flex
;
margin-top
:
10px
;
justify-content
:
center
;
align-content
:
center
;
}
}
</
style
>
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