1178232204@qq.com 3 years ago
parent
commit
cf93b7d46d
3 changed files with 37 additions and 86 deletions
  1. 2 0
      src/js/api.js
  2. 18 43
      src/js/appealCheck.js
  3. 17 43
      src/js/appealHistory.js

+ 2 - 0
src/js/api.js

@@ -220,6 +220,8 @@ const api = {
   cancelAppealInfo:'/qc/appealInfo/cancelAppealInfo', //撤回申述
   cancelAppealInfo:'/qc/appealInfo/cancelAppealInfo', //撤回申述
   getAppealOperationType:'/qc/appealInfo/getAppealOperationType', //再次申述
   getAppealOperationType:'/qc/appealInfo/getAppealOperationType', //再次申述
   getAuditNumber:'/qc/appealExamineInfo/getAuditNumber', //获取待审核数量
   getAuditNumber:'/qc/appealExamineInfo/getAuditNumber', //获取待审核数量
+  getAppealReviewExport:'/qc/appealExamineInfo/getAppealReviewExport', //申述审核导出
+  getComplaintRecordExport:'/qc/appealExamineInfo/getComplaintRecordExport', //申述记录导出
 }
 }
 const ywCheckApi = {
 const ywCheckApi = {
   addMedCheckInfo: '/qc/medCheckInfo/addMedCheckInfo',   //核查
   addMedCheckInfo: '/qc/medCheckInfo/addMedCheckInfo',   //核查

+ 18 - 43
src/js/appealCheck.js

@@ -784,57 +784,32 @@ $((function ($) {
             return
             return
         }
         }
         const param = {
         const param = {
-            "behospitalCode": behospitalCode,
-            "deptId": deptId.trim(),
-            "doctorCode": doctorNum,
-            "doctorName": doctorName,
-            "asc": data_asc,     //升序
-            "desc": data_desc,       //降序
-            "leaveHosDateStart": isPlacefile == 1 ? behosDateStart : '', //出院日期--开始时间
-            "leaveHosDateEnd": isPlacefile == 1 ? behosDateEnd : '', //出院日期--结束时间
-            "behosDateStart": isPlacefile == 1 ? '' : behosDateStart, //出院日期--开始时间
-            "behosDateEnd": isPlacefile == 1 ? '' : behosDateEnd, //出院日期--结束时间
-            "isPlacefile": isPlacefile,
-            "level": level,
-            "name": name,
-            "checkStatus": qcCheckStatus ? Number(qcCheckStatus) : qcCheckStatus, //病历核查状态
-            "mrStatus": fpCheckStatus ? Number(fpCheckStatus) : fpCheckStatus,   //首页核查状态(1:已核查,0:未核查)
-            "chName": qcCheckName,   //病历核查人员
-            "diagnose": qcCheckMain,   //病历主症状..........
-            "mrName": fpCheckName,  //首页核查人员
-            "deptName": deptName == "全部" ? "" : deptName || '',
-            "statisticsType": statisticsType,
+            deptId: deptId.trim(),
+            deptName: deptName == "全部" ? "" : deptName || '',
+            casesName: casesName,
+            operationType: operationType,
+            state: state,
+            size: 15,
+            name: nameTemp,
+            complaintDateEnd: behosDateEnd.replaceAll("/", "-"),
+            complaintDateStart: behosDateStart.replaceAll("/", "-"),
         }
         }
-        $.alerModal({ type: "radio", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
-        closeRadio()
-        radioSelect()
         bindSaveColPort(param)
         bindSaveColPort(param)
 
 
     })
     })
 })($));
 })($));
-function closeRadio() {
-    $(".colSetBox .iconClose,.colSetBox .cancalColSet", parent.document).off("click").on("click", function () {
-        $(".divModal", parent.document).remove()
-    })
-}
-function radioSelect() {
-    $(".selectDate", parent.document).click(function () {
-        $(this).find("input").prop("checked", true)
-        $(this).siblings().find("input").prop("checked", false)
-    })
-}
+
 function bindSaveColPort(param) {
 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) });
+    $('.export').click(function () {
+        const start = new Date(behosDateStart).getTime()
+        const end = new Date(behosDateEnd).getTime()
+        if (start > end) {
+            $.alerModal({ "message": '开始时间不能大于结束时间~', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
             return
             return
         }
         }
-        param.radioCheck = radioCheck || 1
-        expJson(api.exportQcListDept, param).then(res => {
-            $(".divModal", parent.document).remove()
-            downloadExportedData(res.data, behosDateStart.slice(0, 10).replace(/-/g, "") + "-" + behosDateEnd.slice(0, 10).replace(/-/g, "") + "抽查住院病历质量情况.xls")
+        expJson(api.getAppealReviewExport, param).then(res => {
+            downloadExportedData(res.data, "申述审核.xls")
         })
         })
+
     })
     })
 }
 }

+ 17 - 43
src/js/appealHistory.js

@@ -927,57 +927,31 @@ $((function ($) {
             return
             return
         }
         }
         const param = {
         const param = {
-            "behospitalCode": behospitalCode,
-            "deptId": deptId.trim(),
-            "doctorCode": doctorNum,
-            "doctorName": doctorName,
-            "asc": data_asc,     //升序
-            "desc": data_desc,       //降序
-            "leaveHosDateStart": isPlacefile == 1 ? behosDateStart : '', //出院日期--开始时间
-            "leaveHosDateEnd": isPlacefile == 1 ? behosDateEnd : '', //出院日期--结束时间
-            "behosDateStart": isPlacefile == 1 ? '' : behosDateStart, //出院日期--开始时间
-            "behosDateEnd": isPlacefile == 1 ? '' : behosDateEnd, //出院日期--结束时间
-            "isPlacefile": isPlacefile,
-            "level": level,
-            "name": name,
-            "checkStatus": qcCheckStatus ? Number(qcCheckStatus) : qcCheckStatus, //病历核查状态
-            "mrStatus": fpCheckStatus ? Number(fpCheckStatus) : fpCheckStatus,   //首页核查状态(1:已核查,0:未核查)
-            "chName": qcCheckName,   //病历核查人员
-            "diagnose": qcCheckMain,   //病历主症状..........
-            "mrName": fpCheckName,  //首页核查人员
-            "deptName": deptName == "全部" ? "" : deptName || '',
-            "statisticsType": statisticsType,
+            deptId: deptId.trim(),
+            deptName: deptName == "全部" ? "" : deptName || '',
+            casesName: moduleName,
+            operationType: operationType,
+            state: state,
+            size: 15,
+            name: $('.patientNameInp').val(),
+            complaintDateEnd: behosDateEnd.replaceAll("/", "-"),
+            complaintDateStart: behosDateStart.replaceAll("/", "-"),
         }
         }
-        $.alerModal({ type: "radio", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
-        closeRadio()
-        radioSelect()
         bindSaveColPort(param)
         bindSaveColPort(param)
 
 
     })
     })
 })($));
 })($));
-function closeRadio() {
-    $(".colSetBox .iconClose,.colSetBox .cancalColSet", parent.document).off("click").on("click", function () {
-        $(".divModal", parent.document).remove()
-    })
-}
-function radioSelect() {
-    $(".selectDate", parent.document).click(function () {
-        $(this).find("input").prop("checked", true)
-        $(this).siblings().find("input").prop("checked", false)
-    })
-}
 function bindSaveColPort(param) {
 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) });
+    $('.export').click(function () {
+        const start = new Date(behosDateStart).getTime()
+        const end = new Date(behosDateEnd).getTime()
+        if (start > end) {
+            $.alerModal({ "message": '开始时间不能大于结束时间~', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
             return
             return
         }
         }
-        param.radioCheck = radioCheck || 1
-        expJson(api.exportQcListDept, param).then(res => {
-            $(".divModal", parent.document).remove()
-            downloadExportedData(res.data, behosDateStart.slice(0, 10).replace(/-/g, "") + "-" + behosDateEnd.slice(0, 10).replace(/-/g, "") + "抽查住院病历质量情况.xls")
+        expJson(api.getComplaintRecordExport, param).then(res => {
+            downloadExportedData(res.data, "申述记录.xls")
         })
         })
+
     })
     })
 }
 }