Showing
1 changed file
with
0 additions
and
57 deletions
@@ -71,44 +71,6 @@ var Bll={ | @@ -71,44 +71,6 @@ var Bll={ | ||
71 | } | 71 | } |
72 | } | 72 | } |
73 | 73 | ||
74 | -/*非销售属性配置*/ | ||
75 | -// var ag=new common.grid({ | ||
76 | -// el:"#attributeTable", | ||
77 | -// columns:[ | ||
78 | -// {display:"名称",name:"attributeName",render:function(item){ | ||
79 | -// item.required=item.isMust=="Y"?"required":""; | ||
80 | -// var arr=[]; | ||
81 | -// arr.push(item.attributeName); | ||
82 | -// if(item.required){ | ||
83 | -// arr.push("<span class='red'>*</span>"); | ||
84 | -// } | ||
85 | -// return arr.join(''); | ||
86 | -// }}, | ||
87 | -// {display:"属性",render:function(item){ | ||
88 | -// item.required=item.isMust=="Y"?"required":""; | ||
89 | -// // item.attributeValues=item.attributeValues.split(',').map(function(elem, index, arr){ | ||
90 | -// // return {name:elem} | ||
91 | -// // }); | ||
92 | -// var attrs=RESPONSEDATA.productStandardRelationBoList; | ||
93 | -// if(attrs){ | ||
94 | -// for(var i in attrs){ | ||
95 | -// if(attrs[i].standardId==item.attributeId){ | ||
96 | -// item.val=attrs[i].standardVal | ||
97 | -// item.__val=attrs[i].parameterMakeId | ||
98 | -// } | ||
99 | -// } | ||
100 | -// } | ||
101 | - | ||
102 | -// // item.attributeValues={name:}; | ||
103 | -// return common.util.__template2($("#template3").html(),item); | ||
104 | -// }}, | ||
105 | -// {display:"备注",name:"remark"} | ||
106 | -// ], | ||
107 | -// complete:function(){ | ||
108 | -// ag.__edit.init(); | ||
109 | -// } | ||
110 | -// }); | ||
111 | -// ag.__edit=new common.edit("#attributeTable"); | ||
112 | 74 | ||
113 | /*品类初始化*/ | 75 | /*品类初始化*/ |
114 | var SORTDATA={ | 76 | var SORTDATA={ |
@@ -126,20 +88,6 @@ var SORTDATA={ | @@ -126,20 +88,6 @@ var SORTDATA={ | ||
126 | if(data.length>2){ | 88 | if(data.length>2){ |
127 | Bll.productNameArr[2]=data[data.length-1].sortName; | 89 | Bll.productNameArr[2]=data[data.length-1].sortName; |
128 | Bll.setProductName(); | 90 | Bll.setProductName(); |
129 | - /*查出非销售属性*/ | ||
130 | - // var sorid=Bll.validateSort(); | ||
131 | - // if(sorid){ | ||
132 | - // common.util.__ajax({ | ||
133 | - // url:'/base/goods/queryAllProductAttr', | ||
134 | - // data:{ | ||
135 | - // categoryId:sorid, | ||
136 | - // displayPosition:1 | ||
137 | - // } | ||
138 | - // },function(res){ | ||
139 | - // ag.init(res.data); | ||
140 | - // },true); | ||
141 | - // } | ||
142 | - | ||
143 | } | 91 | } |
144 | if(data[0].text&&data[0].text.indexOf("潮童")>-1){ | 92 | if(data[0].text&&data[0].text.indexOf("潮童")>-1){ |
145 | $("#ageLevel").val("2|3"); | 93 | $("#ageLevel").val("2|3"); |
@@ -184,11 +132,6 @@ if(!param){ | @@ -184,11 +132,6 @@ if(!param){ | ||
184 | new common.dropDown({el:"#brandId",ajax:"queryBrandByShopId",params:function(){ | 132 | new common.dropDown({el:"#brandId",ajax:"queryBrandByShopId",params:function(){ |
185 | return {status:1} | 133 | return {status:1} |
186 | }}); | 134 | }}); |
187 | - | ||
188 | - // new common.dropDown({el:"#shopId",ajax:"sortbybrand",params:function(){ | ||
189 | - // return {brandId:$("#brandId").val()} | ||
190 | - // }}); | ||
191 | - | ||
192 | new common.dropDown({el:"#supplierId",ajax:"getjitSup",params:function(){ | 135 | new common.dropDown({el:"#supplierId",ajax:"getjitSup",params:function(){ |
193 | return {brandId:$("#brandId").val()} | 136 | return {brandId:$("#brandId").val()} |
194 | }}); | 137 | }}); |
-
Please register or login to post a comment