Authored by 陶雨

Merge branch 'release/qqtest' of http://git.dev.yoho.cn/platform/yohobuy-portal-…

…fe into release/qqtest
@@ -249,12 +249,11 @@ var g = new common.grid({ @@ -249,12 +249,11 @@ var g = new common.grid({
249 html.push("<p>吊牌价:" + item.retailPrice + "</p>"); 249 html.push("<p>吊牌价:" + item.retailPrice + "</p>");
250 html.push("<p>销售价:" + item.salesPrice + "</p>"); 250 html.push("<p>销售价:" + item.salesPrice + "</p>");
251 251
252 - //待审核和驳回列表中只显示吊牌价和销售价,通过的列表中显示四种 252 + //待审核和驳回列表中只显示吊牌价和销售价,通过的列表中显示
253 if (item.isAuditing === 200) { 253 if (item.isAuditing === 200) {
254 html.push("<p>是否VIP:" + YNEnum.enum[item.isVip] + "</p>"); 254 html.push("<p>是否VIP:" + YNEnum.enum[item.isVip] + "</p>");
255 - //html.push("<p>yoho币:" + item.yohoCoin + "</p>"); 255 + html.push("<p>反yoho币金额:" + item.productPrice.returnCoin + "</p>");
256 } 256 }
257 -  
258 return html.join(''); 257 return html.join('');
259 } 258 }
260 }, 259 },
@@ -137,8 +137,8 @@ var g = new common.grid({ @@ -137,8 +137,8 @@ var g = new common.grid({
137 salesPrice = item.salesPrice ? item.salesPrice : ''; 137 salesPrice = item.salesPrice ? item.salesPrice : '';
138 return '<p><strong>吊牌价:</strong>' + retailPrice + '</p>' + 138 return '<p><strong>吊牌价:</strong>' + retailPrice + '</p>' +
139 '<p><strong>销售价:</strong>' + salesPrice + '</p>' + 139 '<p><strong>销售价:</strong>' + salesPrice + '</p>' +
140 - '<p><strong>是否VIP:</strong>' + vip + '</p>';  
141 - /*'<p style="color: #ccc;"><strong>yoho币:</strong>' + item.returnCoin + '</p>';*/ 140 + '<p><strong>是否VIP:</strong>' + vip + '</p>'+
  141 + '<p><strong>反yoho币金额:</strong>' + item.returnCoin + '</p>';
142 } 142 }
143 }, { 143 }, {
144 display: '库存', 144 display: '库存',
@@ -121,9 +121,6 @@ var g = new common.grid({ @@ -121,9 +121,6 @@ var g = new common.grid({
121 display: '银卡', 121 display: '银卡',
122 name: 'vip1_price' 122 name: 'vip1_price'
123 }, { 123 }, {
124 - display: '返币金额',  
125 - name: 'return_coin'  
126 - }, {  
127 display: '操作信息', 124 display: '操作信息',
128 name: 'operateInfo', 125 name: 'operateInfo',
129 render: function(item) { 126 render: function(item) {
@@ -232,7 +229,6 @@ $('#basicTable').on('click', '.modify-btn', function() { @@ -232,7 +229,6 @@ $('#basicTable').on('click', '.modify-btn', function() {
232 product_skn: skn, 229 product_skn: skn,
233 sales_price: $price.val(), 230 sales_price: $price.val(),
234 vip_discount_type: $select.val(), 231 vip_discount_type: $select.val(),
235 - return_coin: $wrap.find('.return-coin').val(),  
236 vip_price: $vipPrice.val(), 232 vip_price: $vipPrice.val(),
237 vip1_price: $vip1Price.val(), 233 vip1_price: $vip1Price.val(),
238 vip2_price: $vip2Price.val(), 234 vip2_price: $vip2Price.val(),
@@ -313,13 +309,9 @@ common.edit.ajaxfileupload("#upload-input", { @@ -313,13 +309,9 @@ common.edit.ajaxfileupload("#upload-input", {
313 } else { 309 } else {
314 common.util.__tip(response.message, 'warning'); 310 common.util.__tip(response.message, 'warning');
315 } 311 }
316 -  
317 -  
318 } 312 }
319 }); 313 });
320 314
321 -  
322 -  
323 var isFirst = false, 315 var isFirst = false,
324 tableHtml = ''; 316 tableHtml = '';
325 var p = new common.grid({ 317 var p = new common.grid({
@@ -406,11 +398,6 @@ var p = new common.grid({ @@ -406,11 +398,6 @@ var p = new common.grid({
406 return newPriceHtml + '<p style="color: #ccc;">' + item.oldProductPriceBo.vip2_price + '</p>'; 398 return newPriceHtml + '<p style="color: #ccc;">' + item.oldProductPriceBo.vip2_price + '</p>';
407 } 399 }
408 }, { 400 }, {
409 - display: '返币金额',  
410 - render: function(item) {  
411 - return item.newProductPriceBo.return_coin + '<p style="color: #ccc;">' + item.oldProductPriceBo.return_coin + '</p>';  
412 - }  
413 - }, {  
414 display: '操作', 401 display: '操作',
415 render: function(item) { 402 render: function(item) {
416 return '<a class="btn btn-info delete-btn" data-index="' + item.__index + '" href="javascript:;">删除</a>'; 403 return '<a class="btn btn-info delete-btn" data-index="' + item.__index + '" href="javascript:;">删除</a>';
@@ -425,17 +412,13 @@ $('#delete-all').on('click', function() { @@ -425,17 +412,13 @@ $('#delete-all').on('click', function() {
425 successList.length = 0; 412 successList.length = 0;
426 }) 413 })
427 414
428 -  
429 //批量变价列表单个删除 415 //批量变价列表单个删除
430 $('#priceTable').on('click', '.delete-btn', function() { 416 $('#priceTable').on('click', '.delete-btn', function() {
431 //var index = p.rows[$(this).data('index')]; 417 //var index = p.rows[$(this).data('index')];
432 successList.splice($(this).data('index'), 1); 418 successList.splice($(this).data('index'), 1);
433 p.reload(); 419 p.reload();
434 - // console.log(p.rows);  
435 -  
436 }); 420 });
437 421
438 -  
439 //确定变价 422 //确定变价
440 var path = ''; //确定变价后返回的excel名 423 var path = ''; //确定变价后返回的excel名
441 $('#sure-change').on('click', function() { 424 $('#sure-change').on('click', function() {
@@ -451,14 +434,6 @@ $('#sure-change').on('click', function() { @@ -451,14 +434,6 @@ $('#sure-change').on('click', function() {
451 arr.push(value.newProductPriceBo); 434 arr.push(value.newProductPriceBo);
452 }); 435 });
453 436
454 - // var count=Math.ceil(arr.length/200);  
455 - // for(var i=0;i<count;i++){  
456 - // item=arr.slice(i*200,(i+1)*200);  
457 - // }  
458 - // while(item=arr.slice(2,4)){  
459 -  
460 - // }  
461 -  
462 data = JSON.stringify(arr); 437 data = JSON.stringify(arr);
463 console.log(data); 438 console.log(data);
464 common.util.__ajax({ 439 common.util.__ajax({
@@ -472,7 +447,6 @@ $('#sure-change').on('click', function() { @@ -472,7 +447,6 @@ $('#sure-change').on('click', function() {
472 path = res.data; 447 path = res.data;
473 successList.length = 0; 448 successList.length = 0;
474 }); 449 });
475 -  
476 }); 450 });
477 451
478 $('#download-btn').on('click', function() { 452 $('#download-btn').on('click', function() {
@@ -24,11 +24,12 @@ var gridParams = function() { @@ -24,11 +24,12 @@ var gridParams = function() {
24 var select = tabTree.getAddress(); 24 var select = tabTree.getAddress();
25 return { 25 return {
26 auditStatus: $("#yohoCoinNav .active").data('status'), 26 auditStatus: $("#yohoCoinNav .active").data('status'),
27 - product_skn: common.util.__input("skn"),  
28 - shop_id: common.util.__input("shop"),  
29 - brand_id: common.util.__input("brand"),  
30 - supplier_id: common.util.__input("supplier"), 27 + productSkn: common.util.__input("skn"),
  28 + shopId: common.util.__input("shop"),
  29 + brandId: common.util.__input("brand"),
  30 + supplierId: common.util.__input("supplier"),
31 gender: common.util.__input("gender"), 31 gender: common.util.__input("gender"),
  32 + auditorId: common.util.__input("auditor"),
32 maxSortId: select[0] ? select[0].id : "", 33 maxSortId: select[0] ? select[0].id : "",
33 middleSortId: select[1] ? select[1].id : "", 34 middleSortId: select[1] ? select[1].id : "",
34 smallSortId: select[2] ? select[2].id : "", 35 smallSortId: select[2] ? select[2].id : "",
@@ -99,6 +99,7 @@ exports.res = [ @@ -99,6 +99,7 @@ exports.res = [
99 brand: true, 99 brand: true,
100 supplier: true, 100 supplier: true,
101 gender: true, 101 gender: true,
  102 + auditor: true,
102 sortTree: true, 103 sortTree: true,
103 returnCoinTime: false 104 returnCoinTime: false
104 }, 105 },
@@ -111,12 +112,13 @@ exports.res = [ @@ -111,12 +112,13 @@ exports.res = [
111 method: "POST", 112 method: "POST",
112 url: "/yohoCoin/queryPageList4Audit ", 113 url: "/yohoCoin/queryPageList4Audit ",
113 params:[ 114 params:[
  115 + {name: 'auditStatus', type: 'Number'},
114 {name: 'productSkn', type: 'Number'}, 116 {name: 'productSkn', type: 'Number'},
115 {name: 'shopId', type: 'Number'}, 117 {name: 'shopId', type: 'Number'},
116 {name: 'brandId', type: 'Number'}, 118 {name: 'brandId', type: 'Number'},
117 {name: 'supplierId', type: 'Number'}, 119 {name: 'supplierId', type: 'Number'},
118 {name: 'gender', type: 'String'}, 120 {name: 'gender', type: 'String'},
119 - {name: 'auditStatus', type: 'Number'}, 121 + {name: 'auditorId', type: 'Number'},
120 {name: 'maxSortId', type: 'Number'}, 122 {name: 'maxSortId', type: 'Number'},
121 {name: 'middleSortId', type: 'Number'}, 123 {name: 'middleSortId', type: 'Number'},
122 {name: 'smallSortId', type: 'Number'}, 124 {name: 'smallSortId', type: 'Number'},
@@ -206,7 +206,6 @@ @@ -206,7 +206,6 @@
206 <th>白金价</th> 206 <th>白金价</th>
207 <th>金卡价</th> 207 <th>金卡价</th>
208 <th>银卡价</th> 208 <th>银卡价</th>
209 - <th>YOHO</th>  
210 <th>进货价</th> 209 <th>进货价</th>
211 <th>进货折扣</th> 210 <th>进货折扣</th>
212 <th>成本</th> 211 <th>成本</th>
@@ -238,9 +237,6 @@ @@ -238,9 +237,6 @@
238 <td> 237 <td>
239 <input class="vip1-price" type="text" value="{vip1_price}" disabled> 238 <input class="vip1-price" type="text" value="{vip1_price}" disabled>
240 </td> 239 </td>
241 - <td>  
242 - <input class="return-coin" type="text" value="{return_coin}">  
243 - </td>  
244 <td>{purchase_price}</td> 240 <td>{purchase_price}</td>
245 <td>{purchase_discount}</td> 241 <td>{purchase_discount}</td>
246 <td>{cost_price}</td> 242 <td>{cost_price}</td>
@@ -74,6 +74,16 @@ @@ -74,6 +74,16 @@
74 </div> 74 </div>
75 {{/ gender}} 75 {{/ gender}}
76 76
  77 + {{# auditor}}
  78 + <div class="panel-col">
  79 + <select name="auditor" id="auditor" tabindex="-1" title="" class="form-control">
  80 + <option value="">请选择审核人</option>
  81 + <option value="2965">Tracy</option>
  82 + <option value="10235">David Wong</option>
  83 + </select>
  84 + </div>
  85 + {{/ auditor}}
  86 +
77 {{# sortTree}} 87 {{# sortTree}}
78 <div class="panel-col2"> 88 <div class="panel-col2">
79 <div id="sortTree"></div> 89 <div id="sortTree"></div>