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
32a4dec1
Commit
32a4dec1
authored
Jul 31, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阿洛丁组分填写牌号接口修改,添加剂牌号为根据阿洛丁牌号带出的组分牌号分割值
parent
15a2e17d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
9 deletions
+43
-9
index.vue
...eComponents/components/DeploymentCardInfoSelect/index.vue
+43
-9
No files found.
applications/dee-mes/src/privateComponents/components/DeploymentCardInfoSelect/index.vue
View file @
32a4dec1
...
...
@@ -79,7 +79,8 @@ export default {
AssignCardItem
:
'ShellacCardLacquer'
,
AssignCardAlodine
:
'ShellacCardAlodine'
},
subTypeName
:
''
subTypeName
:
''
,
shellacDeployLists
:
[]
}
},
computed
:
{
...
...
@@ -394,8 +395,21 @@ export default {
}
]
}
await
post
(
`/ShellacDeploy/queryModel?param=
${
key
}
`
,
params
)
const
requestUrl
=
key
===
'baseModelNo'
?
'/ShellacDeploy/search'
:
`/ShellacDeploy/queryModel?param=
${
key
}
`
await
post
(
requestUrl
,
params
)
.
then
(
res
=>
{
if
(
key
===
'baseModelNo'
)
{
if
(
res
.
items
&&
res
.
items
.
content
)
{
this
.
shellacDeployLists
=
res
.
items
.
content
this
.
requestOp
=
res
.
items
.
content
.
map
(
item
=>
{
return
{
label
:
item
.
modelNo
,
value
:
item
.
modelNo
}
})
this
.
form
.
baseModelNo
&&
this
.
setDiluentModelNoOption
(
this
.
form
.
baseModelNo
)
}
}
else
{
if
(
res
.
code
===
0
)
{
this
.
requestOp
=
res
.
items
.
map
(
item
=>
{
return
{
...
...
@@ -404,6 +418,7 @@ export default {
}
})
}
}
})
},
changeEvent
(
value
)
{
...
...
@@ -422,6 +437,10 @@ export default {
}
else
if
(
this
.
itemObj
.
attrKey
===
'baseModelNo'
)
{
this
.
$set
(
this
.
form
,
'certificateNo'
,
''
)
this
.
$set
(
this
.
form
,
'lotNo'
,
''
)
this
.
setDiluentModelNoOption
(
value
)
this
.
$set
(
this
.
form
,
'diluentModelNo'
,
''
)
this
.
$set
(
this
.
form
,
'certificateNum'
,
''
)
this
.
$set
(
this
.
form
,
'diluentLotNo'
,
''
)
}
else
{
this
.
$set
(
this
.
form
,
this
.
itemObj
.
attrKey
,
value
)
this
.
changeRequest
()
...
...
@@ -756,6 +775,21 @@ export default {
this
.
setFormDataAttr
(
attrKey
,
'options'
,
this
.
requestOp
)
}
})
},
setDiluentModelNoOption
(
value
)
{
const
targetObj
=
this
.
shellacDeployLists
.
find
(
item
=>
item
.
modelNo
===
value
)
if
(
targetObj
&&
targetObj
.
component
)
{
const
diluentModelNoOption
=
this
.
splitByVerticalBar
(
targetObj
.
component
).
map
(
el
=>
{
return
{
value
:
el
,
label
:
el
}
})
this
.
setFormDataAttr
(
'diluentModelNo'
,
'options'
,
diluentModelNoOption
||
[])
}
},
splitByVerticalBar
(
str
)
{
// 正则表达式匹配中文竖线或英文竖线
const
regex
=
/
[\u
3000
\u
007C
\|]
+/g
return
str
.
split
(
regex
).
filter
(
function
(
item
)
{
// 去除空字符串
return
item
!==
''
})
}
}
}
...
...
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