|
@@ -0,0 +1,273 @@
|
|
|
+{Template header}
|
|
|
+<style>
|
|
|
+ .lv_fatiao{
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+ .lv_fakuai{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .lv_fakuai_two{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .lv_toutao{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .lv_jiefa{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .lv_liwu{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .lv_peijian{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .lv_huaqiantoutao{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .lv_huaqianqita{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+
|
|
|
+</style>
|
|
|
+<link href="{$theme}js/select2/select2.min.css?v={time()}" rel="stylesheet" />
|
|
|
+<script src="{$theme}js/select2/select2.full.min.js?v={time()}"></script>
|
|
|
+<body>
|
|
|
+ <div class="warp">
|
|
|
+
|
|
|
+ <ul class="setting">
|
|
|
+ <li >
|
|
|
+ <em>类 目:</em>
|
|
|
+ <select name="category" class="select">
|
|
|
+ {loop typeclass(16) as $val}
|
|
|
+ <option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
|
|
|
+ {/loop}
|
|
|
+ </select>
|
|
|
+ </li>
|
|
|
+ {Template product/fatiao}
|
|
|
+ {Template product/fakuai}
|
|
|
+ {Template product/toutao}
|
|
|
+ {Template product/jiefa}
|
|
|
+ {Template product/liwu}
|
|
|
+ {Template product/peijian}
|
|
|
+ {Template product/huaqiantoutao}
|
|
|
+ {Template product/huaqianqita}
|
|
|
+
|
|
|
+ <li class="length" id="lv_liwu_show">
|
|
|
+ <em>长 度:</em>
|
|
|
+ <div class="checkbox">
|
|
|
+ {loop typeclass(14) as $val}
|
|
|
+ <span class="ckrows"><label><input class="{$val['id']}" name="size" type="radio"
|
|
|
+ value="{$val['id']}">
|
|
|
+ <font>{$val['title']}</font>
|
|
|
+ </label></span>
|
|
|
+ {/loop}
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ <li class="length" style="display: block;" id="lv_hyu9lh"><font class="tbu9" style="width:180px;height: 50px;line-height: 50px; color: #fff;background-color: #2084db;border-radius: 5px;display: block;cursor: pointer;text-align: center;margin:35px auto 0 auto">核验U9料号</font></li>
|
|
|
+
|
|
|
+ <li class="length" style="display: none;" id="lv_beizhu">
|
|
|
+ <em>备 注:</em>
|
|
|
+ <div style="background-color: #fff;padding: 10px;text-align: left;">
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+
|
|
|
+ <li class="length" style="display: none;" id="lv_tbu9lh">
|
|
|
+ <font class="tbu9" style="width:180px;height: 50px;line-height: 50px; color: #fff;background-color: #2084db;border-radius: 5px;display: block;cursor: pointer;text-align: center;margin:35px auto 0 auto">同步U9料号</font>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ <div class="hidden">
|
|
|
+ </div>
|
|
|
+ <div class="systemwindow">
|
|
|
+ <div>
|
|
|
+ <p>是否确定删除所选信息?</p>
|
|
|
+ <p>
|
|
|
+ <font class="button">确 定</font>
|
|
|
+ <font class="esc">取 消</font>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<script>
|
|
|
+ function closeproducr(){
|
|
|
+ $(".lv_fatiao").css("display","none");
|
|
|
+ $(".lv_fakuai").css("display","none");
|
|
|
+ $(".lv_fakuai_two").css("display","none");
|
|
|
+ $(".lv_toutao").css("display","none");
|
|
|
+ $(".lv_jiefa").css("display","none");
|
|
|
+ $(".lv_liwu").css("display","none");
|
|
|
+ $(".lv_peijian").css("display","none");
|
|
|
+ $(".lv_huaqiantoutao").css("display","none");
|
|
|
+ $(".lv_huaqianqita").css("display","none");
|
|
|
+ }
|
|
|
+ $("select[name='category']").on("change",function(){
|
|
|
+ let category = $(this).val();
|
|
|
+ closeproducr();
|
|
|
+ if(category == 126){
|
|
|
+ $(".lv_fatiao").css("display","block");
|
|
|
+ $("#lv_liwu_show").css('display','block')
|
|
|
+ }
|
|
|
+ if(category == 127){
|
|
|
+ $(".lv_fakuai").css("display","block");
|
|
|
+ $("#lv_liwu_show").css('display','block')
|
|
|
+ }
|
|
|
+ if(category == 128){
|
|
|
+ $(".lv_toutao").css("display","block");
|
|
|
+ $("#lv_liwu_show").css('display','block')
|
|
|
+ }
|
|
|
+ if(category == 130){
|
|
|
+ $(".lv_jiefa").css("display","block");
|
|
|
+ $("#lv_liwu_show").css('display','block')
|
|
|
+ }
|
|
|
+ if(category == 131){
|
|
|
+ $(".lv_liwu").css("display","block");
|
|
|
+ $("#lv_liwu_show").css('display','none')
|
|
|
+ }
|
|
|
+ if(category == 133){
|
|
|
+ $(".lv_peijian").css("display","block");
|
|
|
+ $("#lv_liwu_show").css('display','block')
|
|
|
+ }
|
|
|
+ if(category == 1297){
|
|
|
+ $(".lv_huaqiantoutao").css("display","block");
|
|
|
+ $("#lv_liwu_show").css('display','block')
|
|
|
+ }
|
|
|
+ if(category == 1702){
|
|
|
+ $(".lv_huaqianqita").css("display","block");
|
|
|
+ $("#lv_liwu_show").css('display','block')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ $(function () {
|
|
|
+ $("select[name='category']").on("change", function () {
|
|
|
+ $('.select_two').select2("destroy");
|
|
|
+ $('.select_two').select2({
|
|
|
+ placeholder: "请选择",
|
|
|
+ allowClear: true,
|
|
|
+ });
|
|
|
+ })
|
|
|
+ /**发块的类型**/
|
|
|
+ $("select[name='type']").on("change", function () {
|
|
|
+ let type = $(this).val();
|
|
|
+ //发块 对应的蕾丝尺寸是 25
|
|
|
+ if(type == 195){
|
|
|
+ $("#lv_fakuai_25").css("display","block");
|
|
|
+ $("#lv_fakuai_26").css("display","none");
|
|
|
+ }
|
|
|
+ //蕾丝前头 对应的蕾丝尺寸是 26
|
|
|
+ if(type == 197){
|
|
|
+ $("#lv_fakuai_25").css("display","none");
|
|
|
+ $("#lv_fakuai_26").css("display","block");
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+ $('.select_two').select2({
|
|
|
+ placeholder: "请选择",
|
|
|
+ allowClear: true,
|
|
|
+ });
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+ $(".tbu9").on("click",function(){
|
|
|
+ let arr = {};
|
|
|
+ $(".warp .setting li").each(function(){
|
|
|
+ if($(this).css("display") != "none" ){
|
|
|
+ if($(this).find("input[type='radio']:checked").val()){
|
|
|
+ arr[$(this).find("input").attr('name')] = $(this).find("input[type='radio']:checked").val();
|
|
|
+ }
|
|
|
+ if($(this).find("select").val()){
|
|
|
+ arr[$(this).find("select").attr('name')] = $(this).find("select").val();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ $.post("/u9tools/cjlp",arr,function(res){
|
|
|
+ if(res.code == 1){
|
|
|
+ let str = "<div style='padding-top:30px'>";
|
|
|
+ str += "<div>U9分类:" + res.data.bm + "</div>";
|
|
|
+ str += "<div>U9料号:" + res.data.jm + "</div>";
|
|
|
+ str += "<div>中文名称:" + res.data.zh + "</div>";
|
|
|
+ str += "<div>英文名称:" + res.data.en + "</div>";
|
|
|
+ str += "<div>erp sku:" + res.data.sku + "</div>";
|
|
|
+ str += "</div>";
|
|
|
+
|
|
|
+
|
|
|
+ $("#lv_beizhu div").html(str);
|
|
|
+ $("#lv_hyu9lh").css("display","none");
|
|
|
+ $("#lv_beizhu").css("display","block");
|
|
|
+ $("#lv_tbu9lh").css("display","block");
|
|
|
+ }else{
|
|
|
+ layx.confirm('提示',res.msg,null,{
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ label:'确定',
|
|
|
+ callback:function(id, button, event){
|
|
|
+
|
|
|
+ layx.destroy(id);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],dialogIcon:'error',shadable:0.6
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ },'json')
|
|
|
+ })
|
|
|
+
|
|
|
+ function ceshi(){
|
|
|
+ let tmp_list = "85,-126-80-57-101-";
|
|
|
+ var list = tmp_list.replace(/\-(0|163|164|165|166)\-/, '-')
|
|
|
+ console.log(list)
|
|
|
+ cc = list.split(",");
|
|
|
+ console.log(cc)
|
|
|
+ listqc = list.replace(/\d{1,3}\,/, '');
|
|
|
+ console.log(listqc)
|
|
|
+ listqc = listqc.substring(0, listqc.length - 1);
|
|
|
+ console.log(listqc)
|
|
|
+ data = listqc.split("-");
|
|
|
+ console.log(data)
|
|
|
+ var t = "";
|
|
|
+ var fpdg = "";
|
|
|
+ let wl = "";
|
|
|
+ var zrflx = 0; //是否有真人发类型
|
|
|
+ for (i = 1; i < data.length; i++) {
|
|
|
+ if (i == 2) {
|
|
|
+ //if(data[i] == 2090)
|
|
|
+ if ((data[i] == 2090) || (data[i] == 1620) || (data[i] == 2480) || (data[i] == 2469)) {
|
|
|
+ zrflx++;
|
|
|
+ t = t + data[i];
|
|
|
+ fpdg = fpdg + '-' + data[i];
|
|
|
+ } else {
|
|
|
+ if (cc[0] != list) {
|
|
|
+ t = t + data[i] + cc[0];
|
|
|
+ fpdg = fpdg + '-' + data[i] + '-' + cc[0];
|
|
|
+ } else {
|
|
|
+ t = t + data[i];
|
|
|
+ fpdg = fpdg + '-' + data[i];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else if (i == 3 && zrflx > 0) {
|
|
|
+ if (cc[0] != list) {
|
|
|
+ t = t + data[i] + cc[0];
|
|
|
+ fpdg = fpdg + '-' + data[i] + '-' + cc[0];
|
|
|
+ } else {
|
|
|
+ t = t + data[i];
|
|
|
+ fpdg = fpdg + '-' + data[i];
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ t = t + data[i];
|
|
|
+ fpdg = fpdg + '-' + data[i];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ wl = wl + t + '-' + '|';
|
|
|
+ console.log(wl)
|
|
|
+ }
|
|
|
+
|
|
|
+</script>
|
|
|
+
|
|
|
+<script src="{$theme}js/goodsrules.js?v={time()}"></script>
|
|
|
+
|
|
|
+{Template footer}
|