prescription-adjustment.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>调整处方</title>
  7. <meta name="keywords" content="">
  8. <meta name="description" content="">
  9. <link rel="shortcut icon" href="favicon.ico">
  10. <link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
  11. <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
  12. <link href="css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
  13. <link href="css/animate.min.css" rel="stylesheet">
  14. <link href="css/style.css?v=4.1.0" rel="stylesheet">
  15. <link href="css/plugins/toastr/toastr.min.css" rel="stylesheet">
  16. <style>
  17. .ibox-content { padding: 0; }
  18. .ibox { margin-bottom: 0; }
  19. .icon-tianjia {
  20. display: inline-block;
  21. width: 15px;
  22. height: 15px;
  23. background: url(img/tianjia_icon.png) no-repeat;
  24. background-size: 15px;
  25. cursor: pointer;
  26. }
  27. .noselect {
  28. -webkit-touch-callout: none; /* iOS Safari */
  29. -webkit-user-select: none; /* Chrome/Safari/Opera */
  30. -khtml-user-select: none; /* Konqueror */
  31. -moz-user-select: none; /* Firefox */
  32. -ms-user-select: none; /* Internet Explorer/Edge */
  33. user-select: none; /* Non-prefixed version, currently */
  34. }
  35. .fa-close {
  36. cursor: pointer;
  37. }
  38. .icon-xinzeng {
  39. display: inline-block;
  40. width: 20px;
  41. height: 20px;
  42. background: url(img/xinzeng_icon.png) no-repeat;
  43. background-size: 20px;
  44. cursor: pointer;
  45. }
  46. .icon-jianshao {
  47. display: inline-block;
  48. width: 20px;
  49. height: 20px;
  50. background: url(img/jianshao_icon.png) no-repeat;
  51. background-size: 20px;
  52. cursor: pointer;
  53. }
  54. .icon-shanchu {
  55. position: absolute;
  56. top: 50%;
  57. right: 10px;
  58. width: 20px;
  59. height: 20px;
  60. margin-top: -10px;
  61. background: url(img/qingchu_icon.png) no-repeat;
  62. background-size: 20px;
  63. cursor: pointer;
  64. }
  65. ul { list-style: none; padding-left: 0; }
  66. #adjustReason li{
  67. cursor: pointer;
  68. }
  69. #adjustReason li.active {
  70. background-color: #12b7f5;
  71. color: #fff;
  72. }
  73. .wordCount {
  74. position:absolute;
  75. bottom: 5px;
  76. right: 15px;
  77. }
  78. #addDrugBtn {
  79. cursor: pointer;
  80. }
  81. #diagnosisInput {
  82. display: none;
  83. height: 30px;
  84. border: 0;
  85. }
  86. .diagnosis-wrap {
  87. display: none;
  88. }
  89. </style>
  90. </head>
  91. <body class="white-bg plr5">
  92. <div id="main"></div>
  93. <script id="detailTmpl" type="text/html">
  94. <div class="ibox">
  95. <div class="mt15">
  96. <p class="c-333 c-f16 mb5">临床诊断</p>
  97. </div>
  98. <div class="ibox-content">
  99. <div class="pt10">
  100. <span class="c-999 c-vam c-display-ib mb10">诊断结果:</span>
  101. <div class="clearfix c-display-ib c-vam">
  102. <ul id="diagnosis" class="fl">
  103. {{each diagnosis as d i}}
  104. <li data-code="{{d.code}}" class="fl bc-12b7f5 c-fff ptb5 plr10 c-b-r5 ml10" data-json="{{d | toJson}}">
  105. {{d.name}}
  106. <i class="fa fa-close"></i>
  107. </li>
  108. {{/each}}
  109. </ul>
  110. <div class="fl ml10 plr5 c-12b7f5 diagnosis-wrap" style="
  111. border: 1px solid #12b7f5;
  112. border-radius: 5px;
  113. "><span id="placeholdText">请输入临床诊断名称</span>
  114. <div class="input-group ">
  115. <input id="diagnosisInput" value="" type="text" class="form-control c-display-ib c-w120" autocomplete="on">
  116. <div class="input-group-btn">
  117. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  118. </div>
  119. <!-- /btn-group -->
  120. </div>
  121. </div>
  122. <div id="addDiagnosisBtn" class="mb10 fl c-b-c12b7f5 c-border c-12b7f5 c-fff ptb5 plr15 c-b-r5 ml20">
  123. <i class="icon-tianjia c-vam mr5"></i>添加
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <div id="drugs" class="ibox">
  130. <div class="mt15">
  131. <p class="c-333 c-f16 mb5">RP</p>
  132. </div>
  133. {{each prescriptionInfo as p i}}
  134. <div class="ibox-content " data-json="{{p | toJson}}">
  135. <div class="pb10 plr15 mtb10 bc-f5f5fa pr" >
  136. <ul class="clearfix">
  137. <li class="fl pt10">药品:
  138. <div class="c-w200 c-vam c-display-ib">
  139. <div class="input-group ">
  140. <input value="{{p.drugName}}" placeholder="请输入药品名称或拼音首码" type="text" class="j-drugName form-control c-display-ib c-w120" autocomplete="on">
  141. <div class="input-group-btn">
  142. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  143. </div>
  144. <!-- /btn-group -->
  145. </div>
  146. </div>
  147. </li>
  148. <li class="fl ml10 pt10">
  149. 次剂量:<i class="icon-jianshao c-vam mr5 noselect"></i>
  150. <input value="{{p.physicDose}}" type="text" placeholder="" class="j-medi-single form-control c-w80 c-display-ib c-vam">
  151. <i class="icon-xinzeng c-vam ml5 noselect"></i>
  152. <span class="j-dose-unit" data-unit="{{p.physicDoseUnit}}">{{p.physicDoseUnitName}}</span>
  153. </li>
  154. <li class="fl ml10 pt10">天数:
  155. <div class="c-w140 c-vam c-display-ib">
  156. <div class="input-group ">
  157. <input value="{{p.dayCount}}" placeholder="请输入药品天数" type="text" class="j-selDate form-control c-display-ib c-w120" autocomplete="on">
  158. <div class="input-group-btn">
  159. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  160. </div>
  161. <!-- /btn-group -->
  162. </div>
  163. </div>
  164. </li>
  165. </ul>
  166. <ul class="clearfix">
  167. <li class="fl">频次:
  168. <div class="c-w120 c-vam c-display-ib">
  169. <div class="input-group ">
  170. <input value="{{p.drugRateName}}" data-code="{{p.drugRate}}" placeholder="请输入频次" type="text" class="form-control j-selFreq form-control c-display-ib c-w120" autocomplete="on">
  171. <div class="input-group-btn">
  172. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  173. </div>
  174. <!-- /btn-group -->
  175. </div>
  176. </div>
  177. </li>
  178. <li class="fl ml10">用法:
  179. <div class="c-w120 c-vam c-display-ib">
  180. <div class="input-group ">
  181. <input value="{{p.usageName}}" data-id="{{p.drugUsage}}" placeholder="请输入用法" type="text" class="j-method form-control c-display-ib c-w120" autocomplete="on">
  182. <div class="input-group-btn">
  183. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  184. </div>
  185. <!-- /btn-group -->
  186. </div>
  187. </div>
  188. </li>
  189. <li class="fl ml10 pt7">总量:
  190. <span class="j-sumMedicine" data-name="{{p.drugNumUnitName}}" data-num="{{p.num}}" data-unit="{{p.drugNumUnit}}">{{p.num}}{{p.drugNumUnitName}}</span>
  191. </li>
  192. </ul>
  193. <i class="icon-shanchu"></i>
  194. </div>
  195. </div>
  196. {{/each}}
  197. </div>
  198. <div class="ibox">
  199. <div class="ibox-content">
  200. <div id="addDrugBtn" class="mt10 c-12b7f5 c-display-ib">
  201. <i class="icon-xinzeng c-vam ml5 mr5"></i>新增药品
  202. </div>
  203. </div>
  204. </div>
  205. <div class="ibox">
  206. <div class="mt15">
  207. <p class="c-333 c-f16 mb5">调整原因</p>
  208. </div>
  209. <div class="ibox-content">
  210. <ul id="adjustReason" class="clearfix">
  211. {{each reasonTypes as r i}}
  212. <li data-code="{{r.code}}" class="fl c-b-c12b7f5 c-border c-12b7f5 ptb5 plr20 c-b-r20 ml10 mt10">
  213. {{r.value}}
  214. </li>
  215. {{/each}}
  216. </ul>
  217. </div>
  218. <div class="plr10 pr">
  219. <textarea id="adjustReasonTextarea" class="c-wp100 mt10 c-h100 ptb10 plr10" calcWorld="200">{{prescriptionAdjust.reason}}</textarea>
  220. <span class="c-999 wordCount">{{(prescriptionAdjust.reason && prescriptionAdjust.reason.length)||0}}/200</span>
  221. </div>
  222. <div class="c-tac mb15 mt15">
  223. <button id="confirmBtn" type="button" class="btn btn-w-m btn-success mlr20">确认</button>
  224. <button id="backBtn" type="button" class="btn btn-w-m btn-danger mlr20">返回</button>
  225. </div>
  226. </div>
  227. </script>
  228. <script id="diagnosisTmpl" type="text/html">
  229. <li data-code="{{data.code}}" class="fl bc-12b7f5 c-fff ptb5 plr10 c-b-r5 ml10" data-json="{{data | toJson}}">
  230. {{data.name}}
  231. <i class="fa fa-close"></i>
  232. </li>
  233. </script>
  234. <script id="drugTmpl" type="text/html">
  235. <div class="ibox-content ">
  236. <div class="pb10 plr15 mtb10 bc-f5f5fa pr" >
  237. <ul class="clearfix">
  238. <li class="fl pt10">药品:
  239. <div class="c-w200 c-vam c-display-ib">
  240. <div class="input-group ">
  241. <input value="" placeholder="请输入药品名称或拼音首码" type="text" class="j-drugName form-control c-display-ib c-w120" autocomplete="on">
  242. <div class="input-group-btn">
  243. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  244. </div>
  245. <!-- /btn-group -->
  246. </div>
  247. </div>
  248. </li>
  249. <li class="fl ml10 pt10">
  250. 次剂量:<i class="icon-jianshao c-vam mr5 noselect"></i>
  251. <input type="text" placeholder="" class="j-medi-single form-control c-w80 c-display-ib c-vam">
  252. <i class="icon-xinzeng c-vam ml5 noselect"></i>
  253. <span class="j-dose-unit"></span>
  254. </li>
  255. <li class="fl ml10 pt10">天数:
  256. <div class="c-w140 c-vam c-display-ib">
  257. <div class="input-group ">
  258. <input value="" placeholder="请输入药品天数" type="text" class="j-selDate form-control c-display-ib c-w120" autocomplete="on">
  259. <div class="input-group-btn">
  260. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  261. </div>
  262. <!-- /btn-group -->
  263. </div>
  264. </div>
  265. </li>
  266. </ul>
  267. <ul class="clearfix">
  268. <li class="fl">频次:
  269. <div class="c-w120 c-vam c-display-ib">
  270. <div class="input-group ">
  271. <input value="" placeholder="请输入频次" type="text" class="form-control j-selFreq form-control c-display-ib c-w120" autocomplete="on">
  272. <div class="input-group-btn">
  273. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  274. </div>
  275. <!-- /btn-group -->
  276. </div>
  277. </div>
  278. </li>
  279. <li class="fl ml10">用法:
  280. <div class="c-w120 c-vam c-display-ib">
  281. <div class="input-group ">
  282. <input value="" data-code="" placeholder="请输入用法" type="text" class="j-method form-control c-display-ib c-w120" autocomplete="on">
  283. <div class="input-group-btn">
  284. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  285. </div>
  286. <!-- /btn-group -->
  287. </div>
  288. </div>
  289. </li>
  290. <li class="fl ml10 pt7">总量:<span class="j-sumMedicine"></span></li>
  291. </ul>
  292. <i class="icon-shanchu"></i>
  293. </div>
  294. </div>
  295. </script>
  296. <script src="js/jquery.min.js?v=2.1.4"></script>
  297. <script src="js/bootstrap.min.js?v=3.3.6"></script>
  298. <script src="js/content.min.js?v=1.0.0"></script>
  299. <script src="js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
  300. <script src="js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
  301. <script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
  302. <script src="js/plugins/toastr/toastr.min.js"></script>
  303. <script src="js/plugins/suggest/bootstrap-suggest.min.js"></script>
  304. <script src="js/plugins/pace/pace.min.js"></script>
  305. <script src="js/es6-promise.js"></script>
  306. <script src="js/underscore.js"></script>
  307. <script src="js/api-service.js"></script>
  308. <script src="js/management-api.js"></script>
  309. <script src="js/util.js"></script>
  310. <script src="js/template.js"></script>
  311. <script src="js/prescription-detail-api.js"></script>
  312. <script src="js/buz/prescription-adjustment.js"></script>
  313. </body>
  314. </html>