修改特种纸名片模切价格
Цей коміт міститься в:
@@ -6353,16 +6353,16 @@ public class ProductService {
|
||||
if ("特种纸名片".equals(dto.getProTypeValue()) && craftList.contains("异形模切") && !craftList.contains("单面烫金") && !craftList.contains("双面烫金")) {// 200-500张按照原有的价格乘以3倍 1000-5000张按照原有的价格乘以2.4倍 5000-10000张按照原有的价格乘以2倍
|
||||
for (Product product : priceList) {
|
||||
if (200 <= product.getCount() && product.getCount() <= 500) {
|
||||
product.setPrice(Math.ceil(product.getPrice() * 1.9));
|
||||
product.setPrice(Math.ceil(product.getPrice() * 3));
|
||||
}
|
||||
if (500 < product.getCount() && product.getCount() <= 1000) {
|
||||
product.setPrice(Math.ceil(product.getPrice() * 2.3));
|
||||
product.setPrice(Math.ceil(product.getPrice() * 2.6));
|
||||
}
|
||||
if (1000 < product.getCount() && product.getCount() <= 5000) {
|
||||
product.setPrice(Math.ceil(product.getPrice() * 2.4));
|
||||
}
|
||||
if (5000 < product.getCount() && product.getCount() <= 10000) {
|
||||
product.setPrice(Math.ceil(product.getPrice() * 2.5));
|
||||
product.setPrice(Math.ceil(product.getPrice() * 2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block" style="display:inline-block;">
|
||||
配件:
|
||||
<input type="checkbox" name="craft" lay-filter="ui_craft" value="切割机" title="切割机">
|
||||
<input type="checkbox" name="craft" lay-filter="ui_craft" value="切割机" title="底座切割机">
|
||||
<div class="layui-inline qiege" style="width:100px; display:none">
|
||||
<label style="display: flex;align-items: center">
|
||||
<span style="flex-shrink: 0">数量:</span>
|
||||
@@ -329,7 +329,7 @@
|
||||
$("input[name='craft']:checked").each(function () {
|
||||
if (!$(this).is(':disabled')) {
|
||||
if ($(this).val() == "切割机") {
|
||||
craft.push($(this).val() + $("input[name='stickNum']").val() + "个");
|
||||
craft.push($(this).attr("title") + $("input[name='stickNum']").val() + "个");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Посилання в новій задачі
Заблокувати користувача