|
@@ -1005,7 +1005,6 @@ function bindColOrder(){
|
|
|
}else{
|
|
|
const downItem = pageSetCopy[index]
|
|
|
const downItemBack = pageSetCopy[index + 1]
|
|
|
- console.log('downItem',downItem,'downItemBack',downItemBack)
|
|
|
pageSetCopy.splice(index,2,downItemBack,downItem)
|
|
|
scrollTop = $(".colTabInfoBox", parent.document).scrollTop()
|
|
|
renderColSet(pageSetCopy)
|
|
@@ -1200,6 +1199,11 @@ $(document).on("click", function(){
|
|
|
$(".fpSelectCheck .arrow").attr("src",iconDown)
|
|
|
$(".qcSelectCheck .arrow").attr("src",iconDown)
|
|
|
})
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+let radioCheck = 1;
|
|
|
$(function($){
|
|
|
$('.export').click(function(){
|
|
|
const start = new Date(behosDateStart).getTime()
|
|
@@ -1209,10 +1213,6 @@ $(function($){
|
|
|
$.alerModal({"message":'开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
return
|
|
|
}
|
|
|
- if((end - start)/24/60/60/1000 > exportTime){
|
|
|
- $.alerModal({"message":`最多只能导出${exportTime}天`,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
- return
|
|
|
- }
|
|
|
let param = {
|
|
|
behospitalCode: behospitalCode,
|
|
|
patName: name, //病人姓名
|
|
@@ -1244,11 +1244,49 @@ $(function($){
|
|
|
if (isInspection) {
|
|
|
param = { ...param, casesEntryName: ''}
|
|
|
}
|
|
|
- // expJson(api.unModifyMRPageExport,param).then(res =>{
|
|
|
- // downloadExportedData(res.data, $(".partTitle").text()+".xls")
|
|
|
- // })
|
|
|
+ if(exportTime==90){
|
|
|
+ if((end - start)/24/60/60/1000 > exportTime){
|
|
|
+ $.alerModal({"message":`最多只能导出${exportTime}天`,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ return
|
|
|
+ }else{
|
|
|
+ expJson(!isInspection ? api.unModifyMRPageExport : api.medicalCheckInnerExport , param).then(res => {
|
|
|
+ downloadExportedData(res.data, $(".partTitle").text() + ".xls")
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ $.alerModal({type:"radio",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ closeRadio()
|
|
|
+ radioSelect()
|
|
|
+ bindSaveColPort(param)
|
|
|
+ }
|
|
|
+ })
|
|
|
+});
|
|
|
+function closeRadio(){
|
|
|
+ $(".colSetBox .iconClose,.colSetBox .cancalColSet", parent.document ).off("click").on("click",function(){
|
|
|
+ $(".divModal",parent.document).html("")
|
|
|
+ })
|
|
|
+}
|
|
|
+function radioSelect(){
|
|
|
+ $(".selectDate", parent.document).click(function(){
|
|
|
+ $(this).find("input").prop("checked",true)
|
|
|
+ $(this).siblings().find("input").prop("checked",false)
|
|
|
+ })
|
|
|
+}
|
|
|
+function bindSaveColPort(param){
|
|
|
+ $(".savePort", parent.document ).off("click").on("click", function(){
|
|
|
+ radioCheck = $(".selectDate input[type='radio']:checked", parent.document).attr("data-select")
|
|
|
+ let time = radioCheck==2?exportTimeLimit.defectTime:exportTimeLimit.normalTime
|
|
|
+ if((new Date(behosDateEnd) - new Date(behosDateStart))/24/60/60/1000 > time){
|
|
|
+ $.alerModal({"message":`最多只能导出${time}天`,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ return
|
|
|
+ }
|
|
|
+ param.radioCheck = radioCheck||1
|
|
|
+ if (isInspection) {
|
|
|
+ param = { ...param, casesEntryName: ''}
|
|
|
+ }
|
|
|
expJson(!isInspection ? api.unModifyMRPageExport : api.medicalCheckInnerExport , param).then(res => {
|
|
|
+ $(".divModal",parent.document).html("")
|
|
|
downloadExportedData(res.data, $(".partTitle").text() + ".xls")
|
|
|
})
|
|
|
})
|
|
|
-});
|
|
|
+}
|