|
@@ -305,6 +305,7 @@ import SendSubscribeWDLY from "@/components/WDLY/process/SendSubscribeWDLY";
|
|
|
import SendPurchaseWDLY from "@/components/WDLY/process/SendPurchaseWDLY";
|
|
|
import { ref } from "vue";
|
|
|
const StagFlowKey = ref(["contract_flow", "sale_quotation_flow"]);
|
|
|
+import useUserStore from "@/store/modules/user";
|
|
|
const processConfig = ref({
|
|
|
subscribe_flow: { name: "申购" },
|
|
|
purchase_flow: { name: "采购" },
|
|
@@ -346,7 +347,13 @@ const flowForm = reactive({
|
|
|
data: {},
|
|
|
fileList: [],
|
|
|
});
|
|
|
-
|
|
|
+//获取当前用户id
|
|
|
+const userStore = useUserStore();
|
|
|
+let userId = ''
|
|
|
+userStore.getInfo().then((res) => {
|
|
|
+ console.log(res)
|
|
|
+ userId = res.user.userId
|
|
|
+})
|
|
|
const uploadData = ref({});
|
|
|
const flowRules = reactive({
|
|
|
// remark: [{ required: true, message: "请输入处理意见", trigger: "blur" }],
|
|
@@ -749,7 +756,7 @@ const getRecords = (_id) => {
|
|
|
const element = res.recordList[i];
|
|
|
if(element.status == 2) {
|
|
|
// 2为审批中
|
|
|
- if(element.processedUser === res.recordList[i - 1].processedUser) {
|
|
|
+ if(res.recordList[i - 1].processedUserId == userId) {
|
|
|
// 当前审批人和上一条审批人相同,开启撤回开关
|
|
|
isRevocation.value = true;
|
|
|
}
|