Merge branch 'master' of http://119.91.43.128:3001/sheng/mes-ui-d2
Some checks failed
Release pipeline / Always run job (push) Has been cancelled
Release pipeline / publish (push) Has been cancelled

This commit is contained in:
hui
2026-06-02 13:56:00 +08:00
17 changed files with 3460 additions and 1 deletions

View File

@@ -0,0 +1,57 @@
import { request } from '@/api/_service'
// 注BASE URL 与后台 method 名暂沿用旧项目命名,等待后台数据库路由表统一更新
const BASE = 'production_configuration/matetial_model/matetial_category/'
function apiParams (method, data = {}) {
return {
method: `production_configuration_matetial_model_matetial_category_${method}`,
platform: 'background',
...data
}
}
// 获取全部物料类别
export function getMaterialCategoryAll (data) {
return request({
url: BASE + 'all',
method: 'get',
params: apiParams('all', data)
})
}
// 获取物料类别列表
export function getMaterialCategoryList (data) {
return request({
url: BASE + 'list',
method: 'get',
params: apiParams('list', data)
})
}
// 创建物料类别
export function createMaterialCategory (data) {
return request({
url: BASE + 'create',
method: 'post',
data: apiParams('create', data)
})
}
// 编辑物料类别
export function editMaterialCategory (data) {
return request({
url: BASE + 'edit',
method: 'put',
data: apiParams('edit', data)
})
}
// 删除物料类别
export function deleteMaterialCategory (data) {
return request({
url: BASE + 'delete',
method: 'delete',
data: apiParams('delete', data)
})
}

View File

@@ -0,0 +1,94 @@
import { request } from '@/api/_service'
// 注BASE URL 与后台 method 名暂沿用旧项目命名,等待后台数据库路由表统一更新
const BASE = 'production_configuration/matetial_model/matetial_management/'
function apiParams (method, data = {}) {
return {
method: `production_configuration_matetial_model_matetial_management_${method}`,
platform: 'background',
...data
}
}
// 获取全部物料
export function getMaterialMasterAll (data) {
return request({
url: BASE + 'all',
method: 'get',
params: apiParams('all', data)
})
}
// 获取物料列表
export function getMaterialMasterList (data) {
return request({
url: BASE + 'list',
method: 'get',
params: apiParams('list', data)
})
}
// 创建物料
export function createMaterialMaster (data) {
return request({
url: BASE + 'create',
method: 'post',
data: apiParams('create', data)
})
}
// 编辑物料
export function editMaterialMaster (data) {
return request({
url: BASE + 'edit',
method: 'put',
data: apiParams('edit', data)
})
}
// 删除物料
export function deleteMaterialMaster (data) {
return request({
url: BASE + 'delete',
method: 'delete',
data: apiParams('delete', data)
})
}
// 批量删除物料
export function batchDeleteMaterialMaster (data) {
return request({
url: BASE + 'batch_delete',
method: 'delete',
data: apiParams('batch_delete', data)
})
}
// 获取物料数据导入模板
export function getImportTemplate (data) {
return request({
url: BASE + 'get_import_template',
method: 'post',
responseType: 'blob',
data: apiParams('get_import_template', data)
})
}
// 物料数据导入
export function importMaterialData (data) {
return request({
url: BASE + 'matetial_data_import',
method: 'post',
data: apiParams('matetial_data_import', data)
})
}
// 物料数据导出任务创建
export function exportMaterialTask (data) {
return request({
url: BASE + 'matetial_data_export_task',
method: 'post',
data: apiParams('matetial_data_export_task', data)
})
}

View File

@@ -0,0 +1,57 @@
import { request } from '@/api/_service'
// 注BASE URL 与后台 method 名暂沿用旧项目命名,等待后台数据库路由表统一更新
const BASE = 'production_configuration/matetial_model/unit/'
function apiParams (method, data = {}) {
return {
method: `production_configuration_matetial_model_unit_${method}`,
platform: 'background',
...data
}
}
// 获取全部单位(下拉框用)
export function getUnitAll (data) {
return request({
url: BASE + 'all',
method: 'get',
params: apiParams('all', data)
})
}
// 获取单位列表
export function getUnitList (data) {
return request({
url: BASE + 'list',
method: 'get',
params: apiParams('list', data)
})
}
// 创建单位
export function createUnit (data) {
return request({
url: BASE + 'create',
method: 'post',
data: apiParams('create', data)
})
}
// 编辑单位
export function editUnit (data) {
return request({
url: BASE + 'edit',
method: 'put',
data: apiParams('edit', data)
})
}
// 删除单位
export function deleteUnit (data) {
return request({
url: BASE + 'delete',
method: 'delete',
data: apiParams('delete', data)
})
}

View File

@@ -0,0 +1,64 @@
import { request } from '@/api/_service'
const BASE = 'production_configuration/technology_model/optional_params/'
function apiParams (method, data = {}) {
return {
method: `production_master_data_process_model_optional_params_${method}`,
platform: 'background',
...data
}
}
export function getOptionalParamsList (data) {
return request({
url: BASE + 'list',
method: 'get',
params: apiParams('list', data)
})
}
export function createOptionalParams (data) {
return request({
url: BASE + 'create',
method: 'post',
data: apiParams('create', data)
})
}
export function editOptionalParams (data) {
return request({
url: BASE + 'edit',
method: 'put',
data: apiParams('edit', data)
})
}
export function deleteOptionalParams (data) {
return request({
url: BASE + 'delete',
method: 'delete',
data: apiParams('delete', data)
})
}
export function getImportTemplate (data) {
return request({
url: BASE + 'get_import_template',
method: 'post',
responseType: 'blob',
data: {
method: 'production_master_data_process_model_optional_params_get_import_template',
platform: 'background',
...data
}
})
}
export function importDataCreate (data) {
return request({
url: BASE + 'import_data_create',
method: 'post',
data: apiParams('import_data_create', data)
})
}

View File

@@ -0,0 +1,55 @@
import { request } from '@/api/_service'
const BASE = 'production_configuration/technology_model/technology_flow_workingsubclass/'
function apiParams (method, data = {}) {
return {
method: `production_master_data_process_model_process_step_${method}`,
platform: 'background',
...data
}
}
export function getProcessStepList (data) {
return request({
url: BASE + 'list',
method: 'get',
params: apiParams('list', data)
})
}
export function createProcessStep (data) {
return request({
url: BASE + 'create',
method: 'post',
data: apiParams('create', data)
})
}
export function editProcessStep (data) {
return request({
url: BASE + 'edit',
method: 'put',
data: apiParams('edit', data)
})
}
export function deleteProcessStep (data) {
return request({
url: BASE + 'delete',
method: 'delete',
data: apiParams('delete', data)
})
}
export function settingSubmit (data) {
return request({
url: BASE + 'setting_submit',
method: 'post',
data: {
method: 'production_master_data_process_model_process_step_setting_submit',
platform: 'background',
...data
}
})
}