100 lines
1.6 KiB
JavaScript
100 lines
1.6 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
export function add(data) {
|
|
return request({
|
|
url: 'api/physicalMst',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function del(ids) {
|
|
return request({
|
|
url: 'api/physicalMst/delete',
|
|
method: 'post',
|
|
data: ids
|
|
})
|
|
}
|
|
|
|
export function edit(data) {
|
|
return request({
|
|
url: 'api/physicalMst/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getResult(data) {
|
|
return request({
|
|
url: 'api/physicalMst/getResult',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function saveResult(data) {
|
|
return request({
|
|
url: 'api/physicalMst/saveResult',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function confirm(data) {
|
|
return request({
|
|
url: 'api/physicalMst/confirm',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function setValid(data) {
|
|
return request({
|
|
url: 'api/physicalMst/setValid',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function copyAdd(data) {
|
|
return request({
|
|
url: 'api/physicalMst/copyAdd',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function isMaterType(data) {
|
|
return request({
|
|
url: 'api/physicalMst/isMaterType',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function hpySync(data) {
|
|
return request({
|
|
url: 'api/physicalMst/hpySync',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getMaterialType(data) {
|
|
return request({
|
|
url: 'api/physicalMst/hpySync',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getStatus(data) {
|
|
return request({
|
|
url: 'api/physicalMst/hpySync',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export default { add, edit, del, getResult, saveResult, confirm, setValid, copyAdd, getStatus }
|