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
d7397b32
Commit
d7397b32
authored
Aug 14, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
供外出库
parent
1b445974
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
212 additions
and
3 deletions
+212
-3
index.vue
...rc/privateComponents/components/JobNumberSelect/index.vue
+83
-0
index.vue
...vateComponents/components/OutStorageOfferDetail/index.vue
+49
-3
index.vue
...c/privateComponents/components/getSortiesSelect/index.vue
+80
-0
No files found.
applications/dee-mes/src/privateComponents/components/JobNumberSelect/index.vue
0 → 100644
View file @
d7397b32
/**
* @Description: 作业令号根据机型架次选择
* @author xioln
* @date 2023-08-14
* @FilePath: applications/dee-mes/src/privateComponents/components/JobNumberSelect/index.vue
*/
<
template
>
<div
class=
"jobNumber-select"
>
<el-select
v-model=
"selVal"
placeholder=
"请选择"
size=
"mini"
@
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
:
'JobNumberSelect'
,
// name写在组件的最前方,自定义组件为必填
components
:
{},
props
:
{
itemObj
:
{
type
:
Object
,
default
:
null
},
form
:
{
type
:
Object
,
default
:
()
=>
{}
},
value
:
{
type
:
[
Number
,
String
,
Object
],
default
:
()
=>
''
}
},
data
()
{
return
{
options
:
[],
selVal
:
''
}
},
computed
:
{},
watch
:
{
form
:
{
immediate
:
true
,
deep
:
true
,
handler
(
val
)
{
if
(
val
.
aircraftType
&&
val
.
sorties
)
{
const
params
=
{
searchItems
:
{
items
:
[
{
'fieldName'
:
'aircraftTypeId'
,
operator
:
'EQ'
,
value
:
val
.
aircraftType
},
{
'fieldName'
:
'aircraftSortiesId'
,
operator
:
'EQ'
,
value
:
val
.
sorties
}
],
operator
:
'AND'
}
}
this
.
$api
.
searchApi
(
'ORProduction'
,
params
).
then
(
res
=>
{
this
.
options
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
value
:
row
.
id
,
label
:
row
.
jobNo
}
})
})
}
}
}
},
created
()
{
// 初始化数据
},
methods
:
{
changeVal
()
{
this
.
$emit
(
'input'
,
this
.
selVal
)
}
}
}
</
script
>
<
style
lang=
'scss'
>
</
style
>
applications/dee-mes/src/privateComponents/components/OutStorageOfferDetail/index.vue
View file @
d7397b32
...
...
@@ -43,11 +43,12 @@ export default {
{
title
:
'牌号/型号/件号'
,
key
:
'extMaterial.modelNo'
,
align
:
'center'
,
minWidth
:
'120'
},
{
title
:
'规格'
,
key
:
'extMaterial.spec'
,
align
:
'center'
},
{
title
:
'单位名称'
,
key
:
'extMaterial.extUnit.unitName'
,
align
:
'center'
},
{
title
:
'申领数量'
,
key
:
'reqAmount'
,
align
:
'center'
,
minWidth
:
'120'
,
{
title
:
'申领数量'
,
key
:
'reqAmount'
,
align
:
'center'
,
minWidth
:
'120'
,
component
:
{
show
:
true
,
render
:
(
h
,
data
,
column
,
index
)
=>
{
return
(
<
el
-
input
-
number
size
=
'small'
v
-
model
=
{
data
.
reqAmount
}
return
(
<
el
-
input
-
number
size
=
'small'
v
-
model
=
{
data
.
reqAmount
}
on
-
change
=
{(
e
)
=>
{
this
.
tableData
=
this
.
tableData
.
map
(
item
=>
{
if
(
item
.
extMaterialId
===
data
.
extMaterialId
)
{
...
...
@@ -55,7 +56,7 @@ export default {
}
return
item
})
}}
/>
)
}}
/>
)
}
}
},
...
...
@@ -113,6 +114,11 @@ export default {
created
()
{
// 初始化数据
},
mounted
()
{
if
(
this
.
$route
.
query
.
id
)
{
this
.
getEditData
(
this
.
$route
.
query
.
id
)
}
},
methods
:
{
addData
(
data
)
{
console
.
log
(
'data'
,
data
)
...
...
@@ -173,6 +179,46 @@ export default {
})
})
},
getEditData
(
id
)
{
const
param
=
{
'searchItems'
:
{
'items'
:
[
{
'fieldName'
:
'subTypeName'
,
'operator'
:
'EQ'
,
'value'
:
'OutStorageOut'
},
{
'fieldName'
:
'id'
,
'operator'
:
'EQ'
,
'value'
:
id
}
]
},
openProps
:
[{
'name'
:
'inStorageRequestItems'
,
'openProps'
:
[{
'name'
:
'extMaterial'
,
'openProps'
:
[{
'name'
:
'resType2'
},
{
'name'
:
'extUnit'
}]
},
{
'name'
:
'extDxSipplier'
},
{
'name'
:
'creator'
},
{
'name'
:
'storageZone'
},
{
'name'
:
'inventoryJobResponses'
}]
}]
}
post
(
'OutStorageRequest/search'
,
param
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
const
data
=
res
.
items
.
content
[
0
].
inStorageRequestItems
data
.
forEach
(
item
=>
{
item
.
allocatedAmount
=
this
.
sumArray
(
item
.
inventoryJobResponses
,
'allocatedAmount'
)
})
this
.
tableData
=
data
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
},
sumArray
(
array
,
key
)
{
let
sum
=
0
for
(
let
i
=
0
;
i
<
array
.
length
;
i
++
)
{
...
...
applications/dee-mes/src/privateComponents/components/getSortiesSelect/index.vue
0 → 100644
View file @
d7397b32
/**
* @Description: 架次根据机型选择
* @author xioln
* @date 2023-08-14
* @FilePath: applications/dee-mes/src/privateComponents/components/getSortiesSelect/index.vue
*/
<
template
>
<div
class=
"getSorties-select"
>
<el-select
v-model=
"selVal"
placeholder=
"请选择"
size=
"mini"
@
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
:
'GetSortiesSelect'
,
// name写在组件的最前方,自定义组件为必填
components
:
{},
props
:
{
itemObj
:
{
type
:
Object
,
default
:
null
},
form
:
{
type
:
Object
,
default
:
()
=>
{}
},
value
:
{
type
:
[
Number
,
String
,
Object
],
default
:
()
=>
''
}
},
data
()
{
return
{
options
:
[],
selVal
:
''
}
},
computed
:
{},
watch
:
{
form
:
{
immediate
:
true
,
deep
:
true
,
handler
(
val
)
{
if
(
val
.
aircraftType
)
{
const
params
=
{
searchItems
:
{
items
:
[{
'fieldName'
:
'aircraftTypeId'
,
operator
:
'EQ'
,
value
:
val
.
aircraftType
}],
operator
:
'AND'
}
}
this
.
$api
.
searchApi
(
'AircraftSorties'
,
params
).
then
(
res
=>
{
this
.
options
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
value
:
row
.
id
,
label
:
row
.
defName
}
})
})
}
}
}
},
created
()
{
// 初始化数据
},
methods
:
{
changeVal
()
{
this
.
$emit
(
'input'
,
this
.
selVal
)
}
}
}
</
script
>
<
style
lang=
'scss'
>
</
style
>
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