From 0e079d8c08bbd0666ed627f4eec1188234ae3a5e Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 07 十一月 2025 13:03:03 +0800
Subject: [PATCH] feat: 接口
---
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