Showing
1 changed file
with
2 additions
and
1 deletions
@@ -151,7 +151,7 @@ var g=new common.grid({ | @@ -151,7 +151,7 @@ var g=new common.grid({ | ||
151 | {display:"颜色",render:function(item){ | 151 | {display:"颜色",render:function(item){ |
152 | var html=[]; | 152 | var html=[]; |
153 | var txt=item.factoryGoodsName?item.factoryGoodsName:item.goodsName; | 153 | var txt=item.factoryGoodsName?item.factoryGoodsName:item.goodsName; |
154 | - html.push("<p>厂家颜色:<input type='text' class='w-goods-text' data-index="+item.__index+" value='"+txt+"' placeholder='厂家颜色' required/><p>"); | 154 | + html.push("<p>厂家颜色:<input type='text' id='factoryGoodsName' class='w-goods-text' data-index="+item.__index+" value='"+txt+"' placeholder='厂家颜色' required/><p>"); |
155 | 155 | ||
156 | html.push("<p>色系:"+item.goodsName+"<p>"); | 156 | html.push("<p>色系:"+item.goodsName+"<p>"); |
157 | html.push('<button type="button" data-index='+item.__index+' class="sortdelete btn btn-danger btn-xs">删除</button>'); | 157 | 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(){ | @@ -264,6 +264,7 @@ $(document).on("click",".sortadd",function(){ | ||
264 | g.__rows.push({ | 264 | g.__rows.push({ |
265 | "factoryCode": "", | 265 | "factoryCode": "", |
266 | "goodsColorImage": "", | 266 | "goodsColorImage": "", |
267 | + factoryGoodsName: $.trim($("#factoryGoodsName").val())?$.trim($("#factoryGoodsName").val()):$(this).text(), | ||
267 | goodsName: $(this).text(), | 268 | goodsName: $(this).text(), |
268 | colorId: (+$(this).data("id")), | 269 | colorId: (+$(this).data("id")), |
269 | goodsSizeList: [goodsSizeList], | 270 | goodsSizeList: [goodsSizeList], |
-
Please register or login to post a comment