Parcourir la source

修改卡片打码,修改方巾尺寸

zhuyiyi il y a 1 semaine
Parent
commit
9e4cd87a59

+ 7 - 1
src/main/java/lingtao/net/service/ProductService.java

@@ -7341,8 +7341,14 @@ public class ProductService {
                 } else {
                     danjia = 0.1;
                 }
+                if (dto.getMaxian() == 3) {
+                    danjia = 0.1 * 2;
+                }
                 if (dto.getPcount() == 3) {
-                    danjia = 0.5;
+                    danjia = 0.8;
+                    if (dto.getMaxian() > 1) {
+                        danjia = danjia * dto.getMaxian();
+                    }
                 }
                 if ("上下编码".equals(dto.getBianma())) {
                     for (Product product : priceList) {

+ 2 - 3
src/main/webapp/views/product/coupon.jsp

@@ -521,14 +521,13 @@
                                         <span style="flex-shrink: 0">码数:</span>
                                         <select name="pcount" class="select" lay-filter="mashu">
                                             <option value="7" selected>7</option>
-                                            <option value="3">3</option>
                                         </select>
                                     </div>
                                 </div>
                                 <div class="layui-inline edge damaHide" style="width:100px;display:none">
                                     <div style="display: flex;align-items: center">
                                         <span style="flex-shrink: 0">个数:</span>
-                                        <select name="dama" class="select dama" lay-filter="dama">
+                                        <select name="maxian" class="select dama" lay-filter="dama">
                                             <option value="1" selected>1</option>
                                             <option value="2">2</option>
                                             <option value="3">3</option>
@@ -3119,7 +3118,7 @@
 
                         if (kindValue2 != 10) {
                             if ($(this).val() === '打码') {
-                                arr.push($(this).val() + '(' + $(".dama").val() + '' + $("select[name='pcount'] option:selected").val() + $("select[name='macolor'] option:selected").val() + ')');
+                                arr.push($(this).val() + '(' + $(".dama").val() + '' + $("select[name='pcount'] option:selected").val() + '位' + $("select[name='macolor'] option:selected").val() + ')');
                             }
                             if (kind != 1 && ($(this).val() === '单面烫金' || $(this).val() === '双面烫金')) {
                                 $(".sizeTang").find(":input").attr("disabled", false);

+ 3 - 3
src/main/webapp/views/product/handkerchiefPaper.jsp

@@ -255,14 +255,14 @@
                 });
                 return false;
             }
-            if (size == "27*27") {
+            if (size == "23*23") {
                 if (count < 3) {
-                    layer.msg("23*23、27*27尺寸3箱起做", {offset: ['300px', '300px']}, function () {
+                    layer.msg("23*23尺寸3箱起做", {offset: ['300px', '300px']}, function () {
                     });
                     return false;
                 }
             }
-            if (size == "23*23") {
+            if (size == "27*27") {
                 if (count < 5) {
                     layer.msg("23*23尺寸5箱起做", {offset: ['300px', '300px']}, function () {
                     });