Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-ui
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
pda
pda-ui
Commits
db6587d4
Commit
db6587d4
authored
Jun 19, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
切换页签保存数据
parent
564e7671
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
13 deletions
+18
-13
proofingInfo.vue
src/views/mes/pro/productionSolution/proofingInfo.vue
+10
-9
proofingInfo.vue
src/views/mes/pro/workorder/proofingInfo.vue
+8
-4
No files found.
src/views/mes/pro/productionSolution/proofingInfo.vue
View file @
db6587d4
...
...
@@ -214,6 +214,7 @@ export default {
return
{
loading
:
false
,
bomList
:
[],
productionSolutionId
:
null
,
// 表单参数
form
:
{
productionSolutionId
:
""
,
...
...
@@ -265,9 +266,16 @@ export default {
},
},
created
()
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
productionSolutionId
&&
this
.
productionSolutionId
!==
this
.
$route
.
query
.
productionSolutionId
)
{
this
.
productionSolutionId
=
this
.
$route
.
query
.
productionSolutionId
}
this
.
getFormInfo
();
if
(
this
.
mode
==
"apply"
)
{
this
.
gCode
();
},
activated
()
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
productionSolutionId
&&
this
.
productionSolutionId
!==
this
.
$route
.
query
.
productionSolutionId
)
{
this
.
resetForm
()
this
.
productionSolutionId
=
this
.
$route
.
query
.
productionSolutionId
this
.
getFormInfo
();
}
},
methods
:
{
...
...
@@ -292,12 +300,6 @@ export default {
});
}
},
/** 生成编码 */
gCode
()
{
genCode
(
"PROTOTYPE_REQUEST_CODE"
).
then
((
response
)
=>
{
this
.
form
.
prototypeRequestCode
=
response
;
});
},
/** 点击tab 获取bom的数据,将参数传递给后面的组件 */
tabClick
(
val
)
{
if
(
val
.
index
!=
0
)
{
...
...
@@ -397,7 +399,6 @@ export default {
this
.
$refs
[
"ProogingBomRef"
].
resetState
();
this
.
$refs
[
"ProogingProcessRef"
].
resetState
();
this
.
$refs
[
"ProogingSpecificationSheetRef"
].
resetState
();
this
.
gCode
();
},
},
};
...
...
src/views/mes/pro/workorder/proofingInfo.vue
View file @
db6587d4
...
...
@@ -462,13 +462,17 @@ export default {
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
workorderId
&&
this
.
workorderId
!==
this
.
$route
.
query
.
workorderId
)
{
this
.
resetForm
()
this
.
workorderId
=
this
.
$route
.
query
.
workorderId
this
.
getFormInfo
();
if
(
this
.
mode
==
"apply"
)
{
this
.
gCode
();
}
}
this
.
getFormInfo
();
if
(
this
.
mode
==
"apply"
)
{
this
.
gCode
();
}
},
created
()
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
workorderId
&&
this
.
workorderId
!==
this
.
$route
.
query
.
workorderId
)
{
this
.
workorderId
=
this
.
$route
.
query
.
workorderId
}
this
.
getFormInfo
();
if
(
this
.
mode
==
"apply"
)
{
this
.
gCode
();
...
...
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