102 lines
2.5 KiB
TypeScript
102 lines
2.5 KiB
TypeScript
import request from '@/utils/request';
|
|
import { AxiosPromise } from 'axios';
|
|
|
|
//获取版本
|
|
export const obtainAllVersionNumbers = (query: any): AxiosPromise<any> => {
|
|
return request({
|
|
url: '/tender/billofquantitiesLimitList/obtainAllVersionNumbers',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
//获取sheet
|
|
export const sheetList = (query: any): AxiosPromise<any> => {
|
|
return request({
|
|
url: '/tender/billofquantitiesLimitList/sheetList',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
|
|
//获取一览表
|
|
export const listBillofquantitiesLimitList = (query: any): AxiosPromise<any> => {
|
|
return request({
|
|
url: '/tender/billofquantitiesLimitList/list',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
//获取一览数据树
|
|
export const treeList = (query: any): AxiosPromise<any> => {
|
|
return request({
|
|
url: '/tender/billofquantitiesLimitList/getTree',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
//修改单价
|
|
export const updatePrice = (query: any): AxiosPromise<any> => {
|
|
return request({
|
|
url: '/tender/billofquantitiesLimitList',
|
|
method: 'put',
|
|
data: query
|
|
});
|
|
};
|
|
//查询分标策划
|
|
export const getPlanningList = (query: any): AxiosPromise<any> => {
|
|
return request({
|
|
url: '/tender/segmentedIndicatorPlanning/list',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
|
|
//新增分标策划
|
|
export const segmentedIndicatorPlanning = (query: any): AxiosPromise<any> => {
|
|
return request({
|
|
url: '/tender/segmentedIndicatorPlanning',
|
|
method: 'post',
|
|
data: query
|
|
});
|
|
};
|
|
//编辑分标策划
|
|
export const updatePlanning = (query: any): AxiosPromise<any> => {
|
|
return request({
|
|
url: '/tender/segmentedIndicatorPlanning',
|
|
method: 'put',
|
|
data: query
|
|
});
|
|
};
|
|
//编辑分标策划
|
|
export const delPlanning = (query: any): AxiosPromise<any> => {
|
|
return request({
|
|
url: '/tender/segmentedIndicatorPlanning/' + query.ids,
|
|
method: 'delete'
|
|
});
|
|
};
|
|
//导出分标
|
|
export const importExcelFile = (params: any, data: any): AxiosPromise => {
|
|
return request({
|
|
url: '/tender/billofquantitiesLimitList/importExcelFile',
|
|
method: 'post',
|
|
params,
|
|
data
|
|
});
|
|
};
|
|
//获取详情
|
|
export const getDetailsList = (query: any): AxiosPromise<any> => {
|
|
return request({
|
|
url: '/tender/segmentedIndicatorPlanning/getMore',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
|
|
//获取版本详情
|
|
export const getVersionDetails = (id: any): AxiosPromise<any> => {
|
|
return request({
|
|
url: '/tender/tenderPlanLimitList/getVersionDetail/' + id,
|
|
method: 'get'
|
|
});
|
|
};
|