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
Hide 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 @@
*/
<
template
>
<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>
</
template
>
<
script
>
...
...
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingNewOrEdit/component/storageDetailsCreateCom.vue
View file @
b1efb1ff
...
...
@@ -261,7 +261,6 @@ export default {
},
methods
:
{
handleOpen
(
type
,
basicData
,
row
)
{
console
.
log
(
'rwo'
,
row
)
this
.
basicData
=
basicData
this
.
form
=
{
'reqAmount'
:
1
}
this
.
dialogVisibleDetails
=
true
...
...
@@ -1566,33 +1565,55 @@ export default {
)
.
then
((
res
)
=>
{
this
.
material
=
res
.
items
.
content
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
}
}
}
)
}
})
const
keywordField
=
this
.
formFileds
[
0
].
data
.
find
(
field
=>
field
.
title
===
'物料关键词'
)
if
(
keywordField
)
{
keywordField
.
component
.
options
=
res
.
items
.
content
.
map
(
item
=>
{
const
labelParts
=
[]
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
{
label
,
value
:
item
.
resCode
,
disabled
:
((
this
.
operateType
===
'MODIFY'
&&
!
this
.
form
.
isRoot
)
||
this
.
operateType
===
'ADD'
)
&&
(
this
.
form
.
extMaterial
&&
item
.
resCode
===
this
.
form
.
extMaterial
.
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
)
=>
{
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