From a8651ec657fd2ef85cacc6660916dc847a932e1f Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 10 十一月 2025 16:36:05 +0800
Subject: [PATCH] fix: bug

---
 src/utils/orderUtils.ts |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/utils/orderUtils.ts b/src/utils/orderUtils.ts
new file mode 100644
index 0000000..f8481f9
--- /dev/null
+++ b/src/utils/orderUtils.ts
@@ -0,0 +1,13 @@
+export class OrderUtils {
+  static getServiceFeeText(serviceFee: number, billingMethod: EnumBillingMethod) {
+    if (billingMethod === EnumBillingMethod.Face) {
+      return EnumBillingMethodUnitText[billingMethod];
+    }
+    return `${serviceFee ?? 0}${EnumBillingMethodUnitText[billingMethod]}`;
+  }
+
+  static isContainCheckIn(checkReceiveMethods: EnumTaskCheckReceiveMethod[]) {
+    if (!checkReceiveMethods) return false;
+    return checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn);
+  }
+}

--
Gitblit v1.9.1