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
19703862
Commit
19703862
authored
Mar 29, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
漆料批次号带出,胶漆记录卡合格证查询增加参数并去重
parent
8975e016
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
3 deletions
+45
-3
index.vue
...eComponents/components/DeploymentCardInfoSelect/index.vue
+45
-3
No files found.
applications/dee-mes/src/privateComponents/components/DeploymentCardInfoSelect/index.vue
View file @
19703862
...
@@ -354,6 +354,12 @@ export default {
...
@@ -354,6 +354,12 @@ export default {
if
(
this
.
itemObj
.
attrKey
===
'certificateNo'
)
{
if
(
this
.
itemObj
.
attrKey
===
'certificateNo'
)
{
const
obj
=
this
.
form
.
inventory
.
find
(
item
=>
item
.
testNo
===
value
)
const
obj
=
this
.
form
.
inventory
.
find
(
item
=>
item
.
testNo
===
value
)
this
.
$set
(
this
.
form
,
'lotNo'
,
obj
.
lotNo
)
this
.
$set
(
this
.
form
,
'lotNo'
,
obj
.
lotNo
)
if
(
this
.
subTypeName
===
'AssignCardPaint'
)
{
const
lotNoArr
=
obj
.
lotNo
&&
obj
.
lotNo
.
split
(
'/'
)
this
.
$set
(
this
.
form
,
'baseLotNo'
,
lotNoArr
[
0
]
||
''
)
this
.
$set
(
this
.
form
,
'curingLotNo'
,
lotNoArr
[
1
]
||
''
)
this
.
$set
(
this
.
form
,
'diluentLotNo'
,
lotNoArr
[
2
]
||
''
)
}
}
else
if
(
this
.
itemObj
.
attrKey
===
'certificateNum'
)
{
}
else
if
(
this
.
itemObj
.
attrKey
===
'certificateNum'
)
{
const
obj
=
this
.
form
.
inventory
.
find
(
item
=>
item
.
testNo
===
value
)
const
obj
=
this
.
form
.
inventory
.
find
(
item
=>
item
.
testNo
===
value
)
this
.
$set
(
this
.
form
,
'diluentLotNo'
,
obj
.
lotNo
)
this
.
$set
(
this
.
form
,
'diluentLotNo'
,
obj
.
lotNo
)
...
@@ -596,6 +602,33 @@ export default {
...
@@ -596,6 +602,33 @@ export default {
})
})
},
},
getCertificateNo
(
query
,
attrKey
)
{
getCertificateNo
(
query
,
attrKey
)
{
let
paramsItems
=
[]
if
(
this
.
subTypeName
===
'AssignCardPaint'
||
this
.
subTypeName
===
'AssignCardLacquer'
)
{
paramsItems
=
[{
'fieldName'
:
'remark'
,
'operator'
:
'LIKE'
,
'value'
:
this
.
form
.
realityMark
||
''
},
{
'fieldName'
:
'modelNo'
,
'operator'
:
'EQ'
,
'value'
:
this
.
form
.
modelNo
||
''
}]
}
else
{
if
(
this
.
itemObj
.
attrKey
===
'certificateNum'
)
{
paramsItems
=
[{
'fieldName'
:
'modelNo'
,
'operator'
:
'EQ'
,
'value'
:
this
.
form
.
diluentModelNo
||
''
}]
}
else
{
paramsItems
=
[{
'fieldName'
:
'modelNo'
,
'operator'
:
'EQ'
,
'value'
:
this
.
form
.
baseModelNo
||
''
}]
}
}
const
params
=
{
const
params
=
{
'pageFrom'
:
1
,
'pageFrom'
:
1
,
'pageSize'
:
20
,
'pageSize'
:
20
,
...
@@ -609,15 +642,24 @@ export default {
...
@@ -609,15 +642,24 @@ export default {
{
{
'fieldName'
:
'lotNo'
,
'fieldName'
:
'lotNo'
,
'operator'
:
'NOTNULL'
'operator'
:
'NOTNULL'
}
},
...
paramsItems
]
]
}
}
}
}
post
(
`/Inventory/search`
,
params
).
then
(
res
=>
{
post
(
`/Inventory/search`
,
params
).
then
(
res
=>
{
this
.
loading
=
false
this
.
loading
=
false
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
form
.
inventory
=
res
.
items
.
content
const
resDeduplicate
=
[]
this
.
requestOp
=
res
.
items
.
content
.
map
(
item
=>
{
// 去重
res
.
items
.
content
.
forEach
(
m
=>
{
if
(
!
resDeduplicate
.
find
(
d
=>
d
.
testNo
===
m
.
testNo
))
{
resDeduplicate
.
push
(
m
)
}
})
this
.
form
.
inventory
=
resDeduplicate
this
.
requestOp
=
resDeduplicate
.
map
(
item
=>
{
let
disabled
=
false
let
disabled
=
false
if
(
item
.
qualityPeriod
)
{
if
(
item
.
qualityPeriod
)
{
disabled
=
new
Date
().
getTime
()
>
Date
.
parse
(
item
.
qualityPeriod
)
disabled
=
new
Date
().
getTime
()
>
Date
.
parse
(
item
.
qualityPeriod
)
...
...
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