zhengyiming
2025-11-08 8528852ee8533fbd9c31a6d10364f1806ad09e1e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import {
  EnumBillingMethod,
  BillingMethodEnumUnit,
  EnumTaskCheckReceiveMethod,
} from '@12333/constants';
 
export class OrderUtils {
  static getServiceFeeText(serviceFee: number, billingMethod: EnumBillingMethod) {
    if (billingMethod === EnumBillingMethod.Face) {
      return BillingMethodEnumUnit[billingMethod];
    }
    return `${serviceFee ?? 0}${BillingMethodEnumUnit[billingMethod]}`;
  }
 
  static isContainCheckIn(checkReceiveMethods: EnumTaskCheckReceiveMethod[]) {
    if (!checkReceiveMethods) return false;
    return checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn);
  }
}