recipe.html 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
  3. <head>
  4. <th:block th:include="include :: header('处方登记列表')" />
  5. <th:block th:include="include :: layout-latest-css" />
  6. <th:block th:include="include :: ztree-css" />
  7. </head>
  8. <body class="gray-bg">
  9. <div class="ui-layout-center">
  10. <div class="container-div">
  11. <div class="row">
  12. <div class="col-sm-12 search-collapse">
  13. <div class="query-condition-container">
  14. <h4 class="query-condition-title">查询条件</h4>
  15. <div class="query-buttons">
  16. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  17. <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPre()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  18. </div>
  19. </div>
  20. <form id="user-form" class="customize-search-form">
  21. <div class="customize-form-group-container">
  22. <div class="customize-form-group">
  23. <label>患者信息:</label>
  24. <input type="text" class="styled-input" placeholder="请输入患者姓名或手机号" name="query"/>
  25. </div>
  26. <div class="customize-form-group">
  27. <label>销售单号:</label>
  28. <input type="text" class="styled-input" name="saleOrderNumber"/>
  29. </div>
  30. <div class="customize-form-group">
  31. <label>处方单号:</label>
  32. <input type="text" class="styled-input" name="prescriptionNumber"/>
  33. </div>
  34. <div class="customize-form-group">
  35. <label>处方类型</label>
  36. <select name="prescriptionType" th:with="type=${@dict.getType('sys_select_prescription_ype')}" class="styled-input">
  37. <option value="">全部</option>
  38. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  39. ></option>
  40. </select>
  41. </div>
  42. <div class="customize-form-group select-time">
  43. <label>处方登记日期:</label>
  44. <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="beginTime"/>
  45. <span>-</span>
  46. <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime"/>
  47. </div>
  48. <div class="customize-form-group">
  49. <label>订单状态</label>
  50. <select name="status" th:with="type=${@dict.getType('sys_select_order_status')}" class="styled-input">
  51. <option value="">全部</option>
  52. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  53. ></option>
  54. </select>
  55. </div>
  56. </div>
  57. </form>
  58. </div>
  59. <div class="btn-group-sm" id="toolbar" role="group">
  60. <!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="dtp:recipe:add">-->
  61. <!-- <i class="fa fa-plus"></i> 处方登记APP-->
  62. <!-- </a>-->
  63. <a class="btn btn-success" onclick="$.operate.addTab2()" shiro:hasPermission="dtp:recipe:add">
  64. <i class="fa fa-plus"></i> 新建登记
  65. </a>
  66. </div>
  67. <div class="col-sm-12 select-table table-striped" style="width: 100%; overflow-x: hidden;">
  68. <table id="bootstrap-table" class="fixed-layout-table"></table>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <th:block th:include="include :: footer" />
  74. <th:block th:include="include :: layout-latest-js" />
  75. <th:block th:include="include :: bootstrap-table-fixed-columns-js" />
  76. <th:block th:include="include :: ztree-js" />
  77. <script th:inline="javascript">
  78. var editFlag = [[${@permission.hasPermi('system:user:edit')}]];
  79. var removeFlag = [[${@permission.hasPermi('system:user:remove')}]];
  80. var prefix = ctx + "dtp/recipe";
  81. $(function() {
  82. var panehHidden = false;
  83. if ($(this).width() < 1590) {
  84. panehHidden = true;
  85. }
  86. $('body').layout({ initClosed: panehHidden, west__size: 185, resizeWithWindow: false });
  87. // 回到顶部绑定
  88. if ($.fn.toTop !== undefined) {
  89. var opt = {
  90. win:$('.ui-layout-center'),
  91. doc:$('.ui-layout-center')
  92. };
  93. $('#scroll-up').toTop(opt);
  94. }
  95. queryUserList();
  96. });
  97. function queryUserList() {
  98. var options = {
  99. url: prefix + "/list",
  100. viewUrl: prefix + "/viewInfo/{id}",
  101. createUrl: prefix + "/add",
  102. createUrl2: prefix + "/newRecipe",
  103. updateUrl: prefix + "/viewEditInfo/{id}",
  104. removeUrl: prefix + "/remove",
  105. exportUrl: prefix + "/export",
  106. //importUrl: prefix + "/importData",
  107. importTemplateUrl: prefix + "/importTemplate",
  108. sortName: "id",
  109. sortOrder: "desc",
  110. modalName: "处方登记信息",
  111. fitColumns: true,
  112. striped: true,
  113. autoRowHeight: true,
  114. rowNumbers: true,
  115. showFooter:true, //是否显示表格底部区域。
  116. clickToSelect: true, //是否启用点击行时选中整行的功能。
  117. singleSelect: true, //是否仅允许选择一行
  118. fixedColumns: true,
  119. //fixedNumber: 3,
  120. fixedRightNumber: 1,
  121. columns: [{
  122. checkbox: true
  123. }, {field: "id",title: "ID",visible: false},
  124. { field: "mdmCode", title: "药品编码" },
  125. { field: "administrationMethod", title: "给药方式" },
  126. { field: "productName", title: "商品名称" },
  127. { field: "genericName", title: "通用名称" },
  128. { field: "specification", title: "规格" },
  129. { field: "prescriptionNumber", title: "处方单号" },
  130. { field: "dvalueDays", title: "剂量天数" },
  131. { field: "prescriptionNumber", title: "处方单号" },
  132. { field: "salesOrderNumber", title: "销售单号" },
  133. { field: "hospital", title: "医院" },
  134. { field: "department", title: "科室" },
  135. { field: "prescribingDoctor", title: "处方医生" },
  136. { field: "attendingDoctor", title: "主管医生" },
  137. { field: "patientName", title: "患者姓名" },
  138. { field: "gender", title: "性别", formatter: function(value, row, index) {
  139. switch (value) {
  140. case 0: return "男";
  141. case 1: return "女";
  142. default: return "未知";
  143. }
  144. }
  145. },
  146. { field: "age", title: "年龄" },
  147. { field: "patientPhone", title: "患者手机号" },
  148. { field: "storeName", title: "建档门店", visible: false },
  149. { field: "registrant", title: "登记人" },
  150. { field: "reviewingName", title: "审核药师姓名" },
  151. { field: "prescriptionType", title: "处方类型", formatter: function(value, row, index) {
  152. switch (value) {
  153. case 1: return "电子处方";
  154. case 2: return "纸质处方";
  155. default: return "";
  156. }
  157. }
  158. },
  159. { field: "status", title: "状态", formatter: function(value, row, index) {
  160. switch (value) {
  161. case 1: return "订单已完成";
  162. case 2: return "待上传处方";
  163. case 3: return "待确认信息";
  164. case 4: return "待处方登记";
  165. case 5: return "待订单销售";
  166. case 6: return "待绑定患者";
  167. case 7: return "处方已完成";
  168. case 8: return "订单已退款";
  169. default: return "待确认信息";
  170. }
  171. }
  172. },
  173. { field: "createdTime", title: "创建时间" },
  174. { field: "updatedTime", title: "最后更新时间", visible: false },
  175. { field: "prescriptionImageUrl", title: "处方图片URL", visible: false },
  176. { field: "invoiceImageUrl", title: "发票图片URL", visible: false },
  177. { field: "prescriptionIssueDate", title: "处方开具日期" },
  178. { field: "saleDate", title: "销售日期" },
  179. { field: "registrationDate", title: "处方登记日期" },
  180. { field: "drugVarietyCount", title: "药品品种数", visible: false },
  181. { field: "drugQuantity", title: "处方取药数量" },
  182. { field: "invoiceCode", title: "发票编码", visible: false },
  183. { field: "drugsLinkId", title: "处方关联的处方购药药表ID", visible: false },
  184. { field: "reviewStatus", title: "处方审核状态", formatter: function(value, row, index) {
  185. switch (value) {
  186. case 0: return "审核不通过";
  187. case 1: return "审核通过";
  188. case 2: return "待审核";
  189. default: return "待审核";
  190. }
  191. }
  192. },
  193. { field: "source", title: "处方来源", visible: false },
  194. { field: "drugRoute", title: "用药途径", visible: false },
  195. { field: "storeId", title: "建档门店ID", visible: false },
  196. { field: "remarks", title: "备注", visible: false },
  197. {
  198. title: '操作',
  199. align: 'center',
  200. width: 165,
  201. formatter: function(value, row, index) {
  202. if (row.id) {
  203. var actions = [];
  204. actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editTab(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
  205. actions.push('<a class="btn btn-warning btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.view(\'' + row.id + '\')"><i class="fa fa-eye"></i>详情</a> ');
  206. actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a> ');
  207. return actions.join('');
  208. } else {
  209. return "";
  210. }
  211. }
  212. }]
  213. };
  214. $.table.init(options);
  215. }
  216. /* 自定义重置-表单重置/隐藏框/树节点选择色/搜索 */
  217. function resetPre() {
  218. resetDate();
  219. $("#user-form")[0].reset();
  220. $("#deptId").val("");
  221. $("#parentId").val("");
  222. $(".curSelectedNode").removeClass("curSelectedNode");
  223. $.table.search();
  224. }
  225. </script>
  226. </body>
  227. <style>
  228. .modal {
  229. display: none;
  230. position: fixed;
  231. z-index: 1;
  232. left: 0;
  233. top: 0;
  234. width: 100%;
  235. height: 100%;
  236. overflow: auto;
  237. background-color: rgba(0,0,0,0.4);
  238. }
  239. .modalbudan{
  240. display: none;
  241. }
  242. .modal-content {
  243. background-color: #fefefe;
  244. margin: 15% auto;
  245. padding: 20px;
  246. border: 1px solid #888;
  247. width: 90%;
  248. }
  249. .close {
  250. color: #aaa;
  251. float: right;
  252. font-size: 28px;
  253. font-weight: bold;
  254. }
  255. .close:hover,
  256. .close:focus {
  257. color: black;
  258. text-decoration: none;
  259. cursor: pointer;
  260. }
  261. .error-message {
  262. color: red;
  263. display: none;
  264. }
  265. </style>
  266. </html>