From eb450b5c754414baf42f019498062861e26c7c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=A1=E9=92=B1?= Date: Thu, 6 Mar 2025 18:26:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=88=86=E7=B1=BB=E6=95=85?= =?UTF-8?q?=E9=9A=9C=EF=BC=8C=E5=B1=9E=E6=80=A7=E9=83=A8=E4=BD=8D=E7=9A=84?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- index.html | 4 +- src/api/erp/product/category/index.ts | 4 +- .../category/productcategorypart/index.ts | 42 +++ src/utils/dict.ts | 3 + .../ProductCategoryFaultForm.vue | 72 +++++- .../erpproductcategoryfault/index.vue | 77 +++++- .../ProductCategoryPartForm.vue | 123 +++++++++ .../category/productcategorypart/index.vue | 243 ++++++++++++++++++ 9 files changed, 551 insertions(+), 19 deletions(-) create mode 100644 src/api/erp/product/category/productcategorypart/index.ts create mode 100644 src/views/erp/product/category/productcategorypart/ProductCategoryPartForm.vue create mode 100644 src/views/erp/product/category/productcategorypart/index.vue diff --git a/.env b/.env index 4b0f5bf6a..5ca61ce51 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ # 标题 -VITE_APP_TITLE=芋道管理系统 +VITE_APP_TITLE=CINO综合系统3.0 # 项目本地运行端口号 VITE_PORT=80 diff --git a/index.html b/index.html index 8cfcbefa6..d7981843f 100644 --- a/index.html +++ b/index.html @@ -7,11 +7,11 @@ %VITE_APP_TITLE% diff --git a/src/api/erp/product/category/index.ts b/src/api/erp/product/category/index.ts index d67ccffdd..6e2f7db87 100644 --- a/src/api/erp/product/category/index.ts +++ b/src/api/erp/product/category/index.ts @@ -13,8 +13,8 @@ export interface ProductCategoryVO { // ERP 产品分类 API export const ProductCategoryApi = { // 查询产品分类列表 - getProductCategoryList: async () => { - return await request.get({ url: `/erp/product-category/list` }) + getProductCategoryList: async (params: any) => { + return await request.get({ url: `/erp/product-category/list`, params }) }, // 查询产品分类精简列表 diff --git a/src/api/erp/product/category/productcategorypart/index.ts b/src/api/erp/product/category/productcategorypart/index.ts new file mode 100644 index 000000000..624437636 --- /dev/null +++ b/src/api/erp/product/category/productcategorypart/index.ts @@ -0,0 +1,42 @@ +import request from '@/config/axios' + +// ERP 产品分类部位 VO +export interface ProductCategoryPartVO { + id: number // 编号 + productCategoryId: number // 类别 + productFaultPart: string // 部位 + productFaultPartStr: string|undefined // 部位 +} + +// ERP 产品分类部位 API +export const ProductCategoryPartApi = { + // 查询ERP 产品分类部位分页 + getProductCategoryPartPage: async (params: any) => { + return await request.get({ url: `/erp/product-category-part/page`, params }) + }, + + // 查询ERP 产品分类部位详情 + getProductCategoryPart: async (id: number) => { + return await request.get({ url: `/erp/product-category-part/get?id=` + id }) + }, + + // 新增ERP 产品分类部位 + createProductCategoryPart: async (data: ProductCategoryPartVO) => { + return await request.post({ url: `/erp/product-category-part/create`, data }) + }, + + // 修改ERP 产品分类部位 + updateProductCategoryPart: async (data: ProductCategoryPartVO) => { + return await request.put({ url: `/erp/product-category-part/update`, data }) + }, + + // 删除ERP 产品分类部位 + deleteProductCategoryPart: async (id: number) => { + return await request.delete({ url: `/erp/product-category-part/delete?id=` + id }) + }, + + // 导出ERP 产品分类部位 Excel + exportProductCategoryPart: async (params) => { + return await request.download({ url: `/erp/product-category-part/export-excel`, params }) + } +} \ No newline at end of file diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 1134152b6..58a7abda0 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -216,6 +216,9 @@ export enum DICT_TYPE { // ========== ERP - 企业资源计划模块 ========== ERP_AUDIT_STATUS = 'erp_audit_status', // ERP 审批状态 ERP_STOCK_RECORD_BIZ_TYPE = 'erp_stock_record_biz_type', // 库存明细的业务类型 + ERP_PRODUCT_FAULT_PART = 'erp_product_fault_part', // 产品的故障部位 + ERP_FILE_ORDER_TYPE = 'erp_file_order_type', // 文件单据类型 + ERP_ORDER_PRE_STATUS = 'erp_order_pre_status', // 订单预报价单状态 // ========== AI - 人工智能模块 ========== AI_PLATFORM = 'ai_platform', // AI 平台 diff --git a/src/views/erp/product/category/erpproductcategoryfault/ProductCategoryFaultForm.vue b/src/views/erp/product/category/erpproductcategoryfault/ProductCategoryFaultForm.vue index 34e1759a5..061350c2d 100644 --- a/src/views/erp/product/category/erpproductcategoryfault/ProductCategoryFaultForm.vue +++ b/src/views/erp/product/category/erpproductcategoryfault/ProductCategoryFaultForm.vue @@ -7,13 +7,16 @@ label-width="100px" v-loading="formLoading" > - - + + + + + - 请选择字典生成 + @@ -36,7 +44,12 @@ - 请选择字典生成 + @@ -53,8 +66,24 @@ \ No newline at end of file diff --git a/src/views/erp/product/category/erpproductcategoryfault/index.vue b/src/views/erp/product/category/erpproductcategoryfault/index.vue index 5fa5412df..ab863de92 100644 --- a/src/views/erp/product/category/erpproductcategoryfault/index.vue +++ b/src/views/erp/product/category/erpproductcategoryfault/index.vue @@ -8,6 +8,21 @@ :inline="true" label-width="68px" > + + + + + - + @@ -78,7 +98,12 @@ clearable class="!w-240px" > - + @@ -126,8 +151,12 @@ - - + + + + \ No newline at end of file diff --git a/src/views/erp/product/category/productcategorypart/ProductCategoryPartForm.vue b/src/views/erp/product/category/productcategorypart/ProductCategoryPartForm.vue new file mode 100644 index 000000000..d9a5506e3 --- /dev/null +++ b/src/views/erp/product/category/productcategorypart/ProductCategoryPartForm.vue @@ -0,0 +1,123 @@ + + \ No newline at end of file diff --git a/src/views/erp/product/category/productcategorypart/index.vue b/src/views/erp/product/category/productcategorypart/index.vue new file mode 100644 index 000000000..2dc4285bc --- /dev/null +++ b/src/views/erp/product/category/productcategorypart/index.vue @@ -0,0 +1,243 @@ + + + \ No newline at end of file