// 返回购物车中是否为有效商品 是否可以去结算
const canGotoConfirm = (car = {}) => {
  const { carts: carList = [] } = car;
  const carCheckedList = carList.filter(
    v => v.checkedState === 'Y' && v.status === 'Y'
  );
  if (!carCheckedList.length) {
    return false;
  }
  return true;
};

export default {
  canGotoConfirm,
};
