Authored by weiqingting

提交

@@ -68,7 +68,8 @@ if (window.NETSALEDATA) { @@ -68,7 +68,8 @@ if (window.NETSALEDATA) {
68 68
69 } 69 }
70 70
71 - { //尺寸信息 71 + {
  72 + //尺寸信息
72 var productSkn = window.NETSALEDATA.baseProductInfo.baseProduct.productSkn; 73 var productSkn = window.NETSALEDATA.baseProductInfo.baseProduct.productSkn;
73 var dataList; 74 var dataList;
74 if (productSkn) { 75 if (productSkn) {
@@ -95,7 +96,9 @@ if (window.NETSALEDATA) { @@ -95,7 +96,9 @@ if (window.NETSALEDATA) {
95 var refName = item1.referenceName ? item1.referenceName : "";//非空判断 96 var refName = item1.referenceName ? item1.referenceName : "";//非空判断
96 var a = refName.split(/[|/]/g); 97 var a = refName.split(/[|/]/g);
97 var refName1 = a[0] || "", refName2 = a[1] || ""; 98 var refName1 = a[0] || "", refName2 = a[1] || "";
98 - return '<div class="form-group"><div class="col-sm-3"><input class=" form-control" data-index="' + item1.__index + '"' + 'value="' + refName1 + '"/></div>' + '<div class="col-sm-1">' + '/</div>' + '<div class="col-sm-3"><input class=" form-control" data-index="' + item1.__index + '"' + 'value="' + refName2 + '"/></div></div>'; 99 + //console.log("refName1",refName1);
  100 + //console.log("refName2",refName2);
  101 + return '<div class="form-group"><div class="col-sm-3"><input class=" form-control refInfo refInfo1" data-index="' + item1.__index + '"' + 'value="' + refName1 + '"/></div>' + '<div class="col-sm-1">' + '/</div>' + '<div class="col-sm-3"><input class=" form-control refInfo refInfo2" data-index="' + item1.__index + '"' + 'value="' + refName2 + '"/></div></div>';
99 } 102 }
100 }); 103 });
101 for (var i = 0; i < dataList.sizeRelationsList[0].prdSizeAttributeBoList.length; i++) {//尺码列 104 for (var i = 0; i < dataList.sizeRelationsList[0].prdSizeAttributeBoList.length; i++) {//尺码列
@@ -148,12 +151,14 @@ if (window.NETSALEDATA) { @@ -148,12 +151,14 @@ if (window.NETSALEDATA) {
148 referenceName: ref1.val() + '/' + ref2.val() 151 referenceName: ref1.val() + '/' + ref2.val()
149 }); 152 });
150 } 153 }
  154 + //console.log(productSizeReferList);
151 var data = { 155 var data = {
152 productSkn: dataList.productSkn, 156 productSkn: dataList.productSkn,
153 noMeasureIds: noMeasureIds, 157 noMeasureIds: noMeasureIds,
154 sizeInfoList: JSON.stringify(sizeInfoList), 158 sizeInfoList: JSON.stringify(sizeInfoList),
155 productSizeReferList: JSON.stringify(productSizeReferList) 159 productSizeReferList: JSON.stringify(productSizeReferList)
156 }; 160 };
  161 +
157 common.util.__ajax({ 162 common.util.__ajax({
158 url: "/meterManage/productSize/saveProdSizeInfo", 163 url: "/meterManage/productSize/saveProdSizeInfo",
159 data: data 164 data: data