From 04e0b4f3b51aff34bc6b6d2f7625b909f3cc2b6c Mon Sep 17 00:00:00 2001 From: zc Date: Wed, 24 Jun 2026 11:09:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=AE=A1=E7=90=86=EF=BC=88?= =?UTF-8?q?=E6=9C=AA=E5=AE=8C=E6=88=901=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/bom/bom.ts | 56 ++++ src/apis/process/process.ts | 86 +++++ src/apis/production/productionLine.ts | 2 +- src/apis/routing/routing.ts | 62 ++++ src/views/bom/bom/BomAddModal.vue | 129 ++++++++ src/views/bom/bom/BomDetailDrawer.vue | 50 +++ src/views/bom/bom/index.vue | 157 ++++++++++ src/views/process/process/ProcessAddModal.vue | 293 ++++++++++++++++++ .../process/process/ProcessDetailDrawer.vue | 83 +++++ src/views/process/process/index.vue | 255 +++++++++++++++ src/views/routing/routing/RoutingAddModal.vue | 149 +++++++++ .../routing/routing/RoutingDetailDrawer.vue | 56 ++++ src/views/routing/routing/index.vue | 160 ++++++++++ 13 files changed, 1537 insertions(+), 1 deletion(-) create mode 100644 src/apis/bom/bom.ts create mode 100644 src/apis/process/process.ts create mode 100644 src/apis/routing/routing.ts create mode 100644 src/views/bom/bom/BomAddModal.vue create mode 100644 src/views/bom/bom/BomDetailDrawer.vue create mode 100644 src/views/bom/bom/index.vue create mode 100644 src/views/process/process/ProcessAddModal.vue create mode 100644 src/views/process/process/ProcessDetailDrawer.vue create mode 100644 src/views/process/process/index.vue create mode 100644 src/views/routing/routing/RoutingAddModal.vue create mode 100644 src/views/routing/routing/RoutingDetailDrawer.vue create mode 100644 src/views/routing/routing/index.vue diff --git a/src/apis/bom/bom.ts b/src/apis/bom/bom.ts new file mode 100644 index 0000000..e48c5be --- /dev/null +++ b/src/apis/bom/bom.ts @@ -0,0 +1,56 @@ +import http from '@/utils/http' + +const BASE_URL = '/bom/bom' + +export interface BomResp { + id: string + bomCode: string + bomName: string + bomType: string + remark: string + createUser: string + createTime: string + updateUser: string + updateTime: string + createUserString: string + updateUserString: string + disabled: boolean +} +export interface BomQuery { + bomCode: string | undefined + bomName: string | undefined + bomType: string | undefined + createTime: string | undefined + sort: Array +} +export interface BomPageQuery extends BomQuery, PageQuery {} + +/** @desc 查询BOM物料清单(单)列表 */ +export function listBom(query: BomPageQuery) { + return http.get>(`${BASE_URL}`, query) +} + +/** @desc 查询BOM物料清单(单)详情 */ +export function getBom(id: string) { + return http.get(`${BASE_URL}/${id}`) +} + +/** @desc 新增BOM物料清单(单) */ +export function addBom(data: any) { + return http.post(`${BASE_URL}`, data) +} + +/** @desc 修改BOM物料清单(单) */ +export function updateBom(data: any, id: string) { + return http.put(`${BASE_URL}/${id}`, data) +} + +/** @desc 删除BOM物料清单(单) */ +export function deleteBom(id: string) { + return http.del(`${BASE_URL}/${id}`) +} + +/** @desc 导出BOM物料清单(单) */ +export function exportBom(query: BomQuery) { + return http.download(`${BASE_URL}/export`, query) +} diff --git a/src/apis/process/process.ts b/src/apis/process/process.ts new file mode 100644 index 0000000..b678ed2 --- /dev/null +++ b/src/apis/process/process.ts @@ -0,0 +1,86 @@ +import http from '@/utils/http' + +const BASE_URL = '/process/process' + +export interface ProcessResp { + id: string + processCode: string + processName: string + processType: string + processCategory: string + isKeyProcess: string + isSpecialProcess: string + isQualityGate: string + standardDurationMinutes: string + setupDurationMinutes: string + waitingDurationMinutes: string + moveDurationMinutes: string + defaultWorkCenter: string + requiredSkillLevel: string + minOperatorCount: string + parameterTemplate: string + qualityCheckRequired: string + defaultCheckRate: string + allowableDefectRate: string + needMaterial: string + materialIssueMethod: string + status: string + version: string + sortOrder: string + sopUrl: string + videoUrl: string + remark: string + attachmentIds: string + createUser: string + createTime: string + updateUser: string + updateTime: string + createUserString: string + updateUserString: string + disabled: boolean +} +export interface ProcessQuery { + processCode: string | undefined + processName: string | undefined + processType: string | undefined + isKeyProcess: string | undefined + isSpecialProcess: string | undefined + isQualityGate: string | undefined + qualityCheckRequired: string | undefined + needMaterial: string | undefined + status: string | undefined + version: string | undefined + createTime: string | undefined + sort: Array +} +export interface ProcessPageQuery extends ProcessQuery, PageQuery {} + +/** @desc 查询工序基础信息列表 */ +export function listProcess(query: ProcessPageQuery) { + return http.get>(`${BASE_URL}`, query) +} + +/** @desc 查询工序基础信息详情 */ +export function getProcess(id: string) { + return http.get(`${BASE_URL}/${id}`) +} + +/** @desc 新增工序基础信息 */ +export function addProcess(data: any) { + return http.post(`${BASE_URL}`, data) +} + +/** @desc 修改工序基础信息 */ +export function updateProcess(data: any, id: string) { + return http.put(`${BASE_URL}/${id}`, data) +} + +/** @desc 删除工序基础信息 */ +export function deleteProcess(id: string) { + return http.del(`${BASE_URL}/${id}`) +} + +/** @desc 导出工序基础信息 */ +export function exportProcess(query: ProcessQuery) { + return http.download(`${BASE_URL}/export`, query) +} diff --git a/src/apis/production/productionLine.ts b/src/apis/production/productionLine.ts index 8ad8387..0b4b53a 100644 --- a/src/apis/production/productionLine.ts +++ b/src/apis/production/productionLine.ts @@ -38,7 +38,7 @@ export function listProductionLine(query: ProductionLinePageQuery) { /** @desc 查询产线基础详情 */ export function getProductionLine(id: string) { - return http.get(`${BASE_URL}/${id}`) + return http.get(`${BASE_URL}/${id}`) } /** @desc 新增产线基础 */ diff --git a/src/apis/routing/routing.ts b/src/apis/routing/routing.ts new file mode 100644 index 0000000..ac261d5 --- /dev/null +++ b/src/apis/routing/routing.ts @@ -0,0 +1,62 @@ +import http from '@/utils/http' + +const BASE_URL = '/routing/routing' + +export interface RoutingResp { + id: string + routingCode: string + routingName: string + productId: string + productCategory: string + lineId: string + version: string + isActive: string + status: string + remark: string + createUser: string + createTime: string + updateUser: string + updateTime: string + createUserString: string + updateUserString: string + disabled: boolean +} +export interface RoutingQuery { + routingCode: string | undefined + routingName: string | undefined + version: string | undefined + isActive: string | undefined + status: string | undefined + sort: Array +} +export interface RoutingPageQuery extends RoutingQuery, PageQuery {} + +/** @desc 查询工艺路线主列表 */ +export function listRouting(query: RoutingPageQuery) { + return http.get>(`${BASE_URL}`, query) +} + +/** @desc 查询工艺路线主详情 */ +export function getRouting(id: string) { + return http.get(`${BASE_URL}/${id}`) +} + +/** @desc 新增工艺路线主 */ +export function addRouting(data: any) { + return http.post(`${BASE_URL}`, data) +} + +/** @desc 修改工艺路线主 */ +export function updateRouting(data: any, id: string) { + return http.put(`${BASE_URL}/${id}`, data) +} + +/** @desc 删除工艺路线主 */ +export function deleteRouting(id: string) { + return http.del(`${BASE_URL}/${id}`) +} + +/** @desc 导出工艺路线主 */ +export function exportRouting(query: RoutingQuery) { + return http.download(`${BASE_URL}/export`, query) +} diff --git a/src/views/bom/bom/BomAddModal.vue b/src/views/bom/bom/BomAddModal.vue new file mode 100644 index 0000000..83c728e --- /dev/null +++ b/src/views/bom/bom/BomAddModal.vue @@ -0,0 +1,129 @@ + + + + + \ No newline at end of file diff --git a/src/views/bom/bom/BomDetailDrawer.vue b/src/views/bom/bom/BomDetailDrawer.vue new file mode 100644 index 0000000..8e4f3b2 --- /dev/null +++ b/src/views/bom/bom/BomDetailDrawer.vue @@ -0,0 +1,50 @@ + + + + + diff --git a/src/views/bom/bom/index.vue b/src/views/bom/bom/index.vue new file mode 100644 index 0000000..e7f4928 --- /dev/null +++ b/src/views/bom/bom/index.vue @@ -0,0 +1,157 @@ + + + + + \ No newline at end of file diff --git a/src/views/process/process/ProcessAddModal.vue b/src/views/process/process/ProcessAddModal.vue new file mode 100644 index 0000000..9c0f34c --- /dev/null +++ b/src/views/process/process/ProcessAddModal.vue @@ -0,0 +1,293 @@ + + + + + \ No newline at end of file diff --git a/src/views/process/process/ProcessDetailDrawer.vue b/src/views/process/process/ProcessDetailDrawer.vue new file mode 100644 index 0000000..31ff3f6 --- /dev/null +++ b/src/views/process/process/ProcessDetailDrawer.vue @@ -0,0 +1,83 @@ + + + + + \ No newline at end of file diff --git a/src/views/process/process/index.vue b/src/views/process/process/index.vue new file mode 100644 index 0000000..f72eb78 --- /dev/null +++ b/src/views/process/process/index.vue @@ -0,0 +1,255 @@ + + + + + \ No newline at end of file diff --git a/src/views/routing/routing/RoutingAddModal.vue b/src/views/routing/routing/RoutingAddModal.vue new file mode 100644 index 0000000..7999f87 --- /dev/null +++ b/src/views/routing/routing/RoutingAddModal.vue @@ -0,0 +1,149 @@ + + + + + \ No newline at end of file diff --git a/src/views/routing/routing/RoutingDetailDrawer.vue b/src/views/routing/routing/RoutingDetailDrawer.vue new file mode 100644 index 0000000..6f3cd08 --- /dev/null +++ b/src/views/routing/routing/RoutingDetailDrawer.vue @@ -0,0 +1,56 @@ + + + + + \ No newline at end of file diff --git a/src/views/routing/routing/index.vue b/src/views/routing/routing/index.vue new file mode 100644 index 0000000..e8d98a2 --- /dev/null +++ b/src/views/routing/routing/index.vue @@ -0,0 +1,160 @@ + + + + + \ No newline at end of file