Authored by weiqingting

4.5 bug修改

... ... @@ -83,12 +83,13 @@ var SORTDATA={
otherParam:function(){
return {brandId:$("#brandId").val(),supplierId:common.util.__input("supplierId")}
},
complete:function(data){
complete:function(data,bool){
if(data.length>2){
Bll.productNameArr[2]=data[data.length-1].sortName;
Bll.setProductName();
}
if(data[0]&&data[0].text&&data[0].text.indexOf("潮童")>-1){
if(!bool){
if(data[0]&&data[0].text&&data[0].text.indexOf("2")>-1){
$("#ageLevel").val("2|3");
}else{
... ... @@ -101,6 +102,7 @@ var SORTDATA={
$(this).prop("checked",true)
}
});
}
// console.log(data);
}
};
... ...
... ... @@ -145,11 +145,11 @@ tabTree.prototype= {
g.getData(g._getParam(_next))
} else {
g.active_count = 0;
g.setHeadVal();
g.setHeadVal(true);
g.reset()
}
} else {
g.setHeadVal();
g.setHeadVal(true);
g.reset()
}
},
... ... @@ -210,7 +210,7 @@ tabTree.prototype= {
g.rows.length = 0;
if (items.data.length == 0) {
g.active_count = 0;
g.setHeadVal();
g.setHeadVal(true);
g.reset();
}else{
$.each(items.data, function(count, item) {
... ... @@ -225,16 +225,13 @@ tabTree.prototype= {
g.records.push(count);
g.rows.push(item)
});
if ($("iframe", g.dom["citybox"]).length > 0) {
$("iframe", g.dom["citybox"]).height(g.element[0].offsetHeight)
}
}
},
error: function(e1, e2) {}
};
$.ajax(ajaxOptions)
},
setHeadVal: function() {
setHeadVal: function(bool) {
var g = this,
p = this.options;
var arr=[];
... ... @@ -247,7 +244,7 @@ tabTree.prototype= {
p.datas.push(item)
});
if (p.complete != null) {
p.complete(p.datas, false)
p.complete(p.datas, bool)
}
},
renderHeader: function() {
... ...
... ... @@ -69,7 +69,7 @@
<td>说明:</td>
<td colspan="2">
1、上传文件必须是<span style="color:red;">.xlsx</span>文件<br>
2、第一行标题栏:<span style="color: #67D267;">货品名称、厂家编号、一级分类、二级分类、三级分类、四级分类、性别、货品年、货品季、吊牌价、销售价、色系、厂家颜色、款型、尺码、条码、能否补货、SKN计数</span><br>
2、第一行标题栏:<span style="color: #67D267;">货品名称、厂家编号、一级分类、二级分类、三级分类、四级分类、性别、货品年、货品季、吊牌价、销售价、色系、厂家颜色、款型、尺码、条码、能否补货、SKN计数,年龄层(成人,大童,小童),重点款,预计上架时间</span><br>
3、<a href="/ajax/link/baseproduct">下载样例</a>
</td>
</tr>
... ...
... ... @@ -199,7 +199,7 @@
<input type="checkbox" name="ageLevel" value="2">大童</label>
<label class="radio-inline">
<input type="checkbox" name="ageLevel" value="3">小童</label>
<input type="hidden" id="ageLevel" name="ageLevel" value="[[ageLevel||'1']]" for="checkbox" placeholder="年龄层" required />
<input type="hidden" id="ageLevel" name="ageLevel" value="[[ageLevel]]" for="checkbox" placeholder="年龄层" required />
</div>
<label class="col-sm-1 control-label">性别<span class="red">*</span></label>
<div class="col-sm-2">
... ...