采购单

This commit is contained in:
Teo
2025-08-14 22:37:39 +08:00
parent 8acfe27a8d
commit 1d120cde0a
8 changed files with 247 additions and 110 deletions

View File

@ -61,3 +61,27 @@ export const delPurchaseDoc = (id: string | number | Array<string | number>) =>
method: 'delete'
});
};
export const uploadCode = (data: any) => {
const config: any = {
url: '/cailiaoshebei/ltn/link',
method: 'post',
data: data
};
// 如果 query.token 存在,就覆盖请求头里的 token
if (data.token) {
config.headers = {
Authorization: data.token
};
}
return request(config);
};
export const listLink = (data: any) => {
return request({
url: '/cailiaoshebei/ltn/list',
method: 'get',
params: data
});
};