wupengfei
3 天以前 43c5f55acde13b7f8d79b2aeaa28dd7f0f800bde
1
2
3
4
5
6
7
8
9
10
11
12
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);
  }
}