diff --git a/src/apis/map/type.ts b/src/apis/map/type.ts index 868c120..473fc85 100644 --- a/src/apis/map/type.ts +++ b/src/apis/map/type.ts @@ -44,6 +44,7 @@ export interface MapAreaInfo { points?: Array; // 绑定点位id集合 routes?: Array; // 绑定线路id集合 maxAmr?: number; // 最大可容纳AMR数 + inoutflag?: 1 | 2; // 库区规则 } //#endregion diff --git a/src/apis/scene/type.ts b/src/apis/scene/type.ts index 7f1758a..f0c4a47 100644 --- a/src/apis/scene/type.ts +++ b/src/apis/scene/type.ts @@ -67,6 +67,7 @@ export interface StandardSceneArea { points?: Array; // 绑定点位id集合 routes?: Array; // 绑定线路id集合 maxAmr?: number; // 最大可容纳AMR数 + inoutflag?: 1 | 2; // 库区规则 config?: object; // 其它属性配置(可按需增加) properties?: unknown; // 附加数据(前端不做任何处理) } diff --git a/src/components/card/area-detail-card.vue b/src/components/card/area-detail-card.vue index d96d38c..3f45587 100644 --- a/src/components/card/area-detail-card.vue +++ b/src/components/card/area-detail-card.vue @@ -43,6 +43,12 @@ const bindRoute = computed( .filter((v) => !!v) .join('、') ?? '', ); + +const ruleText = computed(() => { + if (area.value?.inoutflag === 1) return '先进先出'; + if (area.value?.inoutflag === 2) return '后进先出'; + return ''; +});