Showing
6 changed files
with
31 additions
and
18 deletions
@@ -152,7 +152,7 @@ var g = new common.grid({ | @@ -152,7 +152,7 @@ var g = new common.grid({ | ||
152 | render: function(item) { | 152 | render: function(item) { |
153 | return '<p><strong>吊牌价:</strong>' + item.retailPrice + '</p>' + | 153 | return '<p><strong>吊牌价:</strong>' + item.retailPrice + '</p>' + |
154 | '<p><strong>销售价:</strong>' + item.salesPrice + '</p>' + | 154 | '<p><strong>销售价:</strong>' + item.salesPrice + '</p>' + |
155 | - '<p><strong>是否VIP:</strong></p>' + | 155 | + '<p><strong>是否VIP:</strong></p>' + item.isVIP + '</p>' + |
156 | '<p style="color: #ccc;"><strong>yoho币:</strong>' + item.returnCoin + '</p>'; | 156 | '<p style="color: #ccc;"><strong>yoho币:</strong>' + item.returnCoin + '</p>'; |
157 | } | 157 | } |
158 | }, { | 158 | }, { |
@@ -174,10 +174,10 @@ var g = new common.grid({ | @@ -174,10 +174,10 @@ var g = new common.grid({ | ||
174 | display: '搜索/标签', | 174 | display: '搜索/标签', |
175 | hidden: true, | 175 | hidden: true, |
176 | render: function(item) { | 176 | render: function(item) { |
177 | - return '关键词:' + '<br>' + | 177 | + return '关键词:' + item.searchAndLabel + '<br>' + |
178 | '风格:' + item.style + '<br>' + | 178 | '风格:' + item.style + '<br>' + |
179 | - '纹理:' + item.style + '<br>' + | ||
180 | - '工艺:' + item.style + '<br>'; | 179 | + '纹理:' + item.pattern + '<br>' + |
180 | + '工艺:' + item.makeCrafts + '<br>'; | ||
181 | } | 181 | } |
182 | }, { | 182 | }, { |
183 | display: '操作信息', | 183 | display: '操作信息', |
@@ -41,7 +41,9 @@ var basicInfohtml = '', | @@ -41,7 +41,9 @@ var basicInfohtml = '', | ||
41 | 1: '普通', | 41 | 1: '普通', |
42 | 2: '赠品' | 42 | 2: '赠品' |
43 | } | 43 | } |
44 | - }; | 44 | + }, |
45 | + basicInfo = NETSALEDATA.baseProductInfo.baseProduct || '', | ||
46 | + productExtBo = NETSALEDATA.productExtBo || ''; | ||
45 | 47 | ||
46 | /* | 48 | /* |
47 | * 基本信息value值转换 | 49 | * 基本信息value值转换 |
@@ -56,7 +58,7 @@ function convert(basicInfo, obj) { | @@ -56,7 +58,7 @@ function convert(basicInfo, obj) { | ||
56 | return basicInfo; | 58 | return basicInfo; |
57 | } | 59 | } |
58 | 60 | ||
59 | -var basicInfoData = convert(NETSALEDATA.baseProductInfo.baseProduct, convertObj); | 61 | +var basicInfoData = convert(basicInfo, convertObj); |
60 | 62 | ||
61 | //基本信息 | 63 | //基本信息 |
62 | basicInfoData.renderType = $('.contentpanel').data('type'); | 64 | basicInfoData.renderType = $('.contentpanel').data('type'); |
@@ -69,9 +71,10 @@ $('#goods-table').html(common.util.__template2($('#goodsList').html(), { | @@ -69,9 +71,10 @@ $('#goods-table').html(common.util.__template2($('#goodsList').html(), { | ||
69 | })); | 71 | })); |
70 | 72 | ||
71 | //上架必填 | 73 | //上架必填 |
72 | -NETSALEDATA.productExtBo.renderType = $('.contentpanel').data('type'); | ||
73 | -NETSALEDATA.productExtBo.sellChannels = NETSALEDATA.productExtBo.sellChannels.replace(/,/g, "|"); | ||
74 | -$('#product-ext').html(common.util.__template2($('#productExtBoTemp').html(), NETSALEDATA.productExtBo)); | 74 | +productExtBo.renderType = $('.contentpanel').data('type'); |
75 | +productExtBo.sellChannels = productExtBo.sellChannels ? productExtBo.sellChannels.replace(/,/g, "|") : ''; | ||
76 | +$('#product-ext').html(common.util.__template2($('#productExtBoTemp').html(), productExtBo)); | ||
77 | + | ||
75 | 78 | ||
76 | 79 | ||
77 | if ($('.contentpanel').data('type') == 'info') { | 80 | if ($('.contentpanel').data('type') == 'info') { |
@@ -36,6 +36,10 @@ common.util.__ajax({ | @@ -36,6 +36,10 @@ common.util.__ajax({ | ||
36 | })); | 36 | })); |
37 | }; | 37 | }; |
38 | e.init(); | 38 | e.init(); |
39 | + if ($('.contentpanel').data('type') == 'info') { | ||
40 | + $('.brand-list').find('input').attr('disabled', true); | ||
41 | + } | ||
42 | + | ||
39 | }, true); | 43 | }, true); |
40 | 44 | ||
41 | $.each(NETSALEDATA.brandRelationList, function(index, value) { | 45 | $.each(NETSALEDATA.brandRelationList, function(index, value) { |
@@ -104,16 +104,16 @@ | @@ -104,16 +104,16 @@ | ||
104 | </div> | 104 | </div> |
105 | <div class="panel-col"> | 105 | <div class="panel-col"> |
106 | <select name="productStatus" id="productStatus" tabindex="-1" title="" class="form-control height40"> | 106 | <select name="productStatus" id="productStatus" tabindex="-1" title="" class="form-control height40"> |
107 | - <option value="-1">状态</option> | ||
108 | - <option value="1">待上架</option> | ||
109 | - <option value="0">待审核</option> | 107 | + <option value="">状态</option> |
108 | + <option value="-1">待上架</option> | ||
109 | + <option value="2">待审核</option> | ||
110 | <option value="3">驳回</option> | 110 | <option value="3">驳回</option> |
111 | - <option value="0">通过</option> | 111 | + <option value="4">通过</option> |
112 | <option value="1">再次上架待审核</option> | 112 | <option value="1">再次上架待审核</option> |
113 | <option value="0">再次上架驳回</option> | 113 | <option value="0">再次上架驳回</option> |
114 | - <option value="1">再次上架通过</option> | ||
115 | - <option value="0">已上架</option> | ||
116 | - <option value="0">已下架</option> | 114 | + <option value="5">再次上架通过</option> |
115 | + <option value="6">已上架</option> | ||
116 | + <option value="7">已下架</option> | ||
117 | </select> | 117 | </select> |
118 | </div> | 118 | </div> |
119 | 119 |
@@ -24,12 +24,19 @@ | @@ -24,12 +24,19 @@ | ||
24 | <div class="col-sm-3">店铺:[[shopName]]</div> | 24 | <div class="col-sm-3">店铺:[[shopName]]</div> |
25 | <div class="col-sm-3">品牌:[[brandName]]</div> | 25 | <div class="col-sm-3">品牌:[[brandName]]</div> |
26 | <div class="col-sm-3">供应商:[[supplierName]]</div> | 26 | <div class="col-sm-3">供应商:[[supplierName]]</div> |
27 | + [[if renderType=='edit']] | ||
27 | <div class="col-sm-3">厂家编号:[[factoryCode]]</div> | 28 | <div class="col-sm-3">厂家编号:[[factoryCode]]</div> |
29 | + [[else]] | ||
30 | + <div class="col-sm-3"><img src="[[productImageUrl]]" alt=""></div> | ||
31 | + [[/if]] | ||
28 | </div> | 32 | </div> |
29 | <div class="form-group"> | 33 | <div class="form-group"> |
30 | <div class="col-sm-3">品类:</div> | 34 | <div class="col-sm-3">品类:</div> |
31 | <div class="col-sm-3">货品年:[[goodsYears]]</div> | 35 | <div class="col-sm-3">货品年:[[goodsYears]]</div> |
32 | <div class="col-sm-3">货品季:[[goodsSeason]]</div> | 36 | <div class="col-sm-3">货品季:[[goodsSeason]]</div> |
37 | + [[if renderType=='info']] | ||
38 | + <div class="col-sm-3">厂家编号:[[factoryCode]]</div> | ||
39 | + [[/if]] | ||
33 | </div> | 40 | </div> |
34 | <div class="form-group"> | 41 | <div class="form-group"> |
35 | <div class="col-sm-3">SKN:[[productSkn]]</div> | 42 | <div class="col-sm-3">SKN:[[productSkn]]</div> |
@@ -4,12 +4,11 @@ | @@ -4,12 +4,11 @@ | ||
4 | <div class="panel-btns" style="display: none;"> | 4 | <div class="panel-btns" style="display: none;"> |
5 | <a href="" class="panel-minimize tooltips" data-toggle="tooltip" title=""><i class="fa fa-minus"></i></a> | 5 | <a href="" class="panel-minimize tooltips" data-toggle="tooltip" title=""><i class="fa fa-minus"></i></a> |
6 | </div> | 6 | </div> |
7 | - <h2 class="panel-title">商品关联</h2> | 7 | + <h2 class="panel-title">(商品)品牌关联</h2> |
8 | </div> | 8 | </div> |
9 | <div id="brandWrap" class="panel-body"> | 9 | <div id="brandWrap" class="panel-body"> |
10 | <div class="form-group selected-brand" style="min-height: 60px;"> | 10 | <div class="form-group selected-brand" style="min-height: 60px;"> |
11 | <input id="brandRelationList" type="hidden" value="[[brandRelation]]" for="checkbox"> | 11 | <input id="brandRelationList" type="hidden" value="[[brandRelation]]" for="checkbox"> |
12 | - | ||
13 | [[each brandRelationList as a index]] | 12 | [[each brandRelationList as a index]] |
14 | <div class="col-sm-2" data-id="[[a.brandId]]">[[a.brandName]]</div> | 13 | <div class="col-sm-2" data-id="[[a.brandId]]">[[a.brandName]]</div> |
15 | [[/each]] | 14 | [[/each]] |
-
Please register or login to post a comment