wupengfei
7 天以前 8977783adbbc842f523109d95273e345fee547dc
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);
  }
}