boxSeaAir.js 752 Bytes
Newer Older
zhoutong's avatar
zhoutong committed
1 2 3
import request from "@/utils/request";

/**
zhoutong's avatar
zhoutong committed
4
 * 二程起飞
zhoutong's avatar
zhoutong committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
 *
 * @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,
    });
  }

  /**
zhoutong's avatar
zhoutong committed
26
 * 二程到港
zhoutong's avatar
zhoutong committed
27 28 29 30 31 32 33 34
 *
 * @export
 * @param {*} data
 * @return {*}
 */
 export function arrivalCreate(data) {
    if (data.id) {
      return request({
zhoutong's avatar
zhoutong committed
35
        url: "/ecw/box-arrival-air/update",
zhoutong's avatar
zhoutong committed
36 37 38 39 40
        method: "put",
        data,
      });
    }
    return request({
zhoutong's avatar
zhoutong committed
41
      url: "/ecw/box-arrival-air/create",
zhoutong's avatar
zhoutong committed
42 43 44 45
      method: "post",
      data,
    });
  }