新增sd木垫

This commit is contained in:
2026-07-10 14:45:53 +08:00
parent a984fce392
commit 29b585c195
2 changed files with 17 additions and 1 deletions
@@ -4795,11 +4795,20 @@ public class ProductService {
double wei = 0; double wei = 0;
// 价格按照大纸裁 // 价格按照大纸裁
priceList = ZsPrice.getSmPrice(count, length, width, priceList, number, dto.getCraft(), dto, role); priceList = ZsPrice.getSmPrice(count, length, width, priceList, number, dto.getCraft(), dto, role);
List<String> roleList = Arrays.asList("1045");
boolean isIn = false;
for (String s : roleList) {
if (role.indexOf(s) > -1) {
isIn = true;
}
}
for (Product product : priceList) { for (Product product : priceList) {
if (craft_list.contains("菜品夹")) { if (craft_list.contains("菜品夹")) {
product.setPrice(Math.ceil(product.getPrice() + dto.getStickNum() * 2)); product.setPrice(Math.ceil(product.getPrice() + dto.getStickNum() * 2));
} }
if (isIn) {
product.setPrice(Math.ceil(product.getPrice() * 1.2));
}
if (dto.getKindValue().equals("1") || dto.getKindValue().equals("2") || dto.getKindValue().equals("3")) { if (dto.getKindValue().equals("1") || dto.getKindValue().equals("2") || dto.getKindValue().equals("3")) {
wei = 0.38; wei = 0.38;
} else if (dto.getKindValue().equals("4") || dto.getKindValue().equals("5") || dto.getKindValue().equals("6")) { } else if (dto.getKindValue().equals("4") || dto.getKindValue().equals("5") || dto.getKindValue().equals("6")) {
@@ -987,6 +987,13 @@
return false; return false;
} }
} }
if (kindValue == "18") {
if (count < 5) {
layer.msg("数量大于等于5", {offset: ['300px', '300px']}, function () {
});
return false;
}
}
const carft6 = carft_list6.filter(craft => arr.includes(craft)); const carft6 = carft_list6.filter(craft => arr.includes(craft));
if (carft6.length == 0 && (kindValue == 20)) { if (carft6.length == 0 && (kindValue == 20)) {
layer.msg("常见工艺必须选择", {offset: ['300px', '300px']}, function () { layer.msg("常见工艺必须选择", {offset: ['300px', '300px']}, function () {