API
This commit is contained in:
parent
a112a45fd4
commit
3c9bf5de20
|
|
@ -0,0 +1,28 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 新增 成套设备
|
||||
export const addCompleteSetToolsApi = (data) => {
|
||||
return request.post('/material/maWhole/addOrUpdate', data)
|
||||
}
|
||||
// 查询 成套设备列表
|
||||
export const getCompleteSetToolsApi = (data) => {
|
||||
return request.get('/material/maWhole/selectList', {
|
||||
params: data,
|
||||
})
|
||||
}
|
||||
// 删除 成套设备单条数据
|
||||
export const delCompleteSetToolsApi = (data) => {
|
||||
return request.post('/material/maWhole/deleteById', data)
|
||||
}
|
||||
// 查询编辑 成套设备单
|
||||
export const queryCompleteSetToolsApi = (data) => {
|
||||
return request.get('/material/maWhole/selectListById', {
|
||||
params: data,
|
||||
})
|
||||
}
|
||||
// 查询 成套设备详情
|
||||
export const queryCompleteSetDetailsApi = (data) => {
|
||||
return request.get('/material/maWhole/selectListByWholeTypeName', {
|
||||
params: data,
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,106 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 新增或修改IOT
|
||||
export function addOrUpdate(data) {
|
||||
return request({
|
||||
url: '/material/iotMachine/addOrUpdate',
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// IOT列表
|
||||
export function getIotList(params = {}) {
|
||||
return request({
|
||||
url: '/material/iotMachine/getIotList',
|
||||
method: 'get',
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除IOT /iotMachine/deleteById/{iotId}
|
||||
export function deleteIotById(params) {
|
||||
return request({
|
||||
url: '/material/iotMachine/deleteById/' + params,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
|
||||
// IOT下拉列表 /iotMachine/selectList
|
||||
export function selectList(params = {}) {
|
||||
return request({
|
||||
url: '/material/iotMachine/selectList',
|
||||
method: 'get',
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// 绑定IOT /iotMachine/bind
|
||||
export function bindIot(data) {
|
||||
return request({
|
||||
url: '/material/iotMachine/bind',
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 解绑IOT /iotMachine/unbind
|
||||
export function unbindIot(data) {
|
||||
return request({
|
||||
url: '/material/iotMachine/unbind',
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 获取绑定IOT列表 /iotMachine/getTypeList
|
||||
export function getTypeList(params = {}) {
|
||||
return request({
|
||||
url: '/material/iotMachine/getTypeList',
|
||||
method: 'get',
|
||||
params,
|
||||
})
|
||||
}
|
||||
// 获取绑定IOT列表 /iotMachine/getTypeList
|
||||
export function getTypeListApi(params = {}) {
|
||||
return request({
|
||||
url: '/material/iotMachine/getTypeList',
|
||||
method: 'get',
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// 绑定详情 /iotMachine/getRecordList
|
||||
export function getRecordList(params = {}) {
|
||||
return request({
|
||||
url: '/material/iotMachine/getRecordList',
|
||||
method: 'get',
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// 所有绑定详情 /iotMachine/getRecordListAll
|
||||
export function getRecordListAll(params = {}) {
|
||||
return request({
|
||||
url: '/material/iotMachine/getRecordListAll',
|
||||
method: 'get',
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
/** 获取机具设备的位置信息 */
|
||||
export const getIotDeviceLocationApi = (data) => {
|
||||
return request.post('/material/iotMachine/getLocation', data)
|
||||
}
|
||||
/** 获取机具设备的行程信息 */
|
||||
export const getIotDeviceTripApi = (data) => {
|
||||
return request.post('/material/iotMachine/searchItinerary', data)
|
||||
}
|
||||
/** 获取机具设备的停留点信息 */
|
||||
export const getIotDeviceParkDetailApi = (data) => {
|
||||
return request.post('/material/iotMachine/reportParkDetailByTime', data)
|
||||
}
|
||||
/** 获取机具设备的报警信息 */
|
||||
export const getIotDeviceAlarmApi = (data) => {
|
||||
return request.post('/material/iotMachine/reportAlarm', data)
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询货架列表
|
||||
export function listLabelBind(query) {
|
||||
return request({
|
||||
url: '/material/base/maLabelBind/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 标签绑定
|
||||
export function addLabelBind(data) {
|
||||
return request({
|
||||
url: '/material/base/maLabelBind',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//解绑
|
||||
export function delLabelBind(maIds) {
|
||||
return request({
|
||||
url: '/material/base/maLabelBind/' + maIds,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 绑定历史
|
||||
export function listLabelHistoryList(query) {
|
||||
return request({
|
||||
url: '/material/base/maLabelBind/historyList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,379 @@
|
|||
import request from '@/utils/request'
|
||||
// 查询新购任务列表
|
||||
export function listPurchaseCheckInfo(query) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckInfo/list',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//新增新购任务
|
||||
export function addPurchaseCheckInfo(data) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckInfo',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
//编辑新购任务
|
||||
export function updatePurchaseCheckInfo(data) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckInfo',
|
||||
method: 'put',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
//任务 详情
|
||||
export function getPurchaseCheckInfo(query) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckInfo/getDetails',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//消息通知
|
||||
export function bmNoticeInfo(data) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckInfo/bmNoticeInfo',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 新购验收--验收弹窗-确认验收
|
||||
export function updatePurchaseCheckDetails(data) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckDetails',
|
||||
method: 'put',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 新购验收-编号管理列表
|
||||
export function listPurchaseMacodeInfo(query) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode/list',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
export function getMacodeInfo(taskId) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode/' + taskId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
// 新购验收-编号管理-新增
|
||||
export function addPurchaseMacode(data) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 修改
|
||||
export function updateMacode(data) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode',
|
||||
method: 'put',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function delMacode(taskIds) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode/' + taskIds,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
|
||||
//新购验收-编号管理-绑定弹窗详情列表
|
||||
export function getMacodeList(query) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode/list',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
//新购验收-编号管理-绑定弹窗详情列表
|
||||
export function getMacodeDetailList(query) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode/getInfo',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//新购验收-编号管理-生成编码
|
||||
export function makeEquipmentNumber(data) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode/equipmentNumber',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
//新购验收-编号管理-保存
|
||||
export function editPurchaseMacode(data) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function delMacodeList(maCode) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode/' + maCode,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
|
||||
//新购验收-验收-通知-常用人员
|
||||
export function getNoticeUserList(query) {
|
||||
return request({
|
||||
url: '/system/person/list',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//新购验收-验收-通知-所有人员
|
||||
export function getAllNotificationList(query) {
|
||||
return request({
|
||||
url: '/system/person/notification',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//新购验收-验收-通知-常用人员-添加
|
||||
export function addNoticeUser(data) {
|
||||
return request({
|
||||
url: '/system/person',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 删除
|
||||
export function delNoticeUser(id) {
|
||||
return request({
|
||||
url: '/system/person/' + id,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
|
||||
//新购验收-入库列表
|
||||
export function getPutInList(query) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckInfo/putInList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
export function getPutinDetailsList(query) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode/putinDetails',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
// 修改状态-审核
|
||||
export function changePutinStatus(data) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode/manageStatus',
|
||||
method: 'put',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
//新购工机具验收单
|
||||
export function getAcceptanceForm(query) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckInfo/getAcceptanceForm',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
//新购工机具入库单
|
||||
export function warehousingEntry(query) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode/warehousingEntry',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
// 配件所属上级树
|
||||
export function getAccessoryTree(data) {
|
||||
return request({
|
||||
url: '/material/select/getAccessoryTree',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 查询新购配件列表
|
||||
export function listPurchaseAccessory(query) {
|
||||
return request({
|
||||
url: '/material/purchaseAccessory/list',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//新增新购配件任务
|
||||
export function addPurchaseAccessory(data) {
|
||||
return request({
|
||||
url: '/material/purchaseAccessory',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
//配件任务 详情
|
||||
export function getPurchaseAccessoryDetails(query) {
|
||||
return request({
|
||||
url: '/material/purchaseAccessory/getDetails',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//编辑新购配件任务
|
||||
export function updatePurchaseAccessory(data) {
|
||||
return request({
|
||||
url: '/material/purchaseAccessory/edit',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
//验收新购配件任务
|
||||
export function checkPurchaseAccessory(data) {
|
||||
return request({
|
||||
url: '/material/purchaseAccessory/check',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
//删除新购配件任务
|
||||
export function delPurchaseAccessory(taskIds) {
|
||||
return request({
|
||||
url: '/material/purchaseAccessory/' + taskIds,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
|
||||
//配件入库 列表
|
||||
export function getPurchaseAccessoryPutInList(query) {
|
||||
return request({
|
||||
url: '/material/purchaseAccessory/putInList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
//配件入库 配件类型下拉数据
|
||||
export function getPartList(query) {
|
||||
return request({
|
||||
url: '/material/purchaseAccessory/getPartList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//配件入库 配件类型下拉数据
|
||||
export function getAccessoryPutInDetailList(query) {
|
||||
return request({
|
||||
url: '/material/purchaseAccessory/putinDetails',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
//配件入库 审批操作
|
||||
export function checkInputAccessory(data) {
|
||||
return request({
|
||||
url: '/material/purchaseAccessory/checkInput',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
//新购配件验收单
|
||||
export function getAccessoryAcceptanceForm(query) {
|
||||
return request({
|
||||
url: '/material/purchaseAccessory/getAcceptanceForm',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
//新购配件入库单
|
||||
export function accessoryWarehousingEntry(query) {
|
||||
return request({
|
||||
url: '/material/purchaseAccessory/warehousingEntry',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function purchaseCheckInfoRemove(maCode) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckInfo/' + maCode,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
//新增计划管理
|
||||
export function addPlanManagement(data) {
|
||||
return request({
|
||||
url: '/material/planManagement/addOrUpdate',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
//配件入库 配件类型下拉数据
|
||||
export function getPlanList(query) {
|
||||
return request({
|
||||
url: '/material/planManagement/getList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//借调操作
|
||||
export function addOrUpdateMange(data) {
|
||||
return request({
|
||||
url: '/material/planManagement/addOrUpdateMange',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
//计划借调列表
|
||||
export function getManageList(query) {
|
||||
return request({
|
||||
url: '/material/planManagement/getManageList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//抱杆成套数据明细
|
||||
export function getWholeSetDetails(query) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckInfo/wholeSetDetails',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
// 查看绑定编码详情
|
||||
export function getBindCodeDetails(query) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode/details',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
/* 9.24 新需求 验收图片补上传功能 */
|
||||
export const postAcceptImgUploadApi = (data) => {
|
||||
return request.post('/material/purchaseCheckDetails/uploadPic', data)
|
||||
}
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
//编辑新购任务
|
||||
export function updatePurchaseCheckInfo(data) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckServiceCenter',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//消息通知
|
||||
export function bmNoticeInfo(data) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckServiceCenter/bmNoticeInfo',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 新购验收--验收弹窗-确认验收
|
||||
export function updatePurchaseCheckDetails(data) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckDetails',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//新购验收-入库列表
|
||||
export function getPutInList(query) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckServiceCenter/putInList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
export function getPutinDetailsList(query) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckServiceCenter/putinDetails',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 修改状态-审核
|
||||
export function changePutinStatus(data) {
|
||||
return request({
|
||||
url: '/material/purchaseCheckServiceCenter/manageStatus',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
//新购工机具入库单
|
||||
export function warehousingEntry(query) {
|
||||
return request({
|
||||
url: '/material/purchaseMacode/warehousingEntry',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//配件入库 配件类型下拉数据
|
||||
export function getPartList(query) {
|
||||
return request({
|
||||
url: '/material/purchaseAccessory/getPartList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
const maTypeUrl = '/material/base/type/getMaType' // 物品类型+配件
|
||||
const addOrUpdateUrl = '/material/maWhole/addOrUpdate' // 添加
|
||||
const selectListUrl = '/material/maWhole/selectList' // 查询首页
|
||||
const selectListByIdUrl = '/material/maWhole/selectListById' // 查询详情
|
||||
const deleteByIdUrl = '/material/maWhole/deleteById' // 删除
|
||||
const treeTypeUrl = '/material/select/getDeviceTypeTree' // 设备树
|
||||
const selectListTreeUrl = '/material/maWhole/selectListTree' // 编辑查询
|
||||
|
||||
// 物品类型 选择配件
|
||||
export function getMaType(query) {
|
||||
return request({
|
||||
url: maTypeUrl,
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
// 设备树
|
||||
export function getDeviceTypeTree(params = {}) {
|
||||
return request({
|
||||
url: treeTypeUrl,
|
||||
method: 'post',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
// 新增
|
||||
export function addOrUpdateWhole(data) {
|
||||
return request({
|
||||
url: addOrUpdateUrl,
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 查询首页
|
||||
export function searchSelectList(data = {}) {
|
||||
return request({
|
||||
url: selectListUrl,
|
||||
method: 'get',
|
||||
params: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 查询详情
|
||||
export function searchSelectListById(data) {
|
||||
return request({
|
||||
url: selectListByIdUrl,
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function deleteById(data) {
|
||||
return request({
|
||||
url: deleteByIdUrl,
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 编辑
|
||||
export function editRequest(data) {
|
||||
return request({
|
||||
url: selectListTreeUrl,
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
//机具退料入库
|
||||
export function getReturnOfMaterialsInfoAll(query) {
|
||||
return request({
|
||||
url: '/material/inventoryAndWarehousing/getList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//机具退料入库--机具类型,规格型号下拉数据
|
||||
export function getTypeList(query) {
|
||||
return request({
|
||||
url: '/material/returnOfMaterialsInfo/getTypeList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//修试后入库--列表
|
||||
export function getRepairedList(data) {
|
||||
return request({
|
||||
url: '/material/RepairTestInput/getRepairedList',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
//修试后入库--详情
|
||||
export function getRepairedDetailList(data) {
|
||||
return request({
|
||||
url: '/material//RepairTestInput/getRepairedDetailList',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
//修试后入库--审核
|
||||
export function inputByType(data) {
|
||||
return request({
|
||||
url: '/material/RepairTestInput/inputByType',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取 设备树
|
||||
export function getDeviceTypeTree(params = {}){
|
||||
return request({
|
||||
url: '/material/select/getDeviceTypeTree',
|
||||
method: 'post',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
// 提交编码入库
|
||||
export function inputByCode(data) {
|
||||
return request({
|
||||
url: '/material/inventoryAndWarehousing/addList',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查看盘点入库详情接口
|
||||
export const getInventoryWarehousingApi = (params) => {
|
||||
return request.get(`/material/inventoryAndWarehousing/getDetail`, {
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询货架列表
|
||||
export function listHouse(query) {
|
||||
return request({
|
||||
url: '/material/base/house/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
export function listHouseTree(query) {
|
||||
return request({
|
||||
url: '/material/base/house/tree',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 新增货架
|
||||
export function addHouse(data) {
|
||||
return request({
|
||||
url: '/material/base/house',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 查询部门详细
|
||||
export function getHouse(houseId) {
|
||||
return request({
|
||||
url: '/material/base/house/' + houseId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 修改货架
|
||||
export function updateHouse(data) {
|
||||
return request({
|
||||
url: '/material/base/house',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除货架
|
||||
export function delHouse(houseId) {
|
||||
return request({
|
||||
url: '/material/base/house/' + houseId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//货架配置-列表
|
||||
export function getHouseSet(query) {
|
||||
return request({
|
||||
url: '/material/base/houseSet/getHouseSet',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
//货架配置-新增
|
||||
export function addhouseSet(data) {
|
||||
return request({
|
||||
url: '/material/base/houseSet',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 货架配置-修改
|
||||
export function updateHouseSet(data) {
|
||||
return request({
|
||||
url: '/material/base/houseSet',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
//货架配置-删除
|
||||
export function delHouseSet(houseId) {
|
||||
return request({
|
||||
url: '/material/base/houseSet/' + houseId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,296 @@
|
|||
import request from '@/utils/request'
|
||||
//机具类型管理
|
||||
export function getMaTypeList(query) {
|
||||
return request({
|
||||
url: '/material/base/type/getMaTypeList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//获取机具类型列表
|
||||
export function getListByMaType(query) {
|
||||
return request({
|
||||
url: '/material/base/type/getListByMaType',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//获取机具类型列表
|
||||
export function getListByMaTypePid(query) {
|
||||
return request({
|
||||
url: '/material/base/type/getListByMaTypePid',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//获取机具类型树2
|
||||
export function equipmentTypeTree(query) {
|
||||
return request({
|
||||
url: '/material/base/type/equipmentType',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//机具类型-详情
|
||||
export function getMaType(typeId) {
|
||||
return request({
|
||||
url: '/material/base/type/' + typeId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//获取基层单位
|
||||
export function getunitInfoAll(query) {
|
||||
return request({
|
||||
url: '/material/base/bmUnitInfo/unitInfoAll',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
//机具类型--新增
|
||||
export function addMaType(data) {
|
||||
return request({
|
||||
url: '/material/base/type',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 机具类型--修改
|
||||
export function updateMaType(data) {
|
||||
return request({
|
||||
url: '/material/base/type',
|
||||
method: 'put',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
//供应商管理--删除
|
||||
export function delMaType(typeId) {
|
||||
return request({
|
||||
url: '/material/base/type/' + typeId,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
|
||||
//供应商管理-列表
|
||||
export function listSupplierInfo(query) {
|
||||
return request({
|
||||
url: '/material/base/supplierInfo/list',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//供应商管理-详情
|
||||
export function getSupplierInfo(supplierId) {
|
||||
return request({
|
||||
url: '/material/base/supplierInfo/' + supplierId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//供应商管理--新增
|
||||
export function addSupplier(data) {
|
||||
return request({
|
||||
url: '/material/base/supplierInfo',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 供应商管理--修改
|
||||
export function updateSupplier(data) {
|
||||
return request({
|
||||
url: '/material/base/supplierInfo',
|
||||
method: 'put',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
//供应商管理--删除
|
||||
export function delSupplier(supplierIds) {
|
||||
return request({
|
||||
url: '/material/base/supplierInfo/' + supplierIds,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
//供应商管理-下拉数据
|
||||
export function supplierInfoList(query) {
|
||||
return request({
|
||||
url: '/material/base/supplierInfo/supplierInfoList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
//机具设备管理-列表
|
||||
export function listMachine(query) {
|
||||
return request({
|
||||
url: '/material/base/machine/getMachine',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//机具设备管理-详情
|
||||
export function getMachine(maId) {
|
||||
return request({
|
||||
url: '/material/base/machine/' + maId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
//机具设备管理--新增
|
||||
export function addMachine(data) {
|
||||
return request({
|
||||
url: '/material/base/machine',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 机具设备管理--修改
|
||||
export function updateMachine(data) {
|
||||
return request({
|
||||
url: '/material/base/machine',
|
||||
method: 'put',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
//机具设备管理--删除
|
||||
export function delMachine(maIds) {
|
||||
return request({
|
||||
url: '/material/base/machine/' + maIds,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
|
||||
//
|
||||
// //配件管理-列表
|
||||
export function listPartType(query) {
|
||||
return request({
|
||||
url: '/material/base/maPartType/list',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
//配件管理--新增
|
||||
export function addPartType(data) {
|
||||
return request({
|
||||
url: '/material/base/maPartType',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
//配件管理--新增
|
||||
export function addMaPartType(data) {
|
||||
return request({
|
||||
url: '/material/base/maPartType',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 配件管理--修改
|
||||
export function updatePartType(data) {
|
||||
return request({
|
||||
url: '/material/base/maPartType',
|
||||
method: 'put',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
// 配件管理--修改
|
||||
export function updatePartTypeById(data) {
|
||||
return request({
|
||||
url: '/material/base/maPartType/updateById',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
//配件管理--删除
|
||||
export function delPartType(maIds) {
|
||||
return request({
|
||||
url: '/material/base/maPartType/' + maIds,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
//配件管理--查询
|
||||
export function getPartType(maIds) {
|
||||
return request({
|
||||
url: '/material/base/maPartType/' + maIds,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 获取库管员配置列表
|
||||
export function warehouseKeeperInfoAll(query) {
|
||||
return request({
|
||||
url: '/material/base/maWarehouseKeeper/warehouseKeeperInfoAll',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//库管员配置-根据人员名称查询左侧列表
|
||||
export function getMaUserList(query) {
|
||||
return request({
|
||||
url: '/material/base/maWarehouseKeeper/getMaUserList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
//库管员配置-保存
|
||||
export function addHouseKeeper(data) {
|
||||
return request({
|
||||
url: '/material/base/maWarehouseKeeper/addList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
//库管员配置-删除
|
||||
export function delHouseKeeper(data) {
|
||||
return request({
|
||||
url: '/material/base/maWarehouseKeeper/remove',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 获取维修班配置列表
|
||||
export function wareRepairerInfoAll(query) {
|
||||
return request({
|
||||
url: '/material/base/maintenanceGang/maintenanceGangInfoAll',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
//维修班配置-根据人员名称查询左侧列表
|
||||
export function getRepairerList(query) {
|
||||
return request({
|
||||
url: '/material/base/maintenanceGang/getMaUserList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
//维修班配置-保存
|
||||
export function addRepairer(data) {
|
||||
return request({
|
||||
url: '/material/base/maintenanceGang/addList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
//维修班配置-删除
|
||||
export function delRepairer(data) {
|
||||
return request({
|
||||
url: '/material/base/maintenanceGang/remove',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
//机具厂家-下拉数据
|
||||
export function getDeviceFactoryCbx(data) {
|
||||
return request({
|
||||
url: '/material/base/select/getDeviceFactoryCbx',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
//机具退料入库
|
||||
export function getReturnOfMaterialsInfoAll(query) {
|
||||
return request({
|
||||
url: '/material/returnOfMaterialsInfo/getReturnOfMaterialsInfoAll',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//机具退料入库--机具类型,规格型号下拉数据
|
||||
export function getTypeList(query) {
|
||||
return request({
|
||||
url: '/material/returnOfMaterialsInfo/getTypeList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//修试后入库--列表
|
||||
export function getRepairedList(data) {
|
||||
return request({
|
||||
url: '/material/RepairTestInput/getRepairedList',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
//修试后入库--详情
|
||||
export function getRepairedDetailList(data) {
|
||||
return request({
|
||||
url: '/material//RepairTestInput/getRepairedDetailList',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
//修试后入库--审核
|
||||
export function inputByType(data) {
|
||||
return request({
|
||||
url: '/material/RepairTestInput/inputByType',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue