修改特种纸印刷颜色
This commit is contained in:
@@ -1641,7 +1641,7 @@ public class ProductService {
|
|||||||
craft_price += 4 * itemCount / 100;
|
craft_price += 4 * itemCount / 100;
|
||||||
}
|
}
|
||||||
if (craft_list.contains("印刷颜色") && dto.getCo_number() != null && dto.getCo_number() > 0) {
|
if (craft_list.contains("印刷颜色") && dto.getCo_number() != null && dto.getCo_number() > 0) {
|
||||||
craft_price += sePrice * (dto.getCo_number());
|
craft_price += sePrice * (dto.getCo_number() > 1 ? 6 : dto.getCo_number());
|
||||||
}
|
}
|
||||||
if ((craft_list.contains("单面烫金") || craft_list.contains("双面烫金") || craft_list.contains("烫镭射银"))) {
|
if ((craft_list.contains("单面烫金") || craft_list.contains("双面烫金") || craft_list.contains("烫镭射银"))) {
|
||||||
double tangPrice = 45 + 0.1 * itemCount;
|
double tangPrice = 45 + 0.1 * itemCount;
|
||||||
@@ -3188,6 +3188,7 @@ public class ProductService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return chucklePrice(role, priceList);
|
return chucklePrice(role, priceList);
|
||||||
// 便签本/联单
|
// 便签本/联单
|
||||||
case "16":
|
case "16":
|
||||||
@@ -6706,7 +6707,7 @@ public class ProductService {
|
|||||||
craft_price += Math.ceil(0.15 * dto.getCount() * dto.getNumber());
|
craft_price += Math.ceil(0.15 * dto.getCount() * dto.getNumber());
|
||||||
}
|
}
|
||||||
int number = dto.getNumber();
|
int number = dto.getNumber();
|
||||||
double designFee = 5.5 * (number - 1);
|
double designFee = 5 * (number - 1);
|
||||||
double cardDesignFee = 0.0;
|
double cardDesignFee = 0.0;
|
||||||
int card_num = getNum((length - 4) / 10, (width - 4) / 10);
|
int card_num = getNum((length - 4) / 10, (width - 4) / 10);
|
||||||
if (card_num <= 1) {
|
if (card_num <= 1) {
|
||||||
@@ -6719,7 +6720,7 @@ public class ProductService {
|
|||||||
cardDesignFee = 20.5;
|
cardDesignFee = 20.5;
|
||||||
}
|
}
|
||||||
Product pro = new Product();
|
Product pro = new Product();
|
||||||
pro.setPrice(Math.ceil(Math.max((base_price * num + cardDesignFee) * number, min_price) + designFee + bao_price + (craft_price == 0 ? craft_price : Math.max(craft_price, 5))));
|
pro.setPrice(Math.ceil(Math.max((base_price * num) * number, min_price) + designFee + bao_price + (craft_price == 0 ? craft_price : Math.max(craft_price, 5))));
|
||||||
pro.setCount(dto.getCount());
|
pro.setCount(dto.getCount());
|
||||||
pro.setNumber(dto.getNumber());
|
pro.setNumber(dto.getNumber());
|
||||||
pro.setWeight(df.format(dto.getNumber() * (length - 4) / 1000 * (width - 4) / 1000 * dto.getCount() * 0.2 * 0.86));
|
pro.setWeight(df.format(dto.getNumber() * (length - 4) / 1000 * (width - 4) / 1000 * dto.getCount() * 0.2 * 0.86));
|
||||||
|
|||||||
@@ -200,7 +200,10 @@
|
|||||||
</select>
|
</select>
|
||||||
<span class="printColor" style="display: none;align-items: center;">
|
<span class="printColor" style="display: none;align-items: center;">
|
||||||
<input type="checkbox" name="craft" lay-filter="mianka" value="印刷颜色" title="印刷颜色" checked disabled>
|
<input type="checkbox" name="craft" lay-filter="mianka" value="印刷颜色" title="印刷颜色" checked disabled>
|
||||||
<input type="text" name="co_number" class="layui-input" value="1">
|
<select name="co_number" class="layui-select">
|
||||||
|
<option value="1">单色印刷</option>
|
||||||
|
<option value="2">彩色印刷</option>
|
||||||
|
</select>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
@@ -724,7 +727,7 @@
|
|||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(craft_list.includes("配流苏") && craft_list.includes("穿流苏")){
|
if (craft_list.includes("配流苏") && craft_list.includes("穿流苏")) {
|
||||||
$(data.elem).next().attr("class", "layui-unselect layui-form-checkbox");
|
$(data.elem).next().attr("class", "layui-unselect layui-form-checkbox");
|
||||||
$(data.elem).prop("checked", false);
|
$(data.elem).prop("checked", false);
|
||||||
layer.msg("配流苏 - 穿流苏不能同时选择", {offset: ['300px', '300px']}, function () {
|
layer.msg("配流苏 - 穿流苏不能同时选择", {offset: ['300px', '300px']}, function () {
|
||||||
@@ -902,7 +905,7 @@
|
|||||||
} else if ($(this).val() == "压凹" || $(this).val() == "击凸") {
|
} else if ($(this).val() == "压凹" || $(this).val() == "击凸") {
|
||||||
arrs.push($("#color_type select option:selected").val() + $(this).val());
|
arrs.push($("#color_type select option:selected").val() + $(this).val());
|
||||||
} else if ($(this).val() == "印刷颜色") {
|
} else if ($(this).val() == "印刷颜色") {
|
||||||
arrs.push($(this).val() + $(".printColor input[name='co_number']").val());
|
arrs.push( $(".printColor select[name='co_number'] option:selected").text());
|
||||||
} else {
|
} else {
|
||||||
arrs.push($(this).val());
|
arrs.push($(this).val());
|
||||||
}
|
}
|
||||||
@@ -977,9 +980,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
span_result += '包邮,免费设计呢~(偏远地区需补邮费)'
|
span_result += '包邮,免费设计呢~(偏远地区需补邮费)'
|
||||||
if(window.parent.system_isGai){
|
if (window.parent.system_isGai) {
|
||||||
span_result +="\n\n亲 现在下单可以参加淘宝活动8.5折折扣哦!"
|
span_result += "\n\n亲 现在下单可以参加淘宝活动8.5折折扣哦!"
|
||||||
}
|
}
|
||||||
addLog(span_result);
|
addLog(span_result);
|
||||||
$("#span_result").val(span_result);
|
$("#span_result").val(span_result);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user