Authored by weiqingting

tijiao

@@ -42,7 +42,7 @@ $("#basicInfo").html(common.util.__template2($("#template2").html(),RESPONSEDATA @@ -42,7 +42,7 @@ $("#basicInfo").html(common.util.__template2($("#template2").html(),RESPONSEDATA
42 42
43 /*类目配置*/ 43 /*类目配置*/
44 var ENUM={ 44 var ENUM={
45 - goodsSizeList:{"sizeId":"","salePrice":$("#salesPriceStr").val(),"barCode":"","isSuppled":"N","presaleStorageNum":""} 45 + goodsSizeList:{"sizeId":"","salePrice":$("#salesPriceStr").val(),"barCode":"","isSuppled":"N"}
46 } 46 }
47 47
48 /*公共模块*/ 48 /*公共模块*/
@@ -212,8 +212,8 @@ var g=new common.grid({ @@ -212,8 +212,8 @@ var g=new common.grid({
212 html.push("<div class='form-group'><div class='col-sm-11 red'><input type=text value='"+item.factoryCode+"' data-index="+item.__index+" class='modelCode form-control' placeholder='款型编码' /></div></div>"); 212 html.push("<div class='form-group'><div class='col-sm-11 red'><input type=text value='"+item.factoryCode+"' data-index="+item.__index+" class='modelCode form-control' placeholder='款型编码' /></div></div>");
213 html.push('<div class="rows" id="rows__'+item.__index+'">'); 213 html.push('<div class="rows" id="rows__'+item.__index+'">');
214 item.goodsSizeList=item.goodsSizeList||[$.extend({},ENUM.goodsSizeList)]; 214 item.goodsSizeList=item.goodsSizeList||[$.extend({},ENUM.goodsSizeList)];
215 - var ISXIANGO=(common.util.__input("isAdvance")=="Y"&&+RESPONSEDATA.isAuditing==200)?true:false;  
216 - html.push(common.util.__template2($("#template").html(),{index:item.__index,ISXIANGO:ISXIANGO,goodsSizeList:item.goodsSizeList})); 215 + // var ISXIANGO=(common.util.__input("isAdvance")=="Y"&&+RESPONSEDATA.isAuditing==200)?true:false;
  216 + html.push(common.util.__template2($("#template").html(),{index:item.__index,goodsSizeList:item.goodsSizeList}));
217 html.push('</div>'); 217 html.push('</div>');
218 return html.join(''); 218 return html.join('');
219 } 219 }
@@ -317,12 +317,12 @@ $(document).on("change",":radio[name=gender]",function(){ @@ -317,12 +317,12 @@ $(document).on("change",":radio[name=gender]",function(){
317 }); 317 });
318 $(document).on("change",":radio[name=isAdvance]",function(){ 318 $(document).on("change",":radio[name=isAdvance]",function(){
319 g.reload(); 319 g.reload();
320 - $("#stock").val("");  
321 - $.each(g.__rows,function(inex,item){  
322 - $.each(item.goodsSizeList,function(inex1,item1){  
323 - item1.presaleStorageNum="";  
324 - });  
325 - }); 320 + // $("#stock").val("");
  321 + // $.each(g.__rows,function(inex,item){
  322 + // $.each(item.goodsSizeList,function(inex1,item1){
  323 + // item1.presaleStorageNum="";
  324 + // });
  325 + // });
326 if($(this).val()=="Y"){ 326 if($(this).val()=="Y"){
327 $("#expectArrivalTimeStr").attr("required","required"); 327 $("#expectArrivalTimeStr").attr("required","required");
328 $("#expectArrivalTimeStrTxt").html("预计到货时间<span class='red'>*</span>"); 328 $("#expectArrivalTimeStrTxt").html("预计到货时间<span class='red'>*</span>");
@@ -387,19 +387,19 @@ $(document).on("change",".btn-sort-kebu",function(){ @@ -387,19 +387,19 @@ $(document).on("change",".btn-sort-kebu",function(){
387 var item=g.__rows[_index].goodsSizeList[_eq]; 387 var item=g.__rows[_index].goodsSizeList[_eq];
388 item.isSuppled=$(this).val(); 388 item.isSuppled=$(this).val();
389 }); 389 });
390 -$(document).on("change",".btn-sort-kucun",function(){  
391 - var _index=$(this).data("index");  
392 - var _eq=$(this).data("eq");  
393 - var item=g.__rows[_index].goodsSizeList[_eq];  
394 - item.presaleStorageNum=$(this).val();  
395 - var total=0;  
396 - $.each(g.__rows,function(index,item1){  
397 - $.each(item1.goodsSizeList,function(index,item2){  
398 - total+=(+item2.presaleStorageNum);  
399 - });  
400 - });  
401 - $("#stock").val(total);  
402 -}); 390 +// $(document).on("change",".btn-sort-kucun",function(){
  391 +// var _index=$(this).data("index");
  392 +// var _eq=$(this).data("eq");
  393 +// var item=g.__rows[_index].goodsSizeList[_eq];
  394 +// item.presaleStorageNum=$(this).val();
  395 +// var total=0;
  396 +// $.each(g.__rows,function(index,item1){
  397 +// $.each(item1.goodsSizeList,function(index,item2){
  398 +// total+=(+item2.presaleStorageNum);
  399 +// });
  400 +// });
  401 +// $("#stock").val(total);
  402 +// });
403 $(document).on("change",".w-goods-text",function(){ 403 $(document).on("change",".w-goods-text",function(){
404 var item=g.__rows[$(this).data("index")]; 404 var item=g.__rows[$(this).data("index")];
405 item.factoryGoodsName=$(this).val(); 405 item.factoryGoodsName=$(this).val();
@@ -78,7 +78,7 @@ var config = { @@ -78,7 +78,7 @@ var config = {
78 }, 78 },
79 apiKey: 'sd4H1ecAqlp', 79 apiKey: 'sd4H1ecAqlp',
80 port: 30016, 80 port: 30016,
81 - domain: 'http://192.168.81.6:8189/yoho-admin-portal', 81 + domain: 'http://172.31.23.161:8088/platform',
82 logsFile: '/Data/logs/node/yohobuy-portal-log/', 82 logsFile: '/Data/logs/node/yohobuy-portal-log/',
83 loggers: { 83 loggers: {
84 api: { 84 api: {
@@ -91,11 +91,7 @@ @@ -91,11 +91,7 @@
91 <option value="Y">可补货</option> 91 <option value="Y">可补货</option>
92 </select> 92 </select>
93 </div> 93 </div>
94 - [[if ISXIANGO]]  
95 - <div class="col-sm-2">  
96 - <input type="text" class="form-control btn-sort-kucun" value="[[item.presaleStorageNum]]" placeholder="预售库存" data-index=[[index]] data-eq=[[__index]] required></input>  
97 - </div>  
98 - [[/if]] 94 +
99 <div class="col-sm-2"> 95 <div class="col-sm-2">
100 [[if __index==goodsSizeList.length-1]] 96 [[if __index==goodsSizeList.length-1]]
101 <button type="button" class="btn btn-info btn-xs btn-sort-add" data-index=[[index]]>+</button> 97 <button type="button" class="btn btn-info btn-xs btn-sort-add" data-index=[[index]]>+</button>
@@ -298,10 +294,6 @@ @@ -298,10 +294,6 @@
298 <input type="hidden" id="isVip" value="[[isVip||'B']]" for="radio" /> 294 <input type="hidden" id="isVip" value="[[isVip||'B']]" for="radio" />
299 </div> 295 </div>
300 296
301 - <label class="col-sm-2 control-label">预售库存</label>  
302 - <div class="col-sm-2">  
303 - <input type="number" id="stock" class="form-control" value="[[stock]]" readonly="readonly" />  
304 - </div>  
305 </div> 297 </div>
306 [[/if]] 298 [[/if]]
307 299