|
@@ -1515,6 +1515,8 @@ function loadCardList() {
|
|
|
"phoneNo": $("#phoneParam").val()
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ var buttonCodes = localStorage.getItem("buttonCodes");
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
url: '/thmz/listMzyReqrec',
|
|
@@ -1582,20 +1584,22 @@ function loadCardList() {
|
|
|
' title="修改患者" onclick="editUserModal(\'' + mzyReqrecVo.mzyReqrec.patientId + '\')">' +
|
|
|
' <i class="fa fa-user"></i>' +
|
|
|
' </button>' +
|
|
|
- ' </div>' +
|
|
|
- // ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
- // ' <button type="button" class="registration-no-color-foot-button"' +
|
|
|
- // ' title="修改收款方式" onclick="editPayMode(\'' + mzyReqrecVo.mzyReqrec.patientId + '\','+mzyReqrecVo.mzyReqrec.times+',\''+mzyReqrecVo.mzyReqrec.paymode+'\','+mzyReqrecVo.mzyReqrec.dcountNo+')">' +
|
|
|
- // ' <i class="fa fa-credit-card"></i>' +
|
|
|
- // ' </button>' +
|
|
|
- // ' </div>' +
|
|
|
- ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
- ' <button type="button" class="can-not-used"' +
|
|
|
- ' title="取消接诊">' +
|
|
|
- ' <i class="fa fa-mail-reply"></i>' +
|
|
|
- ' </button>' +
|
|
|
- ' </div>' +
|
|
|
- ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
+ ' </div>';
|
|
|
+ // ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
+ // ' <button type="button" class="registration-no-color-foot-button"' +
|
|
|
+ // ' title="修改收款方式" onclick="editPayMode(\'' + mzyReqrecVo.mzyReqrec.patientId + '\','+mzyReqrecVo.mzyReqrec.times+',\''+mzyReqrecVo.mzyReqrec.paymode+'\','+mzyReqrecVo.mzyReqrec.dcountNo+')">' +
|
|
|
+ // ' <i class="fa fa-credit-card"></i>' +
|
|
|
+ // ' </button>' +
|
|
|
+ // ' </div>' +
|
|
|
+ if (!(buttonCodes == null || !isInArray("cancel_clinic", buttonCodes))) {
|
|
|
+ html += ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
+ ' <button type="button" class="can-not-used"' +
|
|
|
+ ' title="取消接诊">' +
|
|
|
+ ' <i class="fa fa-mail-reply"></i>' +
|
|
|
+ ' </button>' +
|
|
|
+ ' </div>';
|
|
|
+ }
|
|
|
+ html += ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
' <button type="button" class="can-not-used"' +
|
|
|
' title="退号">' +
|
|
|
' <i class="fa fa-minus-square-o"></i>' +
|
|
@@ -1622,20 +1626,22 @@ function loadCardList() {
|
|
|
' title="修改患者" onclick="editUserModal(\'' + mzyReqrecVo.mzyReqrec.patientId + '\')">' +
|
|
|
' <i class="fa fa-user"></i>' +
|
|
|
' </button>' +
|
|
|
- ' </div>' +
|
|
|
- // ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
- // ' <button type="button" class="registration-no-color-foot-button"' +
|
|
|
- // ' title="修改收款方式" onclick="editPayMode(\'' + mzyReqrecVo.mzyReqrec.patientId + '\','+mzyReqrecVo.mzyReqrec.times+',\''+mzyReqrecVo.mzyReqrec.paymode+'\','+mzyReqrecVo.mzyReqrec.dcountNo+')">' +
|
|
|
- // ' <i class="fa fa-credit-card"></i>' +
|
|
|
- // ' </button>' +
|
|
|
- // ' </div>' +
|
|
|
- ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
- ' <button type="button" class="registration-no-color-foot-button"' +
|
|
|
- ' title="取消接诊" onclick="cancelClinic(\'' + mzyReqrecVo.mzyReqrec.patientId + '\',' + mzyReqrecVo.mzyReqrec.times + ')">' +
|
|
|
- ' <i class="fa fa-mail-reply"></i>' +
|
|
|
- ' </button>' +
|
|
|
- ' </div>' +
|
|
|
- ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
+ ' </div>';
|
|
|
+ // ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
+ // ' <button type="button" class="registration-no-color-foot-button"' +
|
|
|
+ // ' title="修改收款方式" onclick="editPayMode(\'' + mzyReqrecVo.mzyReqrec.patientId + '\','+mzyReqrecVo.mzyReqrec.times+',\''+mzyReqrecVo.mzyReqrec.paymode+'\','+mzyReqrecVo.mzyReqrec.dcountNo+')">' +
|
|
|
+ // ' <i class="fa fa-credit-card"></i>' +
|
|
|
+ // ' </button>' +
|
|
|
+ // ' </div>' +
|
|
|
+ if (!(buttonCodes == null || !isInArray("cancel_clinic", buttonCodes))) {
|
|
|
+ html += ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
+ ' <button type="button" class="registration-no-color-foot-button"' +
|
|
|
+ ' title="取消接诊" onclick="cancelClinic(\'' + mzyReqrecVo.mzyReqrec.patientId + '\',' + mzyReqrecVo.mzyReqrec.times + ')">' +
|
|
|
+ ' <i class="fa fa-mail-reply"></i>' +
|
|
|
+ ' </button>' +
|
|
|
+ ' </div>';
|
|
|
+ }
|
|
|
+ html += ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
' <button type="button" class="can-not-used"' +
|
|
|
' title="退号">' +
|
|
|
' <i class="fa fa-minus-square-o"></i>' +
|
|
@@ -1670,20 +1676,22 @@ function loadCardList() {
|
|
|
' title="修改患者" onclick="editUserModal(\'' + mzyReqrecVo.mzyReqrec.patientId + '\')">' +
|
|
|
' <i class="fa fa-user"></i>' +
|
|
|
' </button>' +
|
|
|
- ' </div>' +
|
|
|
- // ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
- // ' <button type="button" class="registration-no-color-foot-button"' +
|
|
|
- // ' title="修改收款方式" onclick="editPayMode(\'' + mzyReqrecVo.mzyReqrec.patientId + '\','+mzyReqrecVo.mzyReqrec.times+',\''+mzyReqrecVo.mzyReqrec.paymode+'\','+mzyReqrecVo.mzyReqrec.dcountNo+')">' +
|
|
|
- // ' <i class="fa fa-credit-card"></i>' +
|
|
|
- // ' </button>' +
|
|
|
- // ' </div>' +
|
|
|
- ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
- ' <button type="button" class="can-not-used"' +
|
|
|
- ' title="取消接诊">' +
|
|
|
- ' <i class="fa fa-mail-reply"></i>' +
|
|
|
- ' </button>' +
|
|
|
- ' </div>' +
|
|
|
- ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
+ ' </div>';
|
|
|
+ // ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
+ // ' <button type="button" class="registration-no-color-foot-button"' +
|
|
|
+ // ' title="修改收款方式" onclick="editPayMode(\'' + mzyReqrecVo.mzyReqrec.patientId + '\','+mzyReqrecVo.mzyReqrec.times+',\''+mzyReqrecVo.mzyReqrec.paymode+'\','+mzyReqrecVo.mzyReqrec.dcountNo+')">' +
|
|
|
+ // ' <i class="fa fa-credit-card"></i>' +
|
|
|
+ // ' </button>' +
|
|
|
+ // ' </div>' +
|
|
|
+ if (!(buttonCodes == null || !isInArray("cancel_clinic", buttonCodes))) {
|
|
|
+ html += ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
+ ' <button type="button" class="can-not-used"' +
|
|
|
+ ' title="取消接诊">' +
|
|
|
+ ' <i class="fa fa-mail-reply"></i>' +
|
|
|
+ ' </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.times + ')">' +
|
|
|
' <i class="fa fa-minus-square-o"></i>' +
|
|
@@ -1718,6 +1726,7 @@ function loadCardList() {
|
|
|
* 加载表格列表
|
|
|
*/
|
|
|
function loadTableList() {
|
|
|
+ var buttonCodes = localStorage.getItem("buttonCodes");
|
|
|
if (isTableListInit) {
|
|
|
$('#tb_regi_list').bootstrapTable('refresh');
|
|
|
} else {
|
|
@@ -1865,16 +1874,22 @@ function loadTableList() {
|
|
|
// sortable: true,
|
|
|
formatter: function (value, row, index) {
|
|
|
if (row.mzyReqrec.cancelMark == 1) {
|
|
|
- return '<button type="button" class="can-not-used" title="修改挂号"><i class="fa fa-edit"></i></button><button type="button" class="registration-no-color-foot-button"title="修改患者" onclick="editUserModal(\'' + row.mzyReqrec.patientId + '\')"><i class="fa fa-user"></i></button>' +
|
|
|
- // '<button type="button" class="registration-no-color-foot-button" title="修改收款方式" onclick="editPayMode(\'' + row.mzyReqrec.patientId + '\','+row.mzyReqrec.times+',\''+row.mzyReqrec.paymode+'\','+row.mzyReqrec.dcountNo+')"><i class="fa fa-credit-card"></i></button>' +
|
|
|
- '<button type="button" class="can-not-used" title="取消接诊"><i class="fa fa-mail-reply"></i></button>'+
|
|
|
- '<button type="button" class="can-not-used" title="退号"><i class="fa fa-minus-square-o"></i></button><button type="button" class="can-not-used" title="打印" ><i class="fa fa-print"></i></button>';
|
|
|
+ var html= '<button type="button" class="can-not-used" title="修改挂号"><i class="fa fa-edit"></i></button><button type="button" class="registration-no-color-foot-button"title="修改患者" onclick="editUserModal(\'' + row.mzyReqrec.patientId + '\')"><i class="fa fa-user"></i></button>';
|
|
|
+ // '<button type="button" class="registration-no-color-foot-button" title="修改收款方式" onclick="editPayMode(\'' + row.mzyReqrec.patientId + '\','+row.mzyReqrec.times+',\''+row.mzyReqrec.paymode+'\','+row.mzyReqrec.dcountNo+')"><i class="fa fa-credit-card"></i></button>' +
|
|
|
+ if (!(buttonCodes == null || !isInArray("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="can-not-used" title="退号"><i class="fa fa-minus-square-o"></i></button><button type="button" class="can-not-used" title="打印" ><i class="fa fa-print"></i></button>';
|
|
|
+ return html;
|
|
|
}
|
|
|
if (row.mzyReqrec.visitedMark == 1) {
|
|
|
- var html = '<button type="button" class="can-not-used" title="修改挂号"><i class="fa fa-edit"></i></button><button type="button" class="registration-no-color-foot-button"title="修改患者" onclick="editUserModal(\'' + row.mzyReqrec.patientId + '\')"><i class="fa fa-user"></i></button>' +
|
|
|
- // '<button type="button" class="registration-no-color-foot-button" title="修改收款方式" onclick="editPayMode(\'' + row.mzyReqrec.patientId + '\',\''+row.mzyReqrec.times+','+row.mzyReqrec.paymode+'\','+row.mzyReqrec.dcountNo+')"><i class="fa fa-credit-card"></i></button>' +
|
|
|
- '<button type="button" class="registration-no-color-foot-button" title="取消接诊" onclick="cancelClinic(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times + ')"><i class="fa fa-mail-reply"></i></button>'+
|
|
|
- '<button type="button" class="can-not-used" title="退号"><i class="fa fa-minus-square-o"></i></button>';
|
|
|
+ var html = '<button type="button" class="can-not-used" title="修改挂号"><i class="fa fa-edit"></i></button><button type="button" class="registration-no-color-foot-button"title="修改患者" onclick="editUserModal(\'' + row.mzyReqrec.patientId + '\')"><i class="fa fa-user"></i></button>';
|
|
|
+ if (!(buttonCodes == null || !isInArray("cancel_clinic", buttonCodes))) {
|
|
|
+ html += '<button type="button" class="registration-no-color-foot-button" title="取消接诊" onclick="cancelClinic(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times + ')"><i class="fa fa-mail-reply"></i></button>';
|
|
|
+ }
|
|
|
+ // '<button type="button" class="registration-no-color-foot-button" title="修改收款方式" onclick="editPayMode(\'' + row.mzyReqrec.patientId + '\',\''+row.mzyReqrec.times+','+row.mzyReqrec.paymode+'\','+row.mzyReqrec.dcountNo+')"><i class="fa fa-credit-card"></i></button>' +
|
|
|
+
|
|
|
+ html += '<button type="button" class="can-not-used" title="退号"><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>';
|
|
@@ -1887,14 +1902,16 @@ function loadTableList() {
|
|
|
}
|
|
|
html += '<i class="fa fa-print"></i></button>';
|
|
|
}
|
|
|
- // html += '<button type="button" class="registration-no-color-foot-button" title="取消接诊" onclick="cancelClinic(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times + ')"><i class="fa fa-mail-reply"></i></button>';
|
|
|
+ // html += '<button type="button" class="registration-no-color-foot-button" title="取消接诊" onclick="cancelClinic(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times + ')"><i class="fa fa-mail-reply"></i></button>';
|
|
|
return html;
|
|
|
|
|
|
}
|
|
|
- var html = '<button type="button" class="can-not-used" title="修改挂号"><i class="fa fa-edit"></i></button><button type="button" class="registration-no-color-foot-button"title="修改患者" onclick="editUserModal(\'' + row.mzyReqrec.patientId + '\')"><i class="fa fa-user"></i></button>' +
|
|
|
- // '<button type="button" class="registration-no-color-foot-button" title="修改收款方式" onclick="editPayMode(\'' + row.mzyReqrec.patientId + '\','+row.mzyReqrec.times+',\''+row.mzyReqrec.paymode+'\','+row.mzyReqrec.dcountNo+')"><i class="fa fa-credit-card"></i></button>' +
|
|
|
- '<button type="button" class="can-not-used" title="取消接诊"><i class="fa fa-mail-reply"></i></button>'+
|
|
|
- '<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>';
|
|
|
+ var html = '<button type="button" class="can-not-used" title="修改挂号"><i class="fa fa-edit"></i></button><button type="button" class="registration-no-color-foot-button"title="修改患者" onclick="editUserModal(\'' + row.mzyReqrec.patientId + '\')"><i class="fa fa-user"></i></button>';
|
|
|
+ // '<button type="button" class="registration-no-color-foot-button" title="修改收款方式" onclick="editPayMode(\'' + row.mzyReqrec.patientId + '\','+row.mzyReqrec.times+',\''+row.mzyReqrec.paymode+'\','+row.mzyReqrec.dcountNo+')"><i class="fa fa-credit-card"></i></button>' +
|
|
|
+ if (!(buttonCodes == null || !isInArray("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>';
|
|
|
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>';
|