Преглед на файлове

增加退费权限按钮

lihong преди 2 месеца
родител
ревизия
64d60dd055

+ 6 - 1
src/main/resources/otherSource/update_table.sql

@@ -2170,7 +2170,7 @@ alter table t_common_params alter column params_content varchar(800) null
 go
 
 
---药房增加字段
+--药房增加字段 2025-06-16
 alter table yp_zd_group_name
     add zy_flag varchar(5)
 go
@@ -2252,4 +2252,9 @@ go
 exec sp_addextendedproperty 'MS_Description', '押金', 'SCHEMA', 'dbo', 'TABLE', 'mz_zy_req', 'COLUMN', 'deposit';
 
 
+--增加退费权限按钮 2025-06-20
+insert into t_button (name,parent_id, button_code, sort_value, create_time, create_id)
+values ( '门诊退费',3,'mz_refund',999,getdate(),1);
+insert into t_button (name,parent_id, button_code, sort_value, create_time, create_id)
+values ( '挂号退费',3,'gh_refund',998,getdate(),1);
 

+ 12 - 8
src/main/resources/static/js/mz/registration_list.js

@@ -1155,13 +1155,15 @@ function loadCardList() {
                                     '                            </button>' +
                                     '                        </div>';
                             }
-                            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.paymode +'\','+ mzyReqrecVo.mzyReqrec.times + ')">' +
-                                '                                <i class="fa fa-minus-square-o"></i>' +
-                                '                            </button>' +
-                                '                        </div>' +
-                                '                        <div class="col-md-2 col-sm-2 col-xs-12">';
+                            if(isInArrayStr("gh_refund", buttonCodes)){
+                                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.paymode +'\','+ mzyReqrecVo.mzyReqrec.times + ')">' +
+                                    '                                <i class="fa fa-minus-square-o"></i>' +
+                                    '                            </button>' +
+                                    '                        </div>' ;
+                            }
+                            html+=    '                        <div class="col-md-2 col-sm-2 col-xs-12">';
                             if (mzyReqrecVo.mzyReqrec.paymode == "本院记账") {
                                 html += '                            <button type="button" class="registration-no-color-foot-button"  title="退记账重收" onclick="chargeFeeForByjz(\'' + mzyReqrecVo.mzyReqrec.serialNo + '\')">';
                                 html += '                                <i class="fa fa-rmb"></i>';
@@ -1442,7 +1444,9 @@ 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.paymode +'\','+ row.mzyReqrec.times + ')"><i class="fa fa-minus-square-o"></i></button>';
+                        if(isInArrayStr("gh_refund", buttonCodes)){
+                            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>';

+ 3 - 1
src/main/resources/static/js/mz/toll_administration.js

@@ -514,7 +514,9 @@ function initFeeTable() {
                     }
                     if (payMarkGroup == 1) {
                         // str += '<button type="button" class="registration-no-color-foot-button" title="修改收款方式" onclick="showChequType(\'' + row.patientId + '\','+row.times+','+row.receiptNo+')"><i class="fa fa-credit-card"></i></button>' ;
-                        str += '<button type="button" class="registration-no-color-foot-button" title="退费" onclick="refundFee(\'' + row.patientId + '\',' + row.times + ',' + row.receiptNo + ',' + row.printFlag+',\'' + row.orderTypeName +'\''+ ');"><i class="fa fa-reply"></i></button>';
+                        if(isInArrayStr("mz_refund", buttonCodes)){
+                            str += '<button type="button" class="registration-no-color-foot-button" title="退费" onclick="refundFee(\'' + row.patientId + '\',' + row.times + ',' + row.receiptNo + ',' + row.printFlag+',\'' + row.orderTypeName +'\''+ ');"><i class="fa fa-reply"></i></button>';
+                        }
                         if (row.printFlag == 0 && fpVsesionNo == 0) {
                             str += '<button type="button" id="button_' + row.realNo + '" class="registration-no-color-foot-button" title="发票打印" onclick="prn1PrintHand(\'' + row.patientId + '\',' + row.times + ',true,' + row.receiptNo + ',' + row.realNo + ');" style="color: #35D082;"><i class="fa fa-print"></i></button>';
                         } else if (row.printFlag == 1 && fpVsesionNo == 0) {