You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.7 KiB
52 lines
1.7 KiB
import axios from '@/axios'
|
|
// 获取列表
|
|
export function crmPurchasePriceSheetIndex(data) {
|
|
return axios.posts('/api/basedata/purchase-price-sheet/list',data)
|
|
}
|
|
// 创建
|
|
export function crmPurchasePriceSheetSave(data) {
|
|
return axios.posts('/api/basedata/purchase-price-sheet',data)
|
|
}
|
|
// 根据id获取
|
|
export function crmPurchasePriceSheetRead(id) {
|
|
return axios.gets('/api/basedata/purchase-price-sheet/'+id)
|
|
}
|
|
// 根据id修改
|
|
export function crmPurchasePriceSheetUpdate(id,data) {
|
|
return axios.puts('/api/basedata/purchase-price-sheet/'+id,data)
|
|
}
|
|
// 删除
|
|
export function crmPurchasePriceSheetDelete(data) {
|
|
return axios.posts('/api/basedata/purchase-price-sheet/delete',data)
|
|
}
|
|
|
|
|
|
//获取子项列表
|
|
export function crmPurchasePriceDetailListRead(id) {
|
|
return axios.gets('/api/basedata/purchase-price-sheet/'+id+'/details')
|
|
}
|
|
|
|
//按照主表ID和子表ID获取子项详细信息
|
|
export function crmPurchasePriceDetailRead(id,detailId) {
|
|
return axios.gets('/api/basedata/purchase-price-sheet/'+id+'/details/'+detailId)
|
|
}
|
|
|
|
//按筛选条件获取子项列表
|
|
export function crmPurchasePriceDetailIndex(id,data) {
|
|
return axios.posts('/api/basedata/purchase-price-sheet/'+id+'/details',data)
|
|
}
|
|
|
|
//新增子项
|
|
export function crmPurchasePriceDetailAdd(id,data) {
|
|
return axios.posts('/api/basedata/purchase-price-sheet/'+id+'/details/add',data)
|
|
}
|
|
|
|
//修改子项
|
|
export function crmPurchasePriceDetailUpdate(id,data) {
|
|
return axios.posts('/api/basedata/purchase-price-sheet/'+id+'/details/update',data)
|
|
}
|
|
|
|
//删除子项
|
|
export function crmPurchasePriceDetailDelete(id,data) {
|
|
return axios.posts('/api/basedata/purchase-price-sheet/'+id+'/details/delete',data)
|
|
}
|