|
@ -8,15 +8,83 @@
|
|
|
<link href="${ctx}/static/specialty/css/bootstrap-treeview.min.css" rel="stylesheet" />
|
|
|
<link rel="stylesheet" href="${ctx}/static/specialty/layui/css/layui.css">
|
|
|
<link rel="stylesheet" href="${ctx}/static/specialty/css/index.css">
|
|
|
<style>
|
|
|
.layui-layer-blue .layui-layer-title{background-color: #2d9bd2;color: #fff;}
|
|
|
.layui-layer-blue .layui-layer-close1{background-color: #fff;border-radius: 100%;background-image: none;position: relative;width: 20px;height: 20px;margin-top: -4px;}
|
|
|
.layui-layer-blue .layui-layer-close1:after{content: '×';position: absolute;font-size: 20px;top: 0;color: #2d9bd2;width: 20px;left: 4px;}
|
|
|
.layui-layer-blue .layui-layer-content{padding: 30px 50px 50px!important;}
|
|
|
.lay-box-3 .lay{
|
|
|
width: 420px!important;
|
|
|
height: 260px;
|
|
|
}
|
|
|
.lay-box-3 .lay .title{
|
|
|
width: 100%;
|
|
|
}
|
|
|
.lay-box-3 .lay .file{
|
|
|
width: 370px;height: 30px;margin: 20px auto;position: relative;
|
|
|
}
|
|
|
.lay-box-3 .lay .file span{
|
|
|
font-size: 12px;color: #333;
|
|
|
}
|
|
|
.lay-box-3 .lay .file input:nth-of-type(1){
|
|
|
width: 200px;height: 30px;border: solid 1px #d0d0d0;background-color: #fff!important;
|
|
|
}
|
|
|
.lay-box-3 .lay .file input:nth-of-type(2){
|
|
|
width: 90px;
|
|
|
height: 30px;
|
|
|
background-color: #2d9bd2;
|
|
|
border-radius: 2px;
|
|
|
font-size: 12px;
|
|
|
color: #fff;
|
|
|
opacity: 0;
|
|
|
z-index: 99;
|
|
|
}
|
|
|
.lay-box-3 .lay .file button{
|
|
|
width: 90px;
|
|
|
height: 30px;
|
|
|
background-color: #2d9bd2;
|
|
|
border: none;
|
|
|
border-radius: 2px;
|
|
|
font-size: 12px;
|
|
|
color: #fff;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
z-index: 1;
|
|
|
}
|
|
|
.lay-box-3 .lay a{
|
|
|
display: block;
|
|
|
margin-left: 87px;
|
|
|
font-size: 12px;color: #2d9bd2;
|
|
|
}
|
|
|
.lay-box-3 .lay p {
|
|
|
font-size: 12px;color: #eb4b3c;text-align: center;
|
|
|
}
|
|
|
.lay-box-3 .lay .lay-button{
|
|
|
text-align: center;margin-top: 40px;
|
|
|
}
|
|
|
.lay-box-3 .lay .lay-button button{
|
|
|
width: 99px;
|
|
|
height: 35px;
|
|
|
background-color: #2d9bd2;
|
|
|
border-radius: 2px;
|
|
|
border: none;
|
|
|
color:#fff;
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
.lay-box-3 .lay .lay-button button:nth-of-type(2){
|
|
|
background-color: #b9c8d2;
|
|
|
}
|
|
|
</style>
|
|
|
<script src="${ctx}/static/specialty/layui/layui.js"></script>
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<div class="lay-box" style="display:none">
|
|
|
<div class="lay">
|
|
|
<div class="title flex flex-sp-b flex-cz-c">
|
|
|
<span>新增项目</span>
|
|
|
<img src="images/Close_btn.png" alt="">
|
|
|
<img class="closePage" src="${ctx}/static/specialty/images/Close_btn.png" alt="">
|
|
|
</div>
|
|
|
<form action="">
|
|
|
<div class="info">
|
|
@ -24,11 +92,11 @@
|
|
|
<p class="info-title">项目信息</p>
|
|
|
<div class="info-left">
|
|
|
<div class="input">
|
|
|
<label for="">项目名称:</label>
|
|
|
<label class="required" for="">项目名称:</label>
|
|
|
<input class="title_" type="text">
|
|
|
</div>
|
|
|
<div class="input flex flex-sp-end">
|
|
|
<label for="">项目内涵:</label>
|
|
|
<label for="" class="required">项目内涵:</label>
|
|
|
<textarea class="content" style="margin-left: 4px" name="" id="" cols="30" rows="10"></textarea>
|
|
|
</div>
|
|
|
<div class="input flex flex-sp-end">
|
|
@ -39,35 +107,39 @@
|
|
|
<label for="">说明:</label>
|
|
|
<textarea class="description" style="margin-left: 4px" name="" id="" cols="30" rows="10"></textarea>
|
|
|
</div>
|
|
|
<div class="input">
|
|
|
<label for="">病案项目:</label>
|
|
|
<input class="disease_item" type="text">
|
|
|
<div class="input layui-form flex flex-cz-c" style="padding-left: 30px;">
|
|
|
<label class="required" for="" style="margin-right: 10px;right: -6px;">病案项目:</label>
|
|
|
<%--<input class="hospital_grade" type="text">--%>
|
|
|
<select name="disease_item" lay-verify="">
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="radio layui-form">
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">需要预约:</label>
|
|
|
<label class="layui-form-label required-1">需要预约:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input type="radio" name="reserve" value="0" title="是">
|
|
|
<input type="radio" name="reserve" value="1" title="否">
|
|
|
<input type="radio" name="reserve" value="0" title="否">
|
|
|
<input type="radio" name="reserve" value="1" title="是">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="radio layui-form">
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">完成方式:</label>
|
|
|
<div class="layui-form-item" style="position: relative;width: max-content;">
|
|
|
<label class="layui-form-label required-1">完成方式:</label>
|
|
|
<div class="layui-input-block flex">
|
|
|
<input type="radio" name="type" value="0" title="扫码">
|
|
|
<input type="radio" name="type" value="1" title="按钮">
|
|
|
<input type="radio" name="type" value="2" title="关联记录">
|
|
|
<input type="radio" name="type" value="0" title="记录服务">
|
|
|
<input type="radio" name="type" value="1" title="扫码">
|
|
|
<input type="radio" name="type" value="2" title="健康教育">
|
|
|
<input type="radio" name="type" value="3" title="健康指导">
|
|
|
<input type="radio" name="type" value="4" title="随访">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="radio layui-form">
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">项目评价:</label>
|
|
|
<label class="layui-form-label required-1">项目评价:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input type="radio" name="evaluation" value="0" title="是">
|
|
|
<input type="radio" name="evaluation" value="1" title="否">
|
|
|
<input type="radio" name="evaluation" value="0" title="否">
|
|
|
<input type="radio" name="evaluation" value="1" title="是">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@ -75,45 +147,51 @@
|
|
|
<div class="info-right">
|
|
|
<div class="layui-form">
|
|
|
<div class="layui-form-item">
|
|
|
<div class="layui-input-block ml40">
|
|
|
<input type="radio" name="item_type" value="0" title="康复服务">
|
|
|
<input type="radio" name="item_type" value="1" title="健康管理">
|
|
|
<div class="layui-input-block ml40 required-2">
|
|
|
<input type="radio" name="item_type" value="0" title="诊疗服务">
|
|
|
<input type="radio" name="item_type" value="1" title="健康服务">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="input">
|
|
|
<label for="">医院等级:</label>
|
|
|
<input class="hospital_grade" type="text">
|
|
|
<div class="input layui-form flex flex-cz-c" style="padding-left: 30px;">
|
|
|
<label class="required" for="" style="margin-right: 12px">医院等级:</label>
|
|
|
<%--<input class="hospital_grade" type="text">--%>
|
|
|
<select name="hospital_grade" lay-verify="">
|
|
|
<option value="0">所有</option>
|
|
|
<option value="3">三级医院</option>
|
|
|
<option value="2">二级医院</option>
|
|
|
<option value="1">一级及以下</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="info-right-title flex flex-cz-c flex-sp-b">
|
|
|
<span>收费标准</span>
|
|
|
<span>元</span>
|
|
|
</div>
|
|
|
<div class="input">
|
|
|
<label for="">三级医院:</label>
|
|
|
<input class="three_hospitals" type="text">
|
|
|
<label class="required" for="">三级医院:</label>
|
|
|
<input class="three_hospitals" type="text" value="0.00">
|
|
|
</div>
|
|
|
<div class="input">
|
|
|
<label for="">二级医院:</label>
|
|
|
<input class="two_hospitals" type="text">
|
|
|
<label class="required" for="">二级医院:</label>
|
|
|
<input class="two_hospitals" type="text" value="0.00">
|
|
|
</div>
|
|
|
<div class="input flex flex-sp-end flex-cz-c">
|
|
|
<label for="">一级及一级以下<br>医疗机构:</label>
|
|
|
<input class="one_hospitals" style="margin-left: 4px;" type="text">
|
|
|
<label class="required" for="">一级及以下:</label>
|
|
|
<input class="one_hospitals" style="margin-left: 4px;" type="text" value="0.00">
|
|
|
</div>
|
|
|
<div class="input">
|
|
|
<label for="">计价单位:</label>
|
|
|
<label class="required" for="">计价单位:</label>
|
|
|
<input class="unit" type="text">
|
|
|
</div>
|
|
|
<div class="input flex flex-sp-end">
|
|
|
<label for="">加收项目:</label>
|
|
|
<label for="" style="margin-right: 4px">加收项目:</label>
|
|
|
<textarea class="add_item" name="" id="" cols="30" rows="10"></textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="info-bottom layui-form">
|
|
|
<input type="checkbox" name="imediate" title="立即生效" lay-skin="primary">
|
|
|
<input type="checkbox" name="imediate" checked title="立即生效" lay-skin="primary">
|
|
|
<div style="margin-top: 20px;">
|
|
|
<button style="background-color: #2d9bd2;" class="layui-btn layui-btn-primary addSubmit" onclick="addSubmit(event,this)">确认</button>
|
|
|
<input type="submit" style="background-color: #2d9bd2;" class="layui-btn layui-btn-primary addSubmit" onclick="addSubmit(event,this)" value="确认">
|
|
|
<button style="background-color: #d9c8b2;" class="layui-btn layui-btn-primary" onclick="cancel(event)">取消</button>
|
|
|
</div>
|
|
|
</div>
|
|
@ -122,32 +200,79 @@
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="lay-box-2" style="display: none;">
|
|
|
<div class="lay">
|
|
|
<div class="title flex flex-sp-b flex-cz-c">
|
|
|
<span>修改、失效历史</span>
|
|
|
<img class="closePage" src="${ctx}/static/specialty/images/Close_btn.png" alt="">
|
|
|
</div>
|
|
|
<div class="content-box">
|
|
|
<div class="content-text">
|
|
|
<div class="flex flex-sp-b">
|
|
|
<span class="number"></span>
|
|
|
<span class="time"></span>
|
|
|
</div>
|
|
|
<ul>
|
|
|
<li></li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="lay-box-3-1" style="display:none">
|
|
|
<div class="lay-box-3">
|
|
|
<div class="lay">
|
|
|
<div class="title flex flex-sp-b flex-cz-c">
|
|
|
<span>批量导入</span>
|
|
|
<img class="closePage" src="${ctx}/static/specialty/images/Close_btn.png" alt="">
|
|
|
</div>
|
|
|
<div class="file flex flex-sp-b flex-cz-c">
|
|
|
<span>导入文件:</span>
|
|
|
<input type="text" class="fileName" disabled>
|
|
|
<input class="uploadfile" type="file" value="选择" onchange="auploadFile(event)">
|
|
|
<button>选择</button>
|
|
|
</div>
|
|
|
<a href="${ctx}/static/specialty/Sheet1.xls" target="_blank">模板下载</a>
|
|
|
<p>请核对导入数据,若导入项目信息已存在,将会更新项目表中的数据。</p>
|
|
|
<div class="lay-button">
|
|
|
<button onclick="submitFile(this)">确认</button>
|
|
|
<button class="closePage">取消</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="content">
|
|
|
<!-- 请选择项目类型 -->
|
|
|
<div class="btn-group">
|
|
|
<button type="button" class="btn btn-default btn-hover-none btn-radius-none w130 h30 text-align-left">请选择项目类型</button>
|
|
|
<button type="button" class="btn btn-default btn-hover-none btn-radius-none w130 h30 text-align-left xiangmu">请选择项目类型</button>
|
|
|
<button type="button" class="btn dropdown-toggle btn-radius-none w30 h30" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
<span class="caret"></span>
|
|
|
<span class="sr-only">Toggle Dropdown</span>
|
|
|
</button>
|
|
|
<ul class="dropdown-menu">
|
|
|
<li>
|
|
|
<a href="#">康健服务</a>
|
|
|
<a href="#">所有</a>
|
|
|
</li>
|
|
|
<li>
|
|
|
<a href="#">诊疗服务</a>
|
|
|
</li>
|
|
|
<li>
|
|
|
<a href="#">健康管理</a>
|
|
|
<a href="#">健康服务</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<!-- 请选择医院等级 -->
|
|
|
<div class="btn-group">
|
|
|
<button type="button" class="btn btn-default btn-hover-none btn-radius-none w130 h30 text-align-left">请选择医院等级</button>
|
|
|
<button type="button" class="btn btn-default btn-hover-none btn-radius-none w130 h30 text-align-left yiyuan">请选择医院等级</button>
|
|
|
<button type="button" class="btn dropdown-toggle btn-radius-none w30 h30" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
<span class="caret"></span>
|
|
|
<span class="sr-only">Toggle Dropdown</span>
|
|
|
</button>
|
|
|
<ul class="dropdown-menu">
|
|
|
<li>
|
|
|
<a href="#">所有</a>
|
|
|
</li>
|
|
|
<li>
|
|
|
<a href="#">三级医院</a>
|
|
|
</li>
|
|
@ -161,49 +286,33 @@
|
|
|
</div>
|
|
|
<!-- 请选择病案项目 -->
|
|
|
<div class="btn-group">
|
|
|
<button type="button" class="btn btn-default btn-hover-none btn-radius-none w130 h30 text-align-left">请选择病案项目</button>
|
|
|
<button type="button" class="btn btn-default btn-hover-none btn-radius-none w130 h30 text-align-left bingan-xiangmu">请选择病案项目</button>
|
|
|
<button type="button" class="btn dropdown-toggle btn-radius-none w30 h30" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
<span class="caret"></span>
|
|
|
<span class="sr-only">Toggle Dropdown</span>
|
|
|
</button>
|
|
|
<ul class="dropdown-menu">
|
|
|
<li>
|
|
|
<a href="#">Action</a>
|
|
|
</li>
|
|
|
<li>
|
|
|
<a href="#">Another action</a>
|
|
|
</li>
|
|
|
<li>
|
|
|
<a href="#">Something else here</a>
|
|
|
</li>
|
|
|
<ul class="dropdown-menu bingan">
|
|
|
|
|
|
</ul>
|
|
|
</div>
|
|
|
<!-- 搜索 -->
|
|
|
<div class="search form-inline">
|
|
|
<div class="input-group h30 font-12" style="width: 379px;">
|
|
|
<div class="input-group h30 font-12" style="width: 270px;">
|
|
|
<div class="input-group">
|
|
|
<div class="input-group-btn">
|
|
|
<button type="button" style="height: 34px;width: 90px" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">计算机编码 <span class="caret"></span></button>
|
|
|
<ul class="dropdown-menu">
|
|
|
<li><a href="#">计算机编码</a></li>
|
|
|
<li><a href="#">项目编码</a></li>
|
|
|
<li><a href="#">项目名称</a></li>
|
|
|
</ul>
|
|
|
</div><!-- /btn-group -->
|
|
|
<input type="text" class="form-control" aria-label="..." style="width:270px;border-radius: 0;" placeholder="输入计算机编码、项目编码、项目名称">
|
|
|
<input type="text" class="form-control xiangmu-name" aria-label="..." style="width:270px;border-radius: 0;" placeholder="输入项目名称">
|
|
|
</div>
|
|
|
<%--搜索图标--%>
|
|
|
<%--<span class="input-group-addon">--%>
|
|
|
<%--<i class="icon icon30 icon-search"></i>--%>
|
|
|
<%--</span>--%>
|
|
|
</div>
|
|
|
<button class="btn btn-primary h30 font-12">查询</button>
|
|
|
<button class="btn btn-primary h30 font-12 search-btn">查询</button>
|
|
|
</div>
|
|
|
<div class="pull-right text-right">
|
|
|
<div class="operation-group clearfix" role="group" aria-label="...">
|
|
|
<button id="delete" type="button" class="btn btn-danger delete">
|
|
|
<i class="icon icon15 icon-delete"></i> 删除</button>
|
|
|
<button type="button" class="btn btn-warning">批量导入</button>
|
|
|
<button type="button" class="btn btn-warning" id="daoru">批量导入</button>
|
|
|
<button id="add" type="button" class="btn btn-primary">新增项目</button>
|
|
|
</div>
|
|
|
</div>
|
|
@ -214,6 +323,16 @@
|
|
|
<%--<%@ include file="./js/ligerui.all_js.jsp"%>--%>
|
|
|
<script type="text/javascript">
|
|
|
var form,grid;
|
|
|
var diseaseItem = ['不统计','治疗费','检查费','其它费用','床位费','护理费','婴儿费','输氧费','放射费','化验费','手术费','麻醉费','接生费','非手术治疗项目费','治疗费','康复费'];
|
|
|
var diseaseItemHtml = '';
|
|
|
var binganHtml = '';
|
|
|
var modityRow = null;
|
|
|
diseaseItem.forEach(function (item) {
|
|
|
diseaseItemHtml += '<option value='+item+'>'+item+'</option>';
|
|
|
binganHtml += '<li><a href="#">'+item+'</a></li>'
|
|
|
})
|
|
|
$('select[name="disease_item"]').html(diseaseItemHtml);
|
|
|
$('.bingan').html(binganHtml)
|
|
|
layui.use(['layer','laydate','form'],function(){
|
|
|
var layer = layui.layer; //layer初始化
|
|
|
form = layui.form;
|
|
@ -238,7 +357,6 @@
|
|
|
async: true,
|
|
|
data: {serviceItem: data},
|
|
|
success:function (res) {
|
|
|
console.log(res)
|
|
|
if (res.status == 200){
|
|
|
layer.alert('操作成功!', {
|
|
|
icon: 1,
|
|
@ -279,10 +397,13 @@
|
|
|
// 修改行
|
|
|
function modify(rowindex) {
|
|
|
var row = grid.getRow(rowindex);
|
|
|
modityRow = row;
|
|
|
console.log(row)
|
|
|
layer.open({
|
|
|
offset: '20px',
|
|
|
type:1,
|
|
|
title:'',
|
|
|
closeBtn:false,
|
|
|
content: $('.lay-box').html(),
|
|
|
area: ['680px', '750px']
|
|
|
});
|
|
@ -292,13 +413,24 @@
|
|
|
$('.lay .content').val(row.content);
|
|
|
$('.lay .exclude_content').val(row.excludeContent);
|
|
|
$('.lay .description').val(row.description);
|
|
|
$('.lay .disease_item').val(row.diseaseItem);
|
|
|
$($('.lay input[name="reserve')[row.reserve+2]).prop("checked",true);
|
|
|
$($('.lay input[name="type')[row.type+3]).prop("checked",true);
|
|
|
console.log($('.lay select[name="disease_item"]'));
|
|
|
$('.lay select[name="disease_item"]').val(row.diseaseItem);
|
|
|
$($('.lay input[name="reserve"]')[row.reserve+2]).prop("checked",true);
|
|
|
$($('.lay input[name="type"]')[row.type+5]).prop("checked",true);
|
|
|
$($('.lay input[name="evaluation')[row.evaluation+2]).prop("checked",true);
|
|
|
row.itemType == '康健服务' ? row.itemType = 0: row.itemType = 1;
|
|
|
row.itemType == '诊疗服务' ? row.itemType = 0: row.itemType = 1;
|
|
|
$($('.lay input[name="item_type')[row.itemType+2]).prop("checked",true);
|
|
|
$('.lay .hospital_grade').val(row.hospitalGrade);
|
|
|
if (row.hospitalGrade == '三级医院'){
|
|
|
row.hospitalGrade = 3
|
|
|
}else if(row.hospitalGrade == '二级医院'){
|
|
|
row.hospitalGrade = 2
|
|
|
}else if(row.hospitalGrade == '一级及一级以下医疗机构'){
|
|
|
row.hospitalGrade = 1
|
|
|
}
|
|
|
else if(row.hospitalGrade == '所有'){
|
|
|
row.hospitalGrade = 0
|
|
|
}
|
|
|
$('select[name="hospital_grade"]').find('option[value='+row.hospitalGrade+']').attr('selected','selected')
|
|
|
$('.lay .three_hospitals').val(row.threeHospitals);
|
|
|
$('.lay .two_hospitals').val(row.twoHospitals);
|
|
|
$('.lay .one_hospitals').val(row.oneHospitals);
|
|
@ -308,17 +440,171 @@
|
|
|
$($('.lay input[name="imediate')[1]).prop("checked",row.imediate);
|
|
|
form.render();
|
|
|
}
|
|
|
|
|
|
// 历史
|
|
|
function history(rowindex) {
|
|
|
var row = grid.getRow(rowindex);
|
|
|
console.log(row.id);
|
|
|
var data = {
|
|
|
serviceItemId:row.id,
|
|
|
}
|
|
|
data = JSON.stringify(data);
|
|
|
$.ajax({
|
|
|
url: ctx + "/admin/specialist/serviceItem/selectOperate",
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
|
async: true,
|
|
|
data: {serviceItem: data,page:1,size:1000},
|
|
|
success:function (res) {
|
|
|
var Arr = res.data.detailModelList;
|
|
|
var html = '';
|
|
|
if (Arr.length < 1){
|
|
|
layer.msg('该条记录没有历史',{icon:5})
|
|
|
return false
|
|
|
}
|
|
|
Arr.forEach(function (item,index,arr) {
|
|
|
var operateLog = [
|
|
|
{
|
|
|
name:'项目名称',
|
|
|
key:'title旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'项目内涵',
|
|
|
key:'content旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'除外内容',
|
|
|
key:'excludeContent旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'说明',
|
|
|
key:'description旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'病案项目',
|
|
|
key:'diseaseItem旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'是否预约',
|
|
|
key:'reserve旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'完成方式',
|
|
|
key:'type旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'项目评价',
|
|
|
key:'evaluation旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'项目类型',
|
|
|
key:'itemType旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'医院等级',
|
|
|
key:'hospitalGrade旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'三级医院收费标准',
|
|
|
key:'threeHospitals旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'二级医院收费标准',
|
|
|
key:'twoHospitals旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'一级以及以下',
|
|
|
key:'oneHospitals旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'计价单位',
|
|
|
key:'unit旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'加收项目',
|
|
|
key:'addItem旧',
|
|
|
text:''
|
|
|
},{
|
|
|
name:'立即生效',
|
|
|
key:'imediate旧',
|
|
|
text:''
|
|
|
}
|
|
|
]
|
|
|
var title = '第'+(arr.length-index)+'次';
|
|
|
var time = new Date(item.createTime).Format('yyyy/MM/dd');
|
|
|
var log = JSON.parse(item.operateLog);
|
|
|
/* console.log(arr.length,index,title);
|
|
|
console.log(time);
|
|
|
console.log(log)*/
|
|
|
var ul = '';
|
|
|
log.forEach(function (t,k) {
|
|
|
if(t['itemType旧']){
|
|
|
t['itemType旧'] == '0'? t['itemType旧'] = "诊疗服务":t['itemType旧'] = "健康服务";
|
|
|
}
|
|
|
if(t['type旧']){
|
|
|
if (t['type旧'] == 1){
|
|
|
t['type旧'] = '扫码'
|
|
|
}else if (t['type旧'] == 0){
|
|
|
t['type旧'] = '记录服务'
|
|
|
}else if (t['type旧'] == 2){
|
|
|
t['type旧'] = '健康教育'
|
|
|
}else if (t['type旧'] == 3){
|
|
|
t['type旧'] = '健康指导'
|
|
|
}else if (t['type旧'] == 4){
|
|
|
t['type旧'] = '随访'
|
|
|
}
|
|
|
}
|
|
|
if (t['hospitalGrade旧']){
|
|
|
if (t['hospitalGrade旧'] == 3){
|
|
|
t['hospitalGrade旧'] = '三级医院'
|
|
|
}else if(t['hospitalGrade旧']==2){
|
|
|
t['hospitalGrade旧'] = '二级医院'
|
|
|
}else if(t['hospitalGrade旧'] == 1){
|
|
|
t['hospitalGrade旧'] = '一级及一级以下医疗机构'
|
|
|
}
|
|
|
}
|
|
|
if (t['imediate旧']){
|
|
|
t['imediate旧'] == '0'? t['imediate旧'] = "否":t['imediate旧'] = "是";
|
|
|
}
|
|
|
for(var key in t){
|
|
|
operateLog.forEach(function (w,i) {
|
|
|
if(key==w.key){
|
|
|
var li = '<li>'+w.name + ':' + t[key] + '</li>'
|
|
|
ul += li
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
html += '<div class="content-text">\
|
|
|
<div class="flex flex-sp-b">\
|
|
|
<span class="number">'+title+'</span>\
|
|
|
<span class="time">'+time+'</span>\
|
|
|
</div>\
|
|
|
<ul>'+ul+'</ul>\
|
|
|
</div>'
|
|
|
// console.log(html);
|
|
|
})
|
|
|
$('.content-box').html(html)
|
|
|
layer.open({
|
|
|
type:1,
|
|
|
title:'',
|
|
|
closeBtn:false,
|
|
|
content: $('.lay-box-2').html(),
|
|
|
area: ['680px', '750px']
|
|
|
});
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
$('#add').on('click',function(){
|
|
|
layer.open({
|
|
|
offset: '20px',
|
|
|
type:1,
|
|
|
title:'',
|
|
|
closeBtn:false,
|
|
|
content: $('.lay-box').html(),
|
|
|
area: ['680px', '750px']
|
|
|
})
|
|
|
$('.lay .title span').text('新增项目');
|
|
|
form.render();
|
|
|
|
|
|
});
|
|
|
$('#delete').on('click',function(){
|
|
|
var rows = grid.getSelectedRows();
|
|
@ -375,12 +661,12 @@
|
|
|
data.content = $.trim($(_this).parents('.lay').find('.content').val());
|
|
|
data.excludeContent = $.trim($(_this).parents('.lay').find('.exclude_content').val());
|
|
|
data.description = $.trim($(_this).parents('.lay').find('.description').val());
|
|
|
data.diseaseItem = $.trim($(_this).parents('.lay').find('.disease_item').val());
|
|
|
data.diseaseItem = $.trim($(_this).parents('.lay').find('select[name="disease_item"]').val());
|
|
|
data.reserve = $.trim($(_this).parents('.lay').find('input[name="reserve"]:checked').val());
|
|
|
data.type = $.trim($(_this).parents('.lay').find('input[name="type"]:checked').val());
|
|
|
data.evaluation = $.trim($(_this).parents('.lay').find('input[name="evaluation"]:checked').val());
|
|
|
data.itemType = $.trim($(_this).parents('.lay').find('input[name="item_type"]:checked').val());
|
|
|
data.hospitalGrade = $.trim($(_this).parents('.lay').find('.hospital_grade').val());
|
|
|
data.hospitalGrade = $.trim($(_this).parents('.lay').find('select[name="hospital_grade"]').val());
|
|
|
data.threeHospitals = $.trim($(_this).parents('.lay').find('.three_hospitals').val());
|
|
|
data.twoHospitals = $.trim($(_this).parents('.lay').find('.two_hospitals').val());
|
|
|
data.oneHospitals = $.trim($(_this).parents('.lay').find('.one_hospitals').val());
|
|
@ -388,13 +674,16 @@
|
|
|
data.addItem = $.trim($(_this).parents('.lay').find('.add_item').val());
|
|
|
data.imediate = $.trim($(_this).parents('.lay').find('input[name="imediate"]').prop("checked"));
|
|
|
data.imediate == "true" ?data.imediate = 1:data.imediate = 0;
|
|
|
|
|
|
if(!(data.title && data.content && data.diseaseItem && data.reserve && data.type && data.evaluation && data.itemType && data.hospitalGrade && data.threeHospitals && data.twoHospitals && data.oneHospitals && data.unit)){
|
|
|
layer.msg('请将信息补充完整',{icon:5});
|
|
|
return falses
|
|
|
}
|
|
|
if ($(_this).parents('.lay').find('.title span').text() == "新增项目"){
|
|
|
data = JSON.stringify(data);
|
|
|
console.log(data);
|
|
|
$.ajax({
|
|
|
url: ctx + "/admin/specialist/serviceItem/createServiceItem",
|
|
|
method: "get",
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
|
async: true,
|
|
|
data: {serviceItem: data},
|
|
@ -411,15 +700,21 @@
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
|
data.id = $.trim($(_this).parents('.lay').find('.id').val());
|
|
|
data = JSON.stringify(data);
|
|
|
console.log(data);
|
|
|
var r = {};
|
|
|
for (var key in data){
|
|
|
if (data[key] != modityRow[key]){
|
|
|
r[key] = data[key]
|
|
|
}
|
|
|
}
|
|
|
console.log(r)
|
|
|
r.id = $.trim($(_this).parents('.lay').find('.id').val());
|
|
|
r = JSON.stringify(r);
|
|
|
$.ajax({
|
|
|
url: ctx + "/admin/specialist/serviceItem/updateServiceItem",
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
|
async: true,
|
|
|
data: {serviceItem: data},
|
|
|
data: {serviceItem: r},
|
|
|
success:function (res) {
|
|
|
console.log(res)
|
|
|
if (res.status == 200){
|
|
@ -435,112 +730,271 @@
|
|
|
}
|
|
|
}
|
|
|
function init() {
|
|
|
$.ajax({
|
|
|
grid = $("#maingrid").ligerGrid({
|
|
|
url: ctx + "/admin/specialist/serviceItem/selectServiceItem",
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
|
async: true,
|
|
|
data: {serviceItem: '{"status":1}',page:'1',pageSize:'10'},
|
|
|
success:function (res) {
|
|
|
console.log(res)
|
|
|
griddata = res.data.detailModelList;
|
|
|
griddata.forEach(function (item,index) {
|
|
|
item.imediate == '0'? item.imediate = "否":item.imediate = "是";
|
|
|
item.itemType == '0'? item.itemType = "康健服务":item.itemType = "健康管理";
|
|
|
return item;
|
|
|
})
|
|
|
grid = $("#maingrid").ligerGrid({
|
|
|
columns: [
|
|
|
{
|
|
|
name: 'title',
|
|
|
display: '项目名称',
|
|
|
width: 80
|
|
|
},
|
|
|
{
|
|
|
name:"diseaseItem",
|
|
|
display:"病案项目",
|
|
|
width:80
|
|
|
},
|
|
|
{
|
|
|
name:'itemType',
|
|
|
display:"项目类型",
|
|
|
width:80
|
|
|
},
|
|
|
{
|
|
|
name:'hospitalGrade',
|
|
|
display:"医院等级",
|
|
|
width:80
|
|
|
},
|
|
|
{
|
|
|
name:"content",
|
|
|
display:"项目内涵",
|
|
|
width:290
|
|
|
},
|
|
|
{
|
|
|
name:"excludeContent",
|
|
|
display:"除外内容",
|
|
|
width:200
|
|
|
},
|
|
|
{
|
|
|
name:'unit',
|
|
|
display:"计价单位",
|
|
|
width:80
|
|
|
},
|
|
|
{
|
|
|
name:'biaozhun',
|
|
|
display:'费用标准',
|
|
|
columns:[
|
|
|
{
|
|
|
name:'threeHospitals',
|
|
|
display:'三级医院',
|
|
|
width:75
|
|
|
},
|
|
|
{
|
|
|
name:'twoHospitals',
|
|
|
display:"二级医院",
|
|
|
width:75
|
|
|
},
|
|
|
{
|
|
|
name:'oneHospitals',
|
|
|
display:"一级及一级以</br>下医疗机构",
|
|
|
width:75
|
|
|
}
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
name:'addItem',
|
|
|
display:'加收项目',
|
|
|
width:130
|
|
|
},
|
|
|
parms: {serviceItem: '{"status":1}'},
|
|
|
method: 'get',
|
|
|
record:'totalCount',
|
|
|
root:'detailModelList',
|
|
|
columns: [
|
|
|
{
|
|
|
name: 'title',
|
|
|
display: '项目名称',
|
|
|
width: 162
|
|
|
},
|
|
|
{
|
|
|
name:"diseaseItem",
|
|
|
display:"病案项目",
|
|
|
width:81
|
|
|
},
|
|
|
{
|
|
|
name:'itemType',
|
|
|
display:"项目类型",
|
|
|
width:81,
|
|
|
render:function (row) {
|
|
|
row.itemType == '0'? row.itemType = "诊疗服务":row.itemType = "健康服务";
|
|
|
return row.itemType;
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
name:'hospitalGrade',
|
|
|
display:"医院等级",
|
|
|
width:81,
|
|
|
render:function (row) {
|
|
|
if (row.hospitalGrade == '3'){
|
|
|
row.hospitalGrade = '三级医院'
|
|
|
}else if(row.hospitalGrade== '2'){
|
|
|
row.hospitalGrade = '二级医院'
|
|
|
}else if(row.hospitalGrade == '1'){
|
|
|
row.hospitalGrade = '一级及一级以下医疗机构'
|
|
|
}else if(row.hospitalGrade == '0'){
|
|
|
row.hospitalGrade = '所有'
|
|
|
}
|
|
|
return row.hospitalGrade;
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
name:"content",
|
|
|
display:"项目内涵",
|
|
|
width:243
|
|
|
},
|
|
|
{
|
|
|
name:"excludeContent",
|
|
|
display:"除外内容",
|
|
|
width:162
|
|
|
},
|
|
|
{
|
|
|
name:'unit',
|
|
|
display:"计价单位",
|
|
|
width:81
|
|
|
},
|
|
|
{
|
|
|
name:'biaozhun',
|
|
|
display:'费用标准',
|
|
|
columns:[
|
|
|
{
|
|
|
name:'description',
|
|
|
display:"说明",
|
|
|
width:100
|
|
|
name:'threeHospitals',
|
|
|
display:'三级医院',
|
|
|
width:81
|
|
|
},
|
|
|
{
|
|
|
name:"imediate",
|
|
|
display:"是否生效",
|
|
|
width:60
|
|
|
name:'twoHospitals',
|
|
|
display:"二级医院",
|
|
|
width:81
|
|
|
},
|
|
|
{
|
|
|
name:"caozuo",
|
|
|
display:"操作",
|
|
|
width:160,
|
|
|
render: function (record, rowindex, value, column) {
|
|
|
return '<input type="button" onclick="invalid('+rowindex+')" value="失效"/><input type="button" onclick="modify('+rowindex+')" value="修改"/><input type="button" class="delete" onclick="deleteRow('+rowindex+')" value="删除"/><input type="button" value="查看历史"/>';
|
|
|
}
|
|
|
name:'oneHospitals',
|
|
|
display:"一级及一级以</br>下医疗机构",
|
|
|
width:81
|
|
|
}
|
|
|
],
|
|
|
data: {
|
|
|
Rows: griddata
|
|
|
},
|
|
|
checkbox:"true",
|
|
|
alternatingRow:false
|
|
|
},
|
|
|
{
|
|
|
name:'addItem',
|
|
|
display:'加收项目',
|
|
|
width:121.5
|
|
|
},
|
|
|
{
|
|
|
name:'description',
|
|
|
display:"说明",
|
|
|
width:121.5
|
|
|
},
|
|
|
{
|
|
|
name:"imediate",
|
|
|
display:"是否生效",
|
|
|
width:81,
|
|
|
render:function (row) {
|
|
|
row.imediate == '0'? row.imediate = "否":row.imediate = "是";
|
|
|
return row.imediate;
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
name:"caozuo",
|
|
|
display:"操作",
|
|
|
width:162,
|
|
|
render: function (record, rowindex, value, column) {
|
|
|
return '<input type="button" onclick="invalid('+rowindex+')" value="失效"/><input type="button" onclick="modify('+rowindex+')" value="修改"/><input type="button" class="delete" onclick="deleteRow('+rowindex+')" value="删除"/><input type="button" onclick="history('+rowindex+')" value="查看历史"/>';
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
checkbox:"true",
|
|
|
alternatingRow:false,
|
|
|
onAfterShowData:function () {
|
|
|
var table = $('.l-grid-body-table')[0];
|
|
|
var table2 = $('.l-grid-body-table')[1];
|
|
|
var arr = $(table).find('tr');
|
|
|
var arr2 = $(table2).find('tr');
|
|
|
arr2.each(function(index,item){
|
|
|
$(arr[index]).height($(this).height())
|
|
|
$(arr[index]).width(40)
|
|
|
console.log($(arr[index]).width())
|
|
|
})
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
init();
|
|
|
|
|
|
// 更新ligerui
|
|
|
function reloadGrid(url, params, curPage){
|
|
|
if(curPage)
|
|
|
this.options.newPage = curPage;
|
|
|
if(url && url!='')
|
|
|
this.setOptions({parms: params, url: url});
|
|
|
else{
|
|
|
this.setOptions({parms: params});
|
|
|
this.loadData(true);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 查询动作
|
|
|
$('.search-btn').on('click',function (e) {
|
|
|
e.stopPropagation()
|
|
|
var data = {};
|
|
|
if ($('.xiangmu').text() == '诊疗服务'){
|
|
|
data.itemType = 0
|
|
|
}else if($('.xiangmu').text() == '健康服务'){
|
|
|
data.itemType = 1
|
|
|
}else if($('.xiangmu').text() == '所有'){
|
|
|
data.itemType = ''
|
|
|
}
|
|
|
if ($('.yiyuan').text()=='三级医院'){
|
|
|
data.hospitalGrade = 3
|
|
|
}else if($('.yiyuan').text()=='二级医院'){
|
|
|
data.hospitalGrade = 2
|
|
|
}else if($('.yiyuan').text()=='一级及以下'){
|
|
|
data.hospitalGrade = 1
|
|
|
}else if($('.yiyuan').text()=='所有'){
|
|
|
data.hospitalGrade = ''
|
|
|
}
|
|
|
if($('.bingan-xiangmu').text() != '请选择病案项目'){
|
|
|
data.diseaseItem = $('.bingan-xiangmu').text();
|
|
|
}
|
|
|
data.title = $('.xiangmu-name').val();
|
|
|
data.status = 1;
|
|
|
console.log(data);
|
|
|
data = JSON.stringify(data);
|
|
|
parms = {
|
|
|
serviceItem:data
|
|
|
}
|
|
|
reloadGrid.call(grid,ctx + "/admin/specialist/serviceItem/selectServiceItem", parms);
|
|
|
})
|
|
|
// 关闭弹窗
|
|
|
$(document).on('click','.closePage',function () {
|
|
|
layer.closeAll()
|
|
|
})
|
|
|
Date.prototype.Format = function (fmt) { //author: meizz
|
|
|
var o = {
|
|
|
"M+": this.getMonth() + 1, //月份
|
|
|
"d+": this.getDate(), //日
|
|
|
"h+": this.getHours(), //小时
|
|
|
"m+": this.getMinutes(), //分
|
|
|
"s+": this.getSeconds(), //秒
|
|
|
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
|
"S": this.getMilliseconds() //毫秒
|
|
|
};
|
|
|
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
|
for (var k in o)
|
|
|
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) :
|
|
|
(("00" + o[k]).substr(("" + o[k]).length)));
|
|
|
return fmt;
|
|
|
}
|
|
|
// 选择上传文件
|
|
|
function auploadFile(e){
|
|
|
console.log(e);
|
|
|
var file = ''
|
|
|
var arr =e.target && e.target.files;
|
|
|
file= arr[0].name
|
|
|
console.log(file)
|
|
|
$('.fileName').val(file)
|
|
|
}
|
|
|
// 上传文件
|
|
|
function submitFile(_this){
|
|
|
var file = $(_this).parents('.lay').find('.uploadfile')[0].files[0];
|
|
|
var _formData = new FormData()
|
|
|
_formData.append('file', file)
|
|
|
console.log(_formData.get('file'));
|
|
|
var index = layer.load(2);
|
|
|
$.ajax({
|
|
|
url: ctx + "/admin/specialist/serviceItem/importData",
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
|
async: true,
|
|
|
contentType: false,
|
|
|
cache: false,
|
|
|
processData: false,
|
|
|
data: _formData,
|
|
|
success:function (res) {
|
|
|
console.log(res)
|
|
|
layer.close(index);
|
|
|
if (res.status == 200){
|
|
|
layer.confirm('上传成功!', {
|
|
|
title: '提示',
|
|
|
skin: 'layui-layer-blue', //样式类名
|
|
|
anim:4,
|
|
|
btn: ['确定'] //按钮
|
|
|
},function () {
|
|
|
layer.closeAll();
|
|
|
init();
|
|
|
});
|
|
|
// layer.alert('操作成功!', {
|
|
|
// icon: 1,
|
|
|
// },function () {
|
|
|
// layer.closeAll();
|
|
|
// init();
|
|
|
// })
|
|
|
}
|
|
|
},
|
|
|
error:function (res) {
|
|
|
layer.close(index);
|
|
|
layer.confirm('上传失败!', {
|
|
|
title: '提示',
|
|
|
skin: 'layui-layer-blue', //样式类名
|
|
|
anim:4,
|
|
|
btn: ['确定'] //按钮
|
|
|
},function () {
|
|
|
layer.closeAll();
|
|
|
init();
|
|
|
});
|
|
|
// layer.alert('上传失败!', {
|
|
|
// icon: 1,
|
|
|
// },function () {
|
|
|
// layer.closeAll();
|
|
|
// init();
|
|
|
// })
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
init();
|
|
|
// 导入按钮
|
|
|
$('#daoru').on('click',function(){
|
|
|
layer.open({
|
|
|
offset: '240px',
|
|
|
type:1,
|
|
|
title:'',
|
|
|
closeBtn:false,
|
|
|
content: $('.lay-box-3-1').html(),
|
|
|
area: ['420px', '260px']
|
|
|
})
|
|
|
})
|
|
|
</script>
|
|
|
</body>
|
|
|
|