|
@@ -277,6 +277,10 @@
|
277
|
277
|
<a style="text-decoration:none" onClick='order_edit("编辑","{{$a['id']}}")' href="javascript:;" title="编辑"><span class="btn btn-primary radius">编辑</span></a>
|
278
|
278
|
@endif
|
279
|
279
|
|
|
280
|
+ @if($self_role !='销售')
|
|
281
|
+ <a style="text-decoration:none" onClick='order_goods_info("查看商品","{{$a['id']}}")' href="javascript:;" title="查看商品"><span class="btn btn-primary radius">查看商品</span></a>
|
|
282
|
+ @endif
|
|
283
|
+
|
280
|
284
|
@if($a['status'] >= 3)
|
281
|
285
|
|
282
|
286
|
@elseif($a['status'] == 2 && $self_role !='超级管理员' && $self_role !='售后管理员')
|
|
@@ -376,6 +380,34 @@
|
376
|
380
|
</div>
|
377
|
381
|
</div>
|
378
|
382
|
|
|
383
|
+ <!--弹出层 推入分组-->
|
|
384
|
+ <div id="modal-demo3" class="modal fade" tabnonautomatic_index="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
385
|
+ <div class="modal-dialog">
|
|
386
|
+ <div class="modal-content radius">
|
|
387
|
+ <div class="modal-body">
|
|
388
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
389
|
+ <thead>
|
|
390
|
+ <tr class="text-c">
|
|
391
|
+ <th width="4%">商品名称</th>
|
|
392
|
+ <th width="4%">规格</th>
|
|
393
|
+ <th width="4%">规格编码</th>
|
|
394
|
+ <th width="4%">成本价</th>
|
|
395
|
+ <th width="4%">数量</th>
|
|
396
|
+ </tr>
|
|
397
|
+ </thead>
|
|
398
|
+ <tbody id="g_tr">
|
|
399
|
+
|
|
400
|
+ </tbody>
|
|
401
|
+ </table>
|
|
402
|
+ <div style="float:right">
|
|
403
|
+ <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
|
|
404
|
+ </div>
|
|
405
|
+ <br>
|
|
406
|
+ </div>
|
|
407
|
+ </div>
|
|
408
|
+ </div>
|
|
409
|
+ </div>
|
|
410
|
+
|
379
|
411
|
<div id="page" class="page_div"></div>
|
380
|
412
|
</div>
|
381
|
413
|
|
|
@@ -429,6 +461,34 @@
|
429
|
461
|
$("#modal-demo2").modal("show");
|
430
|
462
|
}
|
431
|
463
|
|
|
464
|
+ function order_goods_info(text, id){
|
|
465
|
+ $.ajax({
|
|
466
|
+ url: '/admin/order/order_goods_info?id='+id,
|
|
467
|
+ type: 'get',
|
|
468
|
+ dateType: 'json',
|
|
469
|
+ success:function(data){
|
|
470
|
+ if(data != '0'){
|
|
471
|
+ data = eval("("+data+")");
|
|
472
|
+ var str = '';
|
|
473
|
+ for (var i = 0, l = data.length; i < l; i++) {
|
|
474
|
+ var item = data[i];
|
|
475
|
+ str += '<tr>';
|
|
476
|
+ str += '<td>'+ item.goods_name+'<\/td>';
|
|
477
|
+ str += '<td>'+ item.props_name+'<\/td>';
|
|
478
|
+ str += '<td>'+ item.sku_code+'<\/td>';
|
|
479
|
+ str += '<td>'+ item.cost+'<\/td>';
|
|
480
|
+ str += '<td>'+ item.num+'<\/td>';
|
|
481
|
+ str += '</tr>';
|
|
482
|
+ }
|
|
483
|
+ $("#g_tr").html(str);
|
|
484
|
+ $("#modal-demo3").modal("show");
|
|
485
|
+ }
|
|
486
|
+
|
|
487
|
+ }
|
|
488
|
+ });
|
|
489
|
+
|
|
490
|
+ }
|
|
491
|
+
|
432
|
492
|
/*广告-设为首页隐藏*/
|
433
|
493
|
function down(obj,id){
|
434
|
494
|
layer.confirm('确认要设为首页隐藏吗?',function(index){
|