import request from "@/utils/request";

/**
 * 起飞
 *
 * @export
 * @param {*} data
 * @return {*}
 */
 export function takeoffCreate(data) {
    if (data.id) {
      return request({
        url: "/ecw/box-takeoff/update",
        method: "put",
        data,
      });
    }
    return request({
      url: "/ecw/box-takeoff/create",
      method: "post",
      data,
    });
  }

  /**
 * 到港
 *
 * @export
 * @param {*} data
 * @return {*}
 */
 export function arrivalCreate(data) {
    if (data.id) {
      return request({
        url: "/ecw/box-arrival/update",
        method: "put",
        data,
      });
    }
    return request({
      url: "/ecw/box-arrival/create",
      method: "post",
      data,
    });
  }