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
5696c505
Commit
5696c505
authored
Jul 31, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阿洛丁组分填写牌号接口修改,添加剂牌号为根据阿洛丁牌号带出的组分牌号分割值
parent
64650aed
Hide 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 @
5696c505
...
@@ -79,7 +79,8 @@ export default {
...
@@ -79,7 +79,8 @@ export default {
AssignCardItem
:
'ShellacCardLacquer'
,
AssignCardItem
:
'ShellacCardLacquer'
,
AssignCardAlodine
:
'ShellacCardAlodine'
AssignCardAlodine
:
'ShellacCardAlodine'
},
},
subTypeName
:
''
subTypeName
:
''
,
shellacDeployLists
:
[]
}
}
},
},
computed
:
{
computed
:
{
...
@@ -394,15 +395,29 @@ export default {
...
@@ -394,15 +395,29 @@ 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
=>
{
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
key
===
'baseModelNo'
)
{
this
.
requestOp
=
res
.
items
.
map
(
item
=>
{
if
(
res
.
items
&&
res
.
items
.
content
)
{
return
{
this
.
shellacDeployLists
=
res
.
items
.
content
label
:
item
,
this
.
requestOp
=
res
.
items
.
content
.
map
(
item
=>
{
value
:
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
{
label
:
item
,
value
:
item
}
})
}
}
}
})
})
},
},
...
@@ -422,6 +437,10 @@ export default {
...
@@ -422,6 +437,10 @@ export default {
}
else
if
(
this
.
itemObj
.
attrKey
===
'baseModelNo'
)
{
}
else
if
(
this
.
itemObj
.
attrKey
===
'baseModelNo'
)
{
this
.
$set
(
this
.
form
,
'certificateNo'
,
''
)
this
.
$set
(
this
.
form
,
'certificateNo'
,
''
)
this
.
$set
(
this
.
form
,
'lotNo'
,
''
)
this
.
$set
(
this
.
form
,
'lotNo'
,
''
)
this
.
setDiluentModelNoOption
(
value
)
this
.
$set
(
this
.
form
,
'diluentModelNo'
,
''
)
this
.
$set
(
this
.
form
,
'certificateNum'
,
''
)
this
.
$set
(
this
.
form
,
'diluentLotNo'
,
''
)
}
else
{
}
else
{
this
.
$set
(
this
.
form
,
this
.
itemObj
.
attrKey
,
value
)
this
.
$set
(
this
.
form
,
this
.
itemObj
.
attrKey
,
value
)
this
.
changeRequest
()
this
.
changeRequest
()
...
@@ -756,6 +775,21 @@ export default {
...
@@ -756,6 +775,21 @@ export default {
this
.
setFormDataAttr
(
attrKey
,
'options'
,
this
.
requestOp
)
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