瀏覽代碼

退号优化

lihong 1 年之前
父節點
當前提交
5997cd31e2
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      src/main/resources/static/js/mz/registration_list.js

+ 7 - 3
src/main/resources/static/js/mz/registration_list.js

@@ -393,7 +393,11 @@ function editUserModal(data) {
  * @param patientId
  * @param times
  */
-function backNoModal(patientId, times) {
+function backNoModal(patientId, paymode,times) {
+    if("本院记账"==paymode){
+        errorMesageSimaple("本院记账不能直接退号,请先退记账重收!")
+        return
+    }
     $.ajax({
         type: "POST",
         url: '/thmz/getMzyReqrecByPatientIdAndTimes',
@@ -1137,7 +1141,7 @@ function loadCardList() {
                             }
                             html += '                        <div class="col-md-2 col-sm-2 col-xs-12">' +
                                 '                            <button type="button" class="registration-no-color-foot-button"' +
-                                '                                    title="退号" onclick="backNoModal(\'' + mzyReqrecVo.mzyReqrec.patientId + '\',' + mzyReqrecVo.mzyReqrec.times + ')">' +
+                                '                                    title="退号" onclick="backNoModal(\'' + mzyReqrecVo.mzyReqrec.patientId  +'\',\''+mzyReqrecVo.mzyReqrec.paymode +'\','+ mzyReqrecVo.mzyReqrec.times + ')">' +
                                 '                                <i class="fa fa-minus-square-o"></i>' +
                                 '                            </button>' +
                                 '                        </div>' +
@@ -1408,7 +1412,7 @@ function loadTableList() {
                         if (!(buttonCodes == null || !isInArrayStr("cancel_clinic", buttonCodes))) {
                             html += '<button type="button" class="can-not-used"  title="取消接诊"><i class="fa fa-mail-reply"></i></button>';
                         }
-                        html += '<button type="button" class="registration-no-color-foot-button" title="退号" onclick="backNoModal(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times + ')"><i class="fa fa-minus-square-o"></i></button>';
+                        html += '<button type="button" class="registration-no-color-foot-button" title="退号" onclick="backNoModal(\'' + row.mzyReqrec.patientId + '\',\''+row.mzyReqrec.paymode +'\','+ row.mzyReqrec.times + ')"><i class="fa fa-minus-square-o"></i></button>';
                         if (row.mzyReqrec.paymode == "本院记账") {
                             html += '                            <button type="button" class="registration-no-color-foot-button"  title="退记账重收" onclick="chargeFeeForByjz(\'' + row.mzyReqrec.serialNo + '\')">';
                             html += '<i class="fa fa-rmb"></i></button>';