修改腰封压痕价格,修改冷转印无法选择
Este cometimento está contido em:
@@ -825,6 +825,7 @@ public class ProductService {
|
||||
boolean isyaofeng = false;
|
||||
|
||||
double moqiePrice = 0;
|
||||
craft_list = new ArrayList<>(craft_list);
|
||||
if (!craft_list.contains("模切") && (craft_list.contains("压痕") || craft_list.contains("压点线"))) {
|
||||
//压1痕最小尺寸10.8*5.4cm,压2痕最小尺寸13.5*5.4CM按照贺卡模切价格算
|
||||
boolean is_moqie = false;
|
||||
@@ -838,6 +839,12 @@ public class ProductService {
|
||||
is_moqie = true;
|
||||
}
|
||||
}
|
||||
if (craft_list.contains("压痕") && dto.getYaheng() == 3 || (craft_list.contains("压点线") && dto.getDadianxian() == 3)) {
|
||||
craft_list.add("模切");
|
||||
}
|
||||
if (craft_list.contains("压痕") && dto.getYaheng() == 4 || (craft_list.contains("压点线") && dto.getDadianxian() == 4)) {
|
||||
craft_list.add("模切");
|
||||
}
|
||||
if (is_moqie) {
|
||||
isyaofeng = true;
|
||||
for (int i = 0; i < dto.getCraft().length; i++) {
|
||||
@@ -4440,7 +4447,8 @@ public class ProductService {
|
||||
if (craLists.contains("手绘")) {
|
||||
product.setPrice(150.00 * number);
|
||||
}
|
||||
product.setWeight(df.format(0.075 * length * width * product.getCount() / 10000 * number + product.getCount() * wei));
|
||||
product.setWeight(df.format(0.075 * length * width * product.getCount() / 10000 * number + product.getCount() * wei * number
|
||||
));
|
||||
}
|
||||
return priceList;
|
||||
case "卡贴":
|
||||
|
||||
@@ -317,7 +317,9 @@
|
||||
$("#ui_des").hide();
|
||||
$("input[name='craft'][value='烫金']").prop("checked", false);
|
||||
$(".tjselect").hide();
|
||||
$("#sehu_number").hide();
|
||||
$(".tjselect select").prop("disabled", true);
|
||||
$("#sehu_number select").prop("disabled", true);
|
||||
if (kindData.value == "金属标") {
|
||||
// 切换为品种单选框
|
||||
$(".metal").show();
|
||||
@@ -336,6 +338,7 @@
|
||||
$(".count").find(":input").attr("disabled", false);
|
||||
$(".metal").hide();
|
||||
$(".metal").find(":input").attr("disabled", true);
|
||||
$("input[name='craft']").prop("checked", false);
|
||||
if ($("#number").val() > 1) {
|
||||
// $("#ui_des").show();
|
||||
}
|
||||
@@ -401,6 +404,7 @@
|
||||
if (data.value == "冷转印") {
|
||||
if ($(data.elem).is(":checked")) {
|
||||
$("#sehu_number").show();
|
||||
$("#sehu_number select").prop("disabled", false);
|
||||
} else {
|
||||
$("#sehu_number").hide();
|
||||
}
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador