Authored by liuyue

Merge branch 'release/1.6' of git.dev.yoho.cn:platform/yohobuy-portal-fe into release/1.6

... ... @@ -175,9 +175,9 @@ var g=new common.grid({
},
{
display:"<label class='red'>分类名称,款型编码,选择尺码,默认销售价必填</label>",render:function(item){
if(!item.isAdd&&!g.__gsm.hasOwnProperty(item.__index)){
g.__gsm[item.__index]=item.goodsSizeList.length;
}
// if(!item.isAdd&&!g.__gsm.hasOwnProperty(item.__index)){
// g.__gsm[item.__index]=item.goodsSizeList.length;
// }
var html=[];
html.push("<div class='form-group'><div class='col-sm-11 red'><input type=text value='"+item.factoryCode+"' data-index="+item.__index+" class='factoryCode form-control' placeholder='款型编码' required/></div></div>");
html.push('<div class="rows" id="rows__'+item.__index+'">');
... ... @@ -201,17 +201,23 @@ var g=new common.grid({
});
}
g.__e.init();
for(var i in g.__gsm){
var warp=$("#rows__"+i).children(".form-group").slice(0, 1);
warp.find("input").prop("readonly",true);
// for(var i in g.__gsm){
// var warp=$("#rows__"+i).children(".form-group").slice(0, 1);
// warp.find("input").prop("readonly",true);
// warp.find("select").prop("disabled",true);
// warp.find("btn-sort-remove").remove();
// }
for(var i=0;i<g.__length;i++){
var warp=$("#basicTable").find("tbody").children("tr").eq(i);
warp.find("input").prop("readonly",true).prop("disabled",true);
warp.find("select").prop("disabled",true);
warp.find("btn-sort-remove").remove();
warp.find("button").remove();
}
}
});
g.__rows=RESPONSEDATA.baseGoodList||[];
g.__gsm={};
// g.__length=g.__rows.length;
g.__length=g.__rows.length;
g.__e=new common.edit("#basicTable",{bucket:"goodsimg"});
g.init(g.__rows);
... ...