Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
b61cfee0
Commit
b61cfee0
authored
May 06, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺克隆ok
parent
8b5e1778
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
19 deletions
+29
-19
add.vue
pages/technology/add.vue
+25
-19
api.js
pages/technology/api.js
+4
-0
No files found.
pages/technology/add.vue
View file @
b61cfee0
...
...
@@ -201,8 +201,8 @@ export default {
mounted
()
{
this
.
parms
.
eid
=
this
.
$u
.
guid
();
this
.
$refs
.
refFile
.
intFiles
();
console
.
log
(
this
.
title
)
console
.
log
(
this
.
eid
)
//
console.log(this.title)
//
console.log(this.eid)
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
}
...
...
@@ -245,24 +245,20 @@ export default {
headerId
:
this
.
eid
,
code
:
this
.
entity
.
code
};
console
.
warn
(
parmese
)
Api
.
getCloneHeader
(
parmese
).
then
(
r
=>
{
debugger
console
.
log
(
r
)
this
.
disabled
=
false
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"克隆成功"
);
this
.
$emit
(
"on-ok"
);
}
else
{
this
.
$Message
.
error
(
"克隆失败"
);
}
})
.
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"克隆失败"
);
console
.
warn
(
err
);
});
// this.disabled = false;
this
.
disabled
=
false
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"克隆成功"
);
this
.
$emit
(
"on-ok"
);
}
else
{
this
.
$Message
.
error
(
"克隆失败"
);
}
})
.
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"克隆失败"
);
console
.
warn
(
err
);
});
},
handleClose
()
{
this
.
$emit
(
"on-close"
);
...
...
@@ -294,6 +290,16 @@ export default {
this
.
entity
.
isEffect
=
parseInt
(
r
.
result
.
isEffect
);
this
.
entity
.
id
=
0
;
});
if
(
this
.
title
==
'克隆'
){
Api
.
getCodeNumber
({
code
:
'GY'
,
count
:
'1'
}).
then
(
r
=>
{
// console.log(r)
if
(
r
.
success
){
this
.
entity
.
code
=
r
.
result
[
0
]
}
else
{
this
.
$Message
.
error
(
"生成编号失败"
);
}
})
}
},
l
(
key
)
{
key
=
"routingHeader"
+
"."
+
key
;
...
...
pages/technology/api.js
View file @
b61cfee0
...
...
@@ -16,6 +16,10 @@ export default {
getCloneHeader
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingheader/cloneheader`
,
params
);
},
getCodeNumber
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/cache/generate_serialcode`
,
params
);
},
delete
(
id
)
{
return
Api
.
delete
(
`
${
technologyUrl
}
routingheader/delete`
,
{
params
:
{
...
...
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