|
@@ -92,7 +92,7 @@ var SORTDATA={ |
|
@@ -92,7 +92,7 @@ var SORTDATA={ |
92
|
{id:RESPONSEDATA.sortId,sortName:RESPONSEDATA.sortName}
|
92
|
{id:RESPONSEDATA.sortId,sortName:RESPONSEDATA.sortName}
|
93
|
],
|
93
|
],
|
94
|
otherParam:function(){
|
94
|
otherParam:function(){
|
95
|
- return {brandId:$("#brandId").val(),supplierId:common.util.__input("supplierId"),shopId:common.util.__input("shopId")}
|
95
|
+ return {brandId:$("#brandId").val(),supplierId:common.util.__input("supplierId"),shopId:common.util.__input("shopId"),sellType:common.util.__input("sellType")}
|
96
|
},
|
96
|
},
|
97
|
complete:function(data,bool){
|
97
|
complete:function(data,bool){
|
98
|
if(!bool){
|
98
|
if(!bool){
|
|
@@ -198,6 +198,8 @@ var g=new common.grid({ |
|
@@ -198,6 +198,8 @@ var g=new common.grid({ |
198
|
}else{
|
198
|
}else{
|
199
|
if(item.isNew){
|
199
|
if(item.isNew){
|
200
|
html.push("<p>厂家颜色:</p><p><input type='text' id='factoryGoodsName' class='w-goods-text form-control' data-index="+item.__index+" value='"+item.goodsName+"' placeholder='厂家颜色' required style='padding: 10px; width: 150px' /></p>");
|
200
|
html.push("<p>厂家颜色:</p><p><input type='text' id='factoryGoodsName' class='w-goods-text form-control' data-index="+item.__index+" value='"+item.goodsName+"' placeholder='厂家颜色' required style='padding: 10px; width: 150px' /></p>");
|
|
|
201
|
+ }else if(RESPONSEDATA.sellType == 3 || RESPONSEDATA.isJit == 'Y'){ // JIT上架后的商品也可以修改厂家颜色
|
|
|
202
|
+ html.push("<p>厂家颜色:</p><p><input type='text' id='factoryGoodsName' class='w-goods-text form-control' data-index="+item.__index+" value='"+txt+"' placeholder='厂家颜色' required style='padding: 10px; width: 150px' /></p>");
|
201
|
}else{
|
203
|
}else{
|
202
|
html.push("<p>厂家颜色:</p><p><input type='text' id='factoryGoodsName' disabled='disabled' class='w-goods-text form-control' data-index="+item.__index+" value='"+txt+"' placeholder='厂家颜色' required style='padding: 10px; width: 150px' /></p>");
|
204
|
html.push("<p>厂家颜色:</p><p><input type='text' id='factoryGoodsName' disabled='disabled' class='w-goods-text form-control' data-index="+item.__index+" value='"+txt+"' placeholder='厂家颜色' required style='padding: 10px; width: 150px' /></p>");
|
203
|
}
|
205
|
}
|
|
@@ -368,6 +370,10 @@ $(document).on("change","#supplierId",function(){ // 不维护供应商 |
|
@@ -368,6 +370,10 @@ $(document).on("change","#supplierId",function(){ // 不维护供应商 |
368
|
$("#sellType").val(-1).trigger("change");
|
370
|
$("#sellType").val(-1).trigger("change");
|
369
|
});
|
371
|
});
|
370
|
|
372
|
|
|
|
373
|
+$(document).on("change","#sellType",function(){
|
|
|
374
|
+ tabTree.isfeeze=false;
|
|
|
375
|
+ tabTree.init([{id:"",sortName:""},{id:"",sortName:""},{id:"",sortName:""},{id:"",sortName:""}]);
|
|
|
376
|
+});
|
371
|
|
377
|
|
372
|
$(document).on("change",":radio[name=gender]",function(){
|
378
|
$(document).on("change",":radio[name=gender]",function(){
|
373
|
Bll.productNameArr[1]=["男","女","通用"][+$(this).val()-1];
|
379
|
Bll.productNameArr[1]=["男","女","通用"][+$(this).val()-1];
|