采购员任命

This commit is contained in:
Teo
2025-08-13 19:10:35 +08:00
parent fbe1dae085
commit b90b0a457c
12 changed files with 1210 additions and 286 deletions

View File

@ -22,7 +22,7 @@ export const listCailiaoshebei = (query?: any): AxiosPromise<CailiaoshebeiVO[]>
*/
export const getCailiaoshebei = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
return request({
url: '/cailiaoshebei/cailiaoshebei/' + id,
url: '/cailiaoshebei/mrpBase/' + id,
method: 'get'
});
};
@ -45,8 +45,8 @@ export const addCailiaoshebei = (data: CailiaoshebeiForm) => {
*/
export const updateCailiaoshebei = (data: CailiaoshebeiForm) => {
return request({
url: '/cailiaoshebei/cailiaoshebei',
method: 'put',
url: '/cailiaoshebei/mrpBase/batch',
method: 'post',
data: data
});
};
@ -69,7 +69,7 @@ export const delCailiaoshebei = (id: string | number | Array<string | number>) =
*/
export const listBatch = (query?: any): AxiosPromise => {
return request({
url: '/cailiaoshebei/materialbatchdemandplan/pcList',
url: '/cailiaoshebei/mrpBase/list',
method: 'get',
params: query
});
@ -79,11 +79,11 @@ export const listBatch = (query?: any): AxiosPromise => {
* 新增物资-材料设备批次
* @param data
*/
export const getBatch = (data: any) => {
export const getBatch = (query: any) => {
return request({
url: '/cailiaoshebei/materialbatchdemandplan/pcAdd',
method: 'post',
data: data
url: '/cailiaoshebei/materialbatchdemandplan/list',
method: 'get',
params: query
});
};
@ -93,7 +93,7 @@ export const getBatch = (data: any) => {
*/
export const delBatch = (ids: string | number | Array<string | number>) => {
return request({
url: '/cailiaoshebei/materialbatchdemandplan/' + ids,
url: '/cailiaoshebei/mrpBase/' + ids,
method: 'delete'
});
};