opsend.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <style>
  2. .fui-goods-list{width:100%;border-bottom: 1px dashed #e1ecee;padding-top:5px;padding-bottom:5px;}
  3. .fui-goods-list span{display: block;padding:0;}
  4. </style>
  5. <form class="form-horizontal form-validate" action="<?php if( $edit_flag==1){ ?>{:U('order/opchangeExpress')}<?php }else{ ?>{:U('order/opsend')}<?php } ?>" method="post" enctype="multipart/form-data">
  6. <input type='hidden' name='id' value='{$id}' />
  7. <div class="modal-dialog">
  8. <div class="modal-content">
  9. <div class="modal-header">
  10. <button data-dismiss="modal" class="close" type="button">×</button>
  11. <h4 class="modal-title"><?php if( $edit_flag==1){ ?>修改物流信息<?php }else{ ?>订单发货<?php } ?></h4>
  12. </div>
  13. <div class="modal-body">
  14. <div class="form-group">
  15. <label class="col-sm-2 control-label">收 货 人</label>
  16. <div class="col-sm-9 col-xs-12">
  17. <div class="form-control-static">
  18. 联系人: {$item['shipping_name']} / {$item['shipping_tel']} <br/>
  19. 地 址: {$province_info['name']}{$city_info['name']}{$area_info['name']} {$item['shipping_address']}
  20. </div>
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="col-sm-2 control-label">快递公司</label>
  25. <div class="col-sm-9 col-xs-12">
  26. <select name="express" class='form-control select2' data-placeholder="商品分类">
  27. <option value="" data-name="">请选择快递公司</option>
  28. <?php foreach( $express_list as $value ){ ?>
  29. <option value="{$value['id']}" <?php if( $item['shipping_method'] == $value['id']){ ?>selected<?php } ?> data-name="{$value['name']}">{$value['name']}</option>
  30. <?php } ?>
  31. </select>
  32. <input type='hidden' name='expresscom' id='expresscom' value="{$item['expresscom']}"/>
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <label class="col-sm-2 control-label must">快递单号</label>
  37. <div class="col-sm-9 col-xs-12">
  38. <input type="text" name="shipping_no" class="form-control" value="{$item['shipping_no']}" data-rule-required='true' />
  39. </div>
  40. </div>
  41. <?php if( $order_goods){ ?>
  42. <div class="form-group sendpress" >
  43. <label class="col-sm-2 control-label">发货商品</label>
  44. <div class="col-sm-9 col-xs-12">
  45. <?php foreach( $order_goods as $k => $g ){ ?>
  46. <label class="fui-goods-list checkbox-inline row">
  47. <span class="col-sm-1">
  48. <img src="{:tomedia($g['thumb'])}" width="25" height="25" alt="">
  49. </span>
  50. <span class="col-sm-11" style="height:25px;line-height: 25px;display: block;overflow: hidden;">
  51. {$g['title']}
  52. </span>
  53. </label>
  54. <?php } ?>
  55. </div>
  56. </div>
  57. <?php } ?>
  58. </div>
  59. <div class="modal-footer">
  60. <button class="btn btn-primary" type="submit"><?php if( $edit_flag==1){ ?>保存信息<?php }else{ ?>确认发货<?php } ?></button>
  61. <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
  62. </div>
  63. </div>
  64. </form>
  65. <script language="javascript">
  66. $("input[name=sendtype]").off("click").on("click",function(){
  67. window.sendtype = $(this).val();
  68. if(window.sendtype==1){
  69. $(".sendpress").show();
  70. }else{
  71. $(".sendpress").hide();
  72. }
  73. });
  74. </script>