修改种子纸
This commit is contained in:
@@ -2791,7 +2791,7 @@ public class ProductService {
|
|||||||
price += Math.ceil(Math.max(count * 0.3 * number, 5));
|
price += Math.ceil(Math.max(count * 0.3 * number, 5));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
double maxPrice = 50;
|
||||||
if (count <= 50) {
|
if (count <= 50) {
|
||||||
unitPrice = 140;
|
unitPrice = 140;
|
||||||
} else if (count > 50 && count <= 100) {
|
} else if (count > 50 && count <= 100) {
|
||||||
@@ -2807,7 +2807,7 @@ public class ProductService {
|
|||||||
} else {
|
} else {
|
||||||
unitPrice = 90;
|
unitPrice = 90;
|
||||||
}
|
}
|
||||||
if ("4".equals(dto.getZ3type())) {
|
if ("4".equals(dto.getZ3type()) && "400".equals(dto.getKindLabel())) {
|
||||||
if (count <= 50) {
|
if (count <= 50) {
|
||||||
unitPrice = 160;
|
unitPrice = 160;
|
||||||
} else if (count > 50 && count <= 100) {
|
} else if (count > 50 && count <= 100) {
|
||||||
@@ -2824,7 +2824,25 @@ public class ProductService {
|
|||||||
unitPrice = 130;
|
unitPrice = 130;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
price = Math.ceil((length * width * count * unitPrice) / 10000);//价格计算尺寸*数量*200/10000
|
if ("4".equals(dto.getZ3type()) && "1000".equals(dto.getKindLabel())) {
|
||||||
|
if (count <= 50) {
|
||||||
|
unitPrice = 400;
|
||||||
|
} else if (count > 50 && count <= 100) {
|
||||||
|
unitPrice = 380;
|
||||||
|
} else if (count > 100 && count <= 200) {
|
||||||
|
unitPrice = 360;
|
||||||
|
} else if (count > 200 && count <= 500) {
|
||||||
|
unitPrice = 340;
|
||||||
|
} else if (count > 500 && count <= 1000) {
|
||||||
|
unitPrice = 300;
|
||||||
|
} else if (count > 1000 && count <= 2000) {
|
||||||
|
unitPrice = 280;
|
||||||
|
} else {
|
||||||
|
unitPrice = 260;
|
||||||
|
}
|
||||||
|
maxPrice = 60;
|
||||||
|
}
|
||||||
|
price = Math.max(Math.ceil((length * width * count * unitPrice) / 10000), maxPrice);//价格计算尺寸*数量*200/10000
|
||||||
|
|
||||||
if (!StringUtils.isEmpty(crafts) && Arrays.asList(crafts).contains("编码")) {//起步价10
|
if (!StringUtils.isEmpty(crafts) && Arrays.asList(crafts).contains("编码")) {//起步价10
|
||||||
price += Math.max(count * 0.5, 10);
|
price += Math.max(count * 0.5, 10);
|
||||||
@@ -2856,6 +2874,9 @@ public class ProductService {
|
|||||||
if (craft_list.size() > 0 && craft_list.contains("棉绳")) {
|
if (craft_list.size() > 0 && craft_list.contains("棉绳")) {
|
||||||
price += Math.max(Math.ceil(0.1 * number * count), 5);
|
price += Math.max(Math.ceil(0.1 * number * count), 5);
|
||||||
}
|
}
|
||||||
|
if ("4".equals(dto.getZ3type()) && craft_list.size() > 0 && craft_list.contains("挂绳")) {
|
||||||
|
price += Math.max(Math.ceil(0.6 * number * count), 5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Product dto2 = new Product();
|
Product dto2 = new Product();
|
||||||
|
|||||||
@@ -169,13 +169,13 @@
|
|||||||
<input type="radio" lay-filter="z3type" name="z3type" value="1" title="卡片">
|
<input type="radio" lay-filter="z3type" name="z3type" value="1" title="卡片">
|
||||||
<input type="radio" lay-filter="z3type" name="z3type" value="2" title="圆形">
|
<input type="radio" lay-filter="z3type" name="z3type" value="2" title="圆形">
|
||||||
<input type="radio" lay-filter="z3type" name="z3type" value="3" title="开窗">
|
<input type="radio" lay-filter="z3type" name="z3type" value="3" title="开窗">
|
||||||
<input type="radio" lay-filter="z3type" name="z3type" value="5" title="奖牌">
|
<%-- <input type="radio" lay-filter="z3type" name="z3type" value="5" title="奖牌">--%>
|
||||||
<input type="radio" name="z3type" lay-filter="z3type" value="4" title="自定义">
|
<input type="radio" name="z3type" lay-filter="z3type" value="4" title="自定义">
|
||||||
</div>
|
</div>
|
||||||
<p>材质</p>
|
<p>材质</p>
|
||||||
<div class="z3type">
|
<div class="z3type">
|
||||||
<select id="material">
|
<select id="material" name="kindLabel" lay-filter="kindLabel">
|
||||||
<option>400克种子纸</option>
|
<option value="400">400克种子纸</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@@ -478,10 +478,8 @@
|
|||||||
<div class="layui-input-block value7">
|
<div class="layui-input-block value7">
|
||||||
<div>
|
<div>
|
||||||
裁切工艺:
|
裁切工艺:
|
||||||
<input type="checkbox" name="craft" class="mq" lay-filter="switchMQ" value="模切"
|
<input type="checkbox" name="craft" class="mq" lay-filter="switchMQ" value="模切" title="异形模切">
|
||||||
title="异形模切">
|
<input type="checkbox" name="craft" class="mq" lay-filter="switchMQ" value="直角裁切" title="直角裁切" checked>
|
||||||
<input type="checkbox" name="craft" class="mq" lay-filter="switchMQ" value="直角裁切"
|
|
||||||
title="直角裁切" checked>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span class="ui_fm_l">
|
<span class="ui_fm_l">
|
||||||
@@ -1136,10 +1134,7 @@
|
|||||||
}
|
}
|
||||||
if (kind == "种子纸") {
|
if (kind == "种子纸") {
|
||||||
let z3type = $("input[name='z3type']:checked").val()
|
let z3type = $("input[name='z3type']:checked").val()
|
||||||
data.kind2Value = 400
|
data.kind2Value = $("#material option:selected").val()
|
||||||
if(z3type == 5){
|
|
||||||
data.kind2Value = 1000
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$("#carousel").empty();
|
$("#carousel").empty();
|
||||||
$("#remark").empty();
|
$("#remark").empty();
|
||||||
@@ -1251,7 +1246,7 @@
|
|||||||
$("#size").val($('select[name="z3size1"]:not(:disabled) option:checked').val());//尺寸重新赋值
|
$("#size").val($('select[name="z3size1"]:not(:disabled) option:checked').val());//尺寸重新赋值
|
||||||
$(".qt").hide()
|
$(".qt").hide()
|
||||||
$("#3zValueForm").show();
|
$("#3zValueForm").show();
|
||||||
let html = `<option>400克种子纸</option>`;
|
let html = `<option value="400">400克种子纸</option>`;
|
||||||
|
|
||||||
if (val == 0) {
|
if (val == 0) {
|
||||||
let menpiao_size = $("#3z_menpiao_size select option:selected").val();
|
let menpiao_size = $("#3z_menpiao_size select option:selected").val();
|
||||||
@@ -1314,6 +1309,8 @@
|
|||||||
$(".z3_craft_yh").show();
|
$(".z3_craft_yh").show();
|
||||||
$(".z3_craft_bm").show();
|
$(".z3_craft_bm").show();
|
||||||
$(".z3_craft_mq").show();
|
$(".z3_craft_mq").show();
|
||||||
|
html = `<option value="400">400克种子纸</option>
|
||||||
|
<option value="1000">1000克种子纸</option>`;
|
||||||
}
|
}
|
||||||
if (val == 5) {
|
if (val == 5) {
|
||||||
$("#3z_jiangpai_size").show();
|
$("#3z_jiangpai_size").show();
|
||||||
@@ -1333,7 +1330,7 @@
|
|||||||
$(".gscolor").css("display", "inline-block")
|
$(".gscolor").css("display", "inline-block")
|
||||||
$(".gscolor select").prop("disabled", false);
|
$(".gscolor select").prop("disabled", false);
|
||||||
z3Craft($("#size").val())
|
z3Craft($("#size").val())
|
||||||
html = `<option>1000克种子纸</option>`;
|
html = `<option value="1000">1000克种子纸</option>`;
|
||||||
}
|
}
|
||||||
$("#material").empty().append(html);
|
$("#material").empty().append(html);
|
||||||
getProductImage()
|
getProductImage()
|
||||||
@@ -1406,11 +1403,11 @@
|
|||||||
$('input[class = mq]').prop('checked', false);
|
$('input[class = mq]').prop('checked', false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type == "少数量") {
|
if (type == "少数量" && type1 != "种子纸") {
|
||||||
$("#lesspeijian").show();
|
$("#lesspeijian").show();
|
||||||
$("#lesspeijian").find(":input").attr("disabled", false);
|
$("#lesspeijian").find(":input").attr("disabled", false);
|
||||||
}
|
}
|
||||||
if (type == "少数量" && (s.split("*")[0] > 42 || s.split("*")[1] > 28.5) && (s.split("*")[0] > 28.5 || s.split("*")[1] > 42)) {
|
if (type == "少数量" && type1 != "种子纸" && (s.split("*")[0] > 42 || s.split("*")[1] > 28.5) && (s.split("*")[0] > 28.5 || s.split("*")[1] > 42)) {
|
||||||
$("#lesspeijian input").prop("checked", false);
|
$("#lesspeijian input").prop("checked", false);
|
||||||
$("#lesspeijian").hide();
|
$("#lesspeijian").hide();
|
||||||
$("#lesspeijian").find(":input").attr("disabled", true);
|
$("#lesspeijian").find(":input").attr("disabled", true);
|
||||||
@@ -1421,6 +1418,19 @@
|
|||||||
form.render();
|
form.render();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
form.on("select(kindLabel)", function (data) {
|
||||||
|
$(".z3_craft_yh").show();
|
||||||
|
$(".z3_craft_yh").find("input").attr("disabled", false);
|
||||||
|
$(".z3_craft_ssx").show();
|
||||||
|
$(".z3_craft_ssx").find("input").attr("disabled", false);
|
||||||
|
if (data.value == "1000") {
|
||||||
|
$(".z3_craft_yh").hide();
|
||||||
|
$(".z3_craft_yh").find("input").attr("disabled", true);
|
||||||
|
$(".z3_craft_ssx").hide();
|
||||||
|
$(".z3_craft_ssx").find("input").attr("disabled", true);
|
||||||
|
}
|
||||||
|
form.render();
|
||||||
|
})
|
||||||
form.on("select(oppSelect)", function (data) {
|
form.on("select(oppSelect)", function (data) {
|
||||||
if (data.value == "装opp袋") {
|
if (data.value == "装opp袋") {
|
||||||
$("#peijian_ui .opp").hide();
|
$("#peijian_ui .opp").hide();
|
||||||
@@ -3853,8 +3863,8 @@
|
|||||||
if (kind == "种子纸") {
|
if (kind == "种子纸") {
|
||||||
let type = $('input[name="z3type"]:checked').val();
|
let type = $('input[name="z3type"]:checked').val();
|
||||||
let switchz3Size = $('input[name="switchz3Size"]:checked').val()
|
let switchz3Size = $('input[name="switchz3Size"]:checked').val()
|
||||||
if ((size.split("*")[0] < 8 || size.split("*")[1] < 5) && (size.split("*")[0] < 5 || size.split("*")[1] < 8)) {
|
if ((size.split("*")[0] < 3 || size.split("*")[1] < 3)) {
|
||||||
layer.msg("尺寸小于 8*5cm 无法报价", {offset: ['300px', '300px']}, function () {
|
layer.msg("尺寸小于 3*3cm 无法报价", {offset: ['300px', '300px']}, function () {
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -4173,8 +4183,9 @@
|
|||||||
}
|
}
|
||||||
span_result += "\n";
|
span_result += "\n";
|
||||||
} else if (kindData[kind] == "种子纸") {
|
} else if (kindData[kind] == "种子纸") {
|
||||||
let switchz3Size = $('input[name="switchz3Size"]:checked').val()
|
let switchz3Size = $('input[name="switchz3Size"]:checked').val();
|
||||||
var span_result = kindData[kind] + " -" + size + "厘米-(" + same + ")"
|
let material = $("#material option:selected").text()
|
||||||
|
var span_result = kindData[kind] + " - " + material + " -" + size + "厘米-(" + same + ")"
|
||||||
if (($('input[name="z3type"]:checked').val() == 0 || $('input[name="z3type"]:checked').val() == 3) && !switchz3Size) {
|
if (($('input[name="z3type"]:checked').val() == 0 || $('input[name="z3type"]:checked').val() == 3) && !switchz3Size) {
|
||||||
span_result = span_result + " - " + $('input[name="3z_vice"]:checked')[0].title
|
span_result = span_result + " - " + $('input[name="3z_vice"]:checked')[0].title
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
<option value="兔子钥匙扣银色">兔子钥匙扣银色</option>
|
<option value="兔子钥匙扣银色">兔子钥匙扣银色</option>
|
||||||
<option value="龙虾型钥匙扣银色">龙虾型钥匙扣银色</option>
|
<option value="龙虾型钥匙扣银色">龙虾型钥匙扣银色</option>
|
||||||
<option value="珠链银色">珠链银色</option>
|
<option value="珠链银色">珠链银色</option>
|
||||||
<option value="方形钥匙扣金色">方形钥匙扣金色</option>
|
<%-- <option value="方形钥匙扣金色">方形钥匙扣金色</option>--%>
|
||||||
<option value="方形钥匙扣银色">方形钥匙扣银色</option>
|
<option value="方形钥匙扣银色">方形钥匙扣银色</option>
|
||||||
<option value="猫头钥匙扣金色">猫头钥匙扣金色</option>
|
<option value="猫头钥匙扣金色">猫头钥匙扣金色</option>
|
||||||
<option value="猫头钥匙扣银色">猫头钥匙扣银色</option>
|
<option value="猫头钥匙扣银色">猫头钥匙扣银色</option>
|
||||||
@@ -92,11 +92,11 @@
|
|||||||
<option value="D字扣银色">D字扣银色</option>
|
<option value="D字扣银色">D字扣银色</option>
|
||||||
<option value="挂绳">挂绳</option>
|
<option value="挂绳">挂绳</option>
|
||||||
<option value="小樱花钥匙扣金色">小樱花钥匙扣金色</option>
|
<option value="小樱花钥匙扣金色">小樱花钥匙扣金色</option>
|
||||||
<option value="小樱花钥匙扣银色">小樱花钥匙扣银色</option>
|
<%-- <option value="小樱花钥匙扣银色">小樱花钥匙扣银色</option>--%>
|
||||||
<option value="心形钥匙扣金色">心形钥匙扣金色</option>
|
<option value="心形钥匙扣金色">心形钥匙扣金色</option>
|
||||||
<option value="心形钥匙扣银色">心形钥匙扣银色</option>
|
<option value="心形钥匙扣银色">心形钥匙扣银色</option>
|
||||||
<option value="月亮钥匙扣金色">月亮钥匙扣金色</option>
|
<%-- <option value="月亮钥匙扣金色">月亮钥匙扣金色</option>--%>
|
||||||
<option value="月亮钥匙扣银色">月亮钥匙扣银色</option>
|
<%-- <option value="月亮钥匙扣银色">月亮钥匙扣银色</option>--%>
|
||||||
<option value="钢丝圈红色">钢丝圈红色</option>
|
<option value="钢丝圈红色">钢丝圈红色</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user