Merge branch 'hotfix/shopbetter2' into grey
# Conflicts: # code/static/js.jquery/module/goods/netsale/Index.js
Showing
8 changed files
with
51 additions
and
27 deletions
@@ -99,14 +99,14 @@ | @@ -99,14 +99,14 @@ | ||
99 | </select> | 99 | </select> |
100 | </div> | 100 | </div> |
101 | 101 | ||
102 | - <label class="col-sm-1 control-label">管理店铺 <span class="red">*</span></label> | 102 | + <label class="col-sm-2 control-label">管理店铺 <span class="red">*</span></label> |
103 | <div class="col-sm-2"> | 103 | <div class="col-sm-2"> |
104 | <select id="shopId" class="form-control" required placeholder="管理店铺"> | 104 | <select id="shopId" class="form-control" required placeholder="管理店铺"> |
105 | <option value="[[shopId||'-1']]">[[shopName||'店铺']]</option> | 105 | <option value="[[shopId||'-1']]">[[shopName||'店铺']]</option> |
106 | </select> | 106 | </select> |
107 | </div> | 107 | </div> |
108 | 108 | ||
109 | - <label class="col-sm-1 control-label">JIT供应商</label> | 109 | + <label class="col-sm-2 control-label">JIT供应商</label> |
110 | <div class="col-sm-2"> | 110 | <div class="col-sm-2"> |
111 | <select id="supplierId" class="form-control"> | 111 | <select id="supplierId" class="form-control"> |
112 | <option value="[[supplierId||'-1']]">[[supplierName||'供应商']]</option> | 112 | <option value="[[supplierId||'-1']]">[[supplierName||'供应商']]</option> |
@@ -117,7 +117,7 @@ | @@ -117,7 +117,7 @@ | ||
117 | </div> | 117 | </div> |
118 | <div class="form-group"> | 118 | <div class="form-group"> |
119 | <label class="col-sm-2 control-label">分类 <span class="red">*</span></label> | 119 | <label class="col-sm-2 control-label">分类 <span class="red">*</span></label> |
120 | - <div class="col-sm-5"> | 120 | + <div class="col-sm-4"> |
121 | <div id="tree" style="width: 100%"></div> | 121 | <div id="tree" style="width: 100%"></div> |
122 | </div> | 122 | </div> |
123 | <span class="showPlatform" style="display: none"> | 123 | <span class="showPlatform" style="display: none"> |
@@ -127,16 +127,16 @@ | @@ -127,16 +127,16 @@ | ||
127 | <input type="hidden" id="appType" name="appType" value="[[appType||'0']]" for="checkbox" /> | 127 | <input type="hidden" id="appType" name="appType" value="[[appType||'0']]" for="checkbox" /> |
128 | </div> | 128 | </div> |
129 | </span> | 129 | </span> |
130 | + <label class="col-sm-1 control-label">厂家编号 <span class="red">*</span></label> | ||
131 | + <div class="col-sm-2"> | ||
132 | + <input type="text" id="factoryCode" placeholder="厂家编号" value="[[factoryCode]]" class="form-control" required/> | ||
133 | + </div> | ||
130 | </div> | 134 | </div> |
131 | <div class="form-group"> | 135 | <div class="form-group"> |
132 | <label class="col-sm-2 control-label">商品名称 <span class="red">*</span></label> | 136 | <label class="col-sm-2 control-label">商品名称 <span class="red">*</span></label> |
133 | - <div class="col-sm-3"> | 137 | + <div class="col-sm-10"> |
134 | <input type="text" id="productName" class="form-control" value="[[productName]]" placeholder="品牌英文名+性别+最小类目" required/> | 138 | <input type="text" id="productName" class="form-control" value="[[productName]]" placeholder="品牌英文名+性别+最小类目" required/> |
135 | </div> | 139 | </div> |
136 | - <label class="col-sm-1 control-label">厂家编号 <span class="red">*</span></label> | ||
137 | - <div class="col-sm-1"> | ||
138 | - <input type="text" id="factoryCode" placeholder="厂家编号" value="[[factoryCode]]" class="form-control" required/> | ||
139 | - </div> | ||
140 | </div> | 140 | </div> |
141 | <div class="form-group"> | 141 | <div class="form-group"> |
142 | <label class="col-sm-2 control-label">货品年 <span class="red">*</span></label> | 142 | <label class="col-sm-2 control-label">货品年 <span class="red">*</span></label> |
@@ -169,7 +169,7 @@ | @@ -169,7 +169,7 @@ | ||
169 | </div> | 169 | </div> |
170 | <div class="form-group"> | 170 | <div class="form-group"> |
171 | <label class="col-sm-2 control-label">商品话题</label> | 171 | <label class="col-sm-2 control-label">商品话题</label> |
172 | - <div class="col-sm-5"> | 172 | + <div class="col-sm-10"> |
173 | <input type="text" id="productTag" class="form-control" value="[[productTag]]" /> | 173 | <input type="text" id="productTag" class="form-control" value="[[productTag]]" /> |
174 | </div> | 174 | </div> |
175 | </div> | 175 | </div> |
@@ -18,8 +18,8 @@ | @@ -18,8 +18,8 @@ | ||
18 | <%include './__partail/fenmian'%> | 18 | <%include './__partail/fenmian'%> |
19 | 19 | ||
20 | <%include './__partail/goods_description'%> | 20 | <%include './__partail/goods_description'%> |
21 | + <%include './__partail/goods_params'%> | ||
21 | <%include './__partail/size_info'%> | 22 | <%include './__partail/size_info'%> |
22 | - <%include './__partail/goods_params'%> | ||
23 | <%include './__partail/goods_sort'%> | 23 | <%include './__partail/goods_sort'%> |
24 | </div> | 24 | </div> |
25 | 25 |
@@ -46,15 +46,15 @@ | @@ -46,15 +46,15 @@ | ||
46 | <div class="col-sm-3">商品类型:[[attribute]]</div> | 46 | <div class="col-sm-3">商品类型:[[attribute]]</div> |
47 | </div> | 47 | </div> |
48 | <div class="form-group"> | 48 | <div class="form-group"> |
49 | - | ||
50 | - <div class="col-sm-12"> | ||
51 | - <label>商品名称<i class="red">*</i>:</label> | 49 | + <label class="col-sm-1">商品名称<i class="red">*</i>:</label> |
50 | + <div class="col-sm-11"> | ||
52 | [[if renderType=='edit']] | 51 | [[if renderType=='edit']] |
53 | - <input id="productName" style="width: 280px;display:inline-block;" class="form-control" placeholder="基础商品名称" type="text" value="[[productName]]" required maxlength="100"> | 52 | + <input id="productName" class="form-control" placeholder="基础商品名称" type="text" value="[[productName]]" required maxlength="100"> |
54 | [[else]] | 53 | [[else]] |
55 | <span>[[productName]]</span> | 54 | <span>[[productName]]</span> |
56 | [[/if]] | 55 | [[/if]] |
57 | - </div> | 56 | + </div> |
57 | + | ||
58 | [[if renderType=='edit']] | 58 | [[if renderType=='edit']] |
59 | <div class="col-sm-12" style="color: red;padding: 0 0 0 85px;">建议名称:【品牌英文+性别+图案纹理+版型+风格+三级类目+商家款号+(款型)】,如此可增加商品在搜索页的展示。</div> | 59 | <div class="col-sm-12" style="color: red;padding: 0 0 0 85px;">建议名称:【品牌英文+性别+图案纹理+版型+风格+三级类目+商家款号+(款型)】,如此可增加商品在搜索页的展示。</div> |
60 | [[/if]] | 60 | [[/if]] |
@@ -94,11 +94,11 @@ | @@ -94,11 +94,11 @@ | ||
94 | <div class="form-group"> | 94 | <div class="form-group"> |
95 | <label class="col-sm-1 control-label">商品短评:</label> | 95 | <label class="col-sm-1 control-label">商品短评:</label> |
96 | [[if renderType=='edit']] | 96 | [[if renderType=='edit']] |
97 | - <div class="col-sm-9"> | ||
98 | - <input id="phrase" style="display:inline-block;width: 280px;" class="form-control" placeholder="商品短评" type="text" value="[[phrase]]"> | 97 | + <div class="col-sm-11"> |
98 | + <input id="phrase" class="form-control" placeholder="商品短评" type="text" value="[[phrase]]"> | ||
99 | </div> | 99 | </div> |
100 | [[else]] | 100 | [[else]] |
101 | - <div class="col-sm-9"> | 101 | + <div class="col-sm-11"> |
102 | [[phrase]] | 102 | [[phrase]] |
103 | </div> | 103 | </div> |
104 | [[/if]] | 104 | [[/if]] |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | <h2 class="panel-title">商品描述</h2> | 8 | <h2 class="panel-title">商品描述</h2> |
9 | </div> | 9 | </div> |
10 | <div id="descriptionerWrap" class="panel-body nopadding"> | 10 | <div id="descriptionerWrap" class="panel-body nopadding"> |
11 | - <script id="edit-descriptioner" type="text/plain" style="width:100%;height:500px;"></script> | 11 | + <script id="edit-descriptioner" type="text/plain" style="width:100%;"></script> |
12 | <input id="productDesc" type="hidden" required placeholder="商品描述"> | 12 | <input id="productDesc" type="hidden" required placeholder="商品描述"> |
13 | </div> | 13 | </div> |
14 | <div class="panel-footer"> | 14 | <div class="panel-footer"> |
@@ -43,7 +43,7 @@ | @@ -43,7 +43,7 @@ | ||
43 | <h2 class="panel-title">商品描述</h2> | 43 | <h2 class="panel-title">商品描述</h2> |
44 | </div> | 44 | </div> |
45 | <div id="descriptionerWrap" class="panel-body nopadding"> | 45 | <div id="descriptionerWrap" class="panel-body nopadding"> |
46 | - <script id="edit-descriptioner" type="text/plain" style="width:100%;height:500px;"></script> | 46 | + <script id="edit-descriptioner" type="text/plain" style="width:100%;"></script> |
47 | <input id="productDesc" type="hidden" required placeholder="商品描述"> | 47 | <input id="productDesc" type="hidden" required placeholder="商品描述"> |
48 | </div> | 48 | </div> |
49 | <div class="panel-footer"> | 49 | <div class="panel-footer"> |
@@ -3714,7 +3714,7 @@ var jQuery = require('jquery'); | @@ -3714,7 +3714,7 @@ var jQuery = require('jquery'); | ||
3714 | themePath: me.options.UMEDITOR_HOME_URL + 'themes/', | 3714 | themePath: me.options.UMEDITOR_HOME_URL + 'themes/', |
3715 | allHtmlEnabled: false, | 3715 | allHtmlEnabled: false, |
3716 | autoSyncData: true, | 3716 | autoSyncData: true, |
3717 | - autoHeightEnabled: true, | 3717 | + autoHeightEnabled: false, |
3718 | excludePlugins: '' | 3718 | excludePlugins: '' |
3719 | }); | 3719 | }); |
3720 | me.plugins = {}; | 3720 | me.plugins = {}; |
@@ -322,7 +322,26 @@ var g = new common.grid({ | @@ -322,7 +322,26 @@ var g = new common.grid({ | ||
322 | return html.join(''); | 322 | return html.join(''); |
323 | } | 323 | } |
324 | }, | 324 | }, |
325 | - | 325 | + { |
326 | + display: "是否BLK", | ||
327 | + render: function(item) { | ||
328 | + if (item.appType === 0) { | ||
329 | + return "<p>有货</p>"; | ||
330 | + } else if (item.appType === 1) { | ||
331 | + return "<p>BLK</p>"; | ||
332 | + } | ||
333 | + } | ||
334 | + }, | ||
335 | + { | ||
336 | + display: "是否JIT", | ||
337 | + render: function(item) { | ||
338 | + if (item.isJit == "Y") { | ||
339 | + return "<p>是</p>"; | ||
340 | + } else if (item.isJit == "N") { | ||
341 | + return "<p>否</p>"; | ||
342 | + } | ||
343 | + } | ||
344 | + }, | ||
326 | { | 345 | { |
327 | display: "奥莱", | 346 | display: "奥莱", |
328 | render: function(item) { | 347 | render: function(item) { |
@@ -37,6 +37,7 @@ var ENUM = { | @@ -37,6 +37,7 @@ var ENUM = { | ||
37 | '2': 0, | 37 | '2': 0, |
38 | '3': 0, | 38 | '3': 0, |
39 | '4': 0, | 39 | '4': 0, |
40 | + '5': 0, | ||
40 | 'all': 0 | 41 | 'all': 0 |
41 | }, | 42 | }, |
42 | isVIP: { | 43 | isVIP: { |
@@ -69,7 +70,7 @@ var editPostion = '', isInfoMiss, sortFlag; | @@ -69,7 +70,7 @@ var editPostion = '', isInfoMiss, sortFlag; | ||
69 | 70 | ||
70 | var t = new common.tab2({ | 71 | var t = new common.tab2({ |
71 | el: "#basicTab", | 72 | el: "#basicTab", |
72 | - active: 4, | 73 | + active: 5, |
73 | click: function () { | 74 | click: function () { |
74 | var columnname = t.options.columns[t.options.active].name; | 75 | var columnname = t.options.columns[t.options.active].name; |
75 | g.options.columns[11].hidden = true; | 76 | g.options.columns[11].hidden = true; |
@@ -82,7 +83,7 @@ var t = new common.tab2({ | @@ -82,7 +83,7 @@ var t = new common.tab2({ | ||
82 | g.options.columns[8].hidden = false; | 83 | g.options.columns[8].hidden = false; |
83 | } | 84 | } |
84 | 85 | ||
85 | - if (columnname == 1 || columnname == 2 || columnname == 3) { | 86 | + if (columnname == 1 || columnname == 2 || columnname == 3 || columnname == 4) { |
86 | sortFlag = 2; | 87 | sortFlag = 2; |
87 | } else { | 88 | } else { |
88 | sortFlag = 1; | 89 | sortFlag = 1; |
@@ -96,8 +97,8 @@ var t = new common.tab2({ | @@ -96,8 +97,8 @@ var t = new common.tab2({ | ||
96 | }, | 97 | }, |
97 | columns: [{ | 98 | columns: [{ |
98 | name: "0", | 99 | name: "0", |
99 | - value: '8', | ||
100 | - display: "上架前({1})" | 100 | + value: '8,3,2', |
101 | + display: "新品待上架({1})" | ||
101 | }, { | 102 | }, { |
102 | name: "1", | 103 | name: "1", |
103 | value: '1', | 104 | value: '1', |
@@ -110,7 +111,11 @@ var t = new common.tab2({ | @@ -110,7 +111,11 @@ var t = new common.tab2({ | ||
110 | name: "3", | 111 | name: "3", |
111 | value: '1', | 112 | value: '1', |
112 | display: "上架后信息缺失({4})" | 113 | display: "上架后信息缺失({4})" |
113 | - }, { | 114 | + }, { |
115 | + name: "4", | ||
116 | + value: '0', | ||
117 | + display: "已下架({5})" | ||
118 | + },{ | ||
114 | name: "all", | 119 | name: "all", |
115 | value: 'all', | 120 | value: 'all', |
116 | display: "全部商品({all})" | 121 | display: "全部商品({all})" |
-
Please register or login to post a comment