|
@@ -695,19 +695,19 @@ function Detail(props) {
|
|
//判断分类,这个清单所属分类的操作人可以提交
|
|
//判断分类,这个清单所属分类的操作人可以提交
|
|
const getIsSubmit = () => {
|
|
const getIsSubmit = () => {
|
|
let bool = true;
|
|
let bool = true;
|
|
- const nodeId = version.template_node_id;
|
|
|
|
- if (!flowDetail?.nodes || !nodeId) return;
|
|
|
|
- const node = flowDetail.nodes.find(item => item.Id == nodeId);
|
|
|
|
- if (!node || node.name == 'custom-circle') return;
|
|
|
|
- if (node?.role_list) {
|
|
|
|
- bool = node.role_list
|
|
|
|
- .split(',')
|
|
|
|
- .some(id => currentUser.roleList?.find(role => role.ID == id));
|
|
|
|
- }
|
|
|
|
- const uidsStr = classifyList.find(item => item.classify_id == version.classify_id)?.uid;
|
|
|
|
- if (uidsStr && uidsStr.split(',')?.findIndex(item => item == currentUser.ID) < 0) {
|
|
|
|
- bool = false;
|
|
|
|
- }
|
|
|
|
|
|
+ // const nodeId = version.template_node_id;
|
|
|
|
+ // if (!flowDetail?.nodes || !nodeId) return;
|
|
|
|
+ // const node = flowDetail.nodes.find(item => item.Id == nodeId);
|
|
|
|
+ // if (!node || node.name == 'custom-circle') return;
|
|
|
|
+ // if (node?.role_list) {
|
|
|
|
+ // bool = node.role_list
|
|
|
|
+ // .split(',')
|
|
|
|
+ // .some(id => currentUser.roleList?.find(role => role.ID == id));
|
|
|
|
+ // }
|
|
|
|
+ // const uidsStr = classifyList.find(item => item.classify_id == version.classify_id)?.uid;
|
|
|
|
+ // if (uidsStr && uidsStr.split(',')?.findIndex(item => item == currentUser.ID) < 0) {
|
|
|
|
+ // bool = false;
|
|
|
|
+ // }
|
|
return bool;
|
|
return bool;
|
|
};
|
|
};
|
|
console.log('是否有权限提交流转 ', getIsSubmit());
|
|
console.log('是否有权限提交流转 ', getIsSubmit());
|