/* * @Author: zwq * @Date: 2020-12-29 16:00:14 * @LastEditors: fzq * @LastEditTime: 2022-03-05 10:22:28 * @Description: */ import request from '@/utils/request' export function equipmentInfoAttrList(data) { // 获取设备属性列表 return request({ // url: '/basic/equipment-attr/page', url: '/api/wms/equipment/attr', method: 'post', data }) } export function equipmentInfoAttrDetail(id) { // 获取设备属性单条数据 return request({ // url: '/basic/equipment-attr/get', url: '/api/wms/equipment/attrById', method: 'post', data: { id } }) } export function equipmentInfoAttrUpdate(data) { // 更新设备属性单条数据 return request({ url: '/api/wms/equipment/updateattr', method: 'post', data }) } export function equipmentInfoAttrAdd(data) { // 新增设备属性单条数据 return request({ url: '/api/wms/equipment/addattr', method: 'post', data }) } export function equipmentInfoAttrCode() { // 获取设备属性code return request({ url: '/api/wms/equipment/getCode', method: 'post' }) } export function equipmentInfoAttrDelete(id) { // 删除设备属性单条数据 return request({ url: '/api/wms/equipment/deleteattr', method: 'post', data: { id } }) }