From a9f29b69b67d5dd3a484841dbbcc40b6b0a645d3 Mon Sep 17 00:00:00 2001 From: wangjiadong <1654135867@qq.com> Date: Thu, 12 Jan 2023 17:27:49 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=99=BD=E5=90=8D?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ant-design-vue-jeecg/src/config/router.config.js | 6 ++++++ ant-design-vue-jeecg/src/permission.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ant-design-vue-jeecg/src/config/router.config.js b/ant-design-vue-jeecg/src/config/router.config.js index eba4194f..6d742db3 100644 --- a/ant-design-vue-jeecg/src/config/router.config.js +++ b/ant-design-vue-jeecg/src/config/router.config.js @@ -587,6 +587,12 @@ export const constantRouterMap = [ name: 'register', component: () => import(/* webpackChunkName: "user" */ '@/views/user/register/Register') }, + + { + path: 'sgin', + name: 'sgin', + component: () => import(/* webpackChunkName: "user" */ '@/views/personalCenter/SignUpView') + }, { path: 'register-result', name: 'registerResult', diff --git a/ant-design-vue-jeecg/src/permission.js b/ant-design-vue-jeecg/src/permission.js index 5f647edc..255bc2dd 100644 --- a/ant-design-vue-jeecg/src/permission.js +++ b/ant-design-vue-jeecg/src/permission.js @@ -9,7 +9,7 @@ import { generateIndexRouter } from "@/utils/util" NProgress.configure({ showSpinner: false }) // NProgress Configuration -const whiteList = ['/user/login','/userequip/loginequip', +const whiteList = ['/user/login','/userequip/loginequip','/user/sgin', '/userschedule/loginschedule','/usersimulation/loginsimulation','/userdroduction/logindroduction', '/userfitting/loginfitting','/userglobal/loginglobal','/userworkmanship/loginworkmanship','/userworkorder/loginworkorder', '/usermall/loginmall','/userbigdata/loginbigdata','/loginbx/loginbx','/userattendance/loginattendance','/userdata/logindata', From 41dacfbea6976d90477947483aac7c5c02c6e210 Mon Sep 17 00:00:00 2001 From: wangjiadong <1654135867@qq.com> Date: Thu, 12 Jan 2023 17:47:20 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=99=BD=E5=90=8D?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ant-design-vue-jeecg/src/config/router.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ant-design-vue-jeecg/src/config/router.config.js b/ant-design-vue-jeecg/src/config/router.config.js index 6d742db3..e0d48c04 100644 --- a/ant-design-vue-jeecg/src/config/router.config.js +++ b/ant-design-vue-jeecg/src/config/router.config.js @@ -591,7 +591,7 @@ export const constantRouterMap = [ { path: 'sgin', name: 'sgin', - component: () => import(/* webpackChunkName: "user" */ '@/views/personalCenter/SignUpView') + component: () => import(/* webpackChunkName: "user" */ '@/views/personalCenter/SignInView') }, { path: 'register-result', From 7c56d776cef668eecb04abf467196a9a9332f949 Mon Sep 17 00:00:00 2001 From: lenovo <123> Date: Thu, 12 Jan 2023 17:53:40 +0800 Subject: [PATCH 3/4] =?UTF-8?q?2023-1-12=E4=BA=A7=E5=93=81=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/ProductAccessoriesMapper.java | 4 +++ .../service/IProductAccessoriesService.java | 2 ++ .../impl/ProductAccessoriesServiceImpl.java | 5 ++++ .../pdfabric/mapper/ProductFabricMapper.java | 4 +++ .../service/IProductFabricService.java | 2 ++ .../impl/ProductFabricServiceImpl.java | 5 ++++ .../service/IProductMachineService.java | 2 ++ .../impl/ProductMachineServiceImpl.java | 9 ++++++ .../mapper/ProductOperationtoolMapper.java | 4 +++ .../service/IProductOperationtoolService.java | 2 ++ .../impl/ProductOperationtoolServiceImpl.java | 5 ++++ .../ZyProductProcessController.java | 30 +++++++++++++++++++ 12 files changed, 74 insertions(+) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/mapper/ProductAccessoriesMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/mapper/ProductAccessoriesMapper.java index f7b96eaf..fba9f874 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/mapper/ProductAccessoriesMapper.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/mapper/ProductAccessoriesMapper.java @@ -4,6 +4,7 @@ package org.jeecg.modules.product.pdaccessories.mapper; import java.util.List; +import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Param; import com.baomidou.mybatisplus.core.mapper.BaseMapper; @@ -20,4 +21,7 @@ public interface ProductAccessoriesMapper extends BaseMapper @Select("select id from zy_accessories where contents like #{s}") List find(String s); + + @Delete("delete from product_accessories where product_id=#{pd} and accessories_id=#{access}") + void deleteAccessories(@Param("pd") String productId, @Param("access") String listAccessory); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/IProductAccessoriesService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/IProductAccessoriesService.java index cd2cda64..1d63d862 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/IProductAccessoriesService.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/IProductAccessoriesService.java @@ -15,4 +15,6 @@ import java.util.List; public interface IProductAccessoriesService extends IService { List findAll(String s); + + void deleteAccessories(String productId, String listAccessory); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/impl/ProductAccessoriesServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/impl/ProductAccessoriesServiceImpl.java index 26573738..0310a358 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/impl/ProductAccessoriesServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/impl/ProductAccessoriesServiceImpl.java @@ -26,4 +26,9 @@ public class ProductAccessoriesServiceImpl extends ServiceImpl findAll(String s) { return productAccessoriesMapper.find(s); } + + @Override + public void deleteAccessories(String productId, String listAccessory) { + productAccessoriesMapper.deleteAccessories(productId,listAccessory); + } } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/mapper/ProductFabricMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/mapper/ProductFabricMapper.java index 1abfe6bd..ac597696 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/mapper/ProductFabricMapper.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/mapper/ProductFabricMapper.java @@ -4,6 +4,7 @@ package org.jeecg.modules.product.pdfabric.mapper; import java.util.List; +import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Param; import com.baomidou.mybatisplus.core.mapper.BaseMapper; @@ -20,4 +21,7 @@ public interface ProductFabricMapper extends BaseMapper { @Select("select id from zy_fabric where name like #{s}") List find(String s); + + @Delete("delete from product_fabric where product_id=#{productId} and fabric_id=#{s1}") + void deleteFabric(@Param("productId") String productId, @Param("s1") String s1); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/IProductFabricService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/IProductFabricService.java index 2b942921..e2db1039 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/IProductFabricService.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/IProductFabricService.java @@ -14,4 +14,6 @@ import java.util.List; public interface IProductFabricService extends IService { List findAll(String s); + + void deleteFabric(String productId, String s1); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/impl/ProductFabricServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/impl/ProductFabricServiceImpl.java index 2910365c..84a3ff88 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/impl/ProductFabricServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/impl/ProductFabricServiceImpl.java @@ -26,4 +26,9 @@ public class ProductFabricServiceImpl extends ServiceImpl findAll(String s) { return productFabricMapper.find(s); } + + @Override + public void deleteFabric(String productId, String s1) { + productFabricMapper.deleteFabric(productId,s1); + } } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/IProductMachineService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/IProductMachineService.java index 79c7ad40..f280b691 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/IProductMachineService.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/IProductMachineService.java @@ -19,4 +19,6 @@ public interface IProductMachineService extends IService { void up(String id); void down(String id); + + void deleteMachine(String productId, String s1); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/impl/ProductMachineServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/impl/ProductMachineServiceImpl.java index 929178c6..2c08c1fb 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/impl/ProductMachineServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/impl/ProductMachineServiceImpl.java @@ -1,6 +1,7 @@ package org.jeecg.modules.product.pdmachine.service.impl; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import org.jeecg.modules.product.pdmachine.entity.ProductMachine; import org.jeecg.modules.product.pdmachine.mapper.ProductMachineMapper; import org.jeecg.modules.product.pdmachine.service.IProductMachineService; @@ -36,4 +37,12 @@ public class ProductMachineServiceImpl extends ServiceImpl delete(@RequestParam(name="id",required=true) String id) { + ZyProductProcess Zp=zyProductProcessService.getById(id); + String processId=Zp.getProcessId(); + /* + * 首先根据id查到对应的工序id,然后根据对应的工序id,查到他所包含的对应所有属性,属性集合,根据商品id和属性集合进行删除 + * + * */ + //面料 + List listfabric =zyProductProcessService.findAllFabric(processId); + if(listfabric!=null&&listfabric.size()>0) + for (String s1 : listfabric) { + productFabricService.deleteFabric(Zp.getProductId(),s1); + } + //辅料 + List listAccessories =zyProductProcessService.findAllAccessories(processId); + if(listAccessories!=null&&listAccessories.size()>0) + for (String listAccessory : listAccessories) { + productAccessoriesService.deleteAccessories(Zp.getProductId(),listAccessory); + } + //工具 + List listOperationtool =zyProductProcessService.findAllOperationtool(processId); + if(listOperationtool!=null&&listOperationtool.size()>0) + for (String s1 : listOperationtool) { + productOperationtoolService.deteleTool(Zp.getProductId(),s1); + } + //设备 + List listMachine =zyProductProcessService.findAllMachine(processId); + if(listMachine!=null&&listMachine.size()>0) + for (String s1 : listMachine) { + productMachineService.deleteMachine(Zp.getProductId(),s1); + } zyProductProcessService.removeById(id); return Result.OK("删除成功!"); } From 76839ca6ea978cf3211d45ad01663b562858e525 Mon Sep 17 00:00:00 2001 From: shenyuan Date: Thu, 12 Jan 2023 18:11:13 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E6=9C=8D=E8=A3=85=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=8F=9C=E5=8D=95+=E7=BB=BC=E5=90=88?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/config/router.config.js | 4 + .../src/views/shopping/pages/clothDetail.vue | 32 +++ .../src/views/shopping/pages/clothType.vue | 237 ++++++++++-------- 3 files changed, 172 insertions(+), 101 deletions(-) create mode 100644 ant-design-vue-jeecg/src/views/shopping/pages/clothDetail.vue diff --git a/ant-design-vue-jeecg/src/config/router.config.js b/ant-design-vue-jeecg/src/config/router.config.js index eba4194f..eb93e038 100644 --- a/ant-design-vue-jeecg/src/config/router.config.js +++ b/ant-design-vue-jeecg/src/config/router.config.js @@ -632,4 +632,8 @@ export const constantRouterMap = [ path: '/shopping/views/sirendingzhi',//这里是你需要设置新窗口打开的页面的路径s component: () => import('@/views/shopping/pages/sirendingzhi'), }, + { + path: '/shopping/views/ClothDetail',//这里是你需要设置新窗口打开的页面的路径s + component: () => import('@/views/shopping/pages/clothDetail'), + }, ] diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/clothDetail.vue b/ant-design-vue-jeecg/src/views/shopping/pages/clothDetail.vue new file mode 100644 index 00000000..d7c9cc70 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/shopping/pages/clothDetail.vue @@ -0,0 +1,32 @@ + + + + diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/clothType.vue b/ant-design-vue-jeecg/src/views/shopping/pages/clothType.vue index 5ee3bade..9ff5c7bd 100644 --- a/ant-design-vue-jeecg/src/views/shopping/pages/clothType.vue +++ b/ant-design-vue-jeecg/src/views/shopping/pages/clothType.vue @@ -5,58 +5,44 @@
- + - + - {{ k.name }} - + {{ k.name }} + -
- Polo衫 + {{this.current.name}}
- + - 综合 + 排序 - 按销量排序 - 按评分排序 - 按价格排序 + 热度 + + 价格降序 + 价格升序 -
- 价格 -
- - -
-
+ + + + + + +
@@ -68,9 +54,6 @@ >
-

@@ -90,6 +73,32 @@