prescription-adjustment.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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}}" data-class="{{p.subjectClass}}">
  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 readonly="readonly" 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" style="padding-top: 17px;">规格:
  149. <span class="c-909090 j-format">{{p.drugFormat}}</span>
  150. </li>
  151. <li class="fl ml10 pt10">
  152. 次剂量:<i class="icon-jianshao c-vam mr5 noselect"></i>
  153. <input value="{{p.physicDose}}" type="text" placeholder="" class="j-medi-single form-control c-w80 c-display-ib c-vam">
  154. <i class="icon-xinzeng c-vam ml5 noselect"></i>
  155. <span class="j-dose-unit" data-unit="{{p.physicDoseUnit}}">{{p.physicDoseUnitName}}</span>
  156. </li>
  157. </ul>
  158. <ul class="clearfix">
  159. <li class="fl">天数:
  160. <div class="c-w140 c-vam c-display-ib">
  161. <div class="input-group ">
  162. <input value="{{p.dayCount}}" placeholder="请输入药品天数" type="text" class="j-selDate form-control c-display-ib c-w120" autocomplete="on">
  163. <div class="input-group-btn">
  164. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  165. </div>
  166. <!-- /btn-group -->
  167. </div>
  168. </div>
  169. </li>
  170. <li class="fl ml10">频次:
  171. <div class="c-w120 c-vam c-display-ib">
  172. <div class="input-group ">
  173. <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">
  174. <div class="input-group-btn">
  175. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  176. </div>
  177. <!-- /btn-group -->
  178. </div>
  179. </div>
  180. </li>
  181. <li class="fl ml10">用法:
  182. <div class="c-w120 c-vam c-display-ib">
  183. <div class="input-group ">
  184. <input value="{{p.usageName}}" data-id="{{p.drugUsage}}" placeholder="请输入用法" type="text" class="j-method form-control c-display-ib c-w120" autocomplete="on">
  185. <div class="input-group-btn">
  186. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  187. </div>
  188. <!-- /btn-group -->
  189. </div>
  190. </div>
  191. </li>
  192. <li class="fl ml10 pt7">总量:
  193. <span class="j-sumMedicine" data-name="{{p.drugNumUnitName}}" data-num="{{p.num}}" data-unit="{{p.drugNumUnit}}">{{p.num}}{{p.drugNumUnitName}}</span>
  194. </li>
  195. </ul>
  196. <i class="icon-shanchu"></i>
  197. </div>
  198. </div>
  199. {{/each}}
  200. </div>
  201. <div class="ibox">
  202. <div class="ibox-content">
  203. <div id="addDrugBtn" class="mt10 c-12b7f5 c-display-ib">
  204. <i class="icon-xinzeng c-vam ml5 mr5"></i>新增药品
  205. </div>
  206. </div>
  207. </div>
  208. <div class="ibox">
  209. <div class="mt15">
  210. <p class="c-333 c-f16 mb5">调整原因</p>
  211. </div>
  212. <div class="ibox-content">
  213. <ul id="adjustReason" class="clearfix">
  214. {{each reasonTypes as r i}}
  215. <li data-code="{{r.code}}" class="fl c-b-c12b7f5 c-border c-12b7f5 ptb5 plr20 c-b-r20 ml10 mt10">
  216. {{r.value}}
  217. </li>
  218. {{/each}}
  219. </ul>
  220. </div>
  221. <div class="plr10 pr">
  222. <textarea id="adjustReasonTextarea" class="c-wp100 mt10 c-h100 ptb10 plr10" calcWorld="200">{{prescriptionAdjust.reason}}</textarea>
  223. <span class="c-999 wordCount">{{(prescriptionAdjust.reason && prescriptionAdjust.reason.length)||0}}/200</span>
  224. </div>
  225. <div class="c-tac mb15 mt15">
  226. <button id="confirmBtn" type="button" class="btn btn-w-m btn-success mlr20">确认</button>
  227. <button id="backBtn" type="button" class="btn btn-w-m btn-danger mlr20">返回</button>
  228. </div>
  229. </div>
  230. </script>
  231. <script id="diagnosisTmpl" type="text/html">
  232. <li data-code="{{data.code}}" class="fl bc-12b7f5 c-fff ptb5 plr10 c-b-r5 ml10" data-json="{{data | toJson}}">
  233. {{data.name}}
  234. <i class="fa fa-close"></i>
  235. </li>
  236. </script>
  237. <script id="drugTmpl" type="text/html">
  238. <div class="ibox-content ">
  239. <div class="pb10 plr15 mtb10 bc-f5f5fa pr" >
  240. <ul class="clearfix">
  241. <li class="fl pt10">药品:
  242. <div class="c-w200 c-vam c-display-ib">
  243. <div class="input-group ">
  244. <input value="" placeholder="请输入药品名称或拼音首码" type="text" class="j-drugName form-control c-display-ib c-w120" autocomplete="on">
  245. <div class="input-group-btn">
  246. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  247. </div>
  248. <!-- /btn-group -->
  249. </div>
  250. </div>
  251. </li>
  252. <li class="fl ml10" style="padding-top: 17px;">规格:
  253. <span class="c-909090 j-format"></span>
  254. </li>
  255. <li class="fl ml10 pt10">
  256. 次剂量:<i class="icon-jianshao c-vam mr5 noselect"></i>
  257. <input type="text" placeholder="" class="j-medi-single form-control c-w80 c-display-ib c-vam">
  258. <i class="icon-xinzeng c-vam ml5 noselect"></i>
  259. <span class="j-dose-unit"></span>
  260. </li>
  261. </ul>
  262. <ul class="clearfix">
  263. <li class="fl">天数:
  264. <div class="c-w140 c-vam c-display-ib">
  265. <div class="input-group ">
  266. <input value="" placeholder="请输入药品天数" type="text" class="j-selDate form-control c-display-ib c-w120" autocomplete="on">
  267. <div class="input-group-btn">
  268. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  269. </div>
  270. <!-- /btn-group -->
  271. </div>
  272. </div>
  273. </li>
  274. <li class="fl ml10">频次:
  275. <div class="c-w120 c-vam c-display-ib">
  276. <div class="input-group ">
  277. <input value="" placeholder="请输入频次" type="text" class="form-control j-selFreq form-control c-display-ib c-w120" autocomplete="on">
  278. <div class="input-group-btn">
  279. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  280. </div>
  281. <!-- /btn-group -->
  282. </div>
  283. </div>
  284. </li>
  285. <li class="fl ml10">用法:
  286. <div class="c-w120 c-vam c-display-ib">
  287. <div class="input-group ">
  288. <input value="" data-code="" placeholder="请输入用法" type="text" class="j-method form-control c-display-ib c-w120" autocomplete="on">
  289. <div class="input-group-btn">
  290. <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
  291. </div>
  292. <!-- /btn-group -->
  293. </div>
  294. </div>
  295. </li>
  296. <li class="fl ml10 pt7">总量:<span class="j-sumMedicine"></span></li>
  297. </ul>
  298. <i class="icon-shanchu"></i>
  299. </div>
  300. </div>
  301. </script>
  302. <script src="js/jquery.min.js?v=2.1.4"></script>
  303. <script src="js/bootstrap.min.js?v=3.3.6"></script>
  304. <script src="js/content.min.js?v=1.0.0"></script>
  305. <script src="js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
  306. <script src="js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
  307. <script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
  308. <script src="js/plugins/toastr/toastr.min.js"></script>
  309. <script src="js/plugins/suggest/bootstrap-suggest.min.js"></script>
  310. <script src="js/plugins/pace/pace.min.js"></script>
  311. <script src="js/es6-promise.js"></script>
  312. <script src="js/underscore.js"></script>
  313. <script src="js/api-service.js"></script>
  314. <script src="js/management-api.js"></script>
  315. <script src="js/util.js"></script>
  316. <script src="js/template.js"></script>
  317. <script src="js/prescription-detail-api.js"></script>
  318. <script src="js/buz/prescription-adjustment.js"></script>
  319. </body>
  320. </html>