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
a51c8bc3
Commit
a51c8bc3
authored
Sep 13, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增项目维护生成按钮
parent
7f6452a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
0 deletions
+78
-0
index.vue
...nts/components/GenerateCreateOrproductionButton/index.vue
+78
-0
No files found.
applications/dee-mes/src/privateComponents/components/GenerateCreateOrproductionButton/index.vue
0 → 100644
View file @
a51c8bc3
/**
* @Description: 新增项目维护生成按钮
* @author xioln
* @date 2023-09-12
* @FilePath: applications/dee-mes/src/privateComponents/components/GenerateCreateOrproductionButton/index.vue
*/
<
template
>
<div
class=
"className"
>
<dee-as-com
ref=
"oRProduction"
:lay-config=
"
{
typeName: 'ORProduction',
layKey: 'create_orproduction'
}"
:basic-data="basicData"
@on-createGenerate="createGenerate"
/>
</div>
</
template
>
<
script
>
import
{
post
}
from
'@/utils/http'
export
default
{
componentName
:
'新增项目维护生成按钮'
,
name
:
'GenerateCreateOrproductionButton'
,
components
:
{},
props
:
{
basicData
:
{
type
:
Object
,
default
:
()
=>
null
},
form
:
{
type
:
Object
,
default
:
()
=>
null
}
},
data
()
{
return
{
}
},
computed
:
{},
created
()
{
// 初始化数据
},
methods
:
{
createGenerate
(
v
)
{
const
form
=
this
.
$refs
.
oRProduction
.
$children
[
0
].
form
const
params
=
{
operator
:
'ADD'
,
'isValid'
:
'Y'
,
'subTypeName'
:
'ORProduction'
,
'oRProductionUpdateRecords'
:
[],
'assemblyStartTime'
:
form
.
assemblyTime
[
0
],
'assemblyEndTime'
:
form
.
assemblyTime
[
1
],
'jobNo'
:
form
.
jobNo
,
'soritesTypeId'
:
form
.
soritesType
.
type
,
'aircraftTypeId'
:
form
.
aircraftTypeId
,
'aircraftSortiesId'
:
form
.
aircraftSortiesId
// 'state': form.state
}
post
(
`/ORProduction/create`
,
params
).
then
(
res
=>
{
const
id
=
res
.
items
.
id
post
(
`/MilestonePlan/generate?orProductionId=
${
id
}
`
).
then
(
res
=>
{
this
.
$util
.
showMessageSuccess
(
res
.
message
)
this
.
$emit
(
'cancel'
)
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
this
.
$emit
(
'cancel'
)
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
}
}
}
</
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