Browse Source

Merge branch 'dev-1.1.4' into 'dev-1.1.4'

住院药房打印口服标签优化

See merge request lihong/thmz_system!52
huangshuhua 1 year ago
parent
commit
c5b97c081c
1 changed files with 13 additions and 1 deletions
  1. 13 1
      src/main/resources/static/js/yf/ward_prescription.js

+ 13 - 1
src/main/resources/static/js/yf/ward_prescription.js

@@ -1724,6 +1724,18 @@ function printLabelLongTime(datas, isMx, LODOP) {
                 html += '</tr>';
                 number++;
                 break;
+            } else {
+                // 如果发药的病人第一个药品拒发或者暂缓时需要更新一下病人打印的基本信息
+                if (i === 0) {
+                    $('.sjh').remove();
+                    $(".wardName").text($.trim(data.wardName));
+                    $(".inpatientNo").text($.trim(data.inpatientNo));
+                    $(".bedNo").text($.trim(data.bedNo));
+                    $(".name").text($.trim(data.name));
+                    $(".age").text(getBirthSlot(data.birthDate, new Date()));
+                    $(".sex").text(getSex(data.sex));
+                    $(".occTime").text(format(data.occTime, "yyyy/MM/dd HH:mm"));
+                }
             }
         }
     }
@@ -1820,7 +1832,7 @@ function sendZy() {
 }
 
 /**
- * 西药确认发药
+ * 西药确认发药 0汇总打印 1明细打印
  * @param flag
  */
 function sendXy(flag) {