소스 검색

自动打印药单修复

hsh 2 년 전
부모
커밋
759a53f150
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/main/resources/static/js/common/socket-com.js
  2. 1 1
      src/main/resources/templates/mz/west_pharmacy_dispensing.html

+ 2 - 2
src/main/resources/static/js/common/socket-com.js

@@ -29,7 +29,7 @@ function openSocket(type) {
                         prescriptionPrintWebsocket.onopen = function (event) {
                             console.log(type + "连接prescriptionPrintSocket连接成功");
                             var chk_value = '';
-                            $('input[name="aotoPrint"]:checked').each(function () {
+                            $('input[name="autoPrint"]:checked').each(function () {
                                 chk_value = $(this).val();
                             });
                             if (type == 'PY' && chk_value != '') {//配药处方自动打印
@@ -92,7 +92,7 @@ function dispensingMessage(data) {
             initTable();
         }
         var chk_value = '';
-        $('input[name="aotoPrint"]:checked').each(function () {
+        $('input[name="autoPrint"]:checked').each(function () {
             chk_value = $(this).val();
         });
         if (chk_value != '') {//自动打印

+ 1 - 1
src/main/resources/templates/mz/west_pharmacy_dispensing.html

@@ -56,7 +56,7 @@
                     <div class="form-group ">
                         <div class="col-md-3 col-sm-3 col-xs-12 item">
                             <label>
-                                配药单自动打印 <label><input name="autoPrint" type="radio" value="1"/>处方形式</label>&nbsp;&nbsp;
+                                配药单自动打印 <label><input id="autoPrint" name="autoPrint" type="radio" value="1"/>处方形式</label>&nbsp;&nbsp;
 <!--                                <label><input name="autoPrint" type="radio" value="2" onclick="javascript:return false;"/>药单形式</label>&nbsp;&nbsp;-->
                                 <label><input id="printType" name="printType" type="checkbox" value="3"/>血透室打印</label>
                             </label>