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
ad705b5e
Commit
ad705b5e
authored
May 16, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
领用出库申请增加串件领用
parent
4b53f0f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
index.vue
...rivateComponents/components/AddOutStorageUseCom/index.vue
+29
-2
index.vue
...teComponents/components/AddOutStorageUseDetails/index.vue
+8
-0
No files found.
applications/dee-mes/src/privateComponents/components/AddOutStorageUseCom/index.vue
View file @
ad705b5e
...
...
@@ -18,7 +18,17 @@
</el-select>
</div>
<dee-as-com
v-if=
"typeName"
v-if=
"typeName==='replaceUse'"
ref=
"basicInfoTable"
:form=
"bindForm"
style=
"border:none;"
model-name=
"OutStorageUse"
:lay-config=
"cmpOptions"
:basic-data=
"
{...basicData,useRequestType:basicData.typeName||typeName}"
/>
<dee-as-com
v-else-if=
"typeName"
ref=
"basicInfoTable"
style=
"border:none;"
model-name=
"OutStorageUse"
:lay-config=
"cmpOptions"
...
...
@@ -29,7 +39,7 @@
</
template
>
<
script
>
//
import { post } from '@/utils/http'
import
{
post
}
from
'@/utils/http'
export
default
{
componentName
:
'领用出库申请新建'
,
name
:
'AddOutStorageUseCom'
,
...
...
@@ -59,6 +69,7 @@ export default {
typeName
:
'OutStorageUse'
,
layKey
:
'outStorageUseApplyAdd_useAO'
},
bindForm
:
{},
outStorageUseId
:
''
//
}
},
...
...
@@ -67,12 +78,19 @@ export default {
typeName
:
{
immediate
:
true
,
handler
(
val
)
{
this
.
bindForm
=
{}
if
(
!
this
.
basicData
.
id
)
{
this
.
$set
(
this
.
cmpOptions
,
'layKey'
,
`outStorageUseApplyAdd_
${
val
}
`
)
}
else
{
this
.
$set
(
this
.
cmpOptions
,
'layKey'
,
`outStorageUseApplyEdit_
${
val
}
`
)
}
}
},
'bindForm.replaceDocNo'
:
{
immediate
:
true
,
handler
(
val
)
{
val
&&
typeof
(
val
)
===
'number'
&&
this
.
getReplaceOutInfo
(
val
)
}
}
},
created
()
{
...
...
@@ -103,6 +121,15 @@ export default {
this
.
formData
=
Object
.
assign
({},
val
)
this
.
formData
.
typeName
=
this
.
typeName
}
},
getReplaceOutInfo
(
id
)
{
this
.
bindForm
=
{
replaceDocNo
:
this
.
bindForm
.
replaceDocNo
}
post
(
`OutStorageRequest/createReplaceOutInfo?replaceDocId=
${
id
}
`
).
then
(
res
=>
{
if
(
!
res
.
items
)
return
this
.
bindForm
=
res
.
items
}).
catch
(
err
=>
{
console
.
log
(
err
)
}).
finally
(()
=>
{})
}
// cancelHandler(val) {
// this.$confirm('此操作将解除已占用的操作, 是否继续?', '提示', {
...
...
applications/dee-mes/src/privateComponents/components/AddOutStorageUseDetails/index.vue
View file @
ad705b5e
...
...
@@ -126,6 +126,14 @@ export default {
}
}
}
},
'form.replaceDocNo'
:
{
immediate
:
true
,
handler
(
val
)
{
if
(
val
&&
this
.
form
.
inStorageRequestItems
)
{
this
.
tableData
=
this
.
form
.
inStorageRequestItems
}
}
}
},
mounted
()
{
...
...
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