diff --git a/logon/jnlogoRLF20240528162449110129.png b/logon/jnlogoRLF20240528162449110129.png deleted file mode 100644 index 4b005d0..0000000 Binary files a/logon/jnlogoRLF20240528162449110129.png and /dev/null differ diff --git a/logon/jnlogoVFU20240528162510116091.png b/logon/jnlogoVFU20240528162510116091.png deleted file mode 100644 index 4b005d0..0000000 Binary files a/logon/jnlogoVFU20240528162510116091.png and /dev/null differ diff --git a/logon/jnlogo_CKX20240531091305985620.png b/logon/jnlogo_CKX20240531091305985620.png deleted file mode 100644 index 4b005d0..0000000 Binary files a/logon/jnlogo_CKX20240531091305985620.png and /dev/null differ diff --git a/logon/jnlogo_GHJ20240530155919642230.png b/logon/jnlogo_GHJ20240530155919642230.png deleted file mode 100644 index 4b005d0..0000000 Binary files a/logon/jnlogo_GHJ20240530155919642230.png and /dev/null differ diff --git a/logon/jnlogo_TEP20240530161415441482.png b/logon/jnlogo_TEP20240530161415441482.png deleted file mode 100644 index 4b005d0..0000000 Binary files a/logon/jnlogo_TEP20240530161415441482.png and /dev/null differ diff --git a/logon/jnlogo_UEK20240530160550759376.png b/logon/jnlogo_UEK20240530160550759376.png deleted file mode 100644 index 4b005d0..0000000 Binary files a/logon/jnlogo_UEK20240530160550759376.png and /dev/null differ diff --git a/logon/jnlogo_UKD20240530160929375474.png b/logon/jnlogo_UKD20240530160929375474.png deleted file mode 100644 index 4b005d0..0000000 Binary files a/logon/jnlogo_UKD20240530160929375474.png and /dev/null differ diff --git a/logon/wcQES20240528162510119987.png b/logon/wcQES20240528162510119987.png deleted file mode 100644 index ae1f9fa..0000000 Binary files a/logon/wcQES20240528162510119987.png and /dev/null differ diff --git a/logon/wcWGB20240528162449139599.png b/logon/wcWGB20240528162449139599.png deleted file mode 100644 index ae1f9fa..0000000 Binary files a/logon/wcWGB20240528162449139599.png and /dev/null differ diff --git a/logon/wc_IMS20240530160929381882.png b/logon/wc_IMS20240530160929381882.png deleted file mode 100644 index ae1f9fa..0000000 Binary files a/logon/wc_IMS20240530160929381882.png and /dev/null differ diff --git a/logon/wc_KTV20240530160550766652.png b/logon/wc_KTV20240530160550766652.png deleted file mode 100644 index ae1f9fa..0000000 Binary files a/logon/wc_KTV20240530160550766652.png and /dev/null differ diff --git a/logon/wc_LSV20240530155919693429.png b/logon/wc_LSV20240530155919693429.png deleted file mode 100644 index ae1f9fa..0000000 Binary files a/logon/wc_LSV20240530155919693429.png and /dev/null differ diff --git a/logon/wc_OSN20240530161415482874.png b/logon/wc_OSN20240530161415482874.png deleted file mode 100644 index ae1f9fa..0000000 Binary files a/logon/wc_OSN20240530161415482874.png and /dev/null differ diff --git a/logon/wc_TSR20240531091306068374.png b/logon/wc_TSR20240531091306068374.png deleted file mode 100644 index ae1f9fa..0000000 Binary files a/logon/wc_TSR20240531091306068374.png and /dev/null differ diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java index 2242eb9..c52f97b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java @@ -430,6 +430,21 @@ public class QuotController extends BaseController return success(); } + /** + * 报价单提交OA + */ + @PreAuthorize("@ss.hasPermi('quot:quot:assistOA')") + @Log(title = "报价单提交OA", businessType = BusinessType.OTHER) + @PostMapping("/commitOAQuot") + public AjaxResult commitOAQuot(@RequestBody Quot quot) + { + + // TODO 对接OA + return success(); + } + + + /** * 发送信息-报价组提交核价协助 * @param quotHj @@ -481,6 +496,7 @@ public class QuotController extends BaseController */ @Log(title = "报价单生成", businessType = BusinessType.OTHER) @PostMapping("/madeQuot") + @PreAuthorize("@ss.hasPermi('quot:quot:madeQuot')") public void madeQuot(HttpServletResponse response, @RequestBody Quot quot) { List list = quot.getQuotMaterialList(); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/utils/rbExcel/excelUtil.java b/ruoyi-admin/src/main/java/com/ruoyi/web/utils/rbExcel/excelUtil.java index ba1417d..c978c14 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/utils/rbExcel/excelUtil.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/utils/rbExcel/excelUtil.java @@ -47,6 +47,10 @@ public class excelUtil { public static void exportExcel(HttpServletResponse response, OAQuot quot, List list){ response.setContentType("application/vnd.ms-excel"); BigDecimal totalmoney = BigDecimal.ZERO; + + File jnlogo_file = new File("logon/"+IdUtils.createNo("jnlogo_",3)+".png"); + File wc_file = new File("logon/"+IdUtils.createNo("wc_",3)+".png"); + try { OutputStream os = response.getOutputStream(); WritableWorkbook wwb = Workbook.createWorkbook(os); @@ -287,21 +291,19 @@ public class excelUtil { wsheet.addCell(label); InputStream fileInputStream = new ClassPathResource("/jnlogo.png").getInputStream(); - File file = new File("logon/"+IdUtils.createNo("jnlogo_",3)+".png"); // 指定输出文件路径 //转换 - FileUtils.copyInputStreamToFile(fileInputStream, file); + FileUtils.copyInputStreamToFile(fileInputStream, jnlogo_file); //设置图片位置,前两个参数为插入图片的单元格坐标,后面是设置从插入的单元格开始横向和纵向分别要占用的单元格个数,最后传入图片文件 - WritableImage image=new WritableImage(0.3, 0.2, 1.25, 2.55,file); + WritableImage image=new WritableImage(0.3, 0.2, 1.25, 2.55,jnlogo_file); wsheet.addImage(image); InputStream fileInputStream2 = new ClassPathResource("/wc.png").getInputStream(); - File file2 = new File("logon/"+IdUtils.createNo("wc_",3)+".png"); // 指定输出文件路径 //转换 - FileUtils.copyInputStreamToFile(fileInputStream2, file2); + FileUtils.copyInputStreamToFile(fileInputStream2, wc_file); //设置图片位置,前两个参数为插入图片的单元格坐标,后面是设置从插入的单元格开始横向和纵向分别要占用的单元格个数,最后传入图片文件 - image=new WritableImage(6.7, 0.2, 1.20, 2.65,file2); + image=new WritableImage(6.7, 0.2, 1.20, 2.65,wc_file); wsheet.addImage(image); wsheet.getSettings().setBottomMargin(0.7d); @@ -327,7 +329,6 @@ public class excelUtil { os.close(); response.flushBuffer(); - } catch (RowsExceededException e) { // TODO Auto-generated catch block e.printStackTrace(); @@ -336,6 +337,13 @@ public class excelUtil { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); + }finally { + try { + FileUtils.delete(jnlogo_file); + FileUtils.delete(wc_file); + } catch (IOException e) { + e.printStackTrace(); + } } } @@ -349,6 +357,9 @@ public class excelUtil { public static void exportQuotExcel(HttpServletResponse response, Quot quot, List list){ response.setContentType("application/vnd.ms-excel"); BigDecimal totalmoney = BigDecimal.ZERO; + + File jnlogo_file = new File("logon/"+IdUtils.createNo("jnlogo_",3)+".png"); + File wc_file = new File("logon/"+IdUtils.createNo("wc_",3)+".png"); try { OutputStream os = response.getOutputStream(); WritableWorkbook wwb = Workbook.createWorkbook(os); @@ -595,21 +606,19 @@ public class excelUtil { wsheet.addCell(label); InputStream fileInputStream = new ClassPathResource("/jnlogo.png").getInputStream(); - File file = new File("logon/"+IdUtils.createNo("jnlogo_",3)+".png"); // 指定输出文件路径 //转换 - FileUtils.copyInputStreamToFile(fileInputStream, file); + FileUtils.copyInputStreamToFile(fileInputStream, jnlogo_file); //设置图片位置,前两个参数为插入图片的单元格坐标,后面是设置从插入的单元格开始横向和纵向分别要占用的单元格个数,最后传入图片文件 - WritableImage image=new WritableImage(0.3, 0.2, 1.25, 2.55,file); + WritableImage image=new WritableImage(0.3, 0.2, 1.25, 2.55,jnlogo_file); wsheet.addImage(image); InputStream fileInputStream2 = new ClassPathResource("/wc.png").getInputStream(); - File file2 = new File("logon/"+IdUtils.createNo("wc_",3)+".png"); // 指定输出文件路径 //转换 - FileUtils.copyInputStreamToFile(fileInputStream2, file2); + FileUtils.copyInputStreamToFile(fileInputStream2, wc_file); //设置图片位置,前两个参数为插入图片的单元格坐标,后面是设置从插入的单元格开始横向和纵向分别要占用的单元格个数,最后传入图片文件 - image=new WritableImage(6.7, 0.2, 1.20, 2.65,file2); + image=new WritableImage(6.7, 0.2, 1.20, 2.65,wc_file); wsheet.addImage(image); wsheet.getSettings().setBottomMargin(0.7d); @@ -644,6 +653,13 @@ public class excelUtil { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); + }finally { + try { + FileUtils.delete(jnlogo_file); + FileUtils.delete(wc_file); + } catch (IOException e) { + e.printStackTrace(); + } } } diff --git a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml index cb528b5..58a0d68 100644 --- a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml @@ -79,6 +79,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + + + + @@ -154,9 +161,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" a.quot_jsw_approval_status, - b.mat_id as sub_mat_id, b.mat_xingh as sub_mat_xingh, b.mat_guig as sub_mat_guig, - b.mat_diany as sub_mat_diany, b.mat_standard as sub_mat_standard, b.mat_danw as sub_mat_danw, b.mat_sl as sub_mat_sl, - b.mat_remark as sub_mat_remark,b.quot_id as sub_quot_id + b.mat_id as sub_mat_id, b.mat_xingh as sub_mat_xingh, b.mat_guig as sub_mat_guig, + b.mat_diany as sub_mat_diany, b.mat_standard as sub_mat_standard, b.mat_danw as sub_mat_danw, b.mat_sl as sub_mat_sl, + b.mat_remark as sub_mat_remark, + b.mat_matprice as sub_mat_matprice, + b.mat_price as sub_mat_price, + b.mat_quot_price as sub_mat_quot_price, + b.mat_quot_allPrice as sub_mat_quot_allPrice, + b.mat_matprice_diff as sub_mat_matprice_diff, + + b.quot_id as sub_quot_id from quot a left join quot_material b on b.quot_id = a.quot_id diff --git a/ruoyi-ui/src/api/quot/quot.js b/ruoyi-ui/src/api/quot/quot.js index d0ed534..d7ee554 100644 --- a/ruoyi-ui/src/api/quot/quot.js +++ b/ruoyi-ui/src/api/quot/quot.js @@ -119,6 +119,15 @@ export function commitJswQuot(data) { }) } +//提交OA +export function commitOAQuot(data) { + return request({ + url: '/quot/quot/commitOAQuot', + method: 'post', + data: data + }) +} + //提交反馈按钮 export function feedbackQuot(data) { return request({ diff --git a/ruoyi-ui/src/views/quot/quot/index.vue b/ruoyi-ui/src/views/quot/quot/index.vue index 918bc25..96f38c7 100644 --- a/ruoyi-ui/src/views/quot/quot/index.vue +++ b/ruoyi-ui/src/views/quot/quot/index.vue @@ -182,53 +182,30 @@ 当前协助情况 - + - - - +
- + - - - + - + - - - + - + - - - + + + + + +
@@ -316,7 +293,7 @@
-
+
@@ -330,7 +307,7 @@
-
+
@@ -430,6 +407,16 @@ + + + + + +