|
@ -8,10 +8,74 @@
|
|
|
<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>
|
|
|
.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">
|
|
@ -55,12 +119,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="radio layui-form">
|
|
|
<div class="layui-form-item">
|
|
|
<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="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>
|
|
@ -149,6 +215,26 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="lay-box-3" 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="file flex flex-sp-b flex-cz-c">
|
|
|
<span>导入文件:</span>
|
|
|
<input type="text" class="fileName" disabled>
|
|
|
<input id="uploadfile" type="file" value="选择" onchange="auploadFile(event)">
|
|
|
<button>选择</button>
|
|
|
</div>
|
|
|
<a href="">模板下载</a>
|
|
|
<p>请核对导入数据,若导入项目信息已存在,将会更新项目表中的数据。</p>
|
|
|
<div class="lay-button">
|
|
|
<button onclick="submitFile()">确认</button>
|
|
|
<button>取消</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
<!-- 请选择项目类型 -->
|
|
|
<div class="btn-group">
|
|
@ -307,6 +393,7 @@
|
|
|
modityRow = row;
|
|
|
console.log(row)
|
|
|
layer.open({
|
|
|
offset: '20px',
|
|
|
type:1,
|
|
|
title:'',
|
|
|
closeBtn:false,
|
|
@ -321,8 +408,8 @@
|
|
|
$('.lay .description').val(row.description);
|
|
|
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+3]).prop("checked",true);
|
|
|
$($('.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;
|
|
|
$($('.lay input[name="item_type')[row.itemType+2]).prop("checked",true);
|
|
@ -446,6 +533,19 @@
|
|
|
if(t['itemType旧']){
|
|
|
t['itemType旧'] == '0'? t['itemType旧'] = "康复服务":t['itemType旧'] = "健康管理";
|
|
|
}
|
|
|
if(t['type旧']){
|
|
|
if (t['type旧'] == 0){
|
|
|
t['type旧'] = '扫码'
|
|
|
}else if (t['type旧'] == 1){
|
|
|
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旧'] = '三级医院'
|
|
@ -489,6 +589,7 @@
|
|
|
}
|
|
|
$('#add').on('click',function(){
|
|
|
layer.open({
|
|
|
offset: '20px',
|
|
|
type:1,
|
|
|
title:'',
|
|
|
closeBtn:false,
|
|
@ -626,6 +727,7 @@
|
|
|
url: ctx + "/admin/specialist/serviceItem/selectServiceItem",
|
|
|
parms: {serviceItem: '{"status":1}'},
|
|
|
method: 'get',
|
|
|
record:'totalCount',
|
|
|
root:'detailModelList',
|
|
|
columns: [
|
|
|
{
|
|
@ -651,14 +753,14 @@
|
|
|
name:'hospitalGrade',
|
|
|
display:"医院等级",
|
|
|
width:80,
|
|
|
rander:function (row) {
|
|
|
if (row.hospitalGrade == 3){
|
|
|
render:function (row) {
|
|
|
if (row.hospitalGrade == '3'){
|
|
|
row.hospitalGrade = '三级医院'
|
|
|
}else if(row.hospitalGrade==2){
|
|
|
}else if(row.hospitalGrade== '2'){
|
|
|
row.hospitalGrade = '二级医院'
|
|
|
}else if(row.hospitalGrade == 1){
|
|
|
}else if(row.hospitalGrade == '1'){
|
|
|
row.hospitalGrade = '一级及一级以下医疗机构'
|
|
|
}else if(row.hospitalGrade == 0){
|
|
|
}else if(row.hospitalGrade == '0'){
|
|
|
row.hospitalGrade = '所有'
|
|
|
}
|
|
|
return row.hospitalGrade;
|
|
@ -729,7 +831,16 @@
|
|
|
}
|
|
|
],
|
|
|
checkbox:"true",
|
|
|
alternatingRow:false
|
|
|
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())
|
|
|
})
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
init();
|
|
@ -798,7 +909,23 @@
|
|
|
(("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(){
|
|
|
debugger
|
|
|
var file = document.getElementById("uploadfile").files[0];
|
|
|
var formData = new FormData()
|
|
|
formData.append('file', file)
|
|
|
console.log(formData)
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|
|
|
|