yfs.js 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. $(".bottom2").click(function(){
  2. //$(this).find(".wrapper.is-visible").toggle();
  3. $(this).find(".wrapper.tableb").toggle();
  4. })
  5. $(document).bind("click", function(){
  6. $('.choose-videoBox .control-box1').hide();
  7. $('#details-form').hide();
  8. $('#confirm-plan-window').hide();
  9. $('#check-plan-window').hide();
  10. $('#finalcheck-plan-window').hide();
  11. $('#diagnose-window').hide();
  12. $('#cure-windows').hide();
  13. $('#cureinfo-window').hide();
  14. $('#ypsqsh-window').hide();
  15. $('#ypsqxq-window').hide();
  16. $('#details-form .table-myjh').removeClass('active');
  17. })
  18. $('.msg-tab-head .msg-tab1').click(function(){
  19. var i = $(this).index('.msg-tab-head .msg-tab1');
  20. $('.msg-tab-head .msg-tab1').removeClass('active');
  21. $(this).addClass('active');
  22. $('.msg-tab-body .msg-list-content').removeClass('active');
  23. $(".msg-tab-body .msg-list-content").eq(i).addClass('active');
  24. })
  25. $(".replay-Video .replay-btn").click(function(){
  26. $('.choose-videoBox .control-box1').toggle();
  27. event.stopPropagation();
  28. })
  29. $('.choose-videoBox .control-box1').click(function(){
  30. event.stopPropagation();
  31. })
  32. $(".video-find #sub-btn").click(function(){
  33. $('.choose-videoBox .control-box1').hide();
  34. console.log('录像查询');
  35. })
  36. $(".open-all-plan-list").click(function(){
  37. var i = $(this).index('.active .list-container .open-all-plan-list');
  38. $('#details-form').show();
  39. console.log(i)
  40. $('#details-form .table-myjh').removeClass('active');
  41. $('#details-form .table-myjh').eq(i).addClass('active');
  42. event.stopPropagation();
  43. })
  44. $("#confirm-plan-window").click(function(){
  45. event.stopPropagation();
  46. })
  47. $("#ypsqsh-window").click(function(){
  48. event.stopPropagation();
  49. })
  50. $("#ypsqxq-window").click(function(){
  51. event.stopPropagation();
  52. })
  53. $("#diagnose-window").click(function(){
  54. event.stopPropagation();
  55. })
  56. $("#cureinfo-window").click(function(){
  57. event.stopPropagation();
  58. })
  59. $("#check-plan-window").click(function(){
  60. event.stopPropagation();
  61. })
  62. $("#finalcheck-plan-window").click(function(){
  63. event.stopPropagation();
  64. })
  65. $("#cure-windows").click(function(){
  66. event.stopPropagation();
  67. })
  68. $("#diagnose-window .add-items").click(function(){
  69. var _h = "<div class='drug-items'> <div class='diagnose-chuli-block-item'> <span>药品:</span> <div class='select'> <select name='drug'> <option value='' selected>药品AAAAAA</option> <option value=''>药品BBBBBBB</option> </select> </div> <span class='chuli-block-item-title'>剂量:</span> <input type='text' name='' value='' /> <span class='chuli-block-item-title'>申请剂量:</span> <input type='text' name='' value='' /> </div> <div class='diagnose-chuli-block-item'> <span>用法:</span> <div class='use-how'><input type='text' name='' value='' /></div> </div> <div class='cut-items'><i class='icon-cut'></i>删除</div> </div>";
  70. $("#drug-block").append(_h);
  71. })
  72. $("#drug-block").delegate(".cut-items","click",function(event){
  73. var target = $(event.target);
  74. target.parent().remove();
  75. })
  76. $("#cure-windows .add-items").click(function(){
  77. var _h = "<div class='drug-items'> <div class='cure-chuli-block-item'> <span>药品:</span> <div class='select'> <select name='drug'> <option value='' selected>药品AAAAAA</option> <option value=''>药品BBBBBBB</option> </select> </div> <span class='chuli-block-item-title'>剂量:</span> <input type='text' name='' value='' /> <span class='chuli-block-item-title'>申请剂量:</span> <input type='text' name='' value='' /> </div> <div class='cure-chuli-block-item'> <span>用法:</span> <div class='use-how'><input type='text' name='' value='' /></div> </div> <div class='cut-items'><i class='icon-cut'></i>删除</div> </div>";
  78. $("#drug-block-cure").append(_h);
  79. })
  80. $("#drug-block-cure").delegate(".cut-items","click",function(event){
  81. var target = $(event.target);
  82. target.parent().remove();
  83. })
  84. $('.plan-items-data select').change(function(){
  85. var ischange = $(this).val();
  86. if(ischange=='yes'){
  87. $('#changedate').show();
  88. }else{
  89. $('#changedate').hide();
  90. }
  91. })
  92. $('.confirmready-todo-btn').click(function(){
  93. $('#finalcheck-plan-window').show();
  94. event.stopPropagation();
  95. })
  96. $('.ready-todo-btn').click(function(){
  97. $('#check-plan-window').show();
  98. event.stopPropagation();
  99. })
  100. $('.todo-btn').click(function(){
  101. $('#confirm-plan-window').show();
  102. event.stopPropagation();
  103. })
  104. $('.cureinfo-btn').click(function(){
  105. $('#cureinfo-window').show();
  106. event.stopPropagation();
  107. })
  108. $('.zhenduan-btn').click(function(){
  109. $('#diagnose-window').show();
  110. event.stopPropagation();
  111. })
  112. $('.cure-btn').click(function(){
  113. $('#cure-windows').show();
  114. event.stopPropagation();
  115. })
  116. $('.ypsqsh-btn').click(function(){
  117. $('#ypsqsh-window').show();
  118. event.stopPropagation();
  119. })
  120. $('.ypsqxq-btn').click(function(){
  121. $('#ypsqxq-window').show();
  122. event.stopPropagation();
  123. })
  124. $('.confirs-btn').click(function(){
  125. $('#confirm-plan-window').hide();
  126. event.stopPropagation();
  127. })
  128. $('#check-plan-window .btn-yes').click(function(){
  129. $('#check-plan-window').hide();
  130. event.stopPropagation();
  131. })
  132. $('#check-plan-window .btn-no').click(function(){
  133. $('#check-plan-window').hide();
  134. event.stopPropagation();
  135. })
  136. $('#diagnose-window .btn-qr').click(function(){
  137. $('#diagnose-window').hide();
  138. event.stopPropagation();
  139. })
  140. $('#diagnose-window .btn-ypsq').click(function(){
  141. $('#diagnose-window').hide();
  142. event.stopPropagation();
  143. })
  144. $('#cure-windows .btn-qr').click(function(){
  145. $('#cure-windows').hide();
  146. event.stopPropagation();
  147. })
  148. $('#cure-windows .btn-ypsq').click(function(){
  149. $('#cure-windows').hide();
  150. event.stopPropagation();
  151. })
  152. $('#ypsqsh-window .btn-tg').click(function(){
  153. $('#ypsqsh-window').hide();
  154. event.stopPropagation();
  155. })
  156. $('#ypsqsh-window .btn-bh').click(function(){
  157. $('#ypsqsh-window').hide();
  158. event.stopPropagation();
  159. })
  160. $('#finalcheck-plan-window .btn-yes').click(function(){
  161. $('#finalcheck-plan-window').hide();
  162. event.stopPropagation();
  163. })
  164. $('#finalcheck-plan-window .btn-no').click(function(){
  165. $('#finalcheck-plan-window').hide();
  166. event.stopPropagation();
  167. })
  168. //窗口滚动
  169. $('.window-body').scrollBar({
  170. barWidth: 0, //滚动条的宽度(这里根据需要写数值即可,不设置是10,即默认10px)
  171. position: "y", //写“x”代表只出水平滚动条,写“y”表示只出垂直滚动条,写“x,y”则出水平和垂直滚动条(只有在内容超出容器时才出现滚动条)
  172. wheelDis: 30 //滚轮滚动一次向下或向上滚动的距离,默认是15,可根据需要修改数值
  173. })