11-wms/src/api/basicData/Materials/materialAttr.js

56 lines
1.1 KiB
JavaScript

/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-16 12:09:29
* @Description:
*/
import request from '@/utils/request'
export function list(data) { // 获取物料属性列表
return request({
url: '/basic/material-attr/page',
method: 'post',
data
})
}
export function detail(id) { // 获取物料属性单条数据
return request({
url: '/basic/material-attr/get',
method: 'post',
data: { id }
})
}
export function update(data) { // 更新物料属性单条数据
return request({
url: '/basic/material-attr/update',
method: 'post',
data
})
}
export function add(data) { // 新增物料属性单条数据
return request({
url: '/basic/material-attr/add',
method: 'post',
data
})
}
export function getCode() { // 获取物料属性code
return request({
url: '/basic/material-attr/get-code',
method: 'post'
})
}
export function del(id) { // 删除物料属性单条数据
return request({
url: '/basic/material-attr/delete',
method: 'post',
data: { id }
})
}