'init'
This commit is contained in:
54
src/api/core/base/factory.js
Normal file
54
src/api/core/base/factory.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建工厂
|
||||
export function createFactory(data) {
|
||||
return request({
|
||||
url: '/base/factory/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新工厂
|
||||
export function updateFactory(data) {
|
||||
return request({
|
||||
url: '/base/factory/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除工厂
|
||||
export function deleteFactory(id) {
|
||||
return request({
|
||||
url: '/base/factory/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得工厂
|
||||
export function getFactory(id) {
|
||||
return request({
|
||||
url: '/base/factory/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得工厂分页
|
||||
export function getFactoryPage(query) {
|
||||
return request({
|
||||
url: '/base/factory/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出工厂 Excel
|
||||
export function exportFactoryExcel(query) {
|
||||
return request({
|
||||
url: '/base/factory/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
54
src/api/core/base/lineBindProduct.js
Normal file
54
src/api/core/base/lineBindProduct.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建产线目前生产产品表 主要为更新
|
||||
export function createLineBindProduct(data) {
|
||||
return request({
|
||||
url: '/base/line-bind-product/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新产线目前生产产品表 主要为更新
|
||||
export function updateLineBindProduct(data) {
|
||||
return request({
|
||||
url: '/base/line-bind-product/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产线目前生产产品表 主要为更新
|
||||
export function deleteLineBindProduct(id) {
|
||||
return request({
|
||||
url: '/base/line-bind-product/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产线目前生产产品表 主要为更新
|
||||
export function getLineBindProduct(id) {
|
||||
return request({
|
||||
url: '/base/line-bind-product/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产线目前生产产品表 主要为更新分页
|
||||
export function getLineBindProductPage(query) {
|
||||
return request({
|
||||
url: '/base/line-bind-product/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出产线目前生产产品表 主要为更新 Excel
|
||||
export function exportLineBindProductExcel(query) {
|
||||
return request({
|
||||
url: '/base/line-bind-product/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
54
src/api/core/base/lineBindProductLog.js
Normal file
54
src/api/core/base/lineBindProductLog.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建产线目前生产产品表 主要为更新
|
||||
export function createLineBindProductLog(data) {
|
||||
return request({
|
||||
url: '/base/line-bind-product-log/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新产线目前生产产品表 主要为更新
|
||||
export function updateLineBindProductLog(data) {
|
||||
return request({
|
||||
url: '/base/line-bind-product-log/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产线目前生产产品表 主要为更新
|
||||
export function deleteLineBindProductLog(id) {
|
||||
return request({
|
||||
url: '/base/line-bind-product-log/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产线目前生产产品表 主要为更新
|
||||
export function getLineBindProductLog(id) {
|
||||
return request({
|
||||
url: '/base/line-bind-product-log/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产线目前生产产品表 主要为更新分页
|
||||
export function getLineBindProductLogPage(query) {
|
||||
return request({
|
||||
url: '/base/line-bind-product-log/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出产线目前生产产品表 主要为更新 Excel
|
||||
export function exportLineBindProductLogExcel(query) {
|
||||
return request({
|
||||
url: '/base/line-bind-product-log/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
54
src/api/core/base/product.js
Normal file
54
src/api/core/base/product.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建产品
|
||||
export function createProduct(data) {
|
||||
return request({
|
||||
url: '/base/product/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新产品
|
||||
export function updateProduct(data) {
|
||||
return request({
|
||||
url: '/base/product/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产品
|
||||
export function deleteProduct(id) {
|
||||
return request({
|
||||
url: '/base/product/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品
|
||||
export function getProduct(id) {
|
||||
return request({
|
||||
url: '/base/product/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品分页
|
||||
export function getProductPage(query) {
|
||||
return request({
|
||||
url: '/base/product/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出产品 Excel
|
||||
export function exportProductExcel(query) {
|
||||
return request({
|
||||
url: '/base/product/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
54
src/api/core/base/productAttr.js
Normal file
54
src/api/core/base/productAttr.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建产品属性
|
||||
export function createProductAttr(data) {
|
||||
return request({
|
||||
url: '/base/product-attr/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新产品属性
|
||||
export function updateProductAttr(data) {
|
||||
return request({
|
||||
url: '/base/product-attr/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产品属性
|
||||
export function deleteProductAttr(id) {
|
||||
return request({
|
||||
url: '/base/product-attr/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品属性
|
||||
export function getProductAttr(id) {
|
||||
return request({
|
||||
url: '/base/product-attr/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品属性分页
|
||||
export function getProductAttrPage(query) {
|
||||
return request({
|
||||
url: '/base/product-attr/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出产品属性 Excel
|
||||
export function exportProductAttrExcel(query) {
|
||||
return request({
|
||||
url: '/base/product-attr/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
54
src/api/core/base/productionLine.js
Normal file
54
src/api/core/base/productionLine.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建工厂产线
|
||||
export function createProductionLine(data) {
|
||||
return request({
|
||||
url: '/base/production-line/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新工厂产线
|
||||
export function updateProductionLine(data) {
|
||||
return request({
|
||||
url: '/base/production-line/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除工厂产线
|
||||
export function deleteProductionLine(id) {
|
||||
return request({
|
||||
url: '/base/production-line/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得工厂产线
|
||||
export function getProductionLine(id) {
|
||||
return request({
|
||||
url: '/base/production-line/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得工厂产线分页
|
||||
export function getProductionLinePage(query) {
|
||||
return request({
|
||||
url: '/base/production-line/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出工厂产线 Excel
|
||||
export function exportProductionLineExcel(query) {
|
||||
return request({
|
||||
url: '/base/production-line/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
54
src/api/core/base/productionLineRecDay.js
Normal file
54
src/api/core/base/productionLineRecDay.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建产线生产定时记录表 一天添加一次数据
|
||||
export function createProductionLineRecDay(data) {
|
||||
return request({
|
||||
url: '/base/production-line-rec-day/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新产线生产定时记录表 一天添加一次数据
|
||||
export function updateProductionLineRecDay(data) {
|
||||
return request({
|
||||
url: '/base/production-line-rec-day/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产线生产定时记录表 一天添加一次数据
|
||||
export function deleteProductionLineRecDay(id) {
|
||||
return request({
|
||||
url: '/base/production-line-rec-day/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产线生产定时记录表 一天添加一次数据
|
||||
export function getProductionLineRecDay(id) {
|
||||
return request({
|
||||
url: '/base/production-line-rec-day/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产线生产定时记录表 一天添加一次数据分页
|
||||
export function getProductionLineRecDayPage(query) {
|
||||
return request({
|
||||
url: '/base/production-line-rec-day/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出产线生产定时记录表 一天添加一次数据 Excel
|
||||
export function exportProductionLineRecDayExcel(query) {
|
||||
return request({
|
||||
url: '/base/production-line-rec-day/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
54
src/api/core/base/productionLineRecSch.js
Normal file
54
src/api/core/base/productionLineRecSch.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建产线生产定时记录表 一小时添加一次数据 至少需要一个上片设备和下片设备才会自动添加
|
||||
export function createProductionLineRecSch(data) {
|
||||
return request({
|
||||
url: '/base/production-line-rec-sch/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新产线生产定时记录表 一小时添加一次数据 至少需要一个上片设备和下片设备才会自动添加
|
||||
export function updateProductionLineRecSch(data) {
|
||||
return request({
|
||||
url: '/base/production-line-rec-sch/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产线生产定时记录表 一小时添加一次数据 至少需要一个上片设备和下片设备才会自动添加
|
||||
export function deleteProductionLineRecSch(id) {
|
||||
return request({
|
||||
url: '/base/production-line-rec-sch/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产线生产定时记录表 一小时添加一次数据 至少需要一个上片设备和下片设备才会自动添加
|
||||
export function getProductionLineRecSch(id) {
|
||||
return request({
|
||||
url: '/base/production-line-rec-sch/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产线生产定时记录表 一小时添加一次数据 至少需要一个上片设备和下片设备才会自动添加分页
|
||||
export function getProductionLineRecSchPage(query) {
|
||||
return request({
|
||||
url: '/base/production-line-rec-sch/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出产线生产定时记录表 一小时添加一次数据 至少需要一个上片设备和下片设备才会自动添加 Excel
|
||||
export function exportProductionLineRecSchExcel(query) {
|
||||
return request({
|
||||
url: '/base/production-line-rec-sch/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
54
src/api/core/base/workshopSection.js
Normal file
54
src/api/core/base/workshopSection.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建产线工段
|
||||
export function createWorkshopSection(data) {
|
||||
return request({
|
||||
url: '/base/workshop-section/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新产线工段
|
||||
export function updateWorkshopSection(data) {
|
||||
return request({
|
||||
url: '/base/workshop-section/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产线工段
|
||||
export function deleteWorkshopSection(id) {
|
||||
return request({
|
||||
url: '/base/workshop-section/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产线工段
|
||||
export function getWorkshopSection(id) {
|
||||
return request({
|
||||
url: '/base/workshop-section/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产线工段分页
|
||||
export function getWorkshopSectionPage(query) {
|
||||
return request({
|
||||
url: '/base/workshop-section/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出产线工段 Excel
|
||||
export function exportWorkshopSectionExcel(query) {
|
||||
return request({
|
||||
url: '/base/workshop-section/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user