Browse Source

病人抢救次数和成功次数

xiezhiming 8 tháng trước cách đây
mục cha
commit
426549dcac
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      src/js/qcScore.js

+ 4 - 2
src/js/qcScore.js

@@ -1377,6 +1377,7 @@ $(function () {
     let matchs_anchor2295 = $('#anchor2295 p').text().match(/康复费:(\d+\.?\d+)/)
     /** 康复类 */
     const healthTypeFee = matchs_anchor2295 ? matchs_anchor2295[1] : '';
+
     /** 中医治疗费 */
     const chnTreatFee = $('#anchor2296 p').text().match(/中医治疗费:(\d+\.?\d+)/)[1] || '';
     /** 西药费 */
@@ -1441,10 +1442,11 @@ $(function () {
     /** 放射与病理 */
     const isRadiatePathology = results_anchor2304["放射与病理"] || "";
 
+    let matchs_nchor2305 = $('#anchor2305 p').text().match(/\d+/g)
     /** 病人抢救次数 */
-    const rescueNum = $('#anchor2305 p').text().match(/\d+||-/g)[0] || "0";
+    const rescueNum = matchs_nchor2305 ? matchs_nchor2305[0] : "0";
     /** 病人抢救成功次数 */
-    const rescueSuccessNum = $('#anchor2305 p').text().match(/\d+||-/g)[1] || "0";
+    const rescueSuccessNum = matchs_nchor2305 ? matchs_nchor2305[1] : "0";
 
     /** 是否为自动出院 */
     const isAutoLeavehospital = '';