From 08d81d3eaf6e8c86fb4c21089df179879ff67fe5 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 10 十一月 2025 14:05:05 +0800
Subject: [PATCH] fix: bug
---
packages/utils/orderUtils.ts | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/packages/utils/orderUtils.ts b/packages/utils/orderUtils.ts
index ef5a469..14844c1 100644
--- a/packages/utils/orderUtils.ts
+++ b/packages/utils/orderUtils.ts
@@ -1,4 +1,8 @@
-import { EnumBillingMethod, BillingMethodEnumUnit } from '@12333/constants';
+import {
+ EnumBillingMethod,
+ BillingMethodEnumUnit,
+ EnumTaskCheckReceiveMethod,
+} from '@12333/constants';
export class OrderUtils {
static getServiceFeeText(serviceFee: number, billingMethod: EnumBillingMethod) {
@@ -7,4 +11,9 @@
}
return `${serviceFee ?? 0}${BillingMethodEnumUnit[billingMethod]}`;
}
+
+ static isContainCheckIn(checkReceiveMethods: EnumTaskCheckReceiveMethod[]) {
+ if (!checkReceiveMethods) return false;
+ return checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn);
+ }
}
--
Gitblit v1.9.1