|
@@ -0,0 +1,293 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
|
+<head>
|
|
|
+ <th:block th:include="include :: header('档案管理')" />
|
|
|
+ <th:block th:include="include :: layout-latest-css" />
|
|
|
+ <th:block th:include="include :: ztree-css" />
|
|
|
+</head>
|
|
|
+<style>
|
|
|
+ /* 设置 ul 的基本样式 */
|
|
|
+ ul {
|
|
|
+ list-style-type: none; /* 去掉项目符号 */
|
|
|
+ padding: 0; /* 去掉默认的内边距 */
|
|
|
+ display: grid; /* 使用网格布局 */
|
|
|
+ grid-template-columns: repeat(5, 1fr); /* 设置三列 */
|
|
|
+ }
|
|
|
+ ul-list ul{
|
|
|
+ list-style-type: none; /* 去掉项目符号 */
|
|
|
+ padding: 0; /* 去掉默认的内边距 */
|
|
|
+ display: grid; /* 使用网格布局 */
|
|
|
+ grid-template-columns: repeat(4, 1fr); /* 设置三列 */
|
|
|
+ }
|
|
|
+ ul-list ul li{
|
|
|
+ /*padding: 10px;*/ /* 内边距 */
|
|
|
+ text-align: left; /* 文本居中 */
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 设置 li 的基本样式 */
|
|
|
+ li {
|
|
|
+ /*background-color: lightblue; *//* 背景颜色 */
|
|
|
+ /*padding: 1px; !* 内边距 *!*/
|
|
|
+ text-align: right; /* 文本居中 */
|
|
|
+ }
|
|
|
+</style>
|
|
|
+
|
|
|
+<body class="gray-bg">
|
|
|
+
|
|
|
+ <div class="ui-layout-center">
|
|
|
+ <div class="container-div">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-sm-12 search-collapse" >
|
|
|
+ <form id="archives-form">
|
|
|
+ <input type="hidden" id="deptId" name="deptId">
|
|
|
+ <input type="hidden" id="parentId" name="parentId">
|
|
|
+
|
|
|
+ <div class="select-list" >
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ 患者信息:<input type="text" class="styled-input" name="name"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 药品:<input type="text" class="styled-input" name="genericName"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 是否接受随访:
|
|
|
+ <select name="acceptFollowUp" id="acceptFollowUpSelect" class="styled-input" th:with="type=${@dict.getType('sys_select_yes_no')}">
|
|
|
+ <option value="">所有</option>
|
|
|
+ <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
|
|
|
+ </select>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 档案是否完善:
|
|
|
+ <select name="archiveCompleteStatus" class="styled-input" th:with="type=${@dict.getType('sys_doc_yes_no')}">
|
|
|
+ <option value="">所有</option>
|
|
|
+ <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" ></option>
|
|
|
+ </select>
|
|
|
+ </li>
|
|
|
+ <li style="text-align: center">
|
|
|
+ <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
|
|
+ <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPre()"><i class="fa fa-refresh"></i> 重置</a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="ul-list select-list">
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ 随访跟进人:<input type="text" class="styled-input" name="followUpPerson"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 门店:<input type="text" class="styled-input" name="storeName"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 疾病:<input type="text" class="styled-input" name="disease"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 上翻状态:
|
|
|
+ <select name="flipStatus" class="styled-input" th:with="type=${@dict.getType('sys_up_yes_no')}" >
|
|
|
+ <option value="">所有</option>
|
|
|
+ <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
|
|
|
+ </select>
|
|
|
+ </li>
|
|
|
+
|
|
|
+ </ul>
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ 随访状态:
|
|
|
+ <select name="followUpStatus" class="styled-input" th:with="type=${@dict.getType('sys_follow_up_visit')}">
|
|
|
+ <option value="">所有</option>
|
|
|
+ <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
|
|
|
+ </select>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 实名状态:
|
|
|
+ <select name="realNameStatus" class="styled-input" th:with="type=${@dict.getType('sys_real_yes_no')}">
|
|
|
+ <option value="">所有</option>
|
|
|
+ <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
|
|
|
+ </select>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 创建时间:<input type="text" class="styled-input time-input" id="updateTime" placeholder="更新时间" name="updateTime" th:value="${updateTime}" required/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 创建时间:<input type="text" class="styled-input time-input-new" id="updateTime1" placeholder="更新时间" name="updateTime" th:value="${updateTime}" required/>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ 性别:
|
|
|
+ <select name="gender" class="styled-input" th:with="type=${@dict.getType('sys_user_sex')}">
|
|
|
+ <option value="">所有</option>
|
|
|
+ <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" ></option>
|
|
|
+ </select>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 是否参加共建项目:
|
|
|
+ <select name="joinProject" class="styled-input" th:with="type=${@dict.getType('sys_select_yes_no')}">
|
|
|
+ <option value="">所有</option>
|
|
|
+ <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
|
|
|
+ </select>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 有无慈善援助:
|
|
|
+ <select name="charityAssistance" class="styled-input" th:with="type=${@dict.getType('sys_salvation_yes_no')}">
|
|
|
+ <option value="">所有</option>
|
|
|
+ <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
|
|
|
+ </select>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="btn-group-sm" id="toolbar" role="group">
|
|
|
+ <!--<a class="btn btn-success" onclick="$.operate.addTab()" shiro:hasPermission="system:user:add">
|
|
|
+ <i class="fa fa-plus"></i> 新增
|
|
|
+ </a>
|
|
|
+ <a class="btn btn-primary single disabled" onclick="$.operate.editTab()" shiro:hasPermission="system:user:edit">
|
|
|
+ <i class="fa fa-edit"></i> 修改
|
|
|
+ </a>
|
|
|
+ <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:user:remove">
|
|
|
+ <i class="fa fa-remove"></i> 删除
|
|
|
+ </a>
|
|
|
+ <a class="btn btn-info" onclick="$.table.importExcel()" shiro:hasPermission="system:user:import">
|
|
|
+ <i class="fa fa-upload"></i> 导入
|
|
|
+ </a>
|
|
|
+ <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:user:export">
|
|
|
+ <i class="fa fa-download"></i> 导出
|
|
|
+ </a>-->
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="col-sm-12 select-table table-striped">
|
|
|
+ <table id="bootstrap-table"></table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <th:block th:include="include :: footer" />
|
|
|
+ <th:block th:include="include :: layout-latest-js" />
|
|
|
+ <th:block th:include="include :: ztree-js" />
|
|
|
+ <script th:inline="javascript">
|
|
|
+ var editFlag = [[${@permission.hasPermi('dtp:RecipeRegister:edit')}]];
|
|
|
+ var removeFlag = [[${@permission.hasPermi('dtp:RecipeRegister:remove')}]];
|
|
|
+ var prefix = ctx + "dtp/pmService";
|
|
|
+ $(function() {
|
|
|
+ var panehHidden = false;
|
|
|
+ if ($(this).width() < 1590) {
|
|
|
+ panehHidden = true;
|
|
|
+ }
|
|
|
+ $('body').layout({ initClosed: panehHidden, west__size: 185, resizeWithWindow: false });
|
|
|
+ // 回到顶部绑定
|
|
|
+ if ($.fn.toTop !== undefined) {
|
|
|
+ var opt = {
|
|
|
+ win:$('.ui-layout-center'),
|
|
|
+ doc:$('.ui-layout-center')
|
|
|
+ };
|
|
|
+ $('#scroll-up').toTop(opt);
|
|
|
+ }
|
|
|
+ queryArchivesList();
|
|
|
+ });
|
|
|
+
|
|
|
+ function queryArchivesList() {
|
|
|
+ var options = {
|
|
|
+ url: prefix + "/archivesList",
|
|
|
+ viewUrl: prefix + "/archivesView/{id}",
|
|
|
+ createUrl: prefix + "/archivesAdd",
|
|
|
+ updateUrl: prefix + "/archivesEdit/{id}",
|
|
|
+ removeUrl: prefix + "/archivesRemove",
|
|
|
+ /*exportUrl: prefix + "/export",
|
|
|
+ importUrl: prefix + "/importData",
|
|
|
+ importTemplateUrl: prefix + "/importTemplate",*/
|
|
|
+ sortName: "id",
|
|
|
+ sortOrder: "asc",
|
|
|
+ modalName: "档案",
|
|
|
+ fitColumns: true,
|
|
|
+ striped: true,
|
|
|
+ autoRowHeight: true,
|
|
|
+ rowNumbers: true,
|
|
|
+ showFooter:true, //是否显示表格底部区域。
|
|
|
+ clickToSelect: true, //是否启用点击行时选中整行的功能。
|
|
|
+ singleSelect: true, //是否仅允许选择一行
|
|
|
+ columns: [{
|
|
|
+ checkbox: true
|
|
|
+ },
|
|
|
+ {field: 'name', title: '姓名', align: 'center'},
|
|
|
+ {field: 'gender', title: '性别', align: 'center'},
|
|
|
+ {field: 'age', title: '年龄', align: 'center'},
|
|
|
+ {field: 'phoneNumber', title: '手机号', align: 'center'},
|
|
|
+ {field: 'documentType', title: '证件类型', align: 'center'},
|
|
|
+ {field: 'documentNumber', title: '证件号码', align: 'center'},
|
|
|
+ {field: 'realNameStatus', title: '实名状态', align: 'center'},
|
|
|
+ {field: 'flipStatus', title: '上翻状态', align: 'center'},
|
|
|
+ {field: 'disease', title: '疾病', align: 'center'},
|
|
|
+ {field: 'genericName', title: '药品通用名', align: 'center'},
|
|
|
+ {field: 'productName', title: '商品名', align: 'center'},
|
|
|
+ {field: 'mdmCode', title: 'MDM编码', align: 'center'},
|
|
|
+ {field: 'manufacturer', title: '厂家', align: 'center'},
|
|
|
+ {field: 'storeName', title: '门店', align: 'center'},
|
|
|
+ {field: 'archiveCreator', title: '档案创建人', align: 'center'},
|
|
|
+ {field: 'archiveCompleter', title: '档案完善人', align: 'center'},
|
|
|
+ {field: 'acceptFollowUp', title: '是否接受随访', align: 'center'},
|
|
|
+ {field: 'followUpPerson', title: '随访跟进人', align: 'center'},
|
|
|
+ {field: 'archiveCompleteStatus', title: '档案是否完善', align: 'center'},
|
|
|
+ {field: 'charityAssistance', title: '有无慈善援助', align: 'center'},
|
|
|
+ {field: 'joinProject', title: '是否参加共建项目', align: 'center'},
|
|
|
+ {field: 'followUpStatus', title: '随访状态', align: 'center'},
|
|
|
+ {field: 'updateTime2', title: '更新时间', align: 'center'},
|
|
|
+ /*{
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ console.log(value+"-------v");
|
|
|
+ console.log(row+"-------r");
|
|
|
+ return statusTools(row);
|
|
|
+ }
|
|
|
+ },*/
|
|
|
+
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ align: 'center',
|
|
|
+ formatter: function(value, row, index) {
|
|
|
+ if (row.serviceId != 1) {
|
|
|
+ var actions = [];
|
|
|
+ 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> ');
|
|
|
+ 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> ');
|
|
|
+ var more = [];
|
|
|
+ /*more.push("<a class='btn btn-default btn-xs " + resetPwdFlag + "' href='javascript:void(0)' onclick='resetPwd(" + row.userId + ")'><i class='fa fa-key'></i>重置密码</a> ");
|
|
|
+ more.push("<a class='btn btn-default btn-xs " + editFlag + "' href='javascript:void(0)' onclick='authRole(" + row.userId + ")'><i class='fa fa-check-square-o'></i>分配角色</a>");
|
|
|
+ actions.push('<a tabindex="0" class="btn btn-info btn-xs" role="button" data-container="body" data-placement="left" data-toggle="popover" data-html="true" data-trigger="hover" data-content="' + more.join('') + '"><i class="fa fa-chevron-circle-right"></i>更多操作</a>');*/
|
|
|
+ return actions.join('');
|
|
|
+ } else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ };
|
|
|
+ $.table.init(options);
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 自定义重置-表单重置/隐藏框/树节点选择色/搜索 */
|
|
|
+ function resetPre() {
|
|
|
+ resetDate();
|
|
|
+ $("#archives-form")[0].reset();
|
|
|
+ $("#deptId").val("");
|
|
|
+ $("#parentId").val("");
|
|
|
+ $(".curSelectedNode").removeClass("curSelectedNode");
|
|
|
+ $.table.search();
|
|
|
+ var resetButton = document.getElementById('archives-form');
|
|
|
+ resetButton.addEventListener('click', function() {
|
|
|
+ _refresh();
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 用户状态显示 */
|
|
|
+ function statusTools(row) {
|
|
|
+ if (row.status == 1) {
|
|
|
+ return '<i class=\"fa fa-toggle-off text-info fa-2x\" onclick="enable(\'' + row.userId + '\')"></i> ';
|
|
|
+ } else {
|
|
|
+ return '<i class=\"fa fa-toggle-on text-info fa-2x\" onclick="disable(\'' + row.userId + '\')"></i> ';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+</body>
|
|
|
+
|
|
|
+</html>
|