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
1c941cf1
Commit
1c941cf1
authored
Jul 16, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料流程加启用禁用判断
parent
fdf5d990
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
add.vue
pages/materiel/masterData/add.vue
+1
-1
api.js
pages/materiel/masterData/api.js
+3
-0
masterData.vue
pages/materiel/masterData/masterData.vue
+12
-2
No files found.
pages/materiel/masterData/add.vue
View file @
1c941cf1
...
@@ -86,7 +86,7 @@ export default {
...
@@ -86,7 +86,7 @@ export default {
arr
:
[],
arr
:
[],
entity
:
{
entity
:
{
code
:
0
,
code
:
0
,
status
:
0
,
status
:
this
.
nodeInfo
.
status
==
1
?
3
:
0
,
//status==1的时候,保存物料直接传status=3
version
:
0
,
version
:
0
,
codeRuleId
:
this
.
nodeInfo
.
codeRuleId
,
codeRuleId
:
this
.
nodeInfo
.
codeRuleId
,
categoryId
:
this
.
nodeInfo
.
categoryId
,
//左侧树点击的id
categoryId
:
this
.
nodeInfo
.
categoryId
,
//左侧树点击的id
...
...
pages/materiel/masterData/api.js
View file @
1c941cf1
...
@@ -32,4 +32,7 @@ export default {
...
@@ -32,4 +32,7 @@ export default {
batchstart
(
params
)
{
batchstart
(
params
)
{
return
Api
.
post
(
`
${
workflowUrl
}
/instance/batchstart`
,
params
);
//送审
return
Api
.
post
(
`
${
workflowUrl
}
/instance/batchstart`
,
params
);
//送审
},
},
getSchema
(
params
)
{
return
Api
.
get
(
`
${
workflowUrl
}
/schema/get`
,
params
);
//流程
},
}
}
\ No newline at end of file
pages/materiel/masterData/masterData.vue
View file @
1c941cf1
...
@@ -184,13 +184,17 @@ export default {
...
@@ -184,13 +184,17 @@ export default {
attrs
:
{
oprate
:
"edit"
},
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
send
(
params
.
row
)
}
on
:
{
click
:
()
=>
this
.
send
(
params
.
row
)
}
},
},
params
.
row
.
status
==
0
||
params
.
row
.
status
==
1
?
"送审"
:
""
(
params
.
row
.
status
==
0
||
params
.
row
.
status
==
1
)
&&
status
==
0
?
"送审"
:
""
)
)
]);
]);
}
}
}
}
],
//基础咧
],
//基础咧
cols
:
[]
//
cols
:
[],
//
status
:
null
};
};
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
...
@@ -203,6 +207,12 @@ export default {
...
@@ -203,6 +207,12 @@ export default {
}
else
{
}
else
{
this
.
initCols
();
this
.
initCols
();
}
}
Api
.
getSchema
({
id
:
"b6303ddc-8b5e-40a3-a51b-294657d1d913"
}).
then
(
r
=>
{
this
.
status
=
r
.
result
.
status
;
//status为0的话为启用,有送审,为1的话,流程是禁用的,没有送审按钮
this
.
nodeInfo
.
status
=
this
.
status
;
});
},
},
mounted
()
{
mounted
()
{
window
.
onresize
=
()
=>
{
window
.
onresize
=
()
=>
{
...
...
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