|
@@ -10,13 +10,24 @@ webpackJsonp([16],[ |
|
@@ -10,13 +10,24 @@ webpackJsonp([16],[ |
10
|
selectedNum = 0,
|
10
|
selectedNum = 0,
|
11
|
curTab = 0;
|
11
|
curTab = 0;
|
12
|
|
12
|
|
|
|
13
|
+ var ENUM = {
|
|
|
14
|
+ status: {
|
|
|
15
|
+ '0': '未上架',
|
|
|
16
|
+ '1': '已上架'
|
|
|
17
|
+ }
|
|
|
18
|
+ }
|
|
|
19
|
+
|
13
|
var g1 = new common.grid({
|
20
|
var g1 = new common.grid({
|
14
|
el: '#productTable',
|
21
|
el: '#productTable',
|
15
|
parms: function() {
|
22
|
parms: function() {
|
16
|
return {
|
23
|
return {
|
17
|
categoryId: curCategoryId,
|
24
|
categoryId: curCategoryId,
|
18
|
productSKN: common.util.__input("productSKN"),
|
25
|
productSKN: common.util.__input("productSKN"),
|
19
|
- productName: common.util.__input("productName")
|
26
|
+ productName: common.util.__input("productName"),
|
|
|
27
|
+ maxSortId: tabTree.selected[0] ? tabTree.selected[0].id : "",
|
|
|
28
|
+ middleSortId: tabTree.selected[1] ? tabTree.selected[1].id : "",
|
|
|
29
|
+ smallSortId: tabTree.selected[2] ? tabTree.selected[2].id : "",
|
|
|
30
|
+ status: common.util.__input("status-select")
|
20
|
};
|
31
|
};
|
21
|
},
|
32
|
},
|
22
|
columns: [
|
33
|
columns: [
|
|
@@ -34,6 +45,10 @@ webpackJsonp([16],[ |
|
@@ -34,6 +45,10 @@ webpackJsonp([16],[ |
34
|
{display: "SKN", name: "productSKN"},
|
45
|
{display: "SKN", name: "productSKN"},
|
35
|
{display: "商品名称", name: "productName"},
|
46
|
{display: "商品名称", name: "productName"},
|
36
|
{display: "销售价(元)", name: "salePrice"},
|
47
|
{display: "销售价(元)", name: "salePrice"},
|
|
|
48
|
+ {display: "可售库存", name: "storage"},
|
|
|
49
|
+ {display: "上下架状态", render: function(item) {
|
|
|
50
|
+ return ENUM.status[item.status];
|
|
|
51
|
+ }},
|
37
|
{display: "分类", name: "productSort"},
|
52
|
{display: "分类", name: "productSort"},
|
38
|
{display: "商品分类", render: function (item) {
|
53
|
{display: "商品分类", render: function (item) {
|
39
|
var name = item.categoryName ? item.categoryName : '未分类';
|
54
|
var name = item.categoryName ? item.categoryName : '未分类';
|
|
@@ -68,7 +83,11 @@ webpackJsonp([16],[ |
|
@@ -68,7 +83,11 @@ webpackJsonp([16],[ |
68
|
return {
|
83
|
return {
|
69
|
categoryId: curCategoryId,
|
84
|
categoryId: curCategoryId,
|
70
|
productSKN: common.util.__input("productSKN"),
|
85
|
productSKN: common.util.__input("productSKN"),
|
71
|
- productName: common.util.__input("productName")
|
86
|
+ productName: common.util.__input("productName"),
|
|
|
87
|
+ maxSortId: tabTree.selected[0] ? tabTree.selected[0].id : "",
|
|
|
88
|
+ middleSortId: tabTree.selected[1] ? tabTree.selected[1].id : "",
|
|
|
89
|
+ smallSortId: tabTree.selected[2] ? tabTree.selected[2].id : "",
|
|
|
90
|
+ status: common.util.__input("status-select")
|
72
|
};
|
91
|
};
|
73
|
},
|
92
|
},
|
74
|
columns: [
|
93
|
columns: [
|
|
@@ -87,6 +106,10 @@ webpackJsonp([16],[ |
|
@@ -87,6 +106,10 @@ webpackJsonp([16],[ |
87
|
{display: "SKN", name: "productSKN"},
|
106
|
{display: "SKN", name: "productSKN"},
|
88
|
{display: "商品名称", name: "productName"},
|
107
|
{display: "商品名称", name: "productName"},
|
89
|
{display: "销售价(元)", name: "salePrice"},
|
108
|
{display: "销售价(元)", name: "salePrice"},
|
|
|
109
|
+ {display: "可售库存", name: "storage"},
|
|
|
110
|
+ {display: "上下架状态", render: function(item) {
|
|
|
111
|
+ return ENUM.status[item.status];
|
|
|
112
|
+ }},
|
90
|
{display: "分类", name: "productSort"},
|
113
|
{display: "分类", name: "productSort"},
|
91
|
{display: "商品分类", render: function (item) {
|
114
|
{display: "商品分类", render: function (item) {
|
92
|
var name = item.categoryName ? item.categoryName : '未分类';
|
115
|
var name = item.categoryName ? item.categoryName : '未分类';
|
|
@@ -111,6 +134,9 @@ webpackJsonp([16],[ |
|
@@ -111,6 +134,9 @@ webpackJsonp([16],[ |
111
|
}
|
134
|
}
|
112
|
});
|
135
|
});
|
113
|
|
136
|
|
|
|
137
|
+ var tabTree = new common.tabTree("#sortTree");
|
|
|
138
|
+ tabTree.init();
|
|
|
139
|
+
|
114
|
var Bll = {
|
140
|
var Bll = {
|
115
|
init: function () {
|
141
|
init: function () {
|
116
|
this.getParamsInUrl();
|
142
|
this.getParamsInUrl();
|