diff --git a/ant-design-vue-jeecg/src/views/zyclothsstyle/ZyClothsStyleList.vue b/ant-design-vue-jeecg/src/views/zyclothsstyle/ZyClothsStyleList.vue
index 92f4745a..f7f7eda2 100644
--- a/ant-design-vue-jeecg/src/views/zyclothsstyle/ZyClothsStyleList.vue
+++ b/ant-design-vue-jeecg/src/views/zyclothsstyle/ZyClothsStyleList.vue
@@ -162,7 +162,11 @@ export default {
return parseInt(index) + 1;
}
},
-
+ {
+ title: '服装类型名称',
+ align: "center",
+ dataIndex: 'typeName'
+ },
{
title: '款式名称',
align: "center",
diff --git a/ant-design-vue-jeecg/src/views/zystyleaccessories/ZyStyleAccessoriesList.vue b/ant-design-vue-jeecg/src/views/zystyleaccessories/ZyStyleAccessoriesList.vue
index f83e69ca..5641d45d 100644
--- a/ant-design-vue-jeecg/src/views/zystyleaccessories/ZyStyleAccessoriesList.vue
+++ b/ant-design-vue-jeecg/src/views/zystyleaccessories/ZyStyleAccessoriesList.vue
@@ -17,8 +17,8 @@
-
-
+
@@ -162,6 +162,11 @@ export default {
return parseInt(index) + 1;
}
},
+ {
+ title: '服装类型名称',
+ align: "center",
+ dataIndex: 'typeName'
+ },
{
title: '款式名称',
align: "center",
diff --git a/ant-design-vue-jeecg/src/views/zystyleaccessories/modules/ZyAccessoriesList.vue b/ant-design-vue-jeecg/src/views/zystyleaccessories/modules/ZyAccessoriesList.vue
index 3a2e675d..ba4d4cb9 100644
--- a/ant-design-vue-jeecg/src/views/zystyleaccessories/modules/ZyAccessoriesList.vue
+++ b/ant-design-vue-jeecg/src/views/zystyleaccessories/modules/ZyAccessoriesList.vue
@@ -4,19 +4,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
-
-
+
+
@@ -39,7 +58,8 @@
无图片
-
+
无文件
@@ -61,116 +81,114 @@
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/zystyleaccessories/modules/ZyStyleAccessoriesModal.vue b/ant-design-vue-jeecg/src/views/zystyleaccessories/modules/ZyStyleAccessoriesModal.vue
index 1e985005..e725b88a 100644
--- a/ant-design-vue-jeecg/src/views/zystyleaccessories/modules/ZyStyleAccessoriesModal.vue
+++ b/ant-design-vue-jeecg/src/views/zystyleaccessories/modules/ZyStyleAccessoriesModal.vue
@@ -8,78 +8,80 @@
:okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="关闭">
-
-
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/zystylefabric/ZyStyleFabricList.vue b/ant-design-vue-jeecg/src/views/zystylefabric/ZyStyleFabricList.vue
index bf49cae3..af0b00a9 100644
--- a/ant-design-vue-jeecg/src/views/zystylefabric/ZyStyleFabricList.vue
+++ b/ant-design-vue-jeecg/src/views/zystylefabric/ZyStyleFabricList.vue
@@ -145,6 +145,11 @@ export default {
return parseInt(index) + 1;
}
},
+ {
+ title: '服装类型',
+ align: "center",
+ dataIndex: 'typeName'
+ },
{
title: '款式编号',
align: "center",
diff --git a/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyProcessList.vue b/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyProcessList.vue
index b702ae1d..a06dedad 100644
--- a/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyProcessList.vue
+++ b/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyProcessList.vue
@@ -3,7 +3,26 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
diff --git a/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularModal.vue b/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularModal.vue
index a7ec8596..e15fcf85 100644
--- a/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularModal.vue
+++ b/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularModal.vue
@@ -27,7 +27,7 @@
processId:''
},
title:'',
- width:800,
+ width:900,
visible: false,
disableSubmit: false,
url: {
diff --git a/ant-design-vue-jeecg/src/views/zystylemodule/ZyStyleModuleList.vue b/ant-design-vue-jeecg/src/views/zystylemodule/ZyStyleModuleList.vue
index d30e3c5d..cfab3d98 100644
--- a/ant-design-vue-jeecg/src/views/zystylemodule/ZyStyleModuleList.vue
+++ b/ant-design-vue-jeecg/src/views/zystylemodule/ZyStyleModuleList.vue
@@ -18,8 +18,8 @@
-
-
+
diff --git a/ant-design-vue-jeecg/src/views/zystylemodule/modules/ZyClothsModularList.vue b/ant-design-vue-jeecg/src/views/zystylemodule/modules/ZyClothsModularList.vue
index 5ad4f6a7..a1b95596 100644
--- a/ant-design-vue-jeecg/src/views/zystylemodule/modules/ZyClothsModularList.vue
+++ b/ant-design-vue-jeecg/src/views/zystylemodule/modules/ZyClothsModularList.vue
@@ -4,12 +4,12 @@
-
+
-
+
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyaccessories/controller/ZyStyleAccessoriesController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyaccessories/controller/ZyStyleAccessoriesController.java
index 4a5537d0..5de0ca22 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyaccessories/controller/ZyStyleAccessoriesController.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyaccessories/controller/ZyStyleAccessoriesController.java
@@ -7,6 +7,7 @@ import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
+import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -22,6 +23,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
+import org.jeecg.modules.zystylefabric.mapper.ZyStyleFabricMapper;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
@@ -52,7 +54,11 @@ public class ZyStyleAccessoriesController extends JeecgController queryWrapper = QueryGenerator.initQueryWrapper(zyStyleAccessories, req.getParameterMap());
Page page = new Page(pageNo, pageSize);
IPage pageList = zyStyleAccessoriesService.page(page, queryWrapper);
+ List listRecords = pageList.getRecords();
+ for (ZyStyleAccessories zy : listRecords) {
+ String typeName = zyStyleFabricMapper.getTypeName(zy.getStyleId());
+ zy.setTypeName(typeName);
+ }
return Result.OK(pageList);
}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyaccessories/entity/ZyStyleAccessories.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyaccessories/entity/ZyStyleAccessories.java
index 227d0b5e..7024457f 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyaccessories/entity/ZyStyleAccessories.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyaccessories/entity/ZyStyleAccessories.java
@@ -5,6 +5,7 @@ import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@@ -55,7 +56,7 @@ public class ZyStyleAccessories implements Serializable {
@ApiModelProperty(value = "所属部门")
private java.lang.String sysOrgCode;
/**款式id*/
- @Excel(name = "款式id", width = 15)
+ @Excel(name = "服装款式id", width = 15)
@ApiModelProperty(value = "款式id")
@Dict(dictTable = "zy_cloths_style", dicText = "style_names", dicCode = "id")
private java.lang.String styleId;
@@ -64,4 +65,10 @@ public class ZyStyleAccessories implements Serializable {
@ApiModelProperty(value = "面料id")
@Dict(dictTable = "zy_accessories", dicText = "contents", dicCode = "id")
private java.lang.String accessoriesId;
+
+ /**服装类型名称*/
+ @Excel(name = "服装类型名称", width = 15)
+ @ApiModelProperty(value = "服装类型名称")
+ @TableField(exist = false)
+ private java.lang.String typeName;
}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/zyclothsstyle/service/impl/ZyClothsStyleServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/zyclothsstyle/service/impl/ZyClothsStyleServiceImpl.java
index 687fb44e..9a409660 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/zyclothsstyle/service/impl/ZyClothsStyleServiceImpl.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/zyclothsstyle/service/impl/ZyClothsStyleServiceImpl.java
@@ -60,16 +60,16 @@ public class ZyClothsStyleServiceImpl extends ServiceImpl numsList = zyClothsStyleMapper.selectNumsList();
- System.out.println(numsList);
- System.out.println(numsList.size());
+// System.out.println(numsList);
+// System.out.println(numsList.size());
List list = new ArrayList<>();
for (String nums : numsList) {
@@ -86,8 +86,8 @@ public class ZyClothsStyleServiceImpl extends ServiceImpl {
- @Autowired
- private IZyStyleFabricService zyStyleFabricService;
- @Autowired
- private INewZyStyleFabricService NewZyStyleFabricService;
- @Autowired
- private IZyClothsStyleService zyClothsStyleService;
- @Autowired
- private IZyFabricService zyFabricService;
-
- /**
- * 分页列表查询
- *
- * @param zyStyleFabric
- * @param pageNo
- * @param pageSize
- * @param req
- * @return
- */
- //@AutoLog(value = "款式面料表-分页列表查询")
- @ApiOperation(value="款式面料表-分页列表查询", notes="款式面料表-分页列表查询")
- @GetMapping(value = "/list")
- public Result> queryPageList(ZyStyleFabric zyStyleFabric,String id,
- @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
- @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
- HttpServletRequest req) {
- QueryWrapper queryWrapper = new QueryWrapper<>();
- if(id!=null){
- queryWrapper.eq("style_id",id);
- }
- if(zyStyleFabric.getStyleId()!=null || zyStyleFabric.getFabricId()!=null ){
- if(zyStyleFabric.getStyleId()!=null){
- queryWrapper.eq("style_id",zyStyleFabric.getStyleId());
- }
- if(zyStyleFabric.getFabricId()!=null){
- queryWrapper.eq("fabric_id",zyStyleFabric.getFabricId());
- }
-
- }
- List list = zyStyleFabricService.list(queryWrapper);
- List newZyStyleFabrics = new ArrayList<>();
- for (ZyStyleFabric zyStyleF : list){
- System.out.println("****"+zyStyleF);
- NewZyStyleFabric newZySF = new NewZyStyleFabric();
- //编辑回显
- newZySF.setId(zyStyleF.getId());
- newZySF.setFabricId(zyStyleF.getFabricId());
- newZySF.setStyleId(zyStyleF.getStyleId());
- //款式编号和名称
- String styleId = zyStyleF.getStyleId();
- ZyClothsStyle styleById = zyClothsStyleService.getById(styleId);
- newZySF.setStyleNums(styleById.getNums());
- newZySF.setStyleNames(styleById.getStyleNames());
- //模块编号和名称
- String fabricId = zyStyleF.getFabricId();
-
- ZyFabric fabricById = zyFabricService.getById(fabricId);
-
- newZySF.setFabricNumber(fabricById.getFabricNumber());
- newZySF.setFabricName(fabricById.getName());
- newZySF.setCreateTime(zyStyleF.getCreateTime());
- newZyStyleFabrics.add(newZySF);
- }
- IPage pageList = new Page<>(pageNo, pageSize, list.size());
- pageList.setRecords(newZyStyleFabrics);
- return Result.OK(pageList);
- }
-
- /**
- * 添加
- *
- * @param zyStyleFabric
- * @return
- */
- @AutoLog(value = "款式面料表-添加")
- @ApiOperation(value="款式面料表-添加", notes="款式面料表-添加")
- //@RequiresPermissions("org.jeecg.modules.demo:zy_style_fabric:add")
- @PostMapping(value = "/add")
- public Result