59 lines
989 B
JavaScript
59 lines
989 B
JavaScript
import request from '@/utils/request'
|
|
|
|
export function add(data) {
|
|
return request({
|
|
url: '/api/pcsIfPurchaseorder',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function del(ids) {
|
|
return request({
|
|
url: '/api/pcsIfPurchaseorder/delete',
|
|
method: 'post',
|
|
data: ids
|
|
})
|
|
}
|
|
|
|
export function edit(data) {
|
|
return request({
|
|
url: '/api/pcsIfPurchaseorder/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function confirm(data) {
|
|
return request({
|
|
url: '/api/pcsIfPurchaseorder/confirm',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getDtl(data) {
|
|
return request({
|
|
url: '/api/pcsIfPurchaseorder/getDtl',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function commit(data) {
|
|
return request({
|
|
url: '/api/pcsIfPurchaseorder/commit',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export default {
|
|
add,
|
|
edit,
|
|
del,
|
|
confirm,
|
|
getDtl,
|
|
commit
|
|
}
|