import request from ‘@/utils/request‘ // 分页查询 export function listProducterForPage(query) { return request({ url: ‘/erp/producter/listProducterForPage‘, method: ‘get‘, params: query }) } // 添加 export function addProducter(data) { return request({ url: ‘/erp/producter/addProducter‘, method: ‘post‘, params: data }) } // 修改 export function updateProducter(data) { return request({ url: ‘/erp/producter/updateProducter‘, method: ‘put‘, params: data }) } // 删除 export function deleteProducterByIds(id) { return request({ url: ‘/erp/producter/deleteProducterByIds/‘ + id, method: ‘delete‘ }) } // 查询一个 export function getProducterById(id) { return request({ url: ‘/erp/producter/getProducterById/‘ + id, method: ‘get‘ }) } // 查询所有有效的生产厂家信息 export function selectAllProducter() { return request({ url: ‘/erp/producter/selectAllProducter‘, method: ‘get‘ }) }
import request from ‘@/utils/request‘
// 分页查询
export function listMedicinesForPage(query) {
return request({
url: ‘/erp/medicines/listMedicinesForPage‘,
method: ‘get‘,
params: query
})
}
// 添加
export function addMedicines(data) {
return request({
url: ‘/erp/medicines/addMedicines‘,
method: ‘post‘,
params: data
})
}
// 修改
export function updateMedicines(data) {
return request({
url: ‘/erp/medicines/updateMedicines‘,
method: ‘put‘,
params: data
})
}
// 删除
export function deleteMedicinesByIds(id) {
return request({
url: ‘/erp/medicines/deleteMedicinesByIds/‘ + id,
method: ‘delete‘
})
}
// 查询一个
export function getMedicinesById(id) {
return request({
url: ‘/erp/medicines/getMedicinesById/‘ + id,
method: ‘get‘
})
}
// 查询所有有效的药品信息
export function selectAllMedicines() {
return request({
url: ‘/erp/medicines/selectAllMedicines‘,
method: ‘get‘
})
}
// 调整库存
export function updateMedicinesStorage(medicinesId, medicinesStockNum) {
return request({
url: ‘/erp/medicines/updateMedicinesStorage/‘ + medicinesId + ‘/‘ + medicinesStockNum,
method: ‘post‘
})
}
import request from ‘@/utils/request‘
// 分页查询所有的采购单数据
export function listPurchaseForPage(query) {
return request({
url: ‘/erp/purchase/listPurchaseForPage‘,
method: ‘get‘,
params: query
})
}
// 分页查询所有的待审核采购单数据
export function listPurchasePendingForPage(query) {
return request({
url: ‘/erp/purchase/listPurchasePendingForPage‘,
method: ‘get‘,
params: query
})
}
// 提交审核【根据采购单号】
export function doAudit(purchaseId) {
return request({
url: ‘/erp/purchase/doAudit/‘ + purchaseId,
method: ‘post‘
})
}
// 作废【根据采购单号】
export function doInvalid(purchaseId) {
return request({
url: ‘/erp/purchase/doInvalid/‘ + purchaseId,
method: ‘post‘
})
}
// 审核通过【根据采购单号】
export function auditPass(purchaseId) {
return request({
url: ‘/erp/purchase/auditPass/‘ + purchaseId,
method: ‘post‘
})
}
// 审核不通过【根据采购单号】
export function auditNoPass(purchaseId, auditMsg) {
return request({
url: ‘/erp/purchase/auditNoPass/‘ + purchaseId + ‘/‘ + auditMsg,
method: ‘post‘
})
}
// 根据采购单据ID查询采购详情信息
export function getPurchaseItemById(purchaseId) {
return request({
url: ‘/erp/purchase/getPurchaseItemById/‘ + purchaseId,
method: ‘get‘
})
}
原文:https://www.cnblogs.com/javakangkang/p/14007896.html