新增素云工艺

Bu işleme şunda yer alıyor:
2026-03-26 11:07:45 +08:00
ebeveyn ff9acb4bfb
işleme 2733b250ad
2 değiştirilmiş dosya ile 27 ekleme ve 6 silme
+15 -4
Dosyayı Görüntüle
@@ -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("烫镭射银")))) {
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.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)) {
} else if (width < 10 && length < 10) {
prices = new double[]{128, 256, 512, 640, 1280, 2560, 3840, 6400, 12800};
} else {
} else if ((width <= 10 && length <= 15) || (length <= 10 && width <= 15)) {
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<>();
@@ -1615,6 +1620,12 @@ public class ProductService {
if (craft_list.contains("异形模切")) {
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("压凹")) {
craft_price += 52 + 0.1 * itemCount;
+12 -2
Dosyayı Görüntüle
@@ -227,6 +227,10 @@
<option>
</select>
</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>
@@ -252,6 +256,7 @@
<option value="2">2</option>
</select>
</div>
<div id="baimo" class="layui-inline" style="display: none;width: 90px">
<input type="checkbox" name="craft" lay-filter="mianka" value="白墨" title="白墨">
</div>
@@ -532,10 +537,15 @@
$("#color_type").find("select").attr("disabled", true);
$(".printColor").hide()
$(".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克") {
colorHtml = `<option value="白色">白色</option>`;
$(".printColor").css("display", "flex")
$(".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();
@@ -842,8 +852,8 @@
}
}
if (kindValue == '300克') {
if ((size.split("*")[0] > 10 || size.split("*")[1] > 15) && (size.split("*")[0] > 15 || size.split("*")[1] > 10)) {
layer.msg("【特种纸名片-300克素芸】尺寸不能大于10*15 cm", {offset: ['300px', '300px']}, function () {
if ((size.split("*")[0] > 20 || size.split("*")[1] > 15) && (size.split("*")[0] > 15 || size.split("*")[1] > 20)) {
layer.msg("【特种纸名片-300克素芸】尺寸不能大于20*15 cm", {offset: ['300px', '300px']}, function () {
});
return false;
}