|
|
|
@ -5,12 +5,13 @@ var id = 0;
|
|
|
|
|
var selects = '';
|
|
|
|
|
//定义表格内容最大高度
|
|
|
|
|
var maxHeight = 0;
|
|
|
|
|
|
|
|
|
|
//终审列表
|
|
|
|
|
function initTable() {
|
|
|
|
|
if (tipLoad == 1) {
|
|
|
|
|
$("#table").bootstrapTable({ // 对应table标签的id
|
|
|
|
|
//method: 'POST',
|
|
|
|
|
url: path+"/lastVerify/lastVerifyList", // 获取表格数据的url
|
|
|
|
|
url: path + "/lastVerify/lastVerifyList", // 获取表格数据的url
|
|
|
|
|
contentType: "application/x-www-form-urlencoded",//一种编码。好像在post请求的时候需要用到。这里用的get请求,注释掉这句话也能拿到数据
|
|
|
|
|
//dataField: "data",//这是返回的json数组的key.默认是"rows".这里只有前后端约定好就行
|
|
|
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|
|
|
@ -71,12 +72,12 @@ function initTable() {
|
|
|
|
|
deptName: getDeptName(),
|
|
|
|
|
startDateTo: $("#startDateTo").val(),
|
|
|
|
|
endDateTo: $("#endDateTo").val(),
|
|
|
|
|
doctorInCharge:$("#doctorInCharge").val(),
|
|
|
|
|
isSign:$("#isSign").val(),
|
|
|
|
|
isSearch:$("#isSearch").val(),
|
|
|
|
|
checkName:$("#checkName").val(),
|
|
|
|
|
callBackStatus:$("#callBackStatus").val(),
|
|
|
|
|
printStatus:$("#printStatus").val()
|
|
|
|
|
doctorInCharge: $("#doctorInCharge").val(),
|
|
|
|
|
isSign: $("#isSign").val(),
|
|
|
|
|
isSearch: $("#isSearch").val(),
|
|
|
|
|
checkName: $("#checkName").val(),
|
|
|
|
|
callBackStatus: $("#callBackStatus").val(),
|
|
|
|
|
printStatus: $("#printStatus").val()
|
|
|
|
|
};
|
|
|
|
|
return temp;
|
|
|
|
|
},
|
|
|
|
@ -145,7 +146,7 @@ function initTable() {
|
|
|
|
|
overTimeStr = '<span style="color:red">(超期)</span>';
|
|
|
|
|
}
|
|
|
|
|
var str = '<span style="color:#8FBC8F"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
return overTimeStr+str;
|
|
|
|
|
return overTimeStr + str;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -155,18 +156,18 @@ function initTable() {
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
formatter: function (value, row) {
|
|
|
|
|
var isSign = $("#isSign").val();
|
|
|
|
|
if(isSign != '') {
|
|
|
|
|
if (isSign != '') {
|
|
|
|
|
value = isSign == 1 ? '已签收' : '未签收';
|
|
|
|
|
}
|
|
|
|
|
var colorStr = ''
|
|
|
|
|
if(value == '已签收'){
|
|
|
|
|
if (value == '已签收') {
|
|
|
|
|
colorStr = '#8FBC8F';
|
|
|
|
|
}else if(value == '未签收'){
|
|
|
|
|
} else if (value == '未签收') {
|
|
|
|
|
colorStr = 'red';
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
value = '';
|
|
|
|
|
}
|
|
|
|
|
var str = '<span style="color:'+colorStr+'"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
var str = '<span style="color:' + colorStr + '"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -177,14 +178,14 @@ function initTable() {
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
formatter: function (value, row) {
|
|
|
|
|
var colorStr = ''
|
|
|
|
|
if(value == '是'){
|
|
|
|
|
if (value == '是') {
|
|
|
|
|
colorStr = '#8FBC8F';
|
|
|
|
|
}else if(value == '否'){
|
|
|
|
|
} else if (value == '否') {
|
|
|
|
|
colorStr = 'red';
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
value = '';
|
|
|
|
|
}
|
|
|
|
|
var str = '<span style="color:'+colorStr+'"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
var str = '<span style="color:' + colorStr + '"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -193,10 +194,10 @@ function initTable() {
|
|
|
|
|
field: 'callBackStatus',
|
|
|
|
|
align: 'center',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
formatter:function(value, row){
|
|
|
|
|
if(value == '是'){
|
|
|
|
|
formatter: function (value, row) {
|
|
|
|
|
if (value == '是') {
|
|
|
|
|
return '<span style="color:green">是</span>';
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
return '<span style="color:red">否</span>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -206,10 +207,10 @@ function initTable() {
|
|
|
|
|
field: 'printStatus',
|
|
|
|
|
align: 'center',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
formatter:function(value, row){
|
|
|
|
|
if(value == '是'){
|
|
|
|
|
formatter: function (value, row) {
|
|
|
|
|
if (value == '是') {
|
|
|
|
|
return '<span style="color:green">是</span>';
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
return '<span style="color:red">否</span>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -227,18 +228,23 @@ function initTable() {
|
|
|
|
|
if (udpatePower == 1) {
|
|
|
|
|
html += '<button type="button" class="btn btn-sm btn-primary verifyInfo" title="审核">审核</button>';
|
|
|
|
|
}
|
|
|
|
|
if (backToPower == 1) {
|
|
|
|
|
html += '<button type="button" class="btn btn-warning btn-sm returnInfo" title="退回">退回</button>';
|
|
|
|
|
}
|
|
|
|
|
if (showFlowPower == 1) {
|
|
|
|
|
html += '<button type="button" class="btn btn-sm btn-success showFlowInfo" title="查看流程">查看流程</button>'
|
|
|
|
|
}
|
|
|
|
|
if (row.paperStatic == 1) {
|
|
|
|
|
html += '<button type="button" class="btn btn-danger btn-sm addPaperStatic" title="取消签收">取消签收</button>'
|
|
|
|
|
}
|
|
|
|
|
if (row.paperStatic == 0) {
|
|
|
|
|
html += '<button type="button" class="btn btn-sm btn-primary addPaperStatic" title="纸质签收">纸质签收</button>'
|
|
|
|
|
}
|
|
|
|
|
return html;
|
|
|
|
|
},
|
|
|
|
|
events: {
|
|
|
|
|
'click .addPaperStatic': function (e, value, row, index) {
|
|
|
|
|
addPaperStatic(row.id,row.paperStatic)
|
|
|
|
|
},
|
|
|
|
|
'click .returnInfo': function (e, value, row, index) {
|
|
|
|
|
setFormToken();
|
|
|
|
|
//console.log("=====退回======");
|
|
|
|
|
$("#backArchiveId").val(row.id);
|
|
|
|
|
$("#status").val(row.archivestate);
|
|
|
|
|
$('#form2').find('input,textarea,checkbox').prop('readonly', false);
|
|
|
|
@ -260,7 +266,7 @@ function initTable() {
|
|
|
|
|
},
|
|
|
|
|
'click .verifyInfo': function (e, value, row, index) {
|
|
|
|
|
//调用审批diag
|
|
|
|
|
callApproveDiag(row.id,1,row.patientId);
|
|
|
|
|
callApproveDiag(row.id, 1, row.patientId);
|
|
|
|
|
},
|
|
|
|
|
'click .selInfo': function (e, value, row, index) {
|
|
|
|
|
//查询是否医生或护士是否提交
|
|
|
|
@ -294,7 +300,7 @@ function initTable() {
|
|
|
|
|
$("#chargeLab").html(row.doctorInCharge);
|
|
|
|
|
$("#deptToLab").html(row.deptAdmissionTo);
|
|
|
|
|
//出院
|
|
|
|
|
if(row.dischargeDateTime!=null&& row.dischargeDateTime!='') {
|
|
|
|
|
if (row.dischargeDateTime != null && row.dischargeDateTime != '') {
|
|
|
|
|
$("#inDateLab1").html(operDisTime(row.dischargeDateTime));
|
|
|
|
|
}
|
|
|
|
|
$("#deptToLab1").html(row.deptName);
|
|
|
|
@ -325,7 +331,7 @@ function initTable() {
|
|
|
|
|
var inpNo = row.inpNo;
|
|
|
|
|
var visitId = row.visitId;
|
|
|
|
|
var dischargeDateTime = row.dischargeDateTime;
|
|
|
|
|
$("#showFlowInfoIframe").prop("src",path+"/beHosp/toShowFlowInfo?id="+masterId+"&name="+name+"&inpNo="+inpNo+"&visitId="+visitId+"&dischargeDateTime="+dischargeDateTime+"&role="+$("#checker").val());
|
|
|
|
|
$("#showFlowInfoIframe").prop("src", path + "/beHosp/toShowFlowInfo?id=" + masterId + "&name=" + name + "&inpNo=" + inpNo + "&visitId=" + visitId + "&dischargeDateTime=" + dischargeDateTime + "&role=" + $("#checker").val());
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cellStyle: function (value, row, index) {
|
|
|
|
@ -345,6 +351,37 @@ function initTable() {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//签收、取消签收
|
|
|
|
|
function addPaperStatic(id,paperStatic) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: path + "/lastVerify/addPaperStatic", // 获取表格数据的url
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {id: id,paperStatic:paperStatic},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result==0){
|
|
|
|
|
reLoad();
|
|
|
|
|
return toastr.warning("失败!");
|
|
|
|
|
}
|
|
|
|
|
if (result==1){
|
|
|
|
|
reLoad();
|
|
|
|
|
return toastr.success("成功!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//批量申请确认提交后刷新页面
|
|
|
|
|
function reLoad() {
|
|
|
|
|
$("#addPaperStatic").bootstrapTable('refresh', path + '/lastVerify/lastVerifyList');//排序方式
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//确认批量审批列表
|
|
|
|
|
function initTable3() {
|
|
|
|
|
$("#table3").bootstrapTable("destroy");
|
|
|
|
@ -353,8 +390,8 @@ function initTable3() {
|
|
|
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|
|
|
|
striped: true, //是否显示行间隔色
|
|
|
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|
|
|
|
pageSize:"5",
|
|
|
|
|
pageList: [5,10,20,50,100], // 如果设置了分页,设置可供选择的页面数据条数。设置为All 则显示所有记录。
|
|
|
|
|
pageSize: "5",
|
|
|
|
|
pageList: [5, 10, 20, 50, 100], // 如果设置了分页,设置可供选择的页面数据条数。设置为All 则显示所有记录。
|
|
|
|
|
undefinedText: '---', //当数据为 undefined 时显示的字符
|
|
|
|
|
height: 240, //定义表格的高度。
|
|
|
|
|
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
|
|
|
|
@ -417,7 +454,7 @@ $("#verifyBtn").on('click', function () {
|
|
|
|
|
//审核信息保存
|
|
|
|
|
//获取审批个数
|
|
|
|
|
var approveCount = $("#approveCount").val();
|
|
|
|
|
if(approveCount > 1){
|
|
|
|
|
if (approveCount > 1) {
|
|
|
|
|
//大于一个弹出确认框
|
|
|
|
|
$("#verifyModal").modal('hide');
|
|
|
|
|
initTable3();
|
|
|
|
@ -426,22 +463,22 @@ $("#verifyBtn").on('click', function () {
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
var ids = $("#archiveId").val();
|
|
|
|
|
//只有一个直接提交
|
|
|
|
|
//获取柜子列个数
|
|
|
|
|
var paperPostionValueLength = $("#paperPostionValueLength").val();
|
|
|
|
|
if(paperPostionValueLength >= 1){
|
|
|
|
|
for(var i = 1;i<=paperPostionValueLength;i++) {
|
|
|
|
|
if (paperPostionValueLength >= 1) {
|
|
|
|
|
for (var i = 1; i <= paperPostionValueLength; i++) {
|
|
|
|
|
//判断是否必填
|
|
|
|
|
var document = $("#paperPosition"+i);
|
|
|
|
|
var document = $("#paperPosition" + i);
|
|
|
|
|
var isRequire = document.attr("data");
|
|
|
|
|
if(isRequire == 1){
|
|
|
|
|
if (isRequire == 1) {
|
|
|
|
|
//判断是否为空
|
|
|
|
|
var val = document.val();
|
|
|
|
|
if(val == ''){
|
|
|
|
|
if (val == '') {
|
|
|
|
|
//获取下个节点属性
|
|
|
|
|
var text = $("#paperPosition"+i + "_" + i).text();
|
|
|
|
|
var text = $("#paperPosition" + i + "_" + i).text();
|
|
|
|
|
toastr.warning(text + "不能为空");
|
|
|
|
|
document.focus();
|
|
|
|
|
return false;
|
|
|
|
@ -451,23 +488,23 @@ $("#verifyBtn").on('click', function () {
|
|
|
|
|
}
|
|
|
|
|
//判断是否有扫描纸质
|
|
|
|
|
$.ajax({
|
|
|
|
|
type:'get',
|
|
|
|
|
url:path+'/lastVerify/selectIsScan',
|
|
|
|
|
data:{ids:ids},
|
|
|
|
|
dataType:'json',
|
|
|
|
|
success:function(data){
|
|
|
|
|
if(data.code == 100){
|
|
|
|
|
type: 'get',
|
|
|
|
|
url: path + '/lastVerify/selectIsScan',
|
|
|
|
|
data: {ids: ids},
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data.code == 100) {
|
|
|
|
|
var str = data.extend.ids;
|
|
|
|
|
if(str != ''){
|
|
|
|
|
if (str != '') {
|
|
|
|
|
//允许提交
|
|
|
|
|
approveMethod();
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
//弹窗确认
|
|
|
|
|
$("#WZModal").modal({show:"true"});
|
|
|
|
|
$("#WZModal").modal({show: "true"});
|
|
|
|
|
}
|
|
|
|
|
//隐藏该窗口
|
|
|
|
|
$("#verifyModal").modal('hide');
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
toastr.error(data.msg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -476,13 +513,13 @@ $("#verifyBtn").on('click', function () {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//单个终审判断纸质未扫描仍强制提交
|
|
|
|
|
$("#wzSaveBtn").click(function(){
|
|
|
|
|
$("#wzSaveBtn").click(function () {
|
|
|
|
|
approveMethod();
|
|
|
|
|
$("#WZModal").modal('hide');
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//终审方法
|
|
|
|
|
function approveMethod(){
|
|
|
|
|
function approveMethod() {
|
|
|
|
|
var paperPosition = null;
|
|
|
|
|
var paperPosition1 = null;
|
|
|
|
|
var paperPosition2 = null;
|
|
|
|
@ -490,45 +527,51 @@ function approveMethod(){
|
|
|
|
|
var paperPosition4 = null;
|
|
|
|
|
//获取纸质输入类型
|
|
|
|
|
var paperPostionValue = $("#paperPostionValue").val();
|
|
|
|
|
if(paperPostionValue == 1){
|
|
|
|
|
if (paperPostionValue == 1) {
|
|
|
|
|
//获取柜子列个数
|
|
|
|
|
var paperPostionValueLength = $("#paperPostionValueLength").val();
|
|
|
|
|
if(paperPostionValueLength >= 1){
|
|
|
|
|
if($("#paperPosition1").val() != 'undefined') {
|
|
|
|
|
if (paperPostionValueLength >= 1) {
|
|
|
|
|
if ($("#paperPosition1").val() != 'undefined') {
|
|
|
|
|
paperPosition1 = $("#paperPosition1").val();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(paperPostionValueLength >= 2){
|
|
|
|
|
if($("#paperPosition2").val() != 'undefined') {
|
|
|
|
|
if (paperPostionValueLength >= 2) {
|
|
|
|
|
if ($("#paperPosition2").val() != 'undefined') {
|
|
|
|
|
paperPosition2 = $("#paperPosition2").val();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(paperPostionValueLength >= 3){
|
|
|
|
|
if($("#paperPosition3").val() != 'undefined') {
|
|
|
|
|
if (paperPostionValueLength >= 3) {
|
|
|
|
|
if ($("#paperPosition3").val() != 'undefined') {
|
|
|
|
|
paperPosition3 = $("#paperPosition3").val();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(paperPostionValueLength >= 4){
|
|
|
|
|
if($("#paperPosition4").val() != 'undefined') {
|
|
|
|
|
if (paperPostionValueLength >= 4) {
|
|
|
|
|
if ($("#paperPosition4").val() != 'undefined') {
|
|
|
|
|
paperPosition4 = $("#paperPosition4").val();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
paperPosition = $("#paperPosition").val();
|
|
|
|
|
}
|
|
|
|
|
//归档状态改为初审还是有就是初审内容保存
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: path+"/lastVerify/updateStateByArchivId",
|
|
|
|
|
url: path + "/lastVerify/updateStateByArchivId",
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {id: $("#archiveId").val(), remark: $("#verifyText").val(),changeReason:$("#changeReason").val(),checkedDatetime:$("#checkedDateTime").val(),status:$("#status1").val(),formToken:$("#formToken").val(),
|
|
|
|
|
paperPosition:paperPosition,
|
|
|
|
|
paperPosition1:paperPosition1,
|
|
|
|
|
paperPosition2:paperPosition2,
|
|
|
|
|
paperPosition3:paperPosition3,
|
|
|
|
|
paperPosition4:paperPosition4,
|
|
|
|
|
patientId:$("#patientId").val()
|
|
|
|
|
data: {
|
|
|
|
|
id: $("#archiveId").val(),
|
|
|
|
|
remark: $("#verifyText").val(),
|
|
|
|
|
changeReason: $("#changeReason").val(),
|
|
|
|
|
checkedDatetime: $("#checkedDateTime").val(),
|
|
|
|
|
status: $("#status1").val(),
|
|
|
|
|
formToken: $("#formToken").val(),
|
|
|
|
|
paperPosition: paperPosition,
|
|
|
|
|
paperPosition1: paperPosition1,
|
|
|
|
|
paperPosition2: paperPosition2,
|
|
|
|
|
paperPosition3: paperPosition3,
|
|
|
|
|
paperPosition4: paperPosition4,
|
|
|
|
|
patientId: $("#patientId").val()
|
|
|
|
|
},
|
|
|
|
|
dataType:'json',
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result.code == 100) {
|
|
|
|
|
$("#verifyModal").modal('hide');
|
|
|
|
@ -547,31 +590,31 @@ $("#approvesBtn").on('click', function () {
|
|
|
|
|
setFormToken();
|
|
|
|
|
selects = $("#table").bootstrapTable('getSelections');
|
|
|
|
|
var count = selects.length;
|
|
|
|
|
if(count !== 0){
|
|
|
|
|
if (count !== 0) {
|
|
|
|
|
var ids = '';
|
|
|
|
|
var patientIds = '';
|
|
|
|
|
for (var i = 0; i < count; i++) {
|
|
|
|
|
if(i === 0){
|
|
|
|
|
if (i === 0) {
|
|
|
|
|
ids += selects[i].id;
|
|
|
|
|
patientIds += selects[i].patientId;
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
ids += "," + selects[i].id;
|
|
|
|
|
patientIds += "," + selects[i].patientId;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
callApproveDiag(ids,count,patientIds);
|
|
|
|
|
}else{
|
|
|
|
|
callApproveDiag(ids, count, patientIds);
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("批量审批请至少选中一个");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//批量终审确认提交
|
|
|
|
|
$("#sureBtn").on('click',function(){
|
|
|
|
|
$("#sureBtn").on('click', function () {
|
|
|
|
|
approveMethod();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//调用审批diag
|
|
|
|
|
function callApproveDiag(ids,count,patientId) {
|
|
|
|
|
function callApproveDiag(ids, count, patientId) {
|
|
|
|
|
$('#verifyModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
@ -596,21 +639,11 @@ $("#getFirstBtn").on('click', function () {
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//获取初审
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: path+"/lastVerify/getDetailByArchId", // 获取表格数据的url
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {archiveDetailId: $("#idLab").html()},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
//console.log(result);
|
|
|
|
|
if (result != null) {
|
|
|
|
|
$("#firstTrial").val(result.firstTrial);
|
|
|
|
|
}
|
|
|
|
|
}, error: function () {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查看召回信息
|
|
|
|
|
$("#getRecallBtn").on('click', function () {
|
|
|
|
|
//退回信息保存
|
|
|
|
@ -623,7 +656,7 @@ $("#getRecallBtn").on('click', function () {
|
|
|
|
|
$('#returnBtn').hide();
|
|
|
|
|
//根据病案号获取缺陷信息
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: path+"/lastVerify/getDetailByArchId",
|
|
|
|
|
url: path + "/lastVerify/getDetailByArchId",
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {archiveDetailId: $("#idLab").html()},
|
|
|
|
|
success: function (result) {
|
|
|
|
@ -690,30 +723,31 @@ $(function () {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//变更修改时间
|
|
|
|
|
function changeBox(){
|
|
|
|
|
function changeBox() {
|
|
|
|
|
var flag = $("#isChange").is(":checked");
|
|
|
|
|
var time = getFormatDate();
|
|
|
|
|
if(flag){
|
|
|
|
|
if (flag) {
|
|
|
|
|
//获取医生初审时间
|
|
|
|
|
var html = '<div class="form-group"><span style="vertical-align:top;">审核时间:</span>'
|
|
|
|
|
+'<input type="text" class="input-sm" value="'+time+'" id="checkedDateTime" name="checkedDateTime" maxlength="30"></div>'
|
|
|
|
|
+'<div class="form-group ">'
|
|
|
|
|
+'<span style="vertical-align:top;">修改原因:</span><textarea rows="6" cols="66" id="changeReason" name="changeReason" maxlength="500"></textarea></div>';
|
|
|
|
|
+ '<input type="text" class="input-sm" value="' + time + '" id="checkedDateTime" name="checkedDateTime" maxlength="30"></div>'
|
|
|
|
|
+ '<div class="form-group ">'
|
|
|
|
|
+ '<span style="vertical-align:top;">修改原因:</span><textarea rows="6" cols="66" id="changeReason" name="changeReason" maxlength="500"></textarea></div>';
|
|
|
|
|
$("#block").append(html);
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
$("#block").empty();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取当前时间
|
|
|
|
|
function getFormatDate(){
|
|
|
|
|
function getFormatDate() {
|
|
|
|
|
var nowDate = new Date();
|
|
|
|
|
var year = nowDate.getFullYear();
|
|
|
|
|
var month = nowDate.getMonth() + 1 < 10 ? "0" + (nowDate.getMonth() + 1) : nowDate.getMonth() + 1;
|
|
|
|
|
var date = nowDate.getDate() < 10 ? "0" + nowDate.getDate() : nowDate.getDate();
|
|
|
|
|
var hour = nowDate.getHours()< 10 ? "0" + nowDate.getHours() : nowDate.getHours();
|
|
|
|
|
var minute = nowDate.getMinutes()< 10 ? "0" + nowDate.getMinutes() : nowDate.getMinutes();
|
|
|
|
|
var second = nowDate.getSeconds()< 10 ? "0" + nowDate.getSeconds() : nowDate.getSeconds();
|
|
|
|
|
return year + "-" + month + "-" + date+" "+hour+":"+minute+":"+second;
|
|
|
|
|
var hour = nowDate.getHours() < 10 ? "0" + nowDate.getHours() : nowDate.getHours();
|
|
|
|
|
var minute = nowDate.getMinutes() < 10 ? "0" + nowDate.getMinutes() : nowDate.getMinutes();
|
|
|
|
|
var second = nowDate.getSeconds() < 10 ? "0" + nowDate.getSeconds() : nowDate.getSeconds();
|
|
|
|
|
return year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//导出excel功能
|
|
|
|
@ -729,55 +763,58 @@ $("#excelBtn").click(function () {
|
|
|
|
|
}
|
|
|
|
|
var startDateTo = $("#startDateTo").val();
|
|
|
|
|
var endDateTo = $("#endDateTo").val();
|
|
|
|
|
window.location.href = path+"/lastVerify/exportExcel?inpNo=" + inpNo + "&visitId=" + visitId +
|
|
|
|
|
"&name=" + name + "&deptName=" + deptName
|
|
|
|
|
+ "&startDateTo=" + startDateTo + "&endDateTo=" + endDateTo+"&isSearch="+$("#isSearch").val()+"&doctorInCharge="+$("#doctorInCharge").val()+"&isSign="+$("#isSign").val()+"&checkName="+$("#checkName").val();
|
|
|
|
|
window.location.href = path + "/lastVerify/exportExcel?inpNo=" + inpNo + "&visitId=" + visitId +
|
|
|
|
|
"&name=" + name + "&deptName=" + deptName
|
|
|
|
|
+ "&startDateTo=" + startDateTo + "&endDateTo=" + endDateTo + "&isSearch=" + $("#isSearch").val() + "&doctorInCharge=" + $("#doctorInCharge").val() + "&isSign=" + $("#isSign").val() + "&checkName=" + $("#checkName").val();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//纸质位置切换自定义输入
|
|
|
|
|
function paperSelect(){
|
|
|
|
|
function paperSelect() {
|
|
|
|
|
$("#block1").empty();
|
|
|
|
|
var str = '<input type="text" id="paperPosition" class="input-sm" maxlength="16">\n' +
|
|
|
|
|
' <label for="paperPositionSelect1" style="cursor:pointer"><input type="checkbox" title="选择输入" onchange="paperSelect1()" id="paperPositionSelect1">选择输入</label>';
|
|
|
|
|
$("#block1").append(str);
|
|
|
|
|
$("#paperPostionValue").val(2);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//纸质位置切换选择输入
|
|
|
|
|
function paperSelect1(){
|
|
|
|
|
function paperSelect1() {
|
|
|
|
|
loadSelectPaperPostion();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//查询纸质位置字典
|
|
|
|
|
function selectPaperPositonDictionary(){
|
|
|
|
|
function selectPaperPositonDictionary() {
|
|
|
|
|
var selectValue = '';
|
|
|
|
|
$.ajax({
|
|
|
|
|
type:'get',
|
|
|
|
|
url:path+'/paperPostion/selectPaperPositonDictionary',
|
|
|
|
|
dateType:'json',
|
|
|
|
|
async:false,
|
|
|
|
|
success:function(data){
|
|
|
|
|
if(null != data) {
|
|
|
|
|
type: 'get',
|
|
|
|
|
url: path + '/paperPostion/selectPaperPositonDictionary',
|
|
|
|
|
dateType: 'json',
|
|
|
|
|
async: false,
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (null != data) {
|
|
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
|
|
//获取输入框类型
|
|
|
|
|
//1选择框 2输入框
|
|
|
|
|
var inputType = data[i].int1;
|
|
|
|
|
//组织id
|
|
|
|
|
var id = 'paperPosition'+(i+1);
|
|
|
|
|
var id = 'paperPosition' + (i + 1);
|
|
|
|
|
//获取是否必填 1是0否
|
|
|
|
|
var isRequire = data[i].int2;
|
|
|
|
|
var labelId = id + '_' + (i+1);
|
|
|
|
|
if(inputType == 1){
|
|
|
|
|
var labelId = id + '_' + (i + 1);
|
|
|
|
|
if (inputType == 1) {
|
|
|
|
|
//选择框
|
|
|
|
|
selectValue += '<select id="'+id+'" data="'+isRequire+'"><option value="">请选择</option>';
|
|
|
|
|
selectValue += '<select id="' + id + '" data="' + isRequire + '"><option value="">请选择</option>';
|
|
|
|
|
//取出选择值集合
|
|
|
|
|
var typeValues = data[i].typevalue.split(",");
|
|
|
|
|
for(var j = 0;j < typeValues.length;j++){
|
|
|
|
|
selectValue += '<option value="'+typeValues[j]+'">'+typeValues[j]+'</option>';
|
|
|
|
|
for (var j = 0; j < typeValues.length; j++) {
|
|
|
|
|
selectValue += '<option value="' + typeValues[j] + '">' + typeValues[j] + '</option>';
|
|
|
|
|
}
|
|
|
|
|
selectValue += '</select>';
|
|
|
|
|
selectValue += '<label id="'+labelId+'">'+data[i].typename+'</label>';
|
|
|
|
|
}else if(inputType == 2){
|
|
|
|
|
selectValue += '<label id="' + labelId + '">' + data[i].typename + '</label>';
|
|
|
|
|
} else if (inputType == 2) {
|
|
|
|
|
//输入框
|
|
|
|
|
selectValue += '<input id="'+id+'" maxlength="16" data="'+isRequire+'" autocomplete="off"/>';
|
|
|
|
|
selectValue += '<label id="'+labelId+'">'+data[i].typename+'</label>';
|
|
|
|
|
selectValue += '<input id="' + id + '" maxlength="16" data="' + isRequire + '" autocomplete="off"/>';
|
|
|
|
|
selectValue += '<label id="' + labelId + '">' + data[i].typename + '</label>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$("#paperPostionValueLength").val(data.length);
|
|
|
|
@ -788,13 +825,14 @@ function selectPaperPositonDictionary(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//返回纸质选择输入html字符串
|
|
|
|
|
function selectSelectPaperPostion(){
|
|
|
|
|
function selectSelectPaperPostion() {
|
|
|
|
|
var paperPositionSelect = selectPaperPositonDictionary();
|
|
|
|
|
paperPositionSelect += '<label for="paperPositionSelect" style="cursor:pointer"><input type="checkbox" title="自定义输入" onchange="paperSelect()" id="paperPositionSelect">自定义输入</label>';
|
|
|
|
|
return paperPositionSelect;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//加载纸质选择输入
|
|
|
|
|
function loadSelectPaperPostion(){
|
|
|
|
|
function loadSelectPaperPostion() {
|
|
|
|
|
$("#block1").empty();
|
|
|
|
|
var str = selectSelectPaperPostion();
|
|
|
|
|
$("#block1").append(str);
|
|
|
|
|