...
|
...
|
@@ -14,7 +14,7 @@ var g1 = new common.grid({ |
|
|
shopId: curShopId,
|
|
|
categoryId: curCategoryId,
|
|
|
productSKN: common.util.__input("productSKN"),
|
|
|
factoryCode: common.util.__input("factoryCode")
|
|
|
productName: common.util.__input("productName")
|
|
|
};
|
|
|
},
|
|
|
columns: [
|
...
|
...
|
@@ -22,11 +22,10 @@ var g1 = new common.grid({ |
|
|
return item.productPic ? '<img src="'+item.productPic+'?imageView/0/w/40/h/60">' : '';
|
|
|
}},
|
|
|
{display: "SKN", name: "productSKN"},
|
|
|
{display: "厂家编号", name: "factoryCode"},
|
|
|
{display: "商品名称", name: "productName"},
|
|
|
{display: "销售价(元)", name: "salePrice"},
|
|
|
{display: "分类", name: "productSort"},
|
|
|
{display: "销售类目", render: function (item) {
|
|
|
{display: "商品分类", render: function (item) {
|
|
|
var name = item.categoryName ? item.categoryName : '未分类';
|
|
|
var categoryList = '<span class="name" style="display: block; text-align: center">'+ name +'</span>';
|
|
|
if(item.saleCategory && item.saleCategory.length > 1){
|
...
|
...
|
@@ -61,7 +60,7 @@ var g2 = new common.grid({ |
|
|
shopId: curShopId,
|
|
|
categoryId: curCategoryId,
|
|
|
productSKN: common.util.__input("productSKN"),
|
|
|
factoryCode: common.util.__input("factoryCode")
|
|
|
productName: common.util.__input("productName")
|
|
|
};
|
|
|
},
|
|
|
columns: [
|
...
|
...
|
@@ -69,11 +68,10 @@ var g2 = new common.grid({ |
|
|
return item.productPic ? '<img src="'+item.productPic+'?imageView/0/w/40/h/60">' : '';
|
|
|
}},
|
|
|
{display: "SKN", name: "productSKN"},
|
|
|
{display: "厂家编号", name: "factoryCode"},
|
|
|
{display: "商品名称", name: "productName"},
|
|
|
{display: "销售价(元)", name: "salePrice"},
|
|
|
{display: "分类", name: "productSort"},
|
|
|
{display: "销售类目", render: function (item) {
|
|
|
{display: "商品分类", render: function (item) {
|
|
|
var name = item.categoryName ? item.categoryName : '未分类';
|
|
|
var categoryList = '<span class="name" style="display: block; text-align: center">'+ name +'</span>';
|
|
|
if(item.saleCategory && item.saleCategory.length > 1){
|
...
|
...
|
@@ -192,7 +190,7 @@ $(document).on("click", ".cancelAll", function () { |
|
|
);
|
|
|
});
|
|
|
|
|
|
//查看更多销售类目
|
|
|
//查看更多商品分类
|
|
|
$(document).on("click", ".moreCategory", function () {
|
|
|
var num = $(this).data('num');
|
|
|
if($(this).hasClass('open')){
|
...
|
...
|
|