修改开始日期错误

master
zengwh 5 years ago
parent 6c6c826bcd
commit dbf6149c6f

@ -312,12 +312,13 @@
<%--离院方式:<label id="outHospLab" class="labCss"></label>--%>
<%--</div>--%>
<div class="col-sm-4">
完整性审核:<span id="wzContent"></span>
完整性审核:
<a id="showDefectTable" style="cursor: pointer">
<span id="wzContent">缺失首页,青碧的</span>
</a>
</div>
</div>
</div>
<div class="divCss4"></div>
<div class="row">
<div class="row divCss3 ">病历清单</div>
@ -687,7 +688,7 @@
</div>
</div>
</div>
<!--查看详情diag-->
</body>
@ -696,7 +697,6 @@
//创建数组保存图片
var files = new Array();
var id = 0;
function getFaultType() {
//获取科室列表
$.ajax({
@ -719,7 +719,6 @@
}
});
}
getFaultType();
$(function () {
var objUrl;
@ -825,7 +824,6 @@
}
});
/**
* 描述:上传图片附带删除 再次地方可以加上一个ajax进行提交到后台进行删除
*/
@ -871,7 +869,6 @@
});
}
}
/**
* 描述:上传图片附带放大查看处理
*/
@ -886,24 +883,20 @@
$(".showImg").attr("src", $(b).attr("src"));
}
/**
* 描述:关闭弹出层
*/
function closeShade() {
// $(".shade").fadeOut(500);
}
/**
*描述:关闭弹出层
*/
function closeShadeImg() {
// $(".shadeImg").fadeOut(500);
}
//初始化类别
var selectStr = "";
function getAssortFun() {
$.ajax({
url: "${path}/inHosp/getAssort",
@ -928,9 +921,7 @@
}
getAssortFun();
var opts = {
lines: 13, // The number of lines to draw |小长条的数量
length: 20, // The length of each line |小长条的长度
@ -952,9 +943,7 @@
};
var spinner = new Spinner(opts);
var url = "";
function uploadFileFun() {
var formData = new FormData();
formData.append('file', $('#addFile')[0].files[0]);
@ -989,19 +978,12 @@
});
}
function blobToDataURL(blob, callback) {
var a = new FileReader();
a.onload = function (e) {
callback(e.target.result);
}
a.readAsDataURL(blob);
}
function blobToFile(blob, fileName) {
@ -1009,7 +991,6 @@
blob.name = fileName;
return blob;
}
function imgSelectFun() {
var img_div = $(".img_div");
if ($("#inpGl").val() != "非类型") {
@ -1057,14 +1038,12 @@
}
}
$("#imgBtn").click(function () {
//console.log("===查询图片列表===");
//var target = document.getElementById('filesUpload');
imgSelectFun();
});
$("#imgsSaveBtn").click(function () {
//console.log("===保存图片===");
var spinner1 = new Spinner(opts);
@ -1157,7 +1136,6 @@
});
$("#uploadBtn").click(function () {
// console.log("批量上传图片模态框");
$('#pdfModal').modal({
@ -1166,13 +1144,10 @@
show: true//弹出对话框
});
});
$('#addFile').on('change', function () {
//判断文件类型并上传pdf
uploadFileFun();
});
$("#previewFile").on('click', function () {
//上传后预览pdf文件
var fileUrl = $("#fileUrlInp").val();
@ -1183,13 +1158,10 @@
}
});
$("#returnBtn").on('click', function () {
//退回信息保存
var s = $("#returnText").val();
});
$("#getRecallBtn").on('click', function () {
//退回信息保存
$('#returnModal').modal({
@ -1227,7 +1199,6 @@
}
});
});
$("#verifyBtn").on('click', function () {
//审核信息保存
var archiveDetailId = $("#archiveId").val();
@ -1291,7 +1262,6 @@
}
});
});
$(function () {
//日期控件
$(".input-daterange").datepicker({
@ -1368,8 +1338,6 @@
getDept();
});
//处理导出内容,这个方法可以自定义某一行、某一列、甚至某个单元格的内容,也就是将其值设置为自己想要的内容
function DoOnCellHtmlData(cell, row, col, data) {
if (row == 0) {
@ -1388,7 +1356,6 @@
return data;
}
/**
* 根据两个日期,判断相差天数
* @param sDate1 开始日期 如2016-11-01
@ -1673,13 +1640,13 @@
'click .selInfo': function (e, value, row, index) {
//查询是否医生或护士是否提交
var result = 1;
result = selectHis(row);
/*result = selectHis(row);
if (result == 1) {
} else if(result == -1){
toastr.warning("系统出错了请联系系统管理员");
}else {
toastr.warning('医生或护士未提交数据,请稍后再试');
}
}*/
$('#selModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
@ -1712,8 +1679,8 @@
$("#outHospLab").html(row.dischargeDisposition);
$("#inLab").html(row.inpNo);
$("#inTimeLab").html(row.visitId);
if(row.lockinfo == ''){
$("#wzContent").html(row.lockinfo);
if(row.lockinfo != ''){
$("#wzContent").text(row.lockinfo);
}else{
//请求接口查看并回显
$.ajax({
@ -1737,7 +1704,6 @@
outDate = row.admissionDateTime.split("-");
}
$("#outDateLab").val(outDate[0] + "" + outDate[1] + "" + row.inpNo.trim() + "" + row.visitId + "");
initTree(row.id);
}
},
@ -1951,23 +1917,18 @@
});
}
initTable2();
$("#selModal").keydown(function (e) {
if (e.keyCode == 13) {
event.preventDefault();//禁用默认回车事件
}
});
//获取table的高度
function getHeight() {
return $(window).height() - 100;
}
initTable();
//2.初始化select的change事件
$("#sel_exportoption").change(function () {
$('#table').bootstrapTable('refreshOptions', {
@ -1978,7 +1939,6 @@
//刷新
$('#table').bootstrapTable('refresh');
});
//导出excel功能
$("#excelBtn").click(function () {
var id = "" + $("#id").val();
@ -2007,7 +1967,6 @@
+ "&startDateTo=" + startDateTo + "&endDateTo=" + endDateTo+"&isSearch="+$("#isSearch").val()+"&doctorInCharge="+$("#doctorInCharge").val();
});
var zNodes = [];
var nodeList = [];
@ -2060,7 +2019,6 @@
}
var setting = {
view: {
addHoverDom: false,
@ -2233,18 +2191,6 @@
});
// $("#addBtn").click(function () {
// $("#inpId").val("");
// $("#inpTitle").val("");
// $("#inpSource").val("后台");
// $("#inpFlag").val("0");
// $('#assortModal').modal({
// backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
// keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
// show: true//弹出对话框
// });
// });
function inpFun() {
var temp = {};
temp.id = $("#inpId").val();
@ -2281,7 +2227,6 @@
});
});
jQuery(function ($) {
//解决模态框背景色越来越深的问题
$(document).on('show.bs.modal', '.modal', function (event) {
@ -2316,7 +2261,10 @@
})
}
});
//查看缺失详情
$("#showDefectTable").click(function(){
console.log(2)
})
</script>
<script src="${path}/static/js/hospitalLoadPdf/loadPdf.js?time=2020-02-13"></script>
</html>

@ -28,6 +28,19 @@ function getPreMonthToday(){
if(day < 10){
day = '0'+day;
}
if(currentMonth < 10){
currentMonth = '0'+currentMonth;
}
if(currentMonth == '02' && day > 28){
day = 28;
}
if(day == 31){
if(currentMonth == 0 || currentMonth == 7) {
day = 31;
}else{
day = 30;
}
}
var date = currentYear+'-'+currentMonth+'-'+day;
if(currentMonth == 0){
currentYear = currentYear-1;
@ -96,7 +109,12 @@ function selectHis(row){
data:{patientId:row.patientId},
async:false,
success:function(result) {
return result;
if (result == 1) {
} else if(result == -1){
toastr.warning("系统出错了请联系系统管理员");
}else {
toastr.warning('医生或护士未提交数据,请稍后再试');
}
}
})
}
Loading…
Cancel
Save