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
cafd5a3a
Commit
cafd5a3a
authored
Dec 01, 2023
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
供外出库架次接口修改
parent
829ac4ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
index.vue
...c/privateComponents/components/getSortiesSelect/index.vue
+18
-3
No files found.
applications/dee-mes/src/privateComponents/components/getSortiesSelect/index.vue
View file @
cafd5a3a
...
...
@@ -19,7 +19,7 @@
<
script
>
import
config
from
'./config'
import
_get
from
'lodash.get'
import
{
get
}
from
'@/utils/http'
export
default
{
componentName
:
'供外出库架次'
,
name
:
'GetOffrtSortiesSelect'
,
// name写在组件的最前方,自定义组件为必填
...
...
@@ -64,7 +64,11 @@ export default {
const
_val
=
_get
(
this
.
form
,
this
.
itemObj
.
linkageAttr
)
if
(
_val
!==
this
.
linkageValue
)
{
this
.
linkageValue
=
_val
this
.
getData
(
_val
)
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
title
===
'供外出库'
||
this
.
form
.
subTypeName
===
'OutStorageOut'
)
{
this
.
getSortiesHasOrpid
(
_val
)
}
else
{
this
.
getSorties
(
_val
)
}
}
}
}
...
...
@@ -92,7 +96,7 @@ export default {
// 初始化数据
},
methods
:
{
get
Data
(
val
)
{
get
Sorties
(
val
)
{
if
(
!
val
||
!
val
.
includes
(
'+'
))
return
// 编辑界面时报错修改
const
params
=
{
searchItems
:
{
...
...
@@ -109,6 +113,17 @@ export default {
})
})
},
getSortiesHasOrpid
(
val
)
{
if
(
!
val
||
!
val
.
includes
(
'+'
))
return
get
(
`/AircraftSorties/getSorties?aircraftTypeId=
${
val
.
split
(
'+'
)[
0
]}
`
).
then
(
res
=>
{
this
.
options
=
res
.
items
.
map
(
row
=>
{
return
{
value
:
row
.
id
+
'+'
+
row
.
defName
,
label
:
row
.
defName
}
})
})
},
changeVal
()
{
this
.
$emit
(
'input'
,
this
.
selVal
)
}
...
...
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