diff --git a/src/main/java/lingtao/net/util/PriceUtils.java b/src/main/java/lingtao/net/util/PriceUtils.java index 7d80611..04e8cff 100644 --- a/src/main/java/lingtao/net/util/PriceUtils.java +++ b/src/main/java/lingtao/net/util/PriceUtils.java @@ -2322,7 +2322,7 @@ public class PriceUtils { // 根据款数重新算价格 for (Product product : list) { product.setWeight(df.format(length * width * product.getCount() / 10000 * 0.3 * number)); - product.setPrice(Math.floor(product.getPrice() * number)); + product.setPrice(Math.ceil(product.getPrice() * number)); } } else if ("双面印刷".equals(craftShua)) { // 数量 @@ -2341,7 +2341,7 @@ public class PriceUtils { } // 根据款数重新算价格 for (Product product : list) { - product.setPrice(Math.floor(product.getPrice() * number)); + product.setPrice(Math.ceil(product.getPrice() * number)); } } } else { @@ -2398,7 +2398,7 @@ public class PriceUtils { price = fixPrice + (num - 5 > 0 ? num - 5 : 0) * zhang + designFee * number + 0.1 * count * number; Product dto = new Product(); dto.setCount(count); - dto.setPrice(price); + dto.setPrice(Math.ceil(price)); list.add(dto); } else { // 数量 @@ -2418,7 +2418,7 @@ public class PriceUtils { // 根据款数重新算价格 for (Product product : list) { product.setWeight(df.format(weight)); - product.setPrice(Math.floor(product.getPrice() * number)); + product.setPrice(Math.ceil(product.getPrice() * number)); } } } diff --git a/src/main/webapp/views/product/acidTags.jsp b/src/main/webapp/views/product/acidTags.jsp index db9395f..1df68b7 100644 --- a/src/main/webapp/views/product/acidTags.jsp +++ b/src/main/webapp/views/product/acidTags.jsp @@ -1,186 +1,199 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> -<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> + pageEncoding="UTF-8" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - -Insert title here -<%@include file="/views/common.jsp"%> + + Insert title here + <%@include file="/views/common.jsp" %> -
-
-

硫酸纸吊牌

- -
-
- -

- 尺寸(CM/厘米) 输入格式: 长 * 宽 -

-
- 135克硫酸纸尺寸 - - 350克铜版纸尺寸 - -
-

- 数量(套) -

-
- -
-

款数

-
- -
-

- 客户旺旺 -

-
- -
-

- 工艺 -

-
- -
-
- - -
-

计算结果-

-
- - <%@include file="../acountExpressFee.jsp"%> -
- -
-
-
-
-
-
- -
-
+
+
+

硫酸纸吊牌

+ +
+
+ +

+ 尺寸(CM/厘米) 输入格式: 长 * 宽 +

+
+ 135克硫酸纸尺寸 + + 350克铜版纸尺寸 + +
+

+ 数量(套) +

+
+ +
+

款数

+
+ +
+

+ 客户旺旺 +

+
+ +
+

+ 工艺 +

+
+ +
+
+ + +
+

计算结果- + +

+
+ + <%@include file="../acountExpressFee.jsp" %> +
+ +
+
+
+
+
+
+ +
+
-<%@include file="/views/copyResult.jsp"%> +<%@include file="/views/copyResult.jsp" %> \ No newline at end of file diff --git a/src/main/webapp/views/product/angingCloth.jsp b/src/main/webapp/views/product/angingCloth.jsp index 415bfdb..3f8bf2a 100644 --- a/src/main/webapp/views/product/angingCloth.jsp +++ b/src/main/webapp/views/product/angingCloth.jsp @@ -215,12 +215,12 @@ if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/antifake.jsp b/src/main/webapp/views/product/antifake.jsp index 6a7d6e3..bb31780 100644 --- a/src/main/webapp/views/product/antifake.jsp +++ b/src/main/webapp/views/product/antifake.jsp @@ -207,12 +207,12 @@ if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n'; data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n'; data[i].number = number; } } diff --git a/src/main/webapp/views/product/banqi.jsp b/src/main/webapp/views/product/banqi.jsp index 7bae304..c83526f 100644 --- a/src/main/webapp/views/product/banqi.jsp +++ b/src/main/webapp/views/product/banqi.jsp @@ -200,12 +200,12 @@ layui.use(['table','form','carousel'], function(){ if(number > 1){ for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "条,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "条,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/条\n' data[i].number = number; } }else{ for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "条,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "条,共" + data[i].price + "元"+ "," + (data[i].price / number / data[i].count).toFixed(2) + '/条\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/blackCard.jsp b/src/main/webapp/views/product/blackCard.jsp index 2645f43..3fe857e 100644 --- a/src/main/webapp/views/product/blackCard.jsp +++ b/src/main/webapp/views/product/blackCard.jsp @@ -233,12 +233,12 @@ if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/canopy.jsp b/src/main/webapp/views/product/canopy.jsp index 4bc4980..d86c7bb 100644 --- a/src/main/webapp/views/product/canopy.jsp +++ b/src/main/webapp/views/product/canopy.jsp @@ -270,12 +270,12 @@ if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/canvas.jsp b/src/main/webapp/views/product/canvas.jsp index 9fe6b17..96a9c0d 100644 --- a/src/main/webapp/views/product/canvas.jsp +++ b/src/main/webapp/views/product/canvas.jsp @@ -1,330 +1,342 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> - <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + pageEncoding="UTF-8" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - -Insert title here - <%@include file="/views/common.jsp"%> + + Insert title here + <%@include file="/views/common.jsp" %> -
-
-

帆布

-
-
- -
- - -
-

- 材质 -

-
- -
-
-

- 尺寸(CM/厘米) 输入格式: 长 * 宽 - -

-
- -
-
+
+
+ + +
+

计算结果- + +

+
+ + <%@include file="../acountExpressFee.jsp" %> +
+
+
+
+ +
+
+ +
+
-<%@include file="/views/copyResult.jsp"%> +<%@include file="/views/copyResult.jsp" %> \ No newline at end of file diff --git a/src/main/webapp/views/product/card.jsp b/src/main/webapp/views/product/card.jsp index c8c668f..d93134b 100644 --- a/src/main/webapp/views/product/card.jsp +++ b/src/main/webapp/views/product/card.jsp @@ -358,12 +358,12 @@ var span_result = proTypeValueData[proTypeValue] + ' - ' + kindValue + ' - ' + kind2Value + ' - ' + craftMo + ' - ' + craftJiao + ' -(同款内容)\n'; if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/chaqi.jsp b/src/main/webapp/views/product/chaqi.jsp index 43cfbb4..fb27b44 100644 --- a/src/main/webapp/views/product/chaqi.jsp +++ b/src/main/webapp/views/product/chaqi.jsp @@ -1730,11 +1730,11 @@ } for (let i = 0; i < data.length; i++) { data[i].number = number; - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n'; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n'; data[i].number = number; } } diff --git a/src/main/webapp/views/product/chetie.jsp b/src/main/webapp/views/product/chetie.jsp index 8b8afc5..48a2d8f 100644 --- a/src/main/webapp/views/product/chetie.jsp +++ b/src/main/webapp/views/product/chetie.jsp @@ -251,12 +251,12 @@ if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/clothes.jsp b/src/main/webapp/views/product/clothes.jsp index d83f3f9..c5a43d0 100644 --- a/src/main/webapp/views/product/clothes.jsp +++ b/src/main/webapp/views/product/clothes.jsp @@ -541,12 +541,12 @@ } if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "件,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "件,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/件\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "件,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "件,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/件\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/coaster.jsp b/src/main/webapp/views/product/coaster.jsp index 7cc3019..6710afd 100644 --- a/src/main/webapp/views/product/coaster.jsp +++ b/src/main/webapp/views/product/coaster.jsp @@ -491,12 +491,12 @@ } if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/colorEnvelope.jsp b/src/main/webapp/views/product/colorEnvelope.jsp index bcac527..5d375d9 100644 --- a/src/main/webapp/views/product/colorEnvelope.jsp +++ b/src/main/webapp/views/product/colorEnvelope.jsp @@ -404,12 +404,12 @@ } if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/copyPaper.jsp b/src/main/webapp/views/product/copyPaper.jsp index 6382daa..af39948 100644 --- a/src/main/webapp/views/product/copyPaper.jsp +++ b/src/main/webapp/views/product/copyPaper.jsp @@ -206,12 +206,12 @@ layui.use(['table','form','carousel'], function(){ var span_result = '复印纸 - ' + kind2 + ' - ' + size + 'cm - '+ kind +' - '+ kind3 + '(同款内容)\n'; if(number > 1){ for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "本,共" + data[i].price + "元" + '\n'; + span_result += number + '款 各' + data[i].count + "本,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/本\n' data[i].number = number; } }else{ for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "本,共" + data[i].price + "元" + '\n'; + span_result += number + '款 ' + data[i].count + "本,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/本\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/coupon.jsp b/src/main/webapp/views/product/coupon.jsp index e1d31f0..8dd14db 100644 --- a/src/main/webapp/views/product/coupon.jsp +++ b/src/main/webapp/views/product/coupon.jsp @@ -598,6 +598,9 @@ + + + -
- -
- +
+
+

筷子套

+
+
+

+ 材质 +

+
+ +
+ +

+ 规格 +

+
+ +
+

+ 数量(张) +

+
+ +
+

+ 款数 +

+
+ +
+

+ 客户旺旺 +

+
+ +
+
+
+ + +
+

计算结果- + +

+
+ + <%@include file="../acountExpressFee.jsp" %> +
+

下单备注- + +

+
+ +
+
+
+
+
+
+
+ +
+
-<%@include file="/views/copyResult.jsp"%> +<%@include file="/views/copyResult.jsp" %> \ No newline at end of file diff --git a/src/main/webapp/views/product/landa.jsp b/src/main/webapp/views/product/landa.jsp index b71b2e5..aad68e7 100644 --- a/src/main/webapp/views/product/landa.jsp +++ b/src/main/webapp/views/product/landa.jsp @@ -249,12 +249,12 @@ if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "条,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "条,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/条\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "条,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "条,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/条\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/leiTag.jsp b/src/main/webapp/views/product/leiTag.jsp index f46cd67..8559d08 100644 --- a/src/main/webapp/views/product/leiTag.jsp +++ b/src/main/webapp/views/product/leiTag.jsp @@ -228,12 +228,12 @@ if (data.value == "尼龙绳") { if ($(data.elem).is(":checked")) { $("#peijian_ui .scolor").show(); - $("#peijian_ui .scolor").prop("disabled", false); + $("#peijian_ui .scolor select").prop("disabled", false); $("#peijian_ui .select_nilongshen").show(); $("#peijian_ui .select_nilongshen select").prop("disabled", false); } else { $("#peijian_ui .scolor").hide(); - $("#peijian_ui .scolor").prop("disabled", true); + $("#peijian_ui .scolor select").prop("disabled", true); $("#peijian_ui .select_nilongshen").hide(); $("#peijian_ui .select_nilongshen select").prop("disabled", true); } @@ -300,12 +300,12 @@ if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/lsz.jsp b/src/main/webapp/views/product/lsz.jsp index 4e25cc7..d8fb2b0 100644 --- a/src/main/webapp/views/product/lsz.jsp +++ b/src/main/webapp/views/product/lsz.jsp @@ -148,6 +148,7 @@ } $("#desType").empty().append(html); } + layui.use(['table', 'form', 'carousel'], function () { var form = layui.form; //只有执行了这一步,部分表单元素才会自动修饰成功 var carousel = layui.carousel; @@ -188,7 +189,7 @@ $("#number").on("input", function (e) { var number = e.delegateTarget.value; - if ( number > 1 && $("input[name='stickerKind']:checked").val() == "专版打印") { + if (number > 1 && $("input[name='stickerKind']:checked").val() == "专版打印") { $("#ui_des").show(); } else { $("#ui_des").hide(); @@ -323,12 +324,12 @@ span_result += '\n'; if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/medal.jsp b/src/main/webapp/views/product/medal.jsp index 57449d3..b210e65 100644 --- a/src/main/webapp/views/product/medal.jsp +++ b/src/main/webapp/views/product/medal.jsp @@ -521,12 +521,12 @@ var span_result = '奖牌 - ' + kind + '-' + kind1 + '-' + size + ' (同款内容)\n' + "工艺 :" + craftList.join('、') + "\n"; if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/metal.jsp b/src/main/webapp/views/product/metal.jsp index 03232c7..29fe586 100644 --- a/src/main/webapp/views/product/metal.jsp +++ b/src/main/webapp/views/product/metal.jsp @@ -438,12 +438,12 @@ var span_result = '金属标 - ' + color + ' - ' + size + '厘米 -' + craftMo + '-(同款内容)\n'; if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元"+ "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } @@ -458,13 +458,13 @@ let numberType = $("#desType option:selected").text(); span_result += "款数:" + number + "-" + numberType + "\n"; for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; data[i].kindLabel = 'UV转印贴' } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; data[i].kindLabel = 'UV转印贴' } diff --git a/src/main/webapp/views/product/msd.jsp b/src/main/webapp/views/product/msd.jsp index 335f134..bafe154 100644 --- a/src/main/webapp/views/product/msd.jsp +++ b/src/main/webapp/views/product/msd.jsp @@ -188,12 +188,12 @@ var span_result = '900克慕斯垫 - ' + kind + "-" + craft + "(同款内容) " + '\n'; if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/notePaper.jsp b/src/main/webapp/views/product/notePaper.jsp index ca203bb..fb6a45c 100644 --- a/src/main/webapp/views/product/notePaper.jsp +++ b/src/main/webapp/views/product/notePaper.jsp @@ -441,24 +441,24 @@ if(notePaperKind == "红头文件" || notePaperKind == "彩胶纸"){ if(number > 1){ for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } }else{ for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元"+ "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } }else{ if(number > 1){ for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "本,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "本,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } }else{ for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "本,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "本,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/orders.jsp b/src/main/webapp/views/product/orders.jsp index ad34d59..9146826 100644 --- a/src/main/webapp/views/product/orders.jsp +++ b/src/main/webapp/views/product/orders.jsp @@ -294,12 +294,12 @@ var span_result = "菜单 - " + kind + ' - ' + size + ' 厘米 -(同款内容)\n' + "工艺 :" + arr + "\n"; if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/packingBox.jsp b/src/main/webapp/views/product/packingBox.jsp index 274497d..ed12e1f 100644 --- a/src/main/webapp/views/product/packingBox.jsp +++ b/src/main/webapp/views/product/packingBox.jsp @@ -171,12 +171,12 @@ layui.use(['table','form','carousel'], function(){ var span_result = '包装盒 - 350克白卡纸 - ' + kind + ' - ' + size +' CM -(同款内容)\n'; if(number > 1){ for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } }else{ for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元"+ "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/paperCup.jsp b/src/main/webapp/views/product/paperCup.jsp index f19116d..0784f89 100644 --- a/src/main/webapp/views/product/paperCup.jsp +++ b/src/main/webapp/views/product/paperCup.jsp @@ -1,175 +1,186 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> - <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + pageEncoding="UTF-8" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - -Insert title here - <%@include file="/views/common.jsp"%> + + Insert title here + <%@include file="/views/common.jsp" %> -
-
-

一次性纸杯

-
-
-

- 材质 -

-
- -
-

- 规格 -

-
- -
- -

- 数量(个) -

-
- -
-

- 款数 -

-
- -
-

- 客户旺旺 -

-
- -
-
-
- - -
-

计算结果-

-
- - <%@include file="../acountExpressFee.jsp"%> -
-

下单备注-

-
- -
-
-
-
-
-
-
- -
-
+
+
+

一次性纸杯

+
+
+

+ 材质 +

+
+ +
+

+ 规格 +

+
+ +
+ +

+ 数量(个) +

+
+ +
+

+ 款数 +

+
+ +
+

+ 客户旺旺 +

+
+ +
+
+
+ + +
+

计算结果- + +

+
+ + <%@include file="../acountExpressFee.jsp" %> +
+

下单备注- + +

+
+ +
+
+
+
+
+
+
+ +
+
-<%@include file="/views/copyResult.jsp"%> +<%@include file="/views/copyResult.jsp" %> \ No newline at end of file diff --git a/src/main/webapp/views/product/pet.jsp b/src/main/webapp/views/product/pet.jsp index 10ef78f..fbab48b 100644 --- a/src/main/webapp/views/product/pet.jsp +++ b/src/main/webapp/views/product/pet.jsp @@ -250,12 +250,12 @@ if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "条,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "条,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/pictureAlbum.jsp b/src/main/webapp/views/product/pictureAlbum.jsp index 118cca6..d44182b 100644 --- a/src/main/webapp/views/product/pictureAlbum.jsp +++ b/src/main/webapp/views/product/pictureAlbum.jsp @@ -1,412 +1,433 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> - <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + pageEncoding="UTF-8" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - -Insert title here - <%@include file="/views/common.jsp"%> + + Insert title here + <%@include file="/views/common.jsp" %> -
-
-

画册

-
-
- -
- - -
-
-

- 封面 -

-
- -
-

- 内页 -

-
-
- - - -
-
-

- 装订 -

-
- - -
-

- 尺寸(CM/厘米) 输入格式: 长 * 宽 - -

-
- -
-

- 封面P数 (固定P数) -

-
- -
-

- 内页P数 请输入4的整数倍 -

-
- -
-

- 数量(本) -

-
- -
-
- -

- 款数 -

-
- -
-

- 客户旺旺 -

-
- -
-
-
- - -
-

计算结果-

-
- - <%@include file="../acountExpressFee.jsp"%> -
- -
-
-
-
-
-
- -
-
+
+
+

画册

+
+
+ +
+ + +
+
+

+ 封面 +

+
+ +
+

+ 内页 +

+
+
+ + + +
+
+

+ 装订 +

+
+ + +
+

+ 尺寸(CM/厘米) 输入格式: 长 * 宽 + +

+
+ +
+

+ 封面P数 (固定P数) +

+
+ +
+

+ 内页P数 请输入4的整数倍 +

+
+ +
+

+ 数量(本) +

+
+ +
+
+ +

+ 款数 +

+
+ +
+

+ 客户旺旺 +

+
+ +
+
+
+ + +
+

计算结果- + +

+
+ + <%@include file="../acountExpressFee.jsp" %> +
+ +
+
+
+
+
+
+ +
+
-<%@include file="/views/copyResult.jsp"%> +<%@include file="/views/copyResult.jsp" %> \ No newline at end of file diff --git a/src/main/webapp/views/product/placeMat.jsp b/src/main/webapp/views/product/placeMat.jsp index 2869f68..7655aec 100644 --- a/src/main/webapp/views/product/placeMat.jsp +++ b/src/main/webapp/views/product/placeMat.jsp @@ -141,12 +141,12 @@ layui.use(['table','form','carousel'], function(){ var span_result ="餐垫纸 - " + kind +' - '+ size +' 厘米 -(同款内容)\n'; if(number > 1){ for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } }else{ for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/poster.jsp b/src/main/webapp/views/product/poster.jsp index b69d052..60fec37 100644 --- a/src/main/webapp/views/product/poster.jsp +++ b/src/main/webapp/views/product/poster.jsp @@ -1668,12 +1668,12 @@ span_result += "款数:" + number + "-" + numberType + "\n"; } for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + unit + ",共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + unit + ",共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/' + unit + '\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + unit + ",共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + unit + ",共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/' + unit + '\n' data[i].number = number; } } @@ -1698,13 +1698,13 @@ var span_result = kindData[kind] + ' - ' + kind2 + ' - ' + size + 'cm * ' + width + ' - ' + craftTiao + '\n'; if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "条,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "条,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/条\n' data[i].number = number; data[i].kindLabel = "条幅" } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "条,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "条,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/条\n' data[i].number = number; data[i].kindLabel = "条幅" } @@ -1718,13 +1718,13 @@ var span_result = kindData[kind] + ' - ' + kind2 + ' - ' + size + 'cm' + '\n'; if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "条,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "条,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/条\n' data[i].number = number; data[i].kindLabel = "条幅" } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "条,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "条,共" + data[i].price + "元"+ "," + (data[i].price / number / data[i].count).toFixed(2) + '/条\n' data[i].number = number; data[i].kindLabel = "条幅" } diff --git a/src/main/webapp/views/product/programCard.jsp b/src/main/webapp/views/product/programCard.jsp index 56c8b8b..8c1cf6a 100644 --- a/src/main/webapp/views/product/programCard.jsp +++ b/src/main/webapp/views/product/programCard.jsp @@ -154,12 +154,12 @@ layui.use(['table','form','carousel'], function(){ var span_result ="节目单- " + kind1 +' - '+ kind + " - " + kind2 +' -(同款内容)\n' + "工艺 :"+ arr + "\n"; if(number > 1){ for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } }else{ for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/pvcCard.jsp b/src/main/webapp/views/product/pvcCard.jsp index 7cfd8cc..668fc30 100644 --- a/src/main/webapp/views/product/pvcCard.jsp +++ b/src/main/webapp/views/product/pvcCard.jsp @@ -302,12 +302,12 @@ var span_result = 'PVC异形卡片 - ' + kind + ' - ' + size + ' CM' + ' - ' + craft + ' - ' + craftShua + ' - ' + craftJiao + '\n'; if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/pvcfigure.jsp b/src/main/webapp/views/product/pvcfigure.jsp index 444aa79..3599299 100644 --- a/src/main/webapp/views/product/pvcfigure.jsp +++ b/src/main/webapp/views/product/pvcfigure.jsp @@ -316,12 +316,12 @@ var span_result = "数码PVC" + ' - ' + kindValue + '-' + size + 'cm' + '-' + shua + ' -(同款内容)\n'; if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/rollLabel.jsp b/src/main/webapp/views/product/rollLabel.jsp index 741ca20..e747719 100644 --- a/src/main/webapp/views/product/rollLabel.jsp +++ b/src/main/webapp/views/product/rollLabel.jsp @@ -256,17 +256,17 @@ if (!!craftTang) { craft_list.push(craftTang); } - if(craft_list.length > 0){ + if (craft_list.length > 0) { span_result += "工艺:" + craft_list.join(",") + '\n'; } if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/roomCard.jsp b/src/main/webapp/views/product/roomCard.jsp index 87ab189..1f13e1b 100644 --- a/src/main/webapp/views/product/roomCard.jsp +++ b/src/main/webapp/views/product/roomCard.jsp @@ -209,12 +209,12 @@ layui.use(['table','form','carousel'], function(){ if(number > 1){ for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } }else{ for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/slq.jsp b/src/main/webapp/views/product/slq.jsp index 61cdcef..9701cf9 100644 --- a/src/main/webapp/views/product/slq.jsp +++ b/src/main/webapp/views/product/slq.jsp @@ -1,234 +1,244 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> - <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + pageEncoding="UTF-8" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - -Insert title here - <%@include file="/views/common.jsp"%> + + Insert title here + <%@include file="/views/common.jsp" %> -
-
-

手拉旗

-
-
- -

- 材质 -

-
- -
-

- 宽度 -

-
- -
-

- 长度(CM/厘米) -

-
- -
-

- 数量(个) -

-
- -
-

- 款数 -

-
- -
-

- 客户旺旺 -

-
- -
-
-
- - -
-

计算结果-

-
- - <%@include file="../acountExpressFee.jsp"%> -
-
-
-
-
-
-
- -
-
+
+
+

手拉旗

+
+
+ +

+ 材质 +

+
+ +
+

+ 宽度 +

+
+ +
+

+ 长度(CM/厘米) +

+
+ +
+

+ 数量(个) +

+
+ +
+

+ 款数 +

+
+ +
+

+ 客户旺旺 +

+
+ +
+
+
+ + +
+

计算结果- + +

+
+ + <%@include file="../acountExpressFee.jsp" %> +
+
+
+
+
+
+
+ +
+
-<%@include file="/views/copyResult.jsp"%> +<%@include file="/views/copyResult.jsp" %> \ No newline at end of file diff --git a/src/main/webapp/views/product/specialCard2.jsp b/src/main/webapp/views/product/specialCard2.jsp index 9632959..9df6207 100644 --- a/src/main/webapp/views/product/specialCard2.jsp +++ b/src/main/webapp/views/product/specialCard2.jsp @@ -757,12 +757,12 @@ span_result += "款数:" + number + "-" + numberType + "\n"; } for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/stickers.jsp b/src/main/webapp/views/product/stickers.jsp index f5a754b..f2ef5cb 100644 --- a/src/main/webapp/views/product/stickers.jsp +++ b/src/main/webapp/views/product/stickers.jsp @@ -1797,11 +1797,11 @@ } for (let i = 0; i < data.length; i++) { data[i].number = number; - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/个\n' } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/tablecolth.jsp b/src/main/webapp/views/product/tablecolth.jsp index 1044b8e..eabdcb4 100644 --- a/src/main/webapp/views/product/tablecolth.jsp +++ b/src/main/webapp/views/product/tablecolth.jsp @@ -179,12 +179,12 @@ var span_result = '桌布 - ' + kind + '-' + size + ' CM (同款内容)\n'; if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/tagClothes.jsp b/src/main/webapp/views/product/tagClothes.jsp index 6029eb7..5f3c4e9 100644 --- a/src/main/webapp/views/product/tagClothes.jsp +++ b/src/main/webapp/views/product/tagClothes.jsp @@ -572,7 +572,6 @@ $("#tag").show(); $("#tag").find(":input").attr("disabled", false); - form.render(); } } else { @@ -884,7 +883,7 @@ price_text = "," + Math.ceil(data[i].count * 20 / 5000) + "捆"; } - span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + price_text + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + price_text + ","+(data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } else { @@ -894,7 +893,7 @@ if (shengku) { price_text = "," + Math.ceil(data[i].count * 20 / 5000) + "捆"; } - span_result += data[i].count + "张" + data[i].price + "元" + price_text + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + price_text + ","+(data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } @@ -914,7 +913,7 @@ if (shengku) { price_text = "," + Math.ceil(data[i].count * 20 / 5000) + "捆"; } - span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + price_text + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + price_text + ","+(data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } else { @@ -925,7 +924,7 @@ if (shengku) { price_text = "," + Math.ceil(data[i].count * 20 / 5000) + "捆"; } - span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + price_text + '\n' + span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + price_text + ","+(data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/warmSticker.jsp b/src/main/webapp/views/product/warmSticker.jsp index 59746a3..9c3fe04 100644 --- a/src/main/webapp/views/product/warmSticker.jsp +++ b/src/main/webapp/views/product/warmSticker.jsp @@ -157,12 +157,12 @@ layui.use(['table','form','carousel'], function(){ var span_result ='暖心贴 - ' + kindValueData[kindValue] + ' - ' + kind2Value + '(每本50张)\n'; if(number > 1){ for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "本,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "本,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/本\n' data[i].number = number; } }else{ for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "本,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "本,共" + data[i].price + "元" + "," + (data[i].price / number / data[i].count).toFixed(2) + '/本\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/waterGauge.jsp b/src/main/webapp/views/product/waterGauge.jsp index f6a086d..686aa1b 100644 --- a/src/main/webapp/views/product/waterGauge.jsp +++ b/src/main/webapp/views/product/waterGauge.jsp @@ -259,12 +259,12 @@ if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "张,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/张\n' data[i].number = number; } } diff --git a/src/main/webapp/views/product/weddingCard.jsp b/src/main/webapp/views/product/weddingCard.jsp index 376b127..b2a26c4 100644 --- a/src/main/webapp/views/product/weddingCard.jsp +++ b/src/main/webapp/views/product/weddingCard.jsp @@ -223,12 +223,12 @@ craft += craftShua + craftMo; if (number > 1) { for (let i = 0; i < data.length; i++) { - span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } } else { for (let i = 0; i < data.length; i++) { - span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n' + span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + ","+(data[i].price / number / data[i].count).toFixed(2) + '/个\n' data[i].number = number; } }