浏览代码

Merge branch 'master' of http://git.ds-bay.com/project/kmall-pt-general

xwh 4 年之前
父节点
当前提交
d95554e24f

+ 8 - 2
kmall-admin/src/main/java/com/kmall/admin/controller/GoodsController.java

@@ -261,7 +261,10 @@ public class GoodsController {
             e.printStackTrace();
             return R.error("导入失败!");
         }
-        goodsService.uploadExcel(goodsDtoList,Integer.parseInt(Dict.exportDataType.item_1.getItem()));
+        int result = goodsService.uploadExcel(goodsDtoList,Integer.parseInt(Dict.exportDataType.item_1.getItem()));
+        if(0 == result){
+            throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
+        }
         //上传文件
         return R.ok();
     }
@@ -282,7 +285,10 @@ public class GoodsController {
             e.printStackTrace();
             return R.error("导入失败!");
         }
-        goodsService.uploadExcel(generalGoodsDtoList,Integer.parseInt(Dict.exportDataType.item_2.getItem()));
+        int result = goodsService.uploadExcel(generalGoodsDtoList,Integer.parseInt(Dict.exportDataType.item_2.getItem()));
+        if(0 == result){
+            throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
+        }
         //上传文件
         return R.ok();
     }

+ 2 - 2
kmall-admin/src/main/java/com/kmall/admin/controller/exportPDF/ExportPDFController.java

@@ -33,9 +33,9 @@ public class ExportPDFController {
 
     //打印pdf
     @RequestMapping("/printPdf")
-    public ModelAndView printPdf(String head ,String type,String sku,String storeId,String headUrl) throws Exception {
+    public ModelAndView printPdf(String head ,String type,String sku,String storeId,String headUrl,String prodBarcode) throws Exception {
 
-        PDFGoodsDto pdfGoodsDto = goodsService.queryForPDFData(sku,storeId);
+        PDFGoodsDto pdfGoodsDto = goodsService.queryForPDFData(sku,storeId,prodBarcode);
 
         if("1".equals(head)){
             Map<String, Object> model = new HashMap<>();

+ 2 - 2
kmall-admin/src/main/java/com/kmall/admin/dao/GoodsDao.java

@@ -4,7 +4,6 @@ import com.kmall.admin.dto.GoodsDetailsDto;
 import com.kmall.admin.dto.GoodsPanoramaDto;
 import com.kmall.admin.entity.GoodsEntity;
 import com.kmall.api.entity.exportpdf.PDFGoodsDto;
-import com.kmall.common.utils.print.ticket.item.Goods;
 import com.kmall.manager.dao.BaseDao;
 import org.apache.ibatis.annotations.Param;
 
@@ -45,7 +44,8 @@ public interface GoodsDao extends BaseDao<GoodsEntity> {
      * 查询pdf需要的数据
      * @param sku sku
      * @param storeId 门店id
+     * @param prodBarcode
      * @return
      */
-    PDFGoodsDto queryForPDFData(@Param("sku") String sku, @Param("storeId")String storeId);
+    PDFGoodsDto queryForPDFData(@Param("sku") String sku, @Param("storeId") String storeId, @Param("prodBarcode") String prodBarcode);
 }

+ 2 - 1
kmall-admin/src/main/java/com/kmall/admin/service/GoodsService.java

@@ -147,7 +147,8 @@ public interface GoodsService {
      * 查出pdf需要的需要
      * @param sku 商品sku
      * @param storeId
+     * @param prodBarcode
      * @return
      */
-    PDFGoodsDto queryForPDFData(String sku, String storeId);
+    PDFGoodsDto queryForPDFData(String sku, String storeId, String prodBarcode);
 }

+ 16 - 12
kmall-admin/src/main/java/com/kmall/admin/service/impl/GoodsServiceImpl.java

@@ -1,5 +1,6 @@
 package com.kmall.admin.service.impl;
 
+import com.alibaba.druid.support.json.JSONUtils;
 import com.google.common.collect.ImmutableBiMap;
 import com.google.common.collect.Maps;
 import com.kmall.admin.dao.*;
@@ -13,6 +14,8 @@ import com.kmall.api.entity.exportpdf.PDFGoodsDto;
 import com.kmall.common.constant.Dict;
 import com.kmall.admin.fromcomm.entity.SysUserEntity;
 import com.kmall.common.utils.*;
+import com.kmall.common.utils.print.ticket.item.Goods;
+import org.apache.poi.util.StringUtil;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
@@ -949,40 +952,40 @@ public class GoodsServiceImpl implements GoodsService {
             if(failMerchUserGoodsSnList != null && failMerchUserGoodsSnList.size() > 0){
                 exportExceptionDataEntity.setExportExceptionData("不能操作除了登录用户以外商户的商品,当前商户编号为【"+merchSn+"】,请检查商品编码【"+failMerchUserGoodsSnList+"】的商品信息");
                 exportExceptionDataDao.save(exportExceptionDataEntity);
-                throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
+                return 0;
             }
             if(failMerchGoodsSnList != null && failMerchGoodsSnList.size() > 0){
                 exportExceptionDataEntity.setExportExceptionData("第三方商户代码不存在,请在商城配置》第三方商户管理中维护,请检查商品编码【"+failMerchGoodsSnList+"】的商品信息,请先维护再继续操作!");
                 exportExceptionDataDao.save(exportExceptionDataEntity);
-                throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
+                return 0;
             }
             if(failGoodsSnList != null && failGoodsSnList.size() > 0){
                 if(failSameSkuList.size()>0) {
                     exportExceptionDataEntity.setExportExceptionData("不能有重复的商品编码、sku信息!请检查商品编码【" + failGoodsSnList + "】,业务类型【" +
                             failGoodsTypeList + "】,SKU【" + failSameSkuList + "】的商品信息");
                     exportExceptionDataDao.save(exportExceptionDataEntity);
-                    throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
+                    return 0;
                 }else{
                     exportExceptionDataEntity.setExportExceptionData("不能有重复的商品编码、sku信息!请检查商品编码【" + failGoodsSnList + "】,业务类型【" +
                             failGoodsTypeList + "】的商品信息");
                     exportExceptionDataDao.save(exportExceptionDataEntity);
-                    throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
+                    return 0;
                 }
             }
             if(failTypeGoodsSnList != null && failTypeGoodsSnList.size() > 0){
                 exportExceptionDataEntity.setExportExceptionData("货品业务类型只能是【00保税备货、02保税补货、10保税展示】!请检查商品编码【"+failTypeGoodsSnList+"】的商品信息");
                 exportExceptionDataDao.save(exportExceptionDataEntity);
-                throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
+                return 0;
             }
             if(failProdbarGoodsSnList != null && failProdbarGoodsSnList.size() > 0){
                 exportExceptionDataEntity.setExportExceptionData("不能有重复的产品条码信息!请检查商品编码【"+failProdbarGoodsSnList+"】的商品产品条码信息");
                 exportExceptionDataDao.save(exportExceptionDataEntity);
-                throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
+                return 0;
             }
             if(failHotGoodsSnList != null && failHotGoodsSnList.size() > 0){
                 exportExceptionDataEntity.setExportExceptionData("请检查业务类型为【保税补货或保税展示】的商品,商品编码【"+failHotGoodsSnList+"】的商品不能设置为热销!");
                 exportExceptionDataDao.save(exportExceptionDataEntity);
-                throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
+                return 0;
             }
 //            if(failCateGoodsSnList != null && failCateGoodsSnList.size() > 0){
 //                exportExceptionDataEntity.setExportExceptionData("分类信息请在商城配置》商品分类中维护,商品分类与商户信息对应,请检查该商品商户信息下的分类是否维护,不存在的商品编码【"+failCateGoodsSnList+"】");
@@ -1007,17 +1010,17 @@ public class GoodsServiceImpl implements GoodsService {
             if(failSuppGoodsSnList != null && failSuppGoodsSnList.size() > 0){
                 exportExceptionDataEntity.setExportExceptionData("供应商信息请在商城配置》商品供应商中维护,供应商与商户信息对应,请检查该商品商户信息下的供应商是否维护,不存在的商品编码【" + failSuppGoodsSnList + "】");
                 exportExceptionDataDao.save(exportExceptionDataEntity);
-                throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
+                return 0;
             }
             if(failUnitGoodsSnList != null && failUnitGoodsSnList.size() > 0){
                 exportExceptionDataEntity.setExportExceptionData("计算单位信息请在商城配置》计算单位中维护,不存在的商品编码【" + failUnitGoodsSnList + "】");
                 exportExceptionDataDao.save(exportExceptionDataEntity);
-                throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
+                return 0;
             }
             if(failNationGoodsSnList != null && failNationGoodsSnList.size() > 0){
                 exportExceptionDataEntity.setExportExceptionData("原产国信息请在商城配置》原产国中维护,不存在的商品编码【" + failNationGoodsSnList + "】");
                 exportExceptionDataDao.save(exportExceptionDataEntity);
-                throw new RRException("导入数据异常,异常信息请在商品管理》》商品导入异常数据中查看检查");
+                return 0;
             }
         }else{
             throw new RRException("导入数据为空,或者检查商品编码数据是否为空");
@@ -1047,11 +1050,12 @@ public class GoodsServiceImpl implements GoodsService {
      *
      * @param sku 商品sku
      * @param storeId
+     * @param prodBarcode
      * @return
      */
     @Override
-    public PDFGoodsDto queryForPDFData(String sku, String storeId) {
-        return goodsDao.queryForPDFData(sku,storeId);
+    public PDFGoodsDto queryForPDFData(String sku, String storeId, String prodBarcode) {
+        return goodsDao.queryForPDFData(sku,storeId,prodBarcode);
     }
 /*  @Override
     @Transactional

+ 4 - 0
kmall-admin/src/main/java/com/kmall/admin/utils/pdf/PdfUtil.java

@@ -34,6 +34,10 @@ public class PdfUtil {
               PDFWrite_12 pdfWrite12 = new PDFWrite_12();
               pdfWrite12.write(document,writer,pdfGoodsDto,fontUrl,uploadDir,headUrl);
               break;
+          case "18":
+              PDFWrite_18 pdfWrite18 = new PDFWrite_18();
+              pdfWrite18.write(document,writer,pdfGoodsDto,fontUrl,uploadDir,headUrl);
+              break;
           case "36":
               if ("1".equals(head)) {
                   PDFWrite_36 pdfWrite36 = new PDFWrite_36();

+ 5 - 5
kmall-admin/src/main/java/com/kmall/admin/utils/pdf/type/PDFWrite_12.java

@@ -70,7 +70,7 @@ public class PDFWrite_12 {
         table = new PdfPTable(3);
 
         for (int i = 0; i < 3; i++) {
-            setTable(bfHei, table, 22, pdfGoodsDto.getProductName());
+            setTable(bfHei, table, 16, pdfGoodsDto.getProductName());
         }
 
         doc.add(table);
@@ -90,7 +90,7 @@ public class PDFWrite_12 {
         table = new PdfPTable(3);
 
         for (int i = 0; i < 3; i++) {
-            setTable(bfHei, table, 14, pdfGoodsDto.getEnglishName());
+            setTable(bfHei, table, 12, pdfGoodsDto.getEnglishName());
         }
         doc.add(table);
 
@@ -104,14 +104,14 @@ public class PDFWrite_12 {
 
 
             // --------------大价格-------------------------------
-            Font font = new Font(bfHei, 54);
+            Font font = new Font(bfHei, 44);
             Paragraph bigPrice = new Paragraph("¥"+pdfGoodsDto.getPrice().substring(0,pdfGoodsDto.getPrice().indexOf(".")), font);
             PdfPCell priceCell = new PdfPCell(bigPrice);
             setBasisStyle(priceCell, Element.ALIGN_RIGHT, Element.ALIGN_CENTER);
             pdfPTable4.addCell(priceCell);
 
             // --------------小价格-------------------------------
-            font = new Font(bfHei, 40);
+            font = new Font(bfHei, 30);
             Paragraph smallPrice = new Paragraph(pdfGoodsDto.getPrice().substring(pdfGoodsDto.getPrice().indexOf(".")), font);
             PdfPCell smallPriceCell = new PdfPCell(smallPrice);
             setBasisStyle(smallPriceCell, Element.ALIGN_LEFT, Element.ALIGN_CENTER);
@@ -137,7 +137,7 @@ public class PDFWrite_12 {
         table = new PdfPTable(3);
 
         for (int i = 0; i < 3; i++) {
-            setTable(bfHei, table, 16, "比建议零售价省¥"+pdfGoodsDto.getSavings());
+            setTable(bfHei, table, 12, "比建议零售价省¥"+pdfGoodsDto.getSavings());
         }
 
         doc.add(table);

+ 224 - 0
kmall-admin/src/main/java/com/kmall/admin/utils/pdf/type/PDFWrite_18.java

@@ -0,0 +1,224 @@
+package com.kmall.admin.utils.pdf.type;
+
+import com.kmall.api.entity.exportpdf.PDFGoodsDto;
+import com.lowagie.text.*;
+import com.lowagie.text.pdf.*;
+
+import java.io.FileOutputStream;
+import java.io.IOException;
+
+/**
+ * @author zhangchuangbiao
+ * @version 1.0
+ * 2020-09-11 09:51
+ */
+public class PDFWrite_18 {
+
+
+    public void write(com.lowagie.text.Document doc, com.lowagie.text.pdf.PdfWriter writer, PDFGoodsDto pdfGoodsDto
+            , String fontUrl, String uploadDir, String headUrl) throws IOException, com.lowagie.text.DocumentException {
+
+        // 设置字体
+        com.lowagie.text.pdf.BaseFont bfHei = com.lowagie.text.pdf.BaseFont.createFont(fontUrl, com.lowagie.text.pdf.BaseFont.IDENTITY_H, com.lowagie.text.pdf.BaseFont.NOT_EMBEDDED);
+        com.lowagie.text.Font FontChinese11 = new com.lowagie.text.Font(bfHei, 11);
+
+        String path = uploadDir;
+        FileOutputStream out = new FileOutputStream(path);
+
+        doc.setMargins(0,0,0,0);
+
+        writer.setPdfVersion(com.lowagie.text.pdf.PdfWriter.PDF_VERSION_1_2);//版本(默认1.4)
+        doc.open();// 打开文档
+
+        // -----------------------标签头----------------------
+        getPdfPTable(FontChinese11, bfHei, doc,pdfGoodsDto,headUrl);
+        getPdfPTable(FontChinese11, bfHei, doc,pdfGoodsDto,headUrl);
+        getPdfPTable(FontChinese11, bfHei, doc,pdfGoodsDto,headUrl);
+
+
+        doc.close();  //记得关闭document
+
+    }
+
+    private static void getPdfPTable(com.lowagie.text.Font fontChinese11, BaseFont bfHei, Document doc,
+                                     PDFGoodsDto pdfGoodsDto, String headUrl) throws IOException, com.lowagie.text.DocumentException {
+        PdfPTable table = new PdfPTable(3);
+        table = new PdfPTable(6);
+
+        for (int i = 0; i < 6; i++) {
+            Image img = Image.getInstance(headUrl);
+            img.setAlignment(Image.ALIGN_CENTER);  //设置图片居中
+
+            PdfPCell p = new PdfPCell(img,true);
+            p.setPaddingLeft(2);
+            p.setPaddingRight(2);
+            p.setPaddingTop(2);
+            p.setBorder(0);
+            p.setCellEvent((cell,position,canvases)->{
+                PdfContentByte canvas = canvases[PdfPTable.LINECANVAS];
+                cellRight(position, canvas);
+                canvas.moveTo(position.getLeft(), position.getTop());
+                canvas.lineTo(position.getRight(), position.getTop());
+            });
+
+            table.setWidthPercentage(100f);
+            table.addCell(p);
+        }
+        doc.add(table);
+
+        // --------------产品名称-------------------------------
+        table = new PdfPTable(6);
+
+        for (int i = 0; i < 6; i++) {
+            setTable(bfHei, table, 16, pdfGoodsDto.getProductName());
+        }
+
+        doc.add(table);
+
+        Paragraph blankRow31 = new Paragraph(18f, " ", fontChinese11);
+        PdfPCell nextLine = new PdfPCell(blankRow31);
+        nextLine.setBorder(0);
+        nextLine.setCellEvent((cell,position,canvases)->{
+            PdfContentByte canvas = canvases[PdfPTable.LINECANVAS];
+            cellRight(position, canvas);
+        });
+//        doc.add(nextLine);
+
+
+
+        // --------------产品英文名称-------------------------------
+        table = new PdfPTable(6);
+
+        for (int i = 0; i < 6; i++) {
+            setTable(bfHei, table, 10, pdfGoodsDto.getEnglishName());
+        }
+        doc.add(table);
+
+
+        table = new PdfPTable(6);
+
+        for (int i = 0; i < 6; i++) {
+            PdfPTable pdfPTable4 = new PdfPTable(2);
+            pdfPTable4.setWidths(new int[]{10,6});
+
+
+
+            // --------------大价格-------------------------------
+            Font font = new Font(bfHei, 28);
+            Paragraph bigPrice = new Paragraph("¥"+pdfGoodsDto.getPrice().substring(0,pdfGoodsDto.getPrice().indexOf(".")), font);
+            PdfPCell priceCell = new PdfPCell(bigPrice);
+            setBasisStyle(priceCell, Element.ALIGN_RIGHT, Element.ALIGN_CENTER);
+            pdfPTable4.addCell(priceCell);
+
+            // --------------小价格-------------------------------
+            font = new Font(bfHei, 20);
+            Paragraph smallPrice = new Paragraph(pdfGoodsDto.getPrice().substring(pdfGoodsDto.getPrice().indexOf(".")), font);
+            PdfPCell smallPriceCell = new PdfPCell(smallPrice);
+            setBasisStyle(smallPriceCell, Element.ALIGN_LEFT, Element.ALIGN_CENTER);
+            pdfPTable4.addCell(smallPriceCell);
+
+            PdfPCell p = new PdfPCell(pdfPTable4);
+            p.setBorder(0);
+            p.setCellEvent((cell,position,canvases)->{
+                PdfContentByte canvas = canvases[PdfPTable.LINECANVAS];
+                cellRight(position, canvas);
+            });
+            table.setWidthPercentage(100f);
+            table.addCell(p);
+        }
+
+
+        doc.add(table);
+
+        // --------------空格--------------
+
+//        doc.add(nextLine);
+
+        // --------------底部1-------------------------------
+        table = new PdfPTable(6);
+
+        for (int i = 0; i < 6; i++) {
+            setTable(bfHei, table, 10, "比建议零售价省¥"+pdfGoodsDto.getSavings());
+        }
+
+        doc.add(table);
+
+
+        // --------------底部2-------------------------------
+        table = new PdfPTable(6);
+        for (int i = 0; i < 6; i++) {
+            setTable(bfHei, table, 8, "税率:"+pdfGoodsDto.getStartFax());
+        }
+        doc.add(table);
+
+        table = new PdfPTable(6);
+        for (int i = 0; i < 6; i++) {
+            // --------------底部左边PLU-------------------------------
+            PdfPTable pdfPTable7 = new PdfPTable(2);
+            Font font = new Font(bfHei, 7);
+            Paragraph PLU = new Paragraph(pdfGoodsDto.getPlu(), font);
+            PdfPCell pluCell = new PdfPCell(PLU);
+            setBasisStyle(pluCell, Element.ALIGN_LEFT, Element.ALIGN_MIDDLE);
+            pluCell.setPaddingLeft(10);
+            // --------------底部右边条形码-------------------------------
+            Paragraph barCode = new Paragraph(pdfGoodsDto.getBarCode(), font);
+            PdfPCell barCodeCell = new PdfPCell(barCode);
+            setBasisStyle(barCodeCell, Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE);
+            barCodeCell.setPaddingRight(10);
+            pdfPTable7.addCell(pluCell);
+            pdfPTable7.addCell(barCodeCell);
+            PdfPCell p = new PdfPCell(pdfPTable7);
+            p.setBorder(0);
+            p.setCellEvent((cell,position,canvases)->{
+                PdfContentByte canvas = canvases[PdfPTable.LINECANVAS];
+                cellRight(position, canvas);
+            });
+            table.setWidthPercentage(100f);
+            table.addCell(p);
+        }
+        doc.add(table);
+
+//        doc.add(nextLine);
+
+    }
+
+    // 绘制右边边框虚线
+    private static void cellRight(Rectangle position, PdfContentByte canvas) {
+        canvas.saveState();
+        canvas.setLineWidth(0.5f);
+        canvas.setLineDash(new float[]{5.0f, 5.0f}, 0);
+        canvas.moveTo(position.getRight(), position.getTop());
+        canvas.lineTo(position.getRight(), position.getBottom());
+        canvas.stroke();
+    }
+
+    // 去除边框,设置水平垂直居中
+    private static void setBasisStyle(PdfPCell pluCell, int alignLeft, int alignMiddle) {
+        pluCell.setBorder(0);
+        pluCell.setHorizontalAlignment(alignLeft); // 水平居中
+        pluCell.setVerticalAlignment(alignMiddle); // 垂直居中
+    }
+
+    private static void setTable(BaseFont bfHei, PdfPTable table, int i2, String s) {
+        Font font = new Font(bfHei, i2); // 设置字体
+        PdfPTable pdfPTable3 = new PdfPTable(1);
+        Paragraph pararaph = new Paragraph(s, font); // 段落
+        PdfPCell nameCell = new PdfPCell(pararaph); // 单元Cell
+        setBasisStyle(nameCell, Element.ALIGN_CENTER, Element.ALIGN_MIDDLE);
+        pdfPTable3.addCell(nameCell);
+
+        // 创建PCell来存储PTable,用来去除边框
+        PdfPCell p = new PdfPCell(pdfPTable3);
+        p.setBorder(0);
+        // 设置虚线边框
+        p.setCellEvent((cell, position, canvases) -> {
+            PdfContentByte canvas = canvases[PdfPTable.LINECANVAS];
+            cellRight(position, canvas);
+        });
+        // 填充满
+        table.setWidthPercentage(100f);
+        table.addCell(p);
+    }
+
+
+}

+ 1 - 1
kmall-admin/src/main/java/com/kmall/admin/utils/pdf/type/PDFWrite_36.java

@@ -109,7 +109,7 @@ public class PDFWrite_36 {
 
 
             // --------------大价格-------------------------------
-            Font font = new Font(bfHei, 22);
+            Font font = new Font(bfHei, 20);
             Paragraph bigPrice = new Paragraph("¥"+pdfGoodsDto.getPrice().substring(0,pdfGoodsDto.getPrice().indexOf(".")), font);
             PdfPCell priceCell = new PdfPCell(bigPrice);
             setBasisStyle(priceCell, Element.ALIGN_RIGHT, Element.ALIGN_CENTER);

+ 3 - 0
kmall-admin/src/main/resources/mybatis/mapper/GoodsDao.xml

@@ -704,6 +704,9 @@
             <if test="sku != null and sku != ''">
                and g.sku = #{sku}
             </if>
+            <if test="prodBarcode != null and prodBarcode != ''">
+                and g.prod_barcode = #{prodBarcode}
+            </if>
             <if test="storeId != null and storeId != ''">
                and rela.store_id = #{storeId}
             </if>

+ 17 - 17
kmall-admin/src/main/webapp/WEB-INF/page/shop/brand.html

@@ -63,7 +63,7 @@
             <Row>
                 <i-col span="16">
                     <Form-item label="图片" prop="listPicUrl">
-                        <i-input v-model="brand.listPicUrl" placeholder="图片" readonly/>
+                        <i-input v-model="brand.listPicUrl" placeholder="图片尺寸建议760*484像素以内,大小100k以下" readonly/>
                     </Form-item>
                 </i-col>
                 <i-col span="4">
@@ -83,18 +83,18 @@
                     </Form-item>
                 </i-col>
             </Row>
-            <Row>
-                <i-col span="16" style="margin-top: -30px;">
-                    <span style="margin-left: 100px;color: red;font-size: 12px;">* 图片尺寸建议760*484像素以内,大小100k以下</span>
-                </i-col>
-            </Row>
+            <!--<Row>-->
+                <!--<i-col span="16" style="margin-top: -30px;"  placeholder="图片尺寸建议760*484像素以内,大小100k以下">-->
+                    <!--&lt;!&ndash;<span style="margin-left: 100px;color: red;font-size: 12px;">* 图片尺寸建议760*484像素以内,大小100k以下</span>&ndash;&gt;-->
+                <!--</i-col>-->
+            <!--</Row>-->
             <Form-item label="描述" prop="simpleDesc">
                 <i-input type="textarea" v-model="brand.simpleDesc" placeholder="描述"/>
             </Form-item>
             <Row>
                 <i-col span="16">
                     <Form-item label="图片" prop="picUrl">
-                        <i-input v-model="brand.picUrl" placeholder="图片" readonly/>
+                        <i-input v-model="brand.picUrl" placeholder="图片尺寸建议760*484像素以内,大小100k以下" readonly/>
                     </Form-item>
                 </i-col>
                 <i-col span="4">
@@ -114,11 +114,11 @@
                     </Form-item>
                 </i-col>
             </Row>
-            <Row>
+            <!--<Row>
                 <i-col span="16" style="margin-top: -30px;">
                     <span style="margin-left: 100px;color: red;font-size: 12px;">* 图片尺寸建议760*484像素以内,大小100k以下</span>
                 </i-col>
-            </Row>
+            </Row>-->
             <Form-item label="排序" prop="sortOrder">
                 <Input-number :min="0" :step="1" v-model="brand.sortOrder" placeholder="排序" style="width: 188px;"/>
             </Form-item>
@@ -138,7 +138,7 @@
             <Row>
                 <i-col span="16">
                     <Form-item label="app显示图片" prop="appListPicUrl">
-                        <i-input v-model="brand.appListPicUrl" placeholder="app显示图片" readonly/>
+                        <i-input v-model="brand.appListPicUrl" placeholder="图片尺寸建议760*484像素以内,大小100k以下" readonly/>
                     </Form-item>
                 </i-col>
                 <i-col span="4">
@@ -158,11 +158,11 @@
                     </Form-item>
                 </i-col>
             </Row>
-            <Row>
+            <!--<Row>
                 <i-col span="16" style="margin-top: -30px;">
                     <span style="margin-left: 100px;color: red;font-size: 12px;">* app显示图片尺寸建议760*484像素以内,大小100k以下</span>
                 </i-col>
-            </Row>
+            </Row>-->
             <Form-item label="新品牌" prop="isNew">
                 <Radio-group v-model="brand.isNew">
                     <Radio label="1">
@@ -176,7 +176,7 @@
             <Row>
                 <i-col span="16">
                     <Form-item label="新品牌图片" prop="newPicUrl">
-                        <i-input v-model="brand.newPicUrl" placeholder="新品牌图片" readonly/>
+                        <i-input v-model="brand.newPicUrl" placeholder="图片尺寸建议760*484像素以内,大小100k以下" readonly/>
                     </Form-item>
                 </i-col>
                 <i-col span="4">
@@ -196,11 +196,11 @@
                     </Form-item>
                 </i-col>
             </Row>
-            <Row>
-                <i-col span="16" style="margin-top: -30px;">
-                    <span style="margin-left: 100px;color: red;font-size: 12px;">* 新品牌图片尺寸建议760*484像素以内,大小100k以下</span>
+            <!--<Row>
+                <i-col span="16" style="margin-top: -30px;" placeholder="* 新品牌图片尺寸建议760*484像素以内,大小100k以下">
+                    &lt;!&ndash;<span style="margin-left: 100px;color: red;font-size: 12px;"></span>&ndash;&gt;
                 </i-col>
-            </Row>
+            </Row>-->
             <Form-item label="新品牌排序" prop="newSortOrder">
                 <Input-number :min="0" :step="1" v-model="brand.newSortOrder" placeholder="新品牌排序"
                               style="width: 188px;"/>

+ 6 - 6
kmall-admin/src/main/webapp/WEB-INF/page/shop/category.html

@@ -137,7 +137,7 @@
             <Row>
                 <i-col span="16">
                     <Form-item label="首页icon" prop="iconUrl">
-                        <i-input v-model="category.iconUrl" placeholder="首页icon" readonly/>
+                        <i-input v-model="category.iconUrl" placeholder="尺寸建议90*90像素以内,大小100K以下" readonly/>
                     </Form-item>
                 </i-col>
                 <i-col span="4">
@@ -157,11 +157,11 @@
                     </Form-item>
                 </i-col>
             </Row>
-            <Row>
+            <!--<Row>
                 <i-col span="16" style="margin-top: -30px;">
                     <span style="margin-left: 100px;color: red;font-size: 12px;">* 尺寸建议90*90像素以内,大小100K以下</span>
                 </i-col>
-            </Row>
+            </Row>-->
             <!--<Row>-->
                 <!--<i-col span="16">-->
                     <!--<Form-item label="图片" prop="imgUrl">-->
@@ -193,7 +193,7 @@
             <Row>
                 <i-col span="16">
                     <Form-item label="分类banner" prop="wapBannerUrl">
-                        <i-input v-model="category.wapBannerUrl" placeholder="分类banner" readonly/>
+                        <i-input v-model="category.wapBannerUrl" placeholder="一级分类图片尺寸建议720*246像素以内,二级分类图片尺寸建议250*250像素以内,大小100K以下" readonly/>
                     </Form-item>
                 </i-col>
                 <i-col span="4">
@@ -215,11 +215,11 @@
                     </Form-item>
                 </i-col>
             </Row>
-            <Row>
+            <!--<Row>
                 <i-col span="16" style="margin-top: -30px;">
                     <span style="margin-left: 100px;color: red;font-size: 12px;">* 一级分类图片尺寸建议720*246像素以内,二级分类图片尺寸建议250*250像素以内,大小100K以下</span>
                 </i-col>
-            </Row>
+            </Row>-->
             <!--<Form-item label="类型" prop="type">-->
             <!--<Radio-group v-model="category.type">-->
             <!--<Radio label="0">-->

+ 1 - 1
kmall-admin/src/main/webapp/js/alarm/mall2orderingearlywarningreminds.js

@@ -6,7 +6,7 @@ $(function () {
 			{label: 'moewrId', name: 'moewrId', index: 'moewr_id', key: true, hidden: true},
 			{label: '商品id', name: 'goodsId', index: 'goods_id', align:"center",width: 160},
 			{label: '商品名称', name: 'goodsName', index: 'goods_name',width: 380},
-            {label: '商品sku', name: 'sku', index: 'sku',align:"center", width: 80},
+            {label: '商品sku', name: 'sku', index: 'sku',align:"center", width: 120},
             {label: '平均销量', name: 'averageSales', index: 'average_sales',align:"right", width: 120},
 			{label: '总库存数', name: 'totalNum', index: 'total_num',align:"right", width: 120},
 			{

+ 0 - 2
kmall-common/src/main/java/com/kmall/common/utils/excel/ExcelUtil.java

@@ -156,9 +156,7 @@ public class ExcelUtil {
             if (inputXLS != null) {
                 inputXLS.close();
             }
-
         }
-
     }
 
     /**