...
|
...
|
@@ -151,7 +151,7 @@ var g=new common.grid({ |
|
|
{display:"颜色",render:function(item){
|
|
|
var html=[];
|
|
|
var txt=item.factoryGoodsName?item.factoryGoodsName:item.goodsName;
|
|
|
html.push("<p>厂家颜色:<input type='text' class='w-goods-text' data-index="+item.__index+" value='"+txt+"' placeholder='厂家颜色' required/><p>");
|
|
|
html.push("<p>厂家颜色:<input type='text' id='factoryGoodsName' class='w-goods-text' data-index="+item.__index+" value='"+txt+"' placeholder='厂家颜色' required/><p>");
|
|
|
|
|
|
html.push("<p>色系:"+item.goodsName+"<p>");
|
|
|
html.push('<button type="button" data-index='+item.__index+' class="sortdelete btn btn-danger btn-xs">删除</button>');
|
...
|
...
|
@@ -264,6 +264,7 @@ $(document).on("click",".sortadd",function(){ |
|
|
g.__rows.push({
|
|
|
"factoryCode": "",
|
|
|
"goodsColorImage": "",
|
|
|
factoryGoodsName: $.trim($("#factoryGoodsName").val())?$.trim($("#factoryGoodsName").val()):$(this).text(),
|
|
|
goodsName: $(this).text(),
|
|
|
colorId: (+$(this).data("id")),
|
|
|
goodsSizeList: [goodsSizeList],
|
...
|
...
|
|