小料
This commit is contained in:
@@ -8,11 +8,11 @@ export function add(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
export function mydel(data) {
|
||||
return request({
|
||||
url: 'api/acceptformula/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
url: 'api/acceptformula/mydel',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -23,7 +23,21 @@ export function edit(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
export function create(data) {
|
||||
return request({
|
||||
url: 'api/acceptformula/create',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function update(data) {
|
||||
return request({
|
||||
url: 'api/acceptformula/update',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export function getDtl(params) {
|
||||
return request({
|
||||
url: 'api/acceptformula/getDtl',
|
||||
@@ -70,4 +84,18 @@ export function createPcsn() {
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export default { add, edit, del, getDtl, getBoms, getTHWs, getPCSNs, getPCSN, getBom, createPcsn }
|
||||
export function autoCalculation(params) {
|
||||
return request({
|
||||
url: 'api/acceptformula/autoCalculation',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export function getPCSNid(params) {
|
||||
return request({
|
||||
url: 'api/acceptformula/getPCSNid',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
export default { create, update, mydel, getDtl, getBoms, getTHWs, getPCSNs, getPCSN, getBom, createPcsn, autoCalculation, getPCSNid }
|
||||
|
||||
Reference in New Issue
Block a user