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
b1efb1ff
Commit
b1efb1ff
authored
Sep 18, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购入库子明细添加问题
parent
8816d947
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
29 deletions
+50
-29
index.vue
...mponents/components/OutStorageCallBackReqAmount/index.vue
+1
-1
storageDetailsCreateCom.vue
...arehousingNewOrEdit/component/storageDetailsCreateCom.vue
+49
-28
No files found.
applications/dee-mes/src/privateComponents/components/OutStorageCallBackReqAmount/index.vue
View file @
b1efb1ff
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*/
*/
<
template
>
<
template
>
<div
class=
"outStorageCallBack-reqAmount"
>
<div
class=
"outStorageCallBack-reqAmount"
>
<el-input-number
v-model=
"reqAmount"
:min=
"
1
"
:max=
"maxNum"
@
change=
"handleChange"
/>
<el-input-number
v-model=
"reqAmount"
:min=
"
0
"
:max=
"maxNum"
@
change=
"handleChange"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingNewOrEdit/component/storageDetailsCreateCom.vue
View file @
b1efb1ff
...
@@ -261,7 +261,6 @@ export default {
...
@@ -261,7 +261,6 @@ export default {
},
},
methods
:
{
methods
:
{
handleOpen
(
type
,
basicData
,
row
)
{
handleOpen
(
type
,
basicData
,
row
)
{
console
.
log
(
'rwo'
,
row
)
this
.
basicData
=
basicData
this
.
basicData
=
basicData
this
.
form
=
{
'reqAmount'
:
1
}
this
.
form
=
{
'reqAmount'
:
1
}
this
.
dialogVisibleDetails
=
true
this
.
dialogVisibleDetails
=
true
...
@@ -1566,33 +1565,55 @@ export default {
...
@@ -1566,33 +1565,55 @@ export default {
)
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
material
=
res
.
items
.
content
this
.
material
=
res
.
items
.
content
this
.
formFileds
[
0
].
data
.
forEach
(
filed
=>
{
const
keywordField
=
this
.
formFileds
[
0
].
data
.
find
(
field
=>
field
.
title
===
'物料关键词'
)
if
(
filed
.
title
===
'物料关键词'
)
{
filed
.
component
.
options
=
res
.
items
.
content
.
map
(
if
(
keywordField
)
{
(
item
)
=>
{
keywordField
.
component
.
options
=
res
.
items
.
content
.
map
(
item
=>
{
// 新增或编辑子产品时和父产品物料类型不能一致
const
labelParts
=
[]
if
(((
this
.
operateType
===
'MODIFY'
&&
!
this
.
form
.
isRoot
)
||
this
.
operateType
===
'ADD'
)
&&
item
.
resCode
===
this
.
form
.
extMaterial
.
resCode
)
{
if
(
item
.
resName
)
labelParts
.
push
(
item
.
resName
+
'/'
)
if
(
item
.
modelNo
)
labelParts
.
push
(
item
.
modelNo
+
'/'
)
if
(
item
.
techSpec
)
labelParts
.
push
(
item
.
techSpec
+
'/'
)
if
(
item
.
spec
)
labelParts
.
push
(
item
.
spec
+
'/'
)
if
(
item
.
supplyStatus
)
labelParts
.
push
(
item
.
supplyStatus
+
'/'
)
if
(
item
.
supplierName
)
labelParts
.
push
(
item
.
supplierName
+
'/'
)
const
label
=
labelParts
.
join
(
''
)
return
{
return
{
label
:
`
${
item
.
resName
?
item
.
resName
+
'/'
:
''
}${
item
.
modelNo
?
item
.
modelNo
+
'/'
:
''
label
,
}${
item
.
techSpec
?
item
.
techSpec
+
'/'
:
''
}${
item
.
spec
?
item
.
spec
+
'/'
:
''
}${
item
.
supplyStatus
?
item
.
supplyStatus
+
'/'
:
''
}${
item
.
supplierName
?
item
.
supplierName
+
'/'
:
''
}
`
,
value
:
item
.
resCode
,
value
:
item
.
resCode
,
disabled
:
true
disabled
:
((
this
.
operateType
===
'MODIFY'
&&
!
this
.
form
.
isRoot
)
||
this
.
operateType
===
'ADD'
)
&&
(
this
.
form
.
extMaterial
&&
item
.
resCode
===
this
.
form
.
extMaterial
.
resCode
)
}
}
else
{
return
{
label
:
`
${
item
.
resName
?
item
.
resName
+
'/'
:
''
}${
item
.
modelNo
?
item
.
modelNo
+
'/'
:
''
}${
item
.
techSpec
?
item
.
techSpec
+
'/'
:
''
}${
item
.
spec
?
item
.
spec
+
'/'
:
''
}${
item
.
supplyStatus
?
item
.
supplyStatus
+
'/'
:
''
}${
item
.
supplierName
?
item
.
supplierName
+
'/'
:
''
}
`
,
value
:
item
.
resCode
}
}
}
)
}
}
})
})
}
// this.formFileds[0].data.forEach(filed => {
// if (filed.title === '物料关键词') {
// filed.component.options = res.items.content.map(
// (item) => {
// // 新增或编辑子产品时和父产品物料类型不能一致
// if (((this.operateType === 'MODIFY' && !this.form.isRoot) || this.operateType === 'ADD') && item.resCode === this.form.extMaterial.resCode) {
// return {
// label: `${item.resName ? item.resName + '/' : ''}${item.modelNo ? item.modelNo + '/' : ''
// }${item.techSpec ? item.techSpec + '/' : ''}${item.spec ? item.spec + '/' : ''
// }${item.supplyStatus ? item.supplyStatus + '/' : ''}${item.supplierName ? item.supplierName + '/' : ''
// }`,
// value: item.resCode,
// disabled: true
// }
// } else {
// return {
// label: `${item.resName ? item.resName + '/' : ''}${item.modelNo ? item.modelNo + '/' : ''
// }${item.techSpec ? item.techSpec + '/' : ''}${item.spec ? item.spec + '/' : ''
// }${item.supplyStatus ? item.supplyStatus + '/' : ''}${item.supplierName ? item.supplierName + '/' : ''
// }`,
// value: item.resCode
// }
// }
// }
// )
// }
// })
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
console
.
log
(
err
)
console
.
log
(
err
)
...
...
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