新增采购
This commit is contained in:
@@ -32,6 +32,46 @@ export function delSupplier(ids) {
|
||||
})
|
||||
}
|
||||
|
||||
// 供应商往来流水
|
||||
export function listSupplierTxn(supplierId) {
|
||||
return request({
|
||||
url: '/erp/supplierTxn/list',
|
||||
method: 'get',
|
||||
params: { supplierId }
|
||||
})
|
||||
}
|
||||
|
||||
export function supplierTxnSummary(supplierId) {
|
||||
return request({
|
||||
url: '/erp/supplierTxn/summary',
|
||||
method: 'get',
|
||||
params: { supplierId }
|
||||
})
|
||||
}
|
||||
|
||||
export function addSupplierTxn(data) {
|
||||
return request({
|
||||
url: '/erp/supplierTxn',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function updateSupplierTxn(data) {
|
||||
return request({
|
||||
url: '/erp/supplierTxn',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function delSupplierTxn(ids) {
|
||||
return request({
|
||||
url: `/erp/supplierTxn/${ids}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 供应商价格
|
||||
export function listSupplierPrice(query) {
|
||||
return request({
|
||||
|
||||
@@ -115,6 +115,31 @@ export function listDelivery(planId) {
|
||||
})
|
||||
}
|
||||
|
||||
// 到货记录页左侧:审核通过的计划
|
||||
export function listDeliveryPlans(query) {
|
||||
return request({
|
||||
url: '/erp/purchasePlan/deliveryPlans',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 某计划的到货上传批次(每次上传一条)
|
||||
export function listDeliveryBatches(planId) {
|
||||
return request({
|
||||
url: `/erp/purchasePlan/${planId}/deliveryBatches`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 某批次的到货明细
|
||||
export function listDeliveryByBatch(batchId) {
|
||||
return request({
|
||||
url: `/erp/purchasePlan/deliveryBatch/${batchId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 删除到货明细
|
||||
export function delDelivery(deliveryId) {
|
||||
return request({
|
||||
|
||||
Reference in New Issue
Block a user