Authored by 马力

Merge branch 'dev_size_5.3' into grey

@@ -11,6 +11,8 @@ module.exports=function(app) { @@ -11,6 +11,8 @@ module.exports=function(app) {
11 app.post("/product/querySizeAttributesByName","select_querySizeAttributesByName"); 11 app.post("/product/querySizeAttributesByName","select_querySizeAttributesByName");
12 12
13 app.post("/product/querySizeListBySortId4Html","select_querySizeListBySortId4Html"); 13 app.post("/product/querySizeListBySortId4Html","select_querySizeListBySortId4Html");
  14 +
  15 + app.post("/product/querySizeListBySkn","select_querySizeListBySkn");
14 /*尺码模糊查询【验证通过】*/ 16 /*尺码模糊查询【验证通过】*/
15 app.post("/product/querySizeByNameForSelect","select_querySizeByNameForSelect"); 17 app.post("/product/querySizeByNameForSelect","select_querySizeByNameForSelect");
16 /*查询品牌列表接口*/ 18 /*查询品牌列表接口*/
@@ -41,6 +41,14 @@ module.exports={ @@ -41,6 +41,14 @@ module.exports={
41 {name: "sortId", type: "Number"} 41 {name: "sortId", type: "Number"}
42 ] 42 ]
43 }, 43 },
  44 + querySizeListBySkn:{
  45 + title:'',
  46 + url: '/product/querySizeListBySkn',
  47 + params: [
  48 + {name: "idName", type: "String"},
  49 + {name: "productSkn", type: "Number"}
  50 + ]
  51 + },
44 querySizeByNameForSelect:{ 52 querySizeByNameForSelect:{
45 title:'尺码模糊查询【验证通过】', 53 title:'尺码模糊查询【验证通过】',
46 url: '/product/querySizeByNameForSelect', 54 url: '/product/querySizeByNameForSelect',
@@ -16,6 +16,7 @@ var urlObj = { @@ -16,6 +16,7 @@ var urlObj = {
16 'shopsRest': '/ShopsRest/selectCheckPassShopsByName', // 店铺列表 16 'shopsRest': '/ShopsRest/selectCheckPassShopsByName', // 店铺列表
17 'xiangouID': '/DrawlineActivityRest/selectActivityListForSelect', //限购ID 17 'xiangouID': '/DrawlineActivityRest/selectActivityListForSelect', //限购ID
18 'sortsize2': '/product/querySizeListBySortId4Html', //尺码 18 'sortsize2': '/product/querySizeListBySortId4Html', //尺码
  19 + 'sortsize3':'/product/querySizeListBySkn',//尺码
19 'sortbybrand': '/ShopsRest/queryShopsByBrandId', 20 'sortbybrand': '/ShopsRest/queryShopsByBrandId',
20 'getjitSup': '/AgreementRest/getJitSupplierByBrandId', 21 'getjitSup': '/AgreementRest/getJitSupplierByBrandId',
21 // 'getsort':'/goods/query/querySortBySmallSort', 22 // 'getsort':'/goods/query/querySortBySmallSort',
@@ -60,7 +61,7 @@ var urlObj = { @@ -60,7 +61,7 @@ var urlObj = {
60 'queryProdSizeListForSel':"/productSize/queryProdSizeListForSel" 61 'queryProdSizeListForSel':"/productSize/queryProdSizeListForSel"
61 }; 62 };
62 63
63 -var minimumResultsForSearch = ["sortbybrand", "getjitSup", "sortsize2", "querySupplier"]; 64 +var minimumResultsForSearch = ["sortbybrand", "getjitSup", "sortsize2", "querySupplier","sortsize3"];
64 65
65 var dropDown = function(option) { 66 var dropDown = function(option) {
66 new dropDown.prototype.init(option); 67 new dropDown.prototype.init(option);
@@ -66,6 +66,7 @@ var g = new common.grid({ @@ -66,6 +66,7 @@ var g = new common.grid({
66 66
67 } 67 }
68 }, 68 },
  69 + {display: "操作人", name: "updateUserName"},
69 { 70 {
70 display: "操作", name: "", render: function (item1) { 71 display: "操作", name: "", render: function (item1) {
71 var arr = []; 72 var arr = [];
@@ -78,23 +78,13 @@ var getAllInfo = function (item, callback) { @@ -78,23 +78,13 @@ var getAllInfo = function (item, callback) {
78 callback(modelLists); 78 callback(modelLists);
79 var e = new common.edit("#baseInfo"); 79 var e = new common.edit("#baseInfo");
80 e.init(); 80 e.init();
81 - var sortId;  
82 - if (item.smallSortId && item.smallSortId > 1) {  
83 - sortId = item.smallSortId;  
84 - } else {  
85 - if (item.middleSortId || item.middleSortId > 1) {  
86 - sortId = item.middleSortId;  
87 - }  
88 - else {  
89 - sortId = item.maxSortId;  
90 - }  
91 - } 81 + var skn= item.productSkn;
92 new common.dropDown({ 82 new common.dropDown({
93 el: '.fit_size', 83 el: '.fit_size',
94 - ajax: 'sortsize2', 84 + ajax: 'sortsize3',
95 params: function () { 85 params: function () {
96 return { 86 return {
97 - "sortId": sortId 87 + "productSkn": skn
98 }; 88 };
99 } 89 }
100 }); 90 });