Authored by leo

Update: 店铺商品分类中支持物理类目筛选,列表展示可用库存

... ... @@ -47,7 +47,10 @@ module.exports={
{name:"categoryId",type:"Number"},
{name:"productSKN",type:"Number"},
{name:"productName",type:"String"},
{name:"page",type:"Number"}
{name:"page",type:"Number"},
{name:"maxSortId",type:"Number"},
{name:"middleSortId",type:"Number"},
{name:"smallSortId",type:"Number"}
]
},
... ... @@ -58,7 +61,10 @@ module.exports={
{name:"categoryId",type:"Number"},
{name:"productSKN",type:"Number"},
{name:"productName",type:"String"},
{name:"page",type:"Number"}
{name:"page",type:"Number"},
{name:"maxSortId",type:"Number"},
{name:"middleSortId",type:"Number"},
{name:"smallSortId",type:"Number"}
]
},
... ...
... ... @@ -20,6 +20,7 @@
<div class="filter form-inline" style="margin-bottom: 20px">
<input id="productSKN" type="text" class="form-control" placeholder="SKN" />&nbsp;&nbsp;
<input id="productName" type="text" class="form-control" placeholder="商品名称" />&nbsp;&nbsp;
<div id="sortTree" class="form-control height40" style="border: 0px; padding: 0px;"></div>
<a href="javascript:" class="btn btn-info filter-btn">查询</a>
<a href="javascript:" class="btn btn-danger cancelAll" style="float: right;display: none">全部取消</a>
</div>
... ...
... ... @@ -12,7 +12,10 @@ var g1 = new common.grid({
return {
categoryId: curCategoryId,
productSKN: common.util.__input("productSKN"),
productName: common.util.__input("productName")
productName: common.util.__input("productName"),
maxSortId: tabTree.selected[0] ? tabTree.selected[0].id : "",
middleSortId: tabTree.selected[1] ? tabTree.selected[1].id : "",
smallSortId: tabTree.selected[2] ? tabTree.selected[2].id : ""
};
},
columns: [
... ... @@ -30,6 +33,7 @@ var g1 = new common.grid({
{display: "SKN", name: "productSKN"},
{display: "商品名称", name: "productName"},
{display: "销售价(元)", name: "salePrice"},
{display: "可售库存", name: "storage"},
{display: "分类", name: "productSort"},
{display: "商品分类", render: function (item) {
var name = item.categoryName ? item.categoryName : '未分类';
... ... @@ -64,7 +68,10 @@ var g2 = new common.grid({
return {
categoryId: curCategoryId,
productSKN: common.util.__input("productSKN"),
productName: common.util.__input("productName")
productName: common.util.__input("productName"),
maxSortId: tabTree.selected[0] ? tabTree.selected[0].id : "",
middleSortId: tabTree.selected[1] ? tabTree.selected[1].id : "",
smallSortId: tabTree.selected[2] ? tabTree.selected[2].id : ""
};
},
columns: [
... ... @@ -83,6 +90,7 @@ var g2 = new common.grid({
{display: "SKN", name: "productSKN"},
{display: "商品名称", name: "productName"},
{display: "销售价(元)", name: "salePrice"},
{display: "可售库存", name: "storage"},
{display: "分类", name: "productSort"},
{display: "商品分类", render: function (item) {
var name = item.categoryName ? item.categoryName : '未分类';
... ... @@ -107,6 +115,9 @@ var g2 = new common.grid({
}
});
var tabTree = new common.tabTree("#sortTree");
tabTree.init();
var Bll = {
init: function () {
this.getParamsInUrl();
... ...