From b8aff2e54ea280041adf10440eb7eb85a144b07b Mon Sep 17 00:00:00 2001
From: zhc077 <565291854>
Date: Fri, 3 Feb 2023 15:38:27 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=8A=E6=8C=82=E7=AE=A1=E7=90=86-=E5=90=8A?=
=?UTF-8?q?=E6=8C=82=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF=202.3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/hanger/ZyHangList.vue | 343 ++++++++++--------
.../src/views/hanger/ZyHangPointList.vue | 183 ++++++++++
.../src/views/hanger/modules/ZyHangForm.vue | 34 +-
.../views/hanger/modules/ZyHangPointForm.vue | 118 ++++++
.../views/hanger/modules/ZyHangPointModal.vue | 60 +++
.../ZyHangPointModal__Style#Drawer.vue | 84 +++++
.../views/productplan/ZyProductPlanList.vue | 1 -
.../hanger/controller/ZyHangController.java | 50 ++-
.../controller/ZyHangPointController.java | 156 ++++++++
.../jeecg/modules/hanger/entity/ZyHang.java | 19 +-
.../modules/hanger/entity/ZyHangPoint.java | 81 +++++
.../hanger/mapper/ZyHangPointMapper.java | 15 +
.../hanger/service/IZyHangPointService.java | 15 +
.../service/impl/ZyHangPointServiceImpl.java | 19 +
14 files changed, 1006 insertions(+), 172 deletions(-)
create mode 100644 ant-design-vue-jeecg/src/views/hanger/ZyHangPointList.vue
create mode 100644 ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointForm.vue
create mode 100644 ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal.vue
create mode 100644 ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal__Style#Drawer.vue
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangPointController.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/entity/ZyHangPoint.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/mapper/ZyHangPointMapper.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/service/IZyHangPointService.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/service/impl/ZyHangPointServiceImpl.java
diff --git a/ant-design-vue-jeecg/src/views/hanger/ZyHangList.vue b/ant-design-vue-jeecg/src/views/hanger/ZyHangList.vue
index 49b489ba..228f5493 100644
--- a/ant-design-vue-jeecg/src/views/hanger/ZyHangList.vue
+++ b/ant-design-vue-jeecg/src/views/hanger/ZyHangList.vue
@@ -4,6 +4,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
@@ -13,23 +45,30 @@
新增
导出
-
-
+
+
-
+
- 删除
+
+
+ 删除
+
- 批量操作
+ 批量操作
+
+
@@ -52,8 +91,16 @@
无图片
-
+
+
+
+
+
+ 显示3d模型
+
+
无文件
编辑
-
+
handleDelete(record.id)">
删除
@@ -84,153 +131,155 @@
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/hanger/ZyHangPointList.vue b/ant-design-vue-jeecg/src/views/hanger/ZyHangPointList.vue
new file mode 100644
index 00000000..ce4cb2f1
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/hanger/ZyHangPointList.vue
@@ -0,0 +1,183 @@
+
+
+
+
+
+
+
+
+
新增
+
导出
+
+ 导入
+
+
+
+
+
+ 删除
+
+ 批量操作
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 无图片
+
+
+
+ 无文件
+
+ 下载
+
+
+
+
+ 编辑
+
+
+
+ 更多
+
+
+ 详情
+
+
+ handleDelete(record.id)">
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangForm.vue b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangForm.vue
index 2bd149cb..f8e1ad1d 100644
--- a/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangForm.vue
+++ b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangForm.vue
@@ -6,8 +6,6 @@
-
-
@@ -32,42 +30,49 @@
-
+
+
-
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
+
+
-
+
+
-
+
+
@@ -101,6 +106,7 @@ export default {
data () {
return {
model:{
+ status:1,
},
labelCol: {
xs: { span: 24 },
diff --git a/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointForm.vue b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointForm.vue
new file mode 100644
index 00000000..f31173ae
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointForm.vue
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal.vue b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal.vue
new file mode 100644
index 00000000..884b144e
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal__Style#Drawer.vue
new file mode 100644
index 00000000..30a01652
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal__Style#Drawer.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/productplan/ZyProductPlanList.vue b/ant-design-vue-jeecg/src/views/productplan/ZyProductPlanList.vue
index 14e63ec8..2429657f 100644
--- a/ant-design-vue-jeecg/src/views/productplan/ZyProductPlanList.vue
+++ b/ant-design-vue-jeecg/src/views/productplan/ZyProductPlanList.vue
@@ -313,7 +313,6 @@ export default {
getPaiWeiTu(record) {
// alert(JSON.stringify(record));
- alert("请稍等,正在开发中。。。")
getAction(this.url.paiweitu, record).then((res) => {
if (res.success) {
console.log("the paiweitu----------" + JSON.stringify(res.result))
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangController.java
index 8fd4607e..c86750ca 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangController.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangController.java
@@ -5,11 +5,19 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.google.zxing.BarcodeFormat;
+import com.google.zxing.EncodeHintType;
+import com.google.zxing.WriterException;
+import com.google.zxing.client.j2se.MatrixToImageWriter;
+import com.google.zxing.common.BitMatrix;
+import com.google.zxing.qrcode.QRCodeWriter;
+import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
+import org.jeecg.common.exception.JeecgBootException;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.hanger.entity.ZyHang;
@@ -21,8 +29,9 @@ import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import java.util.Arrays;
-import java.util.List;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.util.*;
/**
* @Description: 吊挂表
@@ -57,6 +66,38 @@ public class ZyHangController extends JeecgController {
QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(zyHang, req.getParameterMap());
Page page = new Page(pageNo, pageSize);
IPage pageList = zyHangService.page(page, queryWrapper);
+ if (!ObjectUtils.isEmpty(pageList)) {
+ Map hints = new HashMap();
+ //设置UTF-8, 防止中文乱码
+ hints.put(EncodeHintType.CHARACTER_SET, "UTF-8");
+ //设置二维码四周白色区域的大小
+ hints.put(EncodeHintType.MARGIN, 1);
+ //设置二维码的容错性
+ hints.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.H);
+ //width:图片完整的宽;height:图片完整的高
+ //因为要在二维码下方附上文字,所以把图片设置为长方形(高大于宽)
+ int width = 150;
+ int height = 150;
+ //画二维码,记得调用multiFormatWriter.encode()时最后要带上hints参数,不然上面设置无效
+ QRCodeWriter qrCodeWriter = new QRCodeWriter();
+// List