From d02ef34751915cfba3460cb3389318787c04516c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=98=8A=E5=A4=A9?= <15984976+n2319_0@user.noreply.gitee.com> Date: Wed, 22 Apr 2026 18:33:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=85=E6=9D=90=E4=BF=AE=E6=AD=A3=EF=BC=8C?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E8=BF=AD=E4=BB=A3=EF=BC=8C=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E5=9B=BE=E7=89=87=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/MatProductServiceImpl.java | 1 + .../resources/mapper/MatProductMapper.xml | 1 + gear-ui3/src/router/index.js | 17 +- gear-ui3/src/views/mat/auxiliary/index.vue | 464 ++++++++++++++++++ gear-ui3/src/views/mat/product/detail.vue | 360 ++++++++++++++ gear-ui3/src/views/mat/product/index.vue | 403 ++++----------- 6 files changed, 934 insertions(+), 312 deletions(-) create mode 100644 gear-ui3/src/views/mat/auxiliary/index.vue create mode 100644 gear-ui3/src/views/mat/product/detail.vue diff --git a/gear-mat/src/main/java/com/gear/mat/service/impl/MatProductServiceImpl.java b/gear-mat/src/main/java/com/gear/mat/service/impl/MatProductServiceImpl.java index afe0903..aac4f11 100644 --- a/gear-mat/src/main/java/com/gear/mat/service/impl/MatProductServiceImpl.java +++ b/gear-mat/src/main/java/com/gear/mat/service/impl/MatProductServiceImpl.java @@ -112,6 +112,7 @@ public class MatProductServiceImpl implements IMatProductService { productWithMaterialsVo.setModel(productVo.getModel()); productWithMaterialsVo.setUnitPrice(productVo.getUnitPrice()); productWithMaterialsVo.setRemark(productVo.getRemark()); +// productWithMaterialsVo.setProductImages(productVo.getProductImages()); // 查询并设置关联的配料信息 List relations = productMaterialRelationService.queryList( diff --git a/gear-mat/src/main/resources/mapper/MatProductMapper.xml b/gear-mat/src/main/resources/mapper/MatProductMapper.xml index d5e4bbb..a251c4e 100644 --- a/gear-mat/src/main/resources/mapper/MatProductMapper.xml +++ b/gear-mat/src/main/resources/mapper/MatProductMapper.xml @@ -16,6 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + diff --git a/gear-ui3/src/router/index.js b/gear-ui3/src/router/index.js index ce17be9..38d6233 100644 --- a/gear-ui3/src/router/index.js +++ b/gear-ui3/src/router/index.js @@ -70,20 +70,7 @@ export const constantRoutes = [ } ] }, - { - path: '/user', - component: Layout, - hidden: true, - redirect: 'noredirect', - children: [ - { - path: 'profile/:activeTab?', - component: () => import('@/views/system/user/profile/index'), - name: 'Profile', - meta: { title: '个人中心', icon: 'user' } - } - ] - } + { path: '/user', component: Layout, hidden: true, redirect: 'noredirect', children: [ { path: 'profile/:activeTab?', component: () => import('@/views/system/user/profile/index'), name: 'Profile', meta: { title: '个人中心', icon: 'user' } } ] }, { path: '/mat/product', component: Layout, hidden: true, children: [ { path: 'detail/:id(\\d+)', component: () => import('@/views/mat/product/detail'), name: 'ProductDetail', meta: { title: '产品详情', activeMenu: '/mat/product' } } ] } ] // 动态路由,基于用户权限动态去加载 @@ -151,7 +138,7 @@ export const dynamicRoutes = [ permissions: ['tool:gen:edit'], children: [ { - path: 'index/:tableId(\\d+)', + path: 'index/:tableId(\d+)', component: () => import('@/views/tool/gen/editTable'), name: 'GenEdit', meta: { title: '修改生成配置', activeMenu: '/tool/gen' } diff --git a/gear-ui3/src/views/mat/auxiliary/index.vue b/gear-ui3/src/views/mat/auxiliary/index.vue new file mode 100644 index 0000000..e0e94cd --- /dev/null +++ b/gear-ui3/src/views/mat/auxiliary/index.vue @@ -0,0 +1,464 @@ + + + + \ No newline at end of file diff --git a/gear-ui3/src/views/mat/product/detail.vue b/gear-ui3/src/views/mat/product/detail.vue new file mode 100644 index 0000000..18f0bfc --- /dev/null +++ b/gear-ui3/src/views/mat/product/detail.vue @@ -0,0 +1,360 @@ + + + + + \ No newline at end of file diff --git a/gear-ui3/src/views/mat/product/index.vue b/gear-ui3/src/views/mat/product/index.vue index 7a3f2c6..807fca6 100644 --- a/gear-ui3/src/views/mat/product/index.vue +++ b/gear-ui3/src/views/mat/product/index.vue @@ -47,12 +47,14 @@ @@ -123,6 +126,36 @@ + + +
+ 添加属性 + + + + + + + + + + + +
+ +
+
@@ -146,190 +179,26 @@ - - - -
- -
-

产品信息

-
-
- 品名: - {{ currentProductDetail.productName }} -
-
- 产品规格: - {{ currentProductDetail.spec }} -
-
- 产品型号: - {{ currentProductDetail.model }} -
-
- 产品单价: - {{ formatDecimal(currentProductDetail.unitPrice) }} 元 -
-
- 备注: - {{ currentProductDetail.remark || '无' }} -
-
-
- -
-

产品图片

-
- -
-
-
- - -
-

材料明细

- - -
-

主材

- - - - - - - - - - - - - - - -
- - -
-

辅材

- - - - - - - - - - - - - - - -
- - -
- -
-
- - -
-
- 产品总价: - {{ formatDecimal(currentProductDetail.unitPrice || 0) }} 元 -
-
-