前4个模块的表单样式

This commit is contained in:
朱菊兰 2022-10-20 16:44:27 +08:00
parent 7a935886d9
commit 7030154e1e
133 changed files with 13283 additions and 22 deletions

126
src/api/art-manage/art.js Normal file
View File

@ -0,0 +1,126 @@
import request from '@/utils/request'
export function list(data) {
return request({
url: '/process/process-flow/page',
method: 'post',
data
})
}
export function getInfo(data) {
return request({
url: '/process/process-flow/get',
method: 'post',
data
})
}
export function enabled(data) {
return request({
url: '/process/process-flow/enabled',
method: 'post',
data
})
}
export function del(data) {
return request({
url: '/process/process-flow/delete',
method: 'post',
data
})
}
export function update(data) {
return request({
url: '/process/process-flow/update',
method: 'post',
data
})
}
export function add(data) {
return request({
url: '/process/process-flow/add',
method: 'post',
data
})
}
// 获取基板列表
export function listSubstrate(data) {
return request({
url: '/process/process-flow/substrateList',
method: 'post',
data
})
}
// 获取BOM列表
export function listBom(data) {
return request({
url: '/process/process-flow/bomList',
method: 'post',
data
})
}
// 获取某个设备下的bom
export function listEquipmentBom(data) {
return request({
url: 'process/process-flow-equipment/equipmentBomList',
method: 'post',
data
})
}
// 获取所有设备的bom
export function listAllEquipmentBom(data) {
return request({
url: '/process/process-flow-equipment/allEquipmentBomList',
method: 'post',
data
})
}
// 获取某个设备下的配方
export function listEquipmentRecipe(data) {
return request({
url: 'process/process-flow-equipment/equipmentRecipeList',
method: 'post',
data
})
}
// 获取所有设备下的配方
export function listAllEquipmentRecipe(data) {
return request({
url: '/process/process-flow-equipment/allEquipmentRecipeList',
method: 'post',
data
})
}
// 保存某个工艺下的所有节点
export function addProcessFlows(data) {
return request({
url: 'process/process-flow-equipment/add',
method: 'post',
data
})
}
// 获取工艺流程下所有节点
export function listProcessFlowNode(data) {
return request({
url: '/process/process-flow-equipment/list',
method: 'post',
data
})
}
// 获取工序列表
export function listProcess(data) {
return request({
url: '/process/work-sequence/list',
method: 'post',
data
})
}
// 获取工艺自动code
export function getCode() {
return request({
url: '/process/process-flow/getCode',
method: 'post'
})
}

View File

@ -0,0 +1,49 @@
/*
* @Author: gtz
* @Date: 2021-04-06 20:20:10
* @LastEditors: gtz
* @LastEditTime: 2021-04-07 16:14:47
* @Description: 工序管理 api
*/
import request from '@/utils/request'
export function list(data) {
return request({
url: '/process/work-sequence/page',
method: 'post',
data
})
}
export function getInfo(data) {
return request({
url: '/process/work-sequence/get',
method: 'post',
data
})
}
export function del(data) {
return request({
url: '/process/work-sequence/delete',
method: 'post',
data
})
}
export function update(data) {
return request({
url: '/process/work-sequence/update',
method: 'post',
data
})
}
export function add(data) {
return request({
url: '/process/work-sequence/add',
method: 'post',
data
})
}

View File

@ -0,0 +1,159 @@
/*
* @Author: gtz
* @Date: 2021-04-06 20:20:10
* @LastEditors: gtz
* @LastEditTime: 2021-04-07 16:14:47
* @Description: 工艺流程 api
*/
import request from '@/utils/request'
/**
* 获取工艺分页列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} data.enabled
* @param {string} data.key // 查询关键字
*/
export function list(data) {
return request({
url: '/process/process-flow/page',
method: 'post',
data
})
}
/**
* 获取工艺详情
* @param {string} id
*/
export function getInfo(data) {
return request({
url: '/process/process-flow/get',
method: 'post',
data
})
}
/**
* 删除工艺
* @param {string} id
*/
export function del(id) {
return request({
url: '/process/process-flow/delete',
method: 'post',
data: { id }
})
}
/**
* 更新工艺
* @param {object} data
* @param {number} data.bomId
* @param {string} data.code
* @param {number} data.description
* @param {string} data.externalCode
* @param {number} data.id
* @param {string} data.name
* @param {number} data.productId
* @param {number} data.remark
*/
export function update(data) {
return request({
url: '/process/process-flow/update',
method: 'post',
data
})
}
/**
* 获取工艺
* @param {object} data
* @param {number} data.bomId
* @param {string} data.code
* @param {number} data.description
* @param {string} data.externalCode
* @param {number} data.id
* @param {string} data.name
* @param {number} data.productId
* @param {number} data.remark
*/
export function add(data) {
return request({
url: '/process/process-flow/add',
method: 'post',
data
})
}
/**
* 获取BOM列表
*/
export function getBom() {
return request({
url: '/process/process-flow/bomList',
method: 'POST'
})
}
/**
* 启停工艺
* @param {object} data
* @param {number} data.enabled
* @param {number} data.id
*/
export function toggleEnabled(data) {
return request({
url: '/process/process-flow/enabled',
method: 'POST',
data
})
}
/**
* 生成工艺编码
*/
export function getCode() {
return request({
url: '/process/process-flow/getCode',
method: 'post'
})
}
/**
* 获取产品列表
*/
export function getProductList() {
return request({
url: '/basic/product/page',
method: 'POST',
data: {
current: 1,
size: 999
}
})
}
/**
* 获取工序列表
*/
export function getWorkSequenceList(data) {
return request({
url: '/process/work-sequence-equipment-type/getList',
method: 'POST',
data
})
}
/**
* 新增/删除/更新 工艺下的工序设备类型
*/
export function modifyWorkSequence(data) {
return request({
url: '/process/work-sequence-equipment-type/update',
method: 'POST',
data
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-02-01 10:58:22
* @Description:
*/
import request from '@/utils/request'
export function alarmInfoList(data) { // 获取报警信息信息列表
return request({
url: '/basic/alarm/page',
method: 'post',
data
})
}
export function alarmInfoDetail(id) { // 获取报警信息信息单条数据
return request({
url: '/basic/alarm/get',
method: 'post',
data: { id }
})
}
export function alarmInfoUpdate(data) { // 更新报警信息信息单条数据
return request({
url: '/basic/alarm/update',
method: 'post',
data
})
}
export function alarmInfoAdd(data) { // 新增报警信息信息单条数据
return request({
url: '/basic/alarm/add',
method: 'post',
data
})
}
export function alarmInfoCode() { // 获取报警信息信息code
return request({
url: '/basic/alarm/get-code',
method: 'post'
})
}
export function alarmInfoDelete(id) { // 删除报警信息信息单条数据
return request({
url: '/basic/alarm/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-16 15:44:55
* @Description:
*/
import request from '@/utils/request'
export function alarmLevelList(data) { // 获取报警等级信息列表
return request({
url: '/basic/alarm-grade/page',
method: 'post',
data
})
}
export function alarmLevelDetail(id) { // 获取报警等级信息单条数据
return request({
url: '/basic/alarm-grade/get',
method: 'post',
data: { id }
})
}
export function alarmLevelUpdate(data) { // 更新报警等级信息单条数据
return request({
url: '/basic/alarm-grade/update',
method: 'post',
data
})
}
export function alarmLevelAdd(data) { // 新增报警等级信息单条数据
return request({
url: '/basic/alarm-grade/add',
method: 'post',
data
})
}
export function alarmLevelCode() { // 获取报警等级信息code
return request({
url: '/basic/alarm-grade/get-code',
method: 'post'
})
}
export function alarmLevelDelete(id) { // 删除报警等级信息单条数据
return request({
url: '/basic/alarm-grade/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-16 15:45:10
* @Description:
*/
import request from '@/utils/request'
export function alarmTypeList(data) { // 获取报警类型信息列表
return request({
url: '/basic/alarm-type/page',
method: 'post',
data
})
}
export function alarmTypeDetail(id) { // 获取报警类型信息单条数据
return request({
url: '/basic/alarm-type/get',
method: 'post',
data: { id }
})
}
export function alarmTypeUpdate(data) { // 更新报警类型信息单条数据
return request({
url: '/basic/alarm-type/update',
method: 'post',
data
})
}
export function alarmTypeAdd(data) { // 新增报警类型信息单条数据
return request({
url: '/basic/alarm-type/add',
method: 'post',
data
})
}
export function alarmTypeCode() { // 获取报警类型信息code
return request({
url: '/basic/alarm-type/get-code',
method: 'post'
})
}
export function alarmTypeDelete(id) { // 删除报警类型信息单条数据
return request({
url: '/basic/alarm-type/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,143 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-03-18 10:42:27
* @Description:
*/
import request from '@/utils/request'
/**
* 获取区域信息列表
* @param {object} data
* @param {number} data.size
* @param {number} data.current
* @param {string} [data.name]
* @param {number} [data.enabled]
* @param {number|string} [data.cacheId]
*/
export function list(data) {
return request({
url: '/basic/area/page',
method: 'post',
data
})
}
/**
* 获取区域信息单条数据
* @param {number|string} id
*/
export function detail(id) {
return request({
url: '/basic/area/get',
method: 'post',
data: { id }
})
}
/**
* 更新区域信息单条数据
* @param {object} data
* @param {number|string} data.id
* @param {number|string} data.cacheId
* @param {string} data.name
* @param {string} data.code
* @param {string} [data.enName]
* @param {number} [data.enabled]
*/
export function update(data) {
return request({
url: '/basic/area/update',
method: 'post',
data
})
}
/**
* 新增区域信息单条数据
* @param {object} data
* @param {number|string} [data.id]
* @param {number|string} data.cacheId
* @param {string} data.code
* @param {string} data.name
* @param {string} [data.enName]
* @param {number} [data.enabled]
*/
export function add(data) {
return request({
url: '/basic/area/add',
method: 'post',
data
})
}
/**
* 获取区域code
*/
export function getCode() {
return request({
url: '/basic/area/get-code',
method: 'post'
})
}
/**
* 删除区域单条数据
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/area/delete',
method: 'post',
data: { id }
})
}
/**
* 启停区域, 1: enable, 0: disable
* @param {object} data
* @param {number} data.id
* @param {number} data.enabled
*/
export function toggleEnable(data) {
return request({
url: '/basic/area/enabled',
method: 'post',
data
})
}
/**
* 分页获取区域列表
* @param {object} data
* @param {number} data.size
* @param {number} data.current
* @param {string} [data.name]
* @param {number} [data.enabled]
* @param {string} [data.code]
*/
export function getCacheList(data) {
return request({
url: '/basic/cache/page',
method: 'post',
data
})
}
/**
* 获取区域里的库位信息分页获取
* @param: {object} data
* @param: {number} data.areaId
* @param: {number} data.current
* @param: {number} data.size
* @param: {number} [data.enabled]
* @param: {string} [data.name]
*/
export function getLocations(data) {
return request({
url: '/basic/stock/pageOfArea',
method: 'post',
data
})
}

View File

@ -0,0 +1,25 @@
/*
* @Author: lb
* @Date: 2022-03-10 11:00:00
* @LastEditors: lb
* @LastEditTime: 2022-03-10 11:00:00
* @Description: 缓存区页面的库位信息接口
*/
import request from '@/utils/request'
/**
*
* @param { object } data
* @property cacheId current enabled name size
* @requires cacheId
* @requires current
* @requires size
* @returns
*/
export function cacheStocksList(data) { // 获取缓存区的库位信息列表
return request({
url: '/basic/stock/listOfCache',
method: 'post',
data
})
}

View File

@ -0,0 +1,132 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-03-18 15:31:32
* @Description:
*/
import request from '@/utils/request'
/**
* 分页获取缓存区列表
* @param {object} data
* @param {number} data.size
* @param {number} data.current
* @param {string} [data.name]
* @param {number} [data.enabled]
* @param {string} [data.code]
*/
export function list(data) {
return request({
url: '/basic/cache/page',
method: 'post',
data
})
}
/**
* 获取缓存区信息单条数据
* @param {number|string} id
*/
export function detail(id) {
return request({
url: '/basic/cache/get',
method: 'post',
data: { id }
})
}
/**
* 更新缓存区信息单条数据
* @param {object} data
* @param {number|string} data.id
* @param {string} data.code
* @param {string} data.name
* @param {string} [data.abbr]
* @param {string} [data.enName]
* @param {string} [data.description]
* @param {string} [data.remark]
* @param {number} [data.stockNumber]
* @param {number} [data.enabled]
*/
export function update(data) {
return request({
url: '/basic/cache/update',
method: 'post',
data
})
}
/**
* 新增缓存区信息单条数据
* @param {object} data
* @param {number|string} [data.id]
* @param {string} data.code
* @param {string} data.name
* @param {string} [data.abbr]
* @param {string} [data.enName]
* @param {string} [data.description]
* @param {string} [data.remark]
* @param {number} [data.stockNumber]
* @param {number} [data.enabled]
*/
export function add(data) {
return request({
url: '/basic/cache/add',
method: 'post',
data
})
}
/**
* 获取缓存区信息code
*/
export function getCode() {
return request({
url: '/basic/cache/get-code',
method: 'post'
})
}
/**
* 删除缓存区信息单条数据
* @param {number|string} id
*/
export function del(id) {
return request({
url: '/basic/cache/delete',
method: 'post',
data: { id }
})
}
/**
* 启停缓存区
* @param {object} data
* @param {number} data.id
* @param {number} data.enabled
*/
export function toggleEnabled(data) {
return request({
url: '/basic/cache/enabled',
method: 'post',
data
})
}
/**
* 获取缓存区里的库位信息分页获取
* @param {object} data
* @param {number} data.cacheId
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.name]
*/
export function getLocations(data) {
return request({
url: '/basic/stock/pageOfCache',
method: 'post',
data
})
}

View File

@ -0,0 +1,41 @@
/*
* @Author: lb
* @Date: 2022-03-23 11:40:00
* @LastEditors: lb
* @LastEditTime: 2022-03-23 11:40:00
* @Description: 库存统计 的后端接口
*/
import request from '@/utils/request'
/**
* 获取半成品库存分页仓储信息
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.cacheId]
* @param {number} [data.enabled]
*/
export function list(data) {
return request({
url: '/stock/SemiFinished/page',
method: 'post',
data
})
}
/**
* 分页获取缓存区列表
* @param {object} data
* @param {number} data.size
* @param {number} data.current
* @param {string} [data.name]
* @param {number} [data.enabled]
* @param {string} [data.code]
*/
export function getCaches(data) {
return request({
url: '/basic/cache/page',
method: 'post',
data
})
}

View File

@ -0,0 +1,101 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-03-18 16:40:00
* @Description:
*/
import request from '@/utils/request'
export function list(data) { // 获取库位信息列表 deprecated
return request({
url: '/basic/stock/page',
method: 'post',
data
})
}
/**
* 获取库位信息单条数据
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/stock/get',
method: 'post',
data: { id }
})
}
/**
* 更新库位信息单条数据
* @param {object} data
* @param {number|string} data.id
* @param {number|string} data.areaId
* @param {string} data.code
* @param {string} [data.anotherName]
* @param {string} [data.place]
* @param {string} [data.remark]
*/
export function update(data) {
return request({
url: '/basic/stock/update',
method: 'post',
data
})
}
/**
* 新增库位信息单条数据
* @param {object} data
* @param {number|string} [data.id]
* @param {number|string} data.areaId
* @param {string} data.code
* @param {string} data.name
* @param {string} [data.anotherName]
* @param {string} [data.place]
* @param {string} [data.remark]
*/
export function add(data) {
return request({
url: '/basic/stock/add',
method: 'post',
data
})
}
/**
* 获取库位信息code
*/
export function getCode() {
return request({
url: '/basic/stock/get-code',
method: 'post'
})
}
/**
* 删除库位信息单条数据
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/stock/delete',
method: 'post',
data: { id }
})
}
/**
* 更改区域/缓存区里的库位状态
* @param {object} data
* @param {number} data.id
* @param {number} data.enabled
*/
export function toggleLocationStatus(data) {
return request({
url: '/basic/stock/enabled',
method: 'post',
data
})
}

View File

@ -0,0 +1,143 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-03-18 10:28:58
* @Description:
*/
import request from '@/utils/request'
/**
* 获取货架信息列表
* @param {object} data
* @param {number} data.size 必要
* @param {number} data.current 必要
* @param {string} [data.name]
* @param {number} [data.enabled]
*/
export function list(data) {
return request({
url: '/basic/shelf/page',
method: 'post',
data
})
}
/**
* 获取货架信息单条数据
* @param {number|string} id
*/
export function detail(id) {
return request({
url: '/basic/shelf/get',
method: 'post',
data: { id }
})
}
/**
* 更新货架信息单条数据
* @param {object} data
* @param {number|string} data.id
* @param {string} data.code
* @param {string} data.anotherCode
* @param {string} data.name
* @param {number} data.enabled
* @param {number} data.dicDataId
*/
export function update(data) {
return request({
url: '/basic/shelf/update',
method: 'post',
data
})
}
/**
* 新增货架信息单条数据
* @param {object} data
* @param {number|string} [data.id]
* @param {string} data.code
* @param {string} data.anotherCode
* @param {string} data.name
* @param {number} data.enabled
* @param {number} data.dicDataId
*/
export function add(data) {
return request({
url: '/basic/shelf/add',
method: 'post',
data
})
}
/**
* 获取货架信息code
*/
export function getCode() {
return request({
url: '/basic/shelf/get-code',
method: 'post'
})
}
/**
* 删除货架信息单条数据
* @param {number} id
*/
export function del(id) { //
return request({
url: '/basic/shelf/delete',
method: 'post',
data: { id }
})
}
/**
* 启停货架
* @param {object} data
* @param {number|string} data.id
* @param {number} data.enabled
*/
export function toggleEnabled(data) {
return request({
url: '/basic/shelf/enabled',
method: 'post',
data
})
}
/**
* 获取分页区域信息列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {string} [data.name]
* @param {number} [data.cacheId]
* @param {number} [data.enabled]
*/
export function getAreaList(data) {
return request({
url: '/basic/area/page',
method: 'post',
data
})
}
/**
* 分页获取字典类型列表
* @param {object} data
* @param {number|string} data.dictTypeId
* @param {number} data.size
* @param {number} data.current
* @param {string} [data.dataCode]
* @param {number} [data.dataName]
* @param {number} [data.enabled]
*/
export function getDictListByType(data) {
return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data
})
}

View File

@ -0,0 +1,195 @@
/*
* @Author: lb
* @Date: 2022-03-23 14:40:00
* @LastEditors: lb
* @LastEditTime: 2022-03-23 14:40:00
* @Description: 出入库操作 的后端接口
*/
import request from '@/utils/request'
/**
* 获取分页仓储出入库信息
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.operateType]
* @param {number} [data.shelfCode]
* @param {number} [data.enabled]
*/
export function list(data) {
return request({
url: '/stock/SemiFinishedLog/page',
method: 'post',
data
})
}
/**
* 删除某条操作记录
* @param {number} id
*/
export function del(id) {
return request({
url: '/stock/SemiFinishedLog/delete',
method: 'post',
data: { id }
})
}
/**
* 新增出入库记录
* @param {object} data
* @param {object} data.id
* @param {object} data.operateType
* @param {object} data.shelfId
* @param {object} data.stockId
* @param {object} data.semifinishedProductId
* @param {object} data.num
* @param {object} data.source
* @param {object} [data.remark]
*/
export function add(data) {
const url = '/stock/SemiFinishedLog' + (data.operateType === 1 ? '/output' : '/input')
return request({
url,
method: 'post',
data
})
}
/**
* 获取出入库信息单条数据 ==> 后端没有对应接口
* @param {number|string} id
*/
export function detail(id) {
return request({
url: '/stock/SemiFinishedLog/get',
method: 'post',
data: { id }
})
}
/**
* 更新出入库信息单条数据
* @param {object} data
* @param {number|string} data.id
* @param {number|string} data.semifinishedProductId
* @param {number|string} data.shelfId
* @param {number|string} data.stockId
* @param {number} data.operateType
* @param {number} data.num
* @param {number} data.source
* @param {string} [data.remark]
*/
export function update(data) {
return request({
url: '/stock/SemiFinishedLog/update',
method: 'post',
data
})
}
/**
* 分页获取货架信息
* @param {object} data
* @param {number} data.size
* @param {number} data.current
* @param {string} [data.name]
* @param {number} [data.enabled]
*/
export function getShelfList(data) {
return request({
url: '/basic/shelf/page',
method: 'post',
data
})
}
/**
* 分页获取缓存区列表
* @param {object} data
* @param {number} data.size
* @param {number} data.current
* @param {string} [data.name]
* @param {number} [data.enabled]
* @param {string} [data.code]
*/
export function getCacheList(data) {
return request({
url: '/basic/cache/page',
method: 'post',
data
})
}
/**
* 分页获取区域信息列表
* @param {object} data
* @param {number} data.size
* @param {number} data.current
* @param {string} [data.name]
* @param {number} [data.enabled]
* @param {number|string} [data.cacheId]
*/
export function getAreaList(data) {
return request({
url: '/basic/area/page',
method: 'post',
data
})
}
/**
* 分页获取库位信息列表, 如果data里有cacheId则按照缓存区搜索如果有areaId就按照区域搜索
* @param {object} data
* @param {number} data.size
* @param {number} data.current
* @param {string} [data.name]
* @param {number} [data.enabled]
* @param {number|string} [data.cacheId]
* @param {number|string} [data.areaId]
*/
export function getStockList(data) {
const url = '/basic/stock' + (data.cacheId ? '/pageOfCache' : '/pageOfArea')
return request({
url,
method: 'post',
data
})
}
/**
* 分页获取产品池列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {string} [data.key]
* @param {number} [data.enabled]
*/
export function getProductsList(data) {
// 获取产品池列表
return request({
url: '/basic/product/page',
method: 'post',
data
})
}
/**
* 获取可用库位
* @param {object} data
* @param {number} [data.cacheId]
* @param {number} [data.areaId]
* @param {number} data.operateType
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
*/
export function getAvailableStocks(data) {
const url = '/basic/stock/availableStock'
return request({
url,
method: 'post',
data
})
}

View File

@ -0,0 +1,70 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-07-21 14:29:10
* @Description:
*/
import request from '@/utils/request'
export function storageBoxList(data) { // 获取存储箱列表
return request({
url: '/basic/storage-tank/page',
method: 'post',
data
})
}
export function storageBoxDetail(id) { // 获取存储箱单条数据
return request({
url: '/basic/storage-tank/get',
method: 'post',
data: { id }
})
}
export function storageBoxUpdate(data) { // 更新存储箱单条数据
return request({
url: '/basic/storage-tank/update',
method: 'post',
data
})
}
export function storageBoxAdd(data) { // 新增存储箱单条数据
return request({
url: '/basic/storage-tank/add',
method: 'post',
data
})
}
export function storageBoxCode() { // 获取存储箱code
return request({
url: '/basic/storage-tank/get-code',
method: 'post'
})
}
export function storageBoxDelete(id) { // 删除存储箱单条数据
return request({
url: '/basic/storage-tank/delete',
method: 'post',
data: { id }
})
}
export function PositionDetailInfoAdd(data) { // 新增存储箱地址单条数据
return request({
url: '/basic/storage-tank-site/add',
method: 'post',
data
})
}
export function PositionDetailInfoList(data) { // 获取存储箱地址列表
return request({
url: '/basic/storage-tank-site/page',
method: 'post',
data
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-29 10:38:02
* @Description:
*/
import request from '@/utils/request'
export function CodeRulesList(data) { // 获取编码规则列表
return request({
url: '/basic/code-rule/page',
method: 'post',
data
})
}
export function CodeRulesDetail(id) { // 获取编码规则单条数据
return request({
url: '/basic/code-rule/get',
method: 'post',
data: { id }
})
}
export function CodeRulesUpdate(data) { // 更新编码规则单条数据
return request({
url: '/basic/code-rule/update',
method: 'post',
data
})
}
export function CodeRulesAdd(data) { // 新增编码规则单条数据
return request({
url: '/basic/code-rule/add',
method: 'post',
data
})
}
export function CodeRulesCode() { // 获取编码规则code
return request({
url: '/basic/code-rule/get-code',
method: 'post'
})
}
export function CodeRulesDelete(id) { // 删除编码规则单条数据
return request({
url: '/basic/code-rule/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-02-02 11:08:34
* @Description:
*/
import request from '@/utils/request'
export function CodeRulesAttrList(data) { // 获取编码规则属性列表
return request({
url: '/basic/code-rule-arrt/page',
method: 'post',
data
})
}
export function CodeRulesAttrDetail(id) { // 获取编码规则属性单条数据
return request({
url: '/basic/code-rule-arrt/get',
method: 'post',
data: { id }
})
}
export function CodeRulesAttrUpdate(data) { // 更新编码规则属性单条数据
return request({
url: '/basic/code-rule-arrt/update',
method: 'post',
data
})
}
export function CodeRulesAttrAdd(data) { // 新增编码规则属性单条数据
return request({
url: '/basic/code-rule-arrt/add',
method: 'post',
data
})
}
export function CodeRulesAttrCode() { // 获取编码规则属性code
return request({
url: '/basic/code-rule-arrt/get-code',
method: 'post'
})
}
export function CodeRulesAttrDelete(id) { // 删除编码规则属性单条数据
return request({
url: '/basic/code-rule-arrt/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,99 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-04-21 19:55:30
* @Description:
*/
import request from '@/utils/request'
/**
* 获取分页客户列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.code] 客户编码
* @param {string} [data.name] 客户名称
*/
export function list(data) {
return request({
url: '/basic/customer/page',
method: 'post',
data
})
}
/**
* 获取客户详情
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/customer/get',
method: 'post',
data: { id }
})
}
/**
* 更新客户
* @param {object} data
* @param {number} data.id
* @param {string} data.name
* @param {string} data.code
* @param {string} data.email
* @param {string} data.address
* @param {string} data.contact
* @param {string} data.telephone
* @param {string} data.description
*/
export function update(data) {
return request({
url: '/basic/customer/update',
method: 'post',
data
})
}
/**
* 新增客户
* @param {object} data
* @param {number} [data.id]
* @param {string} data.name
* @param {string} data.code
* @param {string} data.email
* @param {string} data.address
* @param {string} data.contact
* @param {string} data.telephone
* @param {string} data.description
*/
export function add(data) {
return request({
url: '/basic/customer/add',
method: 'post',
data
})
}
/**
* 获取客户code
*/
export function getCode() {
return request({
url: '/basic/customer/get-code',
method: 'post'
})
}
/**
* 删除客户
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/customer/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,102 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-04-21 19:56:00
* @Description:
*/
import request from '@/utils/request'
/**
* 获取分页供应商
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {string} [data.name]
* @param {string} [data.code]
* @param {number} [data.enabled]
*/
export function list(data) {
return request({
url: '/basic/supplier/page',
method: 'post',
data
})
}
/**
* 获取供应商详情
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/supplier/get',
method: 'post',
data: { id }
})
}
/**
* 更新供应商
* @param {object} data
* @param {number} data.id
* @param {string} data.name
* @param {string} data.code
* @param {string} data.email
* @param {string} data.contact
* @param {string} data.address
* @param {string} data.category
* @param {string} data.telephone
* @param {string} data.description
*/
export function update(data) {
// 更新供应商单条数据
return request({
url: '/basic/supplier/update',
method: 'post',
data
})
}
/**
* 新增供应商
* @param {object} data
* @param {number} [data.id]
* @param {string} data.name
* @param {string} data.code
* @param {string} data.email
* @param {string} data.contact
* @param {string} data.address
* @param {string} data.category
* @param {string} data.telephone
* @param {string} data.description
*/
export function add(data) {
return request({
url: '/basic/supplier/add',
method: 'post',
data
})
}
/**
* 获取供应商code
*/
export function getCode() {
return request({
url: '/basic/supplier/get-code',
method: 'post'
})
}
/**
* 删除供应商
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/supplier/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-03-12 15:40:20
* @Description:
*/
import request from '@/utils/request'
export function equipmentAlarmList(data) { // 获取设备报警列表
return request({
url: '/basic/equipment-alarm/page',
method: 'post',
data
})
}
export function equipmentAlarmDetail(id) { // 获取设备报警单条数据
return request({
url: '/basic/equipment-alarm/get',
method: 'post',
data: { id }
})
}
export function equipmentAlarmUpdate(data) { // 更新设备报警单条数据
return request({
url: '/basic/equipment-alarm/update',
method: 'post',
data
})
}
export function equipmentAlarmAdd(data) { // 新增设备报警单条数据
return request({
url: '/basic/equipment-alarm/add',
method: 'post',
data
})
}
export function equipmentAlarmCode() { // 获取设备报警code
return request({
url: '/basic/equipment-alarm/get-code',
method: 'post'
})
}
export function equipmentAlarmDelete(id) { // 删除设备报警单条数据
return request({
url: '/basic/equipment-alarm/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-02-02 16:00:23
* @Description:
*/
import request from '@/utils/request'
export function equipmentAlarmAttrList(data) { // 获取设备报警列表
return request({
url: '/basic/equipment-alarm-type/page',
method: 'post',
data
})
}
export function equipmentAlarmAttrDetail(id) { // 获取设备报警单条数据
return request({
url: '/basic/equipment-alarm-type/get',
method: 'post',
data: { id }
})
}
export function equipmentAlarmAttrUpdate(data) { // 更新设备报警单条数据
return request({
url: '/basic/equipment-alarm-type/update',
method: 'post',
data
})
}
export function equipmentAlarmAttrAdd(data) { // 新增设备报警单条数据
return request({
url: '/basic/equipment-alarm-type/add',
method: 'post',
data
})
}
export function equipmentAlarmAttrCode() { // 获取设备报警code
return request({
url: '/basic/equipment-alarm-type/get-code',
method: 'post'
})
}
export function equipmentAlarmAttrDelete(id) { // 删除设备报警单条数据
return request({
url: '/basic/equipment-alarm-type/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,63 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: zwq
* @LastEditTime: 2021-06-10 15:22:55
* @Description:
*/
import request from '@/utils/request'
export function equipmentDetectAreaList(data) { // 获取设备区域列表
return request({
url: '/basic/detect-distribution-area/page',
method: 'post',
data
})
}
export function equipmentDetectTreeList() { // 获取检测设备树形图
return request({
url: '/basic/detect-distribution-area/detect-area',
method: 'post'
})
}
export function equipmentDetectAreaDetail(id) { // 获取设备区域单条数据
return request({
url: '/basic/detect-distribution-area/get',
method: 'post',
data: { id }
})
}
export function equipmentDetectAreaUpdate(data) { // 更新设备区域单条数据
return request({
url: '/basic/detect-distribution-area/update',
method: 'post',
data
})
}
export function equipmentDetectAreaAdd(data) { // 新增设备区域单条数据
return request({
url: '/basic/detect-distribution-area/add',
method: 'post',
data
})
}
export function equipmentDetectAreaCode() { // 获取设备区域code
return request({
url: '/basic/detect-distribution-area/get-code',
method: 'post'
})
}
export function equipmentDetectAreaDelete(id) { // 删除设备区域单条数据
return request({
url: '/basic/detect-distribution-area/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,56 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: zwq
* @LastEditTime: 2021-05-28 09:44:01
* @Description:
*/
import request from '@/utils/request'
export function equipmentDetectAreaAttrList(data) { // 获取设备关联列表
return request({
url: '/basic/detect-equ-area-re/page',
method: 'post',
data
})
}
export function equipmentDetectAreaAttrDetail(id) { // 获取设备关联单条数据
return request({
url: '/basic/detect-equ-area-re/get',
method: 'post',
data: { id }
})
}
export function equipmentDetectAreaAttrUpdate(data) { // 更新设备关联单条数据
return request({
url: '/basic/detect-equ-area-re/update',
method: 'post',
data
})
}
export function equipmentDetectAreaAttrAdd(data) { // 新增设备关联单条数据
return request({
url: '/basic/detect-equ-area-re/add',
method: 'post',
data
})
}
export function equipmentDetectAreaAttrCode() { // 获取设备关联code
return request({
url: '/basic/detect-equ-area-re/get-code',
method: 'post'
})
}
export function equipmentDetectAreaAttrDelete(id) { // 删除设备关联单条数据
return request({
url: '/basic/detect-equ-area-re/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,56 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: zwq
* @LastEditTime: 2021-05-21 10:26:40
* @Description:
*/
import request from '@/utils/request'
export function equipmentDetectAreaSystemList(data) { // 获取设备关联列表
return request({
url: '/basic/detect-area-system/page',
method: 'post',
data
})
}
export function equipmentDetectAreaSystemDetail(id) { // 获取设备关联单条数据
return request({
url: '/basic/detect-area-system/get',
method: 'post',
data: { id }
})
}
export function equipmentDetectAreaSystemUpdate(data) { // 更新设备关联单条数据
return request({
url: '/basic/detect-area-system/update',
method: 'post',
data
})
}
export function equipmentDetectAreaSystemAdd(data) { // 新增设备关联单条数据
return request({
url: '/basic/detect-area-system/add',
method: 'post',
data
})
}
export function equipmentDetectAreaSystemCode() { // 获取设备关联code
return request({
url: '/basic/detect-area-system/get-code',
method: 'post'
})
}
export function equipmentDetectAreaSystemDelete(id) { // 删除设备关联单条数据
return request({
url: '/basic/detect-area-system/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,56 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: zwq
* @LastEditTime: 2021-05-28 10:47:41
* @Description:
*/
import request from '@/utils/request'
export function DetectAreaSystemAttrList(data) { // 获取设备关联列表
return request({
url: '/basic/detect-equipment-area/page',
method: 'post',
data
})
}
export function DetectAreaSystemAttrDetail(id) { // 获取设备关联单条数据
return request({
url: '/basic/detect-equipment-area/get',
method: 'post',
data: { id }
})
}
export function DetectAreaSystemAttrUpdate(data) { // 更新设备关联单条数据
return request({
url: '/basic/detect-equipment-area/update',
method: 'post',
data
})
}
export function DetectAreaSystemAttrAdd(data) { // 新增设备关联单条数据
return request({
url: '/basic/detect-equipment-area/add',
method: 'post',
data
})
}
export function DetectAreaSystemAttrCode() { // 获取设备关联code
return request({
url: '/basic/detect-equipment-area/get-code',
method: 'post'
})
}
export function DetectAreaSystemAttrDelete(id) { // 删除设备关联单条数据
return request({
url: '/basic/detect-equipment-area/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,56 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: zwq
* @LastEditTime: 2021-04-08 15:56:09
* @Description:
*/
import request from '@/utils/request'
export function equipmentDetectParamList(data) { // 获取设备参数列表
return request({
url: '/basic/detect-equipment-param/page',
method: 'post',
data
})
}
export function equipmentDetectParamDetail(id) { // 获取设备参数单条数据
return request({
url: '/basic/detect-equipment-param/get',
method: 'post',
data: { id }
})
}
export function equipmentDetectParamUpdate(data) { // 更新设备参数单条数据
return request({
url: '/basic/detect-equipment-param/update',
method: 'post',
data
})
}
export function equipmentDetectParamAdd(data) { // 新增设备参数单条数据
return request({
url: '/basic/detect-equipment-param/add',
method: 'post',
data
})
}
export function equipmentDetectParamCode() { // 获取设备参数code
return request({
url: '/basic/detect-equipment-param/get-code',
method: 'post'
})
}
export function equipmentDetectParamDelete(id) { // 删除设备参数单条数据
return request({
url: '/basic/detect-equipment-param/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-05-21 10:03:53
* @Description:
*/
import request from '@/utils/request'
export function equipmentDetectSystemList(data) { // 获取检测系统列表
return request({
url: '/basic/detect-system/page',
method: 'post',
data
})
}
export function equipmentDetectSystemDetail(id) { // 获取检测系统单条数据
return request({
url: '/basic/detect-system/get',
method: 'post',
data: { id }
})
}
export function equipmentDetectSystemUpdate(data) { // 更新检测系统单条数据
return request({
url: '/basic/detect-system/update',
method: 'post',
data
})
}
export function equipmentDetectSystemAdd(data) { // 新增检测系统单条数据
return request({
url: '/basic/detect-system/add',
method: 'post',
data
})
}
export function equipmentDetectSystemCode() { // 获取检测系统code
return request({
url: '/basic/detect-system/get-code',
method: 'post'
})
}
export function equipmentDetectSystemDelete(id) { // 删除检测系统单条数据
return request({
url: '/basic/detect-system/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,158 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: lb
* @LastEditTime: 2022-04-19 11:59:29
* @Description:
*/
import request from '@/utils/request'
/**
* 获取分页设备分组列表
* @param {object} data
* @param {string} [data.name]
* @param {string} [data.code]
* @param {number} [data.enabled]
* @param {number} data.current
* @param {number} data.size
*/
export function list(data) {
return request({
url: '/basic/equipment-group/page',
method: 'post',
data
})
}
/**
* 根据id获取分组信息
* @param {number} id
* @returns
*/
export function detail(id) {
return request({
url: '/basic/equipment-group/get',
method: 'post',
data: { id }
})
}
/**
* 更新设备分组
* @param {object} data
* @param {number} data.id
* @param {string} data.code
* @param {string} data.name
* @param {string} [data.remark]
* @param {number} [data.typeId] 设备类型id
*/
export function update(data) {
return request({
url: '/basic/equipment-group/update',
method: 'post',
data
})
}
/**
* 新增设备分组
* @param {object} data
* @param {number} [data.id]
* @param {string} data.code
* @param {string} data.name
* @param {string} [data.remark]
* @param {number} [data.typeId] 设备类型id
*/
export function add(data) {
return request({
url: '/basic/equipment-group/add',
method: 'post',
data
})
}
/**
* 获取随机生成的设备编码
*/
export function getCode() {
return request({
url: '/basic/equipment-group/get-code',
method: 'post'
})
}
/**
* 删除设备分组
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/equipment-group/delete',
method: 'post',
data: { id }
})
}
/**
{
"current": 1,
"size": 10,
"enabled": 1,
"equipmentGroupId": "设备分组id",
}
*/
export function getWarningList(data) {
// 获取分组报警列表
return request({
url: '/basic/equipment-group-alarm/page',
method: 'post',
data
})
}
/**
* 添加一条分组报警
"alarmContent": " ",
"alarmGrade": " ",
"alarmType": " ",
"equipmentGroupId": 1,
"externalCode": " ",
"id": 1
*/
export function addWarning(data) {
return request({
url: '/basic/equipment-group-alarm/add',
method: 'post',
data
})
}
export function updateWarning(data) {
return request({
url: '/basic/equipment-group-alarm/update',
method: 'post',
data
})
}
/**
* 删除一条设备分组报警
*/
export function deleteWarning(id) {
return request({
url: '/basic/equipment-group-alarm/delete',
method: 'post',
data: { id }
})
}
export function getWarningCode() {
return request({
url: '/basic/equipment-group-alarm/get-code',
method: 'post',
data: {}
})
}

View File

@ -0,0 +1,291 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-04-18 10:40:01
* @Description:
*/
import request from '@/utils/request'
/**
* 获取设备分页列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {string} [data.code]
* @param {number} [data.enabled]
* @param {string} [data.name]
*/
export function list(data) {
return request({
url: '/basic/equipment/page',
method: 'post',
data
})
}
/**
* 获取设备单条数据
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/equipment/get',
method: 'post',
data: { id }
})
}
/**
* 更新设备信息
* @param {object} data
* @param {string} data.abbr 缩写
* @param {number} data.activiation 是否稼动率
* @param {string} data.code 设备编码
* @param {number} data.communication 是否通讯
* @param {number} data.controlStatus 控制状态(默认0; 0-本地1-远程)
* @param {number} data.debugPeriod 调试周期天
* @param {string} data.debugTime 调试日期(datetime的string)
* @param {string} data.description 设备描述
* @param {number} data.eapVersion EAP版本
* @param {string} data.enName 英文名称
* @param {string} data.enterTime 进厂日期(datetime的string)
* @param {string} data.equipmentArea 设备区域
* @param {number} data.equipmentId 设备id
* @param {number} data.equipmentType 设备类型
* @param {number} data.estatus
* @param {number} data.fileId 文件id
* @param {number} data.groupId 设备分组id
* @param {number} data.id 设备id
* @param {string} data.intellectualProperty 知识产权
* @param {string} data.ip 设备ip地址
* @param {number} data.maintenanceCycle 保养周期
* @param {number} data.maintenanceTime 保养持续时间小时
* @param {string} data.manufacturer 生产厂商
* @param {string} data.name 设备名称
* @param {number} data.numberOfCavities 腔体数量
* @param {string} data.plcVersion PLC版本
* @param {string} data.port 端口号
* @param {string} data.processingQuantityPerCavity 每腔加工数量
* @param {string} data.productionTime 生产日期(datetime的string)
* @param {number} data.rangeNumber 范围号
* @param {string} data.remark 备注
* @param {string} data.spec 规格描述
*/
export function update(data) {
return request({
url: '/basic/equipment/update',
method: 'post',
data
})
}
/**
* 更新设备信息
* @param {object} data
* @param {string} data.abbr 缩写
* @param {number} data.activiation 是否稼动率
* @param {string} data.code 设备编码
* @param {number} data.communication 是否通讯
* @param {number} data.controlStatus 控制状态(默认0; 0-本地1-远程)
* @param {number} data.debugPeriod 调试周期天
* @param {string} data.debugTime 调试日期(datetime的string)
* @param {string} data.description 设备描述
* @param {number} data.eapVersion EAP版本
* @param {string} data.enName 英文名称
* @param {string} data.enterTime 进厂日期(datetime的string)
* @param {string} data.equipmentArea 设备区域
* @param {number} data.equipmentId 设备id
* @param {number} data.equipmentType 设备类型
* @param {number} data.estatus
* @param {number} data.fileId 文件id
* @param {number} data.groupId 设备分组id
* @param {number} data.id 设备id
* @param {string} data.intellectualProperty 知识产权
* @param {string} data.ip 设备ip地址
* @param {number} data.maintenanceCycle 保养周期
* @param {number} data.maintenanceTime 保养持续时间小时
* @param {string} data.manufacturer 生产厂商
* @param {string} data.name 设备名称
* @param {number} data.numberOfCavities 腔体数量
* @param {string} data.plcVersion PLC版本
* @param {number} data.port 端口号
* @param {number} data.processingQuantityPerCavity 每腔加工数量
* @param {string} data.productionTime 生产日期(datetime的string)
* @param {number} data.rangeNumber 范围号
* @param {string} data.remark 备注
* @param {string} data.spec 规格描述
*/
export function add(data) {
return request({
url: '/basic/equipment/add',
method: 'post',
data
})
}
export function getCode() {
// 获取设备信息code
return request({
url: '/basic/equipment/get-code',
method: 'post'
})
}
/**
* 删除设备信息
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/equipment/delete',
method: 'post',
data: { id }
})
}
/** ---------------- 设备文件 : ------------------ */
/**
* 平台设备文件信息管理接口 - 保存设备文件
* @param {object} data
* @param {number} data.id
* @param {number} data.equipmentId
* @param {number} data.fileId
* @param {string} data.fileName
* @param {string} data.fileUrl
* @param {string} data.typeCode
*/
export function saveFile(data) {
return request({
url: '/basic/equipment-file/update-file',
method: 'post',
data
})
}
/**
* 平台设备文件信息管理接口 - 获取设备文件
* @param {object} data
* @param {number} data.id
* @param {number} data.equipmentId
* @param {number} data.fileId
* @param {string} data.fileName
* @param {string} data.fileUrl
* @param {string} data.typeCode
*/
export function getFile(data) {
return request({
url: '/basic/equipment-file/get-by-param',
method: 'post',
data
})
}
/**
* 根据id删除某个服务器上的文件
* @param {number} id
*/
export function delFile(id) {
return request({
url: '/basic/equipment-file/delete',
method: 'post',
data: { id }
})
}
/** ---------------- 设备类型 : ------------------ */
/**
* 获取设备类型列表
* @param {object} data
* @param {number} data.size
* @param {number} data.current
* @param {string} [data.name]
* @param {string} [data.code]
* @param {number} [data.enabled]
*/
export function getEquipmentTypeList(data) {
return request({
url: '/basic/equipment-type/page',
method: 'post',
data
})
}
/** ---------------- 设备分组 : ------------------ */
/**
* 获取分页设备分组列表
* @param {object} data
* @param {string} [data.name]
* @param {string} [data.code]
* @param {number} [data.enabled]
* @param {number} data.current
* @param {number} data.size
*/
export function getEquipmentGroupList(data) {
return request({
url: '/basic/equipment-group/page',
method: 'post',
data
})
}
/** ---------------- 设备属性 : ------------------ */
/**
* 获取分页设备属性列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.equipmentId]
*/
export function getEquipmentAttributeList(data) {
return request({
url: '/basic/equipment-attr/page',
method: 'post',
data
})
}
/**
* 删除设备属性
* @param {number} id
*/
export function deleteEquipmentAttribute(id) {
return request({
url: '/basic/equipment-attr/delete',
method: 'post',
data: { id }
})
}
/**
* 获取分页供应商列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
*/
export function getSupplierList(data) {
return request({
url: '/basic/supplier/page',
method: 'post',
data
})
}
/**
* 导出设备信息
*/
export function exportEquipments(data) {
return request({
url: '/basic/equipment/export',
method: 'post',
data,
responseType: 'blob',
timeout: 60000
})
}

View File

@ -0,0 +1,92 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-04-19 9:00:52
* @Description:
*/
import request from '@/utils/request'
/**
* 获取分页设备属性列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.equipmentId]
*/
export function list(data) {
return request({
url: '/basic/equipment-attr/page',
method: 'post',
data
})
}
/**
* 获取设备属性
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/equipment-attr/get',
method: 'post',
data: { id }
})
}
/**
* 更新设备属性
* @param {object} data
* @param {number} data.id
* @param {string} data.attrName
* @param {string} data.attrValue
* @param {string} data.equipmentId
* @param {string} [data.remark]
*/
export function update(data) {
return request({
url: '/basic/equipment-attr/update',
method: 'post',
data
})
}
/**
* 新增设备属性
* @param {object} data
* @param {number} [data.id]
* @param {string} data.attrName
* @param {string} data.attrValue
* @param {string} data.equipmentId
* @param {string} [data.remark]
*/
export function add(data) {
return request({
url: '/basic/equipment-attr/add',
method: 'post',
data
})
}
/**
* 获取设备属性code
*/
export function getCode() {
return request({
url: '/basic/equipment-attr/get-code',
method: 'post'
})
}
/**
* 删除设备属性
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/equipment-attr/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,72 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-03-12 09:25:09
* @Description:
*/
import request from '@/utils/request'
export function equipmentLinkList(data) { // 获取连线设备列表
return request({
url: '/basic/connecting-device/page',
method: 'post',
data
})
}
export function equipmentLinkDetail(id) { // 获取连线设备单条数据
return request({
url: '/basic/connecting-device/get',
method: 'post',
data: { id }
})
}
export function equipmentLinkUpdate(data) { // 更新连线设备单条数据
return request({
url: '/basic/connecting-device/update',
method: 'post',
data
})
}
export function equipmentLinkAdd(data) { // 新增连线设备单条数据
return request({
url: '/basic/connecting-device/add',
method: 'post',
data
})
}
export function equipmentLinkCode() { // 获取连线设备code
return request({
url: '/basic/connecting-device/get-code',
method: 'post'
})
}
export function equipmentLinkDelete(id) { // 删除连线设备单条数据
return request({
url: '/basic/connecting-device/delete',
method: 'post',
data: { id }
})
}
export function equipmentLinkFileAdd(data) { // 连线设备上传
return request({
url: '/basic/connecting-device-file/update-file',
method: 'post',
data
})
}
export function getEquipmentLinkFile(data) { // 连线设备下载
return request({
url: '/basic/connecting-device-file/get-by-param',
method: 'post',
data
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-20 10:35:56
* @Description:
*/
import request from '@/utils/request'
export function equipmentLinkAttrList(data) { // 获取连线设备属性列表
return request({
url: '/basic/connecting-device-attr/page',
method: 'post',
data
})
}
export function equipmentLinkAttrDetail(id) { // 获取连线设备属性单条数据
return request({
url: '/basic/connecting-device-attr/get',
method: 'post',
data: { id }
})
}
export function equipmentLinkAttrUpdate(data) { // 更新连线设备属性单条数据
return request({
url: '/basic/connecting-device-attr/update',
method: 'post',
data
})
}
export function equipmentLinkAttrAdd(data) { // 新增连线设备属性单条数据
return request({
url: '/basic/connecting-device-attr/add',
method: 'post',
data
})
}
export function equipmentLinkAttrCode() { // 获取连线设备属性code
return request({
url: '/basic/connecting-device-attr/get-code',
method: 'post'
})
}
export function equipmentLinkAttrDelete(id) { // 删除连线设备属性单条数据
return request({
url: '/basic/connecting-device-attr/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,149 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: gtz
* @LastEditTime: 2022-07-28 20:45:12
* @Description:
*/
import request from '@/utils/request'
/**
* 获取分页设备类型列表
* @param {object} data
* @param {string} data.code
* @param {number} data.current
* @param {number} data.enabled
* @param {string} data.name
* @param {number} data.size
*/
export function list(data) {
return request({
url: '/basic/equipment-type/page',
method: 'post',
data
})
}
/**
* 获取设备类型
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/equipment-type/get',
method: 'post',
data: { id }
})
}
/**
* 更新设备类型
* @param {object} data
* @param {number} data.id
* @param {string} data.name
* @param {string} data.code
* @param {string} [data.remark]
*/
export function update(data) {
return request({
url: '/basic/equipment-type/update',
method: 'post',
data
})
}
/**
* 新增设备类型
* @param {object} data
* @param {number} [data.id]
* @param {string} data.name
* @param {string} data.code
* @param {string} [data.remark]
*/
export function add(data) {
return request({
url: '/basic/equipment-type/add',
method: 'post',
data
})
}
export function getCode() { // 获取设备类型code
return request({
url: '/basic/equipment-type/get-code',
method: 'post'
})
}
/**
* 删除设备类型
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/equipment-type/delete',
method: 'post',
data: { id }
})
}
export function listAll() { // 获取全部设备类型层级关系
return request({
url: '/basic/equipment-type/list-all',
method: 'post'
})
}
/**
* 保存设备类型文件
* @param {object} data
* @param {string} data.equipmentTypeId
* @param {number} data.id
* @param {string} data.fileId
* @param {string} data.fileName
* @param {string} data.fileUrl
* @param {string} data.typeCode
*/
export function equipmentTypeFileAdd(data) {
return request({
url: '/basic/equipment-type-file/update-file',
method: 'post',
data
})
}
/**
* 获取设备类型上传的文件列表
* @param {object} data
* @param {string} data.equipmentTypeId
* @param {number} [data.id]
* @param {string} [data.fileId]
* @param {string} [data.fileName]
* @param {string} [data.fileUrl]
* @param {string} [data.typeCode]
*/
export function getFileList(data) {
return request({
url: '/basic/equipment-type-file/get-by-param',
method: 'post',
data
})
}
/**
* 获取设备类型上传的文件列表
* @param {object} data
* @param {string} data.equipmentTypeId
* @param {number} [data.id]
* @param {string} [data.fileId]
* @param {string} [data.fileName]
* @param {string} [data.fileUrl]
* @param {string} [data.typeCode]
*/
export function delFile(data) {
return request({
url: '/basic/equipment-type-file/delete',
method: 'post',
data
})
}

View File

@ -0,0 +1,89 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-04-19 15:20:00
* @Description:
*/
import request from '@/utils/request'
/**
* 获取分页保养周期
* @param {object} data
* @param {number} data.current
* @param {number} data.enabled
* @param {number} data.size
*/
export function list(data) {
return request({
url: '/basic/maintenance-period/page',
method: 'post',
data
})
}
/**
* 获取保养周期
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/maintenance-period/get',
method: 'post',
data: { id }
})
}
/**
* 更新保养周期
* @param {object} data
* @param {number} data.id
* @param {string} data.code
* @param {string} data.maintenancePeriod
* @param {string} [data.remark]
*/
export function update(data) {
return request({
url: '/basic/maintenance-period/update',
method: 'post',
data
})
}
/**
* 新增保养周期
* @param {object} data
* @param {number} [data.id]
* @param {string} data.code
* @param {string} data.maintenancePeriod
* @param {string} [data.remark]
*/
export function add(data) {
return request({
url: '/basic/maintenance-period/add',
method: 'post',
data
})
}
/**
* 获取保养周期code
*/
export function getCode() {
return request({
url: '/basic/maintenance-period/get-code',
method: 'post'
})
}
/**
* 删除保养周期
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/maintenance-period/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,94 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-04-19 15:20:00
* @Description:
*/
import request from '@/utils/request'
/**
* 获取分页维修类型
* @param {object} data
* @param {string} [data.name]
* @param {string} [data.code]
* @param {number} [data.enabled]
* @param {number} data.current
* @param {number} data.size
*/
export function list(data) {
return request({
url: '/basic/maintenance-type/page',
method: 'post',
data
})
}
/**
* 获取维修类型详情
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/maintenance-type/get',
method: 'post',
data: { id }
})
}
/**
* 更新维修类型
* @param {object} data
* @param {number} data.id
* @param {string} data.name
* @param {string} data.code
* @param {string} [data.enName]
* @param {string} [data.remark]
*/
export function update(data) {
return request({
url: '/basic/maintenance-type/update',
method: 'post',
data
})
}
/**
* 新增维修类型
* @param {object} data
* @param {number} [data.id]
* @param {string} data.name
* @param {string} data.code
* @param {string} [data.enName]
* @param {string} [data.remark]
*/
export function add(data) {
return request({
url: '/basic/maintenance-type/add',
method: 'post',
data
})
}
/**
* 获取维修类型code
* @returns
*/
export function getCode() {
return request({
url: '/basic/maintenance-type/get-code',
method: 'post'
})
}
/**
* 删除维修类型
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/maintenance-type/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,117 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: lb
* @LastEditTime: 2022-04-20 9:20:00
* @Description:
*/
import request from '@/utils/request'
/**
* 获取备品备件分页列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {string} [data.key]
* @param {number} [data.enabled]
*/
export function list(data) {
return request({
url: '/basic/tool-spare-part/page',
method: 'post',
data
})
}
/**
* 获取备品备件
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/tool-spare-part/get',
method: 'post',
data: { id }
})
}
/**
* 更新备品备件
* @param {object} data
* @param {number} data.id
* @param {string} data.code
* @param {string} data.name
* @param {number} [data.life]
* @param {string} [data.model]
* @param {string} [data.description]
* @param {string} [data.dictDataId]
* @param {string} [data.specifications]
*/
export function update(data) {
return request({
url: '/basic/tool-spare-part/update',
method: 'post',
data
})
}
/**
* 新增备品备件
* @param {object} data
* @param {number} [data.id]
* @param {string} data.code
* @param {string} data.name
* @param {number} [data.life]
* @param {string} [data.model]
* @param {string} [data.description]
* @param {string} [data.dictDataId]
* @param {string} [data.specifications]
*/
export function add(data) {
return request({
url: '/basic/tool-spare-part/add',
method: 'post',
data
})
}
/**
* 获取备品备件code
*/
export function getCode() {
return request({
url: '/basic/tool-spare-part/get-code',
method: 'post'
})
}
/**
* 删除备品备件
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/tool-spare-part/delete',
method: 'post',
data: { id }
})
}
/**
* 获取单位列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
*/
export function getUnitList(data) {
return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data: {
...data,
dictTypeId: '2'
}
})
}

View File

@ -0,0 +1,48 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-07-06 11:10:22
* @Description:
*/
import request from '@/utils/request'
export function EquipmentScrapGradeList(data) { // 获取废片等级列表
return request({
url: '/basic/equipment-scraps-grade/pageForEquipmentGrade',
method: 'post',
data
})
}
export function EquipmentScrapGradeDetail(id) { // 获取废片等级单条数据
return request({
url: '/basic/equipment-scraps-grade/get',
method: 'post',
data: { id }
})
}
export function EquipmentScrapGradeUpdate(data) { // 更新废片等级单条数据
return request({
url: '/basic/equipment-scraps-grade/update',
method: 'post',
data
})
}
export function EquipmentScrapGradeAdd(data) { // 新增废片等级单条数据
return request({
url: '/basic/equipment-scraps-grade/add',
method: 'post',
data
})
}
export function EquipmentScrapGradeDelete(id) { // 删除废片等级单条数据
return request({
url: '/basic/equipment-scraps-grade/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,58 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2020-12-30 11:54:24
* @Description:
*/
import request from '@/utils/request'
export function factoryList(data) { // 获取工厂列表
return request({
url: '/basic/factory/page',
method: 'post',
data
})
}
export function factoryDetail(id) { // 获取工厂单条数据
const data = {
'id': id
}
return request({
url: '/basic/factory/get',
method: 'post',
data
})
}
export function factoryUpdate(data) { // 更新工厂单条数据
return request({
url: '/basic/factory/update',
method: 'post',
data
})
}
export function factoryAdd(data) { // 新增工厂单条数据
return request({
url: '/basic/factory/add',
method: 'post',
data
})
}
export function factoryCode() { // 获取工厂code
return request({
url: '/basic/factory/get-code',
method: 'post'
})
}
export function factoryDelete(id) { // 删除工厂单条数据
return request({
url: '/basic/factory/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-12 10:57:09
* @Description:
*/
import request from '@/utils/request'
export function lineList(data) { // 获取产线列表
return request({
url: '/basic/production-line/page',
method: 'post',
data
})
}
export function lineDetail(id) { // 获取产线单条数据
return request({
url: '/basic/production-line/get',
method: 'post',
data: { id }
})
}
export function lineUpdate(data) { // 更新产线单条数据
return request({
url: '/basic/production-line/update',
method: 'post',
data
})
}
export function lineAdd(data) { // 新增产线单条数据
return request({
url: '/basic/production-line/add',
method: 'post',
data
})
}
export function lineCode() { // 获取产线code
return request({
url: '/basic/production-line/get-code',
method: 'post'
})
}
export function lineDelete(id) { // 删除产线单条数据
return request({
url: '/basic/production-line/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,122 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-12 10:56:44
* @Description:
*/
import request from '@/utils/request'
export function sectionList(data) {
// 获取工段列表
return request({
url: '/basic/workshop-section/page',
method: 'post',
data
})
}
export function sectionDetail(id) {
// 获取工段单条数据
return request({
url: '/basic/workshop-section/get',
method: 'post',
data: { id }
})
}
export function sectionUpdate(data) {
// 更新工段单条数据
return request({
url: '/basic/workshop-section/update',
method: 'post',
data
})
}
export function sectionAdd(data) {
// 新增工段单条数据
return request({
url: '/basic/workshop-section/add',
method: 'post',
data
})
}
export function sectionCode() {
// 获取工段code
return request({
url: '/basic/workshop-section/get-code',
method: 'post'
})
}
export function sectionDelete(id) {
// 删除工段单条数据
return request({
url: '/basic/workshop-section/delete',
method: 'post',
data: { id }
})
}
/**
* 获取工单下的设备分页列表
* @param {object} data
* @param {number} data.current
* @param {number} data.enabled
* @param {string} data.equipmentId
* @param {string} data.equipmentName
* @param {string} data.id
* @param {string} data.name
* @param {number} data.size
*/
export function getEquipmentListBy(data) {
return request({
url: '/basic/workshop-section/page-WorksectionEquipment',
method: 'post',
data
})
}
/**
* {
* equipmentId: [],
* id,
* remark,
* singleEquipmentId,
* workshopSectionId,
* }
*/
export function addNewEquipment(data) {
return request({
url: '/basic/workshop-section/add-SingleWorksectionEquipment',
method: 'post',
data
})
}
export function getAllEquipmentList() {
// 获取所有设备分页列表
return request({
url: '/basic/equipment/list',
method: 'post',
data: {}
// data: {
// current: 1,
// size: 999,
// enabled: 1
// }
})
}
export function deleteEquipment(id) {
// 从工段里删除一个设备
return request({
url: '/basic/workshop-section/delete-WorksectionEquipment',
method: 'post',
data: {
id
}
})
}

View File

@ -0,0 +1,127 @@
/*
* @Author: lb
* @Date: 2022-04-12 14:30:00
* @LastEditors: lb
* @LastEditTime: 2022-04-12 14:30:00
* @Description: 部门 相关接口
*/
import request from '@/utils/request'
/**
* 新增部门
* @param {object} data
* @param {string} data.name
* @param {string} data.code
* @param {number|string} [data.id]
* @param {number|string} [data.parentId]
* @param {string} [data.description] 备注|描述
* @param {string} [data.remark] 备注(deprecated)
*/
export function add(data) {
return request({
url: '/basic/department/add',
method: 'post',
data
})
}
/**
* 删除部门
* @param {number|string} id
*/
export function del(id) {
return request({
url: '/basic/department/delete',
method: 'post',
data: { id }
})
}
/**
* getcode
*/
export function getCode() {
return request({
url: '/basic/department/get-code',
method: 'post'
})
}
/**
* 获取部门详情
* @param {number|string} id
*/
export function detail(id) {
return request({
url: '/basic/department/get',
method: 'post',
data: { id }
})
}
/**
* 获取部门列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.key] 查询关键字
*/
export function list(data) {
return request({
url: '/basic/department/list',
method: 'post',
data
})
}
/**
* 获取部门分页列表 --- 基本上同 list
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.key] 查询关键字
*/
export function listByPage(data) {
return request({
url: '/basic/department/page',
method: 'post',
data
})
}
/**
* 更新部门
* @param {object} data
* @param {string} data.name
* @param {string} data.code
* @param {number|string} data.id
* @param {number|string} [data.parentId]
* @param {string} [data.description] 备注|描述
* @param {string} [data.remark] 备注(deprecated)
*/
export function update(data) {
return request({
url: '/basic/department/update',
method: 'post',
data
})
}
/**
* 获取部门树列表
* @param {object} data
* @param {number} data.id
* @param {string} data.key
* @param {number} data.current
* @param {number} data.size
* @param {number} data.enabled
*/
export function getTree(data) {
return request({
url: '/basic/department/tree',
method: 'post',
data
})
}

View File

@ -0,0 +1,209 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-12 15:38:59
* @Description:
*/
import request from '@/utils/request'
/**
* 获取班组分页列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.key]
* @param {number|string} [data.teamId]
*/
export function list(data) {
return request({
url: '/basic/team/page',
method: 'post',
data
})
}
/**
* 获取班组单条数据
* @param {number|string} id
*/
export function detail(id) {
return request({
url: '/basic/team/get',
method: 'post',
data: { id }
})
}
/**
* 更新班组单条数据
* @param {object} data
* @param {string} data.code
* @param {string} [data.description]
* @param {number} data.id
* @param {string} data.name
* @param {string} [data.teamLeader]
* @param {string} [data.teamLeaderId]
* @param {number} [data.teamNumber]
* @param {number} [data.workStatus]
*/
export function update(data) {
return request({
url: '/basic/team/update',
method: 'post',
data
})
}
/**
* 新增班组单条数据
* @param {object} data
* @param {string} data.code
* @param {string} [data.description]
* @param {number} [data.id]
* @param {string} data.name
* @param {string} [data.teamLeader]
* @param {string} [data.teamLeaderId]
* @param {number} [data.teamNumber]
* @param {number} [data.workStatus]
*/
export function add(data) {
return request({
url: '/basic/team/add',
method: 'post',
data
})
}
/**
* 获取班组code
*/
export function getCode() {
return request({
url: '/basic/team/get-code',
method: 'post'
})
}
/**
* 删除班组单条数据
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/team/delete',
method: 'post',
data: { id }
})
}
/**
* 启停班组
* @param {object} data
* @param {number} data.enabled
* @param {number} data.id
*/
export function toggleEnabled(data) {
return request({
url: '/basic/team/enabled',
method: 'post',
data
})
}
/**
* 获取部门列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.key] 查询关键字
*/
export function getDepartmentList(data) {
return request({
url: '/basic/department/list',
method: 'post',
data
})
}
/**
* 获取员工列表
* @param {object} data
* @param {number} data.current
* @param {number} [data.status]
* @param {string} [data.code]
* @param {string} [data.name]
* @param {number} data.size
*/
export function getStaffList(data) {
return request({
url: '/basic/worker/page',
method: 'post',
data
})
}
/**
* 获取分页班组成员
* @param {object} data
* @param {number} data.current
* @param {number} [data.enabled]
* @param {number} [data.key]
* @param {number} data.size
* @param {number} [data.teamId]
* @param {string} [data.workerId]
*/
export function getCrewList(data) {
return request({
url: '/basic/team-det/page',
method: 'post',
data
})
}
/**
* 删除班组单条数据
* @param {object} data
* @param {string} data.description
* @param {number} data.id
* @param {string} data.teamId
* @param {string} data.workerId
* @param {string} data.workerName
* @param {number} [data.workshopId]
*/
export function deleteCrew(data) {
return request({
url: '/basic/team-det/delete',
method: 'post',
data
})
}
/**
* 获取组员详情
* @param {number} id
*/
export function getCrewDetail(id) {
return request({
url: '/basic/team-det/get',
method: 'post',
data: { id }
})
}
/**
* 获取员工单条数据
* 组员既是员工
* 但是组员的接口和员工的接口不一样
* 员工的接口返回的数据更详细
* @param {number} id
*/
export function getStaffDetail(id) {
return request({
url: '/basic/worker/get',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,109 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-02-08 09:51:54
* @Description:
*/
import request from '@/utils/request'
/**
* 获取分页班组成员
* @param {object} data
* @param {number} data.current
* @param {number} [data.enabled]
* @param {number} [data.key]
* @param {number} data.size
* @param {number} [data.teamId]
* @param {string} [data.workerId]
*/
export function list(data) {
return request({
url: '/basic/team-det/page',
method: 'post',
data
})
}
/**
* 获取组员详情
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/team-det/get',
method: 'post',
data: { id }
})
}
/**
* 更新组员数据
* @param {object} data
* @param {string} [data.description]
* @param {number} data.id
* @param {string} data.teamId
* @param {string} data.workerId
* @param {string} data.workerName
* @param {number} data.workshopId
*/
export function update(data) {
return request({
url: '/basic/team-det/update',
method: 'post',
data
})
}
export function add(data) {
// 新增班组单条数据
return request({
url: '/basic/team-det/add',
method: 'post',
data
})
}
export function getCode() {
// 获取班组code
return request({
url: '/basic/team-det/get-code',
method: 'post'
})
}
/**
* 删除班组单条数据
* @param {object} data
* @param {string} data.description
* @param {number} data.id
* @param {string} data.teamId
* @param {string} data.workerId
* @param {string} data.workerName
* @param {number} [data.workshopId]
*/
export function del(data) {
return request({
url: '/basic/team-det/delete',
method: 'post',
data
})
}
/**
* 获取分页工段列表
* @param {object} data
* @param {number} data.current
* @param {number} [data.enabled]
* @param {string} [data.id]
* @param {string} [data.name]
* @param {number} data.size
*/
export function getWorkshopList(data) {
return request({
url: '/basic/workshop-section/page',
method: 'post',
data
})
}

View File

@ -0,0 +1,92 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-04-26 16:38:42
* @Description:
*/
import request from '@/utils/request'
/**
* 获取分页专业列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.name]
*/
export function list(data) {
return request({
url: '/basic/major/page',
method: 'post',
data
})
}
/**
* 获取专业
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/major/get',
method: 'post',
data: { id }
})
}
/**
* 更新专业
* @param {object} data
* @param {number} data.id
* @param {string} data.code
* @param {string} data.name
* @param {string} [data.abbreviation]
* @param {string} [data.description]
*/
export function update(data) {
return request({
url: '/basic/major/update',
method: 'post',
data
})
}
/**
* 新增专业
* @param {object} data
* @param {number} [data.id]
* @param {string} data.code
* @param {string} data.name
* @param {string} [data.abbreviation]
* @param {string} [data.description]
*/
export function add(data) {
return request({
url: '/basic/major/add',
method: 'post',
data
})
}
/**
* 获取code
*/
export function getCode() {
return request({
url: '/basic/major/get-code',
method: 'post'
})
}
/**
* 删除专业
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/major/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,91 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-04-13 15:19:55
* @Description:
*/
import request from '@/utils/request'
/**
* 获取班组列表
* @param {object} data
* @param {string} [data.code]
* @param {number} data.current
* @param {number} [data.enabled]
* @param {string} [data.name]
* @param {number} data.size
*/
export function list(data) {
return request({
url: '/basic/schedule-plan/page',
method: 'post',
data
})
}
/**
* 获取班组单条数据
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/schedule-plan/get',
method: 'post',
data: { id }
})
}
/**
* 更新班组单条数据
* @param {object} data
* @param {string} data.code
* @param {number} data.id
* @param {string} data.name
* @param {string} [data.remark]
*/
export function update(data) {
return request({
url: '/basic/schedule-plan/update',
method: 'post',
data
})
}
/**
* 新增班组单条数据
* @param {object} data
* @param {string} data.code
* @param {number} [data.id]
* @param {string} data.name
* @param {string} [data.remark]
*/
export function add(data) {
return request({
url: '/basic/schedule-plan/add',
method: 'post',
data
})
}
/**
* 获取班组code
*/
export function getCode() {
return request({
url: '/basic/schedule-plan/get-code',
method: 'post'
})
}
/**
* 删除班组单条数据
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/schedule-plan/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,155 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: gtz
* @LastEditTime: 2021-04-17 16:04:51
* @Description:
*/
import request from '@/utils/request'
/**
* 获取员工列表
* @param {object} data
* @param {number} data.current
* @param {number} [data.status]
* @param {string} [data.code]
* @param {string} [data.name]
* @param {number} data.size
*/
export function list(data) {
return request({
url: '/basic/worker/page',
method: 'post',
data
})
}
/**
* 获取员工单条数据
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/worker/get',
method: 'post',
data: { id }
})
}
/**
* 更新员工单条数据
* @param {object} data
* @param {string} [data.belong]
* @param {string} data.code
* @param {string} [data.departmentId]
* @param {string} [data.description]
* @param {string} [data.education]
* @param {string} [data.email]
* @param {string} [data.entryTime]
* @param {number} data.id
* @param {string} [data.identity]
* @param {string} data.majorId
* @param {string} data.name
* @param {string} [data.fileUrl] 头像地址或头像文件id
* @param {string} data.onDuty
* @param {string} [data.outTime]
* @param {string} [data.position]
* @param {string} [data.roleId]
* @param {string} data.sex
* @param {string} [data.status]
* @param {string} [data.telephone]
* @param {string} [data.wechatCode]
* @param {string} [data.workshop]
*/
export function update(data) {
return request({
url: '/basic/worker/update',
method: 'post',
data
})
}
/**
* 新增员工单条数据
* @param {object} data
* @param {string} [data.belong]
* @param {string} data.code
* @param {string} [data.departmentId]
* @param {string} [data.description]
* @param {string} [data.education]
* @param {string} [data.email]
* @param {string} [data.entryTime]
* @param {number} [data.id]
* @param {string} [data.identity]
* @param {string} data.majorId
* @param {string} data.name
* @param {string} [data.fileUrl] 头像地址或头像文件id
* @param {string} data.onDuty
* @param {string} [data.outTime]
* @param {string} [data.position]
* @param {string} [data.roleId]
* @param {string} data.sex
* @param {string} [data.status]
* @param {string} [data.telephone]
* @param {string} [data.wechatCode]
* @param {string} [data.workshop]
*/
export function add(data) {
return request({
url: '/basic/worker/add',
method: 'post',
data
})
}
/**
* 获取员工code
*/
export function getCode() {
return request({
url: '/basic/worker/get-code',
method: 'post'
})
}
/**
* 删除员工单条数据
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/worker/delete',
method: 'post',
data: { id }
})
}
export function getWorkerList(data) { // 添加组员列表
return request({
url: '/basic/team-det/workerList',
method: 'post',
data
})
}
export function getRoleList() {
return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data: {
dictTypeId: '1383318968677273601',
current: 1,
size: 999
}
})
}
/** 文件上传 */
export function saveFile(data) {
// application/x-www-form-urlencoded
return request({
url: '/common/attachment/uploadFileFormData',
method: 'post',
data
})
}

View File

@ -0,0 +1,140 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-04-14 13:03:31
* @Description:
*/
import request from '@/utils/request'
/**
* 获取分页物料信息列表
* @param {object} data
* @param {string} [data.code]
* @param {number} data.current
* @param {number} [data.enabled]
* @param {string} [data.name]
* @param {number} data.size
*/
export function list(data) {
return request({
url: '/basic/material/page',
method: 'post',
data
})
}
/**
* 获取物料信息单条数据
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/material/get',
method: 'post',
data: { id }
})
}
/**
* 更新物料信息单条数据
* @param {object} data
* @param {string} [data.abbr]
* @param {string} data.code
* @param {string} [data.description]
* @param {string} [data.enName]
* @param {number} data.id
* @param {number} [data.materialTypeId]
* @param {string} data.name
* @param {string} [data.remark]
*/
export function update(data) {
return request({
url: '/basic/material/update',
method: 'post',
data
})
}
/**
* 新增物料信息单条数据
* @param {object} data
* @param {string} [data.abbr]
* @param {string} data.code
* @param {string} [data.description]
* @param {string} [data.enName]
* @param {number} [data.id]
* @param {number} [data.materialTypeId]
* @param {string} data.name
* @param {string} [data.remark]
*/
export function add(data) {
return request({
url: '/basic/material/add',
method: 'post',
data
})
}
export function getCode() { // 获取物料信息code
return request({
url: '/basic/material/get-code',
method: 'post'
})
}
/**
* 获取物料信息单条数据
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/material/delete',
method: 'post',
data: { id }
})
}
/**
* 获取物料的属性列表
* @param {object} data
* @param {number} data.current
* @param {number} [data.enabled]
* @param {number} [data.materialId]
* @param {number} data.size
*/
export function getAttributeList(data) {
return request({
url: '/basic/material-attr/page',
method: 'post',
data
})
}
/**
* 删除物料的属性数据
* @param {number} id
*/
export function deleteAttribute(id) {
return request({
url: '/basic/material-attr/delete',
method: 'post',
data: { id }
})
}
/**
* 获取分页的物料类型列表
* @param {object} data
* @param {number} data.current
* @param {number} [data.enabled]
* @param {string} [data.name]
* @param {number} data.size
*/
export function getTypeList(data) {
return request({
url: '/basic/material-type/page',
method: 'post',
data
})
}

View File

@ -0,0 +1,55 @@
/*
* @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 }
})
}

View File

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

View File

@ -0,0 +1,92 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-04-16 22:00:49
* @Description:
*/
import request from '@/utils/request'
/**
* 获取产品属性列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {string} data.productId
* @param {number} [data.enabled]
*/
export function list(data) {
return request({
url: '/basic/product-arrt/page',
method: 'post',
data
})
}
/**
* 获取产品属性单条数据
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/product-arrt/get',
method: 'post',
data: { id }
})
}
/**
* 更新产品属性单条数据
* @param {object} data
* @param {string} data.code
* @param {string} data.description
* @param {number} data.id
* @param {string} data.name
* @param {string} data.productId
* @param {string} data.value
*/
export function update(data) {
return request({
url: '/basic/product-arrt/update',
method: 'post',
data
})
}
/**
* 新增产品属性单条数据
* @param {object} data
* @param {string} data.code
* @param {string} data.description
* @param {number} [data.id]
* @param {string} data.name
* @param {string} data.productId
* @param {string} data.value
*/
export function add(data) {
return request({
url: '/basic/product-arrt/add',
method: 'post',
data
})
}
export function getCode() {
// 获取产品信息code
return request({
url: '/basic/product-arrt/get-code',
method: 'post'
})
}
/**
* 删除产品信息属性单条数据
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/product-arrt/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,118 @@
/*
* @Author: lb
* @Date: 2022-05-18 14:45:10
* @LastEditors: lb
* @LastEditTime: 2022-05-18 14:45:10
* @Description: 发车清单
*/
import request from '@/utils/request'
/**
* 新增车辆信息
* @param {object} data
* @param {string} [data.contactPerson] 车辆联系人
* @param {number} [data.contactPersonCall] 车辆联系人电话
* @param {string} [data.deliveryCarCode] 发车编码
* @param {string} [data.description] 车辆描述信息
* @param {number} [data.id]
* @param {string} [data.plate] 车牌
* @param {number} data.productDeliveryLogId 上层发货单id
* @param {number} [data.quantity] 装车数量
* @param {string} [data.remark]
* @param {string} [data.startLoadTime] 开始装货时间
* @param {number} [data.unitId] 单位id
*/
export function add(data) {
return request({
url: '/stock/ProductDeliveryCarLog/create',
method: 'post',
data
})
}
/**
* 删除发车清单条目
* @param {number} id
*/
export function del(id) {
return request({
url: '/stock/ProductDeliveryCarLog/delete',
method: 'post',
data: { id }
})
}
/**
* 获取车载货物列表
* @param {number} id 车辆的id
*/
export function getCargoList(id) {
return request({
url: '/stock/ProductDeliveryCarLog/get',
method: 'post',
data: { id }
})
}
/**
* 获取发车清单list
* @param {number} id 发货单的id
*/
export function getCars(id) { // 没有分页
return request({
url: '/stock/ProductDeliveryCarLog/list',
method: 'post',
data: { id }
})
}
/**
* 修改车辆信息
* @param {object} data
* @param {string} [data.contactPerson] 车辆联系人
* @param {number} [data.contactPersonCall] 车辆联系人电话
* @param {string} [data.deliveryCarCode] 发车编码
* @param {string} [data.description] 车辆描述信息
* @param {number} data.id
* @param {string} [data.plate] 车牌
* @param {number} data.productDeliveryLogId 上层发货单id
* @param {number} [data.quantity] 装车数量
* @param {string} [data.remark]
* @param {string} [data.startLoadTime] 开始装货时间
* @param {number} [data.unitId] 单位id
*/
export function update(data) {
return request({
url: '/stock/ProductDeliveryCarLog/update',
method: 'post',
data
})
}
export function getShelfList() {
return request({
url: '/basic/shelf/page',
method: 'post',
data: {
current: 1,
size: 999,
enabled: 1
}
})
}
/**
* getShelfRelation
* @param {string} shelfCode
* @returns
*/
export function getShelfRelation(shelfCode) {
return request({
url: '/stock/ProductDeliveryCarLogDet/getShelfRelation',
method: 'get',
params: {
shelfCode
}
})
}

View File

@ -0,0 +1,103 @@
/*
* @Author: lb
* @Date: 2022-05-18 14:45:10
* @LastEditors: lb
* @LastEditTime: 2022-05-18 14:45:10
* @Description: 装车清单
*/
import request from '@/utils/request'
/**
* 给车辆新增一条装货信息
* @param {object} data
* @param {number} data.carLogId 涉及的车辆
* @param {number} [data.id]
* @param {string} [data.productGrade]
* @param {number} [data.productId]
* @param {string} [data.productName]
* @param {number} [data.productSpecifications]
* @param {number} [data.quantity]
* @param {number} [data.shelfId]
* @param {number} [data.unitId]
*/
export function add(data) {
return request({
url: '/stock/ProductDeliveryCarLogDet/create',
method: 'post',
data
})
}
/**
* 删除一条装货信息
* @param {number} id
*/
export function del(id) {
return request({
url: '/stock/ProductDeliveryCarLogDet/delete',
method: 'post',
data: { id }
})
}
/**
* 获取装货清单的其他详细信息地址客户车辆列表等
* @param {number} id
*/
export function detail(id) {
return request({
url: '/stock/ProductDeliveryCarLogDet/get',
method: 'post',
data: { id }
})
}
/**
* 获取装货清单里的产品列表
* @param {number} id 上层发车单的id
*/
export function getCargoList(id) {
return request({
url: '/stock/ProductDeliveryCarLogDet/list',
method: 'post',
data: { id }
})
}
/**
* 修改车载货物信息
* @param {object} data
* @param {number} data.carLogId
* @param {number} data.id
* @param {string} [data.productGrade]
* @param {number} [data.productId]
* @param {string} [data.productName]
* @param {number} [data.productSpecifications]
* @param {number} [data.quantity]
* @param {number} [data.shelfId]
* @param {number} [data.unitId]
*/
export function update(data) {
return request({
url: '/stock/ProductDeliveryCarLogDet/update',
method: 'post',
data
})
}
/**
* 获取所有的产品列表
* @param {*} data
* @returns
*/
export function getProductList() {
return request({
url: '/basic/product/page',
method: 'post',
data: {
current: 1,
size: 999,
enabled: 1
}
})
}

View File

@ -0,0 +1,131 @@
/*
* @Author: lb
* @Date: 2022-05-18 14:45:10
* @LastEditors: lb
* @LastEditTime: 2022-05-18 14:45:10
* @Description:
*/
import request from '@/utils/request'
/**
* 新增发货单基础信息发货方信息运输方信息和订单等信息
* @param {object} data
* @param {number} [data.id]
* @param {string} [data.address]
* @param {string} [data.customerName]
* @param {string} [data.deliveryCode]
* @param {string} [data.deliveryPerson]
* @param {number} [data.deliveryPersonCall]
* @param {string} [data.description]
* @param {string} [data.startTime]
* @param {string} [data.endTime]
* @param {number} [data.orderId]
* @param {string} [data.orderName]
* @param {string} [data.principal]
* @param {number} [data.principalCall]
* @param {number} [data.quantity]
* @param {string} [data.remark]
* @param {string} [data.transportCompany]
* @param {number} [data.unitId]
*/
export function add(data) {
return request({
url: '/stock/ProductDeliveryLog/create',
method: 'post',
data
})
}
/**
* 删除发货单
* @param {number} id
*/
export function del(id) {
return request({
url: '/stock/ProductDeliveryLog/delete',
method: 'post',
data: { id }
})
}
/**
* 获取发货单涉及的车辆发货方运输方信息
* @param {number} id
*/
export function detail(id) {
return request({
url: '/stock/ProductDeliveryLog/get',
method: 'post',
data: { id }
})
}
/**
* 获取发货单下的发车单列表
* @param {number} id
*/
export function getCars(id) {
return request({
url: '/stock/ProductDeliveryLog/getCarList',
method: 'post',
data: { id }
})
}
/**
* 获取分页发货单的简要信息
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.orderName]
* @param {string} [data.startDate]
* @param {string} [data.endDate]
*/
export function list(data) {
return request({
url: '/stock/ProductDeliveryLog/page',
method: 'post',
data
})
}
/**
* 修改发货单基础信息发货方信息运输方信息和订单等信息
* @param {object} data
* @param {number} data.id
* @param {string} [data.address]
* @param {string} [data.customerName]
* @param {string} [data.deliveryCode]
* @param {string} [data.deliveryPerson]
* @param {number} [data.deliveryPersonCall]
* @param {string} [data.description]
* @param {string} [data.startTime]
* @param {string} [data.endTime]
* @param {number} [data.orderId]
* @param {string} [data.orderName]
* @param {string} [data.principal]
* @param {number} [data.principalCall]
* @param {number} [data.quantity]
* @param {string} [data.remark]
* @param {string} [data.transportCompany]
* @param {number} [data.unitId]
*/
export function update(data) {
return request({
url: '/stock/ProductDeliveryLog/update',
method: 'post',
data
})
}
/**
* 获取所有订单列表用于输入过滤
* @returns
*/
export function getAllOrders() {
return request({
url: '/order/order/list',
method: 'post',
data: { enabled: 1 }
})
}

View File

@ -0,0 +1,72 @@
/*
* @Author: lb
* @Date: 2022-05-18 14:45:10
* @LastEditors: lb
* @LastEditTime: 2022-05-18 14:45:10
* @Description:
*/
import request from '@/utils/request'
/**
* 获取进度详情的所有发货清单
* @param {number} id 发货单id
*/
export function processDetail(id) {
return request({
url: '/stock/ProductDeliveryProgress/get',
method: 'post',
data: { id }
})
}
/**
* 发车清单里的产品列表
* @param {number} id 发货单id
*/
export function cargoList(data) {
return request({
url: '/stock/ProductDeliveryProgress/getAllDet',
method: 'post',
data
})
}
/**
* 获取订单的发货进度列表
* @param {string} orderName 订单名
*/
export function getProcessList(orderName) {
return request({
url: '/stock/ProductDeliveryProgress/list',
method: 'post',
data: { orderName }
})
}
/**
* 获取订单的发货进度分页列表
* @param {object} data
* @param {object} data.current
* @param {object} data.size
* @param {object} [data.orderName]
* @param {object} [data.enabled]
*/
export function getProcessPage(data) {
return request({
url: '/stock/ProductDeliveryProgress/page',
method: 'post',
data
})
}
/**
* 获取所有订单列表用于输入过滤
* @returns
*/
export function getAllOrders() {
return request({
url: '/order/order/list',
method: 'post',
data: { enabled: 1 }
})
}

View File

@ -0,0 +1,185 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-04-16 14:45:10
* @Description:
*/
import request from '@/utils/request'
/**
* 获取分页产品列表
* @param {object} data
* @param {number} data.current
* @param {number} [data.enabled]
* @param {string} [data.key]
* @param {number} data.size
*/
export function list(data) {
return request({
url: '/basic/product/page',
method: 'post',
data
})
}
/**
* 获取产品详情
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/product/get',
method: 'post',
data: { id }
})
}
/**
* 更新产品池单条数据
* @param {object} data
* @param {number} data.id
* @param {string} data.name
* @param {string} data.code
* @param {number} [data.area]
* @param {string} [data.description]
* @param {string} [data.dictDataId]
* @param {number} [data.processTime]
* @param {string} [data.productTypeId]
* @param {string} [data.specifications]
*/
export function update(data) {
return request({
url: '/basic/product/update',
method: 'post',
data
})
}
/**
* 新增产品池单条数据
* @param {object} data
* @param {number} [data.id]
* @param {string} data.name
* @param {string} data.code
* @param {number} [data.area]
* @param {string} [data.description]
* @param {string} [data.dictDataId]
* @param {number} [data.processTime]
* @param {string} [data.productTypeId]
* @param {string} [data.specifications]
*/
export function add(data) {
return request({
url: '/basic/product/add',
method: 'post',
data
})
}
export function getCode() {
// 获取产品池code
return request({
url: '/basic/product/get-code',
method: 'post'
})
}
/**
* 删除产品池单条数据
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/product/delete',
method: 'post',
data: { id }
})
}
/**
* 获取产品属性列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {string} data.productId
* @param {number} [data.enabled]
*/
export function getProductAttributeList(data) {
return request({
url: '/basic/product-arrt/page',
method: 'post',
data
})
}
/**
* 删除产品属性
* @param {number} id
*/
export function deleteProductAttribute(id) {
return request({
url: '/basic/product-arrt/delete',
method: 'post',
data: { id }
})
}
/**
* 获取产品类型列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
*/
export function getProductTypeList(data) {
// 此接口接收的是 application/x-www-form-urlencoded 数据
// const urlEncodedData = new URLSearchParams()
// for (const key in data) {
// urlEncodedData.append(key, data[key])
// }
// urlEncodedData.append('dataType', '产品类型')
// return request({
// url: '/common/data-dictionary/list',
// method: 'post',
// data: urlEncodedData
// })
// 此接口现改为接收 json 数据
return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data: {
...data,
dictTypeId: '1386586276368023554' // 产品类型id
}
})
}
/**
* 获取单位列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
*/
export function getUnitList(data) {
// const urlEncodedData = new URLSearchParams()
// for (const key in data) {
// urlEncodedData.append(key, data[key])
// }
// urlEncodedData.append('dataType', '单位')
// return request({
// url: '/common/data-dictionary/list',
// method: 'post',
// data: urlEncodedData
// })
return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data: {
...data,
dictTypeId: 2
}
})
}

View File

@ -0,0 +1,110 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-04-15 15:25:18
* @Description:
*/
import request from '@/utils/request'
/**
* 获取分页报废原因
* @param {object} data
* @param {string} [data.code]
* @param {number} data.current
* @param {number} [data.enabled]
* @param {string} [data.name]
* @param {string} [data.scrapTypeId]
* @param {number} data.size
*/
export function list(data) {
return request({
url: '/basic/scrap-information/page',
method: 'post',
data
})
}
/**
* 获取报废原因详情
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/scrap-information/get',
method: 'post',
data: { id }
})
}
/**
* 更新报废信息
* @param {object} data
* @param {string} data.code
* @param {number} data.id
* @param {string} data.name
* @param {string} [data.remark]
* @param {string} data.scrapType
* @param {string} data.scrapTypeId
*/
export function update(data) {
return request({
url: '/basic/scrap-information/update',
method: 'post',
data
})
}
/**
* 新增报废信息
* @param {object} data
* @param {string} data.code
* @param {number} data.id
* @param {string} data.name
* @param {string} [data.remark]
* @param {string} data.scrapType
* @param {string} data.scrapTypeId
*/
export function add(data) {
return request({
url: '/basic/scrap-information/add',
method: 'post',
data
})
}
export function getCode() {
// 获取报废信息code
return request({
url: '/basic/scrap-information/get-code',
method: 'post'
})
}
/**
* 删除报废信息单条数据
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/scrap-information/delete',
method: 'post',
data: { id }
})
}
/**
* 获取分页报废类型信息
* @param {object} data
* @param {number} data.current
* @param {number} [data.enabled]
* @param {string} [data.scrapType]
* @param {number} data.size
*/
export function getScrapTypeList(data) {
return request({
url: '/basic/scrap-type-information/page',
method: 'post',
data
})
}

View File

@ -0,0 +1,58 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-03-10 14:25:59
* @Description:
*/
import request from '@/utils/request'
export function list(data) { // 获取报废类型列表
return request({
url: '/basic/scrap-type-information/page',
method: 'post',
data
})
}
export function detail(id) { // 获取报废类型单条数据
const data = {
'id': id
}
return request({
url: '/basic/scrap-type-information/get',
method: 'post',
data
})
}
export function update(data) { // 更新报废类型单条数据
return request({
url: '/basic/scrap-type-information/update',
method: 'post',
data
})
}
export function add(data) { // 新增报废类型单条数据
return request({
url: '/basic/scrap-type-information/add',
method: 'post',
data
})
}
export function scrapTypeCode() { // 获取报废类型code
return request({
url: '/basic/scrap-type-information/get-code',
method: 'post'
})
}
export function del(id) { // 删除报废类型单条数据
return request({
url: '/basic/scrap-type-information/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-18 14:48:49
* @Description:
*/
import request from '@/utils/request'
export function ScrapInfoList(data) { // 获取废品报废信息列表
return request({
url: '/basic/scrap/page',
method: 'post',
data
})
}
export function ScrapInfoDetail(id) { // 获取废品报废信息单条数据
return request({
url: '/basic/scrap/get',
method: 'post',
data: { id }
})
}
export function ScrapInfoUpdate(data) { // 更新废品报废信息单条数据
return request({
url: '/basic/scrap/update',
method: 'post',
data
})
}
export function ScrapInfoAdd(data) { // 新增废品报废信息单条数据
return request({
url: '/basic/scrap/add',
method: 'post',
data
})
}
export function ScrapInfoCode() { // 获取废品报废信息code
return request({
url: '/basic/scrap/get-code',
method: 'post'
})
}
export function ScrapInfoDelete(id) { // 删除废品报废信息单条数据
return request({
url: '/basic/scrap/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-13 16:11:45
* @Description:
*/
import request from '@/utils/request'
export function StateConfigList(data) { // 获取状态列表
return request({
url: '/basic/configure-display/page',
method: 'post',
data
})
}
export function StateConfigDetail(id) { // 获取状态单条数据
return request({
url: '/basic/configure-display/get',
method: 'post',
data: { id }
})
}
export function StateConfigUpdate(data) { // 更新状态单条数据
return request({
url: '/basic/configure-display/update',
method: 'post',
data
})
}
export function StateConfigAdd(data) { // 新增状态单条数据
return request({
url: '/basic/configure-display/add',
method: 'post',
data
})
}
export function StateConfigCode() { // 获取状态code
return request({
url: '/basic/configure-display/get-code',
method: 'post'
})
}
export function StateConfigDelete(id) { // 删除状态单条数据
return request({
url: '/basic/configure-display/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,194 @@
/*
* @Author: lb
* @Date: 2022-04-21 8:51:29
* @LastEditors: lb
* @LastEditTime: 2022-04-21 8:51:29
* @Description:
*/
import request from '@/utils/request'
/**
* 获取字典类型列表
* @param {object} data
* @param {number} data.current
* @param {number} data.enabled
* @param {number} data.size
* @param {string} data.typeCode
* @param {string} data.typeName
*/
export function getTypeList(data) {
return request({
url: '/basic/platform-dict/selectPlatformDictTypeListByPage',
method: 'post',
data
})
}
/**
* 根据id查询字典类型
* @param {number} id
*/
export function getTypeDetail(id) {
//
return request({
url: '/basic/platform-dict/selectDictTypeById',
method: 'post',
data: { id }
})
}
/**
* 更新字典类型
* @param {object} data
* @param {number} data.id
* @param {string} data.typeCode
* @param {string} data.typeName
* @param {string} [data.remark]
* @param {number} [data.valid]
* @param {number} [data.version]
* @param {string} [data.createTime]
* @param {number} [data.creator]
* @param {string} [data.creatorName]
* @param {string} [data.updateTime]
* @param {number} [data.updater]
* @param {string} [data.updaterName]
*/
export function updateType(data) {
return request({
url: '/basic/platform-dict/updatePlatformDictType',
method: 'post',
data
})
}
/**
* 新增字典类型
* @param {object} data
* @param {number} [data.id]
* @param {string} data.typeCode
* @param {string} data.typeName
* @param {string} [data.remark]
* @param {number} [data.valid]
* @param {number} [data.version]
* @param {string} [data.createTime]
* @param {number} [data.creator]
* @param {string} [data.creatorName]
* @param {string} [data.updateTime]
* @param {number} [data.updater]
* @param {string} [data.updaterName]
*/
export function addType(data) {
return request({
url: '/basic/platform-dict/savePlatformDictType',
method: 'post',
data
})
}
/**
* 删除字典类型单条数据
* @param {number} id
*/
export function deleteType(id) {
return request({
url: '/basic/platform-dict/deletePlatformDictType',
method: 'post',
data: { id }
})
}
/**
* 获取某个字典类型下的所有字典数据
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} data.dictTypeId
* @param {string} [data.dataCode]
* @param {string} [data.dataName]
* @param {number} [data.enabled]
*/
export function list(data) {
return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data
})
}
/**
* 获取某个字典类型下的某条字典数据
* @param {number} id
*/
export function detail(id) {
return request({
url: '/basic/platform-dict/selectPlatformDictDataById',
method: 'post',
data: { id }
})
}
/**
* 更新某个字典类型下的某条字典数据
* @param {object} data
* @param {number} data.id
* @param {number} data.dictTypeId
* @param {string} data.createTime
* @param {string} data.dataCode
* @param {string} data.dataName
* @param {string} data.typeCode
* @param {string} data.typeName
* @param {number} [data.valid]
* @param {string} [data.remark]
* @param {number} [data.version]
* @param {number} [data.creator]
* @param {string} [data.creatorName]
* @param {string} [data.updateTime]
* @param {number} [data.updater]
* @param {string} [data.updaterName]
*/
export function update(data) {
return request({
url: '/basic/platform-dict/updatePlatformDictData',
method: 'post',
data
})
}
/**
* 新增某个字典类型下的某条字典数据
* @param {object} data
* @param {number} data.id
* @param {number} data.dictTypeId
* @param {string} data.createTime
* @param {string} data.dataCode
* @param {string} data.dataName
* @param {string} data.typeCode
* @param {string} data.typeName
* @param {number} [data.valid]
* @param {string} [data.remark]
* @param {number} [data.version]
* @param {number} [data.creator]
* @param {string} [data.creatorName]
* @param {string} [data.updateTime]
* @param {number} [data.updater]
* @param {string} [data.updaterName]
*/
export function add(data) {
return request({
url: '/basic/platform-dict/savePlatformDictData',
method: 'post',
data
})
}
/**
* 删除某个字典类型下的某条字典数据
* @param {number} id
*/
export function del(id) {
return request({
url: '/basic/platform-dict/deletePlatformDictData',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,48 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-05-19 15:57:56
* @Description:
*/
import request from '@/utils/request'
export function dataDictionaryDataList(data) { // 获取字典类型列表
return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data
})
}
export function dataDictionaryDataDetail(id) { // 获取字典类型单条数据
return request({
url: '/basic/platform-dict/selectPlatformDictDataById',
method: 'post',
data: { id }
})
}
export function dataDictionaryDataUpdate(data) { // 更新字典类型单条数据
return request({
url: '/basic/platform-dict/updatePlatformDictData',
method: 'post',
data
})
}
export function dataDictionaryDataAdd(data) { // 新增字典类型单条数据
return request({
url: '/basic/platform-dict/savePlatformDictData',
method: 'post',
data
})
}
export function dataDictionaryDataDelete(id) { // 删除字典类型单条数据
return request({
url: '/basic/platform-dict/deletePlatformDictData',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,107 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: lb
* @LastEditTime: 2022-04-21 8:51:29
* @Description:
*/
import request from '@/utils/request'
export function dataDictionaryTypeListDeprecated(data) {
// 获取字典类型列表
return request({
url: '/basic/platform-dict/selectDictTypeByList',
method: 'post',
data
})
}
/**
* 获取字典类型列表
* @param {object} data
* @param {number} data.current
* @param {number} data.enabled
* @param {number} data.size
* @param {string} data.typeCode
* @param {string} data.typeName
*/
export function dataDictionaryTypeList(data) {
return request({
url: '/basic/platform-dict/selectPlatformDictTypeListByPage',
method: 'post',
data
})
}
/**
* 根据id查询字典类型
* @param {number} id
*/
export function dataDictionaryTypeDetail(id) {
//
return request({
url: '/basic/platform-dict/selectDictTypeById',
method: 'post',
data: { id }
})
}
/**
* 更新字典类型
* @param {object} data
* @param {number} data.id
* @param {string} data.typeCode
* @param {string} data.typeName
* @param {string} [data.remark]
* @param {number} [data.valid]
* @param {number} [data.version]
* @param {string} [data.createTime]
* @param {number} [data.creator]
* @param {string} [data.creatorName]
* @param {string} [data.updateTime]
* @param {number} [data.updater]
* @param {string} [data.updaterName]
*/
export function dataDictionaryTypeUpdate(data) {
return request({
url: '/basic/platform-dict/updatePlatformDictType',
method: 'post',
data
})
}
/**
* 新增字典类型
* @param {object} data
* @param {number} [data.id]
* @param {string} data.typeCode
* @param {string} data.typeName
* @param {string} [data.remark]
* @param {number} [data.valid]
* @param {number} [data.version]
* @param {string} [data.createTime]
* @param {number} [data.creator]
* @param {string} [data.creatorName]
* @param {string} [data.updateTime]
* @param {number} [data.updater]
* @param {string} [data.updaterName]
*/
export function dataDictionaryTypeAdd(data) {
return request({
url: '/basic/platform-dict/savePlatformDictType',
method: 'post',
data
})
}
/**
* 删除字典类型单条数据
* @param {number} id
*/
export function dataDictionaryTypeDelete(id) {
return request({
url: '/basic/platform-dict/deletePlatformDictType',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,90 @@
/*
* @Author: gtz
* @Date: 2021-02-27 17:23:17
* @LastEditors: gtz
* @LastEditTime: 2021-03-25 16:21:36
* @Description: file content
*/
import request from '@/utils/request'
// 获取可视化布局图列表
export function VisualList(data) {
return request({
url: '/visual/visual/page',
method: 'post',
data
})
}
// 获取设备数据字典
export function eqList(data) {
return request({
url: '/basic/equipment/page',
method: 'post',
data
})
}
// 获取库位列表
export function locationList(data) {
return request({
url: '/basic/stock/page',
method: 'post',
data
})
}
// 获取可视化布局图信息单条数据
export function VisualDetail(id) {
return request({
url: '/visual/visual/get',
method: 'post',
data: { id }
})
}
// 更新可视化布局图信息单条数据
export function VisualUpdate(data) {
return request({
url: '/visual/visual/update',
method: 'post',
data
})
}
// 新增可视化布局图信息单条数据
export function VisualAdd(data) {
return request({
url: '/visual/visual/add',
method: 'post',
data
})
}
// 删除可视化布局图单条数据
export function VisualDelete(id) {
return request({
url: '/visual/visual/delete',
method: 'post',
data: { id }
})
}
// 获取可视化实时信息
export function VisualEqData(data) {
return request({
url: '/visual/visual/equipmentStatusList',
method: 'post',
data
})
}
// 获取可视化库位信息
export function VisualLocationData(data) {
return request({
url: '/visual/visual/stroageBoxForStockList',
method: 'post',
data
})
}

502
src/api/dict/index.js Normal file
View File

@ -0,0 +1,502 @@
/*
* @Date: 2021-01-21 18:08:29
* @LastEditors: fzq
* @LastEditTime: 2022-07-27 14:06:02
* @FilePath: \mt-bus-fe\src\api\dict\index.js
* @Description: 数据字典定义
*/
// import request from '@/utils/request'
import request from '@/utils/request'
import { requestWithCache } from '@/utils/request'
// 获取全部数据字典
export function getDictList() {
return request({
url: '/basic/platform-dict/list',
method: 'post'
})
}
// 获取设备列表列表
export function getDictDevice(data) {
return requestWithCache({
url: '/basic/equipment/page',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.name
}
})
} else {
return []
}
})
}
// 根据设备ID获取设备名称
export function getDictEqName(data) {
return requestWithCache({
url: '/basic/equipment/get',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data.name
} else {
return []
}
})
}
// 获取备品备件列表
export function getSpareList(data) {
return requestWithCache({
url: '/equipment/spare-part-log/pageDet',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.sparePartId,
name: item.sparePartName
}
})
} else {
return []
}
})
}
// 获取基础备品备件列表
export function getSpareDict(data) {
return requestWithCache({
url: '/basic/tool-spare-part/page',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.name
}
})
} else {
return []
}
})
}
// 获取工段列表
export function getWorkshop(data) {
return requestWithCache({
url: '/basic/workshop-section/page',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.name
}
})
} else {
return []
}
})
}
// 获取维修设备列表
export function getRepairDictDevice(data) {
return requestWithCache({
url: '/basic/equipment/page',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.name,
name: item.name
}
})
} else {
return []
}
})
}
// 获取设备类型列表
export function getDictDeviceType(data) {
return requestWithCache({
url: '/common/data-dictionary/equipmentTypeList',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data
} else {
return []
}
})
}
// 获取设备类型列表
export function getDictDeviceTypePage(data) {
return requestWithCache({
url: '/basic/equipment-type/page',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data.records
} else {
return []
}
})
}
// 获取物料列表
export function getDictBom(data) {
return requestWithCache({
url: '/basic/material/page',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data.records
} else {
return []
}
})
}
// 获取供应商列表
export function getDictSupplier(data) {
return requestWithCache({
url: '/common/data-dictionary/supplierList',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data
} else {
return []
}
})
}
// 获取单位列表
export function getDictUnit(data) {
return requestWithCache({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data: {
current: 1,
size: 999,
dictTypeId: '1392033901169348609'
}
}).then(res => {
if (res.code === 0) {
return res.data
} else {
return []
}
})
}
// 获取物料列表
export function getDictMaterial(data) {
return requestWithCache({
// url: '/material/material-date/materialList',
url: '/basic/material/page',
method: 'post',
data: {
current: 1,
size: 999,
...data
}
}).then(res => {
if (res.code === 0) {
return res.data?.records || []
} else {
return []
}
})
}
// 获取维修类型
export function getDictRepairType(data) {
return requestWithCache({
url: '/basic/maintenance-type/page',
method: 'post',
data: {
current: 1,
enabled: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.name
}
})
} else {
return []
}
})
}
// 获取员工列表
export function getDictWorker() {
return requestWithCache({
url: '/basic/worker/page',
method: 'post',
data: {
current: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.name
}
})
} else {
return []
}
})
}
// 获取基础备品备件列表
export function getDictSparepart(data) {
return requestWithCache({
url: '/basic/tool-spare-part/page',
method: 'post',
data: {
current: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.name + (item.model ? ' - ' + item.model : '')
}
})
} else {
return []
}
})
}
// 获取备件型号
export function getDictModel(data) {
return requestWithCache({
url: '/basic/tool-spare-part/list',
method: 'post',
data: {
current: 1,
size: 999,
...data
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.name
}
})
} else {
return []
}
})
}
// 质量---报废: 报废原因
export function scrapReasonList(data) {
return requestWithCache({
url: '/basic/scrap-information/page',
method: 'post',
data: {
current: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.scrap
}
})
} else {
return []
}
})
}
// 获取故障等级
export function faultLevelList(data) {
return requestWithCache({
url: '/common/data-dictionary-business/findAllByTypeOrCategory',
method: 'post',
subname: 'faultLevelList',
data: {
current: 1,
dataCategory: '故障',
dataType: '状况',
enabled: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.dataValue
}
})
} else {
return []
}
})
}
// 获取保养周期
export function maintainPeriod(data) {
return requestWithCache({
// url: '/basic/platform-dict/selectPlatformDictDataListByPage',
url: '/basic/maintenance-period/page',
method: 'post',
data: {
current: 1,
enabled: 1,
size: 999
// dictTypeId: '1393406291017252866'
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.maintenancePeriod
}
})
} else {
return []
}
})
}
// 质量检测计划 获取检测频率
export function detectionPeriod(data) {
return requestWithCache({
url: '/common/data-dictionary-business/findAllByTypeOrCategory',
method: 'post',
subname: 'detectionPeriod',
data: {
current: 1,
dataCategory: '时间',
dataType: '频率',
enabled: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.dataValue
}
})
} else {
return []
}
})
}
// 获取设备类型的参数
export function equipmentTypeParam(id) {
return requestWithCache({
url: '/equipment/equipment-parameter/findAllByIdOrName',
method: 'post',
data: {
current: 1,
equipmentTypeId: id,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.paramName
}
})
} else {
return []
}
})
}
// 获取设备状态
export function statusList(id) {
return requestWithCache({
url: '/basic/configure-display/page',
method: 'post',
data: {
current: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.status
}
})
} else {
return []
}
})
}
// 获取角色列表
export function workerRoleList() {
return requestWithCache({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data: {
dictTypeId: '1383318968677273601',
current: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.dataName
}
})
} else {
return []
}
})
}

110
src/api/equipment/bom.js Normal file
View File

@ -0,0 +1,110 @@
/*
* @Date: 2021-01-05 15:25:38
* @LastEditors: fzq
* @LastEditTime: 2022-06-12 20:26:23
* @FilePath: \basic-admin\src\api\equipment\bom.js
* @Description: 设备管理设备物料bom管理 接口定义
*/
import request from '@/utils/request'
// 获取物料bom列表
export function getBOMList(data) {
return request({
// url: '/equipment/equipment-bom/findAllByEQNameOrEQCodeOrMaterialNameWithPage',
// url: '/equipment/equipment-bom-detail/findAllByEQBomIdWithPage',
url: '/equipment/equipment-bom/page',
method: 'post',
data
})
}
// 新增物料bom
export function addBOM(data) {
return request({
url: '/equipment/equipment-bom/create',
method: 'post',
data
})
}
// 修改物料bom
export function editBOM(data) {
return request({
url: '/equipment/equipment-bom/update',
method: 'post',
data
})
}
// 删除物料bom
export function delBOM(data) {
return request({
url: '/equipment/equipment-bom/delete',
method: 'post',
data
})
}
// 根据id获取物料bom
export function getBOMInfo(data) {
return request({
url: '/equipment/equipment-bom/findById',
method: 'post',
data
})
}
// 获取设备物料bom列表
export function getDeviceBOMList(data) {
return request({
url: '/equipment/equipment-bom-detail/findAllByEQBomIdWithPage',
method: 'post',
data
})
}
// 新增设备物料bom
export function addDeviceBOM(data) {
return request({
url: '/equipment/equipment-bom-detail/create',
method: 'post',
data
})
}
// 修改设备物料bom
export function editDeviceBOM(data) {
return request({
url: '/equipment/equipment-bom-detail/update',
method: 'post',
data
})
}
// 删除设备物料bom
export function delDeviceBOM(data) {
return request({
url: '/equipment/equipment-bom-detail/delete',
method: 'post',
data
})
}
// 根据id获取设备物料bom详细
export function getDeviceBOMInfo(data) {
return request({
url: '/equipment/equipment-bom-detail/findById',
method: 'post',
data
})
}
// 获取基础物料
export function getMaterialList(data) {
return request({
url: '/basic/material/page',
method: 'post',
data
})
}

View File

@ -0,0 +1,80 @@
/*
* @Author: gtz
* @Date: 2021-04-16 16:23:35
* @LastEditors: gtz
* @LastEditTime: 2021-04-17 15:59:16
* @Description: file content
*/
import request from '@/utils/request'
// 获取设备管理员列表
export function page(data) {
return request({
url: '/equipment/equipment-operator-relation/findAll',
method: 'post',
data
})
}
// 添加设备管理员
export function add(data) {
return request({
url: '/equipment/equipment-operator-relation/create',
method: 'post',
data
})
}
// 编辑设备管理员
export function edit(data) {
return request({
url: '/equipment/equipment-operator-relation/update',
method: 'post',
data
})
}
// 删除设备管理员
export function del(data) {
return request({
url: '/equipment/equipment-operator-relation/delete',
method: 'post',
data
})
}
// 获取设备管理员详情
export function getInfo(data) {
return request({
url: '/equipment/equipment-operator-relation/findById',
method: 'post',
data
})
}
export function getWorkerList(data) {
return request({
url: '/basic/worker/page',
method: 'post',
data
})
}
export function getEqList(data) {
return request({
url: '/basic/equipment/page',
method: 'post',
data
})
}
export function getRoleList() {
return request({
url: '/equipment/equipment-operator-relation/findAllOperator',
method: 'post',
data: {
roleId: '1410037914748780545'
}
})
}

View File

@ -0,0 +1,18 @@
/*
* @Author: gtz
* @Date: 2021-06-17 15:20:52
* @LastEditors: gtz
* @LastEditTime: 2021-06-17 15:23:05
* @Description: file content
*/
import request from '@/utils/request'
// 获取设备管理员列表
export function getEqList(data) {
return request({
url: '/material/substrate-tree/getTree',
method: 'post',
data
})
}

View File

@ -0,0 +1,27 @@
/*
* @Date: 2021-01-14 19:17:57
* @LastEditors: guo
* @LastEditTime: 2021-01-14 19:56:16
* @FilePath: \basic-admin\src\api\equipment\index.js
* @Description: 设备部分基础接口
*/
import request from '@/utils/request'
// 获取设备状态配置列表
export function getStatusSettingList(data) {
return request({
url: '/equipment/equipment/list',
method: 'post',
data
})
}
// 修改设备状态配置
export function editStatusSetting(data) {
return request({
url: '/equipment/equipment/updateById',
method: 'post',
data
})
}

View File

@ -0,0 +1,199 @@
import request from '@/utils/request'
// 获取分页巡检内容
export function inspectionList(data) {
return request({
url: '/equipment/inspectionItem/page',
method: 'post',
data
})
}
// 获取巡检code
export function inspectionCode(data) {
return request({
url: '/equipment/inspectionItem/get-code',
method: 'post',
data
})
}
// 获取巡检内容
export function getInspection(data) {
return request({
url: '/equipment/inspectionItem/get',
method: 'post',
data
})
}
// 新增巡检内容
export function inspectionAdd(data) {
return request({
url: '/equipment/inspectionItem/add',
method: 'post',
data
})
}
// 更新巡检内容
export function inspectionUpdate(data) {
return request({
url: '/equipment/inspectionItem/update',
method: 'post',
data
})
}
// 删除巡检内容
export function inspectionDel(data) {
return request({
url: '/equipment/inspectionItem/delete',
method: 'post',
data
})
}
// 获取设备list
export function equipmentList(data) {
return request({
url: '/basic/equipment/list',
method: 'post',
data
})
}
// 获取分页巡检记录
export function inspectionLog(data) {
return request({
url: '/equipment/inspectionLog/page',
method: 'post',
data
})
}
// 设备分页
export function equipmentPage(data) {
return request({
url: '/equipment/inspectionItem/page-EQ',
method: 'post',
data
})
}
// 新增设备
export function equipmentAdd(data) {
return request({
url: '/equipment/inspectionItem/add-EQ',
method: 'post',
data
})
}
// 删除设备
export function equipmentDel(data) {
return request({
url: '/equipment/inspectionItem/delete-EQ',
method: 'post',
data
})
}
// 根据设备id获取巡检内容列表
export function eInspectionItem(data) {
return request({
url: '/equipment/inspectionItem/list-WithEQ',
method: 'post',
data
})
}
// 获取巡检内容列表
export function inspectionItemList(data) {
return request({
url: '/equipment/inspectionItem/list',
method: 'post',
data
})
}
// 新增巡检内容和设备的关联
export function einspectionItemAdd(data) {
return request({
url: '/equipment/inspectionItem/add-WithEQ',
method: 'post',
data
})
}
// 删除巡检内容和设备的关联
export function einspectionItDel(data) {
return request({
url: '/equipment/inspectionItem/delete-WithEQ',
method: 'post',
data
})
}
// 获取巡检记录下的巡检内容分页
export function einspectionItList(data) {
return request({
url: '/equipment/equipmentinspection-inspectionitem/list',
method: 'post',
data
})
}
// 新增设备巡检记录
export function einspectionLog(data) {
return request({
url: '/equipment/inspectionLog/add',
method: 'post',
data
})
}
// 获取设备巡检记录by巡检记录id
export function geteinspectionLog(data) {
return request({
url: '/equipment/inspectionLog/get',
method: 'post',
data
})
}
// 更新设备巡检记录
export function einspectionLogU(data) {
return request({
url: '/equipment/inspectionLog/update',
method: 'post',
data
})
}
// 删除设备巡检记录
export function einspectionLogD(data) {
return request({
url: '/equipment/inspectionLog/delete',
method: 'post',
data
})
}
// 更新巡检记录下的巡检内容
export function einspectionItemLogU(data) {
return request({
url: '/equipment/equipmentinspection-inspectionitem/update',
method: 'post',
data
})
}
// 获取设备巡检记录下的某条具体巡检内容
export function geteinspectionItemLog(data) {
return request({
url: '/equipment/equipmentinspection-inspectionitem/get',
method: 'post',
data
})
}

View File

@ -0,0 +1,53 @@
/*
* @Date: 2021-01-12 14:29:35
* @LastEditors: gtz
* @LastEditTime: 2022-06-15 11:05:57
* @FilePath: \mt-bus-fe\src\api\equipment\knowledge.js
* @Description: 设备维修知识库 接口定义
*/
import request from '@/utils/request'
// 获取设备维修列表
export function list(data) {
return request({
url: '/equipment/maintenance-knowledge/page',
method: 'post',
data
})
}
// 新增设备维护信息
export function add(data) {
return request({
url: '/equipment/maintenance-knowledge/create',
method: 'post',
data
})
}
// 删除设备维护信息
export function del(data) {
return request({
url: '/equipment/maintenance-knowledge/delete',
method: 'post',
data
})
}
// 修改设备维护信息
export function edit(data) {
return request({
url: '/equipment/maintenance-knowledge/update',
method: 'post',
data
})
}
// 获取维修信息详细
export function getInfo(data) {
return request({
url: '/equipment/maintenance-knowledge/findById',
method: 'post',
data
})
}

View File

@ -0,0 +1,161 @@
/*
* @Date: 2021-01-15 17:42:07
* @LastEditors: fzq
* @LastEditTime: 2022-07-08 10:02:14
* @FilePath: \basic-admin\src\api\equipment\maintain.js
* @Description: 保养计划 & 保养记录 接口定义
*/
import request from '@/utils/request'
// 获取保养计划列表 查询列表 依据设备id 或保养计划id 或 保养状态 或 时间段
export function getMaintainPlanList(data) {
return request({
url: '/equipment/equipment-maintenace-plan/list',
method: 'post',
data
})
}
// 获取保养计划分页 查询列表 依据设备id 或保养计划id 或 保养状态 或 时间段
export function getMaintainPlanPage(data) {
return request({
url: '/equipment/equipment-maintenace-plan/page',
method: 'post',
data
})
}
// 添加保养计划
export function addMaintainPlan(data) {
return request({
url: '/equipment/equipment-maintenace-plan/create',
method: 'post',
data
})
}
// 编辑保养计划
export function editMaintainPlan(data) {
return request({
url: '/equipment/equipment-maintenace-plan/update',
method: 'post',
data
})
}
// 删除保养计划
export function delMaintainPlan(data) {
return request({
url: '/equipment/equipment-maintenace-plan/delete',
method: 'post',
data
})
}
// 获取保养计划详情
export function getMaintainPlan(data) {
return request({
url: '/equipment/equipment-maintenace-plan/list',
method: 'post',
data
})
}
// 保养设备监控
export function getMaintainMonitor(data) {
return request({
url: '/equipment/equipment-maintenace-plan/monitor',
method: 'post',
data
})
}
// 获取保养日志列表 依据设备名 或 保养状态 或 时间段 或 设备保养计划id查询 或 保养记录和保养计划是否关联划分 或 保养人员 查询(保养记录和保养计划关联)
export function getMaintainLogList(data) {
return request({
url: '/equipment/equipment-maintenace-log/list',
method: 'post',
data
})
}
// 获取独立的保养日志列表 (保养记录和保养计划不关联)
export function getSingleMaintainLogList(data) {
return request({
url: '/equipment/equipment-maintenace-log/page',
method: 'post',
data
})
}
// 添加保养日志
export function addMaintainLog(data) {
return request({
url: '/equipment/equipment-maintenace-log/create',
method: 'post',
data
})
}
// 编辑保养日志
export function editMaintainLog(data) {
return request({
url: '/equipment/equipment-maintenace-log/update',
method: 'post',
data
})
}
// 删除保养日志
export function delMaintainLog(data) {
return request({
url: '/equipment/equipment-maintenace-log/delete',
method: 'post',
data
})
}
// 获取保养日志详情
export function getMaintainLog(data) {
return request({
url: '/equipment/equipment-maintenace-log/findById',
method: 'post',
data
})
}
// 获取设备列表
export function getEqList(data) {
return request({
url: '/basic/equipment/page',
method: 'post',
data
})
}
// 获取设备列表详情
export function getEqListDetail(data) {
return request({
url: '/basic/equipment/get',
method: 'post',
data
})
}
// 获取保养计划单号
export function getPlanCode(data) {
return request({
url: '/equipment/equipment-maintenace-plan/getEquipmentMaintenancePlanCode',
method: 'post',
data
})
}
// 获取保养记录单号
export function getLogCode(data) {
return request({
url: '/equipment/equipment-maintenace-plan/getEquipmentMaintenanceLogCode',
method: 'post',
data
})
}

View File

@ -0,0 +1,17 @@
/*
* @Date: 2021-02-01 19:01:56
* @LastEditors: guo
* @LastEditTime: 2021-02-01 19:02:43
* @FilePath: \basic-admin\src\api\equipment\monitoring.js
* @Description: 设备监控
*/
import request from '@/utils/request'
// 获取设备监控列表
export function getDeviceMonitoringList(data) {
return request({
url: '/equipment/monitor/list',
method: 'post',
data
})
}

187
src/api/equipment/param.js Normal file
View File

@ -0,0 +1,187 @@
/*
* @Date: 2021-02-01 19:33:11
* @LastEditors: gtz
* @LastEditTime: 2021-04-23 15:45:32
* @FilePath: \basic-admin\src\api\equipment\param.js
* @Description: 设备类型参数
*/
import request from '@/utils/request'
// 获取设备类型列表
export function getDeviceList(data) {
return request({
url: '/basic/equipment/page',
method: 'post',
data
})
}
// 获取设备类型详情
export function getDeviceInfo(data) {
return request({
url: '/basic/equipment/get',
method: 'post',
data
})
}
// 获取设备类型参数列表
export function getDeviceParamList(data) {
return request({
url: '/equipment/equipment-parameter/findAllByIdOrName',
method: 'post',
data
})
}
// 新增设备类型参数
export function addDeviceParam(data) {
return request({
url: '/equipment/equipment-parameter/create',
method: 'post',
data
})
}
// 编辑设备类型参数
export function editDeviceParam(data) {
return request({
url: '/equipment/equipment-parameter/update',
method: 'post',
data
})
}
// 删除设备类型参数
export function delDeviceParam(data) {
return request({
url: '/equipment/equipment-parameter/delete',
method: 'post',
data
})
}
// 查询设备类型参数
export function getDeviceParam(data) {
return request({
url: '/equipment/equipment-parameter/findById',
method: 'post',
data
})
}
// 获取设备类型参数code
export function getDeviceParamCode(data) {
return request({
url: '/equipment/equipment-parameter/getEquipmentParamCode',
method: 'post',
data
})
}
// 获取设备类型参数 事件配置列表
export function getDeviceEventSettingList(data) {
return request({
url: '/equipment/equipment-event/findAllByIdOrName',
method: 'post',
data
})
}
// 获取设备类型参数 事件配置详细
export function getDeviceEventSetting(data) {
return request({
url: '/equipment/equipment-event/findById',
method: 'post',
data
})
}
// 添加设备类型参数事件配置
export function addDeviceEventSetting(data) {
return request({
url: '/equipment/equipment-event/create',
method: 'post',
data
})
}
// 编辑设备类型参数事件配置
export function editDeviceEventSetting(data) {
return request({
url: 'equipment/equipment-event/update',
method: 'post',
data
})
}
// 删除设备类型参数事件配置
export function delDeviceEventSetting(data) {
return request({
url: '/equipment/equipment-event/delete',
method: 'post',
data
})
}
// 获取设备类型参数事件code
export function getDeviceEventCode(data) {
return request({
url: '/equipment/equipment-event/getEquipmentEventCode',
method: 'post',
data
})
}
// 获取设备类型报警列表
export function getDeviceAlarmSettingList(data) {
return request({
url: '/equipment/equipment-manage-alarm/findAllByALID',
method: 'post',
data
})
}
// 获取设备类型报警详细
export function getDeviceAlarmSetting(data) {
return request({
url: '/equipment/equipment-manage-alarm/findById',
method: 'post',
data
})
}
// 新增设备类型报警详细
export function addDeviceAlarmSetting(data) {
return request({
url: '/equipment/equipment-manage-alarm/create',
method: 'post',
data
})
}
// 编辑设备类型报警详细
export function editDeviceAlarmSetting(data) {
return request({
url: '/equipment/equipment-manage-alarm/update',
method: 'post',
data
})
}
// 删除设备类型报警详细
export function delDeviceAlarmSetting(data) {
return request({
url: '/equipment/equipment-manage-alarm/delete',
method: 'post',
data
})
}
// 获取设备类型报警编码
export function getDeviceAlarmCode(data) {
return request({
url: '/equipment/equipment-manage-alarm/getEquipmentAlarmCode',
method: 'post',
data
})
}

View File

@ -0,0 +1,16 @@
/*
* @Author: your name
* @Date: 2021-06-29 17:25:28
* @LastEditTime: 2021-06-30 09:06:28
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \mt-bus-fe\src\api\equipment\process.js
*/
import request from '@/utils/request'
export function getProcess(data) {
return request({
url: '/equipment/substrate-equipment-event-parameter/getAllEquipmentEventParameter',
method: 'post',
data
})
}

108
src/api/equipment/recipe.js Normal file
View File

@ -0,0 +1,108 @@
/*
* @Date: 2021-01-28 15:01:57
* @LastEditors: gtz
* @LastEditTime: 2021-04-20 10:50:48
* @FilePath: \basic-admin\src\api\equipment\recipe.js
* @Description: 设备配方设置
*/
import request from '@/utils/request'
// 获取设备配方CODE
export function getDeviceRecipeCode(data) {
return request({
url: '/equipment/equipment-recipe/getEquipmentRecipeCode',
method: 'post',
data
})
}
// 获取设备配方列表
export function getDeviceRecipeList(data) {
return request({
url: '/equipment/equipment-recipe/findAllByEquipmentTypeAndRecipeName',
method: 'post',
data
})
}
// 新建设备配方
export function addDeviceRecipe(data) {
return request({
url: '/equipment/equipment-recipe/create',
method: 'post',
data
})
}
// 编辑设备配方
export function editDeviceRecipe(data) {
return request({
url: '/equipment/equipment-recipe/update',
method: 'post',
data
})
}
// 删除设备配方
export function delDeviceRecipe(data) {
return request({
url: '/equipment/equipment-recipe/delete',
method: 'post',
data
})
}
// 获取设备配方
export function getDeviceRecipe(data) {
return request({
url: '/equipment/equipment-recipe/findById',
method: 'post',
data
})
}
// 根据id获取设备配方参数列表
export function getDeviceRecipeParamList(data) {
return request({
url: '/equipment/equipment-recipe-parameter/findAllByRecipeIdWithPage',
method: 'post',
data
})
}
// 新增设备配方参数
export function addDeviceRecipeParam(data) {
return request({
url: '/equipment/equipment-recipe-parameter/create',
method: 'post',
data
})
}
// 修改设备配方参数
export function editDeviceRecipeParam(data) {
return request({
url: '/equipment/equipment-recipe-parameter/update',
method: 'post',
data
})
}
// 删除设备配方参数
export function delDeviceRecipeParam(data) {
return request({
url: '/equipment/equipment-recipe-parameter/delete',
method: 'post',
data
})
}
// 获取设备配方参数详细 (等待接口补全)
export function getDeviceRecipeParam(data) {
return request({
url: '/equipment/equipment-recipe-parameter/findById',
method: 'post',
data
})
}

115
src/api/equipment/repair.js Normal file
View File

@ -0,0 +1,115 @@
/*
* @Date: 2021-01-12 14:29:35
* @LastEditors: fzq
* @LastEditTime: 2022-05-18 10:30:35
* @FilePath: \basic-admin\src\api\equipment\repair.js
* @Description: 设备维修管理 接口定义
*/
import request from '@/utils/request'
// 获取设备维修列表
export function getRepairList(data) {
return request({
url: '/equipment/equipment-repair/page',
method: 'post',
data
})
}
// 新增设备维护信息
export function addRepairInfo(data) {
return request({
url: '/equipment/equipment-repair/create',
method: 'post',
data
})
}
// 删除设备维护信息
export function delRepairInfo(data) {
return request({
url: '/equipment/equipment-repair/delete',
method: 'post',
data
})
}
// 修改设备维护信息
export function editRepairInfo(data) {
return request({
url: '/equipment/equipment-repair/update',
method: 'post',
data
})
}
// 获取维修信息详细
export function getRepairInfo(data) {
return request({
url: '/equipment/equipment-repair/findById',
method: 'post',
data
})
}
// 获取维修单号code
export function getCode() {
return request({
url: '/equipment/equipment-repair/getEquipmentRepairCode',
method: 'post'
})
}
// // 获取设备维修列表
// export function getRepairList(data) {
// return request({
// url: '/equipment/equipment-repair/findAllByMaintenanceStatusOrTime',
// method: 'post',
// data
// })
// }
// // 新增设备维护信息
// export function addRepairInfo(data) {
// return request({
// url: '/equipment/equipment-repair/create',
// method: 'post',
// data
// })
// }
// // 删除设备维护信息
// export function delRepairInfo(data) {
// return request({
// url: '/equipment/equipment-repair/delete',
// method: 'post',
// data
// })
// }
// // 修改设备维护信息
// export function editRepairInfo(data) {
// return request({
// url: '/equipment/equipment-repair/update',
// method: 'post',
// data
// })
// }
// // 获取维修信息详细
// export function getRepairInfo(data) {
// return request({
// url: '/equipment/equipment-repair/findById',
// method: 'post',
// data
// })
// }
// // 获取维修单号code
// export function getCode() {
// return request({
// url: '/equipment/equipment-repair/getEquipmentRepairCode',
// method: 'post'
// })
// }

152
src/api/equipment/spare.js Normal file
View File

@ -0,0 +1,152 @@
/*
* @Date: 2021-01-05 15:25:38
* @LastEditors: fzq
* @LastEditTime: 2022-09-15 11:06:15
* @FilePath: \basic-admin\src\api\equipment\spare.js
* @Description: 设备管理备品备件管理
*/
import request from '@/utils/request'
// // 获取备品备件列表
// export function getSpareList(data) {
// return request({
// url: '/equipment/spare-parts/page',
// method: 'post',
// data
// })
// }
// // 新增备品备件
// export function addSapre(data) {
// return request({
// url: '/equipment/spare-parts/create',
// method: 'post',
// data
// })
// }
// // 修改备品备件
// export function editSpare(data) {
// return request({
// url: '/equipment/spare-parts/update',
// method: 'post',
// data
// })
// }
// // 删除备品备件
// export function delSpare(data) {
// return request({
// url: '/equipment/spare-parts/delete',
// method: 'post',
// data
// })
// }
// // 获取备品备件详情
// export function getSpareInfo(data) {
// return request({
// url: '/equipment/spare-parts/findById',
// method: 'post',
// data
// })
// }
// // 获取备件型号
// export function getSpareModel(data) {
// return request({
// url: '/basic/tool-spare-part/list',
// method: 'post',
// data
// })
// }
// 获取备品备件记录列表
export function getSpareList(data) {
return request({
url: '/equipment/spare-part-log/page',
method: 'post',
data
})
}
// 新增备品备件记录
export function addSpare(data) {
return request({
url: '/equipment/spare-part-log/add',
method: 'post',
data
})
}
// 修改备品备件记录
export function editSpare(data) {
return request({
url: '/equipment/spare-part-log/update',
method: 'post',
data
})
}
// 删除备品备件记录
export function delSpare(data) {
return request({
url: '/equipment/spare-part-log/delete',
method: 'post',
data
})
}
// id获取备品备件记录
export function getSpareInfo(data) {
return request({
url: '/equipment/spare-part-log/get',
method: 'post',
data
})
}
// 获取备品备件详情分页记录
export function getSpareDetail(data) {
return request({
url: '/equipment/spare-part-log/pageDet',
method: 'post',
data
})
}
// 根据ID获取备品备件详情记录
export function getSpareDetailById(data) {
return request({
url: '/equipment/spare-part-log/getDet',
method: 'post',
data
})
}
// 新增备品备件详情
export function spareDetailAdd(data) {
return request({
url: '/equipment/spare-part-log/addDet',
method: 'post',
data
})
}
// 删除备品备件详情
export function spareDetailDel(data) {
return request({
url: '/equipment/spare-part-log/deleteDet',
method: 'post',
data
})
}
// 编辑备品备件详情
export function spareDetailUpdate(data) {
return request({
url: '/equipment/spare-part-log/updateDet',
method: 'post',
data
})
}

View File

@ -0,0 +1,62 @@
/*
* @Author: gtz
* @Date: 2021-03-21 15:14:22
* @LastEditors: gtz
* @LastEditTime: 2021-03-21 18:13:56
* @Description: file content
*/
import request from '@/utils/request'
// 获取告警列表
export function list(data) {
return request({
url: '/team/team-alarmHandle/page',
method: 'post',
data
})
}
// id获取告警
export function getInfo(data) {
return request({
url: '/team/team-alarmHandle/get',
method: 'post',
data
})
}
// 删除告警
export function del(data) {
return request({
url: '/team/team-alarmHandle/delete',
method: 'post',
data
})
}
// 新增告警
export function add(data) {
return request({
url: '/team/team-alarmHandle/add',
method: 'post',
data
})
}
// 更新告警
export function update(data) {
return request({
url: '/team/team-alarmHandle/update',
method: 'post',
data
})
}
// 获取员工列表
export function getWorkerList(data) {
return request({
url: '/basic/worker/page',
method: 'post',
data
})
}

View File

@ -0,0 +1,64 @@
/*
* @Author: gtz
* @Date: 2022-02-23 11:25:44
* @LastEditors: gtz
* @LastEditTime: 2022-02-23 15:30:54
* @Description: file content
* @FilePath: \mt-bus-fe\src\api\factory-manage\equipmentAlarm.js
*/
import request from '@/utils/request'
// 获取告警列表
export function list(data) {
return request({
url: '/team/team-equipmentAlarmHandle/page',
method: 'post',
data
})
}
// id获取告警
export function getInfo(data) {
return request({
url: '/team/team-equipmentAlarmHandle/get',
method: 'post',
data
})
}
// 删除告警
export function del(data) {
return request({
url: '/team/team-equipmentAlarmHandle/delete',
method: 'post',
data
})
}
// 新增告警
export function add(data) {
return request({
url: '/team/team-equipmentAlarmHandle/add',
method: 'post',
data
})
}
// 更新告警
export function update(data) {
return request({
url: '/team/team-equipmentAlarmHandle/update',
method: 'post',
data
})
}
// 获取员工列表
export function getWorkerList(data) {
return request({
url: '/basic/worker/page',
method: 'post',
data
})
}

View File

@ -0,0 +1,49 @@
/*
* @Author: lb
* @Date: 2022-07-11 15:25:44
* @LastEditors: lb
* @LastEditTime: 2022-07-11 15:25:44
* @Description:
* @FilePath: 设备监控接口
*/
import request from '@/utils/request'
/**
* 获取设备监控分页列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} data.enabled
* @param {string} data.name 设备名称
* @param {number} data.pdlId 产线id,示例值(1)
*/
export function list(data) {
return request({
url: '/equipment/monitor/page',
method: 'post',
data
})
}
/**
* 获取产线列表
*/
export function getProductLineList() {
return request({
url: '/basic/production-line/list',
method: 'post',
data: {}
})
}
/**
* 获取设备列表
*/
export function getEquipmentList() {
return request({
url: '/basic/equipment/list',
method: 'post',
data: {}
})
}

View File

@ -0,0 +1,58 @@
/*
* @Author: lb
* @Date: 2022-06-22 14:00:17
* @LastEditors: lb
* @LastEditTime: 2022-06-22 14:00:17
* @Description: 实时数据接口
*/
import request from '@/utils/request'
function getOrderRealtimeData() { // 订单生产实时数据
return request({
url: '/team/production-monitoring/orderProductionRealTimeData',
method: 'POST'
})
}
function getLineRealtimeData() { // 产线生产实时数据
return request({
url: '/team/production-monitoring/lineProductionRealTimeData',
method: 'POST'
})
}
function getEquipmentRealtimeData() { // 设备生产实时数据
return request({
url: '/team/production-monitoring/equipmentProductionRealTimeData',
method: 'POST'
})
}
function getTeamRealtimeData() { // 班组生产实时数据
return request({
url: '/team/production-monitoring/teamProductionRealTimeData',
method: 'POST'
})
}
function getQualityRealtimeData() { // 质量检查实时数据
return request({
url: '/team/production-monitoring/qualityInspectionRealTimeData',
method: 'POST'
})
}
export default function(type) {
switch (type) {
case 'order':
return getOrderRealtimeData()
case 'line':
return getLineRealtimeData()
case 'equipment':
return getEquipmentRealtimeData()
case 'team':
return getTeamRealtimeData()
case 'quality':
return getQualityRealtimeData()
}
}

View File

@ -0,0 +1,143 @@
/*
* @Author: gtz
* @Date: 2021-01-27 10:07:42
* @LastEditors: gtz
* @LastEditTime: 2021-03-30 16:58:47
* @Description: file content
*/
import request from '@/utils/request'
/**
* 获取物料批次分页列表
* @param {object} data
* @param {number|string} [data.id]
* @param {number} data.size
* @param {number} data.current
* @param {string} [data.key] 关键字(物料/物料批次的code/名称)
* @param {string} [data.externalCode]
* @param {string} [data.enabled]
*/
export function list(data) {
return request({
url: '/material/material-date/page',
method: 'post',
data
})
}
/**
* 获取某个物料批次的详情
* @param {object} data
* @param {number|string} data.id
*/
export function getInfo(data) {
return request({
url: '/material/material-date/get',
method: 'post',
data
})
}
/**
* 通过外部编码获取物料批次
* @param {object} data
* @param {number|string} [data.id]
* @param {number} data.size
* @param {number} data.current
* @param {string} [data.key] 关键字(物料/物料批次的code/名称)
* @param {string} [data.externalCode]
* @param {string} [data.enabled]
*/
export function getByCode(data) {
return request({
url: '/material/material-date/getByCode',
method: 'post',
data
})
}
/**
* 删除物料批次信息
* @param {object} data
* @param {number|string} data.id
*/
export function del(data) {
return request({
url: '/material/material-date/delete',
method: 'post',
data
})
}
/**
* 更新物料批次信息
* @param {object} data
* @param {number|string} data.id
* @param {number|string} data.materialId
* @param {string} data.name
* @param {string} [data.code]
* @param {string} [data.description]
* @param {string} [data.remark]
*/
export function update(data) {
return request({
url: '/material/material-date/update',
method: 'post',
data
})
}
/**
* 新增物料批次信息
* @param {object} data
* @param {number|string} data.id
* @param {number|string} data.materialId
* @param {string} data.name
* @param {string} [data.code]
* @param {string} [data.description]
* @param {string} [data.remark]
*/
export function add(data) {
return request({
url: '/material/material-date/add',
method: 'post',
data
})
}
/**
* 获取自动生成的物料批次编码
*/
export function getCode() {
return request({
url: '/material/material-date/getCode',
method: 'post'
})
}
/**
* 获取操作员列表
* 当前采用的是 '基础资料'->'员工分页获取方式', 后期可能会更改
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.key]
*/
export function getOperators(data) {
return request({
url: '/basic/worker/page',
method: 'post',
data
})
}
/**
* 获取物料列表
*/
export function getMaterialList() {
return request({
url: 'material/material-date/materialList',
method: 'post'
})
}

View File

@ -0,0 +1,41 @@
import request from '@/utils/request'
export function list(data) {
return request({
url: '/material/material-bom-detail/page',
method: 'post',
data
})
}
export function getInfo(data) {
return request({
url: '/material/material-bom-detail/get',
method: 'post',
data
})
}
export function del(data) {
return request({
url: '/material/material-bom-detail/delete',
method: 'post',
data
})
}
export function add(data) {
return request({
url: '/material/material-bom-detail/add',
method: 'post',
data
})
}
export function update(data) {
return request({
url: '/material/material-bom-detail/update',
method: 'post',
data
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: gtz
* @Date: 2021-01-27 10:07:42
* @LastEditors: gtz
* @LastEditTime: 2021-03-30 16:31:18
* @Description: file content
*/
import request from '@/utils/request'
export function list(data) {
return request({
url: 'material/material-bom/page',
method: 'post',
data
})
}
export function getInfo(data) {
return request({
url: '/material/material-bom/get',
method: 'post',
data
})
}
export function del(data) {
return request({
url: '/material/material-bom/delete',
method: 'post',
data
})
}
export function add(data) {
return request({
url: '/material/material-bom/add',
method: 'post',
data
})
}
export function getCode() {
return request({
url: '/material/material-bom/getCode',
method: 'post'
})
}
export function update(data) {
return request({
url: '/material/material-bom/update',
method: 'post',
data
})
}

View File

@ -0,0 +1,24 @@
/*
* @Author: gtz
* @Date: 2021-04-28 11:26:59
* @LastEditors: gtz
* @LastEditTime: 2021-04-28 11:27:53
* @Description: file content
*/
import request from '@/utils/request'
export function list(data) {
return request({
url: '/material/equipment-material-replace/page',
method: 'post',
data
})
}
export function getMaterialBatchList(data) {
return request({
url: '/material/material-date/page',
method: 'post',
data
})
}

View File

@ -0,0 +1,24 @@
/*
* @Author: gtz
* @Date: 2021-04-28 11:26:59
* @LastEditors: gtz
* @LastEditTime: 2021-04-28 11:27:53
* @Description: file content
*/
import request from '@/utils/request'
export function list(data) {
return request({
url: '/material/equipment-material-replace/page',
method: 'post',
data
})
}
export function getMaterialBatchList(data) {
return request({
url: '/material/material-date/page',
method: 'post',
data
})
}

View File

@ -0,0 +1,22 @@
import request from '@/utils/request'
export function list(data) {
return request({
// url: 'material/material-date/materialList',
url: 'basic/material/page',
method: 'post',
data: {
current: 1,
size: 999,
...data
}
})
}
export function listEquipment(data) {
return request({
url: 'material/equipment-material-replace/equipmentList',
method: 'post',
data
})
}

View File

@ -0,0 +1,161 @@
import request from '@/utils/request'
/**
* 获取换料操作分页列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.key]
*/
export function list(data) {
return request({
url: '/material/equipment-material-replace/page',
method: 'post',
data
})
}
/**
* 获取换料操作详细内容
* @param {object} data
* @param {string|number} data.id
*/
export function getInfo(data) {
return request({
url: '/material/equipment-material-replace/get',
method: 'post',
data
})
}
/**
* 删除换料操作
* @param {object} data
* @param {string|number} data.id
*/
export function del(data) {
return request({
url: '/material/equipment-material-replace/delete',
method: 'post',
data
})
}
/**
* 新增换料操作
* @param {object} data
* @param {string|number} [data.id]
* @param {string} data.operator
* @param {string} data.source
* @param {date} data.replaceTime
* @param {string|number} data.materialDateId
* @param {string} [data.materialDateCode]
* @param {string|number} data.equipmentId
* @param {string} [data.equipmentCode]
* @param {string} [data.type]
* @param {string} [data.remark]
*/
export function add(data) {
return request({
url: '/material/equipment-material-replace/add',
method: 'post',
data
})
}
/**
* 更新换料操作
* @param {object} data
* @param {string|number} data.id
* @param {string} data.operator
* @param {string} data.source
* @param {date} data.replaceTime
* @param {string|number} data.materialDateId
* @param {string} [data.materialDateCode]
* @param {string|number} data.equipmentId
* @param {string} [data.equipmentCode]
* @param {string} [data.type]
* @param {string} [data.remark]
*/
export function update(data) {
return request({
url: '/material/equipment-material-replace/update',
method: 'post',
data
})
}
/**
* 获取操作员列表
* 当前采用的是 '基础资料'->'员工分页获取方式', 后期可能会更改
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.key]
*/
export function getOperators(data) {
return request({
url: '/basic/worker/page',
method: 'post',
data
})
}
/**
* 通过外部编码获取物料批次
* @param {object} data
* @param {number} [data.current]
* @param {number} [data.size]
* @param {string} data.externalCode
* @param {string} [data.key]
* @param {number} [data.enabled]
*/
export function getBatchByCode(data) {
return request({
url: '/material/material-date/getByCode',
method: 'post',
data
})
}
/**
* 获取物料列表
*/
export function getMaterialList(data) {
return request({
// url: '/material/material-date/materialList',
url: '/basic/material/page',
method: 'post',
data: {
current: 1,
size: 999,
...data
}
})
}
/**
* 获取换料操作里的设备列表
*/
export function getEquipmentList() {
return request({
url: '/material/equipment-material-replace/equipmentList',
method: 'post'
})
}
/**
* 获取换料操作添加时的批次列表
*/
export function getBatchList() {
return request({
url: '/material/material-date/list',
method: 'post',
data: {
current: 1,
size: 999
}
})
}

View File

@ -0,0 +1,26 @@
/*
* @Author: your name
* @Date: 2021-04-26 11:15:51
* @LastEditTime: 2021-05-25 16:26:13
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \mt-bus-fe\src\api\material-manage\report.js
*/
import request from '@/utils/request'
export function getTreeList(data) {
return request({
url: '/material/substrate-tree/getTree',
method: 'post',
data
})
}
export function getData(data) {
return request({
url: '/material/substrate-tree/list',
method: 'post',
data
})
}

View File

@ -0,0 +1,159 @@
import request from '@/utils/request'
/**
* 新增在线物料使用记录
* @param {object} data
* @param {number|string} [data.id]
* @param {number|string} data.materialId
* @param {number|string} data.materialDateId
* @param {number|string} data.equipmentId
* @param {number} [data.num]
* @param {number|string} [data.unitId]
* @param {date} [data.useTime]
* @param {string} [data.remark]
*/
export function add(data) {
return request({
url: '/material/online-material-use/add',
method: 'post',
data
})
}
/**
* 删除在线物料使用记录
* @param {object} data
* @param {number|string} data.id
*/
export function del(data) {
return request({
url: '/material/online-material-use/delete',
method: 'post',
data
})
}
/**
* 获取在线物料使用记录详情
* @param {object} data
* @param {number|string} data.id
*/
export function getInfo(data) {
return request({
url: '/material/online-material-use/get',
method: 'post',
data
})
}
/**
* 获取在线物料使用分页记录
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.equipmentName]
* @param {string} [data.materialName]
*/
export function list(data) {
return request({
url: '/material/online-material-use/page',
method: 'post',
data
})
}
/**
* 更新在线物料使用分页记录
* @param {object} data
* @param {number|string} data.id
* @param {number|string} data.materialId
* @param {number|string} data.materialDateId
* @param {number|string} data.equipmentId
* @param {number} [data.num]
* @param {number|string} [data.unitId]
* @param {date} [data.useTime]
* @param {string} [data.remark]
*/
export function update(data) {
return request({
url: '/material/online-material-use/update',
method: 'post',
data
})
}
/**
* 获取物料列表
*/
export function getMaterialList(data) {
return request({
// url: '/material/material-date/materialList',
url: '/basic/material/page',
method: 'post',
data: {
current: 1,
size: 999,
...data
}
})
}
/**
* 获取换料操作里的设备列表
*/
export function getEquipmentList() {
return request({
url: '/material/equipment-material-replace/equipmentList',
method: 'post'
})
}
/**
* 获取物料批次列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.externalCode]
* @param {number|string} [data.id]
* @param {string} [data.key]
*/
export function getMaterialBatchList(data) {
return request({
url: '/material/material-date/list',
method: 'post',
data
})
}
/**
* 分页获取字典类型列表
* @param {object} data
* @param {number|string} data.dictTypeId
* @param {number} data.size
* @param {number} data.current
* @param {string} [data.dataCode]
* @param {number} [data.dataName]
* @param {number} [data.enabled]
*/
export function getDictListByType(data) {
return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data
})
}
/** @deprecated
* 获取物料id获取可用的批次列表
* @param {number|string} id
*/
export function getBatchListByMaterialId(id) {
return request({
url: '/material/online-material-use/getDateListByMaterialId',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,40 @@
/*
* @Author: zwq
* @Date: 2021-06-24 15:44:43
* @LastEditors: zwq
* @LastEditTime: 2021-07-19 15:14:23
* @Description:
*/
import request from '@/utils/request'
export function erpToMesMaterialList(data) { // 获取列表
return request({
url: '/order/erp-to-mes-materials-info/page',
method: 'post',
data
})
}
export function erpToMesMaterialBomList(data) { // 获取列表
return request({
url: '/order/erp-to-mes-materials-bom-info/page',
method: 'post',
data
})
}
export function erpToMesOrderList(data) { // 获取列表
return request({
url: '/order/erp-to-mes-order-info/page',
method: 'post',
data
})
}
export function mesToErpAdd(data) { // 新增mesToErp单条数据
return request({
url: '/order/mes-to-erp-order/add',
method: 'post',
data
})
}

View File

@ -0,0 +1,72 @@
import request from '@/utils/request'
export function List(data) { // 获取分页订单及各项费用
return request({
url: 'order/order-cost/page',
method: 'post',
data
})
}
export function listForAdd() { // 用于新增费用,查询未统计过费用的订单列表
return request({
url: 'order/order-cost/listForAdd',
method: 'post'
})
}
export function orderAdd(data) { // 新增费用主记录
return request({
url: 'order/order-cost/add',
method: 'post',
data
})
}
export function feeDetailPage(data) { // 订单id获取订单某类费用下的详情分页
return request({
url: 'order/order-cost/pageDet',
method: 'post',
data
})
}
export function feeDetailAdd(data) { // 新增费用详情
return request({
url: 'order/order-cost/addDet',
method: 'post',
data
})
}
export function feeDetail(data) { // 查询费用详情根据id
return request({
url: 'order/order-cost/getDet',
method: 'post',
data
})
}
export function UpdateDetail(data) { // 更新费用详情
return request({
url: 'order/order-cost/updateDet',
method: 'post',
data
})
}
export function deleteDetail(data) { // 删除费用详情
return request({
url: 'order/order-cost/deleteDet',
method: 'post',
data
})
}
export function deleteFee(data) { // 删除费用主记录
return request({
url: 'order/order-cost/delete',
method: 'post',
data
})
}

View File

@ -0,0 +1,54 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-03-30 18:05:12
* @Description:
*/
import request from '@/utils/request'
export function equipmentEventTrackList(data) { // 获取设备事件追溯列表
return request({
url: '/order/wo-equipment-event-param/page',
method: 'post',
data
})
}
export function equipmentParametersTrackList(data) { // 获取设备参数追溯列表
return request({
url: '/order/wo-equipment-event-param/page-equipment-param-review',
method: 'post',
data
})
}
export function processSubstrateDataTrackList(data) { // 获取加工基板数据追溯列表
return request({
url: '/order/wo-substrate/page-review',
method: 'post',
data
})
}
export function substrateParametersTrackList(data) { // 获取基板参数追溯表
return request({
url: '/order/wo-equipment-event-param/page-substrate-param',
method: 'post',
data
})
}
export function substrateEquipmentList(data) { // 获取基板设备追溯列表
return request({
url: '/order/wo-equipment-event-param/substrate-equipment-exchanage',
method: 'post',
data
})
}
export function substrateEquipmentDetail(data) { // 获取基板设备追溯详情
return request({
url: '/order/wo-equipment-event-param/view-device-parameters',
method: 'post',
data
})
}

View File

@ -0,0 +1,90 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-07-21 16:45:02
* @Description:
*/
import request from '@/utils/request'
export function orderList(data) { // 获取订单列表
return request({
url: '/order/order/page',
method: 'post',
data
})
}
export function orderDetail(id) { // 获取订单单条数据
const data = {
'id': id
}
return request({
url: '/order/order/get',
method: 'post',
data
})
}
export function orderUpdate(data) { // 更新订单单条数据
return request({
url: '/order/order/update',
method: 'post',
data
})
}
export function orderAdd(data) { // 新增订单单条数据
return request({
url: '/order/order/add',
method: 'post',
data
})
}
export function orderCode() { // 获取订单code
return request({
url: '/order/order/get-code',
method: 'post'
})
}
export function orderDelete(id) { // 删除订单单条数据
return request({
url: '/order/order/delete',
method: 'post',
data: { id }
})
}
export function reportList(data) { // 获取订单报工信息
return request({
url: '/order/wo-completion-report/page',
method: 'post',
data
})
}
export function getDict(data) { // 获取数据字典
return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data
})
}
export function toWorkOrder(data) { // 订单下发为工单
return request({
url: '/order/order/to-work-order',
method: 'post',
data
})
}
export function orderMonitor(data) { // 获取分页订单监控信息
return request({
url: '/order/order/monitor',
method: 'post',
data
})
}

View File

@ -0,0 +1,66 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-05-28 15:38:19
* @Description:
*/
import request from '@/utils/request'
export function powerClassificationList(data) { // 获取powerClassification列表
return request({
url: '/order/power-classification/page',
method: 'post',
data
})
}
export function powerClassificationTree(data) { // 获取powerClassification列表
return request({
url: '/order/power-classification/tree',
method: 'post',
data
})
}
export function powerClassificationDetail(id) { // 获取powerClassification单条数据
const data = {
'id': id
}
return request({
url: '/order/power-classification/get',
method: 'post',
data
})
}
export function powerClassificationUpdate(data) { // 更新powerClassification单条数据
return request({
url: '/order/power-classification/update',
method: 'post',
data
})
}
export function powerClassificationAdd(data) { // 新增powerClassification单条数据
return request({
url: '/order/power-classification/add',
method: 'post',
data
})
}
export function powerClassificationCode() { // 获取powerClassificationcode
return request({
url: '/order/power-classification/get-code',
method: 'post'
})
}
export function powerClassificationDelete(id) { // 删除powerClassification单条数据
return request({
url: '/order/power-classification/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,58 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-03-30 18:06:31
* @Description:
*/
import request from '@/utils/request'
export function substrateBatchList(data) { // 获取基板批次列表
return request({
url: '/order/substrate-batch-info/page',
method: 'post',
data
})
}
export function substrateBatchDetail(id) { // 获取基板批次单条数据
const data = {
'id': id
}
return request({
url: '/order/substrate-batch-info/get',
method: 'post',
data
})
}
export function substrateBatchUpdate(data) { // 更新基板批次单条数据
return request({
url: '/order/substrate-batch-info/update',
method: 'post',
data
})
}
export function substrateBatchAdd(data) { // 新增基板批次单条数据
return request({
url: '/order/substrate-batch-info/add',
method: 'post',
data
})
}
export function substrateBatchCode() { // 获取基板批次code
return request({
url: '/order/substrate-batch-info/get-code',
method: 'post'
})
}
export function substrateBatchDelete(id) { // 删除基板批次单条数据
return request({
url: '/order/substrate-batch-info/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,58 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-03-30 18:34:26
* @Description:
*/
import request from '@/utils/request'
export function substrateBatchAttrList(data) { // 获取基板批次列表
return request({
url: '/order/sub-batch-info-attr/page',
method: 'post',
data
})
}
export function substrateBatchAttrDetail(id) { // 获取基板批次单条数据
const data = {
'id': id
}
return request({
url: '/order/sub-batch-info-attr/get',
method: 'post',
data
})
}
export function substrateBatchAttrUpdate(data) { // 更新基板批次单条数据
return request({
url: '/order/sub-batch-info-attr/update',
method: 'post',
data
})
}
export function substrateBatchAttrAdd(data) { // 新增基板批次单条数据
return request({
url: '/order/sub-batch-info-attr/add',
method: 'post',
data
})
}
export function substrateBatchAttrCode() { // 获取基板批次code
return request({
url: '/order/sub-batch-info-attr/get-code',
method: 'post'
})
}
export function substrateBatchAttrDelete(id) { // 删除基板批次单条数据
return request({
url: '/order/sub-batch-info-attr/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,237 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: gtz
* @LastEditTime: 2022-04-20 11:25:25
* @Description:
*/
import request from '@/utils/request'
export function workOrderList(data) { // 获取工单列表
return request({
url: '/order/work-order/page',
method: 'post',
data
})
}
export function workOrderDetail(id) { // 获取工单单条数据
const data = {
'id': id
}
return request({
url: '/order/work-order/get',
method: 'post',
data
})
}
export function workOrderUpdate(data) { // 更新工单单条数据
return request({
url: '/order/work-order/update',
method: 'post',
data
})
}
export function workOrderAdd(data) { // 新增工单单条数据
return request({
url: '/order/work-order/add',
method: 'post',
data
})
}
export function workOrderCode() { // 获取工单code
return request({
url: '/order/work-order/get-code',
method: 'post'
})
}
export function workOrderDelete(id) { // 删除工单单条数据
return request({
url: '/order/work-order/delete',
method: 'post',
data: { id }
})
}
export function workOrderIssueList(data) { // 获取工单下发列表
return request({
url: '/order/wo-sync/page',
method: 'post',
data
})
}
export function packagingBoxList(data) { // 获取包装基板列表
return request({
url: '/order/wo-packaging-box-substrate/page',
method: 'post',
data
})
}
export function packagingList(data) { // 获取包装标签列表
return request({
url: '/order/wo-packaging-box/page',
method: 'post',
data
})
}
export function packagingDetail(id) { // 获取包装标签详情
const data = {
'id': id
}
return request({
url: '/order/wo-packaging-box/get',
method: 'post',
data
})
}
export function syncAdd(data) { // 新增下发工单单条数据
return request({
url: '/order/wo-sync/add',
method: 'post',
data
})
}
export function packagingInventoryList(data) { // 获取包装清单列表
return request({
url: '/order/wo-packaging-box/page-for-inventory',
method: 'post',
data
})
}
export function updateForStatus(data) { // 激活
return request({
url: '/order/work-order/updateForStatus',
method: 'post',
data
})
}
export function workOrderStart(data) { // 开始
return request({
url: '/order/work-order/start',
method: 'post',
data
})
}
export function workOrderSuspend(data) { // 暂停
return request({
url: '/order/work-order/pause',
method: 'post',
data
})
}
export function workOrderComplete(data) { // 结束
return request({
url: '/order/work-order/complete',
method: 'post',
data
})
}
export function getProductLineList(data) { // 获取产线列表
return request({
url: '/basic/production-line/page',
method: 'post',
data
})
}
export function getWorkersList(data) { // 获取员工列表
return request({
url: '/basic/worker/page',
method: 'post',
data
})
}
export function getMaterialPage(data) { // 获取工单物料批次
return request({
url: 'order/work-order-material-date/page',
method: 'post',
data
})
}
export function getMaterialList(data) { // 获取工单物料批次列表
return request({
url: '/order/work-order-material-date/list',
method: 'post',
data
})
}
export function batchList(data) { // 获取工单物料批次列表
return request({
url: '/material/material-date/list',
method: 'post',
data
})
}
export function getBatchById(data) { // 根据id获取工单物料批次
return request({
url: '/order/work-order-material-date/get',
method: 'post',
data
})
}
export function addBatch(data) { // 新增工单物料批次
return request({
url: '/order/work-order-material-date/add',
method: 'post',
data
})
}
export function delBatch(data) { // 删除工单物料批次
return request({
url: '/order/work-order-material-date/delete',
method: 'post',
data
})
}
export function editBatch(data) { // 编辑工单物料批次
return request({
url: 'order/work-order-material-date/update',
method: 'post',
data
})
}
export function listPld(data) { // 所有产线,和正在产线上生产的工单
return request({
url: 'order/work-order/list-pdl',
method: 'post',
data
})
}
export function startOrder(data) { // 开始工单传参都为工单id和产线id 列表
return request({
url: 'order/work-order/start-log',
method: 'post',
data
})
}
export function stopOrder(data) { // 结束工单传参都为工单id和产线id 列表
return request({
url: 'order/work-order/end-log',
method: 'post',
data
})
}

View File

@ -0,0 +1,165 @@
/*
* @Author: lb
* @Date: 2022-04-29 10:02:54
* @LastEditors: lb
* @LastEditTime: 2022-04-29 10:02:54
* @Description: 包装费用接口
* @FilePath: \mt-bus-fe\src\api\packing-manage\PackingCost.js
*/
import request from '@/utils/request'
const BASE_PATH = '/order/packaging-cost'
const ORDER_PATH = '/order/order'
const APIs = {
// 新增费用
add: BASE_PATH + '/add',
// 检查订单费用是否存在
check: BASE_PATH + '/checkOrder',
// 获取主费用分页列表
listMain: BASE_PATH + '/page',
// 获取详细费用的分页列表
detailMain: BASE_PATH + '/get',
// 更新主费用
updateMain: BASE_PATH + '/updateMain',
// 更新详细费用
updateDet: BASE_PATH + '/updateDet',
// 删除主费用
deleteMain: BASE_PATH + '/deleteMain',
// 删除详细费用
deleteDet: BASE_PATH + '/deleteDet',
// 获取订单列表
orderList: ORDER_PATH + '/list'
}
/**
* 新增费用
* @param {object} data
* @param {number} [data.id]
* @param {number} data.orderId 订单ID
* @param {string} [data.orderCode] 订单编码
* @param {string} [data.explainText] 描述
* @param {string} [data.remark] 备注
* @param {Array<{cost: number, id: number, explainText: string, packagingType: string}>} [data.det]
*/
export function add(data) {
return request({
url: APIs.add,
method: 'post',
data
})
}
/**
* 检查订单费用是否存在
* @param {number} id 订单ID
*/
export function checkById(id) {
return request({
url: APIs.check,
method: 'post',
data: { id }
})
}
/**
* 获取主费用分页列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} data.[orderId]
* @param {number} data.[enabled]
*/
export function listMain(data) {
return request({
url: APIs.listMain,
method: 'post',
data
})
}
/**
* 获取主费用详情
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} data.id
* @param {number} data.[enabled]
*/
export function detail(data) {
// aka. pageAllByPackageId
return request({
url: APIs.detailMain,
method: 'post',
data
})
}
/**
* 更新主费用
* @param {object} data
* @param {number} data.id
* @param {number} data.orderId 订单ID
* @param {string} [data.orderCode] 订单编码
* @param {string} [data.explainText] 描述
* @param {string} [data.remark] 备注
* @param {Array<{cost: number, id: number, explainText: string, packagingType: string}>} [data.det]
*/
export function updateMain(data) {
return request({
url: APIs.updateMain,
method: 'post',
data
})
}
/**
* 更新详细费用
* @param {object} data
* @param {number} data.id
* @param {number} data.cost
* @param {string} data.explainText 描述
* @param {string} data.packagingType 包装类型手动填写
*/
export function updateDet(data) {
return request({
url: APIs.updateDet,
method: 'post',
data
})
}
/**
* 删除主费用
* @param {number} id
*/
export function deleteMain(id) {
return request({
url: APIs.deleteMain,
method: 'post',
data: { id }
})
}
/**
* 删除详细费用
* @param {number} id
*/
export function deleteDet(id) {
return request({
url: APIs.deleteDet,
method: 'post',
data: { id }
})
}
/**
* 获取订单列表用于输入过滤
*/
export function orders() {
return request({
url: APIs.orderList,
method: 'post',
data: {}
})
}

View File

@ -0,0 +1,186 @@
/*
* @Author: gtz
* @Date: 2022-03-31 11:34:42
* @LastEditors: lb
* @LastEditTime: 2022-04-29 10:02:54
* @Description: file content
* @FilePath: \mt-bus-fe\src\api\packing-manage\PackingList.js
*/
import request from '@/utils/request'
/**
* 新增包装清单
* @param {object} data
* @param {string} data.shelfCode
* @param {string} data.externalCode
* @param {string} data.equShelfId
* @param {string} data.startTime
* @param {string} data.endTime
* @param {number} data.quantity
*/
export function add(data) {
return request({
url: '/order/packaging-log/add',
method: 'post',
data
})
}
/**
* 修改包装清单
* @param {object} data
* @param {string} data.shelfCode
* @param {string} data.externalCode
* @param {string} data.equShelfId
* @param {string} data.startTime
* @param {string} data.endTime
* @param {number} data.quantity
*/
export function update(data) {
return request({
url: '/order/packaging-log/update',
method: 'post',
data
})
}
/**
* 获取分页包装清单
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.startTime]
* @param {string} [data.endTime]
* @param {number} [data.id] 包装箱ID
* @param {number} [data.shelfId] 货架ID
* @param {number} [data.workOrderId] 工单ID
* @param {string} [data.orderCode] 订单号
*/
export function list(data) {
return request({
url: '/order/packaging-log/page',
method: 'post',
data
})
}
/**
* 获取包装清单详情
* @param {object} data
* @param {number} id
*/
export function getInfo(data) {
return request({
url: '/order/packaging-log/get',
method: 'post',
data
})
}
/**
* 打印状态
* @param {number} id
*/
export function updatePrint(id) {
return request({
url: '/order/packaging-log/print',
method: 'post',
data: { id }
})
}
/**
* 获取包装清单检查详情
* @param {number} id
*/
export function getCheckInfo(id) {
return request({
url: '/order/packaging-log/getCheck',
method: 'post',
data: { id }
})
}
/**
* 删除详细记录
* @returns
*/
export function removeDetail(id) {
return request({
url: '/quality/delivery-inspection/deleteDet',
method: 'post',
data: { id }
})
}
/**
* 获取分页货架列表
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.name]
* @param {number} [data.enabled]
*/
export function getShelfList(data) {
return request({
url: '/basic/shelf/page',
method: 'post',
data
})
}
/**
* 获取分页工单
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.id]
* @param {string} [data.name]
* @param {string} [data.code]
* @param {number} [data.enabled]
* @param {number} [data.status]
* @param {string} [data.startTime]
* @param {string} [data.endTime]
* @param {number} [data.orderId]
* @param {string} [data.orderName]
*/
export function getOrderList(data) {
return request({
url: '/order/work-order/page',
method: 'post',
data
})
}
/**
* 导出包装清单(文件)
* @param {object} data
* @param {number} data.current
* @param {number} data.size
* @param {number} [data.enabled]
* @param {string} [data.startTime]
* @param {string} [data.endTime]
* @param {number} [data.id] 包装箱ID
* @param {number} [data.shelfId] 货架ID
* @param {number} [data.workOrderId] 工单ID
* @param {string} [data.workOrderNo] 工单编码
*/
export function exportFile(data) {
return request({
url: '/order/packaging-log/export',
method: 'post',
data,
responseType: 'blob',
timeout: 60000
})
}
// 获取等级 数据字典
export function getGradeDatedict(data) {
return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data: { ...data, dictTypeId: '1522430769887698945' }
})
}

View File

@ -0,0 +1,118 @@
/*
* @Author: lb
* @Date: 2022-04-29 10:02:54
* @LastEditors: lb
* @LastEditTime: 2022-04-29 10:02:54
* @Description: 包装清单原料批次接口
* @FilePath: \mt-bus-fe\src\api\packing-manage\PackingListMateiralDate.js
*/
import request from '@/utils/request'
// 保存要用到的所有接口,使开发者不需要浏览整个文件也能知道当前文件包含哪些内容
const BASE_PATH = '/order/packaging-log-material-date'
// const SHELF_PATH = xxx
const APIs = {
add: BASE_PATH + '/add',
del: BASE_PATH + '/delete', // 根据原料批次ID来删除
update: BASE_PATH + '/update',
page: BASE_PATH + '/page',
super_delete: BASE_PATH + '/deleteByPackagingId', // 根据包装清单ID来删除
list: BASE_PATH + '/list', // 获取清单里的原片批次列表
available_list: BASE_PATH + '/materialList' // 获取可用的原片批次列表
}
/**
* 新增原料批次
* @param {object} data
* @param {number} data.id
* @param {number} data.materialDateId 物料批次ID
* @param {number} data.packagingLogId 包装清单ID
*/
export function add(data) {
return request({
url: APIs.add,
method: 'post',
data
})
}
/**
* 删除原料批次
* @param {number} id 工单和原料批次的联接表的 ID中间表的ID
*/
export function del(id) {
return request({
url: APIs.del,
method: 'post',
data: { id }
})
}
/**
* 更新原料批次
* @param {object} data
* @param {number} data.id
* @param {number} data.materialDateId 物料批次ID
* @param {number} data.packagingLogId 包装清单ID
*/
export function update(data) {
return request({
url: APIs.update,
method: 'post',
data
})
}
/**
* 获取包装清单的分页原料批次
* @param {object} data
* @param {number} current
* @param {number} size
* @param {number} id 包装清单ID
* @param {number} [enabled]
*/
export function list(data) {
// aka. pageAllByPackageId
return request({
url: APIs.page,
method: 'post',
data
})
}
/**
* 获取包装清单的所有原料批次
* @param {number} id 包装清单ID
*/
export function listAllByPackageId(id) {
return request({
url: APIs.list,
method: 'post',
data: { id }
})
}
/**
* 删除包装清单里的所有批次
* @param {number} id 包装清单ID
*/
export function delAllByPackageId(id) {
return request({
url: APIs.super_delete,
method: 'post',
data: { id }
})
}
/**
* 获取可用的原料批次列表
* @param {object} orderId 订单id
*/
export function getAvailableList(orderId) {
return request({
url: APIs.available_list,
method: 'post',
data: { id: orderId }
})
}

Some files were not shown because too many files have changed in this diff Show More