部门管理新增分包单位选项

This commit is contained in:
Teo
2025-07-18 19:22:36 +08:00
parent d03efb8d6f
commit 5d76471571
17 changed files with 141 additions and 89 deletions

View File

@ -10,7 +10,7 @@ import { ContractorToolVO, ContractorToolForm, ContractorToolQuery } from '@/api
export const listContractorTool = (query?: ContractorToolQuery): AxiosPromise<ContractorToolVO[]> => {
return request({
url: '/project/contractorTool/list',
url: '/contractor/contractorTool/list',
method: 'get',
params: query
});
@ -22,7 +22,7 @@ export const listContractorTool = (query?: ContractorToolQuery): AxiosPromise<Co
*/
export const getContractorTool = (id: string | number): AxiosPromise<ContractorToolVO> => {
return request({
url: '/project/contractorTool/' + id,
url: '/contractor/contractorTool/' + id,
method: 'get'
});
};
@ -33,7 +33,7 @@ export const getContractorTool = (id: string | number): AxiosPromise<ContractorT
*/
export const addContractorTool = (data: ContractorToolForm) => {
return request({
url: '/project/contractorTool',
url: '/contractor/contractorTool',
method: 'post',
data: data
});
@ -45,7 +45,7 @@ export const addContractorTool = (data: ContractorToolForm) => {
*/
export const updateContractorTool = (data: ContractorToolForm) => {
return request({
url: '/project/contractorTool',
url: '/contractor/contractorTool',
method: 'put',
data: data
});
@ -57,7 +57,7 @@ export const updateContractorTool = (data: ContractorToolForm) => {
*/
export const delContractorTool = (id: string | number | Array<string | number>) => {
return request({
url: '/project/contractorTool/' + id,
url: '/contractor/contractorTool/' + id,
method: 'delete'
});
};