基础核心
This commit is contained in:
60
src/api/base/coreAlarmLog.js
Normal file
60
src/api/base/coreAlarmLog.js
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* @Author: Do not edit
|
||||
* @Date: 2023-10-21 11:50:46
|
||||
* @LastEditTime: 2023-11-03 15:25:55
|
||||
* @LastEditors: DY
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建异常警告
|
||||
export function createcoreAlarmLog(data) {
|
||||
return request({
|
||||
url: '/base/core-alarm-log/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新异常警告
|
||||
export function updatecoreAlarmLog(data) {
|
||||
return request({
|
||||
url: '/base/core-alarm-log/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除异常警告
|
||||
export function deletecoreAlarmLog(id) {
|
||||
return request({
|
||||
url: '/base/core-alarm-log/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得异常警告
|
||||
export function getcoreAlarmLog(id) {
|
||||
return request({
|
||||
url: '/base/core-alarm-log/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得警告分页
|
||||
export function getcoreAlarmLogPage(query) {
|
||||
return request({
|
||||
url: '/base/core-alarm-log/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得所有列表
|
||||
export function getcoreAlarmLogList(query) {
|
||||
return request({
|
||||
url: '/base/core-alarm-log/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
111
src/api/base/coreProduct.js
Normal file
111
src/api/base/coreProduct.js
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* @Author: Do not edit
|
||||
* @Date: 2023-10-21 11:50:46
|
||||
* @LastEditTime: 2023-11-04 10:42:50
|
||||
* @LastEditors: DY
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建产品
|
||||
export function createCoreProduct(data) {
|
||||
return request({
|
||||
url: '/base/core-product/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新产品
|
||||
export function updateCoreProduct(data) {
|
||||
return request({
|
||||
url: '/base/core-product/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产品
|
||||
export function deleteCoreProduct(id) {
|
||||
return request({
|
||||
url: '/base/core-product/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品
|
||||
export function getCoreProduct(id) {
|
||||
return request({
|
||||
url: '/base/core-product/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品code
|
||||
export function getCode() {
|
||||
return request({
|
||||
url: '/base/core-product/getCode',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品分页
|
||||
export function getCoreProductPage(query) {
|
||||
return request({
|
||||
url: '/base/core-product/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得所有列表
|
||||
export function getCoreProductList(query) {
|
||||
return request({
|
||||
url: '/base/core-product/listAll',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 创建产品属性
|
||||
export function createCoreProductAttr(data) {
|
||||
return request({
|
||||
url: '/base/core-product-attr/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新产品属性
|
||||
export function updateCoreProductAttr(data) {
|
||||
return request({
|
||||
url: '/base/core-product-attr/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产品属性
|
||||
export function deleteCoreProductAttr(id) {
|
||||
return request({
|
||||
url: '/base/core-product-attr/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品属性
|
||||
export function getCoreProductAttr(id) {
|
||||
return request({
|
||||
url: '/base/core-product-attr/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品属性分页
|
||||
export function getCoreProductAttrPage(query) {
|
||||
return request({
|
||||
url: '/base/core-product-attr/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
68
src/api/base/coreProductionLine.js
Normal file
68
src/api/base/coreProductionLine.js
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* @Author: Do not edit
|
||||
* @Date: 2023-10-21 11:50:46
|
||||
* @LastEditTime: 2023-11-03 19:06:15
|
||||
* @LastEditors: DY
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建产线
|
||||
export function createCorePL(data) {
|
||||
return request({
|
||||
url: '/base/core-production-line/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新产线
|
||||
export function updateCorePL(data) {
|
||||
return request({
|
||||
url: '/base/core-production-line/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产线
|
||||
export function deleteCorePL(id) {
|
||||
return request({
|
||||
url: '/base/core-production-line/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产线
|
||||
export function getCorePL(id) {
|
||||
return request({
|
||||
url: '/base/core-production-line/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产线code
|
||||
export function getCode() {
|
||||
return request({
|
||||
url: '/base/core-production-line/getCode',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产线分页
|
||||
export function getCorePLPage(query) {
|
||||
return request({
|
||||
url: '/base/core-production-line/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得所有列表
|
||||
export function getCorePLList(query) {
|
||||
return request({
|
||||
url: '/base/core-production-line/listAll',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
111
src/api/base/coreWorkOrder.js
Normal file
111
src/api/base/coreWorkOrder.js
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* @Author: Do not edit
|
||||
* @Date: 2023-10-21 11:50:46
|
||||
* @LastEditTime: 2023-11-06 10:50:57
|
||||
* @LastEditors: DY
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建工单
|
||||
export function createCoreWO(data) {
|
||||
return request({
|
||||
url: '/base/core-work-order/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新工单
|
||||
export function updateCoreWO(data) {
|
||||
return request({
|
||||
url: '/base/core-work-order/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除工单
|
||||
export function deleteCoreWO(id) {
|
||||
return request({
|
||||
url: '/base/core-work-order/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得工单
|
||||
export function getCoreWO(id) {
|
||||
return request({
|
||||
url: '/base/core-work-order/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得工单code
|
||||
export function getCode() {
|
||||
return request({
|
||||
url: '/base/core-work-order/getCode',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得工单分页
|
||||
export function getCoreWOPage(query) {
|
||||
return request({
|
||||
url: '/base/core-work-order/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得所有列表
|
||||
export function getCoreWOList(query) {
|
||||
return request({
|
||||
url: '/base/core-work-order/listbyfilter',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 创建工单预使用原料
|
||||
export function createCoreWOMa(data) {
|
||||
return request({
|
||||
url: '/base/core-work-order-material/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新工单预使用原料
|
||||
export function updateCoreWOMa(data) {
|
||||
return request({
|
||||
url: '/base/core-work-order-material/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除工单预使用原料
|
||||
export function deleteCoreWOMa(id) {
|
||||
return request({
|
||||
url: '/base/core-work-order-material/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得工单预使用原料
|
||||
export function getCoreWOMa(id) {
|
||||
return request({
|
||||
url: '/base/core-work-order-material/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得工单预使用原料分页
|
||||
export function getCoreWOMaPage(query) {
|
||||
return request({
|
||||
url: '/base/core-work-order-material/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
68
src/api/base/coreWorkshopSection.js
Normal file
68
src/api/base/coreWorkshopSection.js
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* @Author: Do not edit
|
||||
* @Date: 2023-10-21 11:50:46
|
||||
* @LastEditTime: 2023-11-03 19:18:00
|
||||
* @LastEditors: DY
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建工段
|
||||
export function createCWSection(data) {
|
||||
return request({
|
||||
url: '/base/core-workshop-section/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新工段
|
||||
export function updateCWSection(data) {
|
||||
return request({
|
||||
url: '/base/core-workshop-section/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除工段
|
||||
export function deleteCWSection(id) {
|
||||
return request({
|
||||
url: '/base/core-workshop-section/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得工段
|
||||
export function getCWSection(id) {
|
||||
return request({
|
||||
url: '/base/core-workshop-section/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得工段code
|
||||
export function getCode() {
|
||||
return request({
|
||||
url: '/base/core-workshop-section/getCode',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得工段分页
|
||||
export function getCWSectionPage(query) {
|
||||
return request({
|
||||
url: '/base/core-workshop-section/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得所有列表
|
||||
export function getCWSectionList(query) {
|
||||
return request({
|
||||
url: '/base/core-workshop-section/listAll',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user