Authored by 马力

经营模式

... ... @@ -174,7 +174,8 @@ module.exports={
{name: "brandId", type: "Number"},
{name: "sortId", type: "Number"},
{name: "supplierId", type: "Number"},
{name: "shopId", type: "Number"}
{name: "shopId", type: "Number"},
{name: "sellType", type: "Number"}
]
},
queryAllMaxSortList:{
... ...
... ... @@ -178,7 +178,7 @@
<div class="panel-col" style="position: relative;">
<input id="baseProduct" name="file" data-type="baseProduct" type="file" style="cursor: pointer; height: 37px; top: 8px;">
</div>
<div class="panel-col" style="line-height: 40px;position: relative;left: -60px;">
<div class="panel-col" style="line-height: 40px;position: relative;left: -60px;width: 182px;">
<span class="red">必须输入品牌、店铺、经营模式</span>
</div>
</td>
... ...
... ... @@ -92,7 +92,7 @@ var SORTDATA={
{id:RESPONSEDATA.sortId,sortName:RESPONSEDATA.sortName}
],
otherParam:function(){
return {brandId:$("#brandId").val(),supplierId:common.util.__input("supplierId"),shopId:common.util.__input("shopId")}
return {brandId:$("#brandId").val(),supplierId:common.util.__input("supplierId"),shopId:common.util.__input("shopId"),sellType:common.util.__input("sellType")}
},
complete:function(data,bool){
if(!bool){
... ... @@ -198,6 +198,8 @@ var g=new common.grid({
}else{
if(item.isNew){
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>");
}else if(RESPONSEDATA.sellType == 3 || RESPONSEDATA.isJit == 'Y'){ // JIT上架后的商品也可以修改厂家颜色
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>");
}else{
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>");
}
... ... @@ -368,6 +370,10 @@ $(document).on("change","#supplierId",function(){ // 不维护供应商
$("#sellType").val(-1).trigger("change");
});
$(document).on("change","#sellType",function(){
tabTree.isfeeze=false;
tabTree.init([{id:"",sortName:""},{id:"",sortName:""},{id:"",sortName:""},{id:"",sortName:""}]);
});
$(document).on("change",":radio[name=gender]",function(){
Bll.productNameArr[1]=["男","女","通用"][+$(this).val()-1];
... ...
... ... @@ -688,7 +688,7 @@ var shelveTable = new common.grid({
}
}
}, {
display: '<div class="subhhead"><span>SKU</span><span>尺码</span><span>库存</span><span>SKU上架操作</span><span>SKU上架操作</span></div>',
display: '<div class="subhhead"><span>SKU</span><span>尺码</span><span>库存</span><span>SKU状态</span><span>SKU上架操作</span></div>',
render: function (item) {
return common.util.__template2($("#template2").html(), item)
}
... ...