Showing
6 changed files
with
16 additions
and
11 deletions
@@ -96,7 +96,7 @@ webpackJsonp([32],[ | @@ -96,7 +96,7 @@ webpackJsonp([32],[ | ||
96 | {id:RESPONSEDATA.sortId,sortName:RESPONSEDATA.sortName} | 96 | {id:RESPONSEDATA.sortId,sortName:RESPONSEDATA.sortName} |
97 | ], | 97 | ], |
98 | otherParam:function(){ | 98 | otherParam:function(){ |
99 | - return {brandId:$("#brandId").val(),supplierId:common.util.__input("supplierId"),shopId:common.util.__input("shopId")} | 99 | + return {brandId:$("#brandId").val(),supplierId:common.util.__input("supplierId"),shopId:common.util.__input("shopId"),sellType:common.util.__input("sellType")} |
100 | }, | 100 | }, |
101 | complete:function(data,bool){ | 101 | complete:function(data,bool){ |
102 | if(!bool){ | 102 | if(!bool){ |
@@ -202,10 +202,9 @@ webpackJsonp([32],[ | @@ -202,10 +202,9 @@ webpackJsonp([32],[ | ||
202 | }else{ | 202 | }else{ |
203 | if(item.isNew){ | 203 | if(item.isNew){ |
204 | html.push("<p>厂家颜色:</p><p><input type='text' id='factoryGoodsName' class='w-goods-text form-control' data-index="+item.__index+" value='"+item.goodsName+"' placeholder='厂家颜色' required style='padding: 10px; width: 150px' /></p>"); | 204 | html.push("<p>厂家颜色:</p><p><input type='text' id='factoryGoodsName' class='w-goods-text form-control' data-index="+item.__index+" value='"+item.goodsName+"' placeholder='厂家颜色' required style='padding: 10px; width: 150px' /></p>"); |
205 | - }else if (RESPONSEDATA.isJit =='Y'){ | ||
206 | - // JIT商品厂家颜色上架后也能修改 | 205 | + }else if(RESPONSEDATA.sellType == 3 || RESPONSEDATA.isJit == 'Y'){ // JIT上架后的商品也可以修改厂家颜色 |
207 | html.push("<p>厂家颜色:</p><p><input type='text' id='factoryGoodsName' class='w-goods-text form-control' data-index="+item.__index+" value='"+txt+"' placeholder='厂家颜色' required style='padding: 10px; width: 150px' /></p>"); | 206 | html.push("<p>厂家颜色:</p><p><input type='text' id='factoryGoodsName' class='w-goods-text form-control' data-index="+item.__index+" value='"+txt+"' placeholder='厂家颜色' required style='padding: 10px; width: 150px' /></p>"); |
208 | - } else { | 207 | + }else{ |
209 | html.push("<p>厂家颜色:</p><p><input type='text' id='factoryGoodsName' disabled='disabled' class='w-goods-text form-control' data-index="+item.__index+" value='"+txt+"' placeholder='厂家颜色' required style='padding: 10px; width: 150px' /></p>"); | 208 | html.push("<p>厂家颜色:</p><p><input type='text' id='factoryGoodsName' disabled='disabled' class='w-goods-text form-control' data-index="+item.__index+" value='"+txt+"' placeholder='厂家颜色' required style='padding: 10px; width: 150px' /></p>"); |
210 | } | 209 | } |
211 | 210 | ||
@@ -375,6 +374,10 @@ webpackJsonp([32],[ | @@ -375,6 +374,10 @@ webpackJsonp([32],[ | ||
375 | $("#sellType").val(-1).trigger("change"); | 374 | $("#sellType").val(-1).trigger("change"); |
376 | }); | 375 | }); |
377 | 376 | ||
377 | + $(document).on("change","#sellType",function(){ | ||
378 | + tabTree.isfeeze=false; | ||
379 | + tabTree.init([{id:"",sortName:""},{id:"",sortName:""},{id:"",sortName:""},{id:"",sortName:""}]); | ||
380 | + }); | ||
378 | 381 | ||
379 | $(document).on("change",":radio[name=gender]",function(){ | 382 | $(document).on("change",":radio[name=gender]",function(){ |
380 | Bll.productNameArr[1]=["男","女","通用"][+$(this).val()-1]; | 383 | Bll.productNameArr[1]=["男","女","通用"][+$(this).val()-1]; |
@@ -241,7 +241,7 @@ webpackJsonp([46],[ | @@ -241,7 +241,7 @@ webpackJsonp([46],[ | ||
241 | html += '<p><strong>品牌:</strong>' + brandName + '</p>'; | 241 | html += '<p><strong>品牌:</strong>' + brandName + '</p>'; |
242 | html += '<p><strong>类目:</strong>' + sortName + '</p>'; | 242 | html += '<p><strong>类目:</strong>' + sortName + '</p>'; |
243 | html += '<p><strong>店铺:</strong>' + item.shopName + '</p>'; | 243 | html += '<p><strong>店铺:</strong>' + item.shopName + '</p>'; |
244 | - html += '<p><strong>经营模式:</strong>' + item.sellType + '</p>'; | 244 | + html += '<p><strong>经营模式:</strong>' + (item.sellType ? item.sellType : '') + '</p>'; |
245 | return html; | 245 | return html; |
246 | } | 246 | } |
247 | }, { | 247 | }, { |
@@ -692,7 +692,7 @@ webpackJsonp([46],[ | @@ -692,7 +692,7 @@ webpackJsonp([46],[ | ||
692 | } | 692 | } |
693 | } | 693 | } |
694 | }, { | 694 | }, { |
695 | - display: '<div class="subhhead"><span>SKU</span><span>尺码</span><span>库存</span><span>SKU上架操作</span><span>SKU上架操作</span></div>', | 695 | + display: '<div class="subhhead"><span>SKU</span><span>尺码</span><span>库存</span><span>SKU状态</span><span>SKU上架操作</span></div>', |
696 | render: function (item) { | 696 | render: function (item) { |
697 | return common.util.__template2($("#template2").html(), item) | 697 | return common.util.__template2($("#template2").html(), item) |
698 | } | 698 | } |
@@ -174,7 +174,8 @@ module.exports={ | @@ -174,7 +174,8 @@ module.exports={ | ||
174 | {name: "brandId", type: "Number"}, | 174 | {name: "brandId", type: "Number"}, |
175 | {name: "sortId", type: "Number"}, | 175 | {name: "sortId", type: "Number"}, |
176 | {name: "supplierId", type: "Number"}, | 176 | {name: "supplierId", type: "Number"}, |
177 | - {name: "shopId", type: "Number"} | 177 | + {name: "shopId", type: "Number"}, |
178 | + {name: "sellType", type: "Number"} | ||
178 | ] | 179 | ] |
179 | }, | 180 | }, |
180 | queryAllMaxSortList:{ | 181 | queryAllMaxSortList:{ |
@@ -142,7 +142,8 @@ module.exports={ | @@ -142,7 +142,8 @@ module.exports={ | ||
142 | {name: 'isAuditing', type: 'Number'}, | 142 | {name: 'isAuditing', type: 'Number'}, |
143 | {name: 'productStandardRelationStr', type: 'String'}, | 143 | {name: 'productStandardRelationStr', type: 'String'}, |
144 | {name: 'appType', type: 'Number'}, | 144 | {name: 'appType', type: 'Number'}, |
145 | - {name: 'deposit', type: 'Number'} | 145 | + {name: 'deposit', type: 'Number'}, |
146 | + {name: 'sellType', type: 'Number'} | ||
146 | ] | 147 | ] |
147 | }, | 148 | }, |
148 | getBaseProduct:{ | 149 | getBaseProduct:{ |
@@ -178,7 +178,7 @@ | @@ -178,7 +178,7 @@ | ||
178 | <div class="panel-col" style="position: relative;"> | 178 | <div class="panel-col" style="position: relative;"> |
179 | <input id="baseProduct" name="file" data-type="baseProduct" type="file" style="cursor: pointer; height: 37px; top: 8px;"> | 179 | <input id="baseProduct" name="file" data-type="baseProduct" type="file" style="cursor: pointer; height: 37px; top: 8px;"> |
180 | </div> | 180 | </div> |
181 | - <div class="panel-col" style="line-height: 40px;position: relative;left: -60px;"> | 181 | + <div class="panel-col" style="line-height: 40px;position: relative;left: -60px;width: 182px;"> |
182 | <span class="red">必须输入品牌、店铺、经营模式</span> | 182 | <span class="red">必须输入品牌、店铺、经营模式</span> |
183 | </div> | 183 | </div> |
184 | </td> | 184 | </td> |
@@ -118,10 +118,10 @@ | @@ -118,10 +118,10 @@ | ||
118 | 118 | ||
119 | <script type="text/template" id="productExtBoTemp"> | 119 | <script type="text/template" id="productExtBoTemp"> |
120 | <div class="form-group"> | 120 | <div class="form-group"> |
121 | - <label class="col-sm-1 control-label">商品短评:</label> | 121 | + <label class="col-sm-1 control-label">推荐短语:</label> |
122 | [[if renderType=='edit']] | 122 | [[if renderType=='edit']] |
123 | <div class="col-sm-11"> | 123 | <div class="col-sm-11"> |
124 | - <textarea id="phrase" class="form-control" placeholder="商品短评" type="text" value="[[phrase]]" rows="4"> [[phrase]]</textarea> | 124 | + <textarea id="phrase" class="form-control" placeholder="推荐短语" type="text" value="[[phrase]]" rows="4"> [[phrase]]</textarea> |
125 | </div> | 125 | </div> |
126 | [[else]] | 126 | [[else]] |
127 | <div class="col-sm-11"> | 127 | <div class="col-sm-11"> |
-
Please register or login to post a comment