Browse Source

妇幼接入

‘chenzhilei’ 1 month ago
parent
commit
9fc6f0813b

+ 29 - 0
src/main/resources/static/js/mz/clinic.js

@@ -1098,6 +1098,35 @@ function configWorkspaceModal() {
     $("#configWorkspaceModal").modal("show");
 }
 
+/**
+ * 打开配置页面
+ */
+function jumpToFy() {
+//console.log("val()",$("#clinicDeptNo").val())
+    if (currentPatientInfo.patientId) {
+
+      let data = {
+        "healthNo":"",
+        "patientNo":currentPatientInfo.patientId,
+        "hospitalNo":"",
+        "outpatientNo":"",
+        "name":currentPatientInfo.name,
+        "cardType":"01",
+        "cardNo":currentPatientInfo.socialNo?currentPatientInfo.socialNo:"",
+        "birthday":"",
+        "age":"",
+        "tel":currentPatientInfo.phoneNo?currentPatientInfo.phoneNo:"",
+        "workOrgan":"",
+        "lmp":""
+      }
+      const utf8Bytes = encodeURIComponent(JSON.stringify(data)).replace(/%([0-9A-F]{2})/g, (_, hex) => {
+          return String.fromCharCode(parseInt(hex, 16));
+      });
+      let url = "http://58.33.165.250:20011/mchis-web/?token=321322199206140414&module=M102&data=" + btoa(utf8Bytes);
+      window.open(url, "_blank");
+  }
+}
+
 /**
  * 初始化用药天数下拉选
  */

+ 2 - 0
src/main/resources/templates/mz/clinic.html

@@ -372,6 +372,8 @@
                         <a onclick="printNoThirdParty()"
                            style="cursor: pointer;color: #2e69eb !important;font-size: 14px;"><i
                                 class="fa fa-print">&nbsp;外伤无第三方责任承诺书</i></a>
+                        <a style="cursor: pointer;font-size: 14px;color: #2e69eb!important;"
+                           onclick="jumpToFy()">&nbsp;&nbsp;妇幼上报</i></a>
                         <a style="cursor: pointer;font-size: 14px;color: #2e69eb!important;display: none"
                            onclick="transferTreatment()" id="transferTreatment">&nbsp;&nbsp;转诊</i></a>
                         <a style="cursor: pointer;font-size: 14px;color: #2e69eb!important;display: none"