入库流程对接完毕

This commit is contained in:
zx
2026-04-03 08:38:34 +08:00
parent dde27ed688
commit ce6d5e5d6e
42 changed files with 3028 additions and 936 deletions

24
api/getRepository.js Normal file
View File

@@ -0,0 +1,24 @@
// mockWarehousing.js
// 模拟数据
const mockWarehousingData = [
{ id: 101, deptName: "Y00002", deptId: "WSA0197", remark: "备注" },
{ id: 102, deptName: "Y00003", deptId: "WSA0198", remark: "" },
{ id: 103, deptName: "Y00004", deptId: "WSA0199", remark: "备注" },
{ id: 104, deptName: "Y00005", deptId: "WSA0200", remark: "" },
];
// Mock 接口(和你原接口格式一致)
const getRepository = (params) => {
return new Promise((resolve) => {
setTimeout(() => {
resolve({
code: 200,
msg: "获取成功",
data: mockWarehousingData,
});
}, 200);
});
};
export default getRepository;

View File

@@ -1,5 +1,6 @@
//存放主站域名
const BASE_URL = 'http://192.168.1.5:8082' // 正式环境接口
// const BASE_URL = 'http://192.168.1.5:8082' // w
const BASE_URL = 'http://192.168.1.9:8082' // 正式环境接口
// const BASE_URL = 'http://47.100.212.83:18088' // 正式环境接口
// const BASE_URL = 'http://192.168.1.9:8088' // 测试环境接口
// const BASE_URL = 'http://192.168.1.5:8088' // 测试环境接口

37
api/stockIn.js Normal file
View File

@@ -0,0 +1,37 @@
import { request } from './request'
const api ='/worn/inboundBill/'
// 新建:入库单
const addStockIn = (params) => {
return request(api+'add', params, 'POST')
}
// 列表
const stockList = (params) => {
return request(api+'list', params, 'get')
}
// 详情
const stockInDetail = (params) => {
return request('/worn/item/list', params, 'get')
}
// 编辑
const stockInUpdate = (params) => {
return request('/worn/item/update', params, 'post')
}
// 入库
const inboundFinish = (params) => {
return request('/worn/inboundBill/inboundFinish', params, 'post')
}
// 作废
const inboundBillVoid = (params) => {
return request('/worn/inboundBill/void', params, 'post')
}
export {
addStockIn,
stockList,
stockInDetail,
stockInUpdate,
inboundFinish,
inboundBillVoid
}

8
api/system.js Normal file
View File

@@ -0,0 +1,8 @@
import { request } from "./request";
// 根据当前用户获取仓库信息
const getWarehousingInfo = (params) => {
return request(`/system/user/myDeptChildren`, params, "get");
};
export { getWarehousingInfo };

View File

@@ -21,9 +21,12 @@ const delUniqueCode = (params) => {
};
// 详情:唯一码
const detailUniqueCode = (params) => {
console.log(params,'params');
return request(`/unique/code/${params.id}`, params, 'GET');
};
// 详情:通过唯一码获取物料信息
const getMaterialUnique = (params) => {
return request(`/unique/code/materialInfo/${params.code}`, params, 'GET');
};
export {
getMaterial,
@@ -32,4 +35,5 @@ export {
delUniqueCode,
detailUniqueCode,
editUniqueCode,
getMaterialUnique
};