Commit 1f67fbdf by peii

临调下单添加医生为配置

parent 57ae7633
Showing with 18 additions and 0 deletions
...@@ -579,6 +579,7 @@ class SelfOrderPage extends Component { ...@@ -579,6 +579,7 @@ class SelfOrderPage extends Component {
let tempTit = '' let tempTit = ''
let curTip = '未选择' let curTip = '未选择'
const {isLendOrder} = navigation.getParam('params') const {isLendOrder} = navigation.getParam('params')
const doctorNameProfile = this.decodeDisplayLendProfile('PATIENT_NAME_DISPLAY')
const patientNameProfile = this.decodeDisplayLendProfile('PATIENT_NAME_DISPLAY') const patientNameProfile = this.decodeDisplayLendProfile('PATIENT_NAME_DISPLAY')
const patientGenderProfile = this.decodeDisplayLendProfile('PATIENT_GENDER_DISPLAY') const patientGenderProfile = this.decodeDisplayLendProfile('PATIENT_GENDER_DISPLAY')
const patientAgeProfile = this.decodeDisplayLendProfile('PATIENT_AGE_DISPLAY') const patientAgeProfile = this.decodeDisplayLendProfile('PATIENT_AGE_DISPLAY')
...@@ -611,6 +612,7 @@ class SelfOrderPage extends Component { ...@@ -611,6 +612,7 @@ class SelfOrderPage extends Component {
if (isLendOrder && if (isLendOrder &&
(chIndex == 20 && patientNameProfile.required || (chIndex == 20 && patientNameProfile.required ||
chIndex == 5 && doctorNameProfile.required ||
chIndex == 21 && patientGenderProfile.required || chIndex == 21 && patientGenderProfile.required ||
chIndex == 22 && patientAgeProfile.required || chIndex == 22 && patientAgeProfile.required ||
chIndex == 23 && hospitalizationNumberProfile.required || chIndex == 23 && hospitalizationNumberProfile.required ||
...@@ -2132,6 +2134,20 @@ class SelfOrderPage extends Component { ...@@ -2132,6 +2134,20 @@ class SelfOrderPage extends Component {
listCallBack={() => this.handleShipCheck(listOptionData[4])} listCallBack={() => this.handleShipCheck(listOptionData[4])}
listHasArrow={true} listHasArrow={true}
/> />
{
isLendOrder ? (doctorNameProfile.show &&
<PageListArrow
listActOpa={.8}
listHasAster={doctorNameProfile.required}
listItem={listOptionData[5]}
listName={'name'}
listTitle={'title'}
listCallBack={() => this.handleDoctorCheck(listOptionData[5])}
listHasArrow={true}
listOtherInput={'请输入主治医生'}
otherInput={'showInput'}
otherInputCallBack={(text) => this.handleDoctorInput(text, listOptionData[5])}
/>) : (
<PageListArrow <PageListArrow
listActOpa={.8} listActOpa={.8}
// listHasAster={true} // listHasAster={true}
...@@ -2144,6 +2160,8 @@ class SelfOrderPage extends Component { ...@@ -2144,6 +2160,8 @@ class SelfOrderPage extends Component {
otherInput={'showInput'} otherInput={'showInput'}
otherInputCallBack={(text) => this.handleDoctorInput(text, listOptionData[5])} otherInputCallBack={(text) => this.handleDoctorInput(text, listOptionData[5])}
/> />
)
}
{/* <PageListArrow {/* <PageListArrow
listActOpa={.8} listActOpa={.8}
listHasAster={true} listHasAster={true}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment