fix
This commit is contained in:
@@ -623,8 +623,25 @@ import { fetchList as getBusinessLeaderList } from '/@/api/purchase/purchasingBu
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
// 当前使用的申请单 ID
|
// 流程嵌入时接收 currJob
|
||||||
|
const props = defineProps({
|
||||||
|
currJob: {
|
||||||
|
type: Object,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
|
currElTab: {
|
||||||
|
type: Object,
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// 当前使用的申请单 ID(优先从流程 currJob.orderId 获取,否则从 URL query 获取)
|
||||||
const effectiveQueryId = computed(() => {
|
const effectiveQueryId = computed(() => {
|
||||||
|
// 流程嵌入模式:优先使用 currJob.orderId
|
||||||
|
if (props.currJob?.orderId) {
|
||||||
|
return String(props.currJob.orderId);
|
||||||
|
}
|
||||||
|
// URL 模式
|
||||||
const q = route.query.id;
|
const q = route.query.id;
|
||||||
return q ? String(q) : '';
|
return q ? String(q) : '';
|
||||||
});
|
});
|
||||||
@@ -811,7 +828,7 @@ const isHidePurchaseType = computed(() => {
|
|||||||
|
|
||||||
// 部门申请角色 + 学校统一采购:隐藏采购方式
|
// 部门申请角色 + 学校统一采购:隐藏采购方式
|
||||||
const isHidePurchaseSchool = computed(() => {
|
const isHidePurchaseSchool = computed(() => {
|
||||||
return isDeptApplyRole || ( isDeptApplyRole.value && !isDeptPurchase.value);
|
return isDeptApplyRole.value || ( isDeptApplyRole.value && !isDeptPurchase.value);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user