新增香薰卡工艺,新增插旗材质,新增刮刮卡烫金,新增优惠卷打码工艺,新增插卡工艺,修改外卖盒,修改贺卡价格,修改不干胶价格
This commit is contained in:
@@ -515,13 +515,35 @@
|
||||
<input type="checkbox" name="craft" class="yj disab max cjkDisab" lay-filter="switch"
|
||||
value="圆角" title="圆角">
|
||||
<div class="layui-input-block craft value5 value7 dm" style="display:inline-block;">
|
||||
<input type="checkbox" name="craft" lay-filter="switch" value="打码"
|
||||
title="打码">
|
||||
<div class="layui-inline edge damaHide" style="width:60px;display:none">
|
||||
<select name="dama" class="select dama" lay-filter="dama">
|
||||
<option value="1" selected>1</option>
|
||||
<option value="2">2</option>
|
||||
</select>
|
||||
<input type="checkbox" name="craft" lay-filter="switch" value="打码" title="打码">
|
||||
<div class="layui-inline edge damaHide" style="width:100px;display:none">
|
||||
<div style="display: flex;align-items: center">
|
||||
<span style="flex-shrink: 0">码数:</span>
|
||||
<select name="pcount" class="select" lay-filter="mashu">
|
||||
<option value="7" selected>7</option>
|
||||
<option value="3">3</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline edge damaHide" style="width:100px;display:none">
|
||||
<div style="display: flex;align-items: center">
|
||||
<span style="flex-shrink: 0">个数:</span>
|
||||
<select name="dama" class="select dama" lay-filter="dama">
|
||||
<option value="1" selected>1</option>
|
||||
<%-- <option value="2">2</option>--%>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline edge damaHide" style="width:120px;display:none">
|
||||
<div style="display: flex;align-items: center">
|
||||
<span style="flex-shrink: 0">颜色:</span>
|
||||
<select name="macolor" class="select macolor">
|
||||
<option value="金色码" selected>金色码</option>
|
||||
<option value="红色码">红色码</option>
|
||||
<option value="黑色码">黑色码</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="layui-inline edge bianma" style="width:120px;display:none">
|
||||
<select name="bianma" class="select bianmaSelect" lay-filter="bianma">
|
||||
@@ -531,7 +553,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="bmType" style="display:none"><span style="font-size:14px;color:red">打码数量为‘2’时,需要选择打码类型:[水平编码] 或 [上下编码]
|
||||
</br>水平编码:价格相同; 上下编码:价格不同</span>
|
||||
</br>水平编码:价格相同; 上下编码:价格不同
|
||||
</br>只能打红色码和黑色码 ,3个码的价格按照7个码的翻倍价格算
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-input-block value7">
|
||||
@@ -1280,6 +1304,19 @@
|
||||
}
|
||||
form.render();
|
||||
});
|
||||
form.on("select(mashu)", function (data) {
|
||||
let value = data.value;
|
||||
let html = `<option value="金色码" selected>金色码</option>
|
||||
<option value="红色码">红色码</option>
|
||||
<option value="黑色码">黑色码</option>`;
|
||||
if (data.value == "3") {
|
||||
html = `<option value="红色码" selected>红色码</option>
|
||||
<option value="黑色码">黑色码</option>`;
|
||||
}
|
||||
$("select[name='macolor']").empty();
|
||||
$("select[name='macolor']").append(html);
|
||||
form.render();
|
||||
})
|
||||
form.on("checkbox(lessz4PeiJian)", function (data) {
|
||||
let peijiansize = $(".lesspeijian:checked").length;
|
||||
if (peijiansize > 1) {
|
||||
@@ -1871,8 +1908,6 @@
|
||||
if (data.value == 13) {
|
||||
$("input[name='fmType']").prop('checked', false);
|
||||
$("input[name='fmType']")[0].checked = true;
|
||||
$("#craftForm .tj").hide();
|
||||
$("#craftForm .tj input").attr("disabled", false);
|
||||
form.render('checkbox');
|
||||
}
|
||||
// 腰封的时候有覆膜
|
||||
@@ -2690,6 +2725,19 @@
|
||||
$(".damaHide").show();
|
||||
$(".dama").val(1);
|
||||
//$('input[class = mq]').prop('disabled', true);
|
||||
let v_kind = $("input[name='kind']:checked").val();
|
||||
let html = `<option value="7" selected>7</option>
|
||||
<option value="3">3</option>`;
|
||||
if (v_kind == 13) {
|
||||
html = `<option value="7" selected>7</option>`;
|
||||
}
|
||||
$("select[name='pcount']").empty();
|
||||
$("select[name='pcount']").append(html);
|
||||
let color_html = `<option value="金色码" selected>金色码</option>
|
||||
<option value="红色码">红色码</option>
|
||||
<option value="黑色码">黑色码</option>`;
|
||||
$("select[name='macolor']").empty();
|
||||
$("select[name='macolor']").append(color_html);
|
||||
form.render('select');
|
||||
} else {
|
||||
// 打码取消选中的时候,隐藏下拉框、编码类型
|
||||
@@ -3071,9 +3119,10 @@
|
||||
if (kindValue2 != 10) {
|
||||
if ($(this).val() === '打码') {
|
||||
if ($(".dama").val() == 2) {
|
||||
arr.push($(this).val() + '(' + $(".dama").val() + '组,' + $(".bianmaSelect").val() + ')');
|
||||
arr.push($(this).val() + '(' + $(".dama").val() + '组,' + $("select[name='pcount'] option:selected").val() + $("select[name='macolor'] option:selected").val() + ' ,' + $(".bianmaSelect").val() + ')');
|
||||
} else {
|
||||
arr.push($(this).val() + '(' + $(".dama").val() + '组)');
|
||||
|
||||
arr.push($(this).val() + '(' + $(".dama").val() + '组' + $("select[name='pcount'] option:selected").val() + $("select[name='macolor'] option:selected").val() + ')');
|
||||
}
|
||||
}
|
||||
if (kind != 1 && ($(this).val() === '单面烫金' || $(this).val() === '双面烫金')) {
|
||||
@@ -3381,7 +3430,7 @@
|
||||
|
||||
if (awards > 1) {
|
||||
if ($('input[class = mq]:checked').val() == "模切") {
|
||||
layer.msg("异形刮刮卡2个奖项以上无法报价!", {offset: ['300px', '300px']}, function () {
|
||||
layer.msg("异形刮刮卡2个奖项要按照款数来报价!", {offset: ['300px', '300px']}, function () {
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user