59 lines
1.9 KiB
JavaScript
59 lines
1.9 KiB
JavaScript
import { httpGet, httpPost } from './http.js';
|
|
|
|
export const WmsApiClient = {
|
|
async test(timeout = 5000) {
|
|
const response = await httpGet('/wms/test/hello', {}, { timeout });
|
|
return response;
|
|
},
|
|
|
|
async emptyVehicleIn(vehicleNo, timeout = 5000) {
|
|
const response = await httpPost('/api/mobile/stockIn/emptyVehicleIn', { vehicleNo }, { timeout });
|
|
return response;
|
|
},
|
|
|
|
async getCanUseGoods(orderId, goodsId, timeout = 5000) {
|
|
const response = await httpPost('/api/mobile/stockIn/getCanUseGoods', { orderId, goodsId }, { timeout });
|
|
return response;
|
|
},
|
|
|
|
async getGoodsDetail(boxNo, timeout = 5000) {
|
|
const response = await httpGet('/api/mobile/stockIn/getGoodsDetail', { boxNo }, { timeout });
|
|
return response;
|
|
},
|
|
|
|
async bindingVehicleIn(data, timeout = 5000) {
|
|
const response = await httpPost('/api/mobile/stockIn/bindingVehicleIn', data, { timeout });
|
|
return response;
|
|
},
|
|
|
|
async getCuxData(timeout = 5000) {
|
|
const response = await httpGet('/api/mobile/stockIn/getCuxData', {}, { timeout });
|
|
return response;
|
|
},
|
|
|
|
async bindingVehicleInEbsOld(data, timeout = 5000) {
|
|
const response = await httpPost('/api/mobile/stockIn/bindingVehicleInEbsOld', data, { timeout });
|
|
return response;
|
|
},
|
|
|
|
async bindingVehicleInEbs(data, timeout = 5000) {
|
|
const response = await httpPost('/api/mobile/stockIn/bindingVehicleInEbs', data, { timeout });
|
|
return response;
|
|
},
|
|
|
|
async getOrderLines(data, timeout = 10000) {
|
|
const response = await httpPost('/api/mobile/stockIn/getOrderLines', data, { timeout });
|
|
return response;
|
|
},
|
|
|
|
async getSubInventory(timeout = 10000) {
|
|
const response = await httpGet('/api/mobile/stockIn/getSubInventory', {}, { timeout });
|
|
return response;
|
|
},
|
|
|
|
async getInventoryTask(vehicleNo, timeout = 5000) {
|
|
const response = await httpGet('/api/mobile/inventory/getInventoryTask', { vehicleNo }, { timeout });
|
|
return response;
|
|
},
|
|
};
|