dict.js
663 Bytes
import http from './interface'
// 根据字典类型查询字典数据信息
export const getDicts = (dictType) => {
return http.request({
url: '/system/dict/data/type/' + dictType,
method: 'GET'
})
}
// 查询入库类型字典数据信息
export const getReceiptType = () => {
return http.request({
url: '/config/mobile/getReceiptType',
method: 'POST'
})
}
// 通过用户名获取可以用的仓库列表
export const getWarehouseByUserCode = (data) => {
return http.request({
url: '/system/warehouse/getWarehouseByUserCode',
method: 'GET',
data
})
}
export default {
getReceiptType,
getWarehouseByUserCode,
getDicts
}