Merge branch 'master' into develop
Showing
1 changed file
with
3 additions
and
1 deletions
@@ -269,6 +269,7 @@ var g=new common.grid({ | @@ -269,6 +269,7 @@ var g=new common.grid({ | ||
269 | {display:"选择","type":"checkbox"}, | 269 | {display:"选择","type":"checkbox"}, |
270 | {display:"品牌",render:function(item){ | 270 | {display:"品牌",render:function(item){ |
271 | //option js | 271 | //option js |
272 | + item.__unid=item.brandId+"-"+item.supplierId; | ||
272 | item.brandName=$.trim($("#brandname").find("option:selected").text().replace(/选择品牌/g,'')); | 273 | item.brandName=$.trim($("#brandname").find("option:selected").text().replace(/选择品牌/g,'')); |
273 | return item.brandName; | 274 | return item.brandName; |
274 | }}, | 275 | }}, |
@@ -357,7 +358,8 @@ e.on("bind",function(){ | @@ -357,7 +358,8 @@ e.on("bind",function(){ | ||
357 | g2.__rows.length=0; | 358 | g2.__rows.length=0; |
358 | }else{ | 359 | }else{ |
359 | g.options.columns[0].type="checkbox"; | 360 | g.options.columns[0].type="checkbox"; |
360 | - __feild="supplierId"; | 361 | + __feild="__unid"; |
362 | + | ||
361 | } | 363 | } |
362 | //common.util.__template($("#template").html(),{}) | 364 | //common.util.__template($("#template").html(),{}) |
363 | common.dialog.confirm("添加供应商关系",$("#template").html(),function(){ | 365 | common.dialog.confirm("添加供应商关系",$("#template").html(),function(){ |
-
Please register or login to post a comment