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
75cc6a28
Commit
75cc6a28
authored
Sep 14, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
供外出库作业令号修改
parent
fcd53213
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
132 additions
and
6 deletions
+132
-6
index.vue
...ivateComponents/components/OfferJobNumberSelect/index.vue
+123
-0
index.vue
.../privateComponents/components/SoritesLinkSelect/index.vue
+9
-6
No files found.
applications/dee-mes/src/privateComponents/components/OfferJobNumberSelect/index.vue
0 → 100644
View file @
75cc6a28
/**
* @Description: 供外出库作业令号
* @author xioln
* @date 2023-08-14
* @FilePath: applications/dee-mes/src/privateComponents/components/OfferJobNumberSelect/index.vue
*/
<
template
>
<div
class=
"jobNumber-select"
>
<el-select
v-model=
"selVal"
placeholder=
"请选择"
size=
"mini"
:disabled=
"disabledVal"
@
change=
"changeVal"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</div>
</
template
>
<
script
>
export
default
{
componentName
:
'供外出库作业令号'
,
name
:
'OfferJobNumberSelect'
,
// name写在组件的最前方,自定义组件为必填
components
:
{},
props
:
{
itemObj
:
{
type
:
Object
,
default
:
null
},
form
:
{
type
:
Object
,
default
:
()
=>
{}
},
middleForm
:
{
type
:
Object
,
default
:
()
=>
{}
},
value
:
{
type
:
[
Number
,
String
,
Object
],
default
:
()
=>
''
}
},
data
()
{
return
{
options
:
[],
selVal
:
''
,
disabledVal
:
false
}
},
computed
:
{},
watch
:
{
'form.sorties'
:
{
immediate
:
true
,
deep
:
true
,
handler
(
val
,
oldVal
)
{
if
(
val
!==
oldVal
)
{
const
params
=
{
searchItems
:
{
items
:
[
{
'fieldName'
:
'aircraftTypeId'
,
operator
:
'EQ'
,
value
:
this
.
form
.
aircraftType
.
split
(
'+'
)[
0
]
},
{
'fieldName'
:
'aircraftSortiesId'
,
operator
:
'EQ'
,
value
:
val
.
split
(
'+'
)[
0
]
}
],
operator
:
'AND'
}
}
this
.
$api
.
searchApi
(
'ORProduction'
,
params
).
then
(
res
=>
{
this
.
options
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
value
:
row
.
id
,
label
:
row
.
jobNo
}
})
})
}
}
},
itemObj
:
{
immediate
:
true
,
deep
:
true
,
handler
(
v
)
{
if
(
v
.
component
.
hasOwnProperty
(
'disabled'
))
{
this
.
disabledVal
=
v
.
component
.
disabled
}
}
},
value
:
{
immediate
:
true
,
deep
:
true
,
handler
(
v
)
{
if
(
v
)
{
console
.
log
(
'this.form'
,
this
.
form
)
const
params
=
{
searchItems
:
{
items
:
[
{
'fieldName'
:
'aircraftType.defCode'
,
operator
:
'EQ'
,
value
:
this
.
form
.
aircraftType
},
{
'fieldName'
:
'aircraftSorties.defCode'
,
operator
:
'EQ'
,
value
:
this
.
form
.
sorties
}
],
operator
:
'AND'
}
}
this
.
$api
.
searchApi
(
'ORProduction'
,
params
).
then
(
res
=>
{
this
.
options
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
value
:
row
.
id
,
label
:
row
.
jobNo
}
})
this
.
selVal
=
v
})
}
}
}
},
created
()
{
},
methods
:
{
changeVal
()
{
this
.
$emit
(
'input'
,
this
.
selVal
)
}
}
}
</
script
>
<
style
lang=
'scss'
>
</
style
>
applications/dee-mes/src/privateComponents/components/SoritesLinkSelect/index.vue
View file @
75cc6a28
...
...
@@ -87,13 +87,16 @@ export default {
'openProps'
:
[{
name
:
'target'
}]
}
this
.
$api
.
searchApi
(
'SoritesLink'
,
params
).
then
(
res
=>
{
const
options
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
value
:
row
.
target
.
id
,
label
:
row
.
target
.
type
}
this
.
$utils
.
getDicListByCode
(
'SoriteType'
).
then
(
codes
=>
{
const
options
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
value
:
row
.
target
.
id
,
// label: row.target.type,
label
:
codes
.
find
(
item
=>
item
.
value
===
row
.
target
.
type
).
label
}
})
this
.
options
=
options
})
this
.
options
=
options
})
}
},
...
...
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