text: "use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};layui.define([],function(t){t("actionTpl",{id:function(t){return'<div><span class="jl-control-'+t+'"">{{ d.'+t+" }}</span></div>"},input:function(t,e,l,i){var n="",a=t+"_text";return n=e?'<input type="text" value="'+(e[a]?e[a]:e[t])+'" name="'+t+'title"  class="layui-input jl-control-'+t+" "+(l?"layui-form-label-pinyin-customer":"")+'" ><input type="hidden" value="'+e[t]+'" name="'+t+'" autocomplete="off" class="layui-input jl-control-'+t+'-id">':'<input type="text" value=" {{d.'+t+'}} " name="title" autocomplete="off" class="layui-input '+t+"  "+(l?"layui-form-label-pinyin-customer":"")+" jl-control-"+t+'">',i&&(n='<input type="text" value="'+(e[a]?e[a]:e[t])+'" name="'+t+'title"  class="layui-input jl-control-'+t+" "+(l?"layui-form-label-pinyin-customer":"")+'" readonly >'),"<div>"+n+"</div>"},checkInput:function(t,e,l){var i="",n=t+"_text";return e&&(i='<input type="text" value="'+(e[n]?e[n]:e[t])+'" name="'+t+'title"  class="layui-input jl-control-'+t+'" ><input type="hidden" value="" name="'+t+'_check" autocomplete="off" class="layui-input jl-control-'+t+'-check">'),l&&(i='<input type="text" value="'+(e[n]?e[n]:e[t])+'" name="'+t+'title"  class="layui-input jl-control-'+t+'" readonly >'),"<div>"+i+"</div>"},inputNum:function(t){return'<div><input type="text" value="{{ d.'+t+' }}" name="title" autocomplete="off" class="layui-input jl-control-'+t+'"></div>'},inputInput:function(t,e){var l=t+"_start",i=t+"_end";return'<div><input type="number" value="'+e[l]+'" name="'+l+'"  style="width:40%;display:inline-block;text-align:center" min="0" max="99999999"  autocomplete="off" class="jl-limit-min layui-input jl-control-'+t+'_start"> — <input type="number"  value="'+e[i]+'" name="'+i+'"  style="width:40%;display:inline-block;text-align:center" autocomplete="off" min="0" max="99999999" class="jl-limit-max layui-input jl-control-'+t+'_end"></div>'},input_one:function(t,e){return'<div><input type="text" value="'+e[t]+'" name="'+t+'" style="width:100%;display:inline-block;text-align:center" autocomplete="off" class="layui-input jl-control-'+t+'"> </div>'},inputReadOnly:function(t,e,l){var i="",n=t+"_text";return i=e?'<input type="text" readonly value="'+(e[n]?e[n]:e[t]?e[t]:"")+'" name="title" autocomplete="off" class="layui-input jl-control-'+n+'"><input type="hidden" readonly value="'+e[t]+'" name="'+t+'" autocomplete="off" class="layui-input jl-control-'+t+'">':'<input type="text" value="{{ d.'+t+' }}" name="title" autocomplete="off" class="layui-input jl-control-'+t+'">',l&&(i='<input type="text" readonly value="{{ d.'+t+' }}" name="title" autocomplete="off" class="layui-input jl-control-'+t+'">'),"<div>"+i+"</div>"},time:function(t){return'<div><input type="text" value="{{ d.'+t+' }}" name="title" autocomplete="off" class="layui-input time-tpl-input jl-control-'+t+'"></div>'},checkbox:function(t){return'<div class="layui-input-block"> {{#  if(d.'+t+'==1){ }}<input type="checkbox" name="" checked lay-filter="checkbox" lay-skin="primary" class="jl-control-'+t+'">{{#  } else { }}<input type="checkbox" name="" lay-filter="checkbox" lay-skin="primary" class="jl-control-'+t+'">{{#  } }}</div>'},select:function(l,t){var i="";return $.each(t,function(t,e){i+="{{#  if(d."+l+'==="'+e.value+'"){ }}<option value="'+e.value+'" selected>'+e.title+'</option>{{#  } else { }}<option value="'+e.value+'">'+e.title+"</option>{{#  } }}"}),"<div>{{#  if(d._"+l+'){ }}<div class="disabled-container disabled-active"><div class="disabled-mark"></div><select class="jl-control-'+l+'">'+i+'</select></div>{{#  } else { }}<div class="disabled-container"><div class="disabled-mark"></div><select class="jl-control-'+l+'">'+i+"</select></div>{{#  } }}</div>"},select_type:function(i,t,n){var a="";return $.each(t,function(t,e){if(e.group){var l="";$.each(e.option,function(t,e){n[i]==e.value?l+='<option value="'+e.value+'" selected>'+e.title+"</option>":l+='<option value="'+e.value+'">'+e.title+"</option>"}),a+='<optgroup label="'+e.title+'">'+l+"</optgroup>"}else 1e4!==n[i]&&n[i]?a+='<option value="'+e.value+'">'+e.title+"</option>":a+='<option value="'+e.value+'" selected>'+e.title+"</option>"}),'<div class="layui-form"><div class="layui-form-item">\n    <div class="layui-inline">\n      <div class="layui-input-inline" style="width:116px;text-align:left">\n        <select name="quiz" class="jl-control-'+i+'">\n'+a+"        </select>\n      </div>\n    </div></div>"},selectBargain:function(t,l){var i="";return l[t]&&0<l[t].length&&$.each(l[t],function(t,e){i+=0==t?'<option value="'+(l.fitemno||e.fitemno)+'" selected>'+(l.fitemno||e.fitemno)+"</option>":'<option value="'+e.fitemno+'" >'+e.fitemno+"</option>"}),'<div class="select-brand-container"><span class="jl-control-'+t+'-span" style="display:none">'+JSON.stringify(l)+'</span><select style="width: 100px" class="jl-control-'+t+'" lay-verify="" lay-search>'+i+"</select></div>"},selectBrand:function(l,t){var i="";return $.each(t,function(t,e){i+="{{#  if(d."+l+'==="'+e.id+'"){ }}<option value="'+e.id+'" selected>'+e.brand_name+'</option>{{#  } else { }}<option value="'+e.id+'">'+e.brand_name+"</option>{{#  } }}"}),'<div class="select-brand-container"><select style="width: 100px" class="jl-control-'+l+'" lay-verify="" lay-search>'+i+"</select></div>"},input_delivery:function(t){return'<div><input style="display: inline-block;width: 78px;margin-right: 10px" type="text" value="{{ d.'+t+' }}" name="title" autocomplete="off" class="layui-input jl-control-'+t+'">天</div>'},input_earnest:function(t){return'<div><input style="display: inline-block;width: 70px;margin-right: 10px" type="text" value="{{ d.'+t+' }}" name="title" autocomplete="off" class="layui-input jl-control-'+t+'">%</div>'},selectTap:function(t,e){return'<div><button data-option="'+e[t]+' " class="select-tap layui-btn layui-btn-sm jl-control-'+t+'" style="background-color:'+(e[t]?"#009688":"#c2c2c2")+'">查看详情</button></div>'},select_erp_Tap:function(t,e){return'<div><span style="display: none">  '+JSON.stringify(e[t]||[])+'</span><button data-option class="select-erp-tap layui-btn layui-btn-sm jl-control-'+t+'"  style="background-color:'+(e[t]?"#009688":"#c2c2c2")+'">查看详情</button></div>'},selectCategory:function(t,e){return'<div><span data-id="{{ d.'+t+' }}" class="select-category layui-btn layui-btn-sm jl-control-'+t+'">'+(e.isMore?'{{ d.cateList?(d.cateList[0]?d.cateList[0].cate_name:"无"):"无"||"无" }}':'{{ d.cate_name||"无" }}')+"</span></div>"},img:function(t,e){return'<div><div class="layui-btn-group"> <span class="layui-btn layui-btn-sm jl-control-'+t+'" data-img=" '+e[t]+' " style="background-color:'+(e[t]?"#009688":"#c2c2c2")+'">查看</span><span class="layui-btn layui-btn-sm action-upload-img action-upload-img-self">上传</span></div></div>'},pdf:function(t,e){return'<div><div class="layui-btn-group"> <button class="layui-btn layui-btn-sm jl-control-'+t+'" data-pdf=" '+e[t]+' " style="background-color:'+(e[t]?"#009688":"#c2c2c2")+'">查看</button><button class="layui-btn layui-btn-sm action-upload-pdf action-upload-pdf-self">上传（仅限pdf）</button></div></div>'},priceInfo:function(t){return'<div><span class="price-data">{{JSON.stringify(d.'+t+')}} </span><button class="price-tpl layui-btn layui-btn-sm jl-control-'+t+'" >查看详情</button></div>'},describe:function(t){return'<div><button data-describe="{{ d.'+t+' }}" class="describe-tpl layui-btn layui-btn-sm jl-control-'+t+'">编辑</button></div>'},selectErpProduct:function(t,e){var l=t+"_id";return"<div>"+(e?'<input type="text" value="'+(e[t]?e[t]:e[l]?e[l]:"")+'" name="title" autocomplete="off" class="jl-select-erp-product layui-input jl-control-'+t+'"><input type="hidden" value="'+e[l]+'" name="p_id" autocomplete="off" class="jl-select-erp-product layui-input jl-control-'+t+'-id">':'<input type="text" value="{{ d.'+t+' }}" name="title" autocomplete="off" class="jl-select-erp-product layui-input jl-control-'+t+'">')+"</div>"},selectPm:function(t){return'<div><input type="text" value="{{ d.'+t+' }}" name="title" autocomplete="off" class="jl-select-pm layui-input jl-control-'+t+'"></div>'},input_area:function(t,e){var l=t+"_start",i=t+"_end";return' <div class="layui-form-item">\n    <div class="layui-inline">\n      <label class="layui-form-label">'+e.name+'<input type="hidden" name="'+t+'_name" value="'+e.name+'"/><input type="hidden" name="'+t+'_type" value="'+e[t+"_type"]+'"/></label>\n      <div class="layui-input-inline" style="width: 120px;">      <input type="text" value="'+(e[l]||e[t+"_length"]||"")+'" placeholder="最小值" name="'+("volume"===t?"volume_length":l)+'"   min="0" max="99999999"  autocomplete="off" class="jl-limit-min layui-input jl-control-'+t+'_start">      </div>\n      <div class="layui-form-mid">-</div>\n      <div class="layui-input-inline" style="width: 120px;">\n        <input type="text"  value="'+(e[i]||e[t+"_width"]||"")+'" name="'+("volume"===t?"volume_width":i)+'" placeholder="最大值"  autocomplete="off" min="0" max="99999999" class="layui-input jl-control-'+t+'_end">      </div>\n    </div>\n  </div>'},selectAttr:function(l,t){var i="";if("object"!==(void 0===l?"undefined":_typeof(l)))return $.each(t,function(t,e){l==e.id?i+='<option value="'+e.id+'" selected>'+e.attr_name+"</option>":i+='<option value="'+e.id+'" >'+e.attr_name+"</option>"}),'<div class="layui-form-item"> <label class="layui-form-label">属性类别</label><div class="layui-input-block" style="width: 58%;"><select style="100px" class="jl-control-'+l+'" name="attr_id" lay-filter="attrSelect">'+i+"</select></div></div>";var e=l[l.key+"_value"].split(";");return $.each(e,function(t,e){l[l.key+"_start"]==e||-1<$.inArray(l.key,["volume"])&&l[l.key+"_length"]==e?i+='<option value="'+e+'" selected>'+e+"</option>":i+='<option value="'+e+'" >'+e+"</option>"}),'<div class="layui-form-item"> <label class="layui-form-label">'+l.name+'<input type="hidden" name="'+l.key+'_name" value="'+l.name+'"/><input type="hidden" name="'+l.key+'_type" value="'+l[l.key+"_type"]+'"/></label><div class="layui-input-block" style="width: 58%;"><select style="100px" class="jl-control-'+l.key+'" name="'+l.key+"_"+(-1<$.inArray(l.key,["volume"])?"length":"start")+'" lay-filter="">'+i+"</select></div></div>"},input_input:function(t){var e=t.value?t.value:t[t.key+"_length"]?t[t.key+"_length"]:t[t.key+"_start"]?t[t.key+"_start"]:t[t.key];return' <div class="layui-form-item">    <label class="layui-form-label">'+t.name+'<input type="hidden" name="'+t.key+'_name" value="'+t.name+'"/><input type="hidden" name="'+t.key+'_type" value="'+t[t.key+"_type"]+'"/></label>    <div class="layui-input-block" style="width: 262px;">      <input type="text" name="'+(t[t.key+"_type"]?"volume"===t.key?t.key+"_length":t.key+"_start":t.key)+'" lay-verify="'+t.key+'" autocomplete="off" placeholder="请输入'+t.name+'" class="layui-input layui-input-one-input" value="'+(e||"")+'">     </div> </div>'},input_radio:function(t,e){var l="",i=!1;$.each(t.arr,function(t,e){e.isChecked?(1==e.value&&(i=!0),l+='<input type="radio" name="'+e.key+'" lay-filter="input_check" value="'+e.value+'" title="'+e.name+'" checked/>'):l+='<input type="radio" name="'+e.key+'" lay-filter="input_check" value="'+e.value+'" title="'+e.name+'"/>'});var n="";return e&&(n=' <div class="layui-form-item value-input-change" style="display:'+(i?"block":"none")+'">\n    <label class="layui-form-label">'+t.name.split("类型")[0]+'预定值</label>\n    <div class="layui-input-block">\n      <input type="text" name="'+t.key.split("_type")[0]+'_value"  placeholder="多个不通值请用分号(;)隔开" autocomplete="off" class="layui-input" value="'+(t.value||"")+'">\n    </div>\n  </div>'),'<div class="layui-form-item" >\n    <label class="layui-form-label">'+t.name+'</label>\n    <div class="layui-input-block">\n'+l+"    </div></div>"+n}})});