修改冷转印烫画价格

Цей коміт міститься в:
2025-08-07 08:47:59 +08:00
джерело c8a3dfff38
коміт 79acbecaf6
3 змінених файлів з 20 додано та 8 видалено
+8 -4
Переглянути файл
@@ -2413,7 +2413,7 @@ public class ProductService {
coNumber = 1; coNumber = 1;
} }
double price = new PriceUtils().CalculatePrice(craft_list, baseCount, coNumber, countNum); double price = new PriceUtils().CalculatePrice(craft_list, baseCount, coNumber, countNum, width * length * dto.getCount() * number);
Product pro = new Product(); Product pro = new Product();
pro.setCount(dto.getCount()); pro.setCount(dto.getCount());
@@ -2428,7 +2428,7 @@ public class ProductService {
} }
baseCount = Math.max(Math.ceil(quantitySteps[i] * dto.getNumber() / num), 1); baseCount = Math.max(Math.ceil(quantitySteps[i] * dto.getNumber() / num), 1);
countNum = Math.max(Math.ceil(dto.getNumber() / num), 1); countNum = Math.max(Math.ceil(dto.getNumber() / num), 1);
double currentPrice = new PriceUtils().CalculatePrice(craft_list, baseCount, coNumber, countNum); double currentPrice = new PriceUtils().CalculatePrice(craft_list, baseCount, coNumber, countNum, width * length * quantitySteps[i] * number);
pro = new Product(); pro = new Product();
@@ -3824,7 +3824,7 @@ public class ProductService {
wei = 0.05; wei = 0.05;
} }
product.setWeight(df.format(length * width * product.getCount() / 10000 * number * wei)); product.setWeight(df.format(length * width * product.getCount() / 10000 * number * wei));
product.setPrice(Math.floor(product.getPrice() * number)); product.setPrice(Math.ceil(product.getPrice() * number * 1.3));
} }
return priceList; return priceList;
case "节目单": case "节目单":
@@ -4564,7 +4564,11 @@ public class ProductService {
double[] areas = {1, 4, 6, 9, 12, 16, 20, 25, 36, 45, 48.6, 54, 60, 72, 81}; double[] areas = {1, 4, 6, 9, 12, 16, 20, 25, 36, 45, 48.6, 54, 60, 72, 81};
area = length * width; area = length * width;
return getAreaCenterPrice(count_list, count, area, prices, areas, number); priceList = getAreaCenterPrice(count_list, count, area, prices, areas, number);
for (Product product : priceList) {
product.setPrice(Math.ceil(product.getPrice() * 1.3));
}
return priceList;
case "透卡": case "透卡":
prices = new int[][]{ prices = new int[][]{
{136, 163, 177, 190, 197, 227, 257, 303, 333, 407, 430}, {136, 163, 177, 190, 197, 227, 257, 303, 333, 407, 430},
+11 -4
Переглянути файл
@@ -3557,22 +3557,29 @@ public class PriceUtils {
} }
public double CalculatePrice(List<String> craft_list, double count, int coNumber, double countNum) { public double CalculatePrice(List<String> craft_list, double count, int coNumber, double countNum, double area) {
if (craft_list.contains("烫画")) { if (craft_list.contains("烫画")) {
return (int) count * 120; double basePrice = 0;
area = area / 10000;
if (area < 7.5) {
basePrice = 90;
} else {
basePrice = 70;
}
return Math.max(Math.ceil(area * basePrice), 50);
} }
double price = 0; double price = 0;
if (craft_list.contains("冷转印")) { if (craft_list.contains("冷转印")) {
double banfei = 200; double banfei = 200;
if (countNum > 1) { if (countNum > 1) {
price = 260 * countNum; price = 200 * countNum;
banfei = 0; banfei = 0;
count = Math.abs(count - countNum); count = Math.abs(count - countNum);
} }
if (count > 0) { if (count > 0) {
if (count <= 5) { if (count <= 5) {
price += 260; price += 200;
} else if (count < 100) { } else if (count < 100) {
price += 14 * count + banfei; price += 14 * count + banfei;
} else { } else {
+1
Переглянути файл
@@ -435,6 +435,7 @@
<div class="swiper-slide" data-swiper-autoplay="5000">【新增】特种纸新增打码 烫金工艺 注意!!!雅柔纸打码烫金的工艺材质会比报价系统的材质偏黄点 接单的时候要跟客户沟通清楚 以免造成不必要的售后</div> <div class="swiper-slide" data-swiper-autoplay="5000">【新增】特种纸新增打码 烫金工艺 注意!!!雅柔纸打码烫金的工艺材质会比报价系统的材质偏黄点 接单的时候要跟客户沟通清楚 以免造成不必要的售后</div>
<div class="swiper-slide" data-swiper-autoplay="5000">【新增】双面不干胶-水标价格更新</div> <div class="swiper-slide" data-swiper-autoplay="5000">【新增】双面不干胶-水标价格更新</div>
<div class="swiper-slide" data-swiper-autoplay="5000">【修改】手提袋重量修改</div> <div class="swiper-slide" data-swiper-autoplay="5000">【修改】手提袋重量修改</div>
<div class="swiper-slide" data-swiper-autoplay="5000">【修改】uv烫画工艺价格起步价降至50元 出货周期48小时 uv冷转印工艺价格起步价200元 出货周期4-5天</div>
</div> </div>
</div> </div>
</div> </div>