审批流删除权限添加
This commit is contained in:
@ -29,9 +29,7 @@
|
|||||||
const logId = ref('')
|
const logId = ref('')
|
||||||
const logPath = ref('/approve/appro/datalog');
|
const logPath = ref('/approve/appro/datalog');
|
||||||
import { DataLog } from '/@/components/pcitc';
|
import { DataLog } from '/@/components/pcitc';
|
||||||
import { ref, computed, onMounted, onUnmounted, createVNode,
|
import { ref, computed, onMounted, onUnmounted, createVNode } from 'vue';
|
||||||
|
|
||||||
} from 'vue';
|
|
||||||
|
|
||||||
import { Modal } from 'ant-design-vue';
|
import { Modal } from 'ant-design-vue';
|
||||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
@ -59,6 +57,10 @@
|
|||||||
|
|
||||||
import useEventBus from '/@/hooks/event/useEventBus';
|
import useEventBus from '/@/hooks/event/useEventBus';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep } from 'lodash-es';
|
||||||
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
|
||||||
|
const userStore = useUserStore();
|
||||||
|
const userInfo = userStore.getUserInfo;
|
||||||
|
|
||||||
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
||||||
|
|
||||||
@ -377,6 +379,11 @@
|
|||||||
// 未提交或已驳回
|
// 未提交或已驳回
|
||||||
if (record.approCode == 'WTJ' || record.approCode == 'YBH' ) {
|
if (record.approCode == 'WTJ' || record.approCode == 'YBH' ) {
|
||||||
actionsList = actionsList.concat(editAndDelBtn);
|
actionsList = actionsList.concat(editAndDelBtn);
|
||||||
|
|
||||||
|
if (record.createUserId !== userInfo.id) {
|
||||||
|
let idx = actionsList.findIndex(v =>v.tooltip == '删除')
|
||||||
|
idx > -1 && actionsList.splice(idx, 1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 审批中SPZ
|
// 审批中SPZ
|
||||||
if (record.workflowData?.editable) {
|
if (record.workflowData?.editable) {
|
||||||
|
|||||||
@ -29,9 +29,7 @@
|
|||||||
const logId = ref('')
|
const logId = ref('')
|
||||||
const logPath = ref('/contract/contractFact/datalog');
|
const logPath = ref('/contract/contractFact/datalog');
|
||||||
import { DataLog } from '/@/components/pcitc';
|
import { DataLog } from '/@/components/pcitc';
|
||||||
import { ref, computed, onMounted, onUnmounted, createVNode,
|
import { ref, computed, onMounted, onUnmounted, createVNode,} from 'vue';
|
||||||
|
|
||||||
} from 'vue';
|
|
||||||
|
|
||||||
import { Modal } from 'ant-design-vue';
|
import { Modal } from 'ant-design-vue';
|
||||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
@ -59,6 +57,10 @@
|
|||||||
|
|
||||||
import useEventBus from '/@/hooks/event/useEventBus';
|
import useEventBus from '/@/hooks/event/useEventBus';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep } from 'lodash-es';
|
||||||
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
|
||||||
|
const userStore = useUserStore();
|
||||||
|
const userInfo = userStore.getUserInfo;
|
||||||
|
|
||||||
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
||||||
|
|
||||||
@ -376,6 +378,11 @@
|
|||||||
// 未提交或已驳回
|
// 未提交或已驳回
|
||||||
if (record.approCode == 'WTJ' || record.approCode == 'YBH' ) {
|
if (record.approCode == 'WTJ' || record.approCode == 'YBH' ) {
|
||||||
actionsList = actionsList.concat(editAndDelBtn);
|
actionsList = actionsList.concat(editAndDelBtn);
|
||||||
|
|
||||||
|
if (record.createUserId !== userInfo.id) {
|
||||||
|
let idx = actionsList.findIndex(v =>v.tooltip == '删除')
|
||||||
|
idx > -1 && actionsList.splice(idx, 1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 审批中SPZ
|
// 审批中SPZ
|
||||||
if (record.workflowData?.editable) {
|
if (record.workflowData?.editable) {
|
||||||
|
|||||||
@ -29,9 +29,7 @@
|
|||||||
const logId = ref('')
|
const logId = ref('')
|
||||||
const logPath = ref('/contract/contractPurPng/datalog');
|
const logPath = ref('/contract/contractPurPng/datalog');
|
||||||
import { DataLog } from '/@/components/pcitc';
|
import { DataLog } from '/@/components/pcitc';
|
||||||
import { ref, computed, onMounted, onUnmounted, createVNode,
|
import { ref, computed, onMounted, onUnmounted, createVNode,} from 'vue';
|
||||||
|
|
||||||
} from 'vue';
|
|
||||||
|
|
||||||
import { Modal } from 'ant-design-vue';
|
import { Modal } from 'ant-design-vue';
|
||||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
@ -59,6 +57,10 @@
|
|||||||
|
|
||||||
import useEventBus from '/@/hooks/event/useEventBus';
|
import useEventBus from '/@/hooks/event/useEventBus';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep } from 'lodash-es';
|
||||||
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
|
||||||
|
const userStore = useUserStore();
|
||||||
|
const userInfo = userStore.getUserInfo;
|
||||||
|
|
||||||
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
||||||
|
|
||||||
@ -377,6 +379,11 @@
|
|||||||
// 未提交或已驳回
|
// 未提交或已驳回
|
||||||
if (record.approCode == 'WTJ' || record.approCode == 'YBH' ) {
|
if (record.approCode == 'WTJ' || record.approCode == 'YBH' ) {
|
||||||
actionsList = actionsList.concat(editAndDelBtn);
|
actionsList = actionsList.concat(editAndDelBtn);
|
||||||
|
|
||||||
|
if (record.createUserId !== userInfo.id) {
|
||||||
|
let idx = actionsList.findIndex(v =>v.tooltip == '删除')
|
||||||
|
idx > -1 && actionsList.splice(idx, 1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 审批中SPZ
|
// 审批中SPZ
|
||||||
if (record.workflowData?.editable) {
|
if (record.workflowData?.editable) {
|
||||||
|
|||||||
@ -29,9 +29,7 @@
|
|||||||
const logId = ref('')
|
const logId = ref('')
|
||||||
const logPath = ref('/contract/contractSales/datalog');
|
const logPath = ref('/contract/contractSales/datalog');
|
||||||
import { DataLog } from '/@/components/pcitc';
|
import { DataLog } from '/@/components/pcitc';
|
||||||
import { ref, computed, onMounted, onUnmounted, createVNode,
|
import { ref, computed, onMounted, onUnmounted, createVNode, } from 'vue';
|
||||||
|
|
||||||
} from 'vue';
|
|
||||||
|
|
||||||
import { Modal } from 'ant-design-vue';
|
import { Modal } from 'ant-design-vue';
|
||||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
@ -59,6 +57,10 @@
|
|||||||
|
|
||||||
import useEventBus from '/@/hooks/event/useEventBus';
|
import useEventBus from '/@/hooks/event/useEventBus';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep } from 'lodash-es';
|
||||||
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
|
||||||
|
const userStore = useUserStore();
|
||||||
|
const userInfo = userStore.getUserInfo;
|
||||||
|
|
||||||
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
||||||
|
|
||||||
@ -376,6 +378,11 @@
|
|||||||
// 未提交或已驳回
|
// 未提交或已驳回
|
||||||
if (record.approCode == 'WTJ' || record.approCode == 'YBH' ) {
|
if (record.approCode == 'WTJ' || record.approCode == 'YBH' ) {
|
||||||
actionsList = actionsList.concat(editAndDelBtn);
|
actionsList = actionsList.concat(editAndDelBtn);
|
||||||
|
|
||||||
|
if (record.createUserId !== userInfo.id) {
|
||||||
|
let idx = actionsList.findIndex(v =>v.tooltip == '删除')
|
||||||
|
idx > -1 && actionsList.splice(idx, 1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 审批中SPZ
|
// 审批中SPZ
|
||||||
if (record.workflowData?.editable) {
|
if (record.workflowData?.editable) {
|
||||||
|
|||||||
@ -29,9 +29,7 @@
|
|||||||
const logId = ref('')
|
const logId = ref('')
|
||||||
const logPath = ref('/sales/scoreCustomer/datalog');
|
const logPath = ref('/sales/scoreCustomer/datalog');
|
||||||
import { DataLog } from '/@/components/pcitc';
|
import { DataLog } from '/@/components/pcitc';
|
||||||
import { ref, computed, onMounted, onUnmounted, createVNode,
|
import { ref, computed, onMounted, onUnmounted, createVNode} from 'vue';
|
||||||
|
|
||||||
} from 'vue';
|
|
||||||
|
|
||||||
import { Modal } from 'ant-design-vue';
|
import { Modal } from 'ant-design-vue';
|
||||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
@ -59,6 +57,10 @@
|
|||||||
|
|
||||||
import useEventBus from '/@/hooks/event/useEventBus';
|
import useEventBus from '/@/hooks/event/useEventBus';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep } from 'lodash-es';
|
||||||
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
|
||||||
|
const userStore = useUserStore();
|
||||||
|
const userInfo = userStore.getUserInfo;
|
||||||
|
|
||||||
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
||||||
|
|
||||||
@ -380,6 +382,11 @@
|
|||||||
// 未提交或已驳回
|
// 未提交或已驳回
|
||||||
if (record.approCode == 'WTJ' || record.approCode == 'YBH' ) {
|
if (record.approCode == 'WTJ' || record.approCode == 'YBH' ) {
|
||||||
actionsList = actionsList.concat(editAndDelBtn);
|
actionsList = actionsList.concat(editAndDelBtn);
|
||||||
|
|
||||||
|
if (record.createUserId !== userInfo.id) {
|
||||||
|
let idx = actionsList.findIndex(v =>v.tooltip == '删除')
|
||||||
|
idx > -1 && actionsList.splice(idx, 1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 审批中SPZ
|
// 审批中SPZ
|
||||||
if (record.workflowData?.editable) {
|
if (record.workflowData?.editable) {
|
||||||
|
|||||||
@ -29,9 +29,7 @@
|
|||||||
const logId = ref('')
|
const logId = ref('')
|
||||||
const logPath = ref('/supplier/scoreSupplier/datalog');
|
const logPath = ref('/supplier/scoreSupplier/datalog');
|
||||||
import { DataLog } from '/@/components/pcitc';
|
import { DataLog } from '/@/components/pcitc';
|
||||||
import { ref, computed, onMounted, onUnmounted, createVNode,
|
import { ref, computed, onMounted, onUnmounted, createVNode } from 'vue';
|
||||||
|
|
||||||
} from 'vue';
|
|
||||||
|
|
||||||
import { Modal } from 'ant-design-vue';
|
import { Modal } from 'ant-design-vue';
|
||||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
@ -59,6 +57,10 @@
|
|||||||
|
|
||||||
import useEventBus from '/@/hooks/event/useEventBus';
|
import useEventBus from '/@/hooks/event/useEventBus';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep } from 'lodash-es';
|
||||||
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
|
||||||
|
const userStore = useUserStore();
|
||||||
|
const userInfo = userStore.getUserInfo;
|
||||||
|
|
||||||
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
||||||
|
|
||||||
@ -377,6 +379,11 @@
|
|||||||
// 未提交或已驳回
|
// 未提交或已驳回
|
||||||
if (record.approCode == 'WTJ' || record.approCode == 'YBH' ) {
|
if (record.approCode == 'WTJ' || record.approCode == 'YBH' ) {
|
||||||
actionsList = actionsList.concat(editAndDelBtn);
|
actionsList = actionsList.concat(editAndDelBtn);
|
||||||
|
|
||||||
|
if (record.createUserId !== userInfo.id) {
|
||||||
|
let idx = actionsList.findIndex(v =>v.tooltip == '删除')
|
||||||
|
idx > -1 && actionsList.splice(idx, 1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 审批中SPZ
|
// 审批中SPZ
|
||||||
if (record.workflowData?.editable) {
|
if (record.workflowData?.editable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user