Showing
1 changed file
with
16 additions
and
16 deletions
@@ -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(),"factoryCode":"","isSuppled":"N","presaleStorageNum":""} |
46 | } | 46 | } |
47 | 47 | ||
48 | /*公共模块*/ | 48 | /*公共模块*/ |
@@ -205,7 +205,7 @@ var g=new common.grid({ | @@ -205,7 +205,7 @@ var g=new common.grid({ | ||
205 | g.__gsm[item.__index]=item.goodsSizeList.length; | 205 | g.__gsm[item.__index]=item.goodsSizeList.length; |
206 | } | 206 | } |
207 | var html=[]; | 207 | var html=[]; |
208 | - html.push("<div class='form-group'><div class='col-sm-11 red'><input type=text value='"+item.modelCode+"' data-index="+item.__index+" class='modelCode form-control' placeholder='款型编码' /></div></div>"); | 208 | + 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>"); |
209 | html.push('<div class="rows" id="rows__'+item.__index+'">'); | 209 | html.push('<div class="rows" id="rows__'+item.__index+'">'); |
210 | item.goodsSizeList=item.goodsSizeList||[$.extend({},ENUM.goodsSizeList)]; | 210 | item.goodsSizeList=item.goodsSizeList||[$.extend({},ENUM.goodsSizeList)]; |
211 | var ISXIANGO=(common.util.__input("isAdvance")=="Y"&&+RESPONSEDATA.isAuditing==200)?true:false; | 211 | var ISXIANGO=(common.util.__input("isAdvance")=="Y"&&+RESPONSEDATA.isAuditing==200)?true:false; |
@@ -279,7 +279,7 @@ $(document).on("click",".sortadd",function(){ | @@ -279,7 +279,7 @@ $(document).on("click",".sortadd",function(){ | ||
279 | var goodsSizeList=$.extend({},ENUM.goodsSizeList); | 279 | var goodsSizeList=$.extend({},ENUM.goodsSizeList); |
280 | goodsSizeList.salePrice=$("#salesPriceStr").val(); | 280 | goodsSizeList.salePrice=$("#salesPriceStr").val(); |
281 | g.__rows.push({ | 281 | g.__rows.push({ |
282 | - "modelCode": "", | 282 | + "factoryCode": "", |
283 | "goodsColorImage": "", | 283 | "goodsColorImage": "", |
284 | goodsName: $(this).text(), | 284 | goodsName: $(this).text(), |
285 | colorId: (+$(this).data("id")), | 285 | colorId: (+$(this).data("id")), |
@@ -341,7 +341,7 @@ $(document).on("click",".sortdelete",function(){ | @@ -341,7 +341,7 @@ $(document).on("click",".sortdelete",function(){ | ||
341 | }); | 341 | }); |
342 | $(document).on("change",".modelCode",function(){ | 342 | $(document).on("change",".modelCode",function(){ |
343 | var item=g.__rows[$(this).data("index")]; | 343 | var item=g.__rows[$(this).data("index")]; |
344 | - item.modelCode=$(this).val(); | 344 | + item.factoryCode=$(this).val(); |
345 | }); | 345 | }); |
346 | $(document).on("click",".btn-sort-add",function(){ | 346 | $(document).on("click",".btn-sort-add",function(){ |
347 | var item=g.__rows[$(this).data("index")]; | 347 | var item=g.__rows[$(this).data("index")]; |
@@ -375,7 +375,7 @@ $(document).on("change",".btn-sort-tiaoma",function(){ | @@ -375,7 +375,7 @@ $(document).on("change",".btn-sort-tiaoma",function(){ | ||
375 | var _index=$(this).data("index"); | 375 | var _index=$(this).data("index"); |
376 | var _eq=$(this).data("eq"); | 376 | var _eq=$(this).data("eq"); |
377 | var item=g.__rows[_index].goodsSizeList[_eq]; | 377 | var item=g.__rows[_index].goodsSizeList[_eq]; |
378 | - item.barCode=$(this).val(); | 378 | + item.factoryCode=$(this).val(); |
379 | }); | 379 | }); |
380 | $(document).on("change",".btn-sort-kebu",function(){ | 380 | $(document).on("change",".btn-sort-kebu",function(){ |
381 | var _index=$(this).data("index"); | 381 | var _index=$(this).data("index"); |
@@ -455,35 +455,35 @@ e.on("validate",function(){ | @@ -455,35 +455,35 @@ e.on("validate",function(){ | ||
455 | } | 455 | } |
456 | 456 | ||
457 | //RESPONSEDATA.productSkn | 457 | //RESPONSEDATA.productSkn |
458 | - console.log("item1.barCode",item1.barCode) | 458 | + console.log("item1.factoryCode",item1.factoryCode) |
459 | map[gname+"_"+item1.sizeId]=""; | 459 | map[gname+"_"+item1.sizeId]=""; |
460 | //修改 | 460 | //修改 |
461 | if(RESPONSEDATA.productSkn){ | 461 | if(RESPONSEDATA.productSkn){ |
462 | if(index1>g.__gsm[index]-1){ | 462 | if(index1>g.__gsm[index]-1){ |
463 | //大于原来的计算 | 463 | //大于原来的计算 |
464 | - if(map2.hasOwnProperty(item1.barCode)){ | 464 | + if(map2.hasOwnProperty(item1.factoryCode)){ |
465 | _count1++; | 465 | _count1++; |
466 | } | 466 | } |
467 | - map2[item1.barCode]=""; | ||
468 | - console.log("大于原来的计算",item1.barCode+":"+_count1); | 467 | + map2[item1.factoryCode]=""; |
468 | + console.log("大于原来的计算",item1.factoryCode+":"+_count1); | ||
469 | }else{ | 469 | }else{ |
470 | //小于原来,并且有值 | 470 | //小于原来,并且有值 |
471 | - if(item1.barCode){ | ||
472 | - if(map2.hasOwnProperty(item1.barCode)){ | 471 | + if(item1.factoryCode){ |
472 | + if(map2.hasOwnProperty(item1.factoryCode)){ | ||
473 | _count1++; | 473 | _count1++; |
474 | } | 474 | } |
475 | - map2[item1.barCode]=""; | 475 | + map2[item1.factoryCode]=""; |
476 | console.log("小于原来,并且有值",_count1); | 476 | console.log("小于原来,并且有值",_count1); |
477 | } | 477 | } |
478 | console.log("没值",_count1); | 478 | console.log("没值",_count1); |
479 | } | 479 | } |
480 | }else{ | 480 | }else{ |
481 | //添加时候计算 | 481 | //添加时候计算 |
482 | - if(item1.barCode){ | ||
483 | - if(map2.hasOwnProperty(item1.barCode)){ | 482 | + if(item1.factoryCode){ |
483 | + if(map2.hasOwnProperty(item1.factoryCode)){ | ||
484 | _count1++; | 484 | _count1++; |
485 | } | 485 | } |
486 | - map2[item1.barCode]=""; | 486 | + map2[item1.factoryCode]=""; |
487 | } | 487 | } |
488 | console.log("添加时候计算",_count1); | 488 | console.log("添加时候计算",_count1); |
489 | } | 489 | } |
@@ -491,7 +491,7 @@ e.on("validate",function(){ | @@ -491,7 +491,7 @@ e.on("validate",function(){ | ||
491 | if(g.__gsm[index]&&index1<g.__gsm[index]){ | 491 | if(g.__gsm[index]&&index1<g.__gsm[index]){ |
492 | return; | 492 | return; |
493 | } | 493 | } |
494 | - map3.push(item1.barCode); | 494 | + map3.push(item1.factoryCode); |
495 | }); | 495 | }); |
496 | }); | 496 | }); |
497 | } | 497 | } |
-
Please register or login to post a comment