From cfb04396e2b5f51382cbc0ab4aeb65ab7ca4dd3a Mon Sep 17 00:00:00 2001 From: xudan Date: Mon, 14 Jul 2025 14:03:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=BA=93=E5=8C=BA?= =?UTF-8?q?=E8=A7=84=E5=88=99=E6=94=AF=E6=8C=81=EF=BC=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3=E5=92=8C=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=BB=A5=E5=A4=84=E7=90=86=E5=85=88=E8=BF=9B=E5=85=88=E5=87=BA?= =?UTF-8?q?=E5=92=8C=E5=90=8E=E8=BF=9B=E5=85=88=E5=87=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/map/type.ts | 1 + src/apis/scene/type.ts | 1 + src/components/card/area-detail-card.vue | 12 ++++++++++++ src/components/card/area-edit-card.vue | 15 +++++++++++++++ src/services/editor.service.ts | 13 +++++++++---- 5 files changed, 38 insertions(+), 4 deletions(-) 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 ''; +});