phone_add.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="panel panel-default">
  5. <div class="panel-body">
  6. <form class="form" data-next="true" action="#" method="GET">
  7. <input type="hidden" name="id" value="{$id}">
  8. <div class="form-group">
  9. <div class="form-group">
  10. <label class="control-label">提交人</label>
  11. <input class="form-control" readonly value="{$info['real_name']}" placeholder="提交人" />
  12. </div>
  13. <div class="form-group">
  14. <label class="control-label">所在科室/部门</label>
  15. <input class="form-control" readonly value="{$info['dep']}" placeholder="科室" />
  16. </div>
  17. <div class="form-group">
  18. <label class="control-label">电话</label>
  19. <input class="form-control" readonly value="{$info['phone']}" placeholder="电话" />
  20. </div>
  21. <div class="form-group">
  22. <label class="control-label">订单类型</label>
  23. <select name="mode" class="form-control" onchange="changeType(this)">
  24. {foreach $worktype as $k=>$v}
  25. <option value="{$v['id']}">{$v['title']}</option>
  26. {/foreach}
  27. </select>
  28. </div>
  29. <div class="form-group">
  30. <button type="button" onclick="tt()" class="btn btn-sm btn-primary">下一步</button>
  31. </div>
  32. </div>
  33. </form>
  34. </div>
  35. </div>
  36. </div>
  37. {/block}
  38. {block name="script"}
  39. <script>
  40. var mode = 1;
  41. function changeType(_self) {
  42. mode = $(_self).val();
  43. }
  44. function tt() {
  45. var title = '';
  46. if(mode == 1){
  47. title = '添加报修';
  48. }else if(mode == 2){
  49. title = '添加保洁';
  50. }else if(mode == 3){
  51. title = '添加运送';
  52. }else if(mode == 4){
  53. title = '添加安保';
  54. }else{
  55. title = '添加';
  56. }
  57. var url = '{:url("orders/dispatchAdd",[],"")}/mode/'+mode+'?id={$id}&aid={$info.address_id}';
  58. lay_open(title,url);
  59. }
  60. function lay_open (title,url) {
  61. parent.layer.open({
  62. type: 2,
  63. title: title,
  64. shadeClose: true,
  65. shade: 0.3,
  66. maxmin: true,
  67. area: ['90%', '90%'],
  68. content: url,
  69. end: function () {
  70. }
  71. });
  72. }
  73. </script>
  74. {/block}