edit
Este cometimento está contido em:
@@ -98,21 +98,39 @@
|
||||
</div>
|
||||
<div id="ui_kind5">
|
||||
<p>
|
||||
宽幅
|
||||
</p>
|
||||
<div class="layui-form-item fixedSizeCoupon">
|
||||
<select name="width" id="width" class="select">
|
||||
<option value="26.4">264mm宽幅(套常规500或700毫升98口径奶茶杯)</option>
|
||||
<option value="24.7">247mm宽幅(套常规500或700毫升90口径奶茶杯)</option>
|
||||
<option value="26.1">261mm宽幅(套常规500或700毫升95口径奶茶杯)</option>
|
||||
</select>
|
||||
</div>
|
||||
<p>
|
||||
尺寸(cm)<span style="font-size:14px;color:red">输入格式: 长 * 宽</span>
|
||||
工艺
|
||||
</p>
|
||||
<div class="layui-form-item">
|
||||
<input type="text" name="length" id="ui_size" placeholder="" class="layui-input">
|
||||
<input type="checkbox" name="craft" value="异形模切" title="异形模切" lay-filter="craft_btn" checked/>
|
||||
<input type="checkbox" name="craft" value="单面覆膜" title="双面覆哑膜" lay-filter="craft_btn" checked/>
|
||||
<input type="checkbox" name="craftTang" value="粘成品" title="粘成品" lay-filter="craft_btn"/>
|
||||
</div>
|
||||
<div class="diySize">
|
||||
<p>
|
||||
尺寸(cm)
|
||||
</p>
|
||||
<input type="text" name="size" placeholder="长*宽" id="diySize" class="layui-input">
|
||||
</div>
|
||||
<div class="fixWidth" style="display: none">
|
||||
|
||||
<p>
|
||||
长幅
|
||||
</p>
|
||||
<div class="layui-form-item fixedSizeCoupon">
|
||||
<select name="width" id="width" class="select">
|
||||
<option value="26.4">264mm长幅(套常规500或700毫升98口径奶茶杯)</option>
|
||||
<option value="24.7">247mm长幅(套常规500或700毫升90口径奶茶杯)</option>
|
||||
<option value="26.1">261mm长幅(套常规500或700毫升95口径奶茶杯)</option>
|
||||
</select>
|
||||
</div>
|
||||
<p>
|
||||
宽尺寸(cm)<span style="font-size:14px;color:red">输入格式: 宽</span>
|
||||
</p>
|
||||
<div class="layui-form-item">
|
||||
<input type="text" name="length" id="ui_size" placeholder="" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
数量(个)
|
||||
</p>
|
||||
@@ -125,14 +143,7 @@
|
||||
<option value="10000">10000</option>
|
||||
</select>
|
||||
</div>
|
||||
<p>
|
||||
工艺
|
||||
</p>
|
||||
<div class="layui-form-item">
|
||||
<input type="checkbox" name="craft" value="异形模切" title="异形模切" lay-filter="craft_btn" checked/>
|
||||
<input type="checkbox" name="craft" value="单面覆膜" title="双面覆哑膜" lay-filter="craft_btn"/>
|
||||
<input type="checkbox" name="craftTang" value="粘成品" title="粘成品"/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="alien">
|
||||
<p>
|
||||
@@ -306,13 +317,24 @@
|
||||
}
|
||||
}); */
|
||||
form.on("checkbox(craft_btn)", function (data) {
|
||||
if ($("input[name='craft']:checked").length < 2) {
|
||||
if (!data.elem.checked && (data.value == "异形模切" || data.value == "单面覆膜")) {
|
||||
layer.msg("300克铜版纸模切覆膜工艺必选", {offset: ['300px', '300px']}, function () {
|
||||
});
|
||||
$("input[name='craft']").prop('checked', true);
|
||||
$("input[name='craft'][value='异形模切']").prop('checked', true);
|
||||
form.render('checkbox');
|
||||
return false;
|
||||
}
|
||||
$(".diySize").show();
|
||||
$(".diySize").find(":input").attr("disabled", false);
|
||||
$(".fixWidth").hide();
|
||||
$(".fixWidth").find(":input").attr("disabled", true);
|
||||
if ($("input[name='craftTang']").is(":checked")) {
|
||||
$(".diySize").hide();
|
||||
$(".diySize").find(":input").attr("disabled", true);
|
||||
$(".fixWidth").show();
|
||||
$(".fixWidth").find(":input").attr("disabled", false);
|
||||
}
|
||||
form.render();
|
||||
})
|
||||
|
||||
form.on('radio(kindValue)', function (data) {
|
||||
@@ -478,7 +500,11 @@
|
||||
if ($("input[name='craftTang']:checked").val() != null) {
|
||||
arr.push($("input[name='craftTang']:checked").val());
|
||||
}
|
||||
var span_result = '杯套 - ' + kind + '-' + arr + ' - ' + $("select[name='width'] option:selected").val() + '*' + $("#ui_size").val() + 'cm\n';
|
||||
let size = $("#diySize").val();
|
||||
if ($("input[name='craftTang']").is(":checked")) {
|
||||
size = $("select[name='width'] option:selected").val() + '*' + $("#ui_size").val()
|
||||
}
|
||||
var span_result = '杯套 - ' + kind + '-' + arr + ' - ' + size + 'cm\n';
|
||||
} else {
|
||||
var span_result = '杯套 - ' + kind + ' - ' + [size] + '\n';
|
||||
//var span_result ='杯套 - ' + kind +'\n';
|
||||
|
||||
@@ -861,7 +861,7 @@
|
||||
$(".fm").find(":input").attr("disabled", true);
|
||||
}
|
||||
// PVC、透明没有覆哑膜
|
||||
if (data.value == 1 && $("input[name='stickerKind']:checked").val() == "常用种类") {
|
||||
if (data.value == 1) {
|
||||
$(".nofm").find(":input").attr("disabled", false);
|
||||
} else {
|
||||
$(".nofm").find(":input").attr("disabled", true);
|
||||
@@ -1066,7 +1066,12 @@
|
||||
$(".fm").hide();
|
||||
$(".fm").find(":input").attr("disabled", true);
|
||||
}
|
||||
$(".nofm").find(":input").attr("disabled", true);
|
||||
if (data.value == 1) {
|
||||
$(".nofm").find(":input").attr("disabled", false);
|
||||
} else {
|
||||
$(".nofm").find(":input").attr("disabled", true);
|
||||
$('input[class = liangmo]').prop('checked', true);
|
||||
}
|
||||
$('input[class = liangmo]').prop('checked', true);
|
||||
if (data.value == 5 || data.value == 6) {
|
||||
$(".at").show();
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador