mt-ck-wms-ui/src/api/basicData/Materials/material.js
2021-09-13 14:56:28 +08:00

56 lines
1.1 KiB
JavaScript

/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-15 16:03:31
* @Description:
*/
import request from '@/utils/request'
export function materialList(data) { // 获取物料信息列表
return request({
url: '/basic/material/page',
method: 'post',
data
})
}
export function materialDetail(id) { // 获取物料信息单条数据
return request({
url: '/basic/material/get',
method: 'post',
data: { id }
})
}
export function materialUpdate(data) { // 更新物料信息单条数据
return request({
url: '/basic/material/update',
method: 'post',
data
})
}
export function materialAdd(data) { // 新增物料信息单条数据
return request({
url: '/basic/material/add',
method: 'post',
data
})
}
export function materialCode() { // 获取物料信息code
return request({
url: '/basic/material/get-code',
method: 'post'
})
}
export function materialDelete(id) { // 删除物料信息单条数据
return request({
url: '/basic/material/delete',
method: 'post',
data: { id }
})
}