新增素云工艺

This commit is contained in:
2026-03-26 11:07:45 +08:00
parent ff9acb4bfb
commit 2733b250ad
2 changed files with 27 additions and 6 deletions
@@ -1566,6 +1566,9 @@ public class ProductService {
if (craft_list.contains("异形模切") && !(craft_list.contains("击凸") || craft_list.contains("压凹") || (craft_list.contains("单面烫金") || craft_list.contains("双面烫金") || craft_list.contains("烫镭射银")))) { if (craft_list.contains("异形模切") && !(craft_list.contains("击凸") || craft_list.contains("压凹") || (craft_list.contains("单面烫金") || craft_list.contains("双面烫金") || craft_list.contains("烫镭射银")))) {
mqPrice = Math.ceil(15 * 0.01 * product.getCount() + 50); mqPrice = Math.ceil(15 * 0.01 * product.getCount() + 50);
} }
if (craft_list.contains("打点线")) {
mqPrice += (35 + 0.2 * product.getCount()) * number;
}
product.setPrice(Math.floor(product.getPrice() * number * min + mqPrice)); product.setPrice(Math.floor(product.getPrice() * number * min + mqPrice));
product.setWeight(df.format(number * (length) / 100 * (width) / 100 * product.getCount() * 0.5)); product.setWeight(df.format(number * (length) / 100 * (width) / 100 * product.getCount() * 0.5));
} }
@@ -1577,13 +1580,15 @@ public class ProductService {
if ((width <= 9 && length <= 5.4) || (length <= 9 && width <= 5.4)) { if ((width <= 9 && length <= 5.4) || (length <= 9 && width <= 5.4)) {
} else if (width < 10 && length < 10) { } else if (width < 10 && length < 10) {
prices = new double[]{128, 256, 512, 640, 1280, 2560, 3840, 6400, 12800}; prices = new double[]{128, 256, 512, 640, 1280, 2560, 3840, 6400, 12800};
} else if ((width <= 10 && length <= 15) || (length <= 10 && width <= 15)) {
} else {
prices = new double[]{185, 370, 740, 925, 1850, 3700, 5550, 9250, 18500}; prices = new double[]{185, 370, 740, 925, 1850, 3700, 5550, 9250, 18500};
} else if (width < 15 && length < 15) {
prices = new double[]{300, 600, 1200, 1500, 3000, 6000, 9000, 15000, 30000};
// ((width <= 20 && length <= 15) || (length <= 20 && width <= 15))
} else {
prices = new double[]{450, 900, 1800, 2250, 4500, 9000, 13500, 22500, 45000};
} }
priceList = new ArrayList<>(); priceList = new ArrayList<>();
@@ -1615,6 +1620,12 @@ public class ProductService {
if (craft_list.contains("异形模切")) { if (craft_list.contains("异形模切")) {
craft_price += 60 + 0.1 * itemCount; craft_price += 60 + 0.1 * itemCount;
} }
if (craft_list.contains("压痕")) {
craft_price += 35 + 0.2 * itemCount;
}
if (craft_list.contains("打点线")) {
craft_price += 35 + 0.2 * itemCount;
}
if (craft_list.contains("击凸") || craft_list.contains("压凹")) { if (craft_list.contains("击凸") || craft_list.contains("压凹")) {
craft_price += 52 + 0.1 * itemCount; craft_price += 52 + 0.1 * itemCount;
+12 -2
View File
@@ -227,6 +227,10 @@
<option> <option>
</select> </select>
</div> </div>
<input type="checkbox" name="craft" lay-filter="mianka" value="打点线" title="打点线">
<span style="display: none">
<input type="checkbox" name="craft" lay-filter="mianka" value="压痕" title="压痕">
</span>
</div> </div>
</div> </div>
@@ -252,6 +256,7 @@
<option value="2">2</option> <option value="2">2</option>
</select> </select>
</div> </div>
<div id="baimo" class="layui-inline" style="display: none;width: 90px"> <div id="baimo" class="layui-inline" style="display: none;width: 90px">
<input type="checkbox" name="craft" lay-filter="mianka" value="白墨" title="白墨"> <input type="checkbox" name="craft" lay-filter="mianka" value="白墨" title="白墨">
</div> </div>
@@ -532,10 +537,15 @@
$("#color_type").find("select").attr("disabled", true); $("#color_type").find("select").attr("disabled", true);
$(".printColor").hide() $(".printColor").hide()
$(".printColor").find("input").attr("disabled", true); $(".printColor").find("input").attr("disabled", true);
$("#mianka input[name='craft'][value='压痕']").parent().hide();
$("#mianka input[name='craft'][value='压痕']").attr("disabled", true);
if (data.value == "300克") { if (data.value == "300克") {
colorHtml = `<option value="白色">白色</option>`; colorHtml = `<option value="白色">白色</option>`;
$(".printColor").css("display", "flex") $(".printColor").css("display", "flex")
$(".printColor").find("input").attr("disabled", false); $(".printColor").find("input").attr("disabled", false);
$("#mianka input[name='craft'][value='压痕']").parent().show();
$("#mianka input[name='craft'][value='压痕']").attr("disabled", false);
} }
$("#ccolor_type select[name='craft']").empty(); $("#ccolor_type select[name='craft']").empty();
@@ -842,8 +852,8 @@
} }
} }
if (kindValue == '300克') { if (kindValue == '300克') {
if ((size.split("*")[0] > 10 || size.split("*")[1] > 15) && (size.split("*")[0] > 15 || size.split("*")[1] > 10)) { if ((size.split("*")[0] > 20 || size.split("*")[1] > 15) && (size.split("*")[0] > 15 || size.split("*")[1] > 20)) {
layer.msg("【特种纸名片-300克素芸】尺寸不能大于10*15 cm", {offset: ['300px', '300px']}, function () { layer.msg("【特种纸名片-300克素芸】尺寸不能大于20*15 cm", {offset: ['300px', '300px']}, function () {
}); });
return false; return false;
} }