wupengfei
8 天以前 876a44a82852df5845bf9105e80c98a051f863ff
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);
  }
}