Cette révision appartient à :
2025-04-02 18:09:49 +08:00
Parent 4334abb10e
révision 1dd5eed7a5
4 fichiers modifiés avec 142 ajouts et 20 suppressions
+38 -5
Voir le fichier
@@ -670,7 +670,9 @@
</select>
</div>
<input type="checkbox" class="peijian" name="craft" lay-filter="z4PeiJian" value="配弹力绳"
title="配弹力绳(20cm">
title="配弹力绳(15cm">
<input type="checkbox" class="peijian" name="craft" lay-filter="z4PeiJian" value="配弹力绳捆"
title="配弹力绳(捆)">
<div class="layui-inline shengz tscolor" style="width: 110px;display: none">
<select class="select">
<option value="金色绳子">金色绳子</option>
@@ -1017,7 +1019,7 @@
$("#z4_craft .shengz").prop("disabled", true);
}
}
if (data.value == "配弹力绳" ) {
if (data.value == "配弹力绳" || data.value == "配弹力绳捆") {
if ($(data.elem).is(":checked")) {
$("#z4_craft .tscolor").show();
$("#z4_craft .tscolor").prop("disabled", false);
@@ -2688,6 +2690,14 @@
arr.push($(this).val() + "-" + $("select[name='shen_color'] option:selected").val())
return;
}
if ($(this).val() == "配弹力绳捆") {
arr.push("配弹力绳(捆)");
return;
}
if ($(this).val() == "配弹力绳") {
arr.push("配弹力绳(15CM)");
return;
}
}
arr.push($(this).val());
@@ -3135,7 +3145,13 @@
$("input:checkbox[name='craft']:checked").each(function (i) {
if (!$(this).is(':disabled')) {
if ($(this).val() != "双面覆哑膜") {
arr.push($(this).val());
if ($(this).val() == "配弹力绳捆") {
arr.push("配弹力绳(捆)");
} else if ($(this).val() == "配弹力绳") {
arr.push("配弹力绳(15CM)");
} else {
arr.push($(this).val());
}
}
}
});
@@ -3240,6 +3256,7 @@
+ "厘米-(" + same + ") \n" + "工艺 :" + arr + "\n";
}
let count_price = {200: 1, 500: 2, 1000: 4, 2000: 8, 3000: 12, 4000: 16, 5000: 20, 10000: 40};
if (number > 1) {
if (couponKind == "少数量") {
let numberType = $("#desType option:selected").text();
@@ -3247,12 +3264,28 @@
}
for (let i = 0; i < data.length; i++) {
span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + '\n'
let price_text = "";
if (arr.indexOf("配弹力绳(捆)") > -1) {
let price_count = count_price[data[i].count];
if (price_count) {
price_text = "," + price_count + "捆";
}
}
span_result += number + '款 各' + data[i].count + "个,共" + data[i].price + "元" + price_text + '\n'
data[i].number = number;
}
} else {
for (let i = 0; i < data.length; i++) {
span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + '\n'
let price_text = "";
if (arr.indexOf("配弹力绳(捆)") > -1) {
let price_count = count_price[data[i].count];
if (price_count) {
price_text = "," + price_count + "捆";
}
}
span_result += number + '款 ' + data[i].count + "个,共" + data[i].price + "元" + price_text + '\n'
data[i].number = number;
}
}