api.js 2.02 KB
Newer Older
lanbaoming's avatar
lanbaoming committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
import http from '../../util/http'

export const getWarehouseWaitInList = (params) => {
	return http('/order/pda/warehouse-wait-in', params, {
		method: 'GET',
	})
}

// 订单详情
export const getByWarehouseId = (params) => {
	return http('/ecw/warehouse-area/getByWarehouseId', params, {
		method: 'GET',
	})
}

// 订单详情
export const getOrderInfo = (orderId) => {
	return http(`/ecw/order/info/${orderId}`, {}, {
		method: 'GET',
	})
}

//一键卸柜
export const allUnload = (params) => {
	return http('/ecw/box-load-info/allUnload', params, {
		method: 'post',
		loading: true,
		errorHandle: false,
	})
}

// 获得入仓货物详情
export const getOrderWarehouseIn = (id) => {
	return http('/order/order-warehouse-in/get-order-warehouse-in?orderId=' + id, {}, {
		method: 'GET',
	})
}

/**
 * 卸柜列表
 */
export const unloadPage = (selfNo = '', status, page = 1, rows = 20) => {
	return http('/my/shipment/unloadPage', {
		status: status,
		page: page,
		rows: rows,
    selfNo
	}, {
		method: 'post',
		loading: true,
		errorHandle: false,
	})
}


/**
 * 卸柜详情
 */
export const cabinetUnloadDetail = (shipmentId = 0) => {
	return http('/my/shipment/cabinetUnloadDetail', {
		shipmentId: shipmentId,
	}, {
		method: 'get',
		loading: true,
		errorHandle: false,
	})
}

/**
 * 提交订单异常
 */
export const unloadCabinetOrder = (params) => {
	return http('/ecw/box-cabinet-unload-abnormal/create', params, {
		method: 'post',
		loading: true,
		errorHandle: false,
	})
}

/**
 * 提交转异
 */
export const boxAbnormal = (params) => {
	return http('/ecw/box-abnormal/create', params, {
		method: 'post',
		loading: true,
		errorHandle: false,
	})
}

/**
 * 整体卸柜
 */
export const unloadApply = (params) => {
	return http('/my/shipment/unloadApply', params, {
		method: 'post',
		loading: true,
		errorHandle: true,
	})
}

//单个卸柜
///ecw/box-load-info/batchUnload
export const batchUnload = (params) => {
	return http('/ecw/box-load-info/batchUnload', params, {
		method: 'post',
		loading: true,
		errorHandle: true,
	})
}