allDrugsInfo.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
  3. <head>
  4. <meta charset="UTF-8">
  5. <th:block th:include="include :: header('患者管理品')" />
  6. <th:block th:include="include :: layout-latest-css" />
  7. <th:block th:include="include :: ztree-css" />
  8. </head>
  9. <body><div class="main-content">
  10. <div class="row">
  11. <div class="col-sm-12 search-collapse">
  12. <div class="query-condition-container">
  13. <h4 class="query-condition-title">查询条件</h4>
  14. <div class="query-buttons">
  15. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  16. <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPre()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  17. </div>
  18. </div>
  19. <form id="tag-form" class="customize-search-form">
  20. <div class="customize-form-group-container">
  21. <div class="customize-form-group">
  22. <label>药品:</label>
  23. <input type="text" class="styled-input" placeholder="请输入MDM编码或药品商品名/通用名" name="query" style="width: 350px;"/>
  24. </div>
  25. <div class="customize-form-group">
  26. <label>厂家简称:</label>
  27. <input type="text" class="styled-input" placeholder="请输入厂家简称" name="manufacturerShortName" style="width: 350px;"/>
  28. </div>
  29. </div>
  30. </form>
  31. </div>
  32. </div>
  33. <div class="row">
  34. <div class="col-sm-12 select-table table-striped">
  35. <table id="bootstrap-table"></table>
  36. </div>
  37. </div>
  38. </div>
  39. <th:block th:include="include :: footer" />
  40. <script th:inline="javascript">
  41. var viewFlag = [[${@permission.hasPermi('dtp:configInfo:list')}]];
  42. var prefix = ctx + "yppz/drugConfig";
  43. $(function() {
  44. var panehHidden = false;
  45. if ($(this).width() < 1590) {
  46. panehHidden = true;
  47. }
  48. //$('body').layout({ initClosed: panehHidden, west__size: 185, resizeWithWindow: false });
  49. // 回到顶部绑定
  50. // if ($.fn.toTop !== undefined) {
  51. // var opt = {
  52. // win:$('.ui-layout-center'),
  53. // doc:$('.ui-layout-center')
  54. // };
  55. // $('#scroll-up').toTop(opt);
  56. // }
  57. queryUserList();
  58. });
  59. function queryUserList() {
  60. var options = {
  61. url: prefix + "/getAllDrugs",
  62. viewUrl: prefix + "/view/{id}",
  63. exportUrl: prefix + "/export",
  64. //sortName: "createTime",
  65. //sortOrder: "desc",
  66. modalName: "患者管理品",
  67. showFooter:true, //是否显示表格底部区域。
  68. clickToSelect: true, //是否启用点击行时选中整行的功能。
  69. singleSelect: true, //是否仅允许选择一行
  70. fixedColumns: true,
  71. //fixedNumber: 3,
  72. //fixedRightNumber: 1,
  73. columns: [{
  74. checkbox: true
  75. },
  76. {
  77. field: "id",
  78. title: "id",
  79. align: 'center', visible: false
  80. },
  81. {
  82. "field": "mdmCode",
  83. "title": "MDM编码"
  84. },{
  85. "field": "productName",
  86. "title": "药品商品名"
  87. },{
  88. "field": "genericName",
  89. "title": "药品通用名"
  90. },{
  91. "field": "specification",
  92. "title": "规格"
  93. },{
  94. "field": "manufacturerShortName",
  95. "title": "厂家简称"
  96. },
  97. {
  98. "field": "manufacturer",
  99. "title": "生产厂家"
  100. },
  101. {
  102. "field": "packaging",
  103. "title": "包装"
  104. },
  105. {
  106. "field": "isFollowUpManaged",
  107. "title": "是否随访管理品 (1: 是, 0: 否)",
  108. align: 'center', visible: false
  109. },
  110. {
  111. "field": "isColdChainManaged",
  112. "title": "是否冷链管理品 (1: 是, 0: 否)",
  113. align: 'center', visible: false
  114. },
  115. {
  116. "field": "isRegisteredManaged",
  117. "title": "是否登记管理品 (1: 是, 0: 否)",
  118. align: 'center', visible: false
  119. },
  120. {
  121. "field": "isCharityAidManaged",
  122. "title": "是否慈善援助管理品 (1: 是, 0: 否)",
  123. align: 'center', visible: false
  124. },
  125. {
  126. "field": "administrationMethod",
  127. "title": "给药方式",
  128. align: 'center', visible: false
  129. },
  130. {
  131. "field": "enterpriseFlowManagement",
  132. "title": "企业流向管理方式",
  133. align: 'center', visible: false
  134. },
  135. {
  136. "field": "dosage_max",
  137. "title": "最大剂量数量",
  138. align: 'center', visible: true
  139. },
  140. {
  141. "field": "dosage_min",
  142. "title": "最小剂量数量",
  143. align: 'center', visible: true
  144. },
  145. {
  146. "field": "unit_max",
  147. "title": "最大剂量单位",
  148. align: 'center', visible: true
  149. },
  150. {
  151. "field": "unit_min",
  152. "title": "最小剂量单位",
  153. align: 'center', visible: true
  154. },
  155. {
  156. "field": "unit_normal",
  157. "title": "常见计量单位",
  158. align: 'center', visible: true
  159. },
  160. {
  161. "field": "dosage_normal",
  162. "title": "常见计量数量",
  163. align: 'center', visible: true
  164. },
  165. {
  166. "field": "packing_value",
  167. "title": "包装单位值",
  168. align: 'center', visible: true
  169. },
  170. {
  171. "field": "packing_unit",
  172. "title": "包装单位",
  173. align: 'center', visible: true
  174. },
  175. {
  176. "field": "indicationDescription",
  177. "title": "说明书适应症",
  178. align: 'center', visible: false
  179. },
  180. {
  181. "field": "dosageAndAdministration",
  182. "title": "用法用量",
  183. align: 'center', visible: false
  184. },
  185. // {
  186. // "field": "isColdChainDrug",
  187. // "title": "是否冷链药品(1: 是, 0: 否)"
  188. // },
  189. // {
  190. // "field": "dtpProduct",
  191. // "title": "DTP商品(D)(1: 是, 0: 否)"
  192. // },
  193. // {
  194. // "field": "usageMethod",
  195. // "title": "用药方法"
  196. // },
  197. {
  198. "field": "creator",
  199. "title": "创建人",
  200. align: 'center', visible: false
  201. },
  202. {
  203. "field": "createTime",
  204. "title": "创建时间",
  205. align: 'center', visible: false
  206. },
  207. {
  208. "field": "updater",
  209. "title": "更新人",
  210. align: 'center', visible: false
  211. },
  212. {
  213. "field": "updatedTime",
  214. "title": "更新时间"
  215. },
  216. // {
  217. // "field": "marketingAuthorizationHolder",
  218. // "title": "上市许可证持有人"
  219. // },
  220. // {
  221. // "field": "entrustedManufacturer",
  222. // "title": "委托厂家"
  223. // },
  224. // {
  225. // "field": "productionLicenseNumber",
  226. // "title": "生产许可证号/备案"
  227. // },
  228. // {
  229. // "field": "formulationSpecification",
  230. // "title": "制剂规格"
  231. // },
  232. // {
  233. // "field": "dosageFormCode",
  234. // "title": "剂型代码"
  235. // },
  236. // {
  237. // "field": "approvalNumber",
  238. // "title": "批准文号1"
  239. // },
  240. // {
  241. // "field": "approvalNumberExpiryDate",
  242. // "title": "批准文号1有效期"
  243. // },
  244. // {
  245. // "field": "storageConditions",
  246. // "title": "存储条件"
  247. // },
  248. // {
  249. // "field": "targetPopulation",
  250. // "title": "用药人群"
  251. // },
  252. // {
  253. // "field": "genderRestrictions",
  254. // "title": "用药性别"
  255. // },
  256. // {
  257. // "field": "dosageAndAdministration",
  258. // "title": "用法用量"
  259. // },
  260. // {
  261. // "field": "indications",
  262. // "title": "适应症"
  263. // },
  264. // {
  265. // "field": "drugInteractions",
  266. // "title": "药物相互作用"
  267. // },
  268. // {
  269. // "field": "adverseReactions",
  270. // "title": "不良反应"
  271. // },
  272. // {
  273. // "field": "contraindications",
  274. // "title": "禁忌症"
  275. // },
  276. // {
  277. // "field": "precautions",
  278. // "title": "注意事项"
  279. // },
  280. // {
  281. // "field": "pregnancyAndLactation",
  282. // "title": "孕妇及哺乳期妇女用药"
  283. // },
  284. // {
  285. // "field": "pediatricUsage",
  286. // "title": "儿童用药"
  287. // },
  288. // {
  289. // "field": "geriatricUsage",
  290. // "title": "老年患者用药"
  291. // },
  292. // {
  293. // "field": "drugOverdose",
  294. // "title": "药物过量"
  295. // },
  296. // {
  297. // "field": "clinicalTrials",
  298. // "title": "临床试验"
  299. // },
  300. // {
  301. // "field": "pharmacologyToxicology",
  302. // "title": "药理毒理"
  303. // },
  304. // {
  305. // "field": "pharmacokinetics",
  306. // "title": "药代动力学"
  307. // },
  308. {
  309. "field": "status",
  310. "title": "状态",
  311. formatter: function(value, row, index) {
  312. switch (value) {
  313. case 0:
  314. return '停用';
  315. break;
  316. case 1:
  317. return '启用';
  318. break;
  319. default:
  320. return '-';
  321. }
  322. }
  323. }]
  324. };
  325. $.table.init(options);
  326. }
  327. /* 自定义重置-表单重置/隐藏框/树节点选择色/搜索 */
  328. function resetPre() {
  329. resetDate();
  330. $("#tag-form")[0].reset();
  331. $("#deptId").val("");
  332. $("#parentId").val("");
  333. $(".curSelectedNode").removeClass("curSelectedNode");
  334. $.table.search();
  335. }
  336. /* 添加用户-选择用户-提交(子页面调用父页面形式) */
  337. function submitHandler(index, layero) {
  338. var rows = $.table.selectFirstColumns();
  339. if (rows.length == 0) {
  340. $.modal.alertWarning("请至少选择一条记录");
  341. return;
  342. }
  343. $.modal.close();
  344. // 父页面的方法
  345. // activeWindow().selectUsers();
  346. // 父页面的变量
  347. activeWindow().$('#userids').html('我是通过方式一来的:' + rows.join());
  348. }
  349. /* 添加用户-选择用户-提交(回调形式-父页面调用子页面) */
  350. function getSelections() {
  351. return $.table.selectFirstColumns();
  352. }
  353. function selectTableObject() {
  354. var productName = $.table.selectColumns('productName');
  355. var mdmCode = $.table.selectColumns('mdmCode');
  356. var genericName = $.table.selectColumns('genericName');
  357. var specification = $.table.selectColumns('specification');
  358. var packaging = $.table.selectColumns('packaging');
  359. var manufacturerShortName = $.table.selectColumns('manufacturerShortName');
  360. var isFollowUpManaged = $.table.selectColumns('isFollowUpManaged');
  361. var isColdChainManaged = $.table.selectColumns('isColdChainManaged');
  362. var isRegisteredManaged = $.table.selectColumns('isRegisteredManaged');
  363. var isCharityAidManaged = $.table.selectColumns('isCharityAidManaged');
  364. var administrationMethod = $.table.selectColumns('administrationMethod');
  365. var dosageAndAdministration = $.table.selectColumns('dosageAndAdministration');
  366. var indicationDescription = $.table.selectColumns('indicationDescription');
  367. var dosage_max= $.table.selectColumns('dosage_max');
  368. var dosage_min= $.table.selectColumns('dosage_min');
  369. var dosage_normal= $.table.selectColumns('dosage_normal');
  370. var unit_normal= $.table.selectColumns('unit_normal');
  371. var unit_max= $.table.selectColumns('unit_max');
  372. var unit_min= $.table.selectColumns('unit_min');
  373. var packing_unit= $.table.selectColumns('packing_unit');
  374. var packing_value= $.table.selectColumns('packing_value');
  375. var productId = $.table.selectColumns('id');
  376. var column = [{productName:productName,genericName:genericName,
  377. mdmCode:mdmCode,specification:specification,
  378. packaging:packaging,manufacturerShortName:manufacturerShortName,
  379. isFollowUpManaged:isFollowUpManaged,isColdChainManaged:isColdChainManaged,
  380. isRegisteredManaged:isRegisteredManaged,isCharityAidManaged:isCharityAidManaged,
  381. administrationMethod:administrationMethod,indicationDescription:indicationDescription,
  382. dosageAndAdministration:dosageAndAdministration,
  383. dosage_max:dosage_max,dosage_min:dosage_min,dosage_normal:dosage_normal,
  384. unit_normal:unit_normal,unit_max:unit_max,unit_min:unit_min,
  385. packing_unit:packing_unit,packing_value:packing_value,
  386. productId:productId}];
  387. return column;
  388. }
  389. /*回调返回所有的选中行数据*/
  390. function selectColumns2() {
  391. return $.table.selectColumns2();
  392. }
  393. $("#bootstrap-table").on("check.bs.table check-all.bs.table uncheck.bs.table uncheck-all.bs.table", function (e, rowsAfter, rowsBefore) {
  394. var rows = $.common.equals("uncheck-all", e.type) ? rowsBefore : rowsAfter;
  395. var rowIds = $.table.affectedRowIds(rows);
  396. $("#rowIds").val(rowIds);
  397. });
  398. </script>
  399. </body>
  400. </html>