import request from '@/utils/request'
|
|
const Api = {
|
addStandardProjectGroup: "/productModel/selectfather", // 添加标准-->选择项目分组
|
productModelSelectmater: "/productModel/selectmater", // 选择样品名称
|
addproductModel: "/productModel/addproductModel", // 添加标准
|
selectproductModel: "/productModel/selectproductModel", // 查询标准模版列表
|
deleteProductModel: "/productModel/delproductModel", // 删除标准模版
|
selectproductModelById: "/productModel/selectproductModelById", // 根据id查询
|
updateProductModel: "/productModel/writeproductModel", // 更新标准 -->编辑
|
deleteList: "/productModel/delAllproductModel", // 批量删除
|
getSample: "/material/getSample" //获取基础数据样品名称
|
}
|
|
export function getSample() {
|
return request({
|
url: Api.getSample,
|
method: 'get'
|
})
|
}
|
|
export function addStandardProjectGroupApi() {
|
return request({
|
url: Api.addStandardProjectGroup,
|
method: 'get'
|
})
|
}
|
|
export function productModelSelectmaterApi() {
|
return request({
|
url: Api.productModelSelectmater,
|
method: "get"
|
})
|
}
|
|
export function addproductModelApi(formData) {
|
return request({
|
url: Api.addproductModel,
|
method: 'post',
|
data: formData
|
})
|
}
|
|
export function updateProductModelApi(formData) {
|
return request({
|
url: Api.updateProductModel + '?id=' + formData.id,
|
method: 'post',
|
data: formData
|
})
|
}
|
|
export function selectproductModelApi(params) {
|
return request({
|
url: Api.selectproductModel,
|
method: "get",
|
params: params
|
})
|
}
|
|
export function deleteProductModelApi(id){
|
return request({
|
url: Api.deleteProductModel,
|
method: "post",
|
params: {id: id}
|
})
|
}
|
|
export function selectproductModelByIdApi(id){
|
return request({
|
url: Api.selectproductModelById,
|
method: "get",
|
params: {id: id}
|
})
|
}
|
|
export function deleteListApi(id){
|
return request({
|
url: Api.deleteList,
|
method: "post",
|
params:{ids: id.toString()}
|
})
|
}
|