Browse Source

[fix] 销售管理

修过客户报价导出接口:把模板名字和按钮:由客户报价1、客户报价2、客户报价3、客户报价4 按照万材要求改成:Vantritek-RMB、Vantritek-美元、Infinity-RMB、Infinity-美元
修改导出销售出货单1后端接口、修改导出销售出货单2后端接口、修改导出销售出货箱单1后端接口、修改导出销售出货箱单2后端接口、修改导出销售出货发票1后端接口、修改导出销售出货发票2后端接口、修改导出出货通知单后端接口,采用新的查找文件方法
修改附件模板的名字
去掉附件模板的test文件
dev
liuxiaoxu 2 months ago
parent
commit
1ab4b30415
  1. 29
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysCustomerQuoteServiceImpl.java
  2. 0
      ruoyi-admin/src/main/resources/static/attachments/Infinity-RMB.xlsx
  3. 0
      ruoyi-admin/src/main/resources/static/attachments/Infinity-美元.xlsx
  4. 0
      ruoyi-admin/src/main/resources/static/attachments/Vantritek-RMB.xlsx
  5. 0
      ruoyi-admin/src/main/resources/static/attachments/Vantritek-美元.xlsx
  6. 0
      ruoyi-admin/src/main/resources/static/attachments/test.docx

29
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysCustomerQuoteServiceImpl.java

@ -449,12 +449,11 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService {
@Override
public void exportCustomerQuoteOne(String supplierCode, HttpServletResponse response) {
String fileName = "客户报价1.xlsx";
String fileName = "Vantritek-RMB.xlsx";
FileDownloadUtils fileDownloadUtils = new FileDownloadUtils();
try {
String fileRelativePath = fileDownloadUtils.getFileRelativePath(fileName);
String fileAbsolutePath = FileDownloadUtils.getFileAbsolutePath(fileName);
String realFileName = supplierCode +"-" + fileName.substring(0, fileName.indexOf(".")) + ".xlsx";
@ -502,7 +501,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService {
exportCustomerQuoteChildVos.add(exportCustomerQuoteChildVo);
}
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileRelativePath).build();
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileAbsolutePath).build();
WriteSheet sheet = EasyExcel.writerSheet().build();
FillConfig fillConfig = FillConfig.builder().forceNewRow(true).build();
workBook.fill(map, sheet);
@ -521,12 +520,11 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService {
* */
@Override
public void exportCustomerQuoteTwo(String supplierCode, HttpServletResponse response) {
String fileName = "客户报价2.xlsx";
String fileName = "Vantritek-美元.xlsx";
FileDownloadUtils fileDownloadUtils = new FileDownloadUtils();
try {
String fileRelativePath = fileDownloadUtils.getFileRelativePath(fileName);
String fileAbsolutePath = FileDownloadUtils.getFileAbsolutePath(fileName);
String realFileName = supplierCode +"-" + fileName.substring(0, fileName.indexOf(".")) + ".xlsx";
@ -567,7 +565,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService {
exportCustomerQuoteChildVos.add(exportCustomerQuoteChildVo);
}
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileRelativePath).build();
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileAbsolutePath).build();
WriteSheet sheet = EasyExcel.writerSheet().build();
FillConfig fillConfig = FillConfig.builder().forceNewRow(true).build();
workBook.fill(map, sheet);
@ -585,12 +583,11 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService {
* */
@Override
public void exportCustomerQuoteThree(String supplierCode, HttpServletResponse response) {
String fileName = "客户报价3.xlsx";
String fileName = "Infinity-RMB.xlsx";
FileDownloadUtils fileDownloadUtils = new FileDownloadUtils();
try {
String fileRelativePath = fileDownloadUtils.getFileRelativePath(fileName);
String fileAbsolutePath = FileDownloadUtils.getFileAbsolutePath(fileName);
String realFileName = supplierCode +"-" + fileName.substring(0, fileName.indexOf(".")) + ".xlsx";
@ -638,7 +635,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService {
exportCustomerQuoteChildVos.add(exportCustomerQuoteChildVo);
}
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileRelativePath).build();
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileAbsolutePath).build();
WriteSheet sheet = EasyExcel.writerSheet().build();
FillConfig fillConfig = FillConfig.builder().forceNewRow(true).build();
workBook.fill(map, sheet);
@ -656,12 +653,12 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService {
* */
@Override
public void exportCustomerQuoteFour(String supplierCode, HttpServletResponse response) {
String fileName = "客户报价4.xlsx";
String fileName = "Infinity-美元.xlsx";
FileDownloadUtils fileDownloadUtils = new FileDownloadUtils();
try {
String fileRelativePath = fileDownloadUtils.getFileRelativePath(fileName);
String fileAbsolutePath = FileDownloadUtils.getFileAbsolutePath(fileName);
String realFileName = supplierCode +"-" + fileName.substring(0, fileName.indexOf(".")) + ".xlsx";
@ -702,7 +699,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService {
exportCustomerQuoteChildVos.add(exportCustomerQuoteChildVo);
}
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileRelativePath).build();
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileAbsolutePath).build();
WriteSheet sheet = EasyExcel.writerSheet().build();
FillConfig fillConfig = FillConfig.builder().forceNewRow(true).build();
workBook.fill(map, sheet);

0
ruoyi-admin/src/main/resources/static/attachments/客户报价3.xlsx → ruoyi-admin/src/main/resources/static/attachments/Infinity-RMB.xlsx

0
ruoyi-admin/src/main/resources/static/attachments/客户报价4.xlsx → ruoyi-admin/src/main/resources/static/attachments/Infinity-美元.xlsx

0
ruoyi-admin/src/main/resources/static/attachments/客户报价1.xlsx → ruoyi-admin/src/main/resources/static/attachments/Vantritek-RMB.xlsx

0
ruoyi-admin/src/main/resources/static/attachments/客户报价2.xlsx → ruoyi-admin/src/main/resources/static/attachments/Vantritek-美元.xlsx

0
ruoyi-admin/src/main/resources/static/attachments/test.docx

Loading…
Cancel
Save