|
@@ -3,7 +3,11 @@
|
|
|
<div class="left-card">
|
|
|
<div class="top">
|
|
|
<div class="commons-title title">
|
|
|
- {{ route.query.flowName ? route.query.flowName : "流程标题(发起)" }}
|
|
|
+ {{
|
|
|
+ route.query.flowName
|
|
|
+ ? route.query.flowName + (route.query.processType ? typeName[route.query.processType] : "(发起)")
|
|
|
+ : keyName[route.query.flowKey] + "(审批)"
|
|
|
+ }}
|
|
|
</div>
|
|
|
<div class="line"></div>
|
|
|
<Subscribe :queryData="queryData.data" v-if="flowForm.flowKey == 'apply_buy'" ref="makeDom"></Subscribe>
|
|
@@ -88,6 +92,14 @@ import { ElMessage } from "element-plus";
|
|
|
// 申购单
|
|
|
import Subscribe from "@/components/process/subscribe";
|
|
|
|
|
|
+const typeName = ref({
|
|
|
+ 10: "(审批)",
|
|
|
+ 20: "(详情)",
|
|
|
+ 30: "(发起)",
|
|
|
+});
|
|
|
+const keyName = ref({
|
|
|
+ apply_buy: "申购流程",
|
|
|
+});
|
|
|
const router = useRouter();
|
|
|
const route = useRoute();
|
|
|
// tab切换逻辑
|
|
@@ -240,6 +252,21 @@ const getRecords = (_id) => {
|
|
|
}
|
|
|
};
|
|
|
onMounted(async () => {
|
|
|
+ if (route.query.random) {
|
|
|
+ useTagsViewStore().visitedViews = useTagsViewStore().visitedViews.map((item) => {
|
|
|
+ if (item.query && item.query.random === route.query.random) {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ name: route.query.flowName,
|
|
|
+ title: route.query.flowName,
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ };
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
//processType 10 为修改 20为查看 30回退发起
|
|
|
if (route.query.processType == 10 || route.query.processType == 20 || route.query.processType == 30) {
|
|
|
await proxy.post("/flowProcess/getStartData", { flowId: route.query.id }).then((res) => {
|