新增防水布

This commit is contained in:
2026-06-21 13:00:31 +08:00
parent 28428f6135
commit 91f5ddcf6f
2 changed files with 25 additions and 4 deletions
@@ -5284,7 +5284,7 @@ public class ProductService {
if ("黑胶涤纶布".equals(dto.getKindValue())) {
basePrice = basePrice + 1;
}
price = Math.ceil(basePrice * area * count * number);
price = Math.ceil(Math.max(basePrice * area * count, 50) * number);
}
pro.setPrice(Math.ceil(price));
@@ -5297,6 +5297,9 @@ public class ProductService {
if (craft_list.contains("防风绳")) {
product.setPrice(Math.floor(product.getPrice() + dto.getPcount() * 2));
}
if (craft_list.contains("圆盘")) {
product.setPrice(Math.floor(product.getPrice() + dto.getStickNum() * 8));
}
product.setWeight(String.valueOf(area * count * number * 0.08 + dto.getShuliang() * 3.3));
}
+21 -3
View File
@@ -26,6 +26,7 @@
<option value=""></option>
<option value="银胶涤纶布">银胶涤纶布</option>
<option value="黑胶涤纶布">黑胶涤纶布</option>
<option value="防水布">防水布</option>
</select>
</div>
<input type="hidden" name="proTypeValue" class="layui-input" value="天幕">
@@ -76,6 +77,11 @@
<input type="text" name="shuliang" value="0" placeholder="请输入整数" class="layui-input" autocomplete="off"><span
style="flex-shrink: 0">套</span>
</span>
<input type="checkbox" name="craft" lay-filter="switch" value="圆盘" title="圆盘">
<span class="layui-inline" id="yuanpan" style="display: none;width: 100px;align-items: center">
<input type="text" name="stickNum" value="0" placeholder="请输入整数" class="layui-input" autocomplete="off"><span
style="flex-shrink: 0">套</span>
</span>
</div>
<%-- <p>--%>
<%-- 印刷<span--%>
@@ -230,6 +236,15 @@
$("#shuliang").hide()
}
}
if (data.value == '圆盘') {
if (data.elem.checked) {
$("#yuanpan").css("display", "flex");
} else {
$("input[name='stickNum']").val(0)
$("#yuanpan").hide()
}
}
if (data.value == '防风绳') {
if (data.elem.checked) {
@@ -324,12 +339,15 @@
let number = $("#number").val();
let shuliang = $("input[name='shuliang']").val() || 0;
let pcount = $("input[name='pcount']").val() || 0;
let stickNum = $("input[name='stickNum']").val() || 0;
$("input[name='craft']:checked").each(function () {
if (!$(this).is("disabled")) {
if ($(this).val() == "安装包") {
arr.push($(this).val() + shuliang)
} else if ($(this).val() == "防风绳") {
arr.push($(this).val() + pcount)
} else if ($(this).val() == "圆盘") {
arr.push($(this).val() + stickNum)
} else {
arr.push($(this).val())
}
@@ -350,9 +368,9 @@
}
}
span_result += '包邮,免费设计呢~(偏远地区需补邮费)'
if(window.parent.system_isGai){
span_result +="\n\n亲 现在下单可以参加淘宝活动8.5折折扣哦!"
}
if (window.parent.system_isGai) {
span_result += "\n\n亲 现在下单可以参加淘宝活动8.5折折扣哦!"
}
addLog(span_result);
$("#span_result").val(span_result);