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
9c9e8ce0
Commit
9c9e8ce0
authored
May 16, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
领用出库申请增加串件领用
parent
1fd93230
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 @
9c9e8ce0
...
@@ -18,7 +18,17 @@
...
@@ -18,7 +18,17 @@
</el-select>
</el-select>
</div>
</div>
<dee-as-com
<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;"
style=
"border:none;"
model-name=
"OutStorageUse"
model-name=
"OutStorageUse"
:lay-config=
"cmpOptions"
:lay-config=
"cmpOptions"
...
@@ -29,7 +39,7 @@
...
@@ -29,7 +39,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
//
import { post } from '@/utils/http'
import
{
post
}
from
'@/utils/http'
export
default
{
export
default
{
componentName
:
'领用出库申请新建'
,
componentName
:
'领用出库申请新建'
,
name
:
'AddOutStorageUseCom'
,
name
:
'AddOutStorageUseCom'
,
...
@@ -59,6 +69,7 @@ export default {
...
@@ -59,6 +69,7 @@ export default {
typeName
:
'OutStorageUse'
,
typeName
:
'OutStorageUse'
,
layKey
:
'outStorageUseApplyAdd_useAO'
layKey
:
'outStorageUseApplyAdd_useAO'
},
},
bindForm
:
{},
outStorageUseId
:
''
//
outStorageUseId
:
''
//
}
}
},
},
...
@@ -67,12 +78,19 @@ export default {
...
@@ -67,12 +78,19 @@ export default {
typeName
:
{
typeName
:
{
immediate
:
true
,
immediate
:
true
,
handler
(
val
)
{
handler
(
val
)
{
this
.
bindForm
=
{}
if
(
!
this
.
basicData
.
id
)
{
if
(
!
this
.
basicData
.
id
)
{
this
.
$set
(
this
.
cmpOptions
,
'layKey'
,
`outStorageUseApplyAdd_
${
val
}
`
)
this
.
$set
(
this
.
cmpOptions
,
'layKey'
,
`outStorageUseApplyAdd_
${
val
}
`
)
}
else
{
}
else
{
this
.
$set
(
this
.
cmpOptions
,
'layKey'
,
`outStorageUseApplyEdit_
${
val
}
`
)
this
.
$set
(
this
.
cmpOptions
,
'layKey'
,
`outStorageUseApplyEdit_
${
val
}
`
)
}
}
}
}
},
'bindForm.replaceDocNo'
:
{
immediate
:
true
,
handler
(
val
)
{
val
&&
typeof
(
val
)
===
'number'
&&
this
.
getReplaceOutInfo
(
val
)
}
}
}
},
},
created
()
{
created
()
{
...
@@ -103,6 +121,15 @@ export default {
...
@@ -103,6 +121,15 @@ export default {
this
.
formData
=
Object
.
assign
({},
val
)
this
.
formData
=
Object
.
assign
({},
val
)
this
.
formData
.
typeName
=
this
.
typeName
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) {
// cancelHandler(val) {
// this.$confirm('此操作将解除已占用的操作, 是否继续?', '提示', {
// this.$confirm('此操作将解除已占用的操作, 是否继续?', '提示', {
...
...
applications/dee-mes/src/privateComponents/components/AddOutStorageUseDetails/index.vue
View file @
9c9e8ce0
...
@@ -126,6 +126,14 @@ export default {
...
@@ -126,6 +126,14 @@ export default {
}
}
}
}
}
}
},
'form.replaceDocNo'
:
{
immediate
:
true
,
handler
(
val
)
{
if
(
val
&&
this
.
form
.
inStorageRequestItems
)
{
this
.
tableData
=
this
.
form
.
inStorageRequestItems
}
}
}
}
},
},
mounted
()
{
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