77 lines
1.3 KiB
JavaScript
77 lines
1.3 KiB
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/getDemandDtl',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getSemiRealCode(data) {
|
|
return request({
|
|
url: '/api/pcsIfPurchaseorder/getSemiRealCode',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function commit(data) {
|
|
return request({
|
|
url: '/api/pcsIfPurchaseorder/commit',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function excelImport(data) {
|
|
return request({
|
|
url: '/api/pcsIfPurchaseorder/excelImport',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export default {
|
|
add,
|
|
edit,
|
|
del,
|
|
confirm,
|
|
getDtl,
|
|
commit,
|
|
excelImport,
|
|
getSemiRealCode
|
|
}
|