|
|
@@ -684,6 +684,10 @@ class OutpatientStationTabs extends React.Component {
|
|
|
}
|
|
|
|
|
|
//获取动态step组件
|
|
|
+ getDefaultChangeComponent = (componentSource) => {
|
|
|
+ return componentSource && componentSource.code === '03050037' && this.state.userData?.hospCode === 'QYCRGMZB' ? '1' : '2';
|
|
|
+ }
|
|
|
+
|
|
|
loadStepComponent() {
|
|
|
var params = {
|
|
|
params: [{
|
|
|
@@ -712,7 +716,8 @@ class OutpatientStationTabs extends React.Component {
|
|
|
this.setState({
|
|
|
dataSource: res.result,
|
|
|
componentSource: code,
|
|
|
- current: current
|
|
|
+ current: current,
|
|
|
+ changeComponent: this.getDefaultChangeComponent(code)
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
@@ -968,7 +973,7 @@ class OutpatientStationTabs extends React.Component {
|
|
|
that.setState({
|
|
|
componentSource: data,
|
|
|
// current: index,
|
|
|
- changeComponent: '2',
|
|
|
+ changeComponent: that.getDefaultChangeComponent(data),
|
|
|
// medicineStatus:false,
|
|
|
isShowOutPatientModal: true,
|
|
|
isShowTriageSystemModal: true,
|
|
|
@@ -999,7 +1004,7 @@ class OutpatientStationTabs extends React.Component {
|
|
|
that.setState({
|
|
|
componentSource: data,
|
|
|
// current: parseInt(e.target.innerText) - 1,
|
|
|
- changeComponent: '2',
|
|
|
+ changeComponent: that.getDefaultChangeComponent(data),
|
|
|
// medicineStatus:false,
|
|
|
isShowOutPatientModal: true,
|
|
|
isShowTriageSystemModal: true
|
|
|
@@ -1013,7 +1018,7 @@ class OutpatientStationTabs extends React.Component {
|
|
|
this.setState({
|
|
|
componentSource: data,
|
|
|
// current: index,
|
|
|
- changeComponent: '2',
|
|
|
+ changeComponent: this.getDefaultChangeComponent(data),
|
|
|
// medicineStatus:false,
|
|
|
isShowOutPatientModal: true,
|
|
|
isShowTriageSystemModal: true,
|
|
|
@@ -1052,7 +1057,7 @@ class OutpatientStationTabs extends React.Component {
|
|
|
that.setState({
|
|
|
componentSource: data,
|
|
|
// current: index,
|
|
|
- changeComponent: '2',
|
|
|
+ changeComponent: that.getDefaultChangeComponent(data),
|
|
|
// medicineStatus:false,
|
|
|
isShowOutPatientModal: true,
|
|
|
isShowTriageSystemModal: true,
|
|
|
@@ -1070,7 +1075,7 @@ class OutpatientStationTabs extends React.Component {
|
|
|
that.setState({
|
|
|
componentSource: data,
|
|
|
// current: index,
|
|
|
- changeComponent: '2',
|
|
|
+ changeComponent: that.getDefaultChangeComponent(data),
|
|
|
// medicineStatus:false,
|
|
|
isShowOutPatientModal: true,
|
|
|
isShowTriageSystemModal: true,
|
|
|
@@ -3290,7 +3295,7 @@ class OutpatientStationTabs extends React.Component {
|
|
|
console.log(data)
|
|
|
this.setState({
|
|
|
componentSource: data,
|
|
|
- changeComponent: '2',
|
|
|
+ changeComponent: this.getDefaultChangeComponent(data),
|
|
|
isShowOutPatientModal: true,
|
|
|
isShowTriageSystemModal: true
|
|
|
})
|