修改价格uv倒挂

This commit is contained in:
2025-08-18 17:00:12 +08:00
parent f074163b52
commit 2420e27962
2 changed files with 7 additions and 2 deletions
@@ -2491,8 +2491,13 @@ public class ProductService {
} }
} }
// double base = number < 6 && number > 1 ? 5 : 0; // double base = number < 6 && number > 1 ? 5 : 0;
double apprise = 0;
for (Product product : priceList) { for (Product product : priceList) {
product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() / 10000)); product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() / 10000));
if (apprise > product.getPrice()) {
product.setPrice(apprise);
}
apprise = product.getPrice();
} }
/* } */ /* } */
@@ -4715,7 +4720,7 @@ public class ProductService {
Product pro = new Product(); Product pro = new Product();
double price = basePrice * dto.getCount() * area * dto.getNumber(); double price = basePrice * dto.getCount() * area * dto.getNumber();
if (area <= 0.25) { if (area <= 0.25) {
price = basePrice * dto.getCount() * area + dto.getNumber() + 6; price = basePrice * dto.getCount() * area * dto.getNumber() + dto.getNumber() + 6;
} }
pro.setPrice(Math.ceil(Math.max(price, minPrice))); pro.setPrice(Math.ceil(Math.max(price, minPrice)));
pro.setCount(dto.getCount()); pro.setCount(dto.getCount());
+1 -1
View File
@@ -904,7 +904,7 @@
// PVC、透明没有覆哑膜 // PVC、透明没有覆哑膜
if (data.value == 1) { if (data.value == 1) {
$(".nofm").find(":input").attr("disabled", true); $(".nofm").find(":input").attr("disabled", true);
count_html = `<option value="200">200</option> count_html = `
<option value="500">500</option> <option value="500">500</option>
<option value="1000">1000</option> <option value="1000">1000</option>
<option value="2000">2000</option> <option value="2000">2000</option>