|
|
@@ -108,6 +108,7 @@ class PatientAccountManagement extends React.Component {
|
|
|
payLoading: false,
|
|
|
spinningVisible: false,
|
|
|
originalReturnRecord: {},
|
|
|
+ showOtherBtnFlag: '', // 是否显示其他按钮
|
|
|
};
|
|
|
|
|
|
// 就诊咯i额表table
|
|
|
@@ -123,7 +124,7 @@ class PatientAccountManagement extends React.Component {
|
|
|
key: '2',
|
|
|
align: "center",
|
|
|
width: 60,
|
|
|
- },{
|
|
|
+ }, {
|
|
|
title: '住院号',
|
|
|
dataIndex: 'patMedicalNo',
|
|
|
key: '3',
|
|
|
@@ -653,7 +654,7 @@ class PatientAccountManagement extends React.Component {
|
|
|
this.setState({
|
|
|
cardType: cardDeffault[0].id, // 默认卡
|
|
|
cardTypeData: res.cardType, // 用户数据
|
|
|
-
|
|
|
+ showOtherBtnFlag: res?.showOtherBtnFlag || '',
|
|
|
}, () => {
|
|
|
this.CardTypeChange(this.state.cardType)
|
|
|
});
|
|
|
@@ -1475,7 +1476,7 @@ class PatientAccountManagement extends React.Component {
|
|
|
render() {
|
|
|
const { hideInputFlag, tableHeight } = this.props;
|
|
|
const { getFieldDecorator } = this.props.form;
|
|
|
- let { language, languageCode, userInfo, payLoading, accPurpose, depositType, spinningVisible, originalReturnRecord } = this.state;
|
|
|
+ let { language, languageCode, userInfo, payLoading, accPurpose, depositType, spinningVisible, originalReturnRecord, showOtherBtnFlag } = this.state;
|
|
|
let windowHost = window.location && window.location.origin ? window.location.origin : (window.location && window.location.protocol ? (window.location.protocol + '//' + window.location.hostname) : '');
|
|
|
let patientUrl = !Util.isEmpty(userInfo) ? userInfo.patImage : ''
|
|
|
let patientImg = patientUrl ? (patientUrl.indexOf('http') !== -1 ? patientUrl : windowHost + patientUrl) : '';
|
|
|
@@ -1668,7 +1669,7 @@ class PatientAccountManagement extends React.Component {
|
|
|
</span>
|
|
|
</div>
|
|
|
<div style={{ float: 'right' }}>
|
|
|
- {this.state.tableData.length !== 0 && ( // 无充值记录不显示按钮
|
|
|
+ {this.state.tableData.length !== 0 && showOtherBtnFlag === 'Y' && ( // 无充值记录不显示按钮
|
|
|
<Button
|
|
|
disabled={this.state.disabledInput}
|
|
|
onClick={this.printBalance}
|
|
|
@@ -1678,7 +1679,7 @@ class PatientAccountManagement extends React.Component {
|
|
|
{'打印余额凭条'}
|
|
|
</Button>
|
|
|
)}
|
|
|
- {depositType !== 'I' && ( // 住院不显示转账按钮
|
|
|
+ {depositType !== 'I' && showOtherBtnFlag === 'Y' && ( // 住院不显示转账按钮
|
|
|
<Button
|
|
|
disabled={this.state.disabledInput}
|
|
|
onClick={this.handleTransferAccounts}
|
|
|
@@ -1688,20 +1689,27 @@ class PatientAccountManagement extends React.Component {
|
|
|
{language?.PatientAccountManagementtransferAccounts?.descripts || '账内转账'}
|
|
|
</Button>
|
|
|
)}
|
|
|
- <Button
|
|
|
- disabled={this.state.disabledInput}
|
|
|
- onClick={() => this.modal('0')}
|
|
|
- style={{ float: 'left', border: 'none', }}
|
|
|
- >
|
|
|
- <i className="f1"></i>
|
|
|
- {language.PatientAccountManagementrecharge && language.PatientAccountManagementrecharge.descripts}
|
|
|
- </Button>
|
|
|
- <Button
|
|
|
- onClick={() => this.modal('1')}
|
|
|
- style={{ float: 'left', border: 'none', }}
|
|
|
- >
|
|
|
- {language.PatientAccountManagementpasswordSet && language.PatientAccountManagementpasswordSet.descripts}
|
|
|
- </Button>
|
|
|
+ {showOtherBtnFlag === 'Y' && (
|
|
|
+ <>
|
|
|
+ {/* 充值 */}
|
|
|
+ <Button
|
|
|
+ disabled={this.state.disabledInput}
|
|
|
+ onClick={() => this.modal('0')}
|
|
|
+ style={{ float: 'left', border: 'none', }}
|
|
|
+ >
|
|
|
+ <i className="f1"></i>
|
|
|
+ {language.PatientAccountManagementrecharge && language.PatientAccountManagementrecharge.descripts}
|
|
|
+ </Button>
|
|
|
+
|
|
|
+ {/* 密码设置 */}
|
|
|
+ <Button
|
|
|
+ onClick={() => this.modal('1')}
|
|
|
+ style={{ float: 'left', border: 'none', }}
|
|
|
+ >
|
|
|
+ {language.PatientAccountManagementpasswordSet && language.PatientAccountManagementpasswordSet.descripts}
|
|
|
+ </Button>
|
|
|
+ </>
|
|
|
+ )}
|
|
|
<Button
|
|
|
onClick={() => this.print(1)}
|
|
|
style={{ float: 'left', border: 'none', }}
|
|
|
@@ -1717,12 +1725,14 @@ class PatientAccountManagement extends React.Component {
|
|
|
<i className="money1"></i>
|
|
|
{language.PatientAccountManagementrefund && language.PatientAccountManagementrefund.descripts}
|
|
|
</Button>
|
|
|
- <Button
|
|
|
- onClick={() => this.modal('4')}
|
|
|
- style={{ float: 'left', border: 'none', }}
|
|
|
- >
|
|
|
- {language.PatientAccountManagementaccountFreeze && language.PatientAccountManagementaccountFreeze.descripts}
|
|
|
- </Button>
|
|
|
+ {showOtherBtnFlag === 'Y' && (
|
|
|
+ <Button
|
|
|
+ onClick={() => this.modal('4')}
|
|
|
+ style={{ float: 'left', border: 'none', }}
|
|
|
+ >
|
|
|
+ {language.PatientAccountManagementaccountFreeze && language.PatientAccountManagementaccountFreeze.descripts}
|
|
|
+ </Button>
|
|
|
+ )}
|
|
|
</div>
|
|
|
</Row>
|
|
|
}}
|